configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for xf86-video-siliconmotion 1.7.5.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 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
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-siliconmotion'
704 PACKAGE_TARNAME='xf86-video-siliconmotion'
705 PACKAGE_VERSION='1.7.5'
706 PACKAGE_STRING='xf86-video-siliconmotion 1.7.5'
707 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
708 PACKAGE_URL=''
709
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 # include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 # include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_unique_file="Makefile.am"
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 DRIVER_NAME
752 moduledir
753 XMODES_FALSE
754 XMODES_TRUE
755 XSERVER_LIBPCIACCESS_FALSE
756 XSERVER_LIBPCIACCESS_TRUE
757 PCIACCESS_LIBS
758 PCIACCESS_CFLAGS
759 HAVE_XEXTPROTO_71_FALSE
760 HAVE_XEXTPROTO_71_TRUE
761 XEXT_LIBS
762 XEXT_CFLAGS
763 XORG_LIBS
764 XORG_CFLAGS
765 OTOOL64
766 OTOOL
767 LIPO
768 NMEDIT
769 DSYMUTIL
770 lt_ECHO
771 RANLIB
772 AR
773 OBJDUMP
774 LN_S
775 NM
776 ac_ct_DUMPBIN
777 DUMPBIN
778 LD
779 FGREP
780 LIBTOOL
781 MAINT
782 MAINTAINER_MODE_FALSE
783 MAINTAINER_MODE_TRUE
784 am__fastdepCC_FALSE
785 am__fastdepCC_TRUE
786 CCDEPMODE
787 AMDEPBACKSLASH
788 AMDEP_FALSE
789 AMDEP_TRUE
790 am__quote
791 am__include
792 DEPDIR
793 am__untar
794 am__tar
795 AMTAR
796 am__leading_dot
797 SET_MAKE
798 AWK
799 mkdir_p
800 MKDIR_P
801 INSTALL_STRIP_PROGRAM
802 STRIP
803 install_sh
804 MAKEINFO
805 AUTOHEADER
806 AUTOMAKE
807 AUTOCONF
808 ACLOCAL
809 VERSION
810 PACKAGE
811 CYGPATH_W
812 am__isrc
813 AM_BACKSLASH
814 AM_DEFAULT_VERBOSITY
815 MAN_SUBSTS
816 XORG_MAN_PAGE
817 ADMIN_MAN_DIR
818 DRIVER_MAN_DIR
819 MISC_MAN_DIR
820 FILE_MAN_DIR
821 LIB_MAN_DIR
822 APP_MAN_DIR
823 ADMIN_MAN_SUFFIX
824 DRIVER_MAN_SUFFIX
825 MISC_MAN_SUFFIX
826 FILE_MAN_SUFFIX
827 LIB_MAN_SUFFIX
828 APP_MAN_SUFFIX
829 SED
830 host_os
831 host_vendor
832 host_cpu
833 host
834 build_os
835 build_vendor
836 build_cpu
837 build
838 INSTALL_CMD
839 PKG_CONFIG_LIBDIR
840 PKG_CONFIG_PATH
841 PKG_CONFIG
842 CHANGELOG_CMD
843 CWARNFLAGS
844 EGREP
845 GREP
846 CPP
847 OBJEXT
848 EXEEXT
849 ac_ct_CC
850 CPPFLAGS
851 LDFLAGS
852 CFLAGS
853 CC
854 INSTALL_DATA
855 INSTALL_SCRIPT
856 INSTALL_PROGRAM
857 target_alias
858 host_alias
859 build_alias
860 LIBS
861 ECHO_T
862 ECHO_N
863 ECHO_C
864 DEFS
865 mandir
866 localedir
867 libdir
868 psdir
869 pdfdir
870 dvidir
871 htmldir
872 infodir
873 docdir
874 oldincludedir
875 includedir
876 localstatedir
877 sharedstatedir
878 sysconfdir
879 datadir
880 datarootdir
881 libexecdir
882 sbindir
883 bindir
884 program_transform_name
885 prefix
886 exec_prefix
887 PACKAGE_URL
888 PACKAGE_BUGREPORT
889 PACKAGE_STRING
890 PACKAGE_VERSION
891 PACKAGE_TARNAME
892 PACKAGE_NAME
893 PATH_SEPARATOR
894 SHELL'
895 ac_subst_files=''
896 ac_user_opts='
897 enable_option_checking
898 enable_strict_compilation
899 enable_silent_rules
900 enable_dependency_tracking
901 enable_maintainer_mode
902 enable_static
903 enable_shared
904 with_pic
905 enable_fast_install
906 with_gnu_ld
907 enable_libtool_lock
908 with_xorg_module_dir
909 '
910 ac_precious_vars='build_alias
911 host_alias
912 target_alias
913 CC
914 CFLAGS
915 LDFLAGS
916 LIBS
917 CPPFLAGS
918 CPP
919 PKG_CONFIG
920 PKG_CONFIG_PATH
921 PKG_CONFIG_LIBDIR
922 XORG_CFLAGS
923 XORG_LIBS
924 XEXT_CFLAGS
925 XEXT_LIBS
926 PCIACCESS_CFLAGS
927 PCIACCESS_LIBS'
928
929
930 # Initialize some variables set by options.
931 ac_init_help=
932 ac_init_version=false
933 ac_unrecognized_opts=
934 ac_unrecognized_sep=
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
951
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
977
978 ac_prev=
979 ac_dashdash=
980 for ac_option
981 do
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
984 eval $ac_prev=\$ac_option
985 ac_prev=
986 continue
987 fi
988
989 case $ac_option in
990 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 *=) ac_optarg= ;;
992 *) ac_optarg=yes ;;
993 esac
994
995 # Accept the important Cygnus configure options, so we can diagnose typos.
996
997 case $ac_dashdash$ac_option in
998 --)
999 ac_dashdash=yes ;;
1000
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 ac_prev=bindir ;;
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1005
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1010
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1017
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1020
1021 -datadir | --datadir | --datadi | --datad)
1022 ac_prev=datadir ;;
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1025
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1032
1033 -disable-* | --disable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1041 *"
1042 "enable_$ac_useropt"
1043 "*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=no ;;
1048
1049 -docdir | --docdir | --docdi | --doc | --do)
1050 ac_prev=docdir ;;
1051 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052 docdir=$ac_optarg ;;
1053
1054 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055 ac_prev=dvidir ;;
1056 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057 dvidir=$ac_optarg ;;
1058
1059 -enable-* | --enable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=\$ac_optarg ;;
1074
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1083
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1086 with_gas=yes ;;
1087
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1094
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1099
1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101 ac_prev=htmldir ;;
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103 | --ht=*)
1104 htmldir=$ac_optarg ;;
1105
1106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1112
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1114 ac_prev=infodir ;;
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1117
1118 -libdir | --libdir | --libdi | --libd)
1119 ac_prev=libdir ;;
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1122
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1129
1130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1134
1135 -localstatedir | --localstatedir | --localstatedi | --localstated \
1136 | --localstate | --localstat | --localsta | --localst | --locals)
1137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140 localstatedir=$ac_optarg ;;
1141
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143 ac_prev=mandir ;;
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1146
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1149 with_fp=no ;;
1150
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1153 no_create=yes ;;
1154
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 no_recursion=yes ;;
1158
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1167
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169 ac_prev=prefix ;;
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1172
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1179
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1186
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1203
1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205 ac_prev=pdfdir ;;
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1208
1209 -psdir | --psdir | --psdi | --psd | --ps)
1210 ac_prev=psdir ;;
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 psdir=$ac_optarg ;;
1213
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 silent=yes ;;
1217
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 ac_prev=sbindir ;;
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 | --sbi=* | --sb=*)
1222 sbindir=$ac_optarg ;;
1223
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1227 | --sha | --sh)
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 | --sha=* | --sh=*)
1233 sharedstatedir=$ac_optarg ;;
1234
1235 -site | --site | --sit)
1236 ac_prev=site ;;
1237 -site=* | --site=* | --sit=*)
1238 site=$ac_optarg ;;
1239
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 ac_prev=srcdir ;;
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1244
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1251
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1256
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 verbose=yes ;;
1259
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1262
1263 -with-* | --with-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=\$ac_optarg ;;
1278
1279 -without-* | --without-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error $? "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=no ;;
1294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314 Try \`$0 --help' for more information"
1315 ;;
1316
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 case $ac_envvar in #(
1321 '' | [0-9]* | *[!_$as_cr_alnum]* )
1322 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323 esac
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336 done
1337
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 as_fn_error $? "missing argument to $ac_option"
1341 fi
1342
1343 if test -n "$ac_unrecognized_opts"; then
1344 case $enable_option_checking in
1345 no) ;;
1346 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348 esac
1349 fi
1350
1351 # Check all directory arguments for consistency.
1352 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir
1356 do
1357 eval ac_val=\$$ac_var
1358 # Remove trailing slashes.
1359 case $ac_val in
1360 */ )
1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362 eval $ac_var=\$ac_val;;
1363 esac
1364 # Be sure to have absolute directory names.
1365 case $ac_val in
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 esac
1369 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1370 done
1371
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1378
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used" >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1387 fi
1388 fi
1389
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393 test "$silent" = yes && exec 6>/dev/null
1394
1395
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 as_fn_error $? "working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 as_fn_error $? "pwd does not report name of working directory"
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 $as_echo X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1434 fi
1435 else
1436 ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1441 fi
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1445 pwd)`
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 srcdir=.
1449 fi
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1453 case $srcdir in
1454 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455 esac
1456 for ac_var in $ac_precious_vars; do
1457 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_${ac_var}_value=\$${ac_var}
1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 done
1462
1463 #
1464 # Report the --help message.
1465 #
1466 if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
1469 cat <<_ACEOF
1470 \`configure' configures xf86-video-siliconmotion 1.7.5 to adapt to many kinds of systems.
1471
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1473
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE. See below for descriptions of some of the useful variables.
1476
1477 Defaults for the options are specified in brackets.
1478
1479 Configuration:
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
1484 -q, --quiet, --silent do not print \`checking ...' messages
1485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1494 [PREFIX]
1495
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1500
1501 For better control, use the options below.
1502
1503 Fine tuning of the installation directories:
1504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root
1519 [DATAROOTDIR/doc/xf86-video-siliconmotion]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
1524 _ACEOF
1525
1526 cat <<\_ACEOF
1527
1528 Program names:
1529 --program-prefix=PREFIX prepend PREFIX to installed program names
1530 --program-suffix=SUFFIX append SUFFIX to installed program names
1531 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1532
1533 System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 _ACEOF
1537 fi
1538
1539 if test -n "$ac_init_help"; then
1540 case $ac_init_help in
1541 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.5:";;
1542 esac
1543 cat <<\_ACEOF
1544
1545 Optional Features:
1546 --disable-option-checking ignore unrecognized --enable/--with options
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-strict-compilation
1550 Enable all warnings from compiler and make them
1551 errors (default: disabled)
1552 --enable-silent-rules less verbose build output (undo: `make V=1')
1553 --disable-silent-rules verbose build output (undo: `make V=0')
1554 --disable-dependency-tracking speeds up one-time build
1555 --enable-dependency-tracking do not reject slow dependency extractors
1556 --enable-maintainer-mode enable make rules and dependencies not useful
1557 (and sometimes confusing) to the casual installer
1558 --enable-static[=PKGS] build static libraries [default=no]
1559 --enable-shared[=PKGS] build shared libraries [default=yes]
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1563
1564 Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-pic try to use only PIC/non-PIC objects [default=use
1568 both]
1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 --with-xorg-module-dir=DIR
1571 Default xorg module directory
1572 [[default=$libdir/xorg/modules]]
1573
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CPP C preprocessor
1583 PKG_CONFIG path to pkg-config utility
1584 PKG_CONFIG_PATH
1585 directories to add to pkg-config's search path
1586 PKG_CONFIG_LIBDIR
1587 path overriding pkg-config's built-in search path
1588 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1589 XORG_LIBS linker flags for XORG, overriding pkg-config
1590 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1591 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1592 PCIACCESS_CFLAGS
1593 C compiler flags for PCIACCESS, overriding pkg-config
1594 PCIACCESS_LIBS
1595 linker flags for PCIACCESS, overriding pkg-config
1596
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1599
1600 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1601 _ACEOF
1602 ac_status=$?
1603 fi
1604
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
1611 ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 xf86-video-siliconmotion configure 1.7.5
1664 generated by GNU Autoconf 2.67
1665
1666 Copyright (C) 2010 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669 _ACEOF
1670 exit
1671 fi
1672
1673 ## ------------------------ ##
1674 ## Autoconf initialization. ##
1675 ## ------------------------ ##
1676
1677 # ac_fn_c_try_compile LINENO
1678 # --------------------------
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_compile ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext
1684 if { { ac_try="$ac_compile"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_compile
1714
1715 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1716 # ---------------------------------------------
1717 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1718 # accordingly.
1719 ac_fn_c_check_decl ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 as_decl_name=`echo $2|sed 's/ *(.*//'`
1723 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1725 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1726 if eval "test \"\${$3+set}\"" = set; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 $4
1732 int
1733 main ()
1734 {
1735 #ifndef $as_decl_name
1736 #ifdef __cplusplus
1737 (void) $as_decl_use;
1738 #else
1739 (void) $as_decl_name;
1740 #endif
1741 #endif
1742
1743 ;
1744 return 0;
1745 }
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 eval "$3=yes"
1749 else
1750 eval "$3=no"
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 fi
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758
1759 } # ac_fn_c_check_decl
1760
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_cpp ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if { { ac_try="$ac_cpp conftest.$ac_ext"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1780 fi
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } > conftest.i && {
1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 }; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=1
1792 fi
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794 as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_cpp
1797
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=$ac_status
1833 fi
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_run
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval "test \"\${$3+set}\"" = set; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_link ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 $as_test_x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906 fi
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 as_fn_set_status $ac_retval
1914
1915 } # ac_fn_c_try_link
1916
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval "test \"\${$3+set}\"" = set; then :
1926 $as_echo_n "(cached) " >&6
1927 else
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1932 #define $2 innocuous_$2
1933
1934 /* System header to define __stub macros and hopefully few prototypes,
1935 which can conflict with char $2 (); below.
1936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937 <limits.h> exists even on freestanding compilers. */
1938
1939 #ifdef __STDC__
1940 # include <limits.h>
1941 #else
1942 # include <assert.h>
1943 #endif
1944
1945 #undef $2
1946
1947 /* Override any GCC internal prototype to avoid an error.
1948 Use char because int might match the return type of a GCC
1949 builtin and then its argument prototype would still apply. */
1950 #ifdef __cplusplus
1951 extern "C"
1952 #endif
1953 char $2 ();
1954 /* The GNU C library defines this for functions which it implements
1955 to always fail with ENOSYS. Some functions are actually named
1956 something starting with __ and the normal name is an alias. */
1957 #if defined __stub_$2 || defined __stub___$2
1958 choke me
1959 #endif
1960
1961 int
1962 main ()
1963 {
1964 return $2 ();
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_link "$LINENO"; then :
1970 eval "$3=yes"
1971 else
1972 eval "$3=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext \
1975 conftest$ac_exeext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
1982 } # ac_fn_c_check_func
1983 cat >config.log <<_ACEOF
1984 This file contains any messages produced by compilers while
1985 running configure, to aid debugging if configure makes a mistake.
1986
1987 It was created by xf86-video-siliconmotion $as_me 1.7.5, which was
1988 generated by GNU Autoconf 2.67. Invocation command line was
1989
1990 $ $0 $@
1991
1992 _ACEOF
1993 exec 5>>config.log
1994 {
1995 cat <<_ASUNAME
1996 ## --------- ##
1997 ## Platform. ##
1998 ## --------- ##
1999
2000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005
2006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2008
2009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2016
2017 _ASUNAME
2018
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 $as_echo "PATH: $as_dir"
2025 done
2026 IFS=$as_save_IFS
2027
2028 } >&5
2029
2030 cat >&5 <<_ACEOF
2031
2032
2033 ## ----------- ##
2034 ## Core tests. ##
2035 ## ----------- ##
2036
2037 _ACEOF
2038
2039
2040 # Keep a trace of the command line.
2041 # Strip out --no-create and --no-recursion so they do not pile up.
2042 # Strip out --silent because we don't want to record it for future runs.
2043 # Also quote any args containing shell meta-characters.
2044 # Make two passes to allow for proper duplicate-argument suppression.
2045 ac_configure_args=
2046 ac_configure_args0=
2047 ac_configure_args1=
2048 ac_must_keep_next=false
2049 for ac_pass in 1 2
2050 do
2051 for ac_arg
2052 do
2053 case $ac_arg in
2054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2056 | -silent | --silent | --silen | --sile | --sil)
2057 continue ;;
2058 *\'*)
2059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 esac
2061 case $ac_pass in
2062 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2063 2)
2064 as_fn_append ac_configure_args1 " '$ac_arg'"
2065 if test $ac_must_keep_next = true; then
2066 ac_must_keep_next=false # Got value, back to normal.
2067 else
2068 case $ac_arg in
2069 *=* | --config-cache | -C | -disable-* | --disable-* \
2070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2072 | -with-* | --with-* | -without-* | --without-* | --x)
2073 case "$ac_configure_args0 " in
2074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075 esac
2076 ;;
2077 -* ) ac_must_keep_next=true ;;
2078 esac
2079 fi
2080 as_fn_append ac_configure_args " '$ac_arg'"
2081 ;;
2082 esac
2083 done
2084 done
2085 { ac_configure_args0=; unset ac_configure_args0;}
2086 { ac_configure_args1=; unset ac_configure_args1;}
2087
2088 # When interrupted or exit'd, cleanup temporary files, and complete
2089 # config.log. We remove comments because anyway the quotes in there
2090 # would cause problems or look ugly.
2091 # WARNING: Use '\'' to represent an apostrophe within the trap.
2092 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2093 trap 'exit_status=$?
2094 # Save into config.log some information that might help in debugging.
2095 {
2096 echo
2097
2098 $as_echo "## ---------------- ##
2099 ## Cache variables. ##
2100 ## ---------------- ##"
2101 echo
2102 # The following way of writing the cache mishandles newlines in values,
2103 (
2104 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2105 eval ac_val=\$$ac_var
2106 case $ac_val in #(
2107 *${as_nl}*)
2108 case $ac_var in #(
2109 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2111 esac
2112 case $ac_var in #(
2113 _ | IFS | as_nl) ;; #(
2114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2115 *) { eval $ac_var=; unset $ac_var;} ;;
2116 esac ;;
2117 esac
2118 done
2119 (set) 2>&1 |
2120 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2121 *${as_nl}ac_space=\ *)
2122 sed -n \
2123 "s/'\''/'\''\\\\'\'''\''/g;
2124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2125 ;; #(
2126 *)
2127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128 ;;
2129 esac |
2130 sort
2131 )
2132 echo
2133
2134 $as_echo "## ----------------- ##
2135 ## Output variables. ##
2136 ## ----------------- ##"
2137 echo
2138 for ac_var in $ac_subst_vars
2139 do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 esac
2144 $as_echo "$ac_var='\''$ac_val'\''"
2145 done | sort
2146 echo
2147
2148 if test -n "$ac_subst_files"; then
2149 $as_echo "## ------------------- ##
2150 ## File substitutions. ##
2151 ## ------------------- ##"
2152 echo
2153 for ac_var in $ac_subst_files
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 fi
2163
2164 if test -s confdefs.h; then
2165 $as_echo "## ----------- ##
2166 ## confdefs.h. ##
2167 ## ----------- ##"
2168 echo
2169 cat confdefs.h
2170 echo
2171 fi
2172 test "$ac_signal" != 0 &&
2173 $as_echo "$as_me: caught signal $ac_signal"
2174 $as_echo "$as_me: exit $exit_status"
2175 } >&5
2176 rm -f core *.core core.conftest.* &&
2177 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178 exit $exit_status
2179 ' 0
2180 for ac_signal in 1 2 13 15; do
2181 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182 done
2183 ac_signal=0
2184
2185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2186 rm -f -r conftest* confdefs.h
2187
2188 $as_echo "/* confdefs.h */" > confdefs.h
2189
2190 # Predefined preprocessor variables.
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_URL "$PACKAGE_URL"
2214 _ACEOF
2215
2216
2217 # Let the site file select an alternate cache file if it wants to.
2218 # Prefer an explicitly selected file to automatically selected ones.
2219 ac_site_file1=NONE
2220 ac_site_file2=NONE
2221 if test -n "$CONFIG_SITE"; then
2222 # We do not want a PATH search for config.site.
2223 case $CONFIG_SITE in #((
2224 -*) ac_site_file1=./$CONFIG_SITE;;
2225 */*) ac_site_file1=$CONFIG_SITE;;
2226 *) ac_site_file1=./$CONFIG_SITE;;
2227 esac
2228 elif test "x$prefix" != xNONE; then
2229 ac_site_file1=$prefix/share/config.site
2230 ac_site_file2=$prefix/etc/config.site
2231 else
2232 ac_site_file1=$ac_default_prefix/share/config.site
2233 ac_site_file2=$ac_default_prefix/etc/config.site
2234 fi
2235 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2236 do
2237 test "x$ac_site_file" = xNONE && continue
2238 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2240 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2241 sed 's/^/| /' "$ac_site_file" >&5
2242 . "$ac_site_file" \
2243 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 as_fn_error $? "failed to load site script $ac_site_file
2246 See \`config.log' for more details" "$LINENO" 5 ; }
2247 fi
2248 done
2249
2250 if test -r "$cache_file"; then
2251 # Some versions of bash will fail to source /dev/null (special files
2252 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2253 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2255 $as_echo "$as_me: loading cache $cache_file" >&6;}
2256 case $cache_file in
2257 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2258 *) . "./$cache_file";;
2259 esac
2260 fi
2261 else
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2263 $as_echo "$as_me: creating cache $cache_file" >&6;}
2264 >$cache_file
2265 fi
2266
2267 # Check that the precious variables saved in the cache have kept the same
2268 # value.
2269 ac_cache_corrupted=false
2270 for ac_var in $ac_precious_vars; do
2271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2272 eval ac_new_set=\$ac_env_${ac_var}_set
2273 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2274 eval ac_new_val=\$ac_env_${ac_var}_value
2275 case $ac_old_set,$ac_new_set in
2276 set,)
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2278 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2279 ac_cache_corrupted=: ;;
2280 ,set)
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2282 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2283 ac_cache_corrupted=: ;;
2284 ,);;
2285 *)
2286 if test "x$ac_old_val" != "x$ac_new_val"; then
2287 # differences in whitespace do not lead to failure.
2288 ac_old_val_w=`echo x $ac_old_val`
2289 ac_new_val_w=`echo x $ac_new_val`
2290 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2292 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2293 ac_cache_corrupted=:
2294 else
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2296 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2297 eval $ac_var=\$ac_old_val
2298 fi
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2300 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2302 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2303 fi;;
2304 esac
2305 # Pass precious variables to config.status.
2306 if test "$ac_new_set" = set; then
2307 case $ac_new_val in
2308 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2309 *) ac_arg=$ac_var=$ac_new_val ;;
2310 esac
2311 case " $ac_configure_args " in
2312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2313 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2314 esac
2315 fi
2316 done
2317 if $ac_cache_corrupted; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2321 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2322 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323 fi
2324 ## -------------------- ##
2325 ## Main body of script. ##
2326 ## -------------------- ##
2327
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335
2336 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348 ac_aux_dir=
2349 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2350 if test -f "$ac_dir/install-sh"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/install-sh -c"
2353 break
2354 elif test -f "$ac_dir/install.sh"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/install.sh -c"
2357 break
2358 elif test -f "$ac_dir/shtool"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/shtool install -c"
2361 break
2362 fi
2363 done
2364 if test -z "$ac_aux_dir"; then
2365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2366 fi
2367
2368 # These three variables are undocumented and unsupported,
2369 # and are intended to be withdrawn in a future Autoconf release.
2370 # They can cause serious problems if a builder's source tree is in a directory
2371 # whose full name contains unusual characters.
2372 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2373 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2374 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2375
2376
2377 # Find a good install program. We prefer a C program (faster),
2378 # so one script is as good as another. But avoid the broken or
2379 # incompatible versions:
2380 # SysV /etc/install, /usr/sbin/install
2381 # SunOS /usr/etc/install
2382 # IRIX /sbin/install
2383 # AIX /bin/install
2384 # AmigaOS /C/install, which installs bootblocks on floppy discs
2385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2388 # OS/2's system install, which has a completely different semantic
2389 # ./install, which can be erroneously created by make from ./install.sh.
2390 # Reject install programs that cannot install multiple files.
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2393 if test -z "$INSTALL"; then
2394 if test "${ac_cv_path_install+set}" = set; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 # Account for people who put trailing slashes in PATH elements.
2403 case $as_dir/ in #((
2404 ./ | .// | /[cC]/* | \
2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407 /usr/ucb/* ) ;;
2408 *)
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2411 # by default.
2412 for ac_prog in ginstall scoinst install; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2415 if test $ac_prog = install &&
2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417 # AIX install. It has an incompatible calling convention.
2418 :
2419 elif test $ac_prog = install &&
2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2422 :
2423 else
2424 rm -rf conftest.one conftest.two conftest.dir
2425 echo one > conftest.one
2426 echo two > conftest.two
2427 mkdir conftest.dir
2428 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429 test -s conftest.one && test -s conftest.two &&
2430 test -s conftest.dir/conftest.one &&
2431 test -s conftest.dir/conftest.two
2432 then
2433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434 break 3
2435 fi
2436 fi
2437 fi
2438 done
2439 done
2440 ;;
2441 esac
2442
2443 done
2444 IFS=$as_save_IFS
2445
2446 rm -rf conftest.one conftest.two conftest.dir
2447
2448 fi
2449 if test "${ac_cv_path_install+set}" = set; then
2450 INSTALL=$ac_cv_path_install
2451 else
2452 # As a last resort, use the slow shell script. Don't cache a
2453 # value for INSTALL within a source directory, because that will
2454 # break other packages using the cache if that directory is
2455 # removed, or if the value is a relative name.
2456 INSTALL=$ac_install_sh
2457 fi
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460 $as_echo "$INSTALL" >&6; }
2461
2462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463 # It thinks the first close brace ends the variable substitution.
2464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465
2466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467
2468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469
2470 ac_ext=c
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2476 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2477 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2496 fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2506 $as_echo "$CC" >&6; }
2507 else
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2509 $as_echo "no" >&6; }
2510 fi
2511
2512
2513 fi
2514 if test -z "$ac_cv_prog_CC"; then
2515 ac_ct_CC=$CC
2516 # Extract the first word of "gcc", so it can be a program name with args.
2517 set dummy gcc; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 if test -n "$ac_ct_CC"; then
2524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_ac_ct_CC="gcc"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537 done
2538 done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2544 if test -n "$ac_ct_CC"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2546 $as_echo "$ac_ct_CC" >&6; }
2547 else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2550 fi
2551
2552 if test "x$ac_ct_CC" = x; then
2553 CC=""
2554 else
2555 case $cross_compiling:$ac_tool_warned in
2556 yes:)
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2559 ac_tool_warned=yes ;;
2560 esac
2561 CC=$ac_ct_CC
2562 fi
2563 else
2564 CC="$ac_cv_prog_CC"
2565 fi
2566
2567 if test -z "$CC"; then
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}cc; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if test "${ac_cv_prog_CC+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC="$CC" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_CC="${ac_tool_prefix}cc"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 CC=$ac_cv_prog_CC
2597 if test -n "$CC"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2599 $as_echo "$CC" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 fi
2607 fi
2608 if test -z "$CC"; then
2609 # Extract the first word of "cc", so it can be a program name with args.
2610 set dummy cc; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 ac_prog_rejected=no
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2628 ac_prog_rejected=yes
2629 continue
2630 fi
2631 ac_cv_prog_CC="cc"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 if test $ac_prog_rejected = yes; then
2640 # We found a bogon in the path, so make sure we never use it.
2641 set dummy $ac_cv_prog_CC
2642 shift
2643 if test $# != 0; then
2644 # We chose a different compiler from the bogus one.
2645 # However, it has the same basename, so the bogon will be chosen
2646 # first if we set CC to just the basename; use the full file name.
2647 shift
2648 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2649 fi
2650 fi
2651 fi
2652 fi
2653 CC=$ac_cv_prog_CC
2654 if test -n "$CC"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2656 $as_echo "$CC" >&6; }
2657 else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 fi
2661
2662
2663 fi
2664 if test -z "$CC"; then
2665 if test -n "$ac_tool_prefix"; then
2666 for ac_prog in cl.exe
2667 do
2668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if test "${ac_cv_prog_CC+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 if test -n "$CC"; then
2676 ac_cv_prog_CC="$CC" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 CC=$ac_cv_prog_CC
2696 if test -n "$CC"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2698 $as_echo "$CC" >&6; }
2699 else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704
2705 test -n "$CC" && break
2706 done
2707 fi
2708 if test -z "$CC"; then
2709 ac_ct_CC=$CC
2710 for ac_prog in cl.exe
2711 do
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy $ac_prog; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$ac_ct_CC"; then
2720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_ac_ct_CC="$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740 if test -n "$ac_ct_CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2742 $as_echo "$ac_ct_CC" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749 test -n "$ac_ct_CC" && break
2750 done
2751
2752 if test "x$ac_ct_CC" = x; then
2753 CC=""
2754 else
2755 case $cross_compiling:$ac_tool_warned in
2756 yes:)
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2760 esac
2761 CC=$ac_ct_CC
2762 fi
2763 fi
2764
2765 fi
2766
2767
2768 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770 as_fn_error $? "no acceptable C compiler found in \$PATH
2771 See \`config.log' for more details" "$LINENO" 5 ; }
2772
2773 # Provide some information about the compiler.
2774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2775 set X $ac_compile
2776 ac_compiler=$2
2777 for ac_option in --version -v -V -qversion; do
2778 { { ac_try="$ac_compiler $ac_option >&5"
2779 case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782 esac
2783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2784 $as_echo "$ac_try_echo"; } >&5
2785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2786 ac_status=$?
2787 if test -s conftest.err; then
2788 sed '10a\
2789 ... rest of stderr output deleted ...
2790 10q' conftest.err >conftest.er1
2791 cat conftest.er1 >&5
2792 fi
2793 rm -f conftest.er1 conftest.err
2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795 test $ac_status = 0; }
2796 done
2797
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2800
2801 int
2802 main ()
2803 {
2804
2805 ;
2806 return 0;
2807 }
2808 _ACEOF
2809 ac_clean_files_save=$ac_clean_files
2810 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2811 # Try to create an executable without -o first, disregard a.out.
2812 # It will help us diagnose broken compilers, and finding out an intuition
2813 # of exeext.
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2815 $as_echo_n "checking whether the C compiler works... " >&6; }
2816 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2817
2818 # The possible output files:
2819 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2820
2821 ac_rmfiles=
2822 for ac_file in $ac_files
2823 do
2824 case $ac_file in
2825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2826 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2827 esac
2828 done
2829 rm -f $ac_rmfiles
2830
2831 if { { ac_try="$ac_link_default"
2832 case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2837 $as_echo "$ac_try_echo"; } >&5
2838 (eval "$ac_link_default") 2>&5
2839 ac_status=$?
2840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2841 test $ac_status = 0; }; then :
2842 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2843 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2844 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2845 # so that the user can short-circuit this test for compilers unknown to
2846 # Autoconf.
2847 for ac_file in $ac_files ''
2848 do
2849 test -f "$ac_file" || continue
2850 case $ac_file in
2851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2852 ;;
2853 [ab].out )
2854 # We found the default executable, but exeext='' is most
2855 # certainly right.
2856 break;;
2857 *.* )
2858 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2859 then :; else
2860 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2861 fi
2862 # We set ac_cv_exeext here because the later test for it is not
2863 # safe: cross compilers may not add the suffix if given an `-o'
2864 # argument, so we may need to know it at that point already.
2865 # Even if this section looks crufty: it has the advantage of
2866 # actually working.
2867 break;;
2868 * )
2869 break;;
2870 esac
2871 done
2872 test "$ac_cv_exeext" = no && ac_cv_exeext=
2873
2874 else
2875 ac_file=''
2876 fi
2877 if test -z "$ac_file"; then :
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 $as_echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885 as_fn_error 77 "C compiler cannot create executables
2886 See \`config.log' for more details" "$LINENO" 5 ; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 fi
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2892 $as_echo_n "checking for C compiler default output file name... " >&6; }
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2894 $as_echo "$ac_file" >&6; }
2895 ac_exeext=$ac_cv_exeext
2896
2897 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2898 ac_clean_files=$ac_clean_files_save
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2900 $as_echo_n "checking for suffix of executables... " >&6; }
2901 if { { ac_try="$ac_link"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2907 $as_echo "$ac_try_echo"; } >&5
2908 (eval "$ac_link") 2>&5
2909 ac_status=$?
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; }; then :
2912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2914 # work properly (i.e., refer to `conftest.exe'), while it won't with
2915 # `rm'.
2916 for ac_file in conftest.exe conftest conftest.*; do
2917 test -f "$ac_file" || continue
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921 break;;
2922 * ) break;;
2923 esac
2924 done
2925 else
2926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2928 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2929 See \`config.log' for more details" "$LINENO" 5 ; }
2930 fi
2931 rm -f conftest conftest$ac_cv_exeext
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2933 $as_echo "$ac_cv_exeext" >&6; }
2934
2935 rm -f conftest.$ac_ext
2936 EXEEXT=$ac_cv_exeext
2937 ac_exeext=$EXEEXT
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2940 #include <stdio.h>
2941 int
2942 main ()
2943 {
2944 FILE *f = fopen ("conftest.out", "w");
2945 return ferror (f) || fclose (f) != 0;
2946
2947 ;
2948 return 0;
2949 }
2950 _ACEOF
2951 ac_clean_files="$ac_clean_files conftest.out"
2952 # Check that the compiler produces executables we can run. If not, either
2953 # the compiler is broken, or we cross compile.
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2955 $as_echo_n "checking whether we are cross compiling... " >&6; }
2956 if test "$cross_compiling" != yes; then
2957 { { ac_try="$ac_link"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963 $as_echo "$ac_try_echo"; } >&5
2964 (eval "$ac_link") 2>&5
2965 ac_status=$?
2966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967 test $ac_status = 0; }
2968 if { ac_try='./conftest$ac_cv_exeext'
2969 { { case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2974 $as_echo "$ac_try_echo"; } >&5
2975 (eval "$ac_try") 2>&5
2976 ac_status=$?
2977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2978 test $ac_status = 0; }; }; then
2979 cross_compiling=no
2980 else
2981 if test "$cross_compiling" = maybe; then
2982 cross_compiling=yes
2983 else
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error $? "cannot run C compiled programs.
2987 If you meant to cross compile, use \`--host'.
2988 See \`config.log' for more details" "$LINENO" 5 ; }
2989 fi
2990 fi
2991 fi
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2993 $as_echo "$cross_compiling" >&6; }
2994
2995 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2996 ac_clean_files=$ac_clean_files_save
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2998 $as_echo_n "checking for suffix of object files... " >&6; }
2999 if test "${ac_cv_objext+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3004
3005 int
3006 main ()
3007 {
3008
3009 ;
3010 return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.o conftest.obj
3014 if { { ac_try="$ac_compile"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020 $as_echo "$ac_try_echo"; } >&5
3021 (eval "$ac_compile") 2>&5
3022 ac_status=$?
3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }; then :
3025 for ac_file in conftest.o conftest.obj conftest.*; do
3026 test -f "$ac_file" || continue;
3027 case $ac_file in
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3030 break;;
3031 esac
3032 done
3033 else
3034 $as_echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039 as_fn_error $? "cannot compute suffix of object files: cannot compile
3040 See \`config.log' for more details" "$LINENO" 5 ; }
3041 fi
3042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3043 fi
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3045 $as_echo "$ac_cv_objext" >&6; }
3046 OBJEXT=$ac_cv_objext
3047 ac_objext=$OBJEXT
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3049 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3050 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3055
3056 int
3057 main ()
3058 {
3059 #ifndef __GNUC__
3060 choke me
3061 #endif
3062
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 if ac_fn_c_try_compile "$LINENO"; then :
3068 ac_compiler_gnu=yes
3069 else
3070 ac_compiler_gnu=no
3071 fi
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3074
3075 fi
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3077 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3078 if test $ac_compiler_gnu = yes; then
3079 GCC=yes
3080 else
3081 GCC=
3082 fi
3083 ac_test_CFLAGS=${CFLAGS+set}
3084 ac_save_CFLAGS=$CFLAGS
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3086 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3087 if test "${ac_cv_prog_cc_g+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 ac_save_c_werror_flag=$ac_c_werror_flag
3091 ac_c_werror_flag=yes
3092 ac_cv_prog_cc_g=no
3093 CFLAGS="-g"
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3096
3097 int
3098 main ()
3099 {
3100
3101 ;
3102 return 0;
3103 }
3104 _ACEOF
3105 if ac_fn_c_try_compile "$LINENO"; then :
3106 ac_cv_prog_cc_g=yes
3107 else
3108 CFLAGS=""
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111
3112 int
3113 main ()
3114 {
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 if ac_fn_c_try_compile "$LINENO"; then :
3121
3122 else
3123 ac_c_werror_flag=$ac_save_c_werror_flag
3124 CFLAGS="-g"
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3127
3128 int
3129 main ()
3130 {
3131
3132 ;
3133 return 0;
3134 }
3135 _ACEOF
3136 if ac_fn_c_try_compile "$LINENO"; then :
3137 ac_cv_prog_cc_g=yes
3138 fi
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 fi
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 fi
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 ac_c_werror_flag=$ac_save_c_werror_flag
3145 fi
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3147 $as_echo "$ac_cv_prog_cc_g" >&6; }
3148 if test "$ac_test_CFLAGS" = set; then
3149 CFLAGS=$ac_save_CFLAGS
3150 elif test $ac_cv_prog_cc_g = yes; then
3151 if test "$GCC" = yes; then
3152 CFLAGS="-g -O2"
3153 else
3154 CFLAGS="-g"
3155 fi
3156 else
3157 if test "$GCC" = yes; then
3158 CFLAGS="-O2"
3159 else
3160 CFLAGS=
3161 fi
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3164 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3165 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 ac_cv_prog_cc_c89=no
3169 ac_save_CC=$CC
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3172 #include <stdarg.h>
3173 #include <stdio.h>
3174 #include <sys/types.h>
3175 #include <sys/stat.h>
3176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3177 struct buf { int x; };
3178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3179 static char *e (p, i)
3180 char **p;
3181 int i;
3182 {
3183 return p[i];
3184 }
3185 static char *f (char * (*g) (char **, int), char **p, ...)
3186 {
3187 char *s;
3188 va_list v;
3189 va_start (v,p);
3190 s = g (p, va_arg (v,int));
3191 va_end (v);
3192 return s;
3193 }
3194
3195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3196 function prototypes and stuff, but not '\xHH' hex character constants.
3197 These don't provoke an error unfortunately, instead are silently treated
3198 as 'x'. The following induces an error, until -std is added to get
3199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3200 array size at least. It's necessary to write '\x00'==0 to get something
3201 that's true only with -std. */
3202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3203
3204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3205 inside strings and character constants. */
3206 #define FOO(x) 'x'
3207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3208
3209 int test (int i, double x);
3210 struct s1 {int (*f) (int a);};
3211 struct s2 {int (*f) (double a);};
3212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3213 int argc;
3214 char **argv;
3215 int
3216 main ()
3217 {
3218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3225 do
3226 CC="$ac_save_CC $ac_arg"
3227 if ac_fn_c_try_compile "$LINENO"; then :
3228 ac_cv_prog_cc_c89=$ac_arg
3229 fi
3230 rm -f core conftest.err conftest.$ac_objext
3231 test "x$ac_cv_prog_cc_c89" != "xno" && break
3232 done
3233 rm -f conftest.$ac_ext
3234 CC=$ac_save_CC
3235
3236 fi
3237 # AC_CACHE_VAL
3238 case "x$ac_cv_prog_cc_c89" in
3239 x)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3241 $as_echo "none needed" >&6; } ;;
3242 xno)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3244 $as_echo "unsupported" >&6; } ;;
3245 *)
3246 CC="$CC $ac_cv_prog_cc_c89"
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3249 esac
3250 if test "x$ac_cv_prog_cc_c89" != xno; then :
3251
3252 fi
3253
3254 ac_ext=c
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3261 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3262 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 ac_cv_prog_cc_c99=no
3266 ac_save_CC=$CC
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3269 #include <stdarg.h>
3270 #include <stdbool.h>
3271 #include <stdlib.h>
3272 #include <wchar.h>
3273 #include <stdio.h>
3274
3275 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3276 #define debug(...) fprintf (stderr, __VA_ARGS__)
3277 #define showlist(...) puts (#__VA_ARGS__)
3278 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3279 static void
3280 test_varargs_macros (void)
3281 {
3282 int x = 1234;
3283 int y = 5678;
3284 debug ("Flag");
3285 debug ("X = %d\n", x);
3286 showlist (The first, second, and third items.);
3287 report (x>y, "x is %d but y is %d", x, y);
3288 }
3289
3290 // Check long long types.
3291 #define BIG64 18446744073709551615ull
3292 #define BIG32 4294967295ul
3293 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3294 #if !BIG_OK
3295 your preprocessor is broken;
3296 #endif
3297 #if BIG_OK
3298 #else
3299 your preprocessor is broken;
3300 #endif
3301 static long long int bignum = -9223372036854775807LL;
3302 static unsigned long long int ubignum = BIG64;
3303
3304 struct incomplete_array
3305 {
3306 int datasize;
3307 double data[];
3308 };
3309
3310 struct named_init {
3311 int number;
3312 const wchar_t *name;
3313 double average;
3314 };
3315
3316 typedef const char *ccp;
3317
3318 static inline int
3319 test_restrict (ccp restrict text)
3320 {
3321 // See if C++-style comments work.
3322 // Iterate through items via the restricted pointer.
3323 // Also check for declarations in for loops.
3324 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3325 continue;
3326 return 0;
3327 }
3328
3329 // Check varargs and va_copy.
3330 static void
3331 test_varargs (const char *format, ...)
3332 {
3333 va_list args;
3334 va_start (args, format);
3335 va_list args_copy;
3336 va_copy (args_copy, args);
3337
3338 const char *str;
3339 int number;
3340 float fnumber;
3341
3342 while (*format)
3343 {
3344 switch (*format++)
3345 {
3346 case 's': // string
3347 str = va_arg (args_copy, const char *);
3348 break;
3349 case 'd': // int
3350 number = va_arg (args_copy, int);
3351 break;
3352 case 'f': // float
3353 fnumber = va_arg (args_copy, double);
3354 break;
3355 default:
3356 break;
3357 }
3358 }
3359 va_end (args_copy);
3360 va_end (args);
3361 }
3362
3363 int
3364 main ()
3365 {
3366
3367 // Check bool.
3368 _Bool success = false;
3369
3370 // Check restrict.
3371 if (test_restrict ("String literal") == 0)
3372 success = true;
3373 char *restrict newvar = "Another string";
3374
3375 // Check varargs.
3376 test_varargs ("s, d' f .", "string", 65, 34.234);
3377 test_varargs_macros ();
3378
3379 // Check flexible array members.
3380 struct incomplete_array *ia =
3381 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3382 ia->datasize = 10;
3383 for (int i = 0; i < ia->datasize; ++i)
3384 ia->data[i] = i * 1.234;
3385
3386 // Check named initializers.
3387 struct named_init ni = {
3388 .number = 34,
3389 .name = L"Test wide string",
3390 .average = 543.34343,
3391 };
3392
3393 ni.number = 58;
3394
3395 int dynamic_array[ni.number];
3396 dynamic_array[ni.number - 1] = 543;
3397
3398 // work around unused variable warnings
3399 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3400 || dynamic_array[ni.number - 1] != 543);
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3407 do
3408 CC="$ac_save_CC $ac_arg"
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410 ac_cv_prog_cc_c99=$ac_arg
3411 fi
3412 rm -f core conftest.err conftest.$ac_objext
3413 test "x$ac_cv_prog_cc_c99" != "xno" && break
3414 done
3415 rm -f conftest.$ac_ext
3416 CC=$ac_save_CC
3417
3418 fi
3419 # AC_CACHE_VAL
3420 case "x$ac_cv_prog_cc_c99" in
3421 x)
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3423 $as_echo "none needed" >&6; } ;;
3424 xno)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3426 $as_echo "unsupported" >&6; } ;;
3427 *)
3428 CC="$CC $ac_cv_prog_cc_c99"
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3430 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3431 esac
3432 if test "x$ac_cv_prog_cc_c99" != xno; then :
3433
3434 fi
3435
3436
3437
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3445 # On Suns, sometimes $CPP names a directory.
3446 if test -n "$CPP" && test -d "$CPP"; then
3447 CPP=
3448 fi
3449 if test -z "$CPP"; then
3450 if test "${ac_cv_prog_CPP+set}" = set; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 # Double quotes because CPP needs to be expanded
3454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3455 do
3456 ac_preproc_ok=false
3457 for ac_c_preproc_warn_flag in '' yes
3458 do
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462 # <limits.h> exists even on freestanding compilers.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error" is here to catch this case.
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3467 #ifdef __STDC__
3468 # include <limits.h>
3469 #else
3470 # include <assert.h>
3471 #endif
3472 Syntax error
3473 _ACEOF
3474 if ac_fn_c_try_cpp "$LINENO"; then :
3475
3476 else
3477 # Broken: fails on valid input.
3478 continue
3479 fi
3480 rm -f conftest.err conftest.i conftest.$ac_ext
3481
3482 # OK, works on sane cases. Now check whether nonexistent headers
3483 # can be detected and how.
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486 #include <ac_nonexistent.h>
3487 _ACEOF
3488 if ac_fn_c_try_cpp "$LINENO"; then :
3489 # Broken: success on invalid input.
3490 continue
3491 else
3492 # Passes both tests.
3493 ac_preproc_ok=:
3494 break
3495 fi
3496 rm -f conftest.err conftest.i conftest.$ac_ext
3497
3498 done
3499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3500 rm -f conftest.i conftest.err conftest.$ac_ext
3501 if $ac_preproc_ok; then :
3502 break
3503 fi
3504
3505 done
3506 ac_cv_prog_CPP=$CPP
3507
3508 fi
3509 CPP=$ac_cv_prog_CPP
3510 else
3511 ac_cv_prog_CPP=$CPP
3512 fi
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3514 $as_echo "$CPP" >&6; }
3515 ac_preproc_ok=false
3516 for ac_c_preproc_warn_flag in '' yes
3517 do
3518 # Use a header file that comes with gcc, so configuring glibc
3519 # with a fresh cross-compiler works.
3520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521 # <limits.h> exists even on freestanding compilers.
3522 # On the NeXT, cc -E runs the code through the compiler's parser,
3523 # not just through cpp. "Syntax error" is here to catch this case.
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #ifdef __STDC__
3527 # include <limits.h>
3528 #else
3529 # include <assert.h>
3530 #endif
3531 Syntax error
3532 _ACEOF
3533 if ac_fn_c_try_cpp "$LINENO"; then :
3534
3535 else
3536 # Broken: fails on valid input.
3537 continue
3538 fi
3539 rm -f conftest.err conftest.i conftest.$ac_ext
3540
3541 # OK, works on sane cases. Now check whether nonexistent headers
3542 # can be detected and how.
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <ac_nonexistent.h>
3546 _ACEOF
3547 if ac_fn_c_try_cpp "$LINENO"; then :
3548 # Broken: success on invalid input.
3549 continue
3550 else
3551 # Passes both tests.
3552 ac_preproc_ok=:
3553 break
3554 fi
3555 rm -f conftest.err conftest.i conftest.$ac_ext
3556
3557 done
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.i conftest.err conftest.$ac_ext
3560 if $ac_preproc_ok; then :
3561
3562 else
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details" "$LINENO" 5 ; }
3567 fi
3568
3569 ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574
3575
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3577 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3578 if test "${ac_cv_path_GREP+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 if test -z "$GREP"; then
3582 ac_path_GREP_found=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3586 do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_prog in grep ggrep; do
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3593 # Check for GNU ac_path_GREP and select it if it is found.
3594 # Check for GNU $ac_path_GREP
3595 case `"$ac_path_GREP" --version 2>&1` in
3596 *GNU*)
3597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3598 *)
3599 ac_count=0
3600 $as_echo_n 0123456789 >"conftest.in"
3601 while :
3602 do
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 $as_echo 'GREP' >> "conftest.nl"
3607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3609 as_fn_arith $ac_count + 1 && ac_count=$as_val
3610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_GREP="$ac_path_GREP"
3613 ac_path_GREP_max=$ac_count
3614 fi
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3617 done
3618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 esac
3620
3621 $ac_path_GREP_found && break 3
3622 done
3623 done
3624 done
3625 IFS=$as_save_IFS
3626 if test -z "$ac_cv_path_GREP"; then
3627 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3628 fi
3629 else
3630 ac_cv_path_GREP=$GREP
3631 fi
3632
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3635 $as_echo "$ac_cv_path_GREP" >&6; }
3636 GREP="$ac_cv_path_GREP"
3637
3638
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3640 $as_echo_n "checking for egrep... " >&6; }
3641 if test "${ac_cv_path_EGREP+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3645 then ac_cv_path_EGREP="$GREP -E"
3646 else
3647 if test -z "$EGREP"; then
3648 ac_path_EGREP_found=false
3649 # Loop through the user's path and test for each of PROGNAME-LIST
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3652 do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_prog in egrep; do
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3658 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3659 # Check for GNU ac_path_EGREP and select it if it is found.
3660 # Check for GNU $ac_path_EGREP
3661 case `"$ac_path_EGREP" --version 2>&1` in
3662 *GNU*)
3663 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3664 *)
3665 ac_count=0
3666 $as_echo_n 0123456789 >"conftest.in"
3667 while :
3668 do
3669 cat "conftest.in" "conftest.in" >"conftest.tmp"
3670 mv "conftest.tmp" "conftest.in"
3671 cp "conftest.in" "conftest.nl"
3672 $as_echo 'EGREP' >> "conftest.nl"
3673 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3675 as_fn_arith $ac_count + 1 && ac_count=$as_val
3676 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3677 # Best one so far, save it but keep looking for a better one
3678 ac_cv_path_EGREP="$ac_path_EGREP"
3679 ac_path_EGREP_max=$ac_count
3680 fi
3681 # 10*(2^10) chars as input seems more than enough
3682 test $ac_count -gt 10 && break
3683 done
3684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3685 esac
3686
3687 $ac_path_EGREP_found && break 3
3688 done
3689 done
3690 done
3691 IFS=$as_save_IFS
3692 if test -z "$ac_cv_path_EGREP"; then
3693 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3694 fi
3695 else
3696 ac_cv_path_EGREP=$EGREP
3697 fi
3698
3699 fi
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3702 $as_echo "$ac_cv_path_EGREP" >&6; }
3703 EGREP="$ac_cv_path_EGREP"
3704
3705
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3707 $as_echo_n "checking for ANSI C header files... " >&6; }
3708 if test "${ac_cv_header_stdc+set}" = set; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713 #include <stdlib.h>
3714 #include <stdarg.h>
3715 #include <string.h>
3716 #include <float.h>
3717
3718 int
3719 main ()
3720 {
3721
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727 ac_cv_header_stdc=yes
3728 else
3729 ac_cv_header_stdc=no
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732
3733 if test $ac_cv_header_stdc = yes; then
3734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737 #include <string.h>
3738
3739 _ACEOF
3740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3741 $EGREP "memchr" >/dev/null 2>&1; then :
3742
3743 else
3744 ac_cv_header_stdc=no
3745 fi
3746 rm -f conftest*
3747
3748 fi
3749
3750 if test $ac_cv_header_stdc = yes; then
3751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <stdlib.h>
3755
3756 _ACEOF
3757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3758 $EGREP "free" >/dev/null 2>&1; then :
3759
3760 else
3761 ac_cv_header_stdc=no
3762 fi
3763 rm -f conftest*
3764
3765 fi
3766
3767 if test $ac_cv_header_stdc = yes; then
3768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3769 if test "$cross_compiling" = yes; then :
3770 :
3771 else
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774 #include <ctype.h>
3775 #include <stdlib.h>
3776 #if ((' ' & 0x0FF) == 0x020)
3777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3779 #else
3780 # define ISLOWER(c) \
3781 (('a' <= (c) && (c) <= 'i') \
3782 || ('j' <= (c) && (c) <= 'r') \
3783 || ('s' <= (c) && (c) <= 'z'))
3784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3785 #endif
3786
3787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3788 int
3789 main ()
3790 {
3791 int i;
3792 for (i = 0; i < 256; i++)
3793 if (XOR (islower (i), ISLOWER (i))
3794 || toupper (i) != TOUPPER (i))
3795 return 2;
3796 return 0;
3797 }
3798 _ACEOF
3799 if ac_fn_c_try_run "$LINENO"; then :
3800
3801 else
3802 ac_cv_header_stdc=no
3803 fi
3804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3805 conftest.$ac_objext conftest.beam conftest.$ac_ext
3806 fi
3807
3808 fi
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3811 $as_echo "$ac_cv_header_stdc" >&6; }
3812 if test $ac_cv_header_stdc = yes; then
3813
3814 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3815
3816 fi
3817
3818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3819 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3820 inttypes.h stdint.h unistd.h
3821 do :
3822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3823 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3824 "
3825 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3826 cat >>confdefs.h <<_ACEOF
3827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3828 _ACEOF
3829
3830 fi
3831
3832 done
3833
3834
3835
3836
3837
3838
3839
3840
3841 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 case $PKG_CONFIG in
3851 [\\/]* | ?:[\\/]*)
3852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3853 ;;
3854 *)
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3865 fi
3866 done
3867 done
3868 IFS=$as_save_IFS
3869
3870 ;;
3871 esac
3872 fi
3873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3874 if test -n "$PKG_CONFIG"; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3876 $as_echo "$PKG_CONFIG" >&6; }
3877 else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 fi
3881
3882
3883 fi
3884 if test -z "$ac_cv_path_PKG_CONFIG"; then
3885 ac_pt_PKG_CONFIG=$PKG_CONFIG
3886 # Extract the first word of "pkg-config", so it can be a program name with args.
3887 set dummy pkg-config; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 case $ac_pt_PKG_CONFIG in
3894 [\\/]* | ?:[\\/]*)
3895 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3896 ;;
3897 *)
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909 done
3910 done
3911 IFS=$as_save_IFS
3912
3913 ;;
3914 esac
3915 fi
3916 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3917 if test -n "$ac_pt_PKG_CONFIG"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3919 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3920 else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925 if test "x$ac_pt_PKG_CONFIG" = x; then
3926 PKG_CONFIG=""
3927 else
3928 case $cross_compiling:$ac_tool_warned in
3929 yes:)
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932 ac_tool_warned=yes ;;
3933 esac
3934 PKG_CONFIG=$ac_pt_PKG_CONFIG
3935 fi
3936 else
3937 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3938 fi
3939
3940 fi
3941 if test -n "$PKG_CONFIG"; then
3942 _pkg_min_version=0.9.0
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3944 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3945 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 PKG_CONFIG=""
3952 fi
3953 fi
3954 # Make sure we can run config.sub.
3955 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3956 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3959 $as_echo_n "checking build system type... " >&6; }
3960 if test "${ac_cv_build+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 ac_build_alias=$build_alias
3964 test "x$ac_build_alias" = x &&
3965 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3966 test "x$ac_build_alias" = x &&
3967 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3968 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3969 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3970
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3973 $as_echo "$ac_cv_build" >&6; }
3974 case $ac_cv_build in
3975 *-*-*) ;;
3976 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3977 esac
3978 build=$ac_cv_build
3979 ac_save_IFS=$IFS; IFS='-'
3980 set x $ac_cv_build
3981 shift
3982 build_cpu=$1
3983 build_vendor=$2
3984 shift; shift
3985 # Remember, the first character of IFS is used to create $*,
3986 # except with old shells:
3987 build_os=$*
3988 IFS=$ac_save_IFS
3989 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3990
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3993 $as_echo_n "checking host system type... " >&6; }
3994 if test "${ac_cv_host+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test "x$host_alias" = x; then
3998 ac_cv_host=$ac_cv_build
3999 else
4000 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4001 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4002 fi
4003
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4006 $as_echo "$ac_cv_host" >&6; }
4007 case $ac_cv_host in
4008 *-*-*) ;;
4009 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4010 esac
4011 host=$ac_cv_host
4012 ac_save_IFS=$IFS; IFS='-'
4013 set x $ac_cv_host
4014 shift
4015 host_cpu=$1
4016 host_vendor=$2
4017 shift; shift
4018 # Remember, the first character of IFS is used to create $*,
4019 # except with old shells:
4020 host_os=$*
4021 IFS=$ac_save_IFS
4022 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4023
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4026 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4027 if test "${ac_cv_path_SED+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4031 for ac_i in 1 2 3 4 5 6 7; do
4032 ac_script="$ac_script$as_nl$ac_script"
4033 done
4034 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4035 { ac_script=; unset ac_script;}
4036 if test -z "$SED"; then
4037 ac_path_SED_found=false
4038 # Loop through the user's path and test for each of PROGNAME-LIST
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_prog in sed gsed; do
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4047 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4048 # Check for GNU ac_path_SED and select it if it is found.
4049 # Check for GNU $ac_path_SED
4050 case `"$ac_path_SED" --version 2>&1` in
4051 *GNU*)
4052 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4053 *)
4054 ac_count=0
4055 $as_echo_n 0123456789 >"conftest.in"
4056 while :
4057 do
4058 cat "conftest.in" "conftest.in" >"conftest.tmp"
4059 mv "conftest.tmp" "conftest.in"
4060 cp "conftest.in" "conftest.nl"
4061 $as_echo '' >> "conftest.nl"
4062 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064 as_fn_arith $ac_count + 1 && ac_count=$as_val
4065 if test $ac_count -gt ${ac_path_SED_max-0}; then
4066 # Best one so far, save it but keep looking for a better one
4067 ac_cv_path_SED="$ac_path_SED"
4068 ac_path_SED_max=$ac_count
4069 fi
4070 # 10*(2^10) chars as input seems more than enough
4071 test $ac_count -gt 10 && break
4072 done
4073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074 esac
4075
4076 $ac_path_SED_found && break 3
4077 done
4078 done
4079 done
4080 IFS=$as_save_IFS
4081 if test -z "$ac_cv_path_SED"; then
4082 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4083 fi
4084 else
4085 ac_cv_path_SED=$SED
4086 fi
4087
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4090 $as_echo "$ac_cv_path_SED" >&6; }
4091 SED="$ac_cv_path_SED"
4092 rm -f conftest.sed
4093
4094
4095
4096
4097
4098 if test "x$GCC" = xyes ; then
4099 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4100 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4101 -Wbad-function-cast -Wformat=2"
4102 case `$CC -dumpversion` in
4103 3.4.* | 4.*)
4104 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4105 ;;
4106 esac
4107 else
4108 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4109 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4110 SUNCC="yes"
4111 else
4112 SUNCC="no"
4113 fi
4114
4115 if test "x$SUNCC" = "xyes"; then
4116 CWARNFLAGS="-v"
4117 fi
4118 fi
4119
4120
4121
4122 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4123
4124
4125
4126 # Check whether --enable-strict-compilation was given.
4127 if test "${enable_strict_compilation+set}" = set; then :
4128 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4129 else
4130 STRICT_COMPILE=no
4131 fi
4132
4133 if test "x$STRICT_COMPILE" = "xyes"; then
4134 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4135 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4136 SUNCC="yes"
4137 else
4138 SUNCC="no"
4139 fi
4140
4141 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4142 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4143 INTELCC="yes"
4144 else
4145 INTELCC="no"
4146 fi
4147
4148 if test "x$GCC" = xyes ; then
4149 STRICT_CFLAGS="-pedantic -Werror"
4150 elif test "x$SUNCC" = "xyes"; then
4151 STRICT_CFLAGS="-errwarn"
4152 elif test "x$INTELCC" = "xyes"; then
4153 STRICT_CFLAGS="-Werror"
4154 fi
4155 fi
4156 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4157
4158
4159
4160
4161 cat >>confdefs.h <<_ACEOF
4162 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4163 _ACEOF
4164
4165 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4166 if test "x$PVM" = "x"; then
4167 PVM="0"
4168 fi
4169
4170 cat >>confdefs.h <<_ACEOF
4171 #define PACKAGE_VERSION_MINOR $PVM
4172 _ACEOF
4173
4174 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4175 if test "x$PVP" = "x"; then
4176 PVP="0"
4177 fi
4178
4179 cat >>confdefs.h <<_ACEOF
4180 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4181 _ACEOF
4182
4183
4184
4185 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4186 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4187 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4188 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4189
4190
4191
4192
4193 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4194 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4195 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4196 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4197 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4198
4199
4200
4201
4202
4203
4204 if test x$APP_MAN_SUFFIX = x ; then
4205 APP_MAN_SUFFIX=1
4206 fi
4207 if test x$APP_MAN_DIR = x ; then
4208 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4209 fi
4210
4211 if test x$LIB_MAN_SUFFIX = x ; then
4212 LIB_MAN_SUFFIX=3
4213 fi
4214 if test x$LIB_MAN_DIR = x ; then
4215 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4216 fi
4217
4218 if test x$FILE_MAN_SUFFIX = x ; then
4219 case $host_os in
4220 solaris*) FILE_MAN_SUFFIX=4 ;;
4221 *) FILE_MAN_SUFFIX=5 ;;
4222 esac
4223 fi
4224 if test x$FILE_MAN_DIR = x ; then
4225 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4226 fi
4227
4228 if test x$MISC_MAN_SUFFIX = x ; then
4229 case $host_os in
4230 solaris*) MISC_MAN_SUFFIX=5 ;;
4231 *) MISC_MAN_SUFFIX=7 ;;
4232 esac
4233 fi
4234 if test x$MISC_MAN_DIR = x ; then
4235 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4236 fi
4237
4238 if test x$DRIVER_MAN_SUFFIX = x ; then
4239 case $host_os in
4240 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4241 *) DRIVER_MAN_SUFFIX=4 ;;
4242 esac
4243 fi
4244 if test x$DRIVER_MAN_DIR = x ; then
4245 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4246 fi
4247
4248 if test x$ADMIN_MAN_SUFFIX = x ; then
4249 case $host_os in
4250 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4251 *) ADMIN_MAN_SUFFIX=8 ;;
4252 esac
4253 fi
4254 if test x$ADMIN_MAN_DIR = x ; then
4255 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4256 fi
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272 XORG_MAN_PAGE="X Version 11"
4273
4274 MAN_SUBSTS="\
4275 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4276 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4277 -e 's|__xservername__|Xorg|g' \
4278 -e 's|__xconfigfile__|xorg.conf|g' \
4279 -e 's|__projectroot__|\$(prefix)|g' \
4280 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4281 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4282 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4283 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4284 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4285 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4286
4287
4288
4289 # Check whether --enable-silent-rules was given.
4290 if test "${enable_silent_rules+set}" = set; then :
4291 enableval=$enable_silent_rules;
4292 fi
4293
4294 case $enable_silent_rules in
4295 yes) AM_DEFAULT_VERBOSITY=0;;
4296 no) AM_DEFAULT_VERBOSITY=1;;
4297 *) AM_DEFAULT_VERBOSITY=0;;
4298 esac
4299 AM_BACKSLASH='\'
4300
4301
4302
4303
4304 ac_config_headers="$ac_config_headers config.h"
4305
4306 ac_aux_dir=
4307 for ac_dir in . "$srcdir"/.; do
4308 if test -f "$ac_dir/install-sh"; then
4309 ac_aux_dir=$ac_dir
4310 ac_install_sh="$ac_aux_dir/install-sh -c"
4311 break
4312 elif test -f "$ac_dir/install.sh"; then
4313 ac_aux_dir=$ac_dir
4314 ac_install_sh="$ac_aux_dir/install.sh -c"
4315 break
4316 elif test -f "$ac_dir/shtool"; then
4317 ac_aux_dir=$ac_dir
4318 ac_install_sh="$ac_aux_dir/shtool install -c"
4319 break
4320 fi
4321 done
4322 if test -z "$ac_aux_dir"; then
4323 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
4324 fi
4325
4326 # These three variables are undocumented and unsupported,
4327 # and are intended to be withdrawn in a future Autoconf release.
4328 # They can cause serious problems if a builder's source tree is in a directory
4329 # whose full name contains unusual characters.
4330 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4331 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4332 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4333
4334
4335
4336 # Initialize Automake
4337 am__api_version='1.11'
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4340 $as_echo_n "checking whether build environment is sane... " >&6; }
4341 # Just in case
4342 sleep 1
4343 echo timestamp > conftest.file
4344 # Reject unsafe characters in $srcdir or the absolute working directory
4345 # name. Accept space and tab only in the latter.
4346 am_lf='
4347 '
4348 case `pwd` in
4349 *[\\\"\#\$\&\'\`$am_lf]*)
4350 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
4351 esac
4352 case $srcdir in
4353 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4354 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
4355 esac
4356
4357 # Do `set' in a subshell so we don't clobber the current shell's
4358 # arguments. Must try -L first in case configure is actually a
4359 # symlink; some systems play weird games with the mod time of symlinks
4360 # (eg FreeBSD returns the mod time of the symlink's containing
4361 # directory).
4362 if (
4363 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4364 if test "$*" = "X"; then
4365 # -L didn't work.
4366 set X `ls -t "$srcdir/configure" conftest.file`
4367 fi
4368 rm -f conftest.file
4369 if test "$*" != "X $srcdir/configure conftest.file" \
4370 && test "$*" != "X conftest.file $srcdir/configure"; then
4371
4372 # If neither matched, then we have a broken ls. This can happen
4373 # if, for instance, CONFIG_SHELL is bash and it inherits a
4374 # broken ls alias from the environment. This has actually
4375 # happened. Such a system could not be considered "sane".
4376 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4377 alias in your environment" "$LINENO" 5
4378 fi
4379
4380 test "$2" = conftest.file
4381 )
4382 then
4383 # Ok.
4384 :
4385 else
4386 as_fn_error $? "newly created file is older than distributed files!
4387 Check your system clock" "$LINENO" 5
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4390 $as_echo "yes" >&6; }
4391 test "$program_prefix" != NONE &&
4392 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4393 # Use a double $ so make ignores it.
4394 test "$program_suffix" != NONE &&
4395 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4396 # Double any \ or $.
4397 # By default was `s,x,x', remove it if useless.
4398 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4399 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4400
4401 # expand $ac_aux_dir to an absolute path
4402 am_aux_dir=`cd $ac_aux_dir && pwd`
4403
4404 if test x"${MISSING+set}" != xset; then
4405 case $am_aux_dir in
4406 *\ * | *\ *)
4407 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4408 *)
4409 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4410 esac
4411 fi
4412 # Use eval to expand $SHELL
4413 if eval "$MISSING --run true"; then
4414 am_missing_run="$MISSING --run "
4415 else
4416 am_missing_run=
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4418 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4419 fi
4420
4421 if test x"${install_sh}" != xset; then
4422 case $am_aux_dir in
4423 *\ * | *\ *)
4424 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4425 *)
4426 install_sh="\${SHELL} $am_aux_dir/install-sh"
4427 esac
4428 fi
4429
4430 # Installed binaries are usually stripped using `strip' when the user
4431 # run `make install-strip'. However `strip' might not be the right
4432 # tool to use in cross-compilation environments, therefore Automake
4433 # will honor the `STRIP' environment variable to overrule this program.
4434 if test "$cross_compiling" != no; then
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}strip; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if test "${ac_cv_prog_STRIP+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$STRIP"; then
4444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 STRIP=$ac_cv_prog_STRIP
4464 if test -n "$STRIP"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4466 $as_echo "$STRIP" >&6; }
4467 else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4470 fi
4471
4472
4473 fi
4474 if test -z "$ac_cv_prog_STRIP"; then
4475 ac_ct_STRIP=$STRIP
4476 # Extract the first word of "strip", so it can be a program name with args.
4477 set dummy strip; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$ac_ct_STRIP"; then
4484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_STRIP="strip"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4504 if test -n "$ac_ct_STRIP"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4506 $as_echo "$ac_ct_STRIP" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4511
4512 if test "x$ac_ct_STRIP" = x; then
4513 STRIP=":"
4514 else
4515 case $cross_compiling:$ac_tool_warned in
4516 yes:)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4519 ac_tool_warned=yes ;;
4520 esac
4521 STRIP=$ac_ct_STRIP
4522 fi
4523 else
4524 STRIP="$ac_cv_prog_STRIP"
4525 fi
4526
4527 fi
4528 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4531 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4532 if test -z "$MKDIR_P"; then
4533 if test "${ac_cv_path_mkdir+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_prog in mkdir gmkdir; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4544 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4545 'mkdir (GNU coreutils) '* | \
4546 'mkdir (coreutils) '* | \
4547 'mkdir (fileutils) '4.1*)
4548 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4549 break 3;;
4550 esac
4551 done
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556 fi
4557
4558 test -d ./--version && rmdir ./--version
4559 if test "${ac_cv_path_mkdir+set}" = set; then
4560 MKDIR_P="$ac_cv_path_mkdir -p"
4561 else
4562 # As a last resort, use the slow shell script. Don't cache a
4563 # value for MKDIR_P within a source directory, because that will
4564 # break other packages using the cache if that directory is
4565 # removed, or if the value is a relative name.
4566 MKDIR_P="$ac_install_sh -d"
4567 fi
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4570 $as_echo "$MKDIR_P" >&6; }
4571
4572 mkdir_p="$MKDIR_P"
4573 case $mkdir_p in
4574 [\\/$]* | ?:[\\/]*) ;;
4575 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4576 esac
4577
4578 for ac_prog in gawk mawk nawk awk
4579 do
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_AWK+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$AWK"; then
4588 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_AWK="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601 done
4602 done
4603 IFS=$as_save_IFS
4604
4605 fi
4606 fi
4607 AWK=$ac_cv_prog_AWK
4608 if test -n "$AWK"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4610 $as_echo "$AWK" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 fi
4615
4616
4617 test -n "$AWK" && break
4618 done
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4621 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4622 set x ${MAKE-make}
4623 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4624 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 cat >conftest.make <<\_ACEOF
4628 SHELL = /bin/sh
4629 all:
4630 @echo '@@@%%%=$(MAKE)=@@@%%%'
4631 _ACEOF
4632 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4634 *@@@%%%=?*=@@@%%%*)
4635 eval ac_cv_prog_make_${ac_make}_set=yes;;
4636 *)
4637 eval ac_cv_prog_make_${ac_make}_set=no;;
4638 esac
4639 rm -f conftest.make
4640 fi
4641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4643 $as_echo "yes" >&6; }
4644 SET_MAKE=
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4648 SET_MAKE="MAKE=${MAKE-make}"
4649 fi
4650
4651 rm -rf .tst 2>/dev/null
4652 mkdir .tst 2>/dev/null
4653 if test -d .tst; then
4654 am__leading_dot=.
4655 else
4656 am__leading_dot=_
4657 fi
4658 rmdir .tst 2>/dev/null
4659
4660 DEPDIR="${am__leading_dot}deps"
4661
4662 ac_config_commands="$ac_config_commands depfiles"
4663
4664
4665 am_make=${MAKE-make}
4666 cat > confinc << 'END'
4667 am__doit:
4668 @echo this is the am__doit target
4669 .PHONY: am__doit
4670 END
4671 # If we don't find an include directive, just comment out the code.
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4673 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4674 am__include="#"
4675 am__quote=
4676 _am_result=none
4677 # First try GNU make style include.
4678 echo "include confinc" > confmf
4679 # Ignore all kinds of additional output from `make'.
4680 case `$am_make -s -f confmf 2> /dev/null` in #(
4681 *the\ am__doit\ target*)
4682 am__include=include
4683 am__quote=
4684 _am_result=GNU
4685 ;;
4686 esac
4687 # Now try BSD make style include.
4688 if test "$am__include" = "#"; then
4689 echo '.include "confinc"' > confmf
4690 case `$am_make -s -f confmf 2> /dev/null` in #(
4691 *the\ am__doit\ target*)
4692 am__include=.include
4693 am__quote="\""
4694 _am_result=BSD
4695 ;;
4696 esac
4697 fi
4698
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4701 $as_echo "$_am_result" >&6; }
4702 rm -f confinc confmf
4703
4704 # Check whether --enable-dependency-tracking was given.
4705 if test "${enable_dependency_tracking+set}" = set; then :
4706 enableval=$enable_dependency_tracking;
4707 fi
4708
4709 if test "x$enable_dependency_tracking" != xno; then
4710 am_depcomp="$ac_aux_dir/depcomp"
4711 AMDEPBACKSLASH='\'
4712 fi
4713 if test "x$enable_dependency_tracking" != xno; then
4714 AMDEP_TRUE=
4715 AMDEP_FALSE='#'
4716 else
4717 AMDEP_TRUE='#'
4718 AMDEP_FALSE=
4719 fi
4720
4721
4722 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4723 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4724 # is not polluted with repeated "-I."
4725 am__isrc=' -I$(srcdir)'
4726 # test to see if srcdir already configured
4727 if test -f $srcdir/config.status; then
4728 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4729 fi
4730 fi
4731
4732 # test whether we have cygpath
4733 if test -z "$CYGPATH_W"; then
4734 if (cygpath --version) >/dev/null 2>/dev/null; then
4735 CYGPATH_W='cygpath -w'
4736 else
4737 CYGPATH_W=echo
4738 fi
4739 fi
4740
4741
4742 # Define the identity of the package.
4743 PACKAGE='xf86-video-siliconmotion'
4744 VERSION='1.7.5'
4745
4746
4747 cat >>confdefs.h <<_ACEOF
4748 #define PACKAGE "$PACKAGE"
4749 _ACEOF
4750
4751
4752 cat >>confdefs.h <<_ACEOF
4753 #define VERSION "$VERSION"
4754 _ACEOF
4755
4756 # Some tools Automake needs.
4757
4758 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4759
4760
4761 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4762
4763
4764 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4765
4766
4767 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4768
4769
4770 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4771
4772 # We need awk for the "check" target. The system "awk" is bad on
4773 # some platforms.
4774 # Always define AMTAR for backward compatibility.
4775
4776 AMTAR=${AMTAR-"${am_missing_run}tar"}
4777
4778 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4779
4780
4781
4782
4783 depcc="$CC" am_compiler_list=
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4786 $as_echo_n "checking dependency style of $depcc... " >&6; }
4787 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4791 # We make a subdir and do the tests there. Otherwise we can end up
4792 # making bogus files that we don't know about and never remove. For
4793 # instance it was reported that on HP-UX the gcc test will end up
4794 # making a dummy file named `D' -- because `-MD' means `put the output
4795 # in D'.
4796 mkdir conftest.dir
4797 # Copy depcomp to subdir because otherwise we won't find it if we're
4798 # using a relative directory.
4799 cp "$am_depcomp" conftest.dir
4800 cd conftest.dir
4801 # We will build objects and dependencies in a subdirectory because
4802 # it helps to detect inapplicable dependency modes. For instance
4803 # both Tru64's cc and ICC support -MD to output dependencies as a
4804 # side effect of compilation, but ICC will put the dependencies in
4805 # the current directory while Tru64 will put them in the object
4806 # directory.
4807 mkdir sub
4808
4809 am_cv_CC_dependencies_compiler_type=none
4810 if test "$am_compiler_list" = ""; then
4811 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4812 fi
4813 am__universal=false
4814 case " $depcc " in #(
4815 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4816 esac
4817
4818 for depmode in $am_compiler_list; do
4819 # Setup a source with many dependencies, because some compilers
4820 # like to wrap large dependency lists on column 80 (with \), and
4821 # we should not choose a depcomp mode which is confused by this.
4822 #
4823 # We need to recreate these files for each test, as the compiler may
4824 # overwrite some of them when testing with obscure command lines.
4825 # This happens at least with the AIX C compiler.
4826 : > sub/conftest.c
4827 for i in 1 2 3 4 5 6; do
4828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4830 # Solaris 8's {/usr,}/bin/sh.
4831 touch sub/conftst$i.h
4832 done
4833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4834
4835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4836 # mode. It turns out that the SunPro C++ compiler does not properly
4837 # handle `-M -o', and we need to detect this. Also, some Intel
4838 # versions had trouble with output in subdirs
4839 am__obj=sub/conftest.${OBJEXT-o}
4840 am__minus_obj="-o $am__obj"
4841 case $depmode in
4842 gcc)
4843 # This depmode causes a compiler race in universal mode.
4844 test "$am__universal" = false || continue
4845 ;;
4846 nosideeffect)
4847 # after this tag, mechanisms are not by side-effect, so they'll
4848 # only be used when explicitly requested
4849 if test "x$enable_dependency_tracking" = xyes; then
4850 continue
4851 else
4852 break
4853 fi
4854 ;;
4855 msvisualcpp | msvcmsys)
4856 # This compiler won't grok `-c -o', but also, the minuso test has
4857 # not run yet. These depmodes are late enough in the game, and
4858 # so weak that their functioning should not be impacted.
4859 am__obj=conftest.${OBJEXT-o}
4860 am__minus_obj=
4861 ;;
4862 none) break ;;
4863 esac
4864 if depmode=$depmode \
4865 source=sub/conftest.c object=$am__obj \
4866 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4867 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4868 >/dev/null 2>conftest.err &&
4869 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4870 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4871 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4873 # icc doesn't choke on unknown options, it will just issue warnings
4874 # or remarks (even with -Werror). So we grep stderr for any message
4875 # that says an option was ignored or not supported.
4876 # When given -MP, icc 7.0 and 7.1 complain thusly:
4877 # icc: Command line warning: ignoring option '-M'; no argument required
4878 # The diagnosis changed in icc 8.0:
4879 # icc: Command line remark: option '-MP' not supported
4880 if (grep 'ignoring option' conftest.err ||
4881 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4882 am_cv_CC_dependencies_compiler_type=$depmode
4883 break
4884 fi
4885 fi
4886 done
4887
4888 cd ..
4889 rm -rf conftest.dir
4890 else
4891 am_cv_CC_dependencies_compiler_type=none
4892 fi
4893
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4896 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4897 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4898
4899 if
4900 test "x$enable_dependency_tracking" != xno \
4901 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4902 am__fastdepCC_TRUE=
4903 am__fastdepCC_FALSE='#'
4904 else
4905 am__fastdepCC_TRUE='#'
4906 am__fastdepCC_FALSE=
4907 fi
4908
4909
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4913 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4914 # Check whether --enable-maintainer-mode was given.
4915 if test "${enable_maintainer_mode+set}" = set; then :
4916 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4917 else
4918 USE_MAINTAINER_MODE=no
4919 fi
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4922 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4923 if test $USE_MAINTAINER_MODE = yes; then
4924 MAINTAINER_MODE_TRUE=
4925 MAINTAINER_MODE_FALSE='#'
4926 else
4927 MAINTAINER_MODE_TRUE='#'
4928 MAINTAINER_MODE_FALSE=
4929 fi
4930
4931 MAINT=$MAINTAINER_MODE_TRUE
4932
4933
4934
4935 # Initialize libtool
4936 # Check whether --enable-static was given.
4937 if test "${enable_static+set}" = set; then :
4938 enableval=$enable_static; p=${PACKAGE-default}
4939 case $enableval in
4940 yes) enable_static=yes ;;
4941 no) enable_static=no ;;
4942 *)
4943 enable_static=no
4944 # Look at the argument we got. We use all the common list separators.
4945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4946 for pkg in $enableval; do
4947 IFS="$lt_save_ifs"
4948 if test "X$pkg" = "X$p"; then
4949 enable_static=yes
4950 fi
4951 done
4952 IFS="$lt_save_ifs"
4953 ;;
4954 esac
4955 else
4956 enable_static=no
4957 fi
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967 case `pwd` in
4968 *\ * | *\ *)
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4970 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4971 esac
4972
4973
4974
4975 macro_version='2.2.6b'
4976 macro_revision='1.3017'
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990 ltmain="$ac_aux_dir/ltmain.sh"
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4993 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4994 if test "${ac_cv_path_SED+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4998 for ac_i in 1 2 3 4 5 6 7; do
4999 ac_script="$ac_script$as_nl$ac_script"
5000 done
5001 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5002 { ac_script=; unset ac_script;}
5003 if test -z "$SED"; then
5004 ac_path_SED_found=false
5005 # Loop through the user's path and test for each of PROGNAME-LIST
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_prog in sed gsed; do
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5014 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5015 # Check for GNU ac_path_SED and select it if it is found.
5016 # Check for GNU $ac_path_SED
5017 case `"$ac_path_SED" --version 2>&1` in
5018 *GNU*)
5019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5020 *)
5021 ac_count=0
5022 $as_echo_n 0123456789 >"conftest.in"
5023 while :
5024 do
5025 cat "conftest.in" "conftest.in" >"conftest.tmp"
5026 mv "conftest.tmp" "conftest.in"
5027 cp "conftest.in" "conftest.nl"
5028 $as_echo '' >> "conftest.nl"
5029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031 as_fn_arith $ac_count + 1 && ac_count=$as_val
5032 if test $ac_count -gt ${ac_path_SED_max-0}; then
5033 # Best one so far, save it but keep looking for a better one
5034 ac_cv_path_SED="$ac_path_SED"
5035 ac_path_SED_max=$ac_count
5036 fi
5037 # 10*(2^10) chars as input seems more than enough
5038 test $ac_count -gt 10 && break
5039 done
5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 esac
5042
5043 $ac_path_SED_found && break 3
5044 done
5045 done
5046 done
5047 IFS=$as_save_IFS
5048 if test -z "$ac_cv_path_SED"; then
5049 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5050 fi
5051 else
5052 ac_cv_path_SED=$SED
5053 fi
5054
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5057 $as_echo "$ac_cv_path_SED" >&6; }
5058 SED="$ac_cv_path_SED"
5059 rm -f conftest.sed
5060
5061 test -z "$SED" && SED=sed
5062 Xsed="$SED -e 1s/^X//"
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5075 $as_echo_n "checking for fgrep... " >&6; }
5076 if test "${ac_cv_path_FGREP+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5080 then ac_cv_path_FGREP="$GREP -F"
5081 else
5082 if test -z "$FGREP"; then
5083 ac_path_FGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in fgrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5094 # Check for GNU ac_path_FGREP and select it if it is found.
5095 # Check for GNU $ac_path_FGREP
5096 case `"$ac_path_FGREP" --version 2>&1` in
5097 *GNU*)
5098 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5099 *)
5100 ac_count=0
5101 $as_echo_n 0123456789 >"conftest.in"
5102 while :
5103 do
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 $as_echo 'FGREP' >> "conftest.nl"
5108 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 as_fn_arith $ac_count + 1 && ac_count=$as_val
5111 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_FGREP="$ac_path_FGREP"
5114 ac_path_FGREP_max=$ac_count
5115 fi
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5118 done
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5121
5122 $ac_path_FGREP_found && break 3
5123 done
5124 done
5125 done
5126 IFS=$as_save_IFS
5127 if test -z "$ac_cv_path_FGREP"; then
5128 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5129 fi
5130 else
5131 ac_cv_path_FGREP=$FGREP
5132 fi
5133
5134 fi
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5137 $as_echo "$ac_cv_path_FGREP" >&6; }
5138 FGREP="$ac_cv_path_FGREP"
5139
5140
5141 test -z "$GREP" && GREP=grep
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161 # Check whether --with-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then :
5163 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5164 else
5165 with_gnu_ld=no
5166 fi
5167
5168 ac_prog=ld
5169 if test "$GCC" = yes; then
5170 # Check if gcc -print-prog-name=ld gives a path.
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5172 $as_echo_n "checking for ld used by $CC... " >&6; }
5173 case $host in
5174 *-*-mingw*)
5175 # gcc leaves a trailing carriage return which upsets mingw
5176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5177 *)
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179 esac
5180 case $ac_prog in
5181 # Accept absolute paths.
5182 [\\/]* | ?:[\\/]*)
5183 re_direlt='/[^/][^/]*/\.\./'
5184 # Canonicalize the pathname of ld
5185 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5186 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5187 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5188 done
5189 test -z "$LD" && LD="$ac_prog"
5190 ;;
5191 "")
5192 # If it fails, then pretend we aren't using GCC.
5193 ac_prog=ld
5194 ;;
5195 *)
5196 # If it is relative, then search for the first ld in PATH.
5197 with_gnu_ld=unknown
5198 ;;
5199 esac
5200 elif test "$with_gnu_ld" = yes; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5202 $as_echo_n "checking for GNU ld... " >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5205 $as_echo_n "checking for non-GNU ld... " >&6; }
5206 fi
5207 if test "${lt_cv_path_LD+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -z "$LD"; then
5211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5212 for ac_dir in $PATH; do
5213 IFS="$lt_save_ifs"
5214 test -z "$ac_dir" && ac_dir=.
5215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216 lt_cv_path_LD="$ac_dir/$ac_prog"
5217 # Check to see if the program is GNU ld. I'd rather use --version,
5218 # but apparently some variants of GNU ld only accept -v.
5219 # Break only if it was the GNU/non-GNU ld that we prefer.
5220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5221 *GNU* | *'with BFD'*)
5222 test "$with_gnu_ld" != no && break
5223 ;;
5224 *)
5225 test "$with_gnu_ld" != yes && break
5226 ;;
5227 esac
5228 fi
5229 done
5230 IFS="$lt_save_ifs"
5231 else
5232 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5233 fi
5234 fi
5235
5236 LD="$lt_cv_path_LD"
5237 if test -n "$LD"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5239 $as_echo "$LD" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5247 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253 lt_cv_prog_gnu_ld=yes
5254 ;;
5255 *)
5256 lt_cv_prog_gnu_ld=no
5257 ;;
5258 esac
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5261 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5273 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5274 if test "${lt_cv_path_NM+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$NM"; then
5278 # Let the user override the test.
5279 lt_cv_path_NM="$NM"
5280 else
5281 lt_nm_to_check="${ac_tool_prefix}nm"
5282 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283 lt_nm_to_check="$lt_nm_to_check nm"
5284 fi
5285 for lt_tmp_nm in $lt_nm_to_check; do
5286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5288 IFS="$lt_save_ifs"
5289 test -z "$ac_dir" && ac_dir=.
5290 tmp_nm="$ac_dir/$lt_tmp_nm"
5291 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292 # Check to see if the nm accepts a BSD-compat flag.
5293 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294 # nm: unknown option "B" ignored
5295 # Tru64's nm complains that /dev/null is an invalid object file
5296 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297 */dev/null* | *'Invalid file or object type'*)
5298 lt_cv_path_NM="$tmp_nm -B"
5299 break
5300 ;;
5301 *)
5302 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5303 */dev/null*)
5304 lt_cv_path_NM="$tmp_nm -p"
5305 break
5306 ;;
5307 *)
5308 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309 continue # so that we can try to find one that supports BSD flags
5310 ;;
5311 esac
5312 ;;
5313 esac
5314 fi
5315 done
5316 IFS="$lt_save_ifs"
5317 done
5318 : ${lt_cv_path_NM=no}
5319 fi
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5322 $as_echo "$lt_cv_path_NM" >&6; }
5323 if test "$lt_cv_path_NM" != "no"; then
5324 NM="$lt_cv_path_NM"
5325 else
5326 # Didn't find any BSD compatible name lister, look for dumpbin.
5327 if test -n "$ac_tool_prefix"; then
5328 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5329 do
5330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 if test -n "$DUMPBIN"; then
5338 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 break 2
5350 fi
5351 done
5352 done
5353 IFS=$as_save_IFS
5354
5355 fi
5356 fi
5357 DUMPBIN=$ac_cv_prog_DUMPBIN
5358 if test -n "$DUMPBIN"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5360 $as_echo "$DUMPBIN" >&6; }
5361 else
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365
5366
5367 test -n "$DUMPBIN" && break
5368 done
5369 fi
5370 if test -z "$DUMPBIN"; then
5371 ac_ct_DUMPBIN=$DUMPBIN
5372 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5373 do
5374 # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$ac_ct_DUMPBIN"; then
5382 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5402 if test -n "$ac_ct_DUMPBIN"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5404 $as_echo "$ac_ct_DUMPBIN" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410
5411 test -n "$ac_ct_DUMPBIN" && break
5412 done
5413
5414 if test "x$ac_ct_DUMPBIN" = x; then
5415 DUMPBIN=":"
5416 else
5417 case $cross_compiling:$ac_tool_warned in
5418 yes:)
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5421 ac_tool_warned=yes ;;
5422 esac
5423 DUMPBIN=$ac_ct_DUMPBIN
5424 fi
5425 fi
5426
5427
5428 if test "$DUMPBIN" != ":"; then
5429 NM="$DUMPBIN"
5430 fi
5431 fi
5432 test -z "$NM" && NM=nm
5433
5434
5435
5436
5437
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5440 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5441 if test "${lt_cv_nm_interface+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 lt_cv_nm_interface="BSD nm"
5445 echo "int some_variable = 0;" > conftest.$ac_ext
5446 (eval echo "\"\$as_me:5446: $ac_compile\"" >&5)
5447 (eval "$ac_compile" 2>conftest.err)
5448 cat conftest.err >&5
5449 (eval echo "\"\$as_me:5449: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5450 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5451 cat conftest.err >&5
5452 (eval echo "\"\$as_me:5452: output\"" >&5)
5453 cat conftest.out >&5
5454 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5455 lt_cv_nm_interface="MS dumpbin"
5456 fi
5457 rm -f conftest*
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5460 $as_echo "$lt_cv_nm_interface" >&6; }
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5463 $as_echo_n "checking whether ln -s works... " >&6; }
5464 LN_S=$as_ln_s
5465 if test "$LN_S" = "ln -s"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467 $as_echo "yes" >&6; }
5468 else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5470 $as_echo "no, using $LN_S" >&6; }
5471 fi
5472
5473 # find the maximum length of command line arguments
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5475 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5476 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 i=0
5480 teststring="ABCD"
5481
5482 case $build_os in
5483 msdosdjgpp*)
5484 # On DJGPP, this test can blow up pretty badly due to problems in libc
5485 # (any single argument exceeding 2000 bytes causes a buffer overrun
5486 # during glob expansion). Even if it were fixed, the result of this
5487 # check would be larger than it should be.
5488 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5489 ;;
5490
5491 gnu*)
5492 # Under GNU Hurd, this test is not required because there is
5493 # no limit to the length of command line arguments.
5494 # Libtool will interpret -1 as no limit whatsoever
5495 lt_cv_sys_max_cmd_len=-1;
5496 ;;
5497
5498 cygwin* | mingw* | cegcc*)
5499 # On Win9x/ME, this test blows up -- it succeeds, but takes
5500 # about 5 minutes as the teststring grows exponentially.
5501 # Worse, since 9x/ME are not pre-emptively multitasking,
5502 # you end up with a "frozen" computer, even though with patience
5503 # the test eventually succeeds (with a max line length of 256k).
5504 # Instead, let's just punt: use the minimum linelength reported by
5505 # all of the supported platforms: 8192 (on NT/2K/XP).
5506 lt_cv_sys_max_cmd_len=8192;
5507 ;;
5508
5509 amigaos*)
5510 # On AmigaOS with pdksh, this test takes hours, literally.
5511 # So we just punt and use a minimum line length of 8192.
5512 lt_cv_sys_max_cmd_len=8192;
5513 ;;
5514
5515 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5516 # This has been around since 386BSD, at least. Likely further.
5517 if test -x /sbin/sysctl; then
5518 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5519 elif test -x /usr/sbin/sysctl; then
5520 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5521 else
5522 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5523 fi
5524 # And add a safety zone
5525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5527 ;;
5528
5529 interix*)
5530 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5531 lt_cv_sys_max_cmd_len=196608
5532 ;;
5533
5534 osf*)
5535 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5536 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5537 # nice to cause kernel panics so lets avoid the loop below.
5538 # First set a reasonable default.
5539 lt_cv_sys_max_cmd_len=16384
5540 #
5541 if test -x /sbin/sysconfig; then
5542 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5543 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5544 esac
5545 fi
5546 ;;
5547 sco3.2v5*)
5548 lt_cv_sys_max_cmd_len=102400
5549 ;;
5550 sysv5* | sco5v6* | sysv4.2uw2*)
5551 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5552 if test -n "$kargmax"; then
5553 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5554 else
5555 lt_cv_sys_max_cmd_len=32768
5556 fi
5557 ;;
5558 *)
5559 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5560 if test -n "$lt_cv_sys_max_cmd_len"; then
5561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5563 else
5564 # Make teststring a little bigger before we do anything with it.
5565 # a 1K string should be a reasonable start.
5566 for i in 1 2 3 4 5 6 7 8 ; do
5567 teststring=$teststring$teststring
5568 done
5569 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5570 # If test is not a shell built-in, we'll probably end up computing a
5571 # maximum length that is only half of the actual maximum length, but
5572 # we can't tell.
5573 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5574 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5575 test $i != 17 # 1/2 MB should be enough
5576 do
5577 i=`expr $i + 1`
5578 teststring=$teststring$teststring
5579 done
5580 # Only check the string length outside the loop.
5581 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5582 teststring=
5583 # Add a significant safety factor because C++ compilers can tack on
5584 # massive amounts of additional arguments before passing them to the
5585 # linker. It appears as though 1/2 is a usable value.
5586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5587 fi
5588 ;;
5589 esac
5590
5591 fi
5592
5593 if test -n $lt_cv_sys_max_cmd_len ; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5595 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5598 $as_echo "none" >&6; }
5599 fi
5600 max_cmd_len=$lt_cv_sys_max_cmd_len
5601
5602
5603
5604
5605
5606
5607 : ${CP="cp -f"}
5608 : ${MV="mv -f"}
5609 : ${RM="rm -f"}
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5612 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5613 # Try some XSI features
5614 xsi_shell=no
5615 ( _lt_dummy="a/b/c"
5616 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5617 = c,a/b,, \
5618 && eval 'test $(( 1 + 1 )) -eq 2 \
5619 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5620 && xsi_shell=yes
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5622 $as_echo "$xsi_shell" >&6; }
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5626 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5627 lt_shell_append=no
5628 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5629 >/dev/null 2>&1 \
5630 && lt_shell_append=yes
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5632 $as_echo "$lt_shell_append" >&6; }
5633
5634
5635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5636 lt_unset=unset
5637 else
5638 lt_unset=false
5639 fi
5640
5641
5642
5643
5644
5645 # test EBCDIC or ASCII
5646 case `echo X|tr X '\101'` in
5647 A) # ASCII based system
5648 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5649 lt_SP2NL='tr \040 \012'
5650 lt_NL2SP='tr \015\012 \040\040'
5651 ;;
5652 *) # EBCDIC based system
5653 lt_SP2NL='tr \100 \n'
5654 lt_NL2SP='tr \r\n \100\100'
5655 ;;
5656 esac
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5667 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5668 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 lt_cv_ld_reload_flag='-r'
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5674 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5675 reload_flag=$lt_cv_ld_reload_flag
5676 case $reload_flag in
5677 "" | " "*) ;;
5678 *) reload_flag=" $reload_flag" ;;
5679 esac
5680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5681 case $host_os in
5682 darwin*)
5683 if test "$GCC" = yes; then
5684 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5685 else
5686 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687 fi
5688 ;;
5689 esac
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5701 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$OBJDUMP"; then
5708 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 OBJDUMP=$ac_cv_prog_OBJDUMP
5728 if test -n "$OBJDUMP"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5730 $as_echo "$OBJDUMP" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 fi
5738 if test -z "$ac_cv_prog_OBJDUMP"; then
5739 ac_ct_OBJDUMP=$OBJDUMP
5740 # Extract the first word of "objdump", so it can be a program name with args.
5741 set dummy objdump; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$ac_ct_OBJDUMP"; then
5748 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5768 if test -n "$ac_ct_OBJDUMP"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5770 $as_echo "$ac_ct_OBJDUMP" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776 if test "x$ac_ct_OBJDUMP" = x; then
5777 OBJDUMP="false"
5778 else
5779 case $cross_compiling:$ac_tool_warned in
5780 yes:)
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned=yes ;;
5784 esac
5785 OBJDUMP=$ac_ct_OBJDUMP
5786 fi
5787 else
5788 OBJDUMP="$ac_cv_prog_OBJDUMP"
5789 fi
5790
5791 test -z "$OBJDUMP" && OBJDUMP=objdump
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5802 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5803 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 lt_cv_file_magic_cmd='$MAGIC_CMD'
5807 lt_cv_file_magic_test_file=
5808 lt_cv_deplibs_check_method='unknown'
5809 # Need to set the preceding variable on all platforms that support
5810 # interlibrary dependencies.
5811 # 'none' -- dependencies not supported.
5812 # `unknown' -- same as none, but documents that we really don't know.
5813 # 'pass_all' -- all dependencies passed with no checks.
5814 # 'test_compile' -- check by making test program.
5815 # 'file_magic [[regex]]' -- check by looking for files in library path
5816 # which responds to the $file_magic_cmd with a given extended regex.
5817 # If you have `file' or equivalent on your system and you're not sure
5818 # whether `pass_all' will *always* work, you probably want this one.
5819
5820 case $host_os in
5821 aix[4-9]*)
5822 lt_cv_deplibs_check_method=pass_all
5823 ;;
5824
5825 beos*)
5826 lt_cv_deplibs_check_method=pass_all
5827 ;;
5828
5829 bsdi[45]*)
5830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5831 lt_cv_file_magic_cmd='/usr/bin/file -L'
5832 lt_cv_file_magic_test_file=/shlib/libc.so
5833 ;;
5834
5835 cygwin*)
5836 # func_win32_libid is a shell function defined in ltmain.sh
5837 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5838 lt_cv_file_magic_cmd='func_win32_libid'
5839 ;;
5840
5841 mingw* | pw32*)
5842 # Base MSYS/MinGW do not provide the 'file' command needed by
5843 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5844 # unless we find 'file', for example because we are cross-compiling.
5845 if ( file / ) >/dev/null 2>&1; then
5846 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5847 lt_cv_file_magic_cmd='func_win32_libid'
5848 else
5849 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5850 lt_cv_file_magic_cmd='$OBJDUMP -f'
5851 fi
5852 ;;
5853
5854 cegcc)
5855 # use the weaker test based on 'objdump'. See mingw*.
5856 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5857 lt_cv_file_magic_cmd='$OBJDUMP -f'
5858 ;;
5859
5860 darwin* | rhapsody*)
5861 lt_cv_deplibs_check_method=pass_all
5862 ;;
5863
5864 freebsd* | dragonfly*)
5865 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5866 case $host_cpu in
5867 i*86 )
5868 # Not sure whether the presence of OpenBSD here was a mistake.
5869 # Let's accept both of them until this is cleared up.
5870 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5871 lt_cv_file_magic_cmd=/usr/bin/file
5872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5873 ;;
5874 esac
5875 else
5876 lt_cv_deplibs_check_method=pass_all
5877 fi
5878 ;;
5879
5880 gnu*)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883
5884 hpux10.20* | hpux11*)
5885 lt_cv_file_magic_cmd=/usr/bin/file
5886 case $host_cpu in
5887 ia64*)
5888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5889 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5890 ;;
5891 hppa*64*)
5892 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]'
5893 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5894 ;;
5895 *)
5896 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5897 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5898 ;;
5899 esac
5900 ;;
5901
5902 interix[3-9]*)
5903 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5905 ;;
5906
5907 irix5* | irix6* | nonstopux*)
5908 case $LD in
5909 *-32|*"-32 ") libmagic=32-bit;;
5910 *-n32|*"-n32 ") libmagic=N32;;
5911 *-64|*"-64 ") libmagic=64-bit;;
5912 *) libmagic=never-match;;
5913 esac
5914 lt_cv_deplibs_check_method=pass_all
5915 ;;
5916
5917 # This must be Linux ELF.
5918 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5919 lt_cv_deplibs_check_method=pass_all
5920 ;;
5921
5922 netbsd* | netbsdelf*-gnu)
5923 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5925 else
5926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5927 fi
5928 ;;
5929
5930 newos6*)
5931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5932 lt_cv_file_magic_cmd=/usr/bin/file
5933 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5934 ;;
5935
5936 *nto* | *qnx*)
5937 lt_cv_deplibs_check_method=pass_all
5938 ;;
5939
5940 openbsd*)
5941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5943 else
5944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5945 fi
5946 ;;
5947
5948 osf3* | osf4* | osf5*)
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951
5952 rdos*)
5953 lt_cv_deplibs_check_method=pass_all
5954 ;;
5955
5956 solaris*)
5957 lt_cv_deplibs_check_method=pass_all
5958 ;;
5959
5960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
5963
5964 sysv4 | sysv4.3*)
5965 case $host_vendor in
5966 motorola)
5967 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]'
5968 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5969 ;;
5970 ncr)
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
5973 sequent)
5974 lt_cv_file_magic_cmd='/bin/file'
5975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5976 ;;
5977 sni)
5978 lt_cv_file_magic_cmd='/bin/file'
5979 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5980 lt_cv_file_magic_test_file=/lib/libc.so
5981 ;;
5982 siemens)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985 pc)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
5988 esac
5989 ;;
5990
5991 tpf*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994 esac
5995
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5998 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5999 file_magic_cmd=$lt_cv_file_magic_cmd
6000 deplibs_check_method=$lt_cv_deplibs_check_method
6001 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014 if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}ar; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_AR+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$AR"; then
6023 ac_cv_prog_AR="$AR" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_AR="${ac_tool_prefix}ar"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 AR=$ac_cv_prog_AR
6043 if test -n "$AR"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6045 $as_echo "$AR" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 fi
6053 if test -z "$ac_cv_prog_AR"; then
6054 ac_ct_AR=$AR
6055 # Extract the first word of "ar", so it can be a program name with args.
6056 set dummy ar; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$ac_ct_AR"; then
6063 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_ac_ct_AR="ar"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6083 if test -n "$ac_ct_AR"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6085 $as_echo "$ac_ct_AR" >&6; }
6086 else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091 if test "x$ac_ct_AR" = x; then
6092 AR="false"
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100 AR=$ac_ct_AR
6101 fi
6102 else
6103 AR="$ac_cv_prog_AR"
6104 fi
6105
6106 test -z "$AR" && AR=ar
6107 test -z "$AR_FLAGS" && AR_FLAGS=cru
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 if test -n "$ac_tool_prefix"; then
6120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6121 set dummy ${ac_tool_prefix}strip; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if test "${ac_cv_prog_STRIP+set}" = set; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if test -n "$STRIP"; then
6128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6137 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 STRIP=$ac_cv_prog_STRIP
6148 if test -n "$STRIP"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6150 $as_echo "$STRIP" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156
6157 fi
6158 if test -z "$ac_cv_prog_STRIP"; then
6159 ac_ct_STRIP=$STRIP
6160 # Extract the first word of "strip", so it can be a program name with args.
6161 set dummy strip; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if test -n "$ac_ct_STRIP"; then
6168 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_ac_ct_STRIP="strip"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6180 fi
6181 done
6182 done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6188 if test -n "$ac_ct_STRIP"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6190 $as_echo "$ac_ct_STRIP" >&6; }
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195
6196 if test "x$ac_ct_STRIP" = x; then
6197 STRIP=":"
6198 else
6199 case $cross_compiling:$ac_tool_warned in
6200 yes:)
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6203 ac_tool_warned=yes ;;
6204 esac
6205 STRIP=$ac_ct_STRIP
6206 fi
6207 else
6208 STRIP="$ac_cv_prog_STRIP"
6209 fi
6210
6211 test -z "$STRIP" && STRIP=:
6212
6213
6214
6215
6216
6217
6218 if test -n "$ac_tool_prefix"; then
6219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 if test -n "$RANLIB"; then
6227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240 done
6241 done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 RANLIB=$ac_cv_prog_RANLIB
6247 if test -n "$RANLIB"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6249 $as_echo "$RANLIB" >&6; }
6250 else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254
6255
6256 fi
6257 if test -z "$ac_cv_prog_RANLIB"; then
6258 ac_ct_RANLIB=$RANLIB
6259 # Extract the first word of "ranlib", so it can be a program name with args.
6260 set dummy ranlib; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 if test -n "$ac_ct_RANLIB"; then
6267 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_ac_ct_RANLIB="ranlib"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6287 if test -n "$ac_ct_RANLIB"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6289 $as_echo "$ac_ct_RANLIB" >&6; }
6290 else
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6293 fi
6294
6295 if test "x$ac_ct_RANLIB" = x; then
6296 RANLIB=":"
6297 else
6298 case $cross_compiling:$ac_tool_warned in
6299 yes:)
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302 ac_tool_warned=yes ;;
6303 esac
6304 RANLIB=$ac_ct_RANLIB
6305 fi
6306 else
6307 RANLIB="$ac_cv_prog_RANLIB"
6308 fi
6309
6310 test -z "$RANLIB" && RANLIB=:
6311
6312
6313
6314
6315
6316
6317 # Determine commands to create old-style static archives.
6318 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6319 old_postinstall_cmds='chmod 644 $oldlib'
6320 old_postuninstall_cmds=
6321
6322 if test -n "$RANLIB"; then
6323 case $host_os in
6324 openbsd*)
6325 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6326 ;;
6327 *)
6328 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6329 ;;
6330 esac
6331 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6332 fi
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 # If no C compiler was specified, use CC.
6368 LTCC=${LTCC-"$CC"}
6369
6370 # If no C compiler flags were specified, use CFLAGS.
6371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6372
6373 # Allow CC to be a program name with arguments.
6374 compiler=$CC
6375
6376
6377 # Check for command to grab the raw symbol name followed by C symbol from nm.
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6379 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6380 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383
6384 # These are sane defaults that work on at least a few old systems.
6385 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6386
6387 # Character class describing NM global symbol codes.
6388 symcode='[BCDEGRST]'
6389
6390 # Regexp to match symbols that can be accessed directly from C.
6391 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6392
6393 # Define system-specific variables.
6394 case $host_os in
6395 aix*)
6396 symcode='[BCDT]'
6397 ;;
6398 cygwin* | mingw* | pw32* | cegcc*)
6399 symcode='[ABCDGISTW]'
6400 ;;
6401 hpux*)
6402 if test "$host_cpu" = ia64; then
6403 symcode='[ABCDEGRST]'
6404 fi
6405 ;;
6406 irix* | nonstopux*)
6407 symcode='[BCDEGRST]'
6408 ;;
6409 osf*)
6410 symcode='[BCDEGQRST]'
6411 ;;
6412 solaris*)
6413 symcode='[BDRT]'
6414 ;;
6415 sco3.2v5*)
6416 symcode='[DT]'
6417 ;;
6418 sysv4.2uw2*)
6419 symcode='[DT]'
6420 ;;
6421 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6422 symcode='[ABDT]'
6423 ;;
6424 sysv4)
6425 symcode='[DFNSTU]'
6426 ;;
6427 esac
6428
6429 # If we're using GNU nm, then use its standard symbol codes.
6430 case `$NM -V 2>&1` in
6431 *GNU* | *'with BFD'*)
6432 symcode='[ABCDGIRSTW]' ;;
6433 esac
6434
6435 # Transform an extracted symbol line into a proper C declaration.
6436 # Some systems (esp. on ia64) link data and code symbols differently,
6437 # so use this general approach.
6438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6439
6440 # Transform an extracted symbol line into symbol name and symbol address
6441 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6442 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'"
6443
6444 # Handle CRLF in mingw tool chain
6445 opt_cr=
6446 case $build_os in
6447 mingw*)
6448 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6449 ;;
6450 esac
6451
6452 # Try without a prefix underscore, then with it.
6453 for ac_symprfx in "" "_"; do
6454
6455 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6456 symxfrm="\\1 $ac_symprfx\\2 \\2"
6457
6458 # Write the raw and C identifiers.
6459 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6460 # Fake it for dumpbin and say T for any non-static function
6461 # and D for any global variable.
6462 # Also find C++ and __fastcall symbols from MSVC++,
6463 # which start with @ or ?.
6464 lt_cv_sys_global_symbol_pipe="$AWK '"\
6465 " {last_section=section; section=\$ 3};"\
6466 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6467 " \$ 0!~/External *\|/{next};"\
6468 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6469 " {if(hide[section]) next};"\
6470 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6471 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6472 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6473 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6474 " ' prfx=^$ac_symprfx"
6475 else
6476 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6477 fi
6478
6479 # Check to see that the pipe works correctly.
6480 pipe_works=no
6481
6482 rm -f conftest*
6483 cat > conftest.$ac_ext <<_LT_EOF
6484 #ifdef __cplusplus
6485 extern "C" {
6486 #endif
6487 char nm_test_var;
6488 void nm_test_func(void);
6489 void nm_test_func(void){}
6490 #ifdef __cplusplus
6491 }
6492 #endif
6493 int main(){nm_test_var='a';nm_test_func();return(0);}
6494 _LT_EOF
6495
6496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6497 (eval $ac_compile) 2>&5
6498 ac_status=$?
6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500 test $ac_status = 0; }; then
6501 # Now try to grab the symbols.
6502 nlist=conftest.nm
6503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6504 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6505 ac_status=$?
6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507 test $ac_status = 0; } && test -s "$nlist"; then
6508 # Try sorting and uniquifying the output.
6509 if sort "$nlist" | uniq > "$nlist"T; then
6510 mv -f "$nlist"T "$nlist"
6511 else
6512 rm -f "$nlist"T
6513 fi
6514
6515 # Make sure that we snagged all the symbols we need.
6516 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6517 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6518 cat <<_LT_EOF > conftest.$ac_ext
6519 #ifdef __cplusplus
6520 extern "C" {
6521 #endif
6522
6523 _LT_EOF
6524 # Now generate the symbol file.
6525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6526
6527 cat <<_LT_EOF >> conftest.$ac_ext
6528
6529 /* The mapping between symbol names and symbols. */
6530 const struct {
6531 const char *name;
6532 void *address;
6533 }
6534 lt__PROGRAM__LTX_preloaded_symbols[] =
6535 {
6536 { "@PROGRAM@", (void *) 0 },
6537 _LT_EOF
6538 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6539 cat <<\_LT_EOF >> conftest.$ac_ext
6540 {0, (void *) 0}
6541 };
6542
6543 /* This works around a problem in FreeBSD linker */
6544 #ifdef FREEBSD_WORKAROUND
6545 static const void *lt_preloaded_setup() {
6546 return lt__PROGRAM__LTX_preloaded_symbols;
6547 }
6548 #endif
6549
6550 #ifdef __cplusplus
6551 }
6552 #endif
6553 _LT_EOF
6554 # Now try linking the two files.
6555 mv conftest.$ac_objext conftstm.$ac_objext
6556 lt_save_LIBS="$LIBS"
6557 lt_save_CFLAGS="$CFLAGS"
6558 LIBS="conftstm.$ac_objext"
6559 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6561 (eval $ac_link) 2>&5
6562 ac_status=$?
6563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6564 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6565 pipe_works=yes
6566 fi
6567 LIBS="$lt_save_LIBS"
6568 CFLAGS="$lt_save_CFLAGS"
6569 else
6570 echo "cannot find nm_test_func in $nlist" >&5
6571 fi
6572 else
6573 echo "cannot find nm_test_var in $nlist" >&5
6574 fi
6575 else
6576 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6577 fi
6578 else
6579 echo "$progname: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6581 fi
6582 rm -rf conftest* conftst*
6583
6584 # Do not use the global_symbol_pipe unless it works.
6585 if test "$pipe_works" = yes; then
6586 break
6587 else
6588 lt_cv_sys_global_symbol_pipe=
6589 fi
6590 done
6591
6592 fi
6593
6594 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6595 lt_cv_sys_global_symbol_to_cdecl=
6596 fi
6597 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6599 $as_echo "failed" >&6; }
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6602 $as_echo "ok" >&6; }
6603 fi
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626 # Check whether --enable-libtool-lock was given.
6627 if test "${enable_libtool_lock+set}" = set; then :
6628 enableval=$enable_libtool_lock;
6629 fi
6630
6631 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6632
6633 # Some flags need to be propagated to the compiler or linker for good
6634 # libtool support.
6635 case $host in
6636 ia64-*-hpux*)
6637 # Find out which ABI we are using.
6638 echo 'int i;' > conftest.$ac_ext
6639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6640 (eval $ac_compile) 2>&5
6641 ac_status=$?
6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643 test $ac_status = 0; }; then
6644 case `/usr/bin/file conftest.$ac_objext` in
6645 *ELF-32*)
6646 HPUX_IA64_MODE="32"
6647 ;;
6648 *ELF-64*)
6649 HPUX_IA64_MODE="64"
6650 ;;
6651 esac
6652 fi
6653 rm -rf conftest*
6654 ;;
6655 *-*-irix6*)
6656 # Find out which ABI we are using.
6657 echo '#line 6657 "configure"' > conftest.$ac_ext
6658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6659 (eval $ac_compile) 2>&5
6660 ac_status=$?
6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662 test $ac_status = 0; }; then
6663 if test "$lt_cv_prog_gnu_ld" = yes; then
6664 case `/usr/bin/file conftest.$ac_objext` in
6665 *32-bit*)
6666 LD="${LD-ld} -melf32bsmip"
6667 ;;
6668 *N32*)
6669 LD="${LD-ld} -melf32bmipn32"
6670 ;;
6671 *64-bit*)
6672 LD="${LD-ld} -melf64bmip"
6673 ;;
6674 esac
6675 else
6676 case `/usr/bin/file conftest.$ac_objext` in
6677 *32-bit*)
6678 LD="${LD-ld} -32"
6679 ;;
6680 *N32*)
6681 LD="${LD-ld} -n32"
6682 ;;
6683 *64-bit*)
6684 LD="${LD-ld} -64"
6685 ;;
6686 esac
6687 fi
6688 fi
6689 rm -rf conftest*
6690 ;;
6691
6692 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6693 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6694 # Find out which ABI we are using.
6695 echo 'int i;' > conftest.$ac_ext
6696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6697 (eval $ac_compile) 2>&5
6698 ac_status=$?
6699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700 test $ac_status = 0; }; then
6701 case `/usr/bin/file conftest.o` in
6702 *32-bit*)
6703 case $host in
6704 x86_64-*kfreebsd*-gnu)
6705 LD="${LD-ld} -m elf_i386_fbsd"
6706 ;;
6707 x86_64-*linux*)
6708 LD="${LD-ld} -m elf_i386"
6709 ;;
6710 ppc64-*linux*|powerpc64-*linux*)
6711 LD="${LD-ld} -m elf32ppclinux"
6712 ;;
6713 s390x-*linux*)
6714 LD="${LD-ld} -m elf_s390"
6715 ;;
6716 sparc64-*linux*)
6717 LD="${LD-ld} -m elf32_sparc"
6718 ;;
6719 esac
6720 ;;
6721 *64-bit*)
6722 case $host in
6723 x86_64-*kfreebsd*-gnu)
6724 LD="${LD-ld} -m elf_x86_64_fbsd"
6725 ;;
6726 x86_64-*linux*)
6727 LD="${LD-ld} -m elf_x86_64"
6728 ;;
6729 ppc*-*linux*|powerpc*-*linux*)
6730 LD="${LD-ld} -m elf64ppc"
6731 ;;
6732 s390*-*linux*|s390*-*tpf*)
6733 LD="${LD-ld} -m elf64_s390"
6734 ;;
6735 sparc*-*linux*)
6736 LD="${LD-ld} -m elf64_sparc"
6737 ;;
6738 esac
6739 ;;
6740 esac
6741 fi
6742 rm -rf conftest*
6743 ;;
6744
6745 *-*-sco3.2v5*)
6746 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6747 SAVE_CFLAGS="$CFLAGS"
6748 CFLAGS="$CFLAGS -belf"
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6750 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6751 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 ac_ext=c
6755 ac_cpp='$CPP $CPPFLAGS'
6756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762
6763 int
6764 main ()
6765 {
6766
6767 ;
6768 return 0;
6769 }
6770 _ACEOF
6771 if ac_fn_c_try_link "$LINENO"; then :
6772 lt_cv_cc_needs_belf=yes
6773 else
6774 lt_cv_cc_needs_belf=no
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6778 ac_ext=c
6779 ac_cpp='$CPP $CPPFLAGS'
6780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6783
6784 fi
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6786 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6787 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6788 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6789 CFLAGS="$SAVE_CFLAGS"
6790 fi
6791 ;;
6792 sparc*-*solaris*)
6793 # Find out which ABI we are using.
6794 echo 'int i;' > conftest.$ac_ext
6795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6796 (eval $ac_compile) 2>&5
6797 ac_status=$?
6798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799 test $ac_status = 0; }; then
6800 case `/usr/bin/file conftest.o` in
6801 *64-bit*)
6802 case $lt_cv_prog_gnu_ld in
6803 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6804 *)
6805 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6806 LD="${LD-ld} -64"
6807 fi
6808 ;;
6809 esac
6810 ;;
6811 esac
6812 fi
6813 rm -rf conftest*
6814 ;;
6815 esac
6816
6817 need_locks="$enable_libtool_lock"
6818
6819
6820 case $host_os in
6821 rhapsody* | darwin*)
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 if test -n "$DSYMUTIL"; then
6831 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 break 2
6843 fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6851 if test -n "$DSYMUTIL"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6853 $as_echo "$DSYMUTIL" >&6; }
6854 else
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859
6860 fi
6861 if test -z "$ac_cv_prog_DSYMUTIL"; then
6862 ac_ct_DSYMUTIL=$DSYMUTIL
6863 # Extract the first word of "dsymutil", so it can be a program name with args.
6864 set dummy dsymutil; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 if test -n "$ac_ct_DSYMUTIL"; then
6871 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6891 if test -n "$ac_ct_DSYMUTIL"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6893 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899 if test "x$ac_ct_DSYMUTIL" = x; then
6900 DSYMUTIL=":"
6901 else
6902 case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908 DSYMUTIL=$ac_ct_DSYMUTIL
6909 fi
6910 else
6911 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6912 fi
6913
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test -n "$NMEDIT"; then
6923 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 NMEDIT=$ac_cv_prog_NMEDIT
6943 if test -n "$NMEDIT"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6945 $as_echo "$NMEDIT" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951
6952 fi
6953 if test -z "$ac_cv_prog_NMEDIT"; then
6954 ac_ct_NMEDIT=$NMEDIT
6955 # Extract the first word of "nmedit", so it can be a program name with args.
6956 set dummy nmedit; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$ac_ct_NMEDIT"; then
6963 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6983 if test -n "$ac_ct_NMEDIT"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6985 $as_echo "$ac_ct_NMEDIT" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991 if test "x$ac_ct_NMEDIT" = x; then
6992 NMEDIT=":"
6993 else
6994 case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000 NMEDIT=$ac_ct_NMEDIT
7001 fi
7002 else
7003 NMEDIT="$ac_cv_prog_NMEDIT"
7004 fi
7005
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_prog_LIPO+set}" = set; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$LIPO"; then
7015 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 LIPO=$ac_cv_prog_LIPO
7035 if test -n "$LIPO"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7037 $as_echo "$LIPO" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043
7044 fi
7045 if test -z "$ac_cv_prog_LIPO"; then
7046 ac_ct_LIPO=$LIPO
7047 # Extract the first word of "lipo", so it can be a program name with args.
7048 set dummy lipo; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 if test -n "$ac_ct_LIPO"; then
7055 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_LIPO="lipo"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7075 if test -n "$ac_ct_LIPO"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7077 $as_echo "$ac_ct_LIPO" >&6; }
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083 if test "x$ac_ct_LIPO" = x; then
7084 LIPO=":"
7085 else
7086 case $cross_compiling:$ac_tool_warned in
7087 yes:)
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7091 esac
7092 LIPO=$ac_ct_LIPO
7093 fi
7094 else
7095 LIPO="$ac_cv_prog_LIPO"
7096 fi
7097
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}otool; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 if test -n "$OTOOL"; then
7107 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 OTOOL=$ac_cv_prog_OTOOL
7127 if test -n "$OTOOL"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7129 $as_echo "$OTOOL" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135
7136 fi
7137 if test -z "$ac_cv_prog_OTOOL"; then
7138 ac_ct_OTOOL=$OTOOL
7139 # Extract the first word of "otool", so it can be a program name with args.
7140 set dummy otool; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$ac_ct_OTOOL"; then
7147 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_prog_ac_ct_OTOOL="otool"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7167 if test -n "$ac_ct_OTOOL"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7169 $as_echo "$ac_ct_OTOOL" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175 if test "x$ac_ct_OTOOL" = x; then
7176 OTOOL=":"
7177 else
7178 case $cross_compiling:$ac_tool_warned in
7179 yes:)
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned=yes ;;
7183 esac
7184 OTOOL=$ac_ct_OTOOL
7185 fi
7186 else
7187 OTOOL="$ac_cv_prog_OTOOL"
7188 fi
7189
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test -n "$OTOOL64"; then
7199 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 OTOOL64=$ac_cv_prog_OTOOL64
7219 if test -n "$OTOOL64"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7221 $as_echo "$OTOOL64" >&6; }
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227
7228 fi
7229 if test -z "$ac_cv_prog_OTOOL64"; then
7230 ac_ct_OTOOL64=$OTOOL64
7231 # Extract the first word of "otool64", so it can be a program name with args.
7232 set dummy otool64; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$ac_ct_OTOOL64"; then
7239 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_ac_ct_OTOOL64="otool64"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7259 if test -n "$ac_ct_OTOOL64"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7261 $as_echo "$ac_ct_OTOOL64" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267 if test "x$ac_ct_OTOOL64" = x; then
7268 OTOOL64=":"
7269 else
7270 case $cross_compiling:$ac_tool_warned in
7271 yes:)
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7275 esac
7276 OTOOL64=$ac_ct_OTOOL64
7277 fi
7278 else
7279 OTOOL64="$ac_cv_prog_OTOOL64"
7280 fi
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7309 $as_echo_n "checking for -single_module linker flag... " >&6; }
7310 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 lt_cv_apple_cc_single_mod=no
7314 if test -z "${LT_MULTI_MODULE}"; then
7315 # By default we will add the -single_module flag. You can override
7316 # by either setting the environment variable LT_MULTI_MODULE
7317 # non-empty at configure time, or by adding -multi_module to the
7318 # link flags.
7319 rm -rf libconftest.dylib*
7320 echo "int foo(void){return 1;}" > conftest.c
7321 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7322 -dynamiclib -Wl,-single_module conftest.c" >&5
7323 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7324 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7325 _lt_result=$?
7326 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7327 lt_cv_apple_cc_single_mod=yes
7328 else
7329 cat conftest.err >&5
7330 fi
7331 rm -rf libconftest.dylib*
7332 rm -f conftest.*
7333 fi
7334 fi
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7336 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7338 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7339 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 lt_cv_ld_exported_symbols_list=no
7343 save_LDFLAGS=$LDFLAGS
7344 echo "_main" > conftest.sym
7345 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348
7349 int
7350 main ()
7351 {
7352
7353 ;
7354 return 0;
7355 }
7356 _ACEOF
7357 if ac_fn_c_try_link "$LINENO"; then :
7358 lt_cv_ld_exported_symbols_list=yes
7359 else
7360 lt_cv_ld_exported_symbols_list=no
7361 fi
7362 rm -f core conftest.err conftest.$ac_objext \
7363 conftest$ac_exeext conftest.$ac_ext
7364 LDFLAGS="$save_LDFLAGS"
7365
7366 fi
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7368 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7369 case $host_os in
7370 rhapsody* | darwin1.[012])
7371 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7372 darwin1.*)
7373 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7374 darwin*) # darwin 5.x on
7375 # if running on 10.5 or later, the deployment target defaults
7376 # to the OS version, if on x86, and 10.4, the deployment
7377 # target defaults to 10.4. Don't you love it?
7378 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7379 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7380 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7381 10.[012]*)
7382 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7383 10.*)
7384 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7385 esac
7386 ;;
7387 esac
7388 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7389 _lt_dar_single_mod='$single_module'
7390 fi
7391 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7392 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7393 else
7394 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7395 fi
7396 if test "$DSYMUTIL" != ":"; then
7397 _lt_dsymutil='~$DSYMUTIL $lib || :'
7398 else
7399 _lt_dsymutil=
7400 fi
7401 ;;
7402 esac
7403
7404 for ac_header in dlfcn.h
7405 do :
7406 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7407 "
7408 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7409 cat >>confdefs.h <<_ACEOF
7410 #define HAVE_DLFCN_H 1
7411 _ACEOF
7412
7413 fi
7414
7415 done
7416
7417
7418
7419 # Set options
7420
7421
7422
7423 enable_dlopen=no
7424
7425
7426 enable_win32_dll=no
7427
7428
7429 # Check whether --enable-shared was given.
7430 if test "${enable_shared+set}" = set; then :
7431 enableval=$enable_shared; p=${PACKAGE-default}
7432 case $enableval in
7433 yes) enable_shared=yes ;;
7434 no) enable_shared=no ;;
7435 *)
7436 enable_shared=no
7437 # Look at the argument we got. We use all the common list separators.
7438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7439 for pkg in $enableval; do
7440 IFS="$lt_save_ifs"
7441 if test "X$pkg" = "X$p"; then
7442 enable_shared=yes
7443 fi
7444 done
7445 IFS="$lt_save_ifs"
7446 ;;
7447 esac
7448 else
7449 enable_shared=yes
7450 fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462 # Check whether --with-pic was given.
7463 if test "${with_pic+set}" = set; then :
7464 withval=$with_pic; pic_mode="$withval"
7465 else
7466 pic_mode=default
7467 fi
7468
7469
7470 test -z "$pic_mode" && pic_mode=default
7471
7472
7473
7474
7475
7476
7477
7478 # Check whether --enable-fast-install was given.
7479 if test "${enable_fast_install+set}" = set; then :
7480 enableval=$enable_fast_install; p=${PACKAGE-default}
7481 case $enableval in
7482 yes) enable_fast_install=yes ;;
7483 no) enable_fast_install=no ;;
7484 *)
7485 enable_fast_install=no
7486 # Look at the argument we got. We use all the common list separators.
7487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7488 for pkg in $enableval; do
7489 IFS="$lt_save_ifs"
7490 if test "X$pkg" = "X$p"; then
7491 enable_fast_install=yes
7492 fi
7493 done
7494 IFS="$lt_save_ifs"
7495 ;;
7496 esac
7497 else
7498 enable_fast_install=yes
7499 fi
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 # This can be used to rebuild libtool when needed
7512 LIBTOOL_DEPS="$ltmain"
7513
7514 # Always use our own libtool.
7515 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541 test -z "$LN_S" && LN_S="ln -s"
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 if test -n "${ZSH_VERSION+set}" ; then
7557 setopt NO_GLOB_SUBST
7558 fi
7559
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7561 $as_echo_n "checking for objdir... " >&6; }
7562 if test "${lt_cv_objdir+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 rm -f .libs 2>/dev/null
7566 mkdir .libs 2>/dev/null
7567 if test -d .libs; then
7568 lt_cv_objdir=.libs
7569 else
7570 # MS-DOS does not allow filenames that begin with a dot.
7571 lt_cv_objdir=_libs
7572 fi
7573 rmdir .libs 2>/dev/null
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7576 $as_echo "$lt_cv_objdir" >&6; }
7577 objdir=$lt_cv_objdir
7578
7579
7580
7581
7582
7583 cat >>confdefs.h <<_ACEOF
7584 #define LT_OBJDIR "$lt_cv_objdir/"
7585 _ACEOF
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603 case $host_os in
7604 aix3*)
7605 # AIX sometimes has problems with the GCC collect2 program. For some
7606 # reason, if we set the COLLECT_NAMES environment variable, the problems
7607 # vanish in a puff of smoke.
7608 if test "X${COLLECT_NAMES+set}" != Xset; then
7609 COLLECT_NAMES=
7610 export COLLECT_NAMES
7611 fi
7612 ;;
7613 esac
7614
7615 # Sed substitution that helps us do robust quoting. It backslashifies
7616 # metacharacters that are still active within double-quoted strings.
7617 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7618
7619 # Same as above, but do not quote variable references.
7620 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7621
7622 # Sed substitution to delay expansion of an escaped shell variable in a
7623 # double_quote_subst'ed string.
7624 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7625
7626 # Sed substitution to delay expansion of an escaped single quote.
7627 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7628
7629 # Sed substitution to avoid accidental globbing in evaled expressions
7630 no_glob_subst='s/\*/\\\*/g'
7631
7632 # Global variables:
7633 ofile=libtool
7634 can_build_shared=yes
7635
7636 # All known linkers require a `.a' archive for static linking (except MSVC,
7637 # which needs '.lib').
7638 libext=a
7639
7640 with_gnu_ld="$lt_cv_prog_gnu_ld"
7641
7642 old_CC="$CC"
7643 old_CFLAGS="$CFLAGS"
7644
7645 # Set sane defaults for various variables
7646 test -z "$CC" && CC=cc
7647 test -z "$LTCC" && LTCC=$CC
7648 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7649 test -z "$LD" && LD=ld
7650 test -z "$ac_objext" && ac_objext=o
7651
7652 for cc_temp in $compiler""; do
7653 case $cc_temp in
7654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7656 \-*) ;;
7657 *) break;;
7658 esac
7659 done
7660 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7661
7662
7663 # Only perform the check for file, if the check method requires it
7664 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7665 case $deplibs_check_method in
7666 file_magic*)
7667 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7669 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7670 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 case $MAGIC_CMD in
7674 [\\/*] | ?:[\\/]*)
7675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7676 ;;
7677 *)
7678 lt_save_MAGIC_CMD="$MAGIC_CMD"
7679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7681 for ac_dir in $ac_dummy; do
7682 IFS="$lt_save_ifs"
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f $ac_dir/${ac_tool_prefix}file; then
7685 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7686 if test -n "$file_magic_test_file"; then
7687 case $deplibs_check_method in
7688 "file_magic "*)
7689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7692 $EGREP "$file_magic_regex" > /dev/null; then
7693 :
7694 else
7695 cat <<_LT_EOF 1>&2
7696
7697 *** Warning: the command libtool uses to detect shared libraries,
7698 *** $file_magic_cmd, produces output that libtool cannot recognize.
7699 *** The result is that libtool may fail to recognize shared libraries
7700 *** as such. This will affect the creation of libtool libraries that
7701 *** depend on shared libraries, but programs linked with such libtool
7702 *** libraries will work regardless of this problem. Nevertheless, you
7703 *** may want to report the problem to your system manager and/or to
7704 *** bug-libtool@gnu.org
7705
7706 _LT_EOF
7707 fi ;;
7708 esac
7709 fi
7710 break
7711 fi
7712 done
7713 IFS="$lt_save_ifs"
7714 MAGIC_CMD="$lt_save_MAGIC_CMD"
7715 ;;
7716 esac
7717 fi
7718
7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720 if test -n "$MAGIC_CMD"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7722 $as_echo "$MAGIC_CMD" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729
7730
7731
7732 if test -z "$lt_cv_path_MAGIC_CMD"; then
7733 if test -n "$ac_tool_prefix"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7735 $as_echo_n "checking for file... " >&6; }
7736 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739 case $MAGIC_CMD in
7740 [\\/*] | ?:[\\/]*)
7741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7742 ;;
7743 *)
7744 lt_save_MAGIC_CMD="$MAGIC_CMD"
7745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7746 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7747 for ac_dir in $ac_dummy; do
7748 IFS="$lt_save_ifs"
7749 test -z "$ac_dir" && ac_dir=.
7750 if test -f $ac_dir/file; then
7751 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7752 if test -n "$file_magic_test_file"; then
7753 case $deplibs_check_method in
7754 "file_magic "*)
7755 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7758 $EGREP "$file_magic_regex" > /dev/null; then
7759 :
7760 else
7761 cat <<_LT_EOF 1>&2
7762
7763 *** Warning: the command libtool uses to detect shared libraries,
7764 *** $file_magic_cmd, produces output that libtool cannot recognize.
7765 *** The result is that libtool may fail to recognize shared libraries
7766 *** as such. This will affect the creation of libtool libraries that
7767 *** depend on shared libraries, but programs linked with such libtool
7768 *** libraries will work regardless of this problem. Nevertheless, you
7769 *** may want to report the problem to your system manager and/or to
7770 *** bug-libtool@gnu.org
7771
7772 _LT_EOF
7773 fi ;;
7774 esac
7775 fi
7776 break
7777 fi
7778 done
7779 IFS="$lt_save_ifs"
7780 MAGIC_CMD="$lt_save_MAGIC_CMD"
7781 ;;
7782 esac
7783 fi
7784
7785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7786 if test -n "$MAGIC_CMD"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7788 $as_echo "$MAGIC_CMD" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795 else
7796 MAGIC_CMD=:
7797 fi
7798 fi
7799
7800 fi
7801 ;;
7802 esac
7803
7804 # Use C for the default configuration in the libtool script
7805
7806 lt_save_CC="$CC"
7807 ac_ext=c
7808 ac_cpp='$CPP $CPPFLAGS'
7809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812
7813
7814 # Source file extension for C test sources.
7815 ac_ext=c
7816
7817 # Object file extension for compiled C test sources.
7818 objext=o
7819 objext=$objext
7820
7821 # Code to be used in simple compile tests
7822 lt_simple_compile_test_code="int some_variable = 0;"
7823
7824 # Code to be used in simple link tests
7825 lt_simple_link_test_code='int main(){return(0);}'
7826
7827
7828
7829
7830
7831
7832
7833 # If no C compiler was specified, use CC.
7834 LTCC=${LTCC-"$CC"}
7835
7836 # If no C compiler flags were specified, use CFLAGS.
7837 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7838
7839 # Allow CC to be a program name with arguments.
7840 compiler=$CC
7841
7842 # Save the default compiler, since it gets overwritten when the other
7843 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7844 compiler_DEFAULT=$CC
7845
7846 # save warnings/boilerplate of simple test code
7847 ac_outfile=conftest.$ac_objext
7848 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7849 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7850 _lt_compiler_boilerplate=`cat conftest.err`
7851 $RM conftest*
7852
7853 ac_outfile=conftest.$ac_objext
7854 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7855 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7856 _lt_linker_boilerplate=`cat conftest.err`
7857 $RM -r conftest*
7858
7859
7860 if test -n "$compiler"; then
7861
7862 lt_prog_compiler_no_builtin_flag=
7863
7864 if test "$GCC" = yes; then
7865 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7866
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7868 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7869 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 lt_cv_prog_compiler_rtti_exceptions=no
7873 ac_outfile=conftest.$ac_objext
7874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7875 lt_compiler_flag="-fno-rtti -fno-exceptions"
7876 # Insert the option either (1) after the last *FLAGS variable, or
7877 # (2) before a word containing "conftest.", or (3) at the end.
7878 # Note that $ac_compile itself does not contain backslashes and begins
7879 # with a dollar sign (not a hyphen), so the echo should work correctly.
7880 # The option is referenced via a variable to avoid confusing sed.
7881 lt_compile=`echo "$ac_compile" | $SED \
7882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884 -e 's:$: $lt_compiler_flag:'`
7885 (eval echo "\"\$as_me:7885: $lt_compile\"" >&5)
7886 (eval "$lt_compile" 2>conftest.err)
7887 ac_status=$?
7888 cat conftest.err >&5
7889 echo "$as_me:7889: \$? = $ac_status" >&5
7890 if (exit $ac_status) && test -s "$ac_outfile"; then
7891 # The compiler can only warn and ignore the option if not recognized
7892 # So say no if there are warnings other than the usual output.
7893 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7896 lt_cv_prog_compiler_rtti_exceptions=yes
7897 fi
7898 fi
7899 $RM conftest*
7900
7901 fi
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7903 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7904
7905 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7906 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7907 else
7908 :
7909 fi
7910
7911 fi
7912
7913
7914
7915
7916
7917
7918 lt_prog_compiler_wl=
7919 lt_prog_compiler_pic=
7920 lt_prog_compiler_static=
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7923 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7924
7925 if test "$GCC" = yes; then
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_static='-static'
7928
7929 case $host_os in
7930 aix*)
7931 # All AIX code is PIC.
7932 if test "$host_cpu" = ia64; then
7933 # AIX 5 now supports IA64 processor
7934 lt_prog_compiler_static='-Bstatic'
7935 fi
7936 ;;
7937
7938 amigaos*)
7939 case $host_cpu in
7940 powerpc)
7941 # see comment about AmigaOS4 .so support
7942 lt_prog_compiler_pic='-fPIC'
7943 ;;
7944 m68k)
7945 # FIXME: we need at least 68020 code to build shared libraries, but
7946 # adding the `-m68020' flag to GCC prevents building anything better,
7947 # like `-m68040'.
7948 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7949 ;;
7950 esac
7951 ;;
7952
7953 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7954 # PIC is the default for these OSes.
7955 ;;
7956
7957 mingw* | cygwin* | pw32* | os2* | cegcc*)
7958 # This hack is so that the source file can tell whether it is being
7959 # built for inclusion in a dll (and should export symbols for example).
7960 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7961 # (--disable-auto-import) libraries
7962 lt_prog_compiler_pic='-DDLL_EXPORT'
7963 ;;
7964
7965 darwin* | rhapsody*)
7966 # PIC is the default on this platform
7967 # Common symbols not allowed in MH_DYLIB files
7968 lt_prog_compiler_pic='-fno-common'
7969 ;;
7970
7971 hpux*)
7972 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7973 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7974 # sets the default TLS model and affects inlining.
7975 case $host_cpu in
7976 hppa*64*)
7977 # +Z the default
7978 ;;
7979 *)
7980 lt_prog_compiler_pic='-fPIC'
7981 ;;
7982 esac
7983 ;;
7984
7985 interix[3-9]*)
7986 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7987 # Instead, we relocate shared libraries at runtime.
7988 ;;
7989
7990 msdosdjgpp*)
7991 # Just because we use GCC doesn't mean we suddenly get shared libraries
7992 # on systems that don't support them.
7993 lt_prog_compiler_can_build_shared=no
7994 enable_shared=no
7995 ;;
7996
7997 *nto* | *qnx*)
7998 # QNX uses GNU C++, but need to define -shared option too, otherwise
7999 # it will coredump.
8000 lt_prog_compiler_pic='-fPIC -shared'
8001 ;;
8002
8003 sysv4*MP*)
8004 if test -d /usr/nec; then
8005 lt_prog_compiler_pic=-Kconform_pic
8006 fi
8007 ;;
8008
8009 *)
8010 lt_prog_compiler_pic='-fPIC'
8011 ;;
8012 esac
8013 else
8014 # PORTME Check for flag to pass linker flags through the system compiler.
8015 case $host_os in
8016 aix*)
8017 lt_prog_compiler_wl='-Wl,'
8018 if test "$host_cpu" = ia64; then
8019 # AIX 5 now supports IA64 processor
8020 lt_prog_compiler_static='-Bstatic'
8021 else
8022 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8023 fi
8024 ;;
8025
8026 mingw* | cygwin* | pw32* | os2* | cegcc*)
8027 # This hack is so that the source file can tell whether it is being
8028 # built for inclusion in a dll (and should export symbols for example).
8029 lt_prog_compiler_pic='-DDLL_EXPORT'
8030 ;;
8031
8032 hpux9* | hpux10* | hpux11*)
8033 lt_prog_compiler_wl='-Wl,'
8034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8035 # not for PA HP-UX.
8036 case $host_cpu in
8037 hppa*64*|ia64*)
8038 # +Z the default
8039 ;;
8040 *)
8041 lt_prog_compiler_pic='+Z'
8042 ;;
8043 esac
8044 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8045 lt_prog_compiler_static='${wl}-a ${wl}archive'
8046 ;;
8047
8048 irix5* | irix6* | nonstopux*)
8049 lt_prog_compiler_wl='-Wl,'
8050 # PIC (with -KPIC) is the default.
8051 lt_prog_compiler_static='-non_shared'
8052 ;;
8053
8054 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8055 case $cc_basename in
8056 # old Intel for x86_64 which still supported -KPIC.
8057 ecc*)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_pic='-KPIC'
8060 lt_prog_compiler_static='-static'
8061 ;;
8062 # icc used to be incompatible with GCC.
8063 # ICC 10 doesn't accept -KPIC any more.
8064 icc* | ifort*)
8065 lt_prog_compiler_wl='-Wl,'
8066 lt_prog_compiler_pic='-fPIC'
8067 lt_prog_compiler_static='-static'
8068 ;;
8069 # Lahey Fortran 8.1.
8070 lf95*)
8071 lt_prog_compiler_wl='-Wl,'
8072 lt_prog_compiler_pic='--shared'
8073 lt_prog_compiler_static='--static'
8074 ;;
8075 pgcc* | pgf77* | pgf90* | pgf95*)
8076 # Portland Group compilers (*not* the Pentium gcc compiler,
8077 # which looks to be a dead project)
8078 lt_prog_compiler_wl='-Wl,'
8079 lt_prog_compiler_pic='-fpic'
8080 lt_prog_compiler_static='-Bstatic'
8081 ;;
8082 ccc*)
8083 lt_prog_compiler_wl='-Wl,'
8084 # All Alpha code is PIC.
8085 lt_prog_compiler_static='-non_shared'
8086 ;;
8087 xl*)
8088 # IBM XL C 8.0/Fortran 10.1 on PPC
8089 lt_prog_compiler_wl='-Wl,'
8090 lt_prog_compiler_pic='-qpic'
8091 lt_prog_compiler_static='-qstaticlink'
8092 ;;
8093 *)
8094 case `$CC -V 2>&1 | sed 5q` in
8095 *Sun\ C*)
8096 # Sun C 5.9
8097 lt_prog_compiler_pic='-KPIC'
8098 lt_prog_compiler_static='-Bstatic'
8099 lt_prog_compiler_wl='-Wl,'
8100 ;;
8101 *Sun\ F*)
8102 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8103 lt_prog_compiler_pic='-KPIC'
8104 lt_prog_compiler_static='-Bstatic'
8105 lt_prog_compiler_wl=''
8106 ;;
8107 esac
8108 ;;
8109 esac
8110 ;;
8111
8112 newsos6)
8113 lt_prog_compiler_pic='-KPIC'
8114 lt_prog_compiler_static='-Bstatic'
8115 ;;
8116
8117 *nto* | *qnx*)
8118 # QNX uses GNU C++, but need to define -shared option too, otherwise
8119 # it will coredump.
8120 lt_prog_compiler_pic='-fPIC -shared'
8121 ;;
8122
8123 osf3* | osf4* | osf5*)
8124 lt_prog_compiler_wl='-Wl,'
8125 # All OSF/1 code is PIC.
8126 lt_prog_compiler_static='-non_shared'
8127 ;;
8128
8129 rdos*)
8130 lt_prog_compiler_static='-non_shared'
8131 ;;
8132
8133 solaris*)
8134 lt_prog_compiler_pic='-KPIC'
8135 lt_prog_compiler_static='-Bstatic'
8136 case $cc_basename in
8137 f77* | f90* | f95*)
8138 lt_prog_compiler_wl='-Qoption ld ';;
8139 *)
8140 lt_prog_compiler_wl='-Wl,';;
8141 esac
8142 ;;
8143
8144 sunos4*)
8145 lt_prog_compiler_wl='-Qoption ld '
8146 lt_prog_compiler_pic='-PIC'
8147 lt_prog_compiler_static='-Bstatic'
8148 ;;
8149
8150 sysv4 | sysv4.2uw2* | sysv4.3*)
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='-KPIC'
8153 lt_prog_compiler_static='-Bstatic'
8154 ;;
8155
8156 sysv4*MP*)
8157 if test -d /usr/nec ;then
8158 lt_prog_compiler_pic='-Kconform_pic'
8159 lt_prog_compiler_static='-Bstatic'
8160 fi
8161 ;;
8162
8163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8164 lt_prog_compiler_wl='-Wl,'
8165 lt_prog_compiler_pic='-KPIC'
8166 lt_prog_compiler_static='-Bstatic'
8167 ;;
8168
8169 unicos*)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_can_build_shared=no
8172 ;;
8173
8174 uts4*)
8175 lt_prog_compiler_pic='-pic'
8176 lt_prog_compiler_static='-Bstatic'
8177 ;;
8178
8179 *)
8180 lt_prog_compiler_can_build_shared=no
8181 ;;
8182 esac
8183 fi
8184
8185 case $host_os in
8186 # For platforms which do not support PIC, -DPIC is meaningless:
8187 *djgpp*)
8188 lt_prog_compiler_pic=
8189 ;;
8190 *)
8191 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8192 ;;
8193 esac
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8195 $as_echo "$lt_prog_compiler_pic" >&6; }
8196
8197
8198
8199
8200
8201
8202 #
8203 # Check to make sure the PIC flag actually works.
8204 #
8205 if test -n "$lt_prog_compiler_pic"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8207 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8208 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 lt_cv_prog_compiler_pic_works=no
8212 ac_outfile=conftest.$ac_objext
8213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8214 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8215 # Insert the option either (1) after the last *FLAGS variable, or
8216 # (2) before a word containing "conftest.", or (3) at the end.
8217 # Note that $ac_compile itself does not contain backslashes and begins
8218 # with a dollar sign (not a hyphen), so the echo should work correctly.
8219 # The option is referenced via a variable to avoid confusing sed.
8220 lt_compile=`echo "$ac_compile" | $SED \
8221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223 -e 's:$: $lt_compiler_flag:'`
8224 (eval echo "\"\$as_me:8224: $lt_compile\"" >&5)
8225 (eval "$lt_compile" 2>conftest.err)
8226 ac_status=$?
8227 cat conftest.err >&5
8228 echo "$as_me:8228: \$? = $ac_status" >&5
8229 if (exit $ac_status) && test -s "$ac_outfile"; then
8230 # The compiler can only warn and ignore the option if not recognized
8231 # So say no if there are warnings other than the usual output.
8232 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8234 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8235 lt_cv_prog_compiler_pic_works=yes
8236 fi
8237 fi
8238 $RM conftest*
8239
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8242 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8243
8244 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8245 case $lt_prog_compiler_pic in
8246 "" | " "*) ;;
8247 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8248 esac
8249 else
8250 lt_prog_compiler_pic=
8251 lt_prog_compiler_can_build_shared=no
8252 fi
8253
8254 fi
8255
8256
8257
8258
8259
8260
8261 #
8262 # Check to make sure the static flag actually works.
8263 #
8264 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8266 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8267 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 lt_cv_prog_compiler_static_works=no
8271 save_LDFLAGS="$LDFLAGS"
8272 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8273 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8274 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8275 # The linker can only warn and ignore the option if not recognized
8276 # So say no if there are warnings
8277 if test -s conftest.err; then
8278 # Append any errors to the config.log.
8279 cat conftest.err 1>&5
8280 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8282 if diff conftest.exp conftest.er2 >/dev/null; then
8283 lt_cv_prog_compiler_static_works=yes
8284 fi
8285 else
8286 lt_cv_prog_compiler_static_works=yes
8287 fi
8288 fi
8289 $RM -r conftest*
8290 LDFLAGS="$save_LDFLAGS"
8291
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8294 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8295
8296 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8297 :
8298 else
8299 lt_prog_compiler_static=
8300 fi
8301
8302
8303
8304
8305
8306
8307
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8310 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 lt_cv_prog_compiler_c_o=no
8314 $RM -r conftest 2>/dev/null
8315 mkdir conftest
8316 cd conftest
8317 mkdir out
8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319
8320 lt_compiler_flag="-o out/conftest2.$ac_objext"
8321 # Insert the option either (1) after the last *FLAGS variable, or
8322 # (2) before a word containing "conftest.", or (3) at the end.
8323 # Note that $ac_compile itself does not contain backslashes and begins
8324 # with a dollar sign (not a hyphen), so the echo should work correctly.
8325 lt_compile=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
8329 (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
8330 (eval "$lt_compile" 2>out/conftest.err)
8331 ac_status=$?
8332 cat out/conftest.err >&5
8333 echo "$as_me:8333: \$? = $ac_status" >&5
8334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8335 then
8336 # The compiler can only warn and ignore the option if not recognized
8337 # So say no if there are warnings
8338 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8341 lt_cv_prog_compiler_c_o=yes
8342 fi
8343 fi
8344 chmod u+w . 2>&5
8345 $RM conftest*
8346 # SGI C++ compiler will create directory out/ii_files/ for
8347 # template instantiation
8348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8349 $RM out/* && rmdir out
8350 cd ..
8351 $RM -r conftest
8352 $RM conftest*
8353
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8356 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8357
8358
8359
8360
8361
8362
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8365 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 lt_cv_prog_compiler_c_o=no
8369 $RM -r conftest 2>/dev/null
8370 mkdir conftest
8371 cd conftest
8372 mkdir out
8373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8374
8375 lt_compiler_flag="-o out/conftest2.$ac_objext"
8376 # Insert the option either (1) after the last *FLAGS variable, or
8377 # (2) before a word containing "conftest.", or (3) at the end.
8378 # Note that $ac_compile itself does not contain backslashes and begins
8379 # with a dollar sign (not a hyphen), so the echo should work correctly.
8380 lt_compile=`echo "$ac_compile" | $SED \
8381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8383 -e 's:$: $lt_compiler_flag:'`
8384 (eval echo "\"\$as_me:8384: $lt_compile\"" >&5)
8385 (eval "$lt_compile" 2>out/conftest.err)
8386 ac_status=$?
8387 cat out/conftest.err >&5
8388 echo "$as_me:8388: \$? = $ac_status" >&5
8389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8390 then
8391 # The compiler can only warn and ignore the option if not recognized
8392 # So say no if there are warnings
8393 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8396 lt_cv_prog_compiler_c_o=yes
8397 fi
8398 fi
8399 chmod u+w . 2>&5
8400 $RM conftest*
8401 # SGI C++ compiler will create directory out/ii_files/ for
8402 # template instantiation
8403 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8404 $RM out/* && rmdir out
8405 cd ..
8406 $RM -r conftest
8407 $RM conftest*
8408
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8412
8413
8414
8415
8416 hard_links="nottested"
8417 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8418 # do not overwrite the value of need_locks provided by the user
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8420 $as_echo_n "checking if we can lock with hard links... " >&6; }
8421 hard_links=yes
8422 $RM conftest*
8423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8424 touch conftest.a
8425 ln conftest.a conftest.b 2>&5 || hard_links=no
8426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8428 $as_echo "$hard_links" >&6; }
8429 if test "$hard_links" = no; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8431 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8432 need_locks=warn
8433 fi
8434 else
8435 need_locks=no
8436 fi
8437
8438
8439
8440
8441
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8444 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8445
8446 runpath_var=
8447 allow_undefined_flag=
8448 always_export_symbols=no
8449 archive_cmds=
8450 archive_expsym_cmds=
8451 compiler_needs_object=no
8452 enable_shared_with_static_runtimes=no
8453 export_dynamic_flag_spec=
8454 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8455 hardcode_automatic=no
8456 hardcode_direct=no
8457 hardcode_direct_absolute=no
8458 hardcode_libdir_flag_spec=
8459 hardcode_libdir_flag_spec_ld=
8460 hardcode_libdir_separator=
8461 hardcode_minus_L=no
8462 hardcode_shlibpath_var=unsupported
8463 inherit_rpath=no
8464 link_all_deplibs=unknown
8465 module_cmds=
8466 module_expsym_cmds=
8467 old_archive_from_new_cmds=
8468 old_archive_from_expsyms_cmds=
8469 thread_safe_flag_spec=
8470 whole_archive_flag_spec=
8471 # include_expsyms should be a list of space-separated symbols to be *always*
8472 # included in the symbol list
8473 include_expsyms=
8474 # exclude_expsyms can be an extended regexp of symbols to exclude
8475 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8477 # as well as any symbol that contains `d'.
8478 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8480 # platforms (ab)use it in PIC code, but their linkers get confused if
8481 # the symbol is explicitly referenced. Since portable code cannot
8482 # rely on this symbol name, it's probably fine to never include it in
8483 # preloaded symbol tables.
8484 # Exclude shared library initialization/finalization symbols.
8485 extract_expsyms_cmds=
8486
8487 case $host_os in
8488 cygwin* | mingw* | pw32* | cegcc*)
8489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8490 # When not using gcc, we currently assume that we are using
8491 # Microsoft Visual C++.
8492 if test "$GCC" != yes; then
8493 with_gnu_ld=no
8494 fi
8495 ;;
8496 interix*)
8497 # we just hope/assume this is gcc and not c89 (= MSVC++)
8498 with_gnu_ld=yes
8499 ;;
8500 openbsd*)
8501 with_gnu_ld=no
8502 ;;
8503 linux* | k*bsd*-gnu)
8504 link_all_deplibs=no
8505 ;;
8506 esac
8507
8508 ld_shlibs=yes
8509 if test "$with_gnu_ld" = yes; then
8510 # If archive_cmds runs LD, not CC, wlarc should be empty
8511 wlarc='${wl}'
8512
8513 # Set some defaults for GNU ld with shared library support. These
8514 # are reset later if shared libraries are not supported. Putting them
8515 # here allows them to be overridden if necessary.
8516 runpath_var=LD_RUN_PATH
8517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8518 export_dynamic_flag_spec='${wl}--export-dynamic'
8519 # ancient GNU ld didn't support --whole-archive et. al.
8520 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8521 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8522 else
8523 whole_archive_flag_spec=
8524 fi
8525 supports_anon_versioning=no
8526 case `$LD -v 2>&1` in
8527 *GNU\ gold*) supports_anon_versioning=yes ;;
8528 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8529 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8530 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8531 *\ 2.11.*) ;; # other 2.11 versions
8532 *) supports_anon_versioning=yes ;;
8533 esac
8534
8535 # See if GNU ld supports shared libraries.
8536 case $host_os in
8537 aix[3-9]*)
8538 # On AIX/PPC, the GNU linker is very broken
8539 if test "$host_cpu" != ia64; then
8540 ld_shlibs=no
8541 cat <<_LT_EOF 1>&2
8542
8543 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8544 *** to be unable to reliably create shared libraries on AIX.
8545 *** Therefore, libtool is disabling shared libraries support. If you
8546 *** really care for shared libraries, you may want to modify your PATH
8547 *** so that a non-GNU linker is found, and then restart.
8548
8549 _LT_EOF
8550 fi
8551 ;;
8552
8553 amigaos*)
8554 case $host_cpu in
8555 powerpc)
8556 # see comment about AmigaOS4 .so support
8557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558 archive_expsym_cmds=''
8559 ;;
8560 m68k)
8561 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)'
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 hardcode_minus_L=yes
8564 ;;
8565 esac
8566 ;;
8567
8568 beos*)
8569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8570 allow_undefined_flag=unsupported
8571 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8572 # support --undefined. This deserves some investigation. FIXME
8573 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574 else
8575 ld_shlibs=no
8576 fi
8577 ;;
8578
8579 cygwin* | mingw* | pw32* | cegcc*)
8580 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8581 # as there is no search path for DLLs.
8582 hardcode_libdir_flag_spec='-L$libdir'
8583 allow_undefined_flag=unsupported
8584 always_export_symbols=no
8585 enable_shared_with_static_runtimes=yes
8586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8587
8588 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8590 # If the export-symbols file already is a .def file (1st line
8591 # is EXPORTS), use it as is; otherwise, prepend...
8592 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8593 cp $export_symbols $output_objdir/$soname.def;
8594 else
8595 echo EXPORTS > $output_objdir/$soname.def;
8596 cat $export_symbols >> $output_objdir/$soname.def;
8597 fi~
8598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8599 else
8600 ld_shlibs=no
8601 fi
8602 ;;
8603
8604 interix[3-9]*)
8605 hardcode_direct=no
8606 hardcode_shlibpath_var=no
8607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8608 export_dynamic_flag_spec='${wl}-E'
8609 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8610 # Instead, shared libraries are loaded at an image base (0x10000000 by
8611 # default) and relocated if they conflict, which is a slow very memory
8612 # consuming and fragmenting process. To avoid this, we pick a random,
8613 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8614 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8615 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8616 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'
8617 ;;
8618
8619 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8620 tmp_diet=no
8621 if test "$host_os" = linux-dietlibc; then
8622 case $cc_basename in
8623 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8624 esac
8625 fi
8626 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8627 && test "$tmp_diet" = no
8628 then
8629 tmp_addflag=
8630 tmp_sharedflag='-shared'
8631 case $cc_basename,$host_cpu in
8632 pgcc*) # Portland Group C compiler
8633 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'
8634 tmp_addflag=' $pic_flag'
8635 ;;
8636 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8637 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'
8638 tmp_addflag=' $pic_flag -Mnomain' ;;
8639 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8640 tmp_addflag=' -i_dynamic' ;;
8641 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8642 tmp_addflag=' -i_dynamic -nofor_main' ;;
8643 ifc* | ifort*) # Intel Fortran compiler
8644 tmp_addflag=' -nofor_main' ;;
8645 lf95*) # Lahey Fortran 8.1
8646 whole_archive_flag_spec=
8647 tmp_sharedflag='--shared' ;;
8648 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8649 tmp_sharedflag='-qmkshrobj'
8650 tmp_addflag= ;;
8651 esac
8652 case `$CC -V 2>&1 | sed 5q` in
8653 *Sun\ C*) # Sun C 5.9
8654 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'
8655 compiler_needs_object=yes
8656 tmp_sharedflag='-G' ;;
8657 *Sun\ F*) # Sun Fortran 8.3
8658 tmp_sharedflag='-G' ;;
8659 esac
8660 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661
8662 if test "x$supports_anon_versioning" = xyes; then
8663 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8665 echo "local: *; };" >> $output_objdir/$libname.ver~
8666 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8667 fi
8668
8669 case $cc_basename in
8670 xlf*)
8671 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8672 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8673 hardcode_libdir_flag_spec=
8674 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8675 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8676 if test "x$supports_anon_versioning" = xyes; then
8677 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8679 echo "local: *; };" >> $output_objdir/$libname.ver~
8680 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8681 fi
8682 ;;
8683 esac
8684 else
8685 ld_shlibs=no
8686 fi
8687 ;;
8688
8689 netbsd* | netbsdelf*-gnu)
8690 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8691 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8692 wlarc=
8693 else
8694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8696 fi
8697 ;;
8698
8699 solaris*)
8700 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8701 ld_shlibs=no
8702 cat <<_LT_EOF 1>&2
8703
8704 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8705 *** create shared libraries on Solaris systems. Therefore, libtool
8706 *** is disabling shared libraries support. We urge you to upgrade GNU
8707 *** binutils to release 2.9.1 or newer. Another option is to modify
8708 *** your PATH or compiler configuration so that the native linker is
8709 *** used, and then restart.
8710
8711 _LT_EOF
8712 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715 else
8716 ld_shlibs=no
8717 fi
8718 ;;
8719
8720 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8721 case `$LD -v 2>&1` in
8722 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8723 ld_shlibs=no
8724 cat <<_LT_EOF 1>&2
8725
8726 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8727 *** reliably create shared libraries on SCO systems. Therefore, libtool
8728 *** is disabling shared libraries support. We urge you to upgrade GNU
8729 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8730 *** your PATH or compiler configuration so that the native linker is
8731 *** used, and then restart.
8732
8733 _LT_EOF
8734 ;;
8735 *)
8736 # For security reasons, it is highly recommended that you always
8737 # use absolute paths for naming shared libraries, and exclude the
8738 # DT_RUNPATH tag from executables and libraries. But doing so
8739 # requires that you compile everything twice, which is a pain.
8740 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744 else
8745 ld_shlibs=no
8746 fi
8747 ;;
8748 esac
8749 ;;
8750
8751 sunos4*)
8752 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8753 wlarc=
8754 hardcode_direct=yes
8755 hardcode_shlibpath_var=no
8756 ;;
8757
8758 *)
8759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8762 else
8763 ld_shlibs=no
8764 fi
8765 ;;
8766 esac
8767
8768 if test "$ld_shlibs" = no; then
8769 runpath_var=
8770 hardcode_libdir_flag_spec=
8771 export_dynamic_flag_spec=
8772 whole_archive_flag_spec=
8773 fi
8774 else
8775 # PORTME fill in a description of your system's linker (not GNU ld)
8776 case $host_os in
8777 aix3*)
8778 allow_undefined_flag=unsupported
8779 always_export_symbols=yes
8780 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'
8781 # Note: this linker hardcodes the directories in LIBPATH if there
8782 # are no directories specified by -L.
8783 hardcode_minus_L=yes
8784 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8785 # Neither direct hardcoding nor static linking is supported with a
8786 # broken collect2.
8787 hardcode_direct=unsupported
8788 fi
8789 ;;
8790
8791 aix[4-9]*)
8792 if test "$host_cpu" = ia64; then
8793 # On IA64, the linker does run time linking by default, so we don't
8794 # have to do anything special.
8795 aix_use_runtimelinking=no
8796 exp_sym_flag='-Bexport'
8797 no_entry_flag=""
8798 else
8799 # If we're using GNU nm, then we don't want the "-C" option.
8800 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8802 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'
8803 else
8804 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'
8805 fi
8806 aix_use_runtimelinking=no
8807
8808 # Test if we are trying to use run time linking or normal
8809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8810 # need to do runtime linking.
8811 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8812 for ld_flag in $LDFLAGS; do
8813 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8814 aix_use_runtimelinking=yes
8815 break
8816 fi
8817 done
8818 ;;
8819 esac
8820
8821 exp_sym_flag='-bexport'
8822 no_entry_flag='-bnoentry'
8823 fi
8824
8825 # When large executables or shared objects are built, AIX ld can
8826 # have problems creating the table of contents. If linking a library
8827 # or program results in "error TOC overflow" add -mminimal-toc to
8828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8830
8831 archive_cmds=''
8832 hardcode_direct=yes
8833 hardcode_direct_absolute=yes
8834 hardcode_libdir_separator=':'
8835 link_all_deplibs=yes
8836 file_list_spec='${wl}-f,'
8837
8838 if test "$GCC" = yes; then
8839 case $host_os in aix4.[012]|aix4.[012].*)
8840 # We only want to do this on AIX 4.2 and lower, the check
8841 # below for broken collect2 doesn't work under 4.3+
8842 collect2name=`${CC} -print-prog-name=collect2`
8843 if test -f "$collect2name" &&
8844 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8845 then
8846 # We have reworked collect2
8847 :
8848 else
8849 # We have old collect2
8850 hardcode_direct=unsupported
8851 # It fails to find uninstalled libraries when the uninstalled
8852 # path is not listed in the libpath. Setting hardcode_minus_L
8853 # to unsupported forces relinking
8854 hardcode_minus_L=yes
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 hardcode_libdir_separator=
8857 fi
8858 ;;
8859 esac
8860 shared_flag='-shared'
8861 if test "$aix_use_runtimelinking" = yes; then
8862 shared_flag="$shared_flag "'${wl}-G'
8863 fi
8864 link_all_deplibs=no
8865 else
8866 # not using gcc
8867 if test "$host_cpu" = ia64; then
8868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8869 # chokes on -Wl,-G. The following line is correct:
8870 shared_flag='-G'
8871 else
8872 if test "$aix_use_runtimelinking" = yes; then
8873 shared_flag='${wl}-G'
8874 else
8875 shared_flag='${wl}-bM:SRE'
8876 fi
8877 fi
8878 fi
8879
8880 export_dynamic_flag_spec='${wl}-bexpall'
8881 # It seems that -bexpall does not export symbols beginning with
8882 # underscore (_), so it is better to generate a list of symbols to export.
8883 always_export_symbols=yes
8884 if test "$aix_use_runtimelinking" = yes; then
8885 # Warning - without using the other runtime loading flags (-brtl),
8886 # -berok will link without error, but may produce a broken library.
8887 allow_undefined_flag='-berok'
8888 # Determine the default libpath from the value encoded in an
8889 # empty executable.
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892
8893 int
8894 main ()
8895 {
8896
8897 ;
8898 return 0;
8899 }
8900 _ACEOF
8901 if ac_fn_c_try_link "$LINENO"; then :
8902
8903 lt_aix_libpath_sed='
8904 /Import File Strings/,/^$/ {
8905 /^0/ {
8906 s/^0 *\(.*\)$/\1/
8907 p
8908 }
8909 }'
8910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8911 # Check for a 64-bit object if we didn't find anything.
8912 if test -z "$aix_libpath"; then
8913 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8914 fi
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8919
8920 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8921 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"
8922 else
8923 if test "$host_cpu" = ia64; then
8924 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8925 allow_undefined_flag="-z nodefs"
8926 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"
8927 else
8928 # Determine the default libpath from the value encoded in an
8929 # empty executable.
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932
8933 int
8934 main ()
8935 {
8936
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"; then :
8942
8943 lt_aix_libpath_sed='
8944 /Import File Strings/,/^$/ {
8945 /^0/ {
8946 s/^0 *\(.*\)$/\1/
8947 p
8948 }
8949 }'
8950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8951 # Check for a 64-bit object if we didn't find anything.
8952 if test -z "$aix_libpath"; then
8953 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8954 fi
8955 fi
8956 rm -f core conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext conftest.$ac_ext
8958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8959
8960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8961 # Warning - without using the other run time loading flags,
8962 # -berok will link without error, but may produce a broken library.
8963 no_undefined_flag=' ${wl}-bernotok'
8964 allow_undefined_flag=' ${wl}-berok'
8965 # Exported symbols can be pulled into shared objects from archives
8966 whole_archive_flag_spec='$convenience'
8967 archive_cmds_need_lc=yes
8968 # This is similar to how AIX traditionally builds its shared libraries.
8969 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'
8970 fi
8971 fi
8972 ;;
8973
8974 amigaos*)
8975 case $host_cpu in
8976 powerpc)
8977 # see comment about AmigaOS4 .so support
8978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979 archive_expsym_cmds=''
8980 ;;
8981 m68k)
8982 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)'
8983 hardcode_libdir_flag_spec='-L$libdir'
8984 hardcode_minus_L=yes
8985 ;;
8986 esac
8987 ;;
8988
8989 bsdi[45]*)
8990 export_dynamic_flag_spec=-rdynamic
8991 ;;
8992
8993 cygwin* | mingw* | pw32* | cegcc*)
8994 # When not using gcc, we currently assume that we are using
8995 # Microsoft Visual C++.
8996 # hardcode_libdir_flag_spec is actually meaningless, as there is
8997 # no search path for DLLs.
8998 hardcode_libdir_flag_spec=' '
8999 allow_undefined_flag=unsupported
9000 # Tell ltmain to make .lib files, not .a files.
9001 libext=lib
9002 # Tell ltmain to make .dll files, not .so files.
9003 shrext_cmds=".dll"
9004 # FIXME: Setting linknames here is a bad hack.
9005 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9006 # The linker will automatically build a .lib file if we build a DLL.
9007 old_archive_from_new_cmds='true'
9008 # FIXME: Should let the user specify the lib program.
9009 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9010 fix_srcfile_path='`cygpath -w "$srcfile"`'
9011 enable_shared_with_static_runtimes=yes
9012 ;;
9013
9014 darwin* | rhapsody*)
9015
9016
9017 archive_cmds_need_lc=no
9018 hardcode_direct=no
9019 hardcode_automatic=yes
9020 hardcode_shlibpath_var=unsupported
9021 whole_archive_flag_spec=''
9022 link_all_deplibs=yes
9023 allow_undefined_flag="$_lt_dar_allow_undefined"
9024 case $cc_basename in
9025 ifort*) _lt_dar_can_shared=yes ;;
9026 *) _lt_dar_can_shared=$GCC ;;
9027 esac
9028 if test "$_lt_dar_can_shared" = "yes"; then
9029 output_verbose_link_cmd=echo
9030 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9031 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9032 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}"
9033 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}"
9034
9035 else
9036 ld_shlibs=no
9037 fi
9038
9039 ;;
9040
9041 dgux*)
9042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043 hardcode_libdir_flag_spec='-L$libdir'
9044 hardcode_shlibpath_var=no
9045 ;;
9046
9047 freebsd1*)
9048 ld_shlibs=no
9049 ;;
9050
9051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9052 # support. Future versions do this automatically, but an explicit c++rt0.o
9053 # does not break anything, and helps significantly (at the cost of a little
9054 # extra space).
9055 freebsd2.2*)
9056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9057 hardcode_libdir_flag_spec='-R$libdir'
9058 hardcode_direct=yes
9059 hardcode_shlibpath_var=no
9060 ;;
9061
9062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9063 freebsd2*)
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9065 hardcode_direct=yes
9066 hardcode_minus_L=yes
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9071 freebsd* | dragonfly*)
9072 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9073 hardcode_libdir_flag_spec='-R$libdir'
9074 hardcode_direct=yes
9075 hardcode_shlibpath_var=no
9076 ;;
9077
9078 hpux9*)
9079 if test "$GCC" = yes; then
9080 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'
9081 else
9082 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'
9083 fi
9084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9085 hardcode_libdir_separator=:
9086 hardcode_direct=yes
9087
9088 # hardcode_minus_L: Not really in the search PATH,
9089 # but as the default location of the library.
9090 hardcode_minus_L=yes
9091 export_dynamic_flag_spec='${wl}-E'
9092 ;;
9093
9094 hpux10*)
9095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9097 else
9098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9099 fi
9100 if test "$with_gnu_ld" = no; then
9101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9102 hardcode_libdir_flag_spec_ld='+b $libdir'
9103 hardcode_libdir_separator=:
9104 hardcode_direct=yes
9105 hardcode_direct_absolute=yes
9106 export_dynamic_flag_spec='${wl}-E'
9107 # hardcode_minus_L: Not really in the search PATH,
9108 # but as the default location of the library.
9109 hardcode_minus_L=yes
9110 fi
9111 ;;
9112
9113 hpux11*)
9114 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9115 case $host_cpu in
9116 hppa*64*)
9117 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 ;;
9119 ia64*)
9120 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 *)
9123 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 esac
9126 else
9127 case $host_cpu in
9128 hppa*64*)
9129 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9130 ;;
9131 ia64*)
9132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9133 ;;
9134 *)
9135 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9136 ;;
9137 esac
9138 fi
9139 if test "$with_gnu_ld" = no; then
9140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9141 hardcode_libdir_separator=:
9142
9143 case $host_cpu in
9144 hppa*64*|ia64*)
9145 hardcode_direct=no
9146 hardcode_shlibpath_var=no
9147 ;;
9148 *)
9149 hardcode_direct=yes
9150 hardcode_direct_absolute=yes
9151 export_dynamic_flag_spec='${wl}-E'
9152
9153 # hardcode_minus_L: Not really in the search PATH,
9154 # but as the default location of the library.
9155 hardcode_minus_L=yes
9156 ;;
9157 esac
9158 fi
9159 ;;
9160
9161 irix5* | irix6* | nonstopux*)
9162 if test "$GCC" = yes; then
9163 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'
9164 # Try to use the -exported_symbol ld option, if it does not
9165 # work, assume that -exports_file does not work either and
9166 # implicitly export all symbols.
9167 save_LDFLAGS="$LDFLAGS"
9168 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 int foo(void) {}
9172 _ACEOF
9173 if ac_fn_c_try_link "$LINENO"; then :
9174 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'
9175
9176 fi
9177 rm -f core conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 LDFLAGS="$save_LDFLAGS"
9180 else
9181 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'
9182 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'
9183 fi
9184 archive_cmds_need_lc='no'
9185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186 hardcode_libdir_separator=:
9187 inherit_rpath=yes
9188 link_all_deplibs=yes
9189 ;;
9190
9191 netbsd* | netbsdelf*-gnu)
9192 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9194 else
9195 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9196 fi
9197 hardcode_libdir_flag_spec='-R$libdir'
9198 hardcode_direct=yes
9199 hardcode_shlibpath_var=no
9200 ;;
9201
9202 newsos6)
9203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204 hardcode_direct=yes
9205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9206 hardcode_libdir_separator=:
9207 hardcode_shlibpath_var=no
9208 ;;
9209
9210 *nto* | *qnx*)
9211 ;;
9212
9213 openbsd*)
9214 if test -f /usr/libexec/ld.so; then
9215 hardcode_direct=yes
9216 hardcode_shlibpath_var=no
9217 hardcode_direct_absolute=yes
9218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9222 export_dynamic_flag_spec='${wl}-E'
9223 else
9224 case $host_os in
9225 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9227 hardcode_libdir_flag_spec='-R$libdir'
9228 ;;
9229 *)
9230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9232 ;;
9233 esac
9234 fi
9235 else
9236 ld_shlibs=no
9237 fi
9238 ;;
9239
9240 os2*)
9241 hardcode_libdir_flag_spec='-L$libdir'
9242 hardcode_minus_L=yes
9243 allow_undefined_flag=unsupported
9244 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'
9245 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9246 ;;
9247
9248 osf3*)
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}-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 else
9253 allow_undefined_flag=' -expect_unresolved \*'
9254 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'
9255 fi
9256 archive_cmds_need_lc='no'
9257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9258 hardcode_libdir_separator=:
9259 ;;
9260
9261 osf4* | osf5*) # as osf3* with the addition of -msym flag
9262 if test "$GCC" = yes; then
9263 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9264 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'
9265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9266 else
9267 allow_undefined_flag=' -expect_unresolved \*'
9268 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'
9269 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~
9270 $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'
9271
9272 # Both c and cxx compiler support -rpath directly
9273 hardcode_libdir_flag_spec='-rpath $libdir'
9274 fi
9275 archive_cmds_need_lc='no'
9276 hardcode_libdir_separator=:
9277 ;;
9278
9279 solaris*)
9280 no_undefined_flag=' -z defs'
9281 if test "$GCC" = yes; then
9282 wlarc='${wl}'
9283 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$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 -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9286 else
9287 case `$CC -V 2>&1` in
9288 *"Compilers 5.0"*)
9289 wlarc=''
9290 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9293 ;;
9294 *)
9295 wlarc='${wl}'
9296 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9297 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9298 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9299 ;;
9300 esac
9301 fi
9302 hardcode_libdir_flag_spec='-R$libdir'
9303 hardcode_shlibpath_var=no
9304 case $host_os in
9305 solaris2.[0-5] | solaris2.[0-5].*) ;;
9306 *)
9307 # The compiler driver will combine and reorder linker options,
9308 # but understands `-z linker_flag'. GCC discards it without `$wl',
9309 # but is careful enough not to reorder.
9310 # Supported since Solaris 2.6 (maybe 2.5.1?)
9311 if test "$GCC" = yes; then
9312 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9313 else
9314 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9315 fi
9316 ;;
9317 esac
9318 link_all_deplibs=yes
9319 ;;
9320
9321 sunos4*)
9322 if test "x$host_vendor" = xsequent; then
9323 # Use $CC to link under sequent, because it throws in some extra .o
9324 # files that make .init and .fini sections work.
9325 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9326 else
9327 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9328 fi
9329 hardcode_libdir_flag_spec='-L$libdir'
9330 hardcode_direct=yes
9331 hardcode_minus_L=yes
9332 hardcode_shlibpath_var=no
9333 ;;
9334
9335 sysv4)
9336 case $host_vendor in
9337 sni)
9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_direct=yes # is this really true???
9340 ;;
9341 siemens)
9342 ## LD is ld it makes a PLAMLIB
9343 ## CC just makes a GrossModule.
9344 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9345 reload_cmds='$CC -r -o $output$reload_objs'
9346 hardcode_direct=no
9347 ;;
9348 motorola)
9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9351 ;;
9352 esac
9353 runpath_var='LD_RUN_PATH'
9354 hardcode_shlibpath_var=no
9355 ;;
9356
9357 sysv4.3*)
9358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359 hardcode_shlibpath_var=no
9360 export_dynamic_flag_spec='-Bexport'
9361 ;;
9362
9363 sysv4*MP*)
9364 if test -d /usr/nec; then
9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_shlibpath_var=no
9367 runpath_var=LD_RUN_PATH
9368 hardcode_runpath_var=yes
9369 ld_shlibs=yes
9370 fi
9371 ;;
9372
9373 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9374 no_undefined_flag='${wl}-z,text'
9375 archive_cmds_need_lc=no
9376 hardcode_shlibpath_var=no
9377 runpath_var='LD_RUN_PATH'
9378
9379 if test "$GCC" = yes; then
9380 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 else
9383 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 fi
9386 ;;
9387
9388 sysv5* | sco3.2v5* | sco5v6*)
9389 # Note: We can NOT use -z defs as we might desire, because we do not
9390 # link with -lc, and that would cause any symbols used from libc to
9391 # always be unresolved, which means just about no library would
9392 # ever link correctly. If we're not using GNU ld we use -z text
9393 # though, which does catch some bad symbols but isn't as heavy-handed
9394 # as -z defs.
9395 no_undefined_flag='${wl}-z,text'
9396 allow_undefined_flag='${wl}-z,nodefs'
9397 archive_cmds_need_lc=no
9398 hardcode_shlibpath_var=no
9399 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9400 hardcode_libdir_separator=':'
9401 link_all_deplibs=yes
9402 export_dynamic_flag_spec='${wl}-Bexport'
9403 runpath_var='LD_RUN_PATH'
9404
9405 if test "$GCC" = yes; then
9406 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 else
9409 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 fi
9412 ;;
9413
9414 uts4*)
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_shlibpath_var=no
9418 ;;
9419
9420 *)
9421 ld_shlibs=no
9422 ;;
9423 esac
9424
9425 if test x$host_vendor = xsni; then
9426 case $host in
9427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9428 export_dynamic_flag_spec='${wl}-Blargedynsym'
9429 ;;
9430 esac
9431 fi
9432 fi
9433
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9435 $as_echo "$ld_shlibs" >&6; }
9436 test "$ld_shlibs" = no && can_build_shared=no
9437
9438 with_gnu_ld=$with_gnu_ld
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454 #
9455 # Do we need to explicitly link libc?
9456 #
9457 case "x$archive_cmds_need_lc" in
9458 x|xyes)
9459 # Assume -lc should be added
9460 archive_cmds_need_lc=yes
9461
9462 if test "$enable_shared" = yes && test "$GCC" = yes; then
9463 case $archive_cmds in
9464 *'~'*)
9465 # FIXME: we may have to deal with multi-command sequences.
9466 ;;
9467 '$CC '*)
9468 # Test whether the compiler implicitly links with -lc since on some
9469 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9470 # to ld, don't add -lc before -lgcc.
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9472 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9473 $RM conftest*
9474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9475
9476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9477 (eval $ac_compile) 2>&5
9478 ac_status=$?
9479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9480 test $ac_status = 0; } 2>conftest.err; then
9481 soname=conftest
9482 lib=conftest
9483 libobjs=conftest.$ac_objext
9484 deplibs=
9485 wl=$lt_prog_compiler_wl
9486 pic_flag=$lt_prog_compiler_pic
9487 compiler_flags=-v
9488 linker_flags=-v
9489 verstring=
9490 output_objdir=.
9491 libname=conftest
9492 lt_save_allow_undefined_flag=$allow_undefined_flag
9493 allow_undefined_flag=
9494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9495 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9496 ac_status=$?
9497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9498 test $ac_status = 0; }
9499 then
9500 archive_cmds_need_lc=no
9501 else
9502 archive_cmds_need_lc=yes
9503 fi
9504 allow_undefined_flag=$lt_save_allow_undefined_flag
9505 else
9506 cat conftest.err 1>&5
9507 fi
9508 $RM conftest*
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9510 $as_echo "$archive_cmds_need_lc" >&6; }
9511 ;;
9512 esac
9513 fi
9514 ;;
9515 esac
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
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9674 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9675
9676 if test "$GCC" = yes; then
9677 case $host_os in
9678 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9679 *) lt_awk_arg="/^libraries:/" ;;
9680 esac
9681 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9682 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9683 # if the path contains ";" then we assume it to be the separator
9684 # otherwise default to the standard path separator (i.e. ":") - it is
9685 # assumed that no part of a normal pathname contains ";" but that should
9686 # okay in the real world where ";" in dirpaths is itself problematic.
9687 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9688 else
9689 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9690 fi
9691 # Ok, now we have the path, separated by spaces, we can step through it
9692 # and add multilib dir if necessary.
9693 lt_tmp_lt_search_path_spec=
9694 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9695 for lt_sys_path in $lt_search_path_spec; do
9696 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9697 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9698 else
9699 test -d "$lt_sys_path" && \
9700 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9701 fi
9702 done
9703 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9704 BEGIN {RS=" "; FS="/|\n";} {
9705 lt_foo="";
9706 lt_count=0;
9707 for (lt_i = NF; lt_i > 0; lt_i--) {
9708 if ($lt_i != "" && $lt_i != ".") {
9709 if ($lt_i == "..") {
9710 lt_count++;
9711 } else {
9712 if (lt_count == 0) {
9713 lt_foo="/" $lt_i lt_foo;
9714 } else {
9715 lt_count--;
9716 }
9717 }
9718 }
9719 }
9720 if (lt_foo != "") { lt_freq[lt_foo]++; }
9721 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9722 }'`
9723 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9724 else
9725 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9726 fi
9727 library_names_spec=
9728 libname_spec='lib$name'
9729 soname_spec=
9730 shrext_cmds=".so"
9731 postinstall_cmds=
9732 postuninstall_cmds=
9733 finish_cmds=
9734 finish_eval=
9735 shlibpath_var=
9736 shlibpath_overrides_runpath=unknown
9737 version_type=none
9738 dynamic_linker="$host_os ld.so"
9739 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9740 need_lib_prefix=unknown
9741 hardcode_into_libs=no
9742
9743 # when you set need_version to no, make sure it does not cause -set_version
9744 # flags to be left without arguments
9745 need_version=unknown
9746
9747 case $host_os in
9748 aix3*)
9749 version_type=linux
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9751 shlibpath_var=LIBPATH
9752
9753 # AIX 3 has no versioning support, so we append a major version to the name.
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 ;;
9756
9757 aix[4-9]*)
9758 version_type=linux
9759 need_lib_prefix=no
9760 need_version=no
9761 hardcode_into_libs=yes
9762 if test "$host_cpu" = ia64; then
9763 # AIX 5 supports IA64
9764 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9765 shlibpath_var=LD_LIBRARY_PATH
9766 else
9767 # With GCC up to 2.95.x, collect2 would create an import file
9768 # for dependence libraries. The import file would start with
9769 # the line `#! .'. This would cause the generated library to
9770 # depend on `.', always an invalid library. This was fixed in
9771 # development snapshots of GCC prior to 3.0.
9772 case $host_os in
9773 aix4 | aix4.[01] | aix4.[01].*)
9774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9775 echo ' yes '
9776 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9777 :
9778 else
9779 can_build_shared=no
9780 fi
9781 ;;
9782 esac
9783 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9784 # soname into executable. Probably we can add versioning support to
9785 # collect2, so additional links can be useful in future.
9786 if test "$aix_use_runtimelinking" = yes; then
9787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9788 # instead of lib<name>.a to let people know that these are not
9789 # typical AIX shared libraries.
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 else
9792 # We preserve .a as extension for shared libraries through AIX4.2
9793 # and later when we are not doing run time linking.
9794 library_names_spec='${libname}${release}.a $libname.a'
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 fi
9797 shlibpath_var=LIBPATH
9798 fi
9799 ;;
9800
9801 amigaos*)
9802 case $host_cpu in
9803 powerpc)
9804 # Since July 2007 AmigaOS4 officially supports .so libraries.
9805 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 ;;
9808 m68k)
9809 library_names_spec='$libname.ixlibrary $libname.a'
9810 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9811 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'
9812 ;;
9813 esac
9814 ;;
9815
9816 beos*)
9817 library_names_spec='${libname}${shared_ext}'
9818 dynamic_linker="$host_os ld.so"
9819 shlibpath_var=LIBRARY_PATH
9820 ;;
9821
9822 bsdi[45]*)
9823 version_type=linux
9824 need_version=no
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9830 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9831 # the default ld.so.conf also contains /usr/contrib/lib and
9832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9833 # libtool to hard-code these into programs
9834 ;;
9835
9836 cygwin* | mingw* | pw32* | cegcc*)
9837 version_type=windows
9838 shrext_cmds=".dll"
9839 need_version=no
9840 need_lib_prefix=no
9841
9842 case $GCC,$host_os in
9843 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9844 library_names_spec='$libname.dll.a'
9845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9846 postinstall_cmds='base_file=`basename \${file}`~
9847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9848 dldir=$destdir/`dirname \$dlpath`~
9849 test -d \$dldir || mkdir -p \$dldir~
9850 $install_prog $dir/$dlname \$dldir/$dlname~
9851 chmod a+x \$dldir/$dlname~
9852 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9853 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9854 fi'
9855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9856 dlpath=$dir/\$dldll~
9857 $RM \$dlpath'
9858 shlibpath_overrides_runpath=yes
9859
9860 case $host_os in
9861 cygwin*)
9862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9863 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9864 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9865 ;;
9866 mingw* | cegcc*)
9867 # MinGW DLLs use traditional 'lib' prefix
9868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9870 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9871 # It is most probably a Windows format PATH printed by
9872 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9873 # path with ; separators, and with drive letters. We can handle the
9874 # drive letters (cygwin fileutils understands them), so leave them,
9875 # especially as we might pass files found there to a mingw objdump,
9876 # which wouldn't understand a cygwinified path. Ahh.
9877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9878 else
9879 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9880 fi
9881 ;;
9882 pw32*)
9883 # pw32 DLLs use 'pw' prefix rather than 'lib'
9884 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9885 ;;
9886 esac
9887 ;;
9888
9889 *)
9890 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9891 ;;
9892 esac
9893 dynamic_linker='Win32 ld.exe'
9894 # FIXME: first we should search . and the directory the executable is in
9895 shlibpath_var=PATH
9896 ;;
9897
9898 darwin* | rhapsody*)
9899 dynamic_linker="$host_os dyld"
9900 version_type=darwin
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9904 soname_spec='${libname}${release}${major}$shared_ext'
9905 shlibpath_overrides_runpath=yes
9906 shlibpath_var=DYLD_LIBRARY_PATH
9907 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9908
9909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9910 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9911 ;;
9912
9913 dgux*)
9914 version_type=linux
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 ;;
9921
9922 freebsd1*)
9923 dynamic_linker=no
9924 ;;
9925
9926 freebsd* | dragonfly*)
9927 # DragonFly does not have aout. When/if they implement a new
9928 # versioning mechanism, adjust this.
9929 if test -x /usr/bin/objformat; then
9930 objformat=`/usr/bin/objformat`
9931 else
9932 case $host_os in
9933 freebsd[123]*) objformat=aout ;;
9934 *) objformat=elf ;;
9935 esac
9936 fi
9937 version_type=freebsd-$objformat
9938 case $version_type in
9939 freebsd-elf*)
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9941 need_version=no
9942 need_lib_prefix=no
9943 ;;
9944 freebsd-*)
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9946 need_version=yes
9947 ;;
9948 esac
9949 shlibpath_var=LD_LIBRARY_PATH
9950 case $host_os in
9951 freebsd2*)
9952 shlibpath_overrides_runpath=yes
9953 ;;
9954 freebsd3.[01]* | freebsdelf3.[01]*)
9955 shlibpath_overrides_runpath=yes
9956 hardcode_into_libs=yes
9957 ;;
9958 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9959 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9960 shlibpath_overrides_runpath=no
9961 hardcode_into_libs=yes
9962 ;;
9963 *) # from 4.6 on, and DragonFly
9964 shlibpath_overrides_runpath=yes
9965 hardcode_into_libs=yes
9966 ;;
9967 esac
9968 ;;
9969
9970 gnu*)
9971 version_type=linux
9972 need_lib_prefix=no
9973 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 hardcode_into_libs=yes
9978 ;;
9979
9980 hpux9* | hpux10* | hpux11*)
9981 # Give a soname corresponding to the major version so that dld.sl refuses to
9982 # link against other versions.
9983 version_type=sunos
9984 need_lib_prefix=no
9985 need_version=no
9986 case $host_cpu in
9987 ia64*)
9988 shrext_cmds='.so'
9989 hardcode_into_libs=yes
9990 dynamic_linker="$host_os dld.so"
9991 shlibpath_var=LD_LIBRARY_PATH
9992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994 soname_spec='${libname}${release}${shared_ext}$major'
9995 if test "X$HPUX_IA64_MODE" = X32; then
9996 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9997 else
9998 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9999 fi
10000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10001 ;;
10002 hppa*64*)
10003 shrext_cmds='.sl'
10004 hardcode_into_libs=yes
10005 dynamic_linker="$host_os dld.sl"
10006 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10012 ;;
10013 *)
10014 shrext_cmds='.sl'
10015 dynamic_linker="$host_os dld.sl"
10016 shlibpath_var=SHLIB_PATH
10017 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 ;;
10021 esac
10022 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10023 postinstall_cmds='chmod 555 $lib'
10024 ;;
10025
10026 interix[3-9]*)
10027 version_type=linux
10028 need_lib_prefix=no
10029 need_version=no
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 shlibpath_overrides_runpath=no
10035 hardcode_into_libs=yes
10036 ;;
10037
10038 irix5* | irix6* | nonstopux*)
10039 case $host_os in
10040 nonstopux*) version_type=nonstopux ;;
10041 *)
10042 if test "$lt_cv_prog_gnu_ld" = yes; then
10043 version_type=linux
10044 else
10045 version_type=irix
10046 fi ;;
10047 esac
10048 need_lib_prefix=no
10049 need_version=no
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10052 case $host_os in
10053 irix5* | nonstopux*)
10054 libsuff= shlibsuff=
10055 ;;
10056 *)
10057 case $LD in # libtool.m4 will add one of these switches to LD
10058 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10059 libsuff= shlibsuff= libmagic=32-bit;;
10060 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10061 libsuff=32 shlibsuff=N32 libmagic=N32;;
10062 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10063 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10064 *) libsuff= shlibsuff= libmagic=never-match;;
10065 esac
10066 ;;
10067 esac
10068 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10069 shlibpath_overrides_runpath=no
10070 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10071 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10072 hardcode_into_libs=yes
10073 ;;
10074
10075 # No shared lib support for Linux oldld, aout, or coff.
10076 linux*oldld* | linux*aout* | linux*coff*)
10077 dynamic_linker=no
10078 ;;
10079
10080 # This must be Linux ELF.
10081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10082 version_type=linux
10083 need_lib_prefix=no
10084 need_version=no
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 shlibpath_overrides_runpath=no
10090 # Some binutils ld are patched to set DT_RUNPATH
10091 save_LDFLAGS=$LDFLAGS
10092 save_libdir=$libdir
10093 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10094 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097
10098 int
10099 main ()
10100 {
10101
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 if ac_fn_c_try_link "$LINENO"; then :
10107 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10108 shlibpath_overrides_runpath=yes
10109 fi
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 LDFLAGS=$save_LDFLAGS
10114 libdir=$save_libdir
10115
10116 # This implies no fast_install, which is unacceptable.
10117 # Some rework will be needed to allow for fast_install
10118 # before this can be enabled.
10119 hardcode_into_libs=yes
10120
10121 # Append ld.so.conf contents to the search path
10122 if test -f /etc/ld.so.conf; then
10123 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' ' '`
10124 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10125 fi
10126
10127 # We used to test for /lib/ld.so.1 and disable shared libraries on
10128 # powerpc, because MkLinux only supported shared libraries with the
10129 # GNU dynamic linker. Since this was broken with cross compilers,
10130 # most powerpc-linux boxes support dynamic linking these days and
10131 # people can always --disable-shared, the test was removed, and we
10132 # assume the GNU/Linux dynamic linker is in use.
10133 dynamic_linker='GNU/Linux ld.so'
10134 ;;
10135
10136 netbsdelf*-gnu)
10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=no
10144 hardcode_into_libs=yes
10145 dynamic_linker='NetBSD ld.elf_so'
10146 ;;
10147
10148 netbsd*)
10149 version_type=sunos
10150 need_lib_prefix=no
10151 need_version=no
10152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10155 dynamic_linker='NetBSD (a.out) ld.so'
10156 else
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 dynamic_linker='NetBSD ld.elf_so'
10160 fi
10161 shlibpath_var=LD_LIBRARY_PATH
10162 shlibpath_overrides_runpath=yes
10163 hardcode_into_libs=yes
10164 ;;
10165
10166 newsos6)
10167 version_type=linux
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 shlibpath_overrides_runpath=yes
10171 ;;
10172
10173 *nto* | *qnx*)
10174 version_type=qnx
10175 need_lib_prefix=no
10176 need_version=no
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=no
10181 hardcode_into_libs=yes
10182 dynamic_linker='ldqnx.so'
10183 ;;
10184
10185 openbsd*)
10186 version_type=sunos
10187 sys_lib_dlsearch_path_spec="/usr/lib"
10188 need_lib_prefix=no
10189 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10190 case $host_os in
10191 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10192 *) need_version=no ;;
10193 esac
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10198 case $host_os in
10199 openbsd2.[89] | openbsd2.[89].*)
10200 shlibpath_overrides_runpath=no
10201 ;;
10202 *)
10203 shlibpath_overrides_runpath=yes
10204 ;;
10205 esac
10206 else
10207 shlibpath_overrides_runpath=yes
10208 fi
10209 ;;
10210
10211 os2*)
10212 libname_spec='$name'
10213 shrext_cmds=".dll"
10214 need_lib_prefix=no
10215 library_names_spec='$libname${shared_ext} $libname.a'
10216 dynamic_linker='OS/2 ld.exe'
10217 shlibpath_var=LIBPATH
10218 ;;
10219
10220 osf3* | osf4* | osf5*)
10221 version_type=osf
10222 need_lib_prefix=no
10223 need_version=no
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10228 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10229 ;;
10230
10231 rdos*)
10232 dynamic_linker=no
10233 ;;
10234
10235 solaris*)
10236 version_type=linux
10237 need_lib_prefix=no
10238 need_version=no
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=yes
10243 hardcode_into_libs=yes
10244 # ldd complains unless libraries are executable
10245 postinstall_cmds='chmod +x $lib'
10246 ;;
10247
10248 sunos4*)
10249 version_type=sunos
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=yes
10254 if test "$with_gnu_ld" = yes; then
10255 need_lib_prefix=no
10256 fi
10257 need_version=yes
10258 ;;
10259
10260 sysv4 | sysv4.3*)
10261 version_type=linux
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 case $host_vendor in
10266 sni)
10267 shlibpath_overrides_runpath=no
10268 need_lib_prefix=no
10269 runpath_var=LD_RUN_PATH
10270 ;;
10271 siemens)
10272 need_lib_prefix=no
10273 ;;
10274 motorola)
10275 need_lib_prefix=no
10276 need_version=no
10277 shlibpath_overrides_runpath=no
10278 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10279 ;;
10280 esac
10281 ;;
10282
10283 sysv4*MP*)
10284 if test -d /usr/nec ;then
10285 version_type=linux
10286 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10287 soname_spec='$libname${shared_ext}.$major'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 fi
10290 ;;
10291
10292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10293 version_type=freebsd-elf
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath=yes
10300 hardcode_into_libs=yes
10301 if test "$with_gnu_ld" = yes; then
10302 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10303 else
10304 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10305 case $host_os in
10306 sco3.2v5*)
10307 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10308 ;;
10309 esac
10310 fi
10311 sys_lib_dlsearch_path_spec='/usr/lib'
10312 ;;
10313
10314 tpf*)
10315 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10316 version_type=linux
10317 need_lib_prefix=no
10318 need_version=no
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 shlibpath_overrides_runpath=no
10322 hardcode_into_libs=yes
10323 ;;
10324
10325 uts4*)
10326 version_type=linux
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 ;;
10331
10332 *)
10333 dynamic_linker=no
10334 ;;
10335 esac
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10337 $as_echo "$dynamic_linker" >&6; }
10338 test "$dynamic_linker" = no && can_build_shared=no
10339
10340 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10341 if test "$GCC" = yes; then
10342 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10343 fi
10344
10345 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10346 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10347 fi
10348 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10349 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10350 fi
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
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10439 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10440 hardcode_action=
10441 if test -n "$hardcode_libdir_flag_spec" ||
10442 test -n "$runpath_var" ||
10443 test "X$hardcode_automatic" = "Xyes" ; then
10444
10445 # We can hardcode non-existent directories.
10446 if test "$hardcode_direct" != no &&
10447 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10448 # have to relink, otherwise we might link with an installed library
10449 # when we should be linking with a yet-to-be-installed one
10450 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10451 test "$hardcode_minus_L" != no; then
10452 # Linking always hardcodes the temporary library directory.
10453 hardcode_action=relink
10454 else
10455 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10456 hardcode_action=immediate
10457 fi
10458 else
10459 # We cannot hardcode anything, or else we can only hardcode existing
10460 # directories.
10461 hardcode_action=unsupported
10462 fi
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10464 $as_echo "$hardcode_action" >&6; }
10465
10466 if test "$hardcode_action" = relink ||
10467 test "$inherit_rpath" = yes; then
10468 # Fast installation is not supported
10469 enable_fast_install=no
10470 elif test "$shlibpath_overrides_runpath" = yes ||
10471 test "$enable_shared" = no; then
10472 # Fast installation is not necessary
10473 enable_fast_install=needless
10474 fi
10475
10476
10477
10478
10479
10480
10481 if test "x$enable_dlopen" != xyes; then
10482 enable_dlopen=unknown
10483 enable_dlopen_self=unknown
10484 enable_dlopen_self_static=unknown
10485 else
10486 lt_cv_dlopen=no
10487 lt_cv_dlopen_libs=
10488
10489 case $host_os in
10490 beos*)
10491 lt_cv_dlopen="load_add_on"
10492 lt_cv_dlopen_libs=
10493 lt_cv_dlopen_self=yes
10494 ;;
10495
10496 mingw* | pw32* | cegcc*)
10497 lt_cv_dlopen="LoadLibrary"
10498 lt_cv_dlopen_libs=
10499 ;;
10500
10501 cygwin*)
10502 lt_cv_dlopen="dlopen"
10503 lt_cv_dlopen_libs=
10504 ;;
10505
10506 darwin*)
10507 # if libdl is installed we need to link against it
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10509 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10510 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
10512 else
10513 ac_check_lib_save_LIBS=$LIBS
10514 LIBS="-ldl $LIBS"
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517
10518 /* Override any GCC internal prototype to avoid an error.
10519 Use char because int might match the return type of a GCC
10520 builtin and then its argument prototype would still apply. */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 char dlopen ();
10525 int
10526 main ()
10527 {
10528 return dlopen ();
10529 ;
10530 return 0;
10531 }
10532 _ACEOF
10533 if ac_fn_c_try_link "$LINENO"; then :
10534 ac_cv_lib_dl_dlopen=yes
10535 else
10536 ac_cv_lib_dl_dlopen=no
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10540 LIBS=$ac_check_lib_save_LIBS
10541 fi
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10543 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10544 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10546 else
10547
10548 lt_cv_dlopen="dyld"
10549 lt_cv_dlopen_libs=
10550 lt_cv_dlopen_self=yes
10551
10552 fi
10553
10554 ;;
10555
10556 *)
10557 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10558 if test "x$ac_cv_func_shl_load" = x""yes; then :
10559 lt_cv_dlopen="shl_load"
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10562 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10563 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-ldld $LIBS"
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570
10571 /* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char shl_load ();
10578 int
10579 main ()
10580 {
10581 return shl_load ();
10582 ;
10583 return 0;
10584 }
10585 _ACEOF
10586 if ac_fn_c_try_link "$LINENO"; then :
10587 ac_cv_lib_dld_shl_load=yes
10588 else
10589 ac_cv_lib_dld_shl_load=no
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext \
10592 conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10594 fi
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10596 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10597 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10598 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10599 else
10600 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10601 if test "x$ac_cv_func_dlopen" = x""yes; then :
10602 lt_cv_dlopen="dlopen"
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10605 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10606 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 ac_check_lib_save_LIBS=$LIBS
10610 LIBS="-ldl $LIBS"
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613
10614 /* Override any GCC internal prototype to avoid an error.
10615 Use char because int might match the return type of a GCC
10616 builtin and then its argument prototype would still apply. */
10617 #ifdef __cplusplus
10618 extern "C"
10619 #endif
10620 char dlopen ();
10621 int
10622 main ()
10623 {
10624 return dlopen ();
10625 ;
10626 return 0;
10627 }
10628 _ACEOF
10629 if ac_fn_c_try_link "$LINENO"; then :
10630 ac_cv_lib_dl_dlopen=yes
10631 else
10632 ac_cv_lib_dl_dlopen=no
10633 fi
10634 rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10636 LIBS=$ac_check_lib_save_LIBS
10637 fi
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10639 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10640 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10642 else
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10644 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10645 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-lsvld $LIBS"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char dlopen ();
10660 int
10661 main ()
10662 {
10663 return dlopen ();
10664 ;
10665 return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669 ac_cv_lib_svld_dlopen=yes
10670 else
10671 ac_cv_lib_svld_dlopen=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10678 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10679 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10681 else
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10683 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10684 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 ac_check_lib_save_LIBS=$LIBS
10688 LIBS="-ldld $LIBS"
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691
10692 /* Override any GCC internal prototype to avoid an error.
10693 Use char because int might match the return type of a GCC
10694 builtin and then its argument prototype would still apply. */
10695 #ifdef __cplusplus
10696 extern "C"
10697 #endif
10698 char dld_link ();
10699 int
10700 main ()
10701 {
10702 return dld_link ();
10703 ;
10704 return 0;
10705 }
10706 _ACEOF
10707 if ac_fn_c_try_link "$LINENO"; then :
10708 ac_cv_lib_dld_dld_link=yes
10709 else
10710 ac_cv_lib_dld_dld_link=no
10711 fi
10712 rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10714 LIBS=$ac_check_lib_save_LIBS
10715 fi
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10717 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10718 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10719 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10720 fi
10721
10722
10723 fi
10724
10725
10726 fi
10727
10728
10729 fi
10730
10731
10732 fi
10733
10734
10735 fi
10736
10737 ;;
10738 esac
10739
10740 if test "x$lt_cv_dlopen" != xno; then
10741 enable_dlopen=yes
10742 else
10743 enable_dlopen=no
10744 fi
10745
10746 case $lt_cv_dlopen in
10747 dlopen)
10748 save_CPPFLAGS="$CPPFLAGS"
10749 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10750
10751 save_LDFLAGS="$LDFLAGS"
10752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10753
10754 save_LIBS="$LIBS"
10755 LIBS="$lt_cv_dlopen_libs $LIBS"
10756
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10758 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10759 if test "${lt_cv_dlopen_self+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 if test "$cross_compiling" = yes; then :
10763 lt_cv_dlopen_self=cross
10764 else
10765 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10766 lt_status=$lt_dlunknown
10767 cat > conftest.$ac_ext <<_LT_EOF
10768 #line 10768 "configure"
10769 #include "confdefs.h"
10770
10771 #if HAVE_DLFCN_H
10772 #include <dlfcn.h>
10773 #endif
10774
10775 #include <stdio.h>
10776
10777 #ifdef RTLD_GLOBAL
10778 # define LT_DLGLOBAL RTLD_GLOBAL
10779 #else
10780 # ifdef DL_GLOBAL
10781 # define LT_DLGLOBAL DL_GLOBAL
10782 # else
10783 # define LT_DLGLOBAL 0
10784 # endif
10785 #endif
10786
10787 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10788 find out it does not work in some platform. */
10789 #ifndef LT_DLLAZY_OR_NOW
10790 # ifdef RTLD_LAZY
10791 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10792 # else
10793 # ifdef DL_LAZY
10794 # define LT_DLLAZY_OR_NOW DL_LAZY
10795 # else
10796 # ifdef RTLD_NOW
10797 # define LT_DLLAZY_OR_NOW RTLD_NOW
10798 # else
10799 # ifdef DL_NOW
10800 # define LT_DLLAZY_OR_NOW DL_NOW
10801 # else
10802 # define LT_DLLAZY_OR_NOW 0
10803 # endif
10804 # endif
10805 # endif
10806 # endif
10807 #endif
10808
10809 void fnord() { int i=42;}
10810 int main ()
10811 {
10812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10813 int status = $lt_dlunknown;
10814
10815 if (self)
10816 {
10817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10819 /* dlclose (self); */
10820 }
10821 else
10822 puts (dlerror ());
10823
10824 return status;
10825 }
10826 _LT_EOF
10827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10828 (eval $ac_link) 2>&5
10829 ac_status=$?
10830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10831 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10832 (./conftest; exit; ) >&5 2>/dev/null
10833 lt_status=$?
10834 case x$lt_status in
10835 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10836 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10837 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10838 esac
10839 else :
10840 # compilation failed
10841 lt_cv_dlopen_self=no
10842 fi
10843 fi
10844 rm -fr conftest*
10845
10846
10847 fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10849 $as_echo "$lt_cv_dlopen_self" >&6; }
10850
10851 if test "x$lt_cv_dlopen_self" = xyes; then
10852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10854 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10855 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 if test "$cross_compiling" = yes; then :
10859 lt_cv_dlopen_self_static=cross
10860 else
10861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10862 lt_status=$lt_dlunknown
10863 cat > conftest.$ac_ext <<_LT_EOF
10864 #line 10864 "configure"
10865 #include "confdefs.h"
10866
10867 #if HAVE_DLFCN_H
10868 #include <dlfcn.h>
10869 #endif
10870
10871 #include <stdio.h>
10872
10873 #ifdef RTLD_GLOBAL
10874 # define LT_DLGLOBAL RTLD_GLOBAL
10875 #else
10876 # ifdef DL_GLOBAL
10877 # define LT_DLGLOBAL DL_GLOBAL
10878 # else
10879 # define LT_DLGLOBAL 0
10880 # endif
10881 #endif
10882
10883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10884 find out it does not work in some platform. */
10885 #ifndef LT_DLLAZY_OR_NOW
10886 # ifdef RTLD_LAZY
10887 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10888 # else
10889 # ifdef DL_LAZY
10890 # define LT_DLLAZY_OR_NOW DL_LAZY
10891 # else
10892 # ifdef RTLD_NOW
10893 # define LT_DLLAZY_OR_NOW RTLD_NOW
10894 # else
10895 # ifdef DL_NOW
10896 # define LT_DLLAZY_OR_NOW DL_NOW
10897 # else
10898 # define LT_DLLAZY_OR_NOW 0
10899 # endif
10900 # endif
10901 # endif
10902 # endif
10903 #endif
10904
10905 void fnord() { int i=42;}
10906 int main ()
10907 {
10908 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10909 int status = $lt_dlunknown;
10910
10911 if (self)
10912 {
10913 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10914 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10915 /* dlclose (self); */
10916 }
10917 else
10918 puts (dlerror ());
10919
10920 return status;
10921 }
10922 _LT_EOF
10923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10924 (eval $ac_link) 2>&5
10925 ac_status=$?
10926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10927 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10928 (./conftest; exit; ) >&5 2>/dev/null
10929 lt_status=$?
10930 case x$lt_status in
10931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10933 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10934 esac
10935 else :
10936 # compilation failed
10937 lt_cv_dlopen_self_static=no
10938 fi
10939 fi
10940 rm -fr conftest*
10941
10942
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10945 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10946 fi
10947
10948 CPPFLAGS="$save_CPPFLAGS"
10949 LDFLAGS="$save_LDFLAGS"
10950 LIBS="$save_LIBS"
10951 ;;
10952 esac
10953
10954 case $lt_cv_dlopen_self in
10955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10956 *) enable_dlopen_self=unknown ;;
10957 esac
10958
10959 case $lt_cv_dlopen_self_static in
10960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10961 *) enable_dlopen_self_static=unknown ;;
10962 esac
10963 fi
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981 striplib=
10982 old_striplib=
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10984 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10985 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10986 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10987 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989 $as_echo "yes" >&6; }
10990 else
10991 # FIXME - insert some real tests, host_os isn't really good enough
10992 case $host_os in
10993 darwin*)
10994 if test -n "$STRIP" ; then
10995 striplib="$STRIP -x"
10996 old_striplib="$STRIP -S"
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10998 $as_echo "yes" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11002 fi
11003 ;;
11004 *)
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11007 ;;
11008 esac
11009 fi
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022 # Report which library types will actually be built
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11024 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11026 $as_echo "$can_build_shared" >&6; }
11027
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11029 $as_echo_n "checking whether to build shared libraries... " >&6; }
11030 test "$can_build_shared" = "no" && enable_shared=no
11031
11032 # On AIX, shared libraries and static libraries use the same namespace, and
11033 # are all built from PIC.
11034 case $host_os in
11035 aix3*)
11036 test "$enable_shared" = yes && enable_static=no
11037 if test -n "$RANLIB"; then
11038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11039 postinstall_cmds='$RANLIB $lib'
11040 fi
11041 ;;
11042
11043 aix[4-9]*)
11044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11045 test "$enable_shared" = yes && enable_static=no
11046 fi
11047 ;;
11048 esac
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11050 $as_echo "$enable_shared" >&6; }
11051
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11053 $as_echo_n "checking whether to build static libraries... " >&6; }
11054 # Make sure either enable_shared or enable_static is yes.
11055 test "$enable_shared" = yes || enable_static=yes
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11057 $as_echo "$enable_static" >&6; }
11058
11059
11060
11061
11062 fi
11063 ac_ext=c
11064 ac_cpp='$CPP $CPPFLAGS'
11065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11068
11069 CC="$lt_save_CC"
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 ac_config_commands="$ac_config_commands libtool"
11084
11085
11086
11087
11088 # Only expand once:
11089
11090
11091
11092
11093
11094 # Define a configure option for an alternate module directory
11095
11096 # Check whether --with-xorg-module-dir was given.
11097 if test "${with_xorg_module_dir+set}" = set; then :
11098 withval=$with_xorg_module_dir; moduledir="$withval"
11099 else
11100 moduledir="$libdir/xorg/modules"
11101 fi
11102
11103
11104 # Store the list of server defined optional extensions in REQUIRED_MODULES
11105
11106
11107 SAVE_CFLAGS="$CFLAGS"
11108 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11111
11112 #include "xorg-server.h"
11113 #if !defined RANDR
11114 #error RANDR not defined
11115 #endif
11116
11117 int
11118 main ()
11119 {
11120
11121 ;
11122 return 0;
11123 }
11124 _ACEOF
11125 if ac_fn_c_try_compile "$LINENO"; then :
11126 _EXT_CHECK=yes
11127 else
11128 _EXT_CHECK=no
11129 fi
11130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 CFLAGS="$SAVE_CFLAGS"
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11133 $as_echo_n "checking if RANDR is defined... " >&6; }
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11135 $as_echo "$_EXT_CHECK" >&6; }
11136 if test "$_EXT_CHECK" != no; then
11137 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11138 fi
11139
11140
11141
11142 SAVE_CFLAGS="$CFLAGS"
11143 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146
11147 #include "xorg-server.h"
11148 #if !defined RENDER
11149 #error RENDER not defined
11150 #endif
11151
11152 int
11153 main ()
11154 {
11155
11156 ;
11157 return 0;
11158 }
11159 _ACEOF
11160 if ac_fn_c_try_compile "$LINENO"; then :
11161 _EXT_CHECK=yes
11162 else
11163 _EXT_CHECK=no
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 CFLAGS="$SAVE_CFLAGS"
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
11168 $as_echo_n "checking if RENDER is defined... " >&6; }
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11170 $as_echo "$_EXT_CHECK" >&6; }
11171 if test "$_EXT_CHECK" != no; then
11172 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
11173 fi
11174
11175
11176
11177 SAVE_CFLAGS="$CFLAGS"
11178 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11181
11182 #include "xorg-server.h"
11183 #if !defined XV
11184 #error XV not defined
11185 #endif
11186
11187 int
11188 main ()
11189 {
11190
11191 ;
11192 return 0;
11193 }
11194 _ACEOF
11195 if ac_fn_c_try_compile "$LINENO"; then :
11196 _EXT_CHECK=yes
11197 else
11198 _EXT_CHECK=no
11199 fi
11200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201 CFLAGS="$SAVE_CFLAGS"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
11203 $as_echo_n "checking if XV is defined... " >&6; }
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11205 $as_echo "$_EXT_CHECK" >&6; }
11206 if test "$_EXT_CHECK" != no; then
11207 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
11208 fi
11209
11210
11211
11212 SAVE_CFLAGS="$CFLAGS"
11213 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216
11217 #include "xorg-server.h"
11218 #if !defined DPMSExtension
11219 #error DPMSExtension not defined
11220 #endif
11221
11222 int
11223 main ()
11224 {
11225
11226 ;
11227 return 0;
11228 }
11229 _ACEOF
11230 if ac_fn_c_try_compile "$LINENO"; then :
11231 _EXT_CHECK=yes
11232 else
11233 _EXT_CHECK=no
11234 fi
11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 CFLAGS="$SAVE_CFLAGS"
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
11238 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11240 $as_echo "$_EXT_CHECK" >&6; }
11241 if test "$_EXT_CHECK" != no; then
11242 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
11243 fi
11244
11245
11246 # Obtain compiler/linker options for the driver dependencies
11247
11248 pkg_failed=no
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11250 $as_echo_n "checking for XORG... " >&6; }
11251
11252 if test -n "$XORG_CFLAGS"; then
11253 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11254 elif test -n "$PKG_CONFIG"; then
11255 if test -n "$PKG_CONFIG" && \
11256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11257 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
11258 ac_status=$?
11259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11260 test $ac_status = 0; }; then
11261 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11262 else
11263 pkg_failed=yes
11264 fi
11265 else
11266 pkg_failed=untried
11267 fi
11268 if test -n "$XORG_LIBS"; then
11269 pkg_cv_XORG_LIBS="$XORG_LIBS"
11270 elif test -n "$PKG_CONFIG"; then
11271 if test -n "$PKG_CONFIG" && \
11272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
11273 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
11274 ac_status=$?
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; }; then
11277 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
11278 else
11279 pkg_failed=yes
11280 fi
11281 else
11282 pkg_failed=untried
11283 fi
11284
11285
11286
11287 if test $pkg_failed = yes; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11290
11291 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11292 _pkg_short_errors_supported=yes
11293 else
11294 _pkg_short_errors_supported=no
11295 fi
11296 if test $_pkg_short_errors_supported = yes; then
11297 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
11298 else
11299 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
11300 fi
11301 # Put the nasty error message in config.log where it belongs
11302 echo "$XORG_PKG_ERRORS" >&5
11303
11304 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
11305
11306 $XORG_PKG_ERRORS
11307
11308 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11309 installed software in a non-standard prefix.
11310
11311 Alternatively, you may set the environment variables XORG_CFLAGS
11312 and XORG_LIBS to avoid the need to call pkg-config.
11313 See the pkg-config man page for more details." "$LINENO" 5
11314 elif test $pkg_failed = untried; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11319 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11320 is in your PATH or set the PKG_CONFIG environment variable to the full
11321 path to pkg-config.
11322
11323 Alternatively, you may set the environment variables XORG_CFLAGS
11324 and XORG_LIBS to avoid the need to call pkg-config.
11325 See the pkg-config man page for more details.
11326
11327 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11328 See \`config.log' for more details" "$LINENO" 5 ; }
11329 else
11330 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11331 XORG_LIBS=$pkg_cv_XORG_LIBS
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333 $as_echo "yes" >&6; }
11334
11335 fi
11336
11337 pkg_failed=no
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
11339 $as_echo_n "checking for XEXT... " >&6; }
11340
11341 if test -n "$XEXT_CFLAGS"; then
11342 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
11343 elif test -n "$PKG_CONFIG"; then
11344 if test -n "$PKG_CONFIG" && \
11345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
11346 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
11347 ac_status=$?
11348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11349 test $ac_status = 0; }; then
11350 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
11351 else
11352 pkg_failed=yes
11353 fi
11354 else
11355 pkg_failed=untried
11356 fi
11357 if test -n "$XEXT_LIBS"; then
11358 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
11359 elif test -n "$PKG_CONFIG"; then
11360 if test -n "$PKG_CONFIG" && \
11361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
11362 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
11363 ac_status=$?
11364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11365 test $ac_status = 0; }; then
11366 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
11367 else
11368 pkg_failed=yes
11369 fi
11370 else
11371 pkg_failed=untried
11372 fi
11373
11374
11375
11376 if test $pkg_failed = yes; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 $as_echo "no" >&6; }
11379
11380 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11381 _pkg_short_errors_supported=yes
11382 else
11383 _pkg_short_errors_supported=no
11384 fi
11385 if test $_pkg_short_errors_supported = yes; then
11386 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
11387 else
11388 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
11389 fi
11390 # Put the nasty error message in config.log where it belongs
11391 echo "$XEXT_PKG_ERRORS" >&5
11392
11393 HAVE_XEXTPROTO_71="no"
11394 elif test $pkg_failed = untried; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 HAVE_XEXTPROTO_71="no"
11398 else
11399 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
11400 XEXT_LIBS=$pkg_cv_XEXT_LIBS
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11402 $as_echo "yes" >&6; }
11403 HAVE_XEXTPROTO_71="yes";
11404 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
11405
11406 fi
11407 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
11408 HAVE_XEXTPROTO_71_TRUE=
11409 HAVE_XEXTPROTO_71_FALSE='#'
11410 else
11411 HAVE_XEXTPROTO_71_TRUE='#'
11412 HAVE_XEXTPROTO_71_FALSE=
11413 fi
11414
11415
11416 # Checks for libraries.
11417 SAVE_CPPFLAGS="$CPPFLAGS"
11418 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
11419 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
11420 "
11421 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then :
11422 XSERVER_LIBPCIACCESS=yes
11423 else
11424 XSERVER_LIBPCIACCESS=no
11425 fi
11426
11427 ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\"
11428 "
11429 if test "x$ac_cv_header_xf86Modes_h" = x""yes; then :
11430 XMODES=yes
11431 else
11432 XMODES=no
11433 fi
11434
11435
11436 CPPFLAGS="$SAVE_CPPFLAGS"
11437
11438 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
11439
11440 pkg_failed=no
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
11442 $as_echo_n "checking for PCIACCESS... " >&6; }
11443
11444 if test -n "$PCIACCESS_CFLAGS"; then
11445 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
11446 elif test -n "$PKG_CONFIG"; then
11447 if test -n "$PKG_CONFIG" && \
11448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
11449 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
11450 ac_status=$?
11451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11452 test $ac_status = 0; }; then
11453 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
11454 else
11455 pkg_failed=yes
11456 fi
11457 else
11458 pkg_failed=untried
11459 fi
11460 if test -n "$PCIACCESS_LIBS"; then
11461 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
11462 elif test -n "$PKG_CONFIG"; then
11463 if test -n "$PKG_CONFIG" && \
11464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
11465 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
11466 ac_status=$?
11467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11468 test $ac_status = 0; }; then
11469 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
11470 else
11471 pkg_failed=yes
11472 fi
11473 else
11474 pkg_failed=untried
11475 fi
11476
11477
11478
11479 if test $pkg_failed = yes; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11482
11483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11484 _pkg_short_errors_supported=yes
11485 else
11486 _pkg_short_errors_supported=no
11487 fi
11488 if test $_pkg_short_errors_supported = yes; then
11489 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
11490 else
11491 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
11492 fi
11493 # Put the nasty error message in config.log where it belongs
11494 echo "$PCIACCESS_PKG_ERRORS" >&5
11495
11496 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
11497
11498 $PCIACCESS_PKG_ERRORS
11499
11500 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11501 installed software in a non-standard prefix.
11502
11503 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
11504 and PCIACCESS_LIBS to avoid the need to call pkg-config.
11505 See the pkg-config man page for more details." "$LINENO" 5
11506 elif test $pkg_failed = untried; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11511 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11512 is in your PATH or set the PKG_CONFIG environment variable to the full
11513 path to pkg-config.
11514
11515 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
11516 and PCIACCESS_LIBS to avoid the need to call pkg-config.
11517 See the pkg-config man page for more details.
11518
11519 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11520 See \`config.log' for more details" "$LINENO" 5 ; }
11521 else
11522 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
11523 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11525 $as_echo "yes" >&6; }
11526
11527 fi
11528 fi
11529 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
11530 XSERVER_LIBPCIACCESS_TRUE=
11531 XSERVER_LIBPCIACCESS_FALSE='#'
11532 else
11533 XSERVER_LIBPCIACCESS_TRUE='#'
11534 XSERVER_LIBPCIACCESS_FALSE=
11535 fi
11536
11537 if test "x$XMODES" = xyes; then
11538 XMODES_TRUE=
11539 XMODES_FALSE='#'
11540 else
11541 XMODES_TRUE='#'
11542 XMODES_FALSE=
11543 fi
11544
11545
11546 if test "x$XMODES" = xyes; then
11547
11548 $as_echo "#define HAVE_XMODES 1" >>confdefs.h
11549
11550 fi
11551
11552
11553
11554 DRIVER_NAME=siliconmotion
11555
11556
11557 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11558
11559 cat >confcache <<\_ACEOF
11560 # This file is a shell script that caches the results of configure
11561 # tests run on this system so they can be shared between configure
11562 # scripts and configure runs, see configure's option --config-cache.
11563 # It is not useful on other systems. If it contains results you don't
11564 # want to keep, you may remove or edit it.
11565 #
11566 # config.status only pays attention to the cache file if you give it
11567 # the --recheck option to rerun configure.
11568 #
11569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11571 # following values.
11572
11573 _ACEOF
11574
11575 # The following way of writing the cache mishandles newlines in values,
11576 # but we know of no workaround that is simple, portable, and efficient.
11577 # So, we kill variables containing newlines.
11578 # Ultrix sh set writes to stderr and can't be redirected directly,
11579 # and sets the high bit in the cache file unless we assign to the vars.
11580 (
11581 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11582 eval ac_val=\$$ac_var
11583 case $ac_val in #(
11584 *${as_nl}*)
11585 case $ac_var in #(
11586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11588 esac
11589 case $ac_var in #(
11590 _ | IFS | as_nl) ;; #(
11591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11592 *) { eval $ac_var=; unset $ac_var;} ;;
11593 esac ;;
11594 esac
11595 done
11596
11597 (set) 2>&1 |
11598 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11599 *${as_nl}ac_space=\ *)
11600 # `set' does not quote correctly, so add quotes: double-quote
11601 # substitution turns \\\\ into \\, and sed turns \\ into \.
11602 sed -n \
11603 "s/'/'\\\\''/g;
11604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11605 ;; #(
11606 *)
11607 # `set' quotes correctly as required by POSIX, so do not add quotes.
11608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11609 ;;
11610 esac |
11611 sort
11612 ) |
11613 sed '
11614 /^ac_cv_env_/b end
11615 t clear
11616 :clear
11617 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11618 t end
11619 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11620 :end' >>confcache
11621 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11622 if test -w "$cache_file"; then
11623 test "x$cache_file" != "x/dev/null" &&
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11625 $as_echo "$as_me: updating cache $cache_file" >&6;}
11626 cat confcache >$cache_file
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11629 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11630 fi
11631 fi
11632 rm -f confcache
11633
11634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11635 # Let make expand exec_prefix.
11636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11637
11638 DEFS=-DHAVE_CONFIG_H
11639
11640 ac_libobjs=
11641 ac_ltlibobjs=
11642 U=
11643 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11644 # 1. Remove the extension, and $U if already installed.
11645 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11646 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11647 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11648 # will be set to the directory where LIBOBJS objects are built.
11649 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11650 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11651 done
11652 LIBOBJS=$ac_libobjs
11653
11654 LTLIBOBJS=$ac_ltlibobjs
11655
11656
11657 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11658 as_fn_error $? "conditional \"AMDEP\" was never defined.
11659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11660 fi
11661 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11662 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11664 fi
11665 if test -n "$EXEEXT"; then
11666 am__EXEEXT_TRUE=
11667 am__EXEEXT_FALSE='#'
11668 else
11669 am__EXEEXT_TRUE='#'
11670 am__EXEEXT_FALSE=
11671 fi
11672
11673 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11674 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11676 fi
11677 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
11678 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
11679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11680 fi
11681 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
11682 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
11683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11684 fi
11685 if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then
11686 as_fn_error $? "conditional \"XMODES\" was never defined.
11687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11688 fi
11689
11690 : ${CONFIG_STATUS=./config.status}
11691 ac_write_fail=0
11692 ac_clean_files_save=$ac_clean_files
11693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11695 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11696 as_write_fail=0
11697 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11698 #! $SHELL
11699 # Generated by $as_me.
11700 # Run this file to recreate the current configuration.
11701 # Compiler output produced by configure, useful for debugging
11702 # configure, is in config.log if it exists.
11703
11704 debug=false
11705 ac_cs_recheck=false
11706 ac_cs_silent=false
11707
11708 SHELL=\${CONFIG_SHELL-$SHELL}
11709 export SHELL
11710 _ASEOF
11711 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11712 ## -------------------- ##
11713 ## M4sh Initialization. ##
11714 ## -------------------- ##
11715
11716 # Be more Bourne compatible
11717 DUALCASE=1; export DUALCASE # for MKS sh
11718 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11719 emulate sh
11720 NULLCMD=:
11721 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11722 # is contrary to our usage. Disable this feature.
11723 alias -g '${1+"$@"}'='"$@"'
11724 setopt NO_GLOB_SUBST
11725 else
11726 case `(set -o) 2>/dev/null` in #(
11727 *posix*) :
11728 set -o posix ;; #(
11729 *) :
11730 ;;
11731 esac
11732 fi
11733
11734
11735 as_nl='
11736 '
11737 export as_nl
11738 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11739 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11742 # Prefer a ksh shell builtin over an external printf program on Solaris,
11743 # but without wasting forks for bash or zsh.
11744 if test -z "$BASH_VERSION$ZSH_VERSION" \
11745 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11746 as_echo='print -r --'
11747 as_echo_n='print -rn --'
11748 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11749 as_echo='printf %s\n'
11750 as_echo_n='printf %s'
11751 else
11752 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11753 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11754 as_echo_n='/usr/ucb/echo -n'
11755 else
11756 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11757 as_echo_n_body='eval
11758 arg=$1;
11759 case $arg in #(
11760 *"$as_nl"*)
11761 expr "X$arg" : "X\\(.*\\)$as_nl";
11762 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11763 esac;
11764 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11765 '
11766 export as_echo_n_body
11767 as_echo_n='sh -c $as_echo_n_body as_echo'
11768 fi
11769 export as_echo_body
11770 as_echo='sh -c $as_echo_body as_echo'
11771 fi
11772
11773 # The user is always right.
11774 if test "${PATH_SEPARATOR+set}" != set; then
11775 PATH_SEPARATOR=:
11776 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11777 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11778 PATH_SEPARATOR=';'
11779 }
11780 fi
11781
11782
11783 # IFS
11784 # We need space, tab and new line, in precisely that order. Quoting is
11785 # there to prevent editors from complaining about space-tab.
11786 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11787 # splitting by setting IFS to empty value.)
11788 IFS=" "" $as_nl"
11789
11790 # Find who we are. Look in the path if we contain no directory separator.
11791 case $0 in #((
11792 *[\\/]* ) as_myself=$0 ;;
11793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11795 do
11796 IFS=$as_save_IFS
11797 test -z "$as_dir" && as_dir=.
11798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11799 done
11800 IFS=$as_save_IFS
11801
11802 ;;
11803 esac
11804 # We did not find ourselves, most probably we were run as `sh COMMAND'
11805 # in which case we are not to be found in the path.
11806 if test "x$as_myself" = x; then
11807 as_myself=$0
11808 fi
11809 if test ! -f "$as_myself"; then
11810 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11811 exit 1
11812 fi
11813
11814 # Unset variables that we do not need and which cause bugs (e.g. in
11815 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11816 # suppresses any "Segmentation fault" message there. '((' could
11817 # trigger a bug in pdksh 5.2.14.
11818 for as_var in BASH_ENV ENV MAIL MAILPATH
11819 do eval test x\${$as_var+set} = xset \
11820 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11821 done
11822 PS1='$ '
11823 PS2='> '
11824 PS4='+ '
11825
11826 # NLS nuisances.
11827 LC_ALL=C
11828 export LC_ALL
11829 LANGUAGE=C
11830 export LANGUAGE
11831
11832 # CDPATH.
11833 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11834
11835
11836 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11837 # ----------------------------------------
11838 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11839 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11840 # script with STATUS, using 1 if that was 0.
11841 as_fn_error ()
11842 {
11843 as_status=$1; test $as_status -eq 0 && as_status=1
11844 if test "$4"; then
11845 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11846 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11847 fi
11848 $as_echo "$as_me: error: $2" >&2
11849 as_fn_exit $as_status
11850 } # as_fn_error
11851
11852
11853 # as_fn_set_status STATUS
11854 # -----------------------
11855 # Set $? to STATUS, without forking.
11856 as_fn_set_status ()
11857 {
11858 return $1
11859 } # as_fn_set_status
11860
11861 # as_fn_exit STATUS
11862 # -----------------
11863 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11864 as_fn_exit ()
11865 {
11866 set +e
11867 as_fn_set_status $1
11868 exit $1
11869 } # as_fn_exit
11870
11871 # as_fn_unset VAR
11872 # ---------------
11873 # Portably unset VAR.
11874 as_fn_unset ()
11875 {
11876 { eval $1=; unset $1;}
11877 }
11878 as_unset=as_fn_unset
11879 # as_fn_append VAR VALUE
11880 # ----------------------
11881 # Append the text in VALUE to the end of the definition contained in VAR. Take
11882 # advantage of any shell optimizations that allow amortized linear growth over
11883 # repeated appends, instead of the typical quadratic growth present in naive
11884 # implementations.
11885 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11886 eval 'as_fn_append ()
11887 {
11888 eval $1+=\$2
11889 }'
11890 else
11891 as_fn_append ()
11892 {
11893 eval $1=\$$1\$2
11894 }
11895 fi # as_fn_append
11896
11897 # as_fn_arith ARG...
11898 # ------------------
11899 # Perform arithmetic evaluation on the ARGs, and store the result in the
11900 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11901 # must be portable across $(()) and expr.
11902 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11903 eval 'as_fn_arith ()
11904 {
11905 as_val=$(( $* ))
11906 }'
11907 else
11908 as_fn_arith ()
11909 {
11910 as_val=`expr "$@" || test $? -eq 1`
11911 }
11912 fi # as_fn_arith
11913
11914
11915 if expr a : '\(a\)' >/dev/null 2>&1 &&
11916 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11917 as_expr=expr
11918 else
11919 as_expr=false
11920 fi
11921
11922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11923 as_basename=basename
11924 else
11925 as_basename=false
11926 fi
11927
11928 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11929 as_dirname=dirname
11930 else
11931 as_dirname=false
11932 fi
11933
11934 as_me=`$as_basename -- "$0" ||
11935 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11936 X"$0" : 'X\(//\)$' \| \
11937 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11938 $as_echo X/"$0" |
11939 sed '/^.*\/\([^/][^/]*\)\/*$/{
11940 s//\1/
11941 q
11942 }
11943 /^X\/\(\/\/\)$/{
11944 s//\1/
11945 q
11946 }
11947 /^X\/\(\/\).*/{
11948 s//\1/
11949 q
11950 }
11951 s/.*/./; q'`
11952
11953 # Avoid depending upon Character Ranges.
11954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11957 as_cr_digits='0123456789'
11958 as_cr_alnum=$as_cr_Letters$as_cr_digits
11959
11960 ECHO_C= ECHO_N= ECHO_T=
11961 case `echo -n x` in #(((((
11962 -n*)
11963 case `echo 'xy\c'` in
11964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11965 xy) ECHO_C='\c';;
11966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11967 ECHO_T=' ';;
11968 esac;;
11969 *)
11970 ECHO_N='-n';;
11971 esac
11972
11973 rm -f conf$$ conf$$.exe conf$$.file
11974 if test -d conf$$.dir; then
11975 rm -f conf$$.dir/conf$$.file
11976 else
11977 rm -f conf$$.dir
11978 mkdir conf$$.dir 2>/dev/null
11979 fi
11980 if (echo >conf$$.file) 2>/dev/null; then
11981 if ln -s conf$$.file conf$$ 2>/dev/null; then
11982 as_ln_s='ln -s'
11983 # ... but there are two gotchas:
11984 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11985 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11986 # In both cases, we have to default to `cp -p'.
11987 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11988 as_ln_s='cp -p'
11989 elif ln conf$$.file conf$$ 2>/dev/null; then
11990 as_ln_s=ln
11991 else
11992 as_ln_s='cp -p'
11993 fi
11994 else
11995 as_ln_s='cp -p'
11996 fi
11997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11998 rmdir conf$$.dir 2>/dev/null
11999
12000
12001 # as_fn_mkdir_p
12002 # -------------
12003 # Create "$as_dir" as a directory, including parents if necessary.
12004 as_fn_mkdir_p ()
12005 {
12006
12007 case $as_dir in #(
12008 -*) as_dir=./$as_dir;;
12009 esac
12010 test -d "$as_dir" || eval $as_mkdir_p || {
12011 as_dirs=
12012 while :; do
12013 case $as_dir in #(
12014 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12015 *) as_qdir=$as_dir;;
12016 esac
12017 as_dirs="'$as_qdir' $as_dirs"
12018 as_dir=`$as_dirname -- "$as_dir" ||
12019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12020 X"$as_dir" : 'X\(//\)[^/]' \| \
12021 X"$as_dir" : 'X\(//\)$' \| \
12022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12023 $as_echo X"$as_dir" |
12024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12025 s//\1/
12026 q
12027 }
12028 /^X\(\/\/\)[^/].*/{
12029 s//\1/
12030 q
12031 }
12032 /^X\(\/\/\)$/{
12033 s//\1/
12034 q
12035 }
12036 /^X\(\/\).*/{
12037 s//\1/
12038 q
12039 }
12040 s/.*/./; q'`
12041 test -d "$as_dir" && break
12042 done
12043 test -z "$as_dirs" || eval "mkdir $as_dirs"
12044 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12045
12046
12047 } # as_fn_mkdir_p
12048 if mkdir -p . 2>/dev/null; then
12049 as_mkdir_p='mkdir -p "$as_dir"'
12050 else
12051 test -d ./-p && rmdir ./-p
12052 as_mkdir_p=false
12053 fi
12054
12055 if test -x / >/dev/null 2>&1; then
12056 as_test_x='test -x'
12057 else
12058 if ls -dL / >/dev/null 2>&1; then
12059 as_ls_L_option=L
12060 else
12061 as_ls_L_option=
12062 fi
12063 as_test_x='
12064 eval sh -c '\''
12065 if test -d "$1"; then
12066 test -d "$1/.";
12067 else
12068 case $1 in #(
12069 -*)set "./$1";;
12070 esac;
12071 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12072 ???[sx]*):;;*)false;;esac;fi
12073 '\'' sh
12074 '
12075 fi
12076 as_executable_p=$as_test_x
12077
12078 # Sed expression to map a string onto a valid CPP name.
12079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12080
12081 # Sed expression to map a string onto a valid variable name.
12082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12083
12084
12085 exec 6>&1
12086 ## ----------------------------------- ##
12087 ## Main body of $CONFIG_STATUS script. ##
12088 ## ----------------------------------- ##
12089 _ASEOF
12090 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12091
12092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12093 # Save the log message, to keep $0 and so on meaningful, and to
12094 # report actual input values of CONFIG_FILES etc. instead of their
12095 # values after options handling.
12096 ac_log="
12097 This file was extended by xf86-video-siliconmotion $as_me 1.7.5, which was
12098 generated by GNU Autoconf 2.67. Invocation command line was
12099
12100 CONFIG_FILES = $CONFIG_FILES
12101 CONFIG_HEADERS = $CONFIG_HEADERS
12102 CONFIG_LINKS = $CONFIG_LINKS
12103 CONFIG_COMMANDS = $CONFIG_COMMANDS
12104 $ $0 $@
12105
12106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12107 "
12108
12109 _ACEOF
12110
12111 case $ac_config_files in *"
12112 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12113 esac
12114
12115 case $ac_config_headers in *"
12116 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12117 esac
12118
12119
12120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12121 # Files that config.status was made for.
12122 config_files="$ac_config_files"
12123 config_headers="$ac_config_headers"
12124 config_commands="$ac_config_commands"
12125
12126 _ACEOF
12127
12128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12129 ac_cs_usage="\
12130 \`$as_me' instantiates files and other configuration actions
12131 from templates according to the current configuration. Unless the files
12132 and actions are specified as TAGs, all are instantiated by default.
12133
12134 Usage: $0 [OPTION]... [TAG]...
12135
12136 -h, --help print this help, then exit
12137 -V, --version print version number and configuration settings, then exit
12138 --config print configuration, then exit
12139 -q, --quiet, --silent
12140 do not print progress messages
12141 -d, --debug don't remove temporary files
12142 --recheck update $as_me by reconfiguring in the same conditions
12143 --file=FILE[:TEMPLATE]
12144 instantiate the configuration file FILE
12145 --header=FILE[:TEMPLATE]
12146 instantiate the configuration header FILE
12147
12148 Configuration files:
12149 $config_files
12150
12151 Configuration headers:
12152 $config_headers
12153
12154 Configuration commands:
12155 $config_commands
12156
12157 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12158
12159 _ACEOF
12160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12161 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12162 ac_cs_version="\\
12163 xf86-video-siliconmotion config.status 1.7.5
12164 configured by $0, generated by GNU Autoconf 2.67,
12165 with options \\"\$ac_cs_config\\"
12166
12167 Copyright (C) 2010 Free Software Foundation, Inc.
12168 This config.status script is free software; the Free Software Foundation
12169 gives unlimited permission to copy, distribute and modify it."
12170
12171 ac_pwd='$ac_pwd'
12172 srcdir='$srcdir'
12173 INSTALL='$INSTALL'
12174 MKDIR_P='$MKDIR_P'
12175 AWK='$AWK'
12176 test -n "\$AWK" || AWK=awk
12177 _ACEOF
12178
12179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12180 # The default lists apply if the user does not specify any file.
12181 ac_need_defaults=:
12182 while test $# != 0
12183 do
12184 case $1 in
12185 --*=?*)
12186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12187 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12188 ac_shift=:
12189 ;;
12190 --*=)
12191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12192 ac_optarg=
12193 ac_shift=:
12194 ;;
12195 *)
12196 ac_option=$1
12197 ac_optarg=$2
12198 ac_shift=shift
12199 ;;
12200 esac
12201
12202 case $ac_option in
12203 # Handling of the options.
12204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12205 ac_cs_recheck=: ;;
12206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12207 $as_echo "$ac_cs_version"; exit ;;
12208 --config | --confi | --conf | --con | --co | --c )
12209 $as_echo "$ac_cs_config"; exit ;;
12210 --debug | --debu | --deb | --de | --d | -d )
12211 debug=: ;;
12212 --file | --fil | --fi | --f )
12213 $ac_shift
12214 case $ac_optarg in
12215 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12216 '') as_fn_error $? "missing file argument" ;;
12217 esac
12218 as_fn_append CONFIG_FILES " '$ac_optarg'"
12219 ac_need_defaults=false;;
12220 --header | --heade | --head | --hea )
12221 $ac_shift
12222 case $ac_optarg in
12223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12224 esac
12225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12226 ac_need_defaults=false;;
12227 --he | --h)
12228 # Conflict between --help and --header
12229 as_fn_error $? "ambiguous option: \`$1'
12230 Try \`$0 --help' for more information.";;
12231 --help | --hel | -h )
12232 $as_echo "$ac_cs_usage"; exit ;;
12233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12235 ac_cs_silent=: ;;
12236
12237 # This is an error.
12238 -*) as_fn_error $? "unrecognized option: \`$1'
12239 Try \`$0 --help' for more information." ;;
12240
12241 *) as_fn_append ac_config_targets " $1"
12242 ac_need_defaults=false ;;
12243
12244 esac
12245 shift
12246 done
12247
12248 ac_configure_extra_args=
12249
12250 if $ac_cs_silent; then
12251 exec 6>/dev/null
12252 ac_configure_extra_args="$ac_configure_extra_args --silent"
12253 fi
12254
12255 _ACEOF
12256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12257 if \$ac_cs_recheck; then
12258 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12259 shift
12260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12261 CONFIG_SHELL='$SHELL'
12262 export CONFIG_SHELL
12263 exec "\$@"
12264 fi
12265
12266 _ACEOF
12267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12268 exec 5>>config.log
12269 {
12270 echo
12271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12272 ## Running $as_me. ##
12273 _ASBOX
12274 $as_echo "$ac_log"
12275 } >&5
12276
12277 _ACEOF
12278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12279 #
12280 # INIT-COMMANDS
12281 #
12282 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12283
12284
12285 # The HP-UX ksh and POSIX shell print the target directory to stdout
12286 # if CDPATH is set.
12287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12288
12289 sed_quote_subst='$sed_quote_subst'
12290 double_quote_subst='$double_quote_subst'
12291 delay_variable_subst='$delay_variable_subst'
12292 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12293 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12294 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12295 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12296 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12297 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12298 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12299 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12300 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12301 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12302 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12303 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12304 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12305 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12306 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12307 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12308 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12309 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12310 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12311 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12312 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12313 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12314 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12315 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12316 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12317 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12318 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12319 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12320 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12321 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12322 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12323 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12324 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12325 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12326 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12327 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12328 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12329 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12330 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12331 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12332 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12333 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12334 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12335 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12336 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"`'
12337 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"`'
12338 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12339 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12340 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12341 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12342 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12343 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12344 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12345 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12346 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12347 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12348 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12349 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12350 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12351 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12352 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12353 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12354 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12355 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12356 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12357 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12358 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12359 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12360 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12361 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12362 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12363 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12364 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12365 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12366 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12367 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12368 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12369 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12370 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12371 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12372 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12373 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12374 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12375 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12376 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12377 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12378 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12379 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12380 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12381 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12382 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12383 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12384 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12385 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12386 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12387 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12388 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12389 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12390 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12391 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12392 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12393 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12394 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12395 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12396 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12397 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12398 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12399 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12400 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12401 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12402 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12403 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12404 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12405 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12406 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12407 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12408 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12409 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12410
12411 LTCC='$LTCC'
12412 LTCFLAGS='$LTCFLAGS'
12413 compiler='$compiler_DEFAULT'
12414
12415 # Quote evaled strings.
12416 for var in SED \
12417 GREP \
12418 EGREP \
12419 FGREP \
12420 LD \
12421 NM \
12422 LN_S \
12423 lt_SP2NL \
12424 lt_NL2SP \
12425 reload_flag \
12426 OBJDUMP \
12427 deplibs_check_method \
12428 file_magic_cmd \
12429 AR \
12430 AR_FLAGS \
12431 STRIP \
12432 RANLIB \
12433 CC \
12434 CFLAGS \
12435 compiler \
12436 lt_cv_sys_global_symbol_pipe \
12437 lt_cv_sys_global_symbol_to_cdecl \
12438 lt_cv_sys_global_symbol_to_c_name_address \
12439 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12440 SHELL \
12441 ECHO \
12442 lt_prog_compiler_no_builtin_flag \
12443 lt_prog_compiler_wl \
12444 lt_prog_compiler_pic \
12445 lt_prog_compiler_static \
12446 lt_cv_prog_compiler_c_o \
12447 need_locks \
12448 DSYMUTIL \
12449 NMEDIT \
12450 LIPO \
12451 OTOOL \
12452 OTOOL64 \
12453 shrext_cmds \
12454 export_dynamic_flag_spec \
12455 whole_archive_flag_spec \
12456 compiler_needs_object \
12457 with_gnu_ld \
12458 allow_undefined_flag \
12459 no_undefined_flag \
12460 hardcode_libdir_flag_spec \
12461 hardcode_libdir_flag_spec_ld \
12462 hardcode_libdir_separator \
12463 fix_srcfile_path \
12464 exclude_expsyms \
12465 include_expsyms \
12466 file_list_spec \
12467 variables_saved_for_relink \
12468 libname_spec \
12469 library_names_spec \
12470 soname_spec \
12471 finish_eval \
12472 old_striplib \
12473 striplib; do
12474 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12475 *[\\\\\\\`\\"\\\$]*)
12476 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12477 ;;
12478 *)
12479 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12480 ;;
12481 esac
12482 done
12483
12484 # Double-quote double-evaled strings.
12485 for var in reload_cmds \
12486 old_postinstall_cmds \
12487 old_postuninstall_cmds \
12488 old_archive_cmds \
12489 extract_expsyms_cmds \
12490 old_archive_from_new_cmds \
12491 old_archive_from_expsyms_cmds \
12492 archive_cmds \
12493 archive_expsym_cmds \
12494 module_cmds \
12495 module_expsym_cmds \
12496 export_symbols_cmds \
12497 prelink_cmds \
12498 postinstall_cmds \
12499 postuninstall_cmds \
12500 finish_cmds \
12501 sys_lib_search_path_spec \
12502 sys_lib_dlsearch_path_spec; do
12503 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12504 *[\\\\\\\`\\"\\\$]*)
12505 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12506 ;;
12507 *)
12508 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12509 ;;
12510 esac
12511 done
12512
12513 # Fix-up fallback echo if it was mangled by the above quoting rules.
12514 case \$lt_ECHO in
12515 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12516 ;;
12517 esac
12518
12519 ac_aux_dir='$ac_aux_dir'
12520 xsi_shell='$xsi_shell'
12521 lt_shell_append='$lt_shell_append'
12522
12523 # See if we are running on zsh, and set the options which allow our
12524 # commands through without removal of \ escapes INIT.
12525 if test -n "\${ZSH_VERSION+set}" ; then
12526 setopt NO_GLOB_SUBST
12527 fi
12528
12529
12530 PACKAGE='$PACKAGE'
12531 VERSION='$VERSION'
12532 TIMESTAMP='$TIMESTAMP'
12533 RM='$RM'
12534 ofile='$ofile'
12535
12536
12537
12538
12539 _ACEOF
12540
12541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12542
12543 # Handling of arguments.
12544 for ac_config_target in $ac_config_targets
12545 do
12546 case $ac_config_target in
12547 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12548 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12549 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12550 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12551 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12552 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12553
12554 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12555 esac
12556 done
12557
12558
12559 # If the user did not use the arguments to specify the items to instantiate,
12560 # then the envvar interface is used. Set only those that are not.
12561 # We use the long form for the default assignment because of an extremely
12562 # bizarre bug on SunOS 4.1.3.
12563 if $ac_need_defaults; then
12564 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12565 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12566 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12567 fi
12568
12569 # Have a temporary directory for convenience. Make it in the build tree
12570 # simply because there is no reason against having it here, and in addition,
12571 # creating and moving files from /tmp can sometimes cause problems.
12572 # Hook for its removal unless debugging.
12573 # Note that there is a small window in which the directory will not be cleaned:
12574 # after its creation but before its name has been assigned to `$tmp'.
12575 $debug ||
12576 {
12577 tmp=
12578 trap 'exit_status=$?
12579 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12580 ' 0
12581 trap 'as_fn_exit 1' 1 2 13 15
12582 }
12583 # Create a (secure) tmp directory for tmp files.
12584
12585 {
12586 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12587 test -n "$tmp" && test -d "$tmp"
12588 } ||
12589 {
12590 tmp=./conf$$-$RANDOM
12591 (umask 077 && mkdir "$tmp")
12592 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12593
12594 # Set up the scripts for CONFIG_FILES section.
12595 # No need to generate them if there are no CONFIG_FILES.
12596 # This happens for instance with `./config.status config.h'.
12597 if test -n "$CONFIG_FILES"; then
12598
12599
12600 ac_cr=`echo X | tr X '\015'`
12601 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12602 # But we know of no other shell where ac_cr would be empty at this
12603 # point, so we can use a bashism as a fallback.
12604 if test "x$ac_cr" = x; then
12605 eval ac_cr=\$\'\\r\'
12606 fi
12607 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12608 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12609 ac_cs_awk_cr='\\r'
12610 else
12611 ac_cs_awk_cr=$ac_cr
12612 fi
12613
12614 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12615 _ACEOF
12616
12617
12618 {
12619 echo "cat >conf$$subs.awk <<_ACEOF" &&
12620 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12621 echo "_ACEOF"
12622 } >conf$$subs.sh ||
12623 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12624 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12625 ac_delim='%!_!# '
12626 for ac_last_try in false false false false false :; do
12627 . ./conf$$subs.sh ||
12628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12629
12630 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12631 if test $ac_delim_n = $ac_delim_num; then
12632 break
12633 elif $ac_last_try; then
12634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12635 else
12636 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12637 fi
12638 done
12639 rm -f conf$$subs.sh
12640
12641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12642 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12643 _ACEOF
12644 sed -n '
12645 h
12646 s/^/S["/; s/!.*/"]=/
12647 p
12648 g
12649 s/^[^!]*!//
12650 :repl
12651 t repl
12652 s/'"$ac_delim"'$//
12653 t delim
12654 :nl
12655 h
12656 s/\(.\{148\}\)..*/\1/
12657 t more1
12658 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12659 p
12660 n
12661 b repl
12662 :more1
12663 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12664 p
12665 g
12666 s/.\{148\}//
12667 t nl
12668 :delim
12669 h
12670 s/\(.\{148\}\)..*/\1/
12671 t more2
12672 s/["\\]/\\&/g; s/^/"/; s/$/"/
12673 p
12674 b
12675 :more2
12676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12677 p
12678 g
12679 s/.\{148\}//
12680 t delim
12681 ' <conf$$subs.awk | sed '
12682 /^[^""]/{
12683 N
12684 s/\n//
12685 }
12686 ' >>$CONFIG_STATUS || ac_write_fail=1
12687 rm -f conf$$subs.awk
12688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12689 _ACAWK
12690 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12691 for (key in S) S_is_set[key] = 1
12692 FS = ""
12693
12694 }
12695 {
12696 line = $ 0
12697 nfields = split(line, field, "@")
12698 substed = 0
12699 len = length(field[1])
12700 for (i = 2; i < nfields; i++) {
12701 key = field[i]
12702 keylen = length(key)
12703 if (S_is_set[key]) {
12704 value = S[key]
12705 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12706 len += length(value) + length(field[++i])
12707 substed = 1
12708 } else
12709 len += 1 + keylen
12710 }
12711
12712 print line
12713 }
12714
12715 _ACAWK
12716 _ACEOF
12717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12718 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12719 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12720 else
12721 cat
12722 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12723 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12724 _ACEOF
12725
12726 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12727 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12728 # trailing colons and then remove the whole line if VPATH becomes empty
12729 # (actually we leave an empty line to preserve line numbers).
12730 if test "x$srcdir" = x.; then
12731 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12732 h
12733 s///
12734 s/^/:/
12735 s/[ ]*$/:/
12736 s/:\$(srcdir):/:/g
12737 s/:\${srcdir}:/:/g
12738 s/:@srcdir@:/:/g
12739 s/^:*//
12740 s/:*$//
12741 x
12742 s/\(=[ ]*\).*/\1/
12743 G
12744 s/\n//
12745 s/^[^=]*=[ ]*$//
12746 }'
12747 fi
12748
12749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12750 fi # test -n "$CONFIG_FILES"
12751
12752 # Set up the scripts for CONFIG_HEADERS section.
12753 # No need to generate them if there are no CONFIG_HEADERS.
12754 # This happens for instance with `./config.status Makefile'.
12755 if test -n "$CONFIG_HEADERS"; then
12756 cat >"$tmp/defines.awk" <<\_ACAWK ||
12757 BEGIN {
12758 _ACEOF
12759
12760 # Transform confdefs.h into an awk script `defines.awk', embedded as
12761 # here-document in config.status, that substitutes the proper values into
12762 # config.h.in to produce config.h.
12763
12764 # Create a delimiter string that does not exist in confdefs.h, to ease
12765 # handling of long lines.
12766 ac_delim='%!_!# '
12767 for ac_last_try in false false :; do
12768 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12769 if test -z "$ac_t"; then
12770 break
12771 elif $ac_last_try; then
12772 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12773 else
12774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12775 fi
12776 done
12777
12778 # For the awk script, D is an array of macro values keyed by name,
12779 # likewise P contains macro parameters if any. Preserve backslash
12780 # newline sequences.
12781
12782 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12783 sed -n '
12784 s/.\{148\}/&'"$ac_delim"'/g
12785 t rset
12786 :rset
12787 s/^[ ]*#[ ]*define[ ][ ]*/ /
12788 t def
12789 d
12790 :def
12791 s/\\$//
12792 t bsnl
12793 s/["\\]/\\&/g
12794 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12795 D["\1"]=" \3"/p
12796 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12797 d
12798 :bsnl
12799 s/["\\]/\\&/g
12800 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12801 D["\1"]=" \3\\\\\\n"\\/p
12802 t cont
12803 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12804 t cont
12805 d
12806 :cont
12807 n
12808 s/.\{148\}/&'"$ac_delim"'/g
12809 t clear
12810 :clear
12811 s/\\$//
12812 t bsnlc
12813 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12814 d
12815 :bsnlc
12816 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12817 b cont
12818 ' <confdefs.h | sed '
12819 s/'"$ac_delim"'/"\\\
12820 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12821
12822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12823 for (key in D) D_is_set[key] = 1
12824 FS = ""
12825 }
12826 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12827 line = \$ 0
12828 split(line, arg, " ")
12829 if (arg[1] == "#") {
12830 defundef = arg[2]
12831 mac1 = arg[3]
12832 } else {
12833 defundef = substr(arg[1], 2)
12834 mac1 = arg[2]
12835 }
12836 split(mac1, mac2, "(") #)
12837 macro = mac2[1]
12838 prefix = substr(line, 1, index(line, defundef) - 1)
12839 if (D_is_set[macro]) {
12840 # Preserve the white space surrounding the "#".
12841 print prefix "define", macro P[macro] D[macro]
12842 next
12843 } else {
12844 # Replace #undef with comments. This is necessary, for example,
12845 # in the case of _POSIX_SOURCE, which is predefined and required
12846 # on some systems where configure will not decide to define it.
12847 if (defundef == "undef") {
12848 print "/*", prefix defundef, macro, "*/"
12849 next
12850 }
12851 }
12852 }
12853 { print }
12854 _ACAWK
12855 _ACEOF
12856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12857 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12858 fi # test -n "$CONFIG_HEADERS"
12859
12860
12861 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12862 shift
12863 for ac_tag
12864 do
12865 case $ac_tag in
12866 :[FHLC]) ac_mode=$ac_tag; continue;;
12867 esac
12868 case $ac_mode$ac_tag in
12869 :[FHL]*:*);;
12870 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12871 :[FH]-) ac_tag=-:-;;
12872 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12873 esac
12874 ac_save_IFS=$IFS
12875 IFS=:
12876 set x $ac_tag
12877 IFS=$ac_save_IFS
12878 shift
12879 ac_file=$1
12880 shift
12881
12882 case $ac_mode in
12883 :L) ac_source=$1;;
12884 :[FH])
12885 ac_file_inputs=
12886 for ac_f
12887 do
12888 case $ac_f in
12889 -) ac_f="$tmp/stdin";;
12890 *) # Look for the file first in the build tree, then in the source tree
12891 # (if the path is not absolute). The absolute path cannot be DOS-style,
12892 # because $ac_f cannot contain `:'.
12893 test -f "$ac_f" ||
12894 case $ac_f in
12895 [\\/$]*) false;;
12896 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12897 esac ||
12898 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12899 esac
12900 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12901 as_fn_append ac_file_inputs " '$ac_f'"
12902 done
12903
12904 # Let's still pretend it is `configure' which instantiates (i.e., don't
12905 # use $as_me), people would be surprised to read:
12906 # /* config.h. Generated by config.status. */
12907 configure_input='Generated from '`
12908 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12909 `' by configure.'
12910 if test x"$ac_file" != x-; then
12911 configure_input="$ac_file. $configure_input"
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12913 $as_echo "$as_me: creating $ac_file" >&6;}
12914 fi
12915 # Neutralize special characters interpreted by sed in replacement strings.
12916 case $configure_input in #(
12917 *\&* | *\|* | *\\* )
12918 ac_sed_conf_input=`$as_echo "$configure_input" |
12919 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12920 *) ac_sed_conf_input=$configure_input;;
12921 esac
12922
12923 case $ac_tag in
12924 *:-:* | *:-) cat >"$tmp/stdin" \
12925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12926 esac
12927 ;;
12928 esac
12929
12930 ac_dir=`$as_dirname -- "$ac_file" ||
12931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12932 X"$ac_file" : 'X\(//\)[^/]' \| \
12933 X"$ac_file" : 'X\(//\)$' \| \
12934 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12935 $as_echo X"$ac_file" |
12936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12937 s//\1/
12938 q
12939 }
12940 /^X\(\/\/\)[^/].*/{
12941 s//\1/
12942 q
12943 }
12944 /^X\(\/\/\)$/{
12945 s//\1/
12946 q
12947 }
12948 /^X\(\/\).*/{
12949 s//\1/
12950 q
12951 }
12952 s/.*/./; q'`
12953 as_dir="$ac_dir"; as_fn_mkdir_p
12954 ac_builddir=.
12955
12956 case "$ac_dir" in
12957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12958 *)
12959 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12960 # A ".." for each directory in $ac_dir_suffix.
12961 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12962 case $ac_top_builddir_sub in
12963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12965 esac ;;
12966 esac
12967 ac_abs_top_builddir=$ac_pwd
12968 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12969 # for backward compatibility:
12970 ac_top_builddir=$ac_top_build_prefix
12971
12972 case $srcdir in
12973 .) # We are building in place.
12974 ac_srcdir=.
12975 ac_top_srcdir=$ac_top_builddir_sub
12976 ac_abs_top_srcdir=$ac_pwd ;;
12977 [\\/]* | ?:[\\/]* ) # Absolute name.
12978 ac_srcdir=$srcdir$ac_dir_suffix;
12979 ac_top_srcdir=$srcdir
12980 ac_abs_top_srcdir=$srcdir ;;
12981 *) # Relative name.
12982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12983 ac_top_srcdir=$ac_top_build_prefix$srcdir
12984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12985 esac
12986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12987
12988
12989 case $ac_mode in
12990 :F)
12991 #
12992 # CONFIG_FILE
12993 #
12994
12995 case $INSTALL in
12996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12997 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12998 esac
12999 ac_MKDIR_P=$MKDIR_P
13000 case $MKDIR_P in
13001 [\\/$]* | ?:[\\/]* ) ;;
13002 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13003 esac
13004 _ACEOF
13005
13006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13007 # If the template does not know about datarootdir, expand it.
13008 # FIXME: This hack should be removed a few years after 2.60.
13009 ac_datarootdir_hack=; ac_datarootdir_seen=
13010 ac_sed_dataroot='
13011 /datarootdir/ {
13012 p
13013 q
13014 }
13015 /@datadir@/p
13016 /@docdir@/p
13017 /@infodir@/p
13018 /@localedir@/p
13019 /@mandir@/p'
13020 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13021 *datarootdir*) ac_datarootdir_seen=yes;;
13022 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13024 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13025 _ACEOF
13026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13027 ac_datarootdir_hack='
13028 s&@datadir@&$datadir&g
13029 s&@docdir@&$docdir&g
13030 s&@infodir@&$infodir&g
13031 s&@localedir@&$localedir&g
13032 s&@mandir@&$mandir&g
13033 s&\\\${datarootdir}&$datarootdir&g' ;;
13034 esac
13035 _ACEOF
13036
13037 # Neutralize VPATH when `$srcdir' = `.'.
13038 # Shell code in configure.ac might set extrasub.
13039 # FIXME: do we really want to maintain this feature?
13040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13041 ac_sed_extra="$ac_vpsub
13042 $extrasub
13043 _ACEOF
13044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13045 :t
13046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13047 s|@configure_input@|$ac_sed_conf_input|;t t
13048 s&@top_builddir@&$ac_top_builddir_sub&;t t
13049 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13050 s&@srcdir@&$ac_srcdir&;t t
13051 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13052 s&@top_srcdir@&$ac_top_srcdir&;t t
13053 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13054 s&@builddir@&$ac_builddir&;t t
13055 s&@abs_builddir@&$ac_abs_builddir&;t t
13056 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13057 s&@INSTALL@&$ac_INSTALL&;t t
13058 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13059 $ac_datarootdir_hack
13060 "
13061 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13063
13064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13068 which seems to be undefined. Please make sure it is defined" >&5
13069 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13070 which seems to be undefined. Please make sure it is defined" >&2;}
13071
13072 rm -f "$tmp/stdin"
13073 case $ac_file in
13074 -) cat "$tmp/out" && rm -f "$tmp/out";;
13075 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13076 esac \
13077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13078 ;;
13079 :H)
13080 #
13081 # CONFIG_HEADER
13082 #
13083 if test x"$ac_file" != x-; then
13084 {
13085 $as_echo "/* $configure_input */" \
13086 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13087 } >"$tmp/config.h" \
13088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13089 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13091 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13092 else
13093 rm -f "$ac_file"
13094 mv "$tmp/config.h" "$ac_file" \
13095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13096 fi
13097 else
13098 $as_echo "/* $configure_input */" \
13099 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13100 || as_fn_error $? "could not create -" "$LINENO" 5
13101 fi
13102 # Compute "$ac_file"'s index in $config_headers.
13103 _am_arg="$ac_file"
13104 _am_stamp_count=1
13105 for _am_header in $config_headers :; do
13106 case $_am_header in
13107 $_am_arg | $_am_arg:* )
13108 break ;;
13109 * )
13110 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13111 esac
13112 done
13113 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13114 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13115 X"$_am_arg" : 'X\(//\)[^/]' \| \
13116 X"$_am_arg" : 'X\(//\)$' \| \
13117 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13118 $as_echo X"$_am_arg" |
13119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13120 s//\1/
13121 q
13122 }
13123 /^X\(\/\/\)[^/].*/{
13124 s//\1/
13125 q
13126 }
13127 /^X\(\/\/\)$/{
13128 s//\1/
13129 q
13130 }
13131 /^X\(\/\).*/{
13132 s//\1/
13133 q
13134 }
13135 s/.*/./; q'`/stamp-h$_am_stamp_count
13136 ;;
13137
13138 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13139 $as_echo "$as_me: executing $ac_file commands" >&6;}
13140 ;;
13141 esac
13142
13143
13144 case $ac_file$ac_mode in
13145 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13146 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13147 # are listed without --file. Let's play safe and only enable the eval
13148 # if we detect the quoting.
13149 case $CONFIG_FILES in
13150 *\'*) eval set x "$CONFIG_FILES" ;;
13151 *) set x $CONFIG_FILES ;;
13152 esac
13153 shift
13154 for mf
13155 do
13156 # Strip MF so we end up with the name of the file.
13157 mf=`echo "$mf" | sed -e 's/:.*$//'`
13158 # Check whether this is an Automake generated Makefile or not.
13159 # We used to match only the files named `Makefile.in', but
13160 # some people rename them; so instead we look at the file content.
13161 # Grep'ing the first line is not enough: some people post-process
13162 # each Makefile.in and add a new line on top of each file to say so.
13163 # Grep'ing the whole file is not good either: AIX grep has a line
13164 # limit of 2048, but all sed's we know have understand at least 4000.
13165 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13166 dirpart=`$as_dirname -- "$mf" ||
13167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13168 X"$mf" : 'X\(//\)[^/]' \| \
13169 X"$mf" : 'X\(//\)$' \| \
13170 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13171 $as_echo X"$mf" |
13172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13173 s//\1/
13174 q
13175 }
13176 /^X\(\/\/\)[^/].*/{
13177 s//\1/
13178 q
13179 }
13180 /^X\(\/\/\)$/{
13181 s//\1/
13182 q
13183 }
13184 /^X\(\/\).*/{
13185 s//\1/
13186 q
13187 }
13188 s/.*/./; q'`
13189 else
13190 continue
13191 fi
13192 # Extract the definition of DEPDIR, am__include, and am__quote
13193 # from the Makefile without running `make'.
13194 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13195 test -z "$DEPDIR" && continue
13196 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13197 test -z "am__include" && continue
13198 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13199 # When using ansi2knr, U may be empty or an underscore; expand it
13200 U=`sed -n 's/^U = //p' < "$mf"`
13201 # Find all dependency output files, they are included files with
13202 # $(DEPDIR) in their names. We invoke sed twice because it is the
13203 # simplest approach to changing $(DEPDIR) to its actual value in the
13204 # expansion.
13205 for file in `sed -n "
13206 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13207 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13208 # Make sure the directory exists.
13209 test -f "$dirpart/$file" && continue
13210 fdir=`$as_dirname -- "$file" ||
13211 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13212 X"$file" : 'X\(//\)[^/]' \| \
13213 X"$file" : 'X\(//\)$' \| \
13214 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13215 $as_echo X"$file" |
13216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13217 s//\1/
13218 q
13219 }
13220 /^X\(\/\/\)[^/].*/{
13221 s//\1/
13222 q
13223 }
13224 /^X\(\/\/\)$/{
13225 s//\1/
13226 q
13227 }
13228 /^X\(\/\).*/{
13229 s//\1/
13230 q
13231 }
13232 s/.*/./; q'`
13233 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13234 # echo "creating $dirpart/$file"
13235 echo '# dummy' > "$dirpart/$file"
13236 done
13237 done
13238 }
13239 ;;
13240 "libtool":C)
13241
13242 # See if we are running on zsh, and set the options which allow our
13243 # commands through without removal of \ escapes.
13244 if test -n "${ZSH_VERSION+set}" ; then
13245 setopt NO_GLOB_SUBST
13246 fi
13247
13248 cfgfile="${ofile}T"
13249 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13250 $RM "$cfgfile"
13251
13252 cat <<_LT_EOF >> "$cfgfile"
13253 #! $SHELL
13254
13255 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13256 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13258 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13259 #
13260 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13261 # 2006, 2007, 2008 Free Software Foundation, Inc.
13262 # Written by Gordon Matzigkeit, 1996
13263 #
13264 # This file is part of GNU Libtool.
13265 #
13266 # GNU Libtool is free software; you can redistribute it and/or
13267 # modify it under the terms of the GNU General Public License as
13268 # published by the Free Software Foundation; either version 2 of
13269 # the License, or (at your option) any later version.
13270 #
13271 # As a special exception to the GNU General Public License,
13272 # if you distribute this file as part of a program or library that
13273 # is built using GNU Libtool, you may include this file under the
13274 # same distribution terms that you use for the rest of that program.
13275 #
13276 # GNU Libtool is distributed in the hope that it will be useful,
13277 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13279 # GNU General Public License for more details.
13280 #
13281 # You should have received a copy of the GNU General Public License
13282 # along with GNU Libtool; see the file COPYING. If not, a copy
13283 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13284 # obtained by writing to the Free Software Foundation, Inc.,
13285 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13286
13287
13288 # The names of the tagged configurations supported by this script.
13289 available_tags=""
13290
13291 # ### BEGIN LIBTOOL CONFIG
13292
13293 # Whether or not to build static libraries.
13294 build_old_libs=$enable_static
13295
13296 # Which release of libtool.m4 was used?
13297 macro_version=$macro_version
13298 macro_revision=$macro_revision
13299
13300 # Whether or not to build shared libraries.
13301 build_libtool_libs=$enable_shared
13302
13303 # What type of objects to build.
13304 pic_mode=$pic_mode
13305
13306 # Whether or not to optimize for fast installation.
13307 fast_install=$enable_fast_install
13308
13309 # The host system.
13310 host_alias=$host_alias
13311 host=$host
13312 host_os=$host_os
13313
13314 # The build system.
13315 build_alias=$build_alias
13316 build=$build
13317 build_os=$build_os
13318
13319 # A sed program that does not truncate output.
13320 SED=$lt_SED
13321
13322 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13323 Xsed="\$SED -e 1s/^X//"
13324
13325 # A grep program that handles long lines.
13326 GREP=$lt_GREP
13327
13328 # An ERE matcher.
13329 EGREP=$lt_EGREP
13330
13331 # A literal string matcher.
13332 FGREP=$lt_FGREP
13333
13334 # A BSD- or MS-compatible name lister.
13335 NM=$lt_NM
13336
13337 # Whether we need soft or hard links.
13338 LN_S=$lt_LN_S
13339
13340 # What is the maximum length of a command?
13341 max_cmd_len=$max_cmd_len
13342
13343 # Object file suffix (normally "o").
13344 objext=$ac_objext
13345
13346 # Executable file suffix (normally "").
13347 exeext=$exeext
13348
13349 # whether the shell understands "unset".
13350 lt_unset=$lt_unset
13351
13352 # turn spaces into newlines.
13353 SP2NL=$lt_lt_SP2NL
13354
13355 # turn newlines into spaces.
13356 NL2SP=$lt_lt_NL2SP
13357
13358 # How to create reloadable object files.
13359 reload_flag=$lt_reload_flag
13360 reload_cmds=$lt_reload_cmds
13361
13362 # An object symbol dumper.
13363 OBJDUMP=$lt_OBJDUMP
13364
13365 # Method to check whether dependent libraries are shared objects.
13366 deplibs_check_method=$lt_deplibs_check_method
13367
13368 # Command to use when deplibs_check_method == "file_magic".
13369 file_magic_cmd=$lt_file_magic_cmd
13370
13371 # The archiver.
13372 AR=$lt_AR
13373 AR_FLAGS=$lt_AR_FLAGS
13374
13375 # A symbol stripping program.
13376 STRIP=$lt_STRIP
13377
13378 # Commands used to install an old-style archive.
13379 RANLIB=$lt_RANLIB
13380 old_postinstall_cmds=$lt_old_postinstall_cmds
13381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13382
13383 # A C compiler.
13384 LTCC=$lt_CC
13385
13386 # LTCC compiler flags.
13387 LTCFLAGS=$lt_CFLAGS
13388
13389 # Take the output of nm and produce a listing of raw symbols and C names.
13390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13391
13392 # Transform the output of nm in a proper C declaration.
13393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13394
13395 # Transform the output of nm in a C name address pair.
13396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13397
13398 # Transform the output of nm in a C name address pair when lib prefix is needed.
13399 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13400
13401 # The name of the directory that contains temporary libtool files.
13402 objdir=$objdir
13403
13404 # Shell to use when invoking shell scripts.
13405 SHELL=$lt_SHELL
13406
13407 # An echo program that does not interpret backslashes.
13408 ECHO=$lt_ECHO
13409
13410 # Used to examine libraries when file_magic_cmd begins with "file".
13411 MAGIC_CMD=$MAGIC_CMD
13412
13413 # Must we lock files when doing compilation?
13414 need_locks=$lt_need_locks
13415
13416 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13417 DSYMUTIL=$lt_DSYMUTIL
13418
13419 # Tool to change global to local symbols on Mac OS X.
13420 NMEDIT=$lt_NMEDIT
13421
13422 # Tool to manipulate fat objects and archives on Mac OS X.
13423 LIPO=$lt_LIPO
13424
13425 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13426 OTOOL=$lt_OTOOL
13427
13428 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13429 OTOOL64=$lt_OTOOL64
13430
13431 # Old archive suffix (normally "a").
13432 libext=$libext
13433
13434 # Shared library suffix (normally ".so").
13435 shrext_cmds=$lt_shrext_cmds
13436
13437 # The commands to extract the exported symbol list from a shared archive.
13438 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13439
13440 # Variables whose values should be saved in libtool wrapper scripts and
13441 # restored at link time.
13442 variables_saved_for_relink=$lt_variables_saved_for_relink
13443
13444 # Do we need the "lib" prefix for modules?
13445 need_lib_prefix=$need_lib_prefix
13446
13447 # Do we need a version for libraries?
13448 need_version=$need_version
13449
13450 # Library versioning type.
13451 version_type=$version_type
13452
13453 # Shared library runtime path variable.
13454 runpath_var=$runpath_var
13455
13456 # Shared library path variable.
13457 shlibpath_var=$shlibpath_var
13458
13459 # Is shlibpath searched before the hard-coded library search path?
13460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13461
13462 # Format of library name prefix.
13463 libname_spec=$lt_libname_spec
13464
13465 # List of archive names. First name is the real one, the rest are links.
13466 # The last name is the one that the linker finds with -lNAME
13467 library_names_spec=$lt_library_names_spec
13468
13469 # The coded name of the library, if different from the real name.
13470 soname_spec=$lt_soname_spec
13471
13472 # Command to use after installation of a shared archive.
13473 postinstall_cmds=$lt_postinstall_cmds
13474
13475 # Command to use after uninstallation of a shared archive.
13476 postuninstall_cmds=$lt_postuninstall_cmds
13477
13478 # Commands used to finish a libtool library installation in a directory.
13479 finish_cmds=$lt_finish_cmds
13480
13481 # As "finish_cmds", except a single script fragment to be evaled but
13482 # not shown.
13483 finish_eval=$lt_finish_eval
13484
13485 # Whether we should hardcode library paths into libraries.
13486 hardcode_into_libs=$hardcode_into_libs
13487
13488 # Compile-time system search path for libraries.
13489 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13490
13491 # Run-time system search path for libraries.
13492 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13493
13494 # Whether dlopen is supported.
13495 dlopen_support=$enable_dlopen
13496
13497 # Whether dlopen of programs is supported.
13498 dlopen_self=$enable_dlopen_self
13499
13500 # Whether dlopen of statically linked programs is supported.
13501 dlopen_self_static=$enable_dlopen_self_static
13502
13503 # Commands to strip libraries.
13504 old_striplib=$lt_old_striplib
13505 striplib=$lt_striplib
13506
13507
13508 # The linker used to build libraries.
13509 LD=$lt_LD
13510
13511 # Commands used to build an old-style archive.
13512 old_archive_cmds=$lt_old_archive_cmds
13513
13514 # A language specific compiler.
13515 CC=$lt_compiler
13516
13517 # Is the compiler the GNU compiler?
13518 with_gcc=$GCC
13519
13520 # Compiler flag to turn off builtin functions.
13521 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13522
13523 # How to pass a linker flag through the compiler.
13524 wl=$lt_lt_prog_compiler_wl
13525
13526 # Additional compiler flags for building library objects.
13527 pic_flag=$lt_lt_prog_compiler_pic
13528
13529 # Compiler flag to prevent dynamic linking.
13530 link_static_flag=$lt_lt_prog_compiler_static
13531
13532 # Does compiler simultaneously support -c and -o options?
13533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13534
13535 # Whether or not to add -lc for building shared libraries.
13536 build_libtool_need_lc=$archive_cmds_need_lc
13537
13538 # Whether or not to disallow shared libs when runtime libs are static.
13539 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13540
13541 # Compiler flag to allow reflexive dlopens.
13542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13543
13544 # Compiler flag to generate shared objects directly from archives.
13545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13546
13547 # Whether the compiler copes with passing no objects directly.
13548 compiler_needs_object=$lt_compiler_needs_object
13549
13550 # Create an old-style archive from a shared archive.
13551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13552
13553 # Create a temporary old-style archive to link instead of a shared archive.
13554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13555
13556 # Commands used to build a shared archive.
13557 archive_cmds=$lt_archive_cmds
13558 archive_expsym_cmds=$lt_archive_expsym_cmds
13559
13560 # Commands used to build a loadable module if different from building
13561 # a shared archive.
13562 module_cmds=$lt_module_cmds
13563 module_expsym_cmds=$lt_module_expsym_cmds
13564
13565 # Whether we are building with GNU ld or not.
13566 with_gnu_ld=$lt_with_gnu_ld
13567
13568 # Flag that allows shared libraries with undefined symbols to be built.
13569 allow_undefined_flag=$lt_allow_undefined_flag
13570
13571 # Flag that enforces no undefined symbols.
13572 no_undefined_flag=$lt_no_undefined_flag
13573
13574 # Flag to hardcode \$libdir into a binary during linking.
13575 # This must work even if \$libdir does not exist
13576 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13577
13578 # If ld is used when linking, flag to hardcode \$libdir into a binary
13579 # during linking. This must work even if \$libdir does not exist.
13580 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13581
13582 # Whether we need a single "-rpath" flag with a separated argument.
13583 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13584
13585 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13586 # DIR into the resulting binary.
13587 hardcode_direct=$hardcode_direct
13588
13589 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13590 # DIR into the resulting binary and the resulting library dependency is
13591 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13592 # library is relocated.
13593 hardcode_direct_absolute=$hardcode_direct_absolute
13594
13595 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13596 # into the resulting binary.
13597 hardcode_minus_L=$hardcode_minus_L
13598
13599 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13600 # into the resulting binary.
13601 hardcode_shlibpath_var=$hardcode_shlibpath_var
13602
13603 # Set to "yes" if building a shared library automatically hardcodes DIR
13604 # into the library and all subsequent libraries and executables linked
13605 # against it.
13606 hardcode_automatic=$hardcode_automatic
13607
13608 # Set to yes if linker adds runtime paths of dependent libraries
13609 # to runtime path list.
13610 inherit_rpath=$inherit_rpath
13611
13612 # Whether libtool must link a program against all its dependency libraries.
13613 link_all_deplibs=$link_all_deplibs
13614
13615 # Fix the shell variable \$srcfile for the compiler.
13616 fix_srcfile_path=$lt_fix_srcfile_path
13617
13618 # Set to "yes" if exported symbols are required.
13619 always_export_symbols=$always_export_symbols
13620
13621 # The commands to list exported symbols.
13622 export_symbols_cmds=$lt_export_symbols_cmds
13623
13624 # Symbols that should not be listed in the preloaded symbols.
13625 exclude_expsyms=$lt_exclude_expsyms
13626
13627 # Symbols that must always be exported.
13628 include_expsyms=$lt_include_expsyms
13629
13630 # Commands necessary for linking programs (against libraries) with templates.
13631 prelink_cmds=$lt_prelink_cmds
13632
13633 # Specify filename containing input files.
13634 file_list_spec=$lt_file_list_spec
13635
13636 # How to hardcode a shared library path into an executable.
13637 hardcode_action=$hardcode_action
13638
13639 # ### END LIBTOOL CONFIG
13640
13641 _LT_EOF
13642
13643 case $host_os in
13644 aix3*)
13645 cat <<\_LT_EOF >> "$cfgfile"
13646 # AIX sometimes has problems with the GCC collect2 program. For some
13647 # reason, if we set the COLLECT_NAMES environment variable, the problems
13648 # vanish in a puff of smoke.
13649 if test "X${COLLECT_NAMES+set}" != Xset; then
13650 COLLECT_NAMES=
13651 export COLLECT_NAMES
13652 fi
13653 _LT_EOF
13654 ;;
13655 esac
13656
13657
13658 ltmain="$ac_aux_dir/ltmain.sh"
13659
13660
13661 # We use sed instead of cat because bash on DJGPP gets confused if
13662 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13663 # text mode, it properly converts lines to CR/LF. This bash problem
13664 # is reportedly fixed, but why not run on old versions too?
13665 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13666 || (rm -f "$cfgfile"; exit 1)
13667
13668 case $xsi_shell in
13669 yes)
13670 cat << \_LT_EOF >> "$cfgfile"
13671
13672 # func_dirname file append nondir_replacement
13673 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13674 # otherwise set result to NONDIR_REPLACEMENT.
13675 func_dirname ()
13676 {
13677 case ${1} in
13678 */*) func_dirname_result="${1%/*}${2}" ;;
13679 * ) func_dirname_result="${3}" ;;
13680 esac
13681 }
13682
13683 # func_basename file
13684 func_basename ()
13685 {
13686 func_basename_result="${1##*/}"
13687 }
13688
13689 # func_dirname_and_basename file append nondir_replacement
13690 # perform func_basename and func_dirname in a single function
13691 # call:
13692 # dirname: Compute the dirname of FILE. If nonempty,
13693 # add APPEND to the result, otherwise set result
13694 # to NONDIR_REPLACEMENT.
13695 # value returned in "$func_dirname_result"
13696 # basename: Compute filename of FILE.
13697 # value retuned in "$func_basename_result"
13698 # Implementation must be kept synchronized with func_dirname
13699 # and func_basename. For efficiency, we do not delegate to
13700 # those functions but instead duplicate the functionality here.
13701 func_dirname_and_basename ()
13702 {
13703 case ${1} in
13704 */*) func_dirname_result="${1%/*}${2}" ;;
13705 * ) func_dirname_result="${3}" ;;
13706 esac
13707 func_basename_result="${1##*/}"
13708 }
13709
13710 # func_stripname prefix suffix name
13711 # strip PREFIX and SUFFIX off of NAME.
13712 # PREFIX and SUFFIX must not contain globbing or regex special
13713 # characters, hashes, percent signs, but SUFFIX may contain a leading
13714 # dot (in which case that matches only a dot).
13715 func_stripname ()
13716 {
13717 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13718 # positional parameters, so assign one to ordinary parameter first.
13719 func_stripname_result=${3}
13720 func_stripname_result=${func_stripname_result#"${1}"}
13721 func_stripname_result=${func_stripname_result%"${2}"}
13722 }
13723
13724 # func_opt_split
13725 func_opt_split ()
13726 {
13727 func_opt_split_opt=${1%%=*}
13728 func_opt_split_arg=${1#*=}
13729 }
13730
13731 # func_lo2o object
13732 func_lo2o ()
13733 {
13734 case ${1} in
13735 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13736 *) func_lo2o_result=${1} ;;
13737 esac
13738 }
13739
13740 # func_xform libobj-or-source
13741 func_xform ()
13742 {
13743 func_xform_result=${1%.*}.lo
13744 }
13745
13746 # func_arith arithmetic-term...
13747 func_arith ()
13748 {
13749 func_arith_result=$(( $* ))
13750 }
13751
13752 # func_len string
13753 # STRING may not start with a hyphen.
13754 func_len ()
13755 {
13756 func_len_result=${#1}
13757 }
13758
13759 _LT_EOF
13760 ;;
13761 *) # Bourne compatible functions.
13762 cat << \_LT_EOF >> "$cfgfile"
13763
13764 # func_dirname file append nondir_replacement
13765 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13766 # otherwise set result to NONDIR_REPLACEMENT.
13767 func_dirname ()
13768 {
13769 # Extract subdirectory from the argument.
13770 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13771 if test "X$func_dirname_result" = "X${1}"; then
13772 func_dirname_result="${3}"
13773 else
13774 func_dirname_result="$func_dirname_result${2}"
13775 fi
13776 }
13777
13778 # func_basename file
13779 func_basename ()
13780 {
13781 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13782 }
13783
13784
13785 # func_stripname prefix suffix name
13786 # strip PREFIX and SUFFIX off of NAME.
13787 # PREFIX and SUFFIX must not contain globbing or regex special
13788 # characters, hashes, percent signs, but SUFFIX may contain a leading
13789 # dot (in which case that matches only a dot).
13790 # func_strip_suffix prefix name
13791 func_stripname ()
13792 {
13793 case ${2} in
13794 .*) func_stripname_result=`$ECHO "X${3}" \
13795 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13796 *) func_stripname_result=`$ECHO "X${3}" \
13797 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13798 esac
13799 }
13800
13801 # sed scripts:
13802 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13803 my_sed_long_arg='1s/^-[^=]*=//'
13804
13805 # func_opt_split
13806 func_opt_split ()
13807 {
13808 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13809 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13810 }
13811
13812 # func_lo2o object
13813 func_lo2o ()
13814 {
13815 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13816 }
13817
13818 # func_xform libobj-or-source
13819 func_xform ()
13820 {
13821 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13822 }
13823
13824 # func_arith arithmetic-term...
13825 func_arith ()
13826 {
13827 func_arith_result=`expr "$@"`
13828 }
13829
13830 # func_len string
13831 # STRING may not start with a hyphen.
13832 func_len ()
13833 {
13834 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13835 }
13836
13837 _LT_EOF
13838 esac
13839
13840 case $lt_shell_append in
13841 yes)
13842 cat << \_LT_EOF >> "$cfgfile"
13843
13844 # func_append var value
13845 # Append VALUE to the end of shell variable VAR.
13846 func_append ()
13847 {
13848 eval "$1+=\$2"
13849 }
13850 _LT_EOF
13851 ;;
13852 *)
13853 cat << \_LT_EOF >> "$cfgfile"
13854
13855 # func_append var value
13856 # Append VALUE to the end of shell variable VAR.
13857 func_append ()
13858 {
13859 eval "$1=\$$1\$2"
13860 }
13861
13862 _LT_EOF
13863 ;;
13864 esac
13865
13866
13867 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13868 || (rm -f "$cfgfile"; exit 1)
13869
13870 mv -f "$cfgfile" "$ofile" ||
13871 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13872 chmod +x "$ofile"
13873
13874 ;;
13875
13876 esac
13877 done # for ac_tag
13878
13879
13880 as_fn_exit 0
13881 _ACEOF
13882 ac_clean_files=$ac_clean_files_save
13883
13884 test $ac_write_fail = 0 ||
13885 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13886
13887
13888 # configure is writing to config.log, and then calls config.status.
13889 # config.status does its own redirection, appending to config.log.
13890 # Unfortunately, on DOS this fails, as config.log is still kept open
13891 # by configure, so config.status won't be able to write to it; its
13892 # output is simply discarded. So we exec the FD to /dev/null,
13893 # effectively closing config.log, so it can be properly (re)opened and
13894 # appended to by config.status. When coming back to configure, we
13895 # need to make the FD available again.
13896 if test "$no_create" != yes; then
13897 ac_cs_success=:
13898 ac_config_status_args=
13899 test "$silent" = yes &&
13900 ac_config_status_args="$ac_config_status_args --quiet"
13901 exec 5>/dev/null
13902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13903 exec 5>>config.log
13904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13905 # would make configure fail if this is the last instruction.
13906 $ac_cs_success || as_fn_exit 1
13907 fi
13908 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13910 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13911 fi
13912
13913