configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXv 1.0.6.
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 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libXv'
573 PACKAGE_TARNAME='libXv'
574 PACKAGE_VERSION='1.0.6'
575 PACKAGE_STRING='libXv 1.0.6'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 MAKE_LINT_LIB_FALSE
620 MAKE_LINT_LIB_TRUE
621 LINTLIB
622 LINT_FALSE
623 LINT_TRUE
624 LINT_FLAGS
625 LINT
626 XTMALLOC_ZERO_CFLAGS
627 XMALLOC_ZERO_CFLAGS
628 MALLOC_ZERO_CFLAGS
629 XV_LIBS
630 XV_CFLAGS
631 OTOOL64
632 OTOOL
633 LIPO
634 NMEDIT
635 DSYMUTIL
636 RANLIB
637 AR
638 OBJDUMP
639 LN_S
640 NM
641 ac_ct_DUMPBIN
642 DUMPBIN
643 LD
644 FGREP
645 LIBTOOL
646 AM_BACKSLASH
647 AM_DEFAULT_VERBOSITY
648 MAN_SUBSTS
649 XORG_MAN_PAGE
650 ADMIN_MAN_DIR
651 DRIVER_MAN_DIR
652 MISC_MAN_DIR
653 FILE_MAN_DIR
654 LIB_MAN_DIR
655 APP_MAN_DIR
656 ADMIN_MAN_SUFFIX
657 DRIVER_MAN_SUFFIX
658 MISC_MAN_SUFFIX
659 FILE_MAN_SUFFIX
660 LIB_MAN_SUFFIX
661 APP_MAN_SUFFIX
662 SED
663 host_os
664 host_vendor
665 host_cpu
666 host
667 build_os
668 build_vendor
669 build_cpu
670 build
671 INSTALL_CMD
672 PKG_CONFIG
673 CHANGELOG_CMD
674 CWARNFLAGS
675 EGREP
676 GREP
677 CPP
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 am__untar
698 am__tar
699 AMTAR
700 am__leading_dot
701 SET_MAKE
702 AWK
703 mkdir_p
704 MKDIR_P
705 INSTALL_STRIP_PROGRAM
706 STRIP
707 install_sh
708 MAKEINFO
709 AUTOHEADER
710 AUTOMAKE
711 AUTOCONF
712 ACLOCAL
713 VERSION
714 PACKAGE
715 CYGPATH_W
716 am__isrc
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_maintainer_mode
762 enable_dependency_tracking
763 enable_strict_compilation
764 enable_silent_rules
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 enable_libtool_lock
771 enable_malloc0returnsnull
772 with_lint
773 enable_lint_library
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP
784 PKG_CONFIG
785 XV_CFLAGS
786 XV_LIBS
787 LINT
788 LINT_FLAGS'
789
790
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
812
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
849
850 case $ac_option in
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *=) ac_optarg= ;;
853 *) ac_optarg=yes ;;
854 esac
855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1084
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1112
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1139
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
1174 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information"
1176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 ;;
1195
1196 esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error $? "missing argument to $ac_option"
1202 fi
1203
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210 fi
1211
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1217 do
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1232
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1245 If a cross compiler is detected then cross compile mode will be used" >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249 fi
1250
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254 test "$silent" = yes && exec 6>/dev/null
1255
1256
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $? "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296 else
1297 ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310 fi
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1323
1324 #
1325 # Report the --help message.
1326 #
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures libXv 1.0.6 to adapt to many kinds of systems.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338 Defaults for the options are specified in brackets.
1339
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1356
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1361
1362 For better control, use the options below.
1363
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/libXv]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1385
1386 cat <<\_ACEOF
1387
1388 Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of libXv 1.0.6:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-maintainer-mode enable make rules and dependencies not useful
1410 (and sometimes confusing) to the casual installer
1411 --disable-dependency-tracking speeds up one-time build
1412 --enable-dependency-tracking do not reject slow dependency extractors
1413 --enable-strict-compilation
1414 Enable all warnings from compiler and make them
1415 errors (default: disabled)
1416 --enable-silent-rules less verbose build output (undo: `make V=1')
1417 --disable-silent-rules verbose build output (undo: `make V=0')
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --enable-malloc0returnsnull
1424 malloc(0) returns NULL (default: auto)
1425 --enable-lint-library Create lint library (default: disabled)
1426
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 --with-lint Use a lint-style source code checker (default:
1434 disabled)
1435
1436 Some influential environment variables:
1437 CC C compiler command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440 nonstandard directory <lib dir>
1441 LIBS libraries to pass to the linker, e.g. -l<library>
1442 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1444 CPP C preprocessor
1445 PKG_CONFIG path to pkg-config utility
1446 XV_CFLAGS C compiler flags for XV, overriding pkg-config
1447 XV_LIBS linker flags for XV, overriding pkg-config
1448 LINT Path to a lint-style command
1449 LINT_FLAGS Flags for the lint-style command
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1466
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1482
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 libXv configure 1.0.6
1518 generated by GNU Autoconf 2.68
1519
1520 Copyright (C) 2010 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563 fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1570 # ---------------------------------------------
1571 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1572 # accordingly.
1573 ac_fn_c_check_decl ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 as_decl_name=`echo $2|sed 's/ *(.*//'`
1577 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1579 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1580 if eval \${$3+:} false; then :
1581 $as_echo_n "(cached) " >&6
1582 else
1583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1584 /* end confdefs.h. */
1585 $4
1586 int
1587 main ()
1588 {
1589 #ifndef $as_decl_name
1590 #ifdef __cplusplus
1591 (void) $as_decl_use;
1592 #else
1593 (void) $as_decl_name;
1594 #endif
1595 #endif
1596
1597 ;
1598 return 0;
1599 }
1600 _ACEOF
1601 if ac_fn_c_try_compile "$LINENO"; then :
1602 eval "$3=yes"
1603 else
1604 eval "$3=no"
1605 fi
1606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607 fi
1608 eval ac_res=\$$3
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610 $as_echo "$ac_res" >&6; }
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612
1613 } # ac_fn_c_check_decl
1614
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_cpp
1651
1652 # ac_fn_c_try_run LINENO
1653 # ----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655 # that executables *can* be run.
1656 ac_fn_c_try_run ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687 fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_run
1693
1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists and can be compiled using the include files in
1697 # INCLUDES, setting the cache variable VAR accordingly.
1698 ac_fn_c_check_header_compile ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704 $as_echo_n "(cached) " >&6
1705 else
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 $4
1709 #include <$2>
1710 _ACEOF
1711 if ac_fn_c_try_compile "$LINENO"; then :
1712 eval "$3=yes"
1713 else
1714 eval "$3=no"
1715 fi
1716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 fi
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723 } # ac_fn_c_check_header_compile
1724
1725 # ac_fn_c_try_link LINENO
1726 # -----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_link ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext conftest$ac_exeext
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest$ac_exeext && {
1751 test "$cross_compiling" = yes ||
1752 $as_test_x conftest$ac_exeext
1753 }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760 fi
1761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763 # interfere with the next link command; also delete a directory that is
1764 # left behind by Apple's compiler. We do this before executing the actions.
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_link
1770
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1787
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1792
1793 #ifdef __STDC__
1794 # include <limits.h>
1795 #else
1796 # include <assert.h>
1797 #endif
1798
1799 #undef $2
1800
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 ();
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1814
1815 int
1816 main ()
1817 {
1818 return $2 ();
1819 ;
1820 return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_func
1837 cat >config.log <<_ACEOF
1838 This file contains any messages produced by compilers while
1839 running configure, to aid debugging if configure makes a mistake.
1840
1841 It was created by libXv $as_me 1.0.6, which was
1842 generated by GNU Autoconf 2.68. Invocation command line was
1843
1844 $ $0 $@
1845
1846 _ACEOF
1847 exec 5>>config.log
1848 {
1849 cat <<_ASUNAME
1850 ## --------- ##
1851 ## Platform. ##
1852 ## --------- ##
1853
1854 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1855 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1856 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1857 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1858 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859
1860 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1861 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1862
1863 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1864 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1865 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1866 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1867 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1868 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1869 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1870
1871 _ASUNAME
1872
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 $as_echo "PATH: $as_dir"
1879 done
1880 IFS=$as_save_IFS
1881
1882 } >&5
1883
1884 cat >&5 <<_ACEOF
1885
1886
1887 ## ----------- ##
1888 ## Core tests. ##
1889 ## ----------- ##
1890
1891 _ACEOF
1892
1893
1894 # Keep a trace of the command line.
1895 # Strip out --no-create and --no-recursion so they do not pile up.
1896 # Strip out --silent because we don't want to record it for future runs.
1897 # Also quote any args containing shell meta-characters.
1898 # Make two passes to allow for proper duplicate-argument suppression.
1899 ac_configure_args=
1900 ac_configure_args0=
1901 ac_configure_args1=
1902 ac_must_keep_next=false
1903 for ac_pass in 1 2
1904 do
1905 for ac_arg
1906 do
1907 case $ac_arg in
1908 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1910 | -silent | --silent | --silen | --sile | --sil)
1911 continue ;;
1912 *\'*)
1913 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 esac
1915 case $ac_pass in
1916 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1917 2)
1918 as_fn_append ac_configure_args1 " '$ac_arg'"
1919 if test $ac_must_keep_next = true; then
1920 ac_must_keep_next=false # Got value, back to normal.
1921 else
1922 case $ac_arg in
1923 *=* | --config-cache | -C | -disable-* | --disable-* \
1924 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1925 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1926 | -with-* | --with-* | -without-* | --without-* | --x)
1927 case "$ac_configure_args0 " in
1928 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1929 esac
1930 ;;
1931 -* ) ac_must_keep_next=true ;;
1932 esac
1933 fi
1934 as_fn_append ac_configure_args " '$ac_arg'"
1935 ;;
1936 esac
1937 done
1938 done
1939 { ac_configure_args0=; unset ac_configure_args0;}
1940 { ac_configure_args1=; unset ac_configure_args1;}
1941
1942 # When interrupted or exit'd, cleanup temporary files, and complete
1943 # config.log. We remove comments because anyway the quotes in there
1944 # would cause problems or look ugly.
1945 # WARNING: Use '\'' to represent an apostrophe within the trap.
1946 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1947 trap 'exit_status=$?
1948 # Save into config.log some information that might help in debugging.
1949 {
1950 echo
1951
1952 $as_echo "## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##"
1955 echo
1956 # The following way of writing the cache mishandles newlines in values,
1957 (
1958 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959 eval ac_val=\$$ac_var
1960 case $ac_val in #(
1961 *${as_nl}*)
1962 case $ac_var in #(
1963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1965 esac
1966 case $ac_var in #(
1967 _ | IFS | as_nl) ;; #(
1968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1969 *) { eval $ac_var=; unset $ac_var;} ;;
1970 esac ;;
1971 esac
1972 done
1973 (set) 2>&1 |
1974 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975 *${as_nl}ac_space=\ *)
1976 sed -n \
1977 "s/'\''/'\''\\\\'\'''\''/g;
1978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979 ;; #(
1980 *)
1981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982 ;;
1983 esac |
1984 sort
1985 )
1986 echo
1987
1988 $as_echo "## ----------------- ##
1989 ## Output variables. ##
1990 ## ----------------- ##"
1991 echo
1992 for ac_var in $ac_subst_vars
1993 do
1994 eval ac_val=\$$ac_var
1995 case $ac_val in
1996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 esac
1998 $as_echo "$ac_var='\''$ac_val'\''"
1999 done | sort
2000 echo
2001
2002 if test -n "$ac_subst_files"; then
2003 $as_echo "## ------------------- ##
2004 ## File substitutions. ##
2005 ## ------------------- ##"
2006 echo
2007 for ac_var in $ac_subst_files
2008 do
2009 eval ac_val=\$$ac_var
2010 case $ac_val in
2011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012 esac
2013 $as_echo "$ac_var='\''$ac_val'\''"
2014 done | sort
2015 echo
2016 fi
2017
2018 if test -s confdefs.h; then
2019 $as_echo "## ----------- ##
2020 ## confdefs.h. ##
2021 ## ----------- ##"
2022 echo
2023 cat confdefs.h
2024 echo
2025 fi
2026 test "$ac_signal" != 0 &&
2027 $as_echo "$as_me: caught signal $ac_signal"
2028 $as_echo "$as_me: exit $exit_status"
2029 } >&5
2030 rm -f core *.core core.conftest.* &&
2031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032 exit $exit_status
2033 ' 0
2034 for ac_signal in 1 2 13 15; do
2035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036 done
2037 ac_signal=0
2038
2039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2040 rm -f -r conftest* confdefs.h
2041
2042 $as_echo "/* confdefs.h */" > confdefs.h
2043
2044 # Predefined preprocessor variables.
2045
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_NAME "$PACKAGE_NAME"
2048 _ACEOF
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052 _ACEOF
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2056 _ACEOF
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_STRING "$PACKAGE_STRING"
2060 _ACEOF
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064 _ACEOF
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_URL "$PACKAGE_URL"
2068 _ACEOF
2069
2070
2071 # Let the site file select an alternate cache file if it wants to.
2072 # Prefer an explicitly selected file to automatically selected ones.
2073 ac_site_file1=NONE
2074 ac_site_file2=NONE
2075 if test -n "$CONFIG_SITE"; then
2076 # We do not want a PATH search for config.site.
2077 case $CONFIG_SITE in #((
2078 -*) ac_site_file1=./$CONFIG_SITE;;
2079 */*) ac_site_file1=$CONFIG_SITE;;
2080 *) ac_site_file1=./$CONFIG_SITE;;
2081 esac
2082 elif test "x$prefix" != xNONE; then
2083 ac_site_file1=$prefix/share/config.site
2084 ac_site_file2=$prefix/etc/config.site
2085 else
2086 ac_site_file1=$ac_default_prefix/share/config.site
2087 ac_site_file2=$ac_default_prefix/etc/config.site
2088 fi
2089 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2090 do
2091 test "x$ac_site_file" = xNONE && continue
2092 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2095 sed 's/^/| /' "$ac_site_file" >&5
2096 . "$ac_site_file" \
2097 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2099 as_fn_error $? "failed to load site script $ac_site_file
2100 See \`config.log' for more details" "$LINENO" 5; }
2101 fi
2102 done
2103
2104 if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special files
2106 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2107 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109 $as_echo "$as_me: loading cache $cache_file" >&6;}
2110 case $cache_file in
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
2113 esac
2114 fi
2115 else
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117 $as_echo "$as_me: creating cache $cache_file" >&6;}
2118 >$cache_file
2119 fi
2120
2121 # Check that the precious variables saved in the cache have kept the same
2122 # value.
2123 ac_cache_corrupted=false
2124 for ac_var in $ac_precious_vars; do
2125 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126 eval ac_new_set=\$ac_env_${ac_var}_set
2127 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128 eval ac_new_val=\$ac_env_${ac_var}_value
2129 case $ac_old_set,$ac_new_set in
2130 set,)
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2133 ac_cache_corrupted=: ;;
2134 ,set)
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2136 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2137 ac_cache_corrupted=: ;;
2138 ,);;
2139 *)
2140 if test "x$ac_old_val" != "x$ac_new_val"; then
2141 # differences in whitespace do not lead to failure.
2142 ac_old_val_w=`echo x $ac_old_val`
2143 ac_new_val_w=`echo x $ac_new_val`
2144 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2146 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2147 ac_cache_corrupted=:
2148 else
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2150 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2151 eval $ac_var=\$ac_old_val
2152 fi
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2154 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2156 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2157 fi;;
2158 esac
2159 # Pass precious variables to config.status.
2160 if test "$ac_new_set" = set; then
2161 case $ac_new_val in
2162 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2163 *) ac_arg=$ac_var=$ac_new_val ;;
2164 esac
2165 case " $ac_configure_args " in
2166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2167 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2168 esac
2169 fi
2170 done
2171 if $ac_cache_corrupted; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2175 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2176 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2177 fi
2178 ## -------------------- ##
2179 ## Main body of script. ##
2180 ## -------------------- ##
2181
2182 ac_ext=c
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187
2188
2189 am__api_version='1.11'
2190
2191 ac_aux_dir=
2192 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2193 if test -f "$ac_dir/install-sh"; then
2194 ac_aux_dir=$ac_dir
2195 ac_install_sh="$ac_aux_dir/install-sh -c"
2196 break
2197 elif test -f "$ac_dir/install.sh"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/install.sh -c"
2200 break
2201 elif test -f "$ac_dir/shtool"; then
2202 ac_aux_dir=$ac_dir
2203 ac_install_sh="$ac_aux_dir/shtool install -c"
2204 break
2205 fi
2206 done
2207 if test -z "$ac_aux_dir"; then
2208 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2209 fi
2210
2211 # These three variables are undocumented and unsupported,
2212 # and are intended to be withdrawn in a future Autoconf release.
2213 # They can cause serious problems if a builder's source tree is in a directory
2214 # whose full name contains unusual characters.
2215 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2216 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2217 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2218
2219
2220 # Find a good install program. We prefer a C program (faster),
2221 # so one script is as good as another. But avoid the broken or
2222 # incompatible versions:
2223 # SysV /etc/install, /usr/sbin/install
2224 # SunOS /usr/etc/install
2225 # IRIX /sbin/install
2226 # AIX /bin/install
2227 # AmigaOS /C/install, which installs bootblocks on floppy discs
2228 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2231 # OS/2's system install, which has a completely different semantic
2232 # ./install, which can be erroneously created by make from ./install.sh.
2233 # Reject install programs that cannot install multiple files.
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2235 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2236 if test -z "$INSTALL"; then
2237 if ${ac_cv_path_install+:} false; then :
2238 $as_echo_n "(cached) " >&6
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 # Account for people who put trailing slashes in PATH elements.
2246 case $as_dir/ in #((
2247 ./ | .// | /[cC]/* | \
2248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2249 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2250 /usr/ucb/* ) ;;
2251 *)
2252 # OSF1 and SCO ODT 3.0 have their own names for install.
2253 # Don't use installbsd from OSF since it installs stuff as root
2254 # by default.
2255 for ac_prog in ginstall scoinst install; do
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2258 if test $ac_prog = install &&
2259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260 # AIX install. It has an incompatible calling convention.
2261 :
2262 elif test $ac_prog = install &&
2263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # program-specific install script used by HP pwplus--don't use.
2265 :
2266 else
2267 rm -rf conftest.one conftest.two conftest.dir
2268 echo one > conftest.one
2269 echo two > conftest.two
2270 mkdir conftest.dir
2271 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2272 test -s conftest.one && test -s conftest.two &&
2273 test -s conftest.dir/conftest.one &&
2274 test -s conftest.dir/conftest.two
2275 then
2276 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2277 break 3
2278 fi
2279 fi
2280 fi
2281 done
2282 done
2283 ;;
2284 esac
2285
2286 done
2287 IFS=$as_save_IFS
2288
2289 rm -rf conftest.one conftest.two conftest.dir
2290
2291 fi
2292 if test "${ac_cv_path_install+set}" = set; then
2293 INSTALL=$ac_cv_path_install
2294 else
2295 # As a last resort, use the slow shell script. Don't cache a
2296 # value for INSTALL within a source directory, because that will
2297 # break other packages using the cache if that directory is
2298 # removed, or if the value is a relative name.
2299 INSTALL=$ac_install_sh
2300 fi
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2303 $as_echo "$INSTALL" >&6; }
2304
2305 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2306 # It thinks the first close brace ends the variable substitution.
2307 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2308
2309 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2310
2311 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2312
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2314 $as_echo_n "checking whether build environment is sane... " >&6; }
2315 # Just in case
2316 sleep 1
2317 echo timestamp > conftest.file
2318 # Reject unsafe characters in $srcdir or the absolute working directory
2319 # name. Accept space and tab only in the latter.
2320 am_lf='
2321 '
2322 case `pwd` in
2323 *[\\\"\#\$\&\'\`$am_lf]*)
2324 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2325 esac
2326 case $srcdir in
2327 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2328 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2329 esac
2330
2331 # Do `set' in a subshell so we don't clobber the current shell's
2332 # arguments. Must try -L first in case configure is actually a
2333 # symlink; some systems play weird games with the mod time of symlinks
2334 # (eg FreeBSD returns the mod time of the symlink's containing
2335 # directory).
2336 if (
2337 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2338 if test "$*" = "X"; then
2339 # -L didn't work.
2340 set X `ls -t "$srcdir/configure" conftest.file`
2341 fi
2342 rm -f conftest.file
2343 if test "$*" != "X $srcdir/configure conftest.file" \
2344 && test "$*" != "X conftest.file $srcdir/configure"; then
2345
2346 # If neither matched, then we have a broken ls. This can happen
2347 # if, for instance, CONFIG_SHELL is bash and it inherits a
2348 # broken ls alias from the environment. This has actually
2349 # happened. Such a system could not be considered "sane".
2350 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2351 alias in your environment" "$LINENO" 5
2352 fi
2353
2354 test "$2" = conftest.file
2355 )
2356 then
2357 # Ok.
2358 :
2359 else
2360 as_fn_error $? "newly created file is older than distributed files!
2361 Check your system clock" "$LINENO" 5
2362 fi
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2364 $as_echo "yes" >&6; }
2365 test "$program_prefix" != NONE &&
2366 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2367 # Use a double $ so make ignores it.
2368 test "$program_suffix" != NONE &&
2369 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2370 # Double any \ or $.
2371 # By default was `s,x,x', remove it if useless.
2372 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2373 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2374
2375 # expand $ac_aux_dir to an absolute path
2376 am_aux_dir=`cd $ac_aux_dir && pwd`
2377
2378 if test x"${MISSING+set}" != xset; then
2379 case $am_aux_dir in
2380 *\ * | *\ *)
2381 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2382 *)
2383 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2384 esac
2385 fi
2386 # Use eval to expand $SHELL
2387 if eval "$MISSING --run true"; then
2388 am_missing_run="$MISSING --run "
2389 else
2390 am_missing_run=
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2392 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2393 fi
2394
2395 if test x"${install_sh}" != xset; then
2396 case $am_aux_dir in
2397 *\ * | *\ *)
2398 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2399 *)
2400 install_sh="\${SHELL} $am_aux_dir/install-sh"
2401 esac
2402 fi
2403
2404 # Installed binaries are usually stripped using `strip' when the user
2405 # run `make install-strip'. However `strip' might not be the right
2406 # tool to use in cross-compilation environments, therefore Automake
2407 # will honor the `STRIP' environment variable to overrule this program.
2408 if test "$cross_compiling" != no; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}strip; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if ${ac_cv_prog_STRIP+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$STRIP"; then
2418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 fi
2436 fi
2437 STRIP=$ac_cv_prog_STRIP
2438 if test -n "$STRIP"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2440 $as_echo "$STRIP" >&6; }
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2444 fi
2445
2446
2447 fi
2448 if test -z "$ac_cv_prog_STRIP"; then
2449 ac_ct_STRIP=$STRIP
2450 # Extract the first word of "strip", so it can be a program name with args.
2451 set dummy strip; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$ac_ct_STRIP"; then
2458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_STRIP="strip"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478 if test -n "$ac_ct_STRIP"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2480 $as_echo "$ac_ct_STRIP" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486 if test "x$ac_ct_STRIP" = x; then
2487 STRIP=":"
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490 yes:)
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493 ac_tool_warned=yes ;;
2494 esac
2495 STRIP=$ac_ct_STRIP
2496 fi
2497 else
2498 STRIP="$ac_cv_prog_STRIP"
2499 fi
2500
2501 fi
2502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2503
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2505 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2506 if test -z "$MKDIR_P"; then
2507 if ${ac_cv_path_mkdir+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2512 do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_prog in mkdir gmkdir; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2518 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2519 'mkdir (GNU coreutils) '* | \
2520 'mkdir (coreutils) '* | \
2521 'mkdir (fileutils) '4.1*)
2522 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2523 break 3;;
2524 esac
2525 done
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531
2532 test -d ./--version && rmdir ./--version
2533 if test "${ac_cv_path_mkdir+set}" = set; then
2534 MKDIR_P="$ac_cv_path_mkdir -p"
2535 else
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for MKDIR_P within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 MKDIR_P="$ac_install_sh -d"
2541 fi
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2544 $as_echo "$MKDIR_P" >&6; }
2545
2546 mkdir_p="$MKDIR_P"
2547 case $mkdir_p in
2548 [\\/$]* | ?:[\\/]*) ;;
2549 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2550 esac
2551
2552 for ac_prog in gawk mawk nawk awk
2553 do
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy $ac_prog; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_AWK+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 if test -n "$AWK"; then
2562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_AWK="$ac_prog"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 AWK=$ac_cv_prog_AWK
2582 if test -n "$AWK"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2584 $as_echo "$AWK" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590
2591 test -n "$AWK" && break
2592 done
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2595 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2596 set x ${MAKE-make}
2597 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2598 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 cat >conftest.make <<\_ACEOF
2602 SHELL = /bin/sh
2603 all:
2604 @echo '@@@%%%=$(MAKE)=@@@%%%'
2605 _ACEOF
2606 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2607 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2608 *@@@%%%=?*=@@@%%%*)
2609 eval ac_cv_prog_make_${ac_make}_set=yes;;
2610 *)
2611 eval ac_cv_prog_make_${ac_make}_set=no;;
2612 esac
2613 rm -f conftest.make
2614 fi
2615 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617 $as_echo "yes" >&6; }
2618 SET_MAKE=
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 SET_MAKE="MAKE=${MAKE-make}"
2623 fi
2624
2625 rm -rf .tst 2>/dev/null
2626 mkdir .tst 2>/dev/null
2627 if test -d .tst; then
2628 am__leading_dot=.
2629 else
2630 am__leading_dot=_
2631 fi
2632 rmdir .tst 2>/dev/null
2633
2634 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2635 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2636 # is not polluted with repeated "-I."
2637 am__isrc=' -I$(srcdir)'
2638 # test to see if srcdir already configured
2639 if test -f $srcdir/config.status; then
2640 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2641 fi
2642 fi
2643
2644 # test whether we have cygpath
2645 if test -z "$CYGPATH_W"; then
2646 if (cygpath --version) >/dev/null 2>/dev/null; then
2647 CYGPATH_W='cygpath -w'
2648 else
2649 CYGPATH_W=echo
2650 fi
2651 fi
2652
2653
2654 # Define the identity of the package.
2655 PACKAGE='libXv'
2656 VERSION='1.0.6'
2657
2658
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE "$PACKAGE"
2661 _ACEOF
2662
2663
2664 cat >>confdefs.h <<_ACEOF
2665 #define VERSION "$VERSION"
2666 _ACEOF
2667
2668 # Some tools Automake needs.
2669
2670 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2671
2672
2673 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2674
2675
2676 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2677
2678
2679 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2680
2681
2682 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2683
2684 # We need awk for the "check" target. The system "awk" is bad on
2685 # some platforms.
2686 # Always define AMTAR for backward compatibility.
2687
2688 AMTAR=${AMTAR-"${am_missing_run}tar"}
2689
2690 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2691
2692
2693
2694
2695
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2698 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2699 # Check whether --enable-maintainer-mode was given.
2700 if test "${enable_maintainer_mode+set}" = set; then :
2701 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2702 else
2703 USE_MAINTAINER_MODE=no
2704 fi
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2707 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2708 if test $USE_MAINTAINER_MODE = yes; then
2709 MAINTAINER_MODE_TRUE=
2710 MAINTAINER_MODE_FALSE='#'
2711 else
2712 MAINTAINER_MODE_TRUE='#'
2713 MAINTAINER_MODE_FALSE=
2714 fi
2715
2716 MAINT=$MAINTAINER_MODE_TRUE
2717
2718
2719
2720 ac_config_headers="$ac_config_headers config.h"
2721
2722
2723 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735 DEPDIR="${am__leading_dot}deps"
2736
2737 ac_config_commands="$ac_config_commands depfiles"
2738
2739
2740 am_make=${MAKE-make}
2741 cat > confinc << 'END'
2742 am__doit:
2743 @echo this is the am__doit target
2744 .PHONY: am__doit
2745 END
2746 # If we don't find an include directive, just comment out the code.
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2748 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2749 am__include="#"
2750 am__quote=
2751 _am_result=none
2752 # First try GNU make style include.
2753 echo "include confinc" > confmf
2754 # Ignore all kinds of additional output from `make'.
2755 case `$am_make -s -f confmf 2> /dev/null` in #(
2756 *the\ am__doit\ target*)
2757 am__include=include
2758 am__quote=
2759 _am_result=GNU
2760 ;;
2761 esac
2762 # Now try BSD make style include.
2763 if test "$am__include" = "#"; then
2764 echo '.include "confinc"' > confmf
2765 case `$am_make -s -f confmf 2> /dev/null` in #(
2766 *the\ am__doit\ target*)
2767 am__include=.include
2768 am__quote="\""
2769 _am_result=BSD
2770 ;;
2771 esac
2772 fi
2773
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2776 $as_echo "$_am_result" >&6; }
2777 rm -f confinc confmf
2778
2779 # Check whether --enable-dependency-tracking was given.
2780 if test "${enable_dependency_tracking+set}" = set; then :
2781 enableval=$enable_dependency_tracking;
2782 fi
2783
2784 if test "x$enable_dependency_tracking" != xno; then
2785 am_depcomp="$ac_aux_dir/depcomp"
2786 AMDEPBACKSLASH='\'
2787 fi
2788 if test "x$enable_dependency_tracking" != xno; then
2789 AMDEP_TRUE=
2790 AMDEP_FALSE='#'
2791 else
2792 AMDEP_TRUE='#'
2793 AMDEP_FALSE=
2794 fi
2795
2796
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if ${ac_cv_prog_CC+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824 done
2825 done
2826 IFS=$as_save_IFS
2827
2828 fi
2829 fi
2830 CC=$ac_cv_prog_CC
2831 if test -n "$CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2833 $as_echo "$CC" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2837 fi
2838
2839
2840 fi
2841 if test -z "$ac_cv_prog_CC"; then
2842 ac_ct_CC=$CC
2843 # Extract the first word of "gcc", so it can be a program name with args.
2844 set dummy gcc; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_CC="gcc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2871 if test -n "$ac_ct_CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2873 $as_echo "$ac_ct_CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879 if test "x$ac_ct_CC" = x; then
2880 CC=""
2881 else
2882 case $cross_compiling:$ac_tool_warned in
2883 yes:)
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888 CC=$ac_ct_CC
2889 fi
2890 else
2891 CC="$ac_cv_prog_CC"
2892 fi
2893
2894 if test -z "$CC"; then
2895 if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}cc; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_CC+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_CC="${ac_tool_prefix}cc"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 $as_echo "$CC" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 fi
2931
2932
2933 fi
2934 fi
2935 if test -z "$CC"; then
2936 # Extract the first word of "cc", so it can be a program name with args.
2937 set dummy cc; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 ac_prog_rejected=no
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2955 ac_prog_rejected=yes
2956 continue
2957 fi
2958 ac_cv_prog_CC="cc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 if test $ac_prog_rejected = yes; then
2967 # We found a bogon in the path, so make sure we never use it.
2968 set dummy $ac_cv_prog_CC
2969 shift
2970 if test $# != 0; then
2971 # We chose a different compiler from the bogus one.
2972 # However, it has the same basename, so the bogon will be chosen
2973 # first if we set CC to just the basename; use the full file name.
2974 shift
2975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2976 fi
2977 fi
2978 fi
2979 fi
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 fi
2991 if test -z "$CC"; then
2992 if test -n "$ac_tool_prefix"; then
2993 for ac_prog in cl.exe
2994 do
2995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 test -n "$CC" && break
3033 done
3034 fi
3035 if test -z "$CC"; then
3036 ac_ct_CC=$CC
3037 for ac_prog in cl.exe
3038 do
3039 # Extract the first word of "$ac_prog", so it can be a program name with args.
3040 set dummy $ac_prog; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$ac_ct_CC"; then
3047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_ac_ct_CC="$ac_prog"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067 if test -n "$ac_ct_CC"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3069 $as_echo "$ac_ct_CC" >&6; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076 test -n "$ac_ct_CC" && break
3077 done
3078
3079 if test "x$ac_ct_CC" = x; then
3080 CC=""
3081 else
3082 case $cross_compiling:$ac_tool_warned in
3083 yes:)
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned=yes ;;
3087 esac
3088 CC=$ac_ct_CC
3089 fi
3090 fi
3091
3092 fi
3093
3094
3095 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error $? "no acceptable C compiler found in \$PATH
3098 See \`config.log' for more details" "$LINENO" 5; }
3099
3100 # Provide some information about the compiler.
3101 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3102 set X $ac_compile
3103 ac_compiler=$2
3104 for ac_option in --version -v -V -qversion; do
3105 { { ac_try="$ac_compiler $ac_option >&5"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3113 ac_status=$?
3114 if test -s conftest.err; then
3115 sed '10a\
3116 ... rest of stderr output deleted ...
3117 10q' conftest.err >conftest.er1
3118 cat conftest.er1 >&5
3119 fi
3120 rm -f conftest.er1 conftest.err
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }
3123 done
3124
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 ac_clean_files_save=$ac_clean_files
3137 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3138 # Try to create an executable without -o first, disregard a.out.
3139 # It will help us diagnose broken compilers, and finding out an intuition
3140 # of exeext.
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3142 $as_echo_n "checking whether the C compiler works... " >&6; }
3143 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3144
3145 # The possible output files:
3146 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3147
3148 ac_rmfiles=
3149 for ac_file in $ac_files
3150 do
3151 case $ac_file in
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3153 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3154 esac
3155 done
3156 rm -f $ac_rmfiles
3157
3158 if { { ac_try="$ac_link_default"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link_default") 2>&5
3166 ac_status=$?
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3170 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3171 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3172 # so that the user can short-circuit this test for compilers unknown to
3173 # Autoconf.
3174 for ac_file in $ac_files ''
3175 do
3176 test -f "$ac_file" || continue
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3179 ;;
3180 [ab].out )
3181 # We found the default executable, but exeext='' is most
3182 # certainly right.
3183 break;;
3184 *.* )
3185 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3186 then :; else
3187 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3188 fi
3189 # We set ac_cv_exeext here because the later test for it is not
3190 # safe: cross compilers may not add the suffix if given an `-o'
3191 # argument, so we may need to know it at that point already.
3192 # Even if this section looks crufty: it has the advantage of
3193 # actually working.
3194 break;;
3195 * )
3196 break;;
3197 esac
3198 done
3199 test "$ac_cv_exeext" = no && ac_cv_exeext=
3200
3201 else
3202 ac_file=''
3203 fi
3204 if test -z "$ac_file"; then :
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 $as_echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 as_fn_error 77 "C compiler cannot create executables
3213 See \`config.log' for more details" "$LINENO" 5; }
3214 else
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3216 $as_echo "yes" >&6; }
3217 fi
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3219 $as_echo_n "checking for C compiler default output file name... " >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3221 $as_echo "$ac_file" >&6; }
3222 ac_exeext=$ac_cv_exeext
3223
3224 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3225 ac_clean_files=$ac_clean_files_save
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3227 $as_echo_n "checking for suffix of executables... " >&6; }
3228 if { { ac_try="$ac_link"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_link") 2>&5
3236 ac_status=$?
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }; then :
3239 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3240 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3241 # work properly (i.e., refer to `conftest.exe'), while it won't with
3242 # `rm'.
3243 for ac_file in conftest.exe conftest conftest.*; do
3244 test -f "$ac_file" || continue
3245 case $ac_file in
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3247 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248 break;;
3249 * ) break;;
3250 esac
3251 done
3252 else
3253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3256 See \`config.log' for more details" "$LINENO" 5; }
3257 fi
3258 rm -f conftest conftest$ac_cv_exeext
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3260 $as_echo "$ac_cv_exeext" >&6; }
3261
3262 rm -f conftest.$ac_ext
3263 EXEEXT=$ac_cv_exeext
3264 ac_exeext=$EXEEXT
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3267 #include <stdio.h>
3268 int
3269 main ()
3270 {
3271 FILE *f = fopen ("conftest.out", "w");
3272 return ferror (f) || fclose (f) != 0;
3273
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 ac_clean_files="$ac_clean_files conftest.out"
3279 # Check that the compiler produces executables we can run. If not, either
3280 # the compiler is broken, or we cross compile.
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3282 $as_echo_n "checking whether we are cross compiling... " >&6; }
3283 if test "$cross_compiling" != yes; then
3284 { { ac_try="$ac_link"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_link") 2>&5
3292 ac_status=$?
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }
3295 if { ac_try='./conftest$ac_cv_exeext'
3296 { { case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_try") 2>&5
3303 ac_status=$?
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; }; then
3306 cross_compiling=no
3307 else
3308 if test "$cross_compiling" = maybe; then
3309 cross_compiling=yes
3310 else
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "cannot run C compiled programs.
3314 If you meant to cross compile, use \`--host'.
3315 See \`config.log' for more details" "$LINENO" 5; }
3316 fi
3317 fi
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3320 $as_echo "$cross_compiling" >&6; }
3321
3322 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3323 ac_clean_files=$ac_clean_files_save
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3325 $as_echo_n "checking for suffix of object files... " >&6; }
3326 if ${ac_cv_objext+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.o conftest.obj
3341 if { { ac_try="$ac_compile"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_compile") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; then :
3352 for ac_file in conftest.o conftest.obj conftest.*; do
3353 test -f "$ac_file" || continue;
3354 case $ac_file in
3355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3356 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3357 break;;
3358 esac
3359 done
3360 else
3361 $as_echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error $? "cannot compute suffix of object files: cannot compile
3367 See \`config.log' for more details" "$LINENO" 5; }
3368 fi
3369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3372 $as_echo "$ac_cv_objext" >&6; }
3373 OBJEXT=$ac_cv_objext
3374 ac_objext=$OBJEXT
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3376 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3377 if ${ac_cv_c_compiler_gnu+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382
3383 int
3384 main ()
3385 {
3386 #ifndef __GNUC__
3387 choke me
3388 #endif
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_compiler_gnu=yes
3396 else
3397 ac_compiler_gnu=no
3398 fi
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3401
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3404 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3405 if test $ac_compiler_gnu = yes; then
3406 GCC=yes
3407 else
3408 GCC=
3409 fi
3410 ac_test_CFLAGS=${CFLAGS+set}
3411 ac_save_CFLAGS=$CFLAGS
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3413 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3414 if ${ac_cv_prog_cc_g+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 ac_save_c_werror_flag=$ac_c_werror_flag
3418 ac_c_werror_flag=yes
3419 ac_cv_prog_cc_g=no
3420 CFLAGS="-g"
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3423
3424 int
3425 main ()
3426 {
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3433 ac_cv_prog_cc_g=yes
3434 else
3435 CFLAGS=""
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438
3439 int
3440 main ()
3441 {
3442
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448
3449 else
3450 ac_c_werror_flag=$ac_save_c_werror_flag
3451 CFLAGS="-g"
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 if ac_fn_c_try_compile "$LINENO"; then :
3464 ac_cv_prog_cc_g=yes
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 fi
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 fi
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_c_werror_flag=$ac_save_c_werror_flag
3472 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3474 $as_echo "$ac_cv_prog_cc_g" >&6; }
3475 if test "$ac_test_CFLAGS" = set; then
3476 CFLAGS=$ac_save_CFLAGS
3477 elif test $ac_cv_prog_cc_g = yes; then
3478 if test "$GCC" = yes; then
3479 CFLAGS="-g -O2"
3480 else
3481 CFLAGS="-g"
3482 fi
3483 else
3484 if test "$GCC" = yes; then
3485 CFLAGS="-O2"
3486 else
3487 CFLAGS=
3488 fi
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3491 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3492 if ${ac_cv_prog_cc_c89+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 ac_cv_prog_cc_c89=no
3496 ac_save_CC=$CC
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499 #include <stdarg.h>
3500 #include <stdio.h>
3501 #include <sys/types.h>
3502 #include <sys/stat.h>
3503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3504 struct buf { int x; };
3505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506 static char *e (p, i)
3507 char **p;
3508 int i;
3509 {
3510 return p[i];
3511 }
3512 static char *f (char * (*g) (char **, int), char **p, ...)
3513 {
3514 char *s;
3515 va_list v;
3516 va_start (v,p);
3517 s = g (p, va_arg (v,int));
3518 va_end (v);
3519 return s;
3520 }
3521
3522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3523 function prototypes and stuff, but not '\xHH' hex character constants.
3524 These don't provoke an error unfortunately, instead are silently treated
3525 as 'x'. The following induces an error, until -std is added to get
3526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3527 array size at least. It's necessary to write '\x00'==0 to get something
3528 that's true only with -std. */
3529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3530
3531 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3532 inside strings and character constants. */
3533 #define FOO(x) 'x'
3534 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3535
3536 int test (int i, double x);
3537 struct s1 {int (*f) (int a);};
3538 struct s2 {int (*f) (double a);};
3539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540 int argc;
3541 char **argv;
3542 int
3543 main ()
3544 {
3545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3551 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3552 do
3553 CC="$ac_save_CC $ac_arg"
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_c89=$ac_arg
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext
3558 test "x$ac_cv_prog_cc_c89" != "xno" && break
3559 done
3560 rm -f conftest.$ac_ext
3561 CC=$ac_save_CC
3562
3563 fi
3564 # AC_CACHE_VAL
3565 case "x$ac_cv_prog_cc_c89" in
3566 x)
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3568 $as_echo "none needed" >&6; } ;;
3569 xno)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3571 $as_echo "unsupported" >&6; } ;;
3572 *)
3573 CC="$CC $ac_cv_prog_cc_c89"
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3575 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3576 esac
3577 if test "x$ac_cv_prog_cc_c89" != xno; then :
3578
3579 fi
3580
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587 depcc="$CC" am_compiler_list=
3588
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3590 $as_echo_n "checking dependency style of $depcc... " >&6; }
3591 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3595 # We make a subdir and do the tests there. Otherwise we can end up
3596 # making bogus files that we don't know about and never remove. For
3597 # instance it was reported that on HP-UX the gcc test will end up
3598 # making a dummy file named `D' -- because `-MD' means `put the output
3599 # in D'.
3600 mkdir conftest.dir
3601 # Copy depcomp to subdir because otherwise we won't find it if we're
3602 # using a relative directory.
3603 cp "$am_depcomp" conftest.dir
3604 cd conftest.dir
3605 # We will build objects and dependencies in a subdirectory because
3606 # it helps to detect inapplicable dependency modes. For instance
3607 # both Tru64's cc and ICC support -MD to output dependencies as a
3608 # side effect of compilation, but ICC will put the dependencies in
3609 # the current directory while Tru64 will put them in the object
3610 # directory.
3611 mkdir sub
3612
3613 am_cv_CC_dependencies_compiler_type=none
3614 if test "$am_compiler_list" = ""; then
3615 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3616 fi
3617 am__universal=false
3618 case " $depcc " in #(
3619 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3620 esac
3621
3622 for depmode in $am_compiler_list; do
3623 # Setup a source with many dependencies, because some compilers
3624 # like to wrap large dependency lists on column 80 (with \), and
3625 # we should not choose a depcomp mode which is confused by this.
3626 #
3627 # We need to recreate these files for each test, as the compiler may
3628 # overwrite some of them when testing with obscure command lines.
3629 # This happens at least with the AIX C compiler.
3630 : > sub/conftest.c
3631 for i in 1 2 3 4 5 6; do
3632 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3633 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3634 # Solaris 8's {/usr,}/bin/sh.
3635 touch sub/conftst$i.h
3636 done
3637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3638
3639 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3640 # mode. It turns out that the SunPro C++ compiler does not properly
3641 # handle `-M -o', and we need to detect this. Also, some Intel
3642 # versions had trouble with output in subdirs
3643 am__obj=sub/conftest.${OBJEXT-o}
3644 am__minus_obj="-o $am__obj"
3645 case $depmode in
3646 gcc)
3647 # This depmode causes a compiler race in universal mode.
3648 test "$am__universal" = false || continue
3649 ;;
3650 nosideeffect)
3651 # after this tag, mechanisms are not by side-effect, so they'll
3652 # only be used when explicitly requested
3653 if test "x$enable_dependency_tracking" = xyes; then
3654 continue
3655 else
3656 break
3657 fi
3658 ;;
3659 msvisualcpp | msvcmsys)
3660 # This compiler won't grok `-c -o', but also, the minuso test has
3661 # not run yet. These depmodes are late enough in the game, and
3662 # so weak that their functioning should not be impacted.
3663 am__obj=conftest.${OBJEXT-o}
3664 am__minus_obj=
3665 ;;
3666 none) break ;;
3667 esac
3668 if depmode=$depmode \
3669 source=sub/conftest.c object=$am__obj \
3670 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3671 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3672 >/dev/null 2>conftest.err &&
3673 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3675 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3677 # icc doesn't choke on unknown options, it will just issue warnings
3678 # or remarks (even with -Werror). So we grep stderr for any message
3679 # that says an option was ignored or not supported.
3680 # When given -MP, icc 7.0 and 7.1 complain thusly:
3681 # icc: Command line warning: ignoring option '-M'; no argument required
3682 # The diagnosis changed in icc 8.0:
3683 # icc: Command line remark: option '-MP' not supported
3684 if (grep 'ignoring option' conftest.err ||
3685 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3686 am_cv_CC_dependencies_compiler_type=$depmode
3687 break
3688 fi
3689 fi
3690 done
3691
3692 cd ..
3693 rm -rf conftest.dir
3694 else
3695 am_cv_CC_dependencies_compiler_type=none
3696 fi
3697
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3700 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3701 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3702
3703 if
3704 test "x$enable_dependency_tracking" != xno \
3705 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3706 am__fastdepCC_TRUE=
3707 am__fastdepCC_FALSE='#'
3708 else
3709 am__fastdepCC_TRUE='#'
3710 am__fastdepCC_FALSE=
3711 fi
3712
3713
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3715 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3716 if ${ac_cv_prog_cc_c99+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 ac_cv_prog_cc_c99=no
3720 ac_save_CC=$CC
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723 #include <stdarg.h>
3724 #include <stdbool.h>
3725 #include <stdlib.h>
3726 #include <wchar.h>
3727 #include <stdio.h>
3728
3729 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3730 #define debug(...) fprintf (stderr, __VA_ARGS__)
3731 #define showlist(...) puts (#__VA_ARGS__)
3732 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3733 static void
3734 test_varargs_macros (void)
3735 {
3736 int x = 1234;
3737 int y = 5678;
3738 debug ("Flag");
3739 debug ("X = %d\n", x);
3740 showlist (The first, second, and third items.);
3741 report (x>y, "x is %d but y is %d", x, y);
3742 }
3743
3744 // Check long long types.
3745 #define BIG64 18446744073709551615ull
3746 #define BIG32 4294967295ul
3747 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3748 #if !BIG_OK
3749 your preprocessor is broken;
3750 #endif
3751 #if BIG_OK
3752 #else
3753 your preprocessor is broken;
3754 #endif
3755 static long long int bignum = -9223372036854775807LL;
3756 static unsigned long long int ubignum = BIG64;
3757
3758 struct incomplete_array
3759 {
3760 int datasize;
3761 double data[];
3762 };
3763
3764 struct named_init {
3765 int number;
3766 const wchar_t *name;
3767 double average;
3768 };
3769
3770 typedef const char *ccp;
3771
3772 static inline int
3773 test_restrict (ccp restrict text)
3774 {
3775 // See if C++-style comments work.
3776 // Iterate through items via the restricted pointer.
3777 // Also check for declarations in for loops.
3778 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3779 continue;
3780 return 0;
3781 }
3782
3783 // Check varargs and va_copy.
3784 static void
3785 test_varargs (const char *format, ...)
3786 {
3787 va_list args;
3788 va_start (args, format);
3789 va_list args_copy;
3790 va_copy (args_copy, args);
3791
3792 const char *str;
3793 int number;
3794 float fnumber;
3795
3796 while (*format)
3797 {
3798 switch (*format++)
3799 {
3800 case 's': // string
3801 str = va_arg (args_copy, const char *);
3802 break;
3803 case 'd': // int
3804 number = va_arg (args_copy, int);
3805 break;
3806 case 'f': // float
3807 fnumber = va_arg (args_copy, double);
3808 break;
3809 default:
3810 break;
3811 }
3812 }
3813 va_end (args_copy);
3814 va_end (args);
3815 }
3816
3817 int
3818 main ()
3819 {
3820
3821 // Check bool.
3822 _Bool success = false;
3823
3824 // Check restrict.
3825 if (test_restrict ("String literal") == 0)
3826 success = true;
3827 char *restrict newvar = "Another string";
3828
3829 // Check varargs.
3830 test_varargs ("s, d' f .", "string", 65, 34.234);
3831 test_varargs_macros ();
3832
3833 // Check flexible array members.
3834 struct incomplete_array *ia =
3835 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3836 ia->datasize = 10;
3837 for (int i = 0; i < ia->datasize; ++i)
3838 ia->data[i] = i * 1.234;
3839
3840 // Check named initializers.
3841 struct named_init ni = {
3842 .number = 34,
3843 .name = L"Test wide string",
3844 .average = 543.34343,
3845 };
3846
3847 ni.number = 58;
3848
3849 int dynamic_array[ni.number];
3850 dynamic_array[ni.number - 1] = 543;
3851
3852 // work around unused variable warnings
3853 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3854 || dynamic_array[ni.number - 1] != 543);
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3861 do
3862 CC="$ac_save_CC $ac_arg"
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_prog_cc_c99=$ac_arg
3865 fi
3866 rm -f core conftest.err conftest.$ac_objext
3867 test "x$ac_cv_prog_cc_c99" != "xno" && break
3868 done
3869 rm -f conftest.$ac_ext
3870 CC=$ac_save_CC
3871
3872 fi
3873 # AC_CACHE_VAL
3874 case "x$ac_cv_prog_cc_c99" in
3875 x)
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3877 $as_echo "none needed" >&6; } ;;
3878 xno)
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3880 $as_echo "unsupported" >&6; } ;;
3881 *)
3882 CC="$CC $ac_cv_prog_cc_c99"
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3884 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3885 esac
3886 if test "x$ac_cv_prog_cc_c99" != xno; then :
3887
3888 fi
3889
3890
3891
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3898 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3899 # On Suns, sometimes $CPP names a directory.
3900 if test -n "$CPP" && test -d "$CPP"; then
3901 CPP=
3902 fi
3903 if test -z "$CPP"; then
3904 if ${ac_cv_prog_CPP+:} false; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 # Double quotes because CPP needs to be expanded
3908 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3909 do
3910 ac_preproc_ok=false
3911 for ac_c_preproc_warn_flag in '' yes
3912 do
3913 # Use a header file that comes with gcc, so configuring glibc
3914 # with a fresh cross-compiler works.
3915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3916 # <limits.h> exists even on freestanding compilers.
3917 # On the NeXT, cc -E runs the code through the compiler's parser,
3918 # not just through cpp. "Syntax error" is here to catch this case.
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #ifdef __STDC__
3922 # include <limits.h>
3923 #else
3924 # include <assert.h>
3925 #endif
3926 Syntax error
3927 _ACEOF
3928 if ac_fn_c_try_cpp "$LINENO"; then :
3929
3930 else
3931 # Broken: fails on valid input.
3932 continue
3933 fi
3934 rm -f conftest.err conftest.i conftest.$ac_ext
3935
3936 # OK, works on sane cases. Now check whether nonexistent headers
3937 # can be detected and how.
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 #include <ac_nonexistent.h>
3941 _ACEOF
3942 if ac_fn_c_try_cpp "$LINENO"; then :
3943 # Broken: success on invalid input.
3944 continue
3945 else
3946 # Passes both tests.
3947 ac_preproc_ok=:
3948 break
3949 fi
3950 rm -f conftest.err conftest.i conftest.$ac_ext
3951
3952 done
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.i conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then :
3956 break
3957 fi
3958
3959 done
3960 ac_cv_prog_CPP=$CPP
3961
3962 fi
3963 CPP=$ac_cv_prog_CPP
3964 else
3965 ac_cv_prog_CPP=$CPP
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3968 $as_echo "$CPP" >&6; }
3969 ac_preproc_ok=false
3970 for ac_c_preproc_warn_flag in '' yes
3971 do
3972 # Use a header file that comes with gcc, so configuring glibc
3973 # with a fresh cross-compiler works.
3974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3975 # <limits.h> exists even on freestanding compilers.
3976 # On the NeXT, cc -E runs the code through the compiler's parser,
3977 # not just through cpp. "Syntax error" is here to catch this case.
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980 #ifdef __STDC__
3981 # include <limits.h>
3982 #else
3983 # include <assert.h>
3984 #endif
3985 Syntax error
3986 _ACEOF
3987 if ac_fn_c_try_cpp "$LINENO"; then :
3988
3989 else
3990 # Broken: fails on valid input.
3991 continue
3992 fi
3993 rm -f conftest.err conftest.i conftest.$ac_ext
3994
3995 # OK, works on sane cases. Now check whether nonexistent headers
3996 # can be detected and how.
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4000 _ACEOF
4001 if ac_fn_c_try_cpp "$LINENO"; then :
4002 # Broken: success on invalid input.
4003 continue
4004 else
4005 # Passes both tests.
4006 ac_preproc_ok=:
4007 break
4008 fi
4009 rm -f conftest.err conftest.i conftest.$ac_ext
4010
4011 done
4012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4013 rm -f conftest.i conftest.err conftest.$ac_ext
4014 if $ac_preproc_ok; then :
4015
4016 else
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4020 See \`config.log' for more details" "$LINENO" 5; }
4021 fi
4022
4023 ac_ext=c
4024 ac_cpp='$CPP $CPPFLAGS'
4025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028
4029
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4031 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4032 if ${ac_cv_path_GREP+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -z "$GREP"; then
4036 ac_path_GREP_found=false
4037 # Loop through the user's path and test for each of PROGNAME-LIST
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4040 do
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_prog in grep ggrep; do
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4046 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4047 # Check for GNU ac_path_GREP and select it if it is found.
4048 # Check for GNU $ac_path_GREP
4049 case `"$ac_path_GREP" --version 2>&1` in
4050 *GNU*)
4051 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4052 *)
4053 ac_count=0
4054 $as_echo_n 0123456789 >"conftest.in"
4055 while :
4056 do
4057 cat "conftest.in" "conftest.in" >"conftest.tmp"
4058 mv "conftest.tmp" "conftest.in"
4059 cp "conftest.in" "conftest.nl"
4060 $as_echo 'GREP' >> "conftest.nl"
4061 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4063 as_fn_arith $ac_count + 1 && ac_count=$as_val
4064 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4065 # Best one so far, save it but keep looking for a better one
4066 ac_cv_path_GREP="$ac_path_GREP"
4067 ac_path_GREP_max=$ac_count
4068 fi
4069 # 10*(2^10) chars as input seems more than enough
4070 test $ac_count -gt 10 && break
4071 done
4072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4073 esac
4074
4075 $ac_path_GREP_found && break 3
4076 done
4077 done
4078 done
4079 IFS=$as_save_IFS
4080 if test -z "$ac_cv_path_GREP"; then
4081 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4082 fi
4083 else
4084 ac_cv_path_GREP=$GREP
4085 fi
4086
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4089 $as_echo "$ac_cv_path_GREP" >&6; }
4090 GREP="$ac_cv_path_GREP"
4091
4092
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4094 $as_echo_n "checking for egrep... " >&6; }
4095 if ${ac_cv_path_EGREP+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4099 then ac_cv_path_EGREP="$GREP -E"
4100 else
4101 if test -z "$EGREP"; then
4102 ac_path_EGREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in egrep; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4112 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4113 # Check for GNU ac_path_EGREP and select it if it is found.
4114 # Check for GNU $ac_path_EGREP
4115 case `"$ac_path_EGREP" --version 2>&1` in
4116 *GNU*)
4117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4118 *)
4119 ac_count=0
4120 $as_echo_n 0123456789 >"conftest.in"
4121 while :
4122 do
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 $as_echo 'EGREP' >> "conftest.nl"
4127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 as_fn_arith $ac_count + 1 && ac_count=$as_val
4130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_EGREP="$ac_path_EGREP"
4133 ac_path_EGREP_max=$ac_count
4134 fi
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4137 done
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 esac
4140
4141 $ac_path_EGREP_found && break 3
4142 done
4143 done
4144 done
4145 IFS=$as_save_IFS
4146 if test -z "$ac_cv_path_EGREP"; then
4147 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148 fi
4149 else
4150 ac_cv_path_EGREP=$EGREP
4151 fi
4152
4153 fi
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4156 $as_echo "$ac_cv_path_EGREP" >&6; }
4157 EGREP="$ac_cv_path_EGREP"
4158
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4161 $as_echo_n "checking for ANSI C header files... " >&6; }
4162 if ${ac_cv_header_stdc+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #include <stdlib.h>
4168 #include <stdarg.h>
4169 #include <string.h>
4170 #include <float.h>
4171
4172 int
4173 main ()
4174 {
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_header_stdc=yes
4182 else
4183 ac_cv_header_stdc=no
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186
4187 if test $ac_cv_header_stdc = yes; then
4188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <string.h>
4192
4193 _ACEOF
4194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195 $EGREP "memchr" >/dev/null 2>&1; then :
4196
4197 else
4198 ac_cv_header_stdc=no
4199 fi
4200 rm -f conftest*
4201
4202 fi
4203
4204 if test $ac_cv_header_stdc = yes; then
4205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <stdlib.h>
4209
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "free" >/dev/null 2>&1; then :
4213
4214 else
4215 ac_cv_header_stdc=no
4216 fi
4217 rm -f conftest*
4218
4219 fi
4220
4221 if test $ac_cv_header_stdc = yes; then
4222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4223 if test "$cross_compiling" = yes; then :
4224 :
4225 else
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <ctype.h>
4229 #include <stdlib.h>
4230 #if ((' ' & 0x0FF) == 0x020)
4231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4233 #else
4234 # define ISLOWER(c) \
4235 (('a' <= (c) && (c) <= 'i') \
4236 || ('j' <= (c) && (c) <= 'r') \
4237 || ('s' <= (c) && (c) <= 'z'))
4238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4239 #endif
4240
4241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4242 int
4243 main ()
4244 {
4245 int i;
4246 for (i = 0; i < 256; i++)
4247 if (XOR (islower (i), ISLOWER (i))
4248 || toupper (i) != TOUPPER (i))
4249 return 2;
4250 return 0;
4251 }
4252 _ACEOF
4253 if ac_fn_c_try_run "$LINENO"; then :
4254
4255 else
4256 ac_cv_header_stdc=no
4257 fi
4258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4259 conftest.$ac_objext conftest.beam conftest.$ac_ext
4260 fi
4261
4262 fi
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4265 $as_echo "$ac_cv_header_stdc" >&6; }
4266 if test $ac_cv_header_stdc = yes; then
4267
4268 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4269
4270 fi
4271
4272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4273 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4274 inttypes.h stdint.h unistd.h
4275 do :
4276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4278 "
4279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4280 cat >>confdefs.h <<_ACEOF
4281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4282 _ACEOF
4283
4284 fi
4285
4286 done
4287
4288
4289
4290
4291 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4292 if test -n "$ac_tool_prefix"; then
4293 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4294 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 case $PKG_CONFIG in
4301 [\\/]* | ?:[\\/]*)
4302 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4303 ;;
4304 *)
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 ;;
4321 esac
4322 fi
4323 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4324 if test -n "$PKG_CONFIG"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4326 $as_echo "$PKG_CONFIG" >&6; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4330 fi
4331
4332
4333 fi
4334 if test -z "$ac_cv_path_PKG_CONFIG"; then
4335 ac_pt_PKG_CONFIG=$PKG_CONFIG
4336 # Extract the first word of "pkg-config", so it can be a program name with args.
4337 set dummy pkg-config; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 case $ac_pt_PKG_CONFIG in
4344 [\\/]* | ?:[\\/]*)
4345 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4346 ;;
4347 *)
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359 done
4360 done
4361 IFS=$as_save_IFS
4362
4363 ;;
4364 esac
4365 fi
4366 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4367 if test -n "$ac_pt_PKG_CONFIG"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4369 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375 if test "x$ac_pt_PKG_CONFIG" = x; then
4376 PKG_CONFIG=""
4377 else
4378 case $cross_compiling:$ac_tool_warned in
4379 yes:)
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382 ac_tool_warned=yes ;;
4383 esac
4384 PKG_CONFIG=$ac_pt_PKG_CONFIG
4385 fi
4386 else
4387 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4388 fi
4389
4390 fi
4391 if test -n "$PKG_CONFIG"; then
4392 _pkg_min_version=0.9.0
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4394 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4395 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4397 $as_echo "yes" >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 PKG_CONFIG=""
4402 fi
4403
4404 fi
4405 # Make sure we can run config.sub.
4406 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4407 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4408
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4410 $as_echo_n "checking build system type... " >&6; }
4411 if ${ac_cv_build+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_build_alias=$build_alias
4415 test "x$ac_build_alias" = x &&
4416 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4417 test "x$ac_build_alias" = x &&
4418 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4419 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4421
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4424 $as_echo "$ac_cv_build" >&6; }
4425 case $ac_cv_build in
4426 *-*-*) ;;
4427 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4428 esac
4429 build=$ac_cv_build
4430 ac_save_IFS=$IFS; IFS='-'
4431 set x $ac_cv_build
4432 shift
4433 build_cpu=$1
4434 build_vendor=$2
4435 shift; shift
4436 # Remember, the first character of IFS is used to create $*,
4437 # except with old shells:
4438 build_os=$*
4439 IFS=$ac_save_IFS
4440 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4441
4442
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4444 $as_echo_n "checking host system type... " >&6; }
4445 if ${ac_cv_host+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test "x$host_alias" = x; then
4449 ac_cv_host=$ac_cv_build
4450 else
4451 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4453 fi
4454
4455 fi
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4457 $as_echo "$ac_cv_host" >&6; }
4458 case $ac_cv_host in
4459 *-*-*) ;;
4460 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4461 esac
4462 host=$ac_cv_host
4463 ac_save_IFS=$IFS; IFS='-'
4464 set x $ac_cv_host
4465 shift
4466 host_cpu=$1
4467 host_vendor=$2
4468 shift; shift
4469 # Remember, the first character of IFS is used to create $*,
4470 # except with old shells:
4471 host_os=$*
4472 IFS=$ac_save_IFS
4473 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4477 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4478 if ${ac_cv_path_SED+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4482 for ac_i in 1 2 3 4 5 6 7; do
4483 ac_script="$ac_script$as_nl$ac_script"
4484 done
4485 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4486 { ac_script=; unset ac_script;}
4487 if test -z "$SED"; then
4488 ac_path_SED_found=false
4489 # Loop through the user's path and test for each of PROGNAME-LIST
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_prog in sed gsed; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4498 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4499 # Check for GNU ac_path_SED and select it if it is found.
4500 # Check for GNU $ac_path_SED
4501 case `"$ac_path_SED" --version 2>&1` in
4502 *GNU*)
4503 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4504 *)
4505 ac_count=0
4506 $as_echo_n 0123456789 >"conftest.in"
4507 while :
4508 do
4509 cat "conftest.in" "conftest.in" >"conftest.tmp"
4510 mv "conftest.tmp" "conftest.in"
4511 cp "conftest.in" "conftest.nl"
4512 $as_echo '' >> "conftest.nl"
4513 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4515 as_fn_arith $ac_count + 1 && ac_count=$as_val
4516 if test $ac_count -gt ${ac_path_SED_max-0}; then
4517 # Best one so far, save it but keep looking for a better one
4518 ac_cv_path_SED="$ac_path_SED"
4519 ac_path_SED_max=$ac_count
4520 fi
4521 # 10*(2^10) chars as input seems more than enough
4522 test $ac_count -gt 10 && break
4523 done
4524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4525 esac
4526
4527 $ac_path_SED_found && break 3
4528 done
4529 done
4530 done
4531 IFS=$as_save_IFS
4532 if test -z "$ac_cv_path_SED"; then
4533 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4534 fi
4535 else
4536 ac_cv_path_SED=$SED
4537 fi
4538
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4541 $as_echo "$ac_cv_path_SED" >&6; }
4542 SED="$ac_cv_path_SED"
4543 rm -f conftest.sed
4544
4545
4546
4547
4548
4549 if test "x$GCC" = xyes ; then
4550 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4551 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4552 -Wbad-function-cast -Wformat=2"
4553 case `$CC -dumpversion` in
4554 3.4.* | 4.*)
4555 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4556 ;;
4557 esac
4558 else
4559 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4560 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4561 SUNCC="yes"
4562 else
4563 SUNCC="no"
4564 fi
4565
4566 if test "x$SUNCC" = "xyes"; then
4567 CWARNFLAGS="-v"
4568 fi
4569 fi
4570
4571
4572
4573 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4574
4575
4576
4577 # Check whether --enable-strict-compilation was given.
4578 if test "${enable_strict_compilation+set}" = set; then :
4579 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4580 else
4581 STRICT_COMPILE=no
4582 fi
4583
4584 if test "x$STRICT_COMPILE" = "xyes"; then
4585 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4586 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4587 SUNCC="yes"
4588 else
4589 SUNCC="no"
4590 fi
4591
4592 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4593 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4594 INTELCC="yes"
4595 else
4596 INTELCC="no"
4597 fi
4598
4599 if test "x$GCC" = xyes ; then
4600 STRICT_CFLAGS="-pedantic -Werror"
4601 elif test "x$SUNCC" = "xyes"; then
4602 STRICT_CFLAGS="-errwarn"
4603 elif test "x$INTELCC" = "xyes"; then
4604 STRICT_CFLAGS="-Werror"
4605 fi
4606 fi
4607 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4608
4609
4610
4611
4612 cat >>confdefs.h <<_ACEOF
4613 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4614 _ACEOF
4615
4616 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4617 if test "x$PVM" = "x"; then
4618 PVM="0"
4619 fi
4620
4621 cat >>confdefs.h <<_ACEOF
4622 #define PACKAGE_VERSION_MINOR $PVM
4623 _ACEOF
4624
4625 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4626 if test "x$PVP" = "x"; then
4627 PVP="0"
4628 fi
4629
4630 cat >>confdefs.h <<_ACEOF
4631 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4632 _ACEOF
4633
4634
4635
4636 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4637 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4638 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4639 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4640
4641
4642
4643
4644 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4645 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4646 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4647 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4648 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4649
4650
4651
4652
4653
4654
4655 if test x$APP_MAN_SUFFIX = x ; then
4656 APP_MAN_SUFFIX=1
4657 fi
4658 if test x$APP_MAN_DIR = x ; then
4659 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4660 fi
4661
4662 if test x$LIB_MAN_SUFFIX = x ; then
4663 LIB_MAN_SUFFIX=3
4664 fi
4665 if test x$LIB_MAN_DIR = x ; then
4666 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4667 fi
4668
4669 if test x$FILE_MAN_SUFFIX = x ; then
4670 case $host_os in
4671 solaris*) FILE_MAN_SUFFIX=4 ;;
4672 *) FILE_MAN_SUFFIX=5 ;;
4673 esac
4674 fi
4675 if test x$FILE_MAN_DIR = x ; then
4676 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4677 fi
4678
4679 if test x$MISC_MAN_SUFFIX = x ; then
4680 case $host_os in
4681 solaris*) MISC_MAN_SUFFIX=5 ;;
4682 *) MISC_MAN_SUFFIX=7 ;;
4683 esac
4684 fi
4685 if test x$MISC_MAN_DIR = x ; then
4686 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4687 fi
4688
4689 if test x$DRIVER_MAN_SUFFIX = x ; then
4690 case $host_os in
4691 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4692 *) DRIVER_MAN_SUFFIX=4 ;;
4693 esac
4694 fi
4695 if test x$DRIVER_MAN_DIR = x ; then
4696 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4697 fi
4698
4699 if test x$ADMIN_MAN_SUFFIX = x ; then
4700 case $host_os in
4701 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4702 *) ADMIN_MAN_SUFFIX=8 ;;
4703 esac
4704 fi
4705 if test x$ADMIN_MAN_DIR = x ; then
4706 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4707 fi
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723 XORG_MAN_PAGE="X Version 11"
4724
4725 MAN_SUBSTS="\
4726 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4727 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4728 -e 's|__xservername__|Xorg|g' \
4729 -e 's|__xconfigfile__|xorg.conf|g' \
4730 -e 's|__projectroot__|\$(prefix)|g' \
4731 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4732 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4733 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4734 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4735 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4736 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4737 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4738
4739
4740
4741 # Check whether --enable-silent-rules was given.
4742 if test "${enable_silent_rules+set}" = set; then :
4743 enableval=$enable_silent_rules;
4744 fi
4745
4746 case $enable_silent_rules in
4747 yes) AM_DEFAULT_VERBOSITY=0;;
4748 no) AM_DEFAULT_VERBOSITY=1;;
4749 *) AM_DEFAULT_VERBOSITY=0;;
4750 esac
4751 AM_BACKSLASH='\'
4752
4753
4754
4755 # Check for progs
4756 ac_ext=c
4757 ac_cpp='$CPP $CPPFLAGS'
4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761 if test -n "$ac_tool_prefix"; then
4762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if ${ac_cv_prog_CC+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$CC"; then
4770 ac_cv_prog_CC="$CC" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787 fi
4788 fi
4789 CC=$ac_cv_prog_CC
4790 if test -n "$CC"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4792 $as_echo "$CC" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798
4799 fi
4800 if test -z "$ac_cv_prog_CC"; then
4801 ac_ct_CC=$CC
4802 # Extract the first word of "gcc", so it can be a program name with args.
4803 set dummy gcc; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$ac_ct_CC"; then
4810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_ac_ct_CC="gcc"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4822 fi
4823 done
4824 done
4825 IFS=$as_save_IFS
4826
4827 fi
4828 fi
4829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4830 if test -n "$ac_ct_CC"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4832 $as_echo "$ac_ct_CC" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4836 fi
4837
4838 if test "x$ac_ct_CC" = x; then
4839 CC=""
4840 else
4841 case $cross_compiling:$ac_tool_warned in
4842 yes:)
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4845 ac_tool_warned=yes ;;
4846 esac
4847 CC=$ac_ct_CC
4848 fi
4849 else
4850 CC="$ac_cv_prog_CC"
4851 fi
4852
4853 if test -z "$CC"; then
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}cc; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_prog_CC+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$CC"; then
4863 ac_cv_prog_CC="$CC" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_CC="${ac_tool_prefix}cc"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 CC=$ac_cv_prog_CC
4883 if test -n "$CC"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4885 $as_echo "$CC" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 fi
4890
4891
4892 fi
4893 fi
4894 if test -z "$CC"; then
4895 # Extract the first word of "cc", so it can be a program name with args.
4896 set dummy cc; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_CC+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$CC"; then
4903 ac_cv_prog_CC="$CC" # Let the user override the test.
4904 else
4905 ac_prog_rejected=no
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4914 ac_prog_rejected=yes
4915 continue
4916 fi
4917 ac_cv_prog_CC="cc"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925 if test $ac_prog_rejected = yes; then
4926 # We found a bogon in the path, so make sure we never use it.
4927 set dummy $ac_cv_prog_CC
4928 shift
4929 if test $# != 0; then
4930 # We chose a different compiler from the bogus one.
4931 # However, it has the same basename, so the bogon will be chosen
4932 # first if we set CC to just the basename; use the full file name.
4933 shift
4934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4935 fi
4936 fi
4937 fi
4938 fi
4939 CC=$ac_cv_prog_CC
4940 if test -n "$CC"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4942 $as_echo "$CC" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949 fi
4950 if test -z "$CC"; then
4951 if test -n "$ac_tool_prefix"; then
4952 for ac_prog in cl.exe
4953 do
4954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_CC+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$CC"; then
4962 ac_cv_prog_CC="$CC" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 CC=$ac_cv_prog_CC
4982 if test -n "$CC"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4984 $as_echo "$CC" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990
4991 test -n "$CC" && break
4992 done
4993 fi
4994 if test -z "$CC"; then
4995 ac_ct_CC=$CC
4996 for ac_prog in cl.exe
4997 do
4998 # Extract the first word of "$ac_prog", so it can be a program name with args.
4999 set dummy $ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$ac_ct_CC"; then
5006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_ac_ct_CC="$ac_prog"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5026 if test -n "$ac_ct_CC"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5028 $as_echo "$ac_ct_CC" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 fi
5033
5034
5035 test -n "$ac_ct_CC" && break
5036 done
5037
5038 if test "x$ac_ct_CC" = x; then
5039 CC=""
5040 else
5041 case $cross_compiling:$ac_tool_warned in
5042 yes:)
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned=yes ;;
5046 esac
5047 CC=$ac_ct_CC
5048 fi
5049 fi
5050
5051 fi
5052
5053
5054 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5056 as_fn_error $? "no acceptable C compiler found in \$PATH
5057 See \`config.log' for more details" "$LINENO" 5; }
5058
5059 # Provide some information about the compiler.
5060 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5061 set X $ac_compile
5062 ac_compiler=$2
5063 for ac_option in --version -v -V -qversion; do
5064 { { ac_try="$ac_compiler $ac_option >&5"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5070 $as_echo "$ac_try_echo"; } >&5
5071 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5072 ac_status=$?
5073 if test -s conftest.err; then
5074 sed '10a\
5075 ... rest of stderr output deleted ...
5076 10q' conftest.err >conftest.er1
5077 cat conftest.er1 >&5
5078 fi
5079 rm -f conftest.er1 conftest.err
5080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5081 test $ac_status = 0; }
5082 done
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5085 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5086 if ${ac_cv_c_compiler_gnu+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091
5092 int
5093 main ()
5094 {
5095 #ifndef __GNUC__
5096 choke me
5097 #endif
5098
5099 ;
5100 return 0;
5101 }
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 ac_compiler_gnu=yes
5105 else
5106 ac_compiler_gnu=no
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5110
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5113 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5114 if test $ac_compiler_gnu = yes; then
5115 GCC=yes
5116 else
5117 GCC=
5118 fi
5119 ac_test_CFLAGS=${CFLAGS+set}
5120 ac_save_CFLAGS=$CFLAGS
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5122 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5123 if ${ac_cv_prog_cc_g+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 ac_save_c_werror_flag=$ac_c_werror_flag
5127 ac_c_werror_flag=yes
5128 ac_cv_prog_cc_g=no
5129 CFLAGS="-g"
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132
5133 int
5134 main ()
5135 {
5136
5137 ;
5138 return 0;
5139 }
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142 ac_cv_prog_cc_g=yes
5143 else
5144 CFLAGS=""
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147
5148 int
5149 main ()
5150 {
5151
5152 ;
5153 return 0;
5154 }
5155 _ACEOF
5156 if ac_fn_c_try_compile "$LINENO"; then :
5157
5158 else
5159 ac_c_werror_flag=$ac_save_c_werror_flag
5160 CFLAGS="-g"
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163
5164 int
5165 main ()
5166 {
5167
5168 ;
5169 return 0;
5170 }
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173 ac_cv_prog_cc_g=yes
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 fi
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 ac_c_werror_flag=$ac_save_c_werror_flag
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5183 $as_echo "$ac_cv_prog_cc_g" >&6; }
5184 if test "$ac_test_CFLAGS" = set; then
5185 CFLAGS=$ac_save_CFLAGS
5186 elif test $ac_cv_prog_cc_g = yes; then
5187 if test "$GCC" = yes; then
5188 CFLAGS="-g -O2"
5189 else
5190 CFLAGS="-g"
5191 fi
5192 else
5193 if test "$GCC" = yes; then
5194 CFLAGS="-O2"
5195 else
5196 CFLAGS=
5197 fi
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5201 if ${ac_cv_prog_cc_c89+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 ac_cv_prog_cc_c89=no
5205 ac_save_CC=$CC
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 #include <stdarg.h>
5209 #include <stdio.h>
5210 #include <sys/types.h>
5211 #include <sys/stat.h>
5212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5213 struct buf { int x; };
5214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5215 static char *e (p, i)
5216 char **p;
5217 int i;
5218 {
5219 return p[i];
5220 }
5221 static char *f (char * (*g) (char **, int), char **p, ...)
5222 {
5223 char *s;
5224 va_list v;
5225 va_start (v,p);
5226 s = g (p, va_arg (v,int));
5227 va_end (v);
5228 return s;
5229 }
5230
5231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5232 function prototypes and stuff, but not '\xHH' hex character constants.
5233 These don't provoke an error unfortunately, instead are silently treated
5234 as 'x'. The following induces an error, until -std is added to get
5235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5236 array size at least. It's necessary to write '\x00'==0 to get something
5237 that's true only with -std. */
5238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5239
5240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5241 inside strings and character constants. */
5242 #define FOO(x) 'x'
5243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5244
5245 int test (int i, double x);
5246 struct s1 {int (*f) (int a);};
5247 struct s2 {int (*f) (double a);};
5248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5249 int argc;
5250 char **argv;
5251 int
5252 main ()
5253 {
5254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5255 ;
5256 return 0;
5257 }
5258 _ACEOF
5259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5261 do
5262 CC="$ac_save_CC $ac_arg"
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264 ac_cv_prog_cc_c89=$ac_arg
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext
5267 test "x$ac_cv_prog_cc_c89" != "xno" && break
5268 done
5269 rm -f conftest.$ac_ext
5270 CC=$ac_save_CC
5271
5272 fi
5273 # AC_CACHE_VAL
5274 case "x$ac_cv_prog_cc_c89" in
5275 x)
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5277 $as_echo "none needed" >&6; } ;;
5278 xno)
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5280 $as_echo "unsupported" >&6; } ;;
5281 *)
5282 CC="$CC $ac_cv_prog_cc_c89"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5284 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5285 esac
5286 if test "x$ac_cv_prog_cc_c89" != xno; then :
5287
5288 fi
5289
5290 ac_ext=c
5291 ac_cpp='$CPP $CPPFLAGS'
5292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295
5296 depcc="$CC" am_compiler_list=
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5299 $as_echo_n "checking dependency style of $depcc... " >&6; }
5300 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5304 # We make a subdir and do the tests there. Otherwise we can end up
5305 # making bogus files that we don't know about and never remove. For
5306 # instance it was reported that on HP-UX the gcc test will end up
5307 # making a dummy file named `D' -- because `-MD' means `put the output
5308 # in D'.
5309 mkdir conftest.dir
5310 # Copy depcomp to subdir because otherwise we won't find it if we're
5311 # using a relative directory.
5312 cp "$am_depcomp" conftest.dir
5313 cd conftest.dir
5314 # We will build objects and dependencies in a subdirectory because
5315 # it helps to detect inapplicable dependency modes. For instance
5316 # both Tru64's cc and ICC support -MD to output dependencies as a
5317 # side effect of compilation, but ICC will put the dependencies in
5318 # the current directory while Tru64 will put them in the object
5319 # directory.
5320 mkdir sub
5321
5322 am_cv_CC_dependencies_compiler_type=none
5323 if test "$am_compiler_list" = ""; then
5324 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5325 fi
5326 am__universal=false
5327 case " $depcc " in #(
5328 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5329 esac
5330
5331 for depmode in $am_compiler_list; do
5332 # Setup a source with many dependencies, because some compilers
5333 # like to wrap large dependency lists on column 80 (with \), and
5334 # we should not choose a depcomp mode which is confused by this.
5335 #
5336 # We need to recreate these files for each test, as the compiler may
5337 # overwrite some of them when testing with obscure command lines.
5338 # This happens at least with the AIX C compiler.
5339 : > sub/conftest.c
5340 for i in 1 2 3 4 5 6; do
5341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5342 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5343 # Solaris 8's {/usr,}/bin/sh.
5344 touch sub/conftst$i.h
5345 done
5346 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5347
5348 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5349 # mode. It turns out that the SunPro C++ compiler does not properly
5350 # handle `-M -o', and we need to detect this. Also, some Intel
5351 # versions had trouble with output in subdirs
5352 am__obj=sub/conftest.${OBJEXT-o}
5353 am__minus_obj="-o $am__obj"
5354 case $depmode in
5355 gcc)
5356 # This depmode causes a compiler race in universal mode.
5357 test "$am__universal" = false || continue
5358 ;;
5359 nosideeffect)
5360 # after this tag, mechanisms are not by side-effect, so they'll
5361 # only be used when explicitly requested
5362 if test "x$enable_dependency_tracking" = xyes; then
5363 continue
5364 else
5365 break
5366 fi
5367 ;;
5368 msvisualcpp | msvcmsys)
5369 # This compiler won't grok `-c -o', but also, the minuso test has
5370 # not run yet. These depmodes are late enough in the game, and
5371 # so weak that their functioning should not be impacted.
5372 am__obj=conftest.${OBJEXT-o}
5373 am__minus_obj=
5374 ;;
5375 none) break ;;
5376 esac
5377 if depmode=$depmode \
5378 source=sub/conftest.c object=$am__obj \
5379 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5380 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5381 >/dev/null 2>conftest.err &&
5382 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5383 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5384 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5385 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5386 # icc doesn't choke on unknown options, it will just issue warnings
5387 # or remarks (even with -Werror). So we grep stderr for any message
5388 # that says an option was ignored or not supported.
5389 # When given -MP, icc 7.0 and 7.1 complain thusly:
5390 # icc: Command line warning: ignoring option '-M'; no argument required
5391 # The diagnosis changed in icc 8.0:
5392 # icc: Command line remark: option '-MP' not supported
5393 if (grep 'ignoring option' conftest.err ||
5394 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5395 am_cv_CC_dependencies_compiler_type=$depmode
5396 break
5397 fi
5398 fi
5399 done
5400
5401 cd ..
5402 rm -rf conftest.dir
5403 else
5404 am_cv_CC_dependencies_compiler_type=none
5405 fi
5406
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5409 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5410 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5411
5412 if
5413 test "x$enable_dependency_tracking" != xno \
5414 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5415 am__fastdepCC_TRUE=
5416 am__fastdepCC_FALSE='#'
5417 else
5418 am__fastdepCC_TRUE='#'
5419 am__fastdepCC_FALSE=
5420 fi
5421
5422
5423 case `pwd` in
5424 *\ * | *\ *)
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5426 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5427 esac
5428
5429
5430
5431 macro_version='2.2.10'
5432 macro_revision='1.3175'
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446 ltmain="$ac_aux_dir/ltmain.sh"
5447
5448 # Backslashify metacharacters that are still active within
5449 # double-quoted strings.
5450 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5451
5452 # Same as above, but do not quote variable references.
5453 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5454
5455 # Sed substitution to delay expansion of an escaped shell variable in a
5456 # double_quote_subst'ed string.
5457 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5458
5459 # Sed substitution to delay expansion of an escaped single quote.
5460 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5461
5462 # Sed substitution to avoid accidental globbing in evaled expressions
5463 no_glob_subst='s/\*/\\\*/g'
5464
5465 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5466 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5467 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5468
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5470 $as_echo_n "checking how to print strings... " >&6; }
5471 # Test print first, because it will be a builtin if present.
5472 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5473 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5474 ECHO='print -r --'
5475 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5476 ECHO='printf %s\n'
5477 else
5478 # Use this function as a fallback that always works.
5479 func_fallback_echo ()
5480 {
5481 eval 'cat <<_LTECHO_EOF
5482 $1
5483 _LTECHO_EOF'
5484 }
5485 ECHO='func_fallback_echo'
5486 fi
5487
5488 # func_echo_all arg...
5489 # Invoke $ECHO with all args, space-separated.
5490 func_echo_all ()
5491 {
5492 $ECHO ""
5493 }
5494
5495 case "$ECHO" in
5496 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5497 $as_echo "printf" >&6; } ;;
5498 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5499 $as_echo "print -r" >&6; } ;;
5500 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5501 $as_echo "cat" >&6; } ;;
5502 esac
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5518 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5519 if ${ac_cv_path_SED+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5523 for ac_i in 1 2 3 4 5 6 7; do
5524 ac_script="$ac_script$as_nl$ac_script"
5525 done
5526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5527 { ac_script=; unset ac_script;}
5528 if test -z "$SED"; then
5529 ac_path_SED_found=false
5530 # Loop through the user's path and test for each of PROGNAME-LIST
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_prog in sed gsed; do
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5539 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5540 # Check for GNU ac_path_SED and select it if it is found.
5541 # Check for GNU $ac_path_SED
5542 case `"$ac_path_SED" --version 2>&1` in
5543 *GNU*)
5544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5545 *)
5546 ac_count=0
5547 $as_echo_n 0123456789 >"conftest.in"
5548 while :
5549 do
5550 cat "conftest.in" "conftest.in" >"conftest.tmp"
5551 mv "conftest.tmp" "conftest.in"
5552 cp "conftest.in" "conftest.nl"
5553 $as_echo '' >> "conftest.nl"
5554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5556 as_fn_arith $ac_count + 1 && ac_count=$as_val
5557 if test $ac_count -gt ${ac_path_SED_max-0}; then
5558 # Best one so far, save it but keep looking for a better one
5559 ac_cv_path_SED="$ac_path_SED"
5560 ac_path_SED_max=$ac_count
5561 fi
5562 # 10*(2^10) chars as input seems more than enough
5563 test $ac_count -gt 10 && break
5564 done
5565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5566 esac
5567
5568 $ac_path_SED_found && break 3
5569 done
5570 done
5571 done
5572 IFS=$as_save_IFS
5573 if test -z "$ac_cv_path_SED"; then
5574 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5575 fi
5576 else
5577 ac_cv_path_SED=$SED
5578 fi
5579
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5582 $as_echo "$ac_cv_path_SED" >&6; }
5583 SED="$ac_cv_path_SED"
5584 rm -f conftest.sed
5585
5586 test -z "$SED" && SED=sed
5587 Xsed="$SED -e 1s/^X//"
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5600 $as_echo_n "checking for fgrep... " >&6; }
5601 if ${ac_cv_path_FGREP+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5605 then ac_cv_path_FGREP="$GREP -F"
5606 else
5607 if test -z "$FGREP"; then
5608 ac_path_FGREP_found=false
5609 # Loop through the user's path and test for each of PROGNAME-LIST
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5612 do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_prog in fgrep; do
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5618 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5619 # Check for GNU ac_path_FGREP and select it if it is found.
5620 # Check for GNU $ac_path_FGREP
5621 case `"$ac_path_FGREP" --version 2>&1` in
5622 *GNU*)
5623 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5624 *)
5625 ac_count=0
5626 $as_echo_n 0123456789 >"conftest.in"
5627 while :
5628 do
5629 cat "conftest.in" "conftest.in" >"conftest.tmp"
5630 mv "conftest.tmp" "conftest.in"
5631 cp "conftest.in" "conftest.nl"
5632 $as_echo 'FGREP' >> "conftest.nl"
5633 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5635 as_fn_arith $ac_count + 1 && ac_count=$as_val
5636 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5637 # Best one so far, save it but keep looking for a better one
5638 ac_cv_path_FGREP="$ac_path_FGREP"
5639 ac_path_FGREP_max=$ac_count
5640 fi
5641 # 10*(2^10) chars as input seems more than enough
5642 test $ac_count -gt 10 && break
5643 done
5644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5645 esac
5646
5647 $ac_path_FGREP_found && break 3
5648 done
5649 done
5650 done
5651 IFS=$as_save_IFS
5652 if test -z "$ac_cv_path_FGREP"; then
5653 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5654 fi
5655 else
5656 ac_cv_path_FGREP=$FGREP
5657 fi
5658
5659 fi
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5662 $as_echo "$ac_cv_path_FGREP" >&6; }
5663 FGREP="$ac_cv_path_FGREP"
5664
5665
5666 test -z "$GREP" && GREP=grep
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686 # Check whether --with-gnu-ld was given.
5687 if test "${with_gnu_ld+set}" = set; then :
5688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5689 else
5690 with_gnu_ld=no
5691 fi
5692
5693 ac_prog=ld
5694 if test "$GCC" = yes; then
5695 # Check if gcc -print-prog-name=ld gives a path.
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5697 $as_echo_n "checking for ld used by $CC... " >&6; }
5698 case $host in
5699 *-*-mingw*)
5700 # gcc leaves a trailing carriage return which upsets mingw
5701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5702 *)
5703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5704 esac
5705 case $ac_prog in
5706 # Accept absolute paths.
5707 [\\/]* | ?:[\\/]*)
5708 re_direlt='/[^/][^/]*/\.\./'
5709 # Canonicalize the pathname of ld
5710 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5711 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5712 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5713 done
5714 test -z "$LD" && LD="$ac_prog"
5715 ;;
5716 "")
5717 # If it fails, then pretend we aren't using GCC.
5718 ac_prog=ld
5719 ;;
5720 *)
5721 # If it is relative, then search for the first ld in PATH.
5722 with_gnu_ld=unknown
5723 ;;
5724 esac
5725 elif test "$with_gnu_ld" = yes; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5727 $as_echo_n "checking for GNU ld... " >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5730 $as_echo_n "checking for non-GNU ld... " >&6; }
5731 fi
5732 if ${lt_cv_path_LD+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -z "$LD"; then
5736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5737 for ac_dir in $PATH; do
5738 IFS="$lt_save_ifs"
5739 test -z "$ac_dir" && ac_dir=.
5740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5741 lt_cv_path_LD="$ac_dir/$ac_prog"
5742 # Check to see if the program is GNU ld. I'd rather use --version,
5743 # but apparently some variants of GNU ld only accept -v.
5744 # Break only if it was the GNU/non-GNU ld that we prefer.
5745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5746 *GNU* | *'with BFD'*)
5747 test "$with_gnu_ld" != no && break
5748 ;;
5749 *)
5750 test "$with_gnu_ld" != yes && break
5751 ;;
5752 esac
5753 fi
5754 done
5755 IFS="$lt_save_ifs"
5756 else
5757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5758 fi
5759 fi
5760
5761 LD="$lt_cv_path_LD"
5762 if test -n "$LD"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5764 $as_echo "$LD" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5772 if ${lt_cv_prog_gnu_ld+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5776 case `$LD -v 2>&1 </dev/null` in
5777 *GNU* | *'with BFD'*)
5778 lt_cv_prog_gnu_ld=yes
5779 ;;
5780 *)
5781 lt_cv_prog_gnu_ld=no
5782 ;;
5783 esac
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5787 with_gnu_ld=$lt_cv_prog_gnu_ld
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5798 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5799 if ${lt_cv_path_NM+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if test -n "$NM"; then
5803 # Let the user override the test.
5804 lt_cv_path_NM="$NM"
5805 else
5806 lt_nm_to_check="${ac_tool_prefix}nm"
5807 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5808 lt_nm_to_check="$lt_nm_to_check nm"
5809 fi
5810 for lt_tmp_nm in $lt_nm_to_check; do
5811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5812 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5813 IFS="$lt_save_ifs"
5814 test -z "$ac_dir" && ac_dir=.
5815 tmp_nm="$ac_dir/$lt_tmp_nm"
5816 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5817 # Check to see if the nm accepts a BSD-compat flag.
5818 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5819 # nm: unknown option "B" ignored
5820 # Tru64's nm complains that /dev/null is an invalid object file
5821 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5822 */dev/null* | *'Invalid file or object type'*)
5823 lt_cv_path_NM="$tmp_nm -B"
5824 break
5825 ;;
5826 *)
5827 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5828 */dev/null*)
5829 lt_cv_path_NM="$tmp_nm -p"
5830 break
5831 ;;
5832 *)
5833 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5834 continue # so that we can try to find one that supports BSD flags
5835 ;;
5836 esac
5837 ;;
5838 esac
5839 fi
5840 done
5841 IFS="$lt_save_ifs"
5842 done
5843 : ${lt_cv_path_NM=no}
5844 fi
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5847 $as_echo "$lt_cv_path_NM" >&6; }
5848 if test "$lt_cv_path_NM" != "no"; then
5849 NM="$lt_cv_path_NM"
5850 else
5851 # Didn't find any BSD compatible name lister, look for dumpbin.
5852 if test -n "$DUMPBIN"; then :
5853 # Let the user override the test.
5854 else
5855 if test -n "$ac_tool_prefix"; then
5856 for ac_prog in dumpbin "link -dump"
5857 do
5858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_DUMPBIN+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -n "$DUMPBIN"; then
5866 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 DUMPBIN=$ac_cv_prog_DUMPBIN
5886 if test -n "$DUMPBIN"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5888 $as_echo "$DUMPBIN" >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894
5895 test -n "$DUMPBIN" && break
5896 done
5897 fi
5898 if test -z "$DUMPBIN"; then
5899 ac_ct_DUMPBIN=$DUMPBIN
5900 for ac_prog in dumpbin "link -dump"
5901 do
5902 # Extract the first word of "$ac_prog", so it can be a program name with args.
5903 set dummy $ac_prog; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$ac_ct_DUMPBIN"; then
5910 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5930 if test -n "$ac_ct_DUMPBIN"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5932 $as_echo "$ac_ct_DUMPBIN" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939 test -n "$ac_ct_DUMPBIN" && break
5940 done
5941
5942 if test "x$ac_ct_DUMPBIN" = x; then
5943 DUMPBIN=":"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946 yes:)
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5949 ac_tool_warned=yes ;;
5950 esac
5951 DUMPBIN=$ac_ct_DUMPBIN
5952 fi
5953 fi
5954
5955 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5956 *COFF*)
5957 DUMPBIN="$DUMPBIN -symbols"
5958 ;;
5959 *)
5960 DUMPBIN=:
5961 ;;
5962 esac
5963 fi
5964
5965 if test "$DUMPBIN" != ":"; then
5966 NM="$DUMPBIN"
5967 fi
5968 fi
5969 test -z "$NM" && NM=nm
5970
5971
5972
5973
5974
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5977 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5978 if ${lt_cv_nm_interface+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 lt_cv_nm_interface="BSD nm"
5982 echo "int some_variable = 0;" > conftest.$ac_ext
5983 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5984 (eval "$ac_compile" 2>conftest.err)
5985 cat conftest.err >&5
5986 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5987 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5988 cat conftest.err >&5
5989 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5990 cat conftest.out >&5
5991 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5992 lt_cv_nm_interface="MS dumpbin"
5993 fi
5994 rm -f conftest*
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5997 $as_echo "$lt_cv_nm_interface" >&6; }
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6000 $as_echo_n "checking whether ln -s works... " >&6; }
6001 LN_S=$as_ln_s
6002 if test "$LN_S" = "ln -s"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6004 $as_echo "yes" >&6; }
6005 else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6007 $as_echo "no, using $LN_S" >&6; }
6008 fi
6009
6010 # find the maximum length of command line arguments
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6012 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6013 if ${lt_cv_sys_max_cmd_len+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 i=0
6017 teststring="ABCD"
6018
6019 case $build_os in
6020 msdosdjgpp*)
6021 # On DJGPP, this test can blow up pretty badly due to problems in libc
6022 # (any single argument exceeding 2000 bytes causes a buffer overrun
6023 # during glob expansion). Even if it were fixed, the result of this
6024 # check would be larger than it should be.
6025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6026 ;;
6027
6028 gnu*)
6029 # Under GNU Hurd, this test is not required because there is
6030 # no limit to the length of command line arguments.
6031 # Libtool will interpret -1 as no limit whatsoever
6032 lt_cv_sys_max_cmd_len=-1;
6033 ;;
6034
6035 cygwin* | mingw* | cegcc*)
6036 # On Win9x/ME, this test blows up -- it succeeds, but takes
6037 # about 5 minutes as the teststring grows exponentially.
6038 # Worse, since 9x/ME are not pre-emptively multitasking,
6039 # you end up with a "frozen" computer, even though with patience
6040 # the test eventually succeeds (with a max line length of 256k).
6041 # Instead, let's just punt: use the minimum linelength reported by
6042 # all of the supported platforms: 8192 (on NT/2K/XP).
6043 lt_cv_sys_max_cmd_len=8192;
6044 ;;
6045
6046 mint*)
6047 # On MiNT this can take a long time and run out of memory.
6048 lt_cv_sys_max_cmd_len=8192;
6049 ;;
6050
6051 amigaos*)
6052 # On AmigaOS with pdksh, this test takes hours, literally.
6053 # So we just punt and use a minimum line length of 8192.
6054 lt_cv_sys_max_cmd_len=8192;
6055 ;;
6056
6057 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6058 # This has been around since 386BSD, at least. Likely further.
6059 if test -x /sbin/sysctl; then
6060 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6061 elif test -x /usr/sbin/sysctl; then
6062 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6063 else
6064 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6065 fi
6066 # And add a safety zone
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6069 ;;
6070
6071 interix*)
6072 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6073 lt_cv_sys_max_cmd_len=196608
6074 ;;
6075
6076 osf*)
6077 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6078 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6079 # nice to cause kernel panics so lets avoid the loop below.
6080 # First set a reasonable default.
6081 lt_cv_sys_max_cmd_len=16384
6082 #
6083 if test -x /sbin/sysconfig; then
6084 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6085 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6086 esac
6087 fi
6088 ;;
6089 sco3.2v5*)
6090 lt_cv_sys_max_cmd_len=102400
6091 ;;
6092 sysv5* | sco5v6* | sysv4.2uw2*)
6093 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6094 if test -n "$kargmax"; then
6095 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6096 else
6097 lt_cv_sys_max_cmd_len=32768
6098 fi
6099 ;;
6100 *)
6101 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6102 if test -n "$lt_cv_sys_max_cmd_len"; then
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6105 else
6106 # Make teststring a little bigger before we do anything with it.
6107 # a 1K string should be a reasonable start.
6108 for i in 1 2 3 4 5 6 7 8 ; do
6109 teststring=$teststring$teststring
6110 done
6111 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6112 # If test is not a shell built-in, we'll probably end up computing a
6113 # maximum length that is only half of the actual maximum length, but
6114 # we can't tell.
6115 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6116 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6117 test $i != 17 # 1/2 MB should be enough
6118 do
6119 i=`expr $i + 1`
6120 teststring=$teststring$teststring
6121 done
6122 # Only check the string length outside the loop.
6123 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6124 teststring=
6125 # Add a significant safety factor because C++ compilers can tack on
6126 # massive amounts of additional arguments before passing them to the
6127 # linker. It appears as though 1/2 is a usable value.
6128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6129 fi
6130 ;;
6131 esac
6132
6133 fi
6134
6135 if test -n $lt_cv_sys_max_cmd_len ; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6137 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6138 else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6140 $as_echo "none" >&6; }
6141 fi
6142 max_cmd_len=$lt_cv_sys_max_cmd_len
6143
6144
6145
6146
6147
6148
6149 : ${CP="cp -f"}
6150 : ${MV="mv -f"}
6151 : ${RM="rm -f"}
6152
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6154 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6155 # Try some XSI features
6156 xsi_shell=no
6157 ( _lt_dummy="a/b/c"
6158 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6159 = c,a/b,, \
6160 && eval 'test $(( 1 + 1 )) -eq 2 \
6161 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6162 && xsi_shell=yes
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6164 $as_echo "$xsi_shell" >&6; }
6165
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6168 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6169 lt_shell_append=no
6170 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6171 >/dev/null 2>&1 \
6172 && lt_shell_append=yes
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6174 $as_echo "$lt_shell_append" >&6; }
6175
6176
6177 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6178 lt_unset=unset
6179 else
6180 lt_unset=false
6181 fi
6182
6183
6184
6185
6186
6187 # test EBCDIC or ASCII
6188 case `echo X|tr X '\101'` in
6189 A) # ASCII based system
6190 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6191 lt_SP2NL='tr \040 \012'
6192 lt_NL2SP='tr \015\012 \040\040'
6193 ;;
6194 *) # EBCDIC based system
6195 lt_SP2NL='tr \100 \n'
6196 lt_NL2SP='tr \r\n \100\100'
6197 ;;
6198 esac
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6209 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6210 if ${lt_cv_ld_reload_flag+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 lt_cv_ld_reload_flag='-r'
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6216 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6217 reload_flag=$lt_cv_ld_reload_flag
6218 case $reload_flag in
6219 "" | " "*) ;;
6220 *) reload_flag=" $reload_flag" ;;
6221 esac
6222 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6223 case $host_os in
6224 darwin*)
6225 if test "$GCC" = yes; then
6226 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6227 else
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 fi
6230 ;;
6231 esac
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6243 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_OBJDUMP+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 if test -n "$OBJDUMP"; then
6250 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263 done
6264 done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 OBJDUMP=$ac_cv_prog_OBJDUMP
6270 if test -n "$OBJDUMP"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6272 $as_echo "$OBJDUMP" >&6; }
6273 else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278
6279 fi
6280 if test -z "$ac_cv_prog_OBJDUMP"; then
6281 ac_ct_OBJDUMP=$OBJDUMP
6282 # Extract the first word of "objdump", so it can be a program name with args.
6283 set dummy objdump; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -n "$ac_ct_OBJDUMP"; then
6290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6310 if test -n "$ac_ct_OBJDUMP"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6312 $as_echo "$ac_ct_OBJDUMP" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318 if test "x$ac_ct_OBJDUMP" = x; then
6319 OBJDUMP="false"
6320 else
6321 case $cross_compiling:$ac_tool_warned in
6322 yes:)
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned=yes ;;
6326 esac
6327 OBJDUMP=$ac_ct_OBJDUMP
6328 fi
6329 else
6330 OBJDUMP="$ac_cv_prog_OBJDUMP"
6331 fi
6332
6333 test -z "$OBJDUMP" && OBJDUMP=objdump
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6344 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6345 if ${lt_cv_deplibs_check_method+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 lt_cv_file_magic_cmd='$MAGIC_CMD'
6349 lt_cv_file_magic_test_file=
6350 lt_cv_deplibs_check_method='unknown'
6351 # Need to set the preceding variable on all platforms that support
6352 # interlibrary dependencies.
6353 # 'none' -- dependencies not supported.
6354 # `unknown' -- same as none, but documents that we really don't know.
6355 # 'pass_all' -- all dependencies passed with no checks.
6356 # 'test_compile' -- check by making test program.
6357 # 'file_magic [[regex]]' -- check by looking for files in library path
6358 # which responds to the $file_magic_cmd with a given extended regex.
6359 # If you have `file' or equivalent on your system and you're not sure
6360 # whether `pass_all' will *always* work, you probably want this one.
6361
6362 case $host_os in
6363 aix[4-9]*)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366
6367 beos*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371 bsdi[45]*)
6372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6373 lt_cv_file_magic_cmd='/usr/bin/file -L'
6374 lt_cv_file_magic_test_file=/shlib/libc.so
6375 ;;
6376
6377 cygwin*)
6378 # func_win32_libid is a shell function defined in ltmain.sh
6379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6380 lt_cv_file_magic_cmd='func_win32_libid'
6381 ;;
6382
6383 mingw* | pw32*)
6384 # Base MSYS/MinGW do not provide the 'file' command needed by
6385 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6386 # unless we find 'file', for example because we are cross-compiling.
6387 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6388 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390 lt_cv_file_magic_cmd='func_win32_libid'
6391 else
6392 # Keep this pattern in sync with the one in func_win32_libid.
6393 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6394 lt_cv_file_magic_cmd='$OBJDUMP -f'
6395 fi
6396 ;;
6397
6398 cegcc*)
6399 # use the weaker test based on 'objdump'. See mingw*.
6400 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6401 lt_cv_file_magic_cmd='$OBJDUMP -f'
6402 ;;
6403
6404 darwin* | rhapsody*)
6405 lt_cv_deplibs_check_method=pass_all
6406 ;;
6407
6408 freebsd* | dragonfly*)
6409 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6410 case $host_cpu in
6411 i*86 )
6412 # Not sure whether the presence of OpenBSD here was a mistake.
6413 # Let's accept both of them until this is cleared up.
6414 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6415 lt_cv_file_magic_cmd=/usr/bin/file
6416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6417 ;;
6418 esac
6419 else
6420 lt_cv_deplibs_check_method=pass_all
6421 fi
6422 ;;
6423
6424 gnu*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427
6428 haiku*)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
6431
6432 hpux10.20* | hpux11*)
6433 lt_cv_file_magic_cmd=/usr/bin/file
6434 case $host_cpu in
6435 ia64*)
6436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6437 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6438 ;;
6439 hppa*64*)
6440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6441 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6442 ;;
6443 *)
6444 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6445 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6446 ;;
6447 esac
6448 ;;
6449
6450 interix[3-9]*)
6451 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6453 ;;
6454
6455 irix5* | irix6* | nonstopux*)
6456 case $LD in
6457 *-32|*"-32 ") libmagic=32-bit;;
6458 *-n32|*"-n32 ") libmagic=N32;;
6459 *-64|*"-64 ") libmagic=64-bit;;
6460 *) libmagic=never-match;;
6461 esac
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465 # This must be Linux ELF.
6466 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470 netbsd*)
6471 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6473 else
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6475 fi
6476 ;;
6477
6478 newos6*)
6479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6480 lt_cv_file_magic_cmd=/usr/bin/file
6481 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6482 ;;
6483
6484 *nto* | *qnx*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488 openbsd*)
6489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6491 else
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6493 fi
6494 ;;
6495
6496 osf3* | osf4* | osf5*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500 rdos*)
6501 lt_cv_deplibs_check_method=pass_all
6502 ;;
6503
6504 solaris*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 sysv4 | sysv4.3*)
6513 case $host_vendor in
6514 motorola)
6515 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]'
6516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6517 ;;
6518 ncr)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521 sequent)
6522 lt_cv_file_magic_cmd='/bin/file'
6523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6524 ;;
6525 sni)
6526 lt_cv_file_magic_cmd='/bin/file'
6527 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6528 lt_cv_file_magic_test_file=/lib/libc.so
6529 ;;
6530 siemens)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533 pc)
6534 lt_cv_deplibs_check_method=pass_all
6535 ;;
6536 esac
6537 ;;
6538
6539 tpf*)
6540 lt_cv_deplibs_check_method=pass_all
6541 ;;
6542 esac
6543
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6546 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6547 file_magic_cmd=$lt_cv_file_magic_cmd
6548 deplibs_check_method=$lt_cv_deplibs_check_method
6549 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}ar; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if ${ac_cv_prog_AR+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if test -n "$AR"; then
6571 ac_cv_prog_AR="$AR" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_AR="${ac_tool_prefix}ar"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 AR=$ac_cv_prog_AR
6591 if test -n "$AR"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6593 $as_echo "$AR" >&6; }
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599
6600 fi
6601 if test -z "$ac_cv_prog_AR"; then
6602 ac_ct_AR=$AR
6603 # Extract the first word of "ar", so it can be a program name with args.
6604 set dummy ar; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$ac_ct_AR"; then
6611 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_AR="ar"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6631 if test -n "$ac_ct_AR"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6633 $as_echo "$ac_ct_AR" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639 if test "x$ac_ct_AR" = x; then
6640 AR="false"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648 AR=$ac_ct_AR
6649 fi
6650 else
6651 AR="$ac_cv_prog_AR"
6652 fi
6653
6654 test -z "$AR" && AR=ar
6655 test -z "$AR_FLAGS" && AR_FLAGS=cru
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_STRIP+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$STRIP"; then
6676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6698 $as_echo "$STRIP" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703
6704
6705 fi
6706 if test -z "$ac_cv_prog_STRIP"; then
6707 ac_ct_STRIP=$STRIP
6708 # Extract the first word of "strip", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$ac_ct_STRIP"; then
6716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_STRIP="strip"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6738 $as_echo "$ac_ct_STRIP" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744 if test "x$ac_ct_STRIP" = x; then
6745 STRIP=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 STRIP=$ac_ct_STRIP
6754 fi
6755 else
6756 STRIP="$ac_cv_prog_STRIP"
6757 fi
6758
6759 test -z "$STRIP" && STRIP=:
6760
6761
6762
6763
6764
6765
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_RANLIB+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$RANLIB"; then
6775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 RANLIB=$ac_cv_prog_RANLIB
6795 if test -n "$RANLIB"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6797 $as_echo "$RANLIB" >&6; }
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803
6804 fi
6805 if test -z "$ac_cv_prog_RANLIB"; then
6806 ac_ct_RANLIB=$RANLIB
6807 # Extract the first word of "ranlib", so it can be a program name with args.
6808 set dummy ranlib; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if test -n "$ac_ct_RANLIB"; then
6815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_ac_ct_RANLIB="ranlib"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6835 if test -n "$ac_ct_RANLIB"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6837 $as_echo "$ac_ct_RANLIB" >&6; }
6838 else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843 if test "x$ac_ct_RANLIB" = x; then
6844 RANLIB=":"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852 RANLIB=$ac_ct_RANLIB
6853 fi
6854 else
6855 RANLIB="$ac_cv_prog_RANLIB"
6856 fi
6857
6858 test -z "$RANLIB" && RANLIB=:
6859
6860
6861
6862
6863
6864
6865 # Determine commands to create old-style static archives.
6866 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6867 old_postinstall_cmds='chmod 644 $oldlib'
6868 old_postuninstall_cmds=
6869
6870 if test -n "$RANLIB"; then
6871 case $host_os in
6872 openbsd*)
6873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6874 ;;
6875 *)
6876 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6877 ;;
6878 esac
6879 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6880 fi
6881
6882 case $host_os in
6883 darwin*)
6884 lock_old_archive_extraction=yes ;;
6885 *)
6886 lock_old_archive_extraction=no ;;
6887 esac
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927 # If no C compiler was specified, use CC.
6928 LTCC=${LTCC-"$CC"}
6929
6930 # If no C compiler flags were specified, use CFLAGS.
6931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6932
6933 # Allow CC to be a program name with arguments.
6934 compiler=$CC
6935
6936
6937 # Check for command to grab the raw symbol name followed by C symbol from nm.
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6939 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6940 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943
6944 # These are sane defaults that work on at least a few old systems.
6945 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6946
6947 # Character class describing NM global symbol codes.
6948 symcode='[BCDEGRST]'
6949
6950 # Regexp to match symbols that can be accessed directly from C.
6951 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6952
6953 # Define system-specific variables.
6954 case $host_os in
6955 aix*)
6956 symcode='[BCDT]'
6957 ;;
6958 cygwin* | mingw* | pw32* | cegcc*)
6959 symcode='[ABCDGISTW]'
6960 ;;
6961 hpux*)
6962 if test "$host_cpu" = ia64; then
6963 symcode='[ABCDEGRST]'
6964 fi
6965 ;;
6966 irix* | nonstopux*)
6967 symcode='[BCDEGRST]'
6968 ;;
6969 osf*)
6970 symcode='[BCDEGQRST]'
6971 ;;
6972 solaris*)
6973 symcode='[BDRT]'
6974 ;;
6975 sco3.2v5*)
6976 symcode='[DT]'
6977 ;;
6978 sysv4.2uw2*)
6979 symcode='[DT]'
6980 ;;
6981 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6982 symcode='[ABDT]'
6983 ;;
6984 sysv4)
6985 symcode='[DFNSTU]'
6986 ;;
6987 esac
6988
6989 # If we're using GNU nm, then use its standard symbol codes.
6990 case `$NM -V 2>&1` in
6991 *GNU* | *'with BFD'*)
6992 symcode='[ABCDGIRSTW]' ;;
6993 esac
6994
6995 # Transform an extracted symbol line into a proper C declaration.
6996 # Some systems (esp. on ia64) link data and code symbols differently,
6997 # so use this general approach.
6998 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6999
7000 # Transform an extracted symbol line into symbol name and symbol address
7001 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7002 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'"
7003
7004 # Handle CRLF in mingw tool chain
7005 opt_cr=
7006 case $build_os in
7007 mingw*)
7008 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7009 ;;
7010 esac
7011
7012 # Try without a prefix underscore, then with it.
7013 for ac_symprfx in "" "_"; do
7014
7015 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7016 symxfrm="\\1 $ac_symprfx\\2 \\2"
7017
7018 # Write the raw and C identifiers.
7019 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7020 # Fake it for dumpbin and say T for any non-static function
7021 # and D for any global variable.
7022 # Also find C++ and __fastcall symbols from MSVC++,
7023 # which start with @ or ?.
7024 lt_cv_sys_global_symbol_pipe="$AWK '"\
7025 " {last_section=section; section=\$ 3};"\
7026 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7027 " \$ 0!~/External *\|/{next};"\
7028 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7029 " {if(hide[section]) next};"\
7030 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7031 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7032 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7033 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7034 " ' prfx=^$ac_symprfx"
7035 else
7036 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7037 fi
7038
7039 # Check to see that the pipe works correctly.
7040 pipe_works=no
7041
7042 rm -f conftest*
7043 cat > conftest.$ac_ext <<_LT_EOF
7044 #ifdef __cplusplus
7045 extern "C" {
7046 #endif
7047 char nm_test_var;
7048 void nm_test_func(void);
7049 void nm_test_func(void){}
7050 #ifdef __cplusplus
7051 }
7052 #endif
7053 int main(){nm_test_var='a';nm_test_func();return(0);}
7054 _LT_EOF
7055
7056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7057 (eval $ac_compile) 2>&5
7058 ac_status=$?
7059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7060 test $ac_status = 0; }; then
7061 # Now try to grab the symbols.
7062 nlist=conftest.nm
7063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7064 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7065 ac_status=$?
7066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067 test $ac_status = 0; } && test -s "$nlist"; then
7068 # Try sorting and uniquifying the output.
7069 if sort "$nlist" | uniq > "$nlist"T; then
7070 mv -f "$nlist"T "$nlist"
7071 else
7072 rm -f "$nlist"T
7073 fi
7074
7075 # Make sure that we snagged all the symbols we need.
7076 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7077 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7078 cat <<_LT_EOF > conftest.$ac_ext
7079 #ifdef __cplusplus
7080 extern "C" {
7081 #endif
7082
7083 _LT_EOF
7084 # Now generate the symbol file.
7085 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7086
7087 cat <<_LT_EOF >> conftest.$ac_ext
7088
7089 /* The mapping between symbol names and symbols. */
7090 const struct {
7091 const char *name;
7092 void *address;
7093 }
7094 lt__PROGRAM__LTX_preloaded_symbols[] =
7095 {
7096 { "@PROGRAM@", (void *) 0 },
7097 _LT_EOF
7098 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7099 cat <<\_LT_EOF >> conftest.$ac_ext
7100 {0, (void *) 0}
7101 };
7102
7103 /* This works around a problem in FreeBSD linker */
7104 #ifdef FREEBSD_WORKAROUND
7105 static const void *lt_preloaded_setup() {
7106 return lt__PROGRAM__LTX_preloaded_symbols;
7107 }
7108 #endif
7109
7110 #ifdef __cplusplus
7111 }
7112 #endif
7113 _LT_EOF
7114 # Now try linking the two files.
7115 mv conftest.$ac_objext conftstm.$ac_objext
7116 lt_save_LIBS="$LIBS"
7117 lt_save_CFLAGS="$CFLAGS"
7118 LIBS="conftstm.$ac_objext"
7119 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7121 (eval $ac_link) 2>&5
7122 ac_status=$?
7123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7124 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7125 pipe_works=yes
7126 fi
7127 LIBS="$lt_save_LIBS"
7128 CFLAGS="$lt_save_CFLAGS"
7129 else
7130 echo "cannot find nm_test_func in $nlist" >&5
7131 fi
7132 else
7133 echo "cannot find nm_test_var in $nlist" >&5
7134 fi
7135 else
7136 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7137 fi
7138 else
7139 echo "$progname: failed program was:" >&5
7140 cat conftest.$ac_ext >&5
7141 fi
7142 rm -rf conftest* conftst*
7143
7144 # Do not use the global_symbol_pipe unless it works.
7145 if test "$pipe_works" = yes; then
7146 break
7147 else
7148 lt_cv_sys_global_symbol_pipe=
7149 fi
7150 done
7151
7152 fi
7153
7154 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7155 lt_cv_sys_global_symbol_to_cdecl=
7156 fi
7157 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7159 $as_echo "failed" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7162 $as_echo "ok" >&6; }
7163 fi
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186 # Check whether --enable-libtool-lock was given.
7187 if test "${enable_libtool_lock+set}" = set; then :
7188 enableval=$enable_libtool_lock;
7189 fi
7190
7191 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7192
7193 # Some flags need to be propagated to the compiler or linker for good
7194 # libtool support.
7195 case $host in
7196 ia64-*-hpux*)
7197 # Find out which ABI we are using.
7198 echo 'int i;' > conftest.$ac_ext
7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200 (eval $ac_compile) 2>&5
7201 ac_status=$?
7202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203 test $ac_status = 0; }; then
7204 case `/usr/bin/file conftest.$ac_objext` in
7205 *ELF-32*)
7206 HPUX_IA64_MODE="32"
7207 ;;
7208 *ELF-64*)
7209 HPUX_IA64_MODE="64"
7210 ;;
7211 esac
7212 fi
7213 rm -rf conftest*
7214 ;;
7215 *-*-irix6*)
7216 # Find out which ABI we are using.
7217 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7219 (eval $ac_compile) 2>&5
7220 ac_status=$?
7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; }; then
7223 if test "$lt_cv_prog_gnu_ld" = yes; then
7224 case `/usr/bin/file conftest.$ac_objext` in
7225 *32-bit*)
7226 LD="${LD-ld} -melf32bsmip"
7227 ;;
7228 *N32*)
7229 LD="${LD-ld} -melf32bmipn32"
7230 ;;
7231 *64-bit*)
7232 LD="${LD-ld} -melf64bmip"
7233 ;;
7234 esac
7235 else
7236 case `/usr/bin/file conftest.$ac_objext` in
7237 *32-bit*)
7238 LD="${LD-ld} -32"
7239 ;;
7240 *N32*)
7241 LD="${LD-ld} -n32"
7242 ;;
7243 *64-bit*)
7244 LD="${LD-ld} -64"
7245 ;;
7246 esac
7247 fi
7248 fi
7249 rm -rf conftest*
7250 ;;
7251
7252 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7253 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7254 # Find out which ABI we are using.
7255 echo 'int i;' > conftest.$ac_ext
7256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7257 (eval $ac_compile) 2>&5
7258 ac_status=$?
7259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260 test $ac_status = 0; }; then
7261 case `/usr/bin/file conftest.o` in
7262 *32-bit*)
7263 case $host in
7264 x86_64-*kfreebsd*-gnu)
7265 LD="${LD-ld} -m elf_i386_fbsd"
7266 ;;
7267 x86_64-*linux*)
7268 LD="${LD-ld} -m elf_i386"
7269 ;;
7270 ppc64-*linux*|powerpc64-*linux*)
7271 LD="${LD-ld} -m elf32ppclinux"
7272 ;;
7273 s390x-*linux*)
7274 LD="${LD-ld} -m elf_s390"
7275 ;;
7276 sparc64-*linux*)
7277 LD="${LD-ld} -m elf32_sparc"
7278 ;;
7279 esac
7280 ;;
7281 *64-bit*)
7282 case $host in
7283 x86_64-*kfreebsd*-gnu)
7284 LD="${LD-ld} -m elf_x86_64_fbsd"
7285 ;;
7286 x86_64-*linux*)
7287 LD="${LD-ld} -m elf_x86_64"
7288 ;;
7289 ppc*-*linux*|powerpc*-*linux*)
7290 LD="${LD-ld} -m elf64ppc"
7291 ;;
7292 s390*-*linux*|s390*-*tpf*)
7293 LD="${LD-ld} -m elf64_s390"
7294 ;;
7295 sparc*-*linux*)
7296 LD="${LD-ld} -m elf64_sparc"
7297 ;;
7298 esac
7299 ;;
7300 esac
7301 fi
7302 rm -rf conftest*
7303 ;;
7304
7305 *-*-sco3.2v5*)
7306 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7307 SAVE_CFLAGS="$CFLAGS"
7308 CFLAGS="$CFLAGS -belf"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7310 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7311 if ${lt_cv_cc_needs_belf+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 ac_ext=c
7315 ac_cpp='$CPP $CPPFLAGS'
7316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322
7323 int
7324 main ()
7325 {
7326
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_link "$LINENO"; then :
7332 lt_cv_cc_needs_belf=yes
7333 else
7334 lt_cv_cc_needs_belf=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
7338 ac_ext=c
7339 ac_cpp='$CPP $CPPFLAGS'
7340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7343
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7346 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7349 CFLAGS="$SAVE_CFLAGS"
7350 fi
7351 ;;
7352 sparc*-*solaris*)
7353 # Find out which ABI we are using.
7354 echo 'int i;' > conftest.$ac_ext
7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7356 (eval $ac_compile) 2>&5
7357 ac_status=$?
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; }; then
7360 case `/usr/bin/file conftest.o` in
7361 *64-bit*)
7362 case $lt_cv_prog_gnu_ld in
7363 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7364 *)
7365 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7366 LD="${LD-ld} -64"
7367 fi
7368 ;;
7369 esac
7370 ;;
7371 esac
7372 fi
7373 rm -rf conftest*
7374 ;;
7375 esac
7376
7377 need_locks="$enable_libtool_lock"
7378
7379
7380 case $host_os in
7381 rhapsody* | darwin*)
7382 if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 if test -n "$DSYMUTIL"; then
7391 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408 fi
7409 fi
7410 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7411 if test -n "$DSYMUTIL"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7413 $as_echo "$DSYMUTIL" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417 fi
7418
7419
7420 fi
7421 if test -z "$ac_cv_prog_DSYMUTIL"; then
7422 ac_ct_DSYMUTIL=$DSYMUTIL
7423 # Extract the first word of "dsymutil", so it can be a program name with args.
7424 set dummy dsymutil; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 if test -n "$ac_ct_DSYMUTIL"; then
7431 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7443 fi
7444 done
7445 done
7446 IFS=$as_save_IFS
7447
7448 fi
7449 fi
7450 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7451 if test -n "$ac_ct_DSYMUTIL"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7453 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7457 fi
7458
7459 if test "x$ac_ct_DSYMUTIL" = x; then
7460 DSYMUTIL=":"
7461 else
7462 case $cross_compiling:$ac_tool_warned in
7463 yes:)
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7466 ac_tool_warned=yes ;;
7467 esac
7468 DSYMUTIL=$ac_ct_DSYMUTIL
7469 fi
7470 else
7471 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7472 fi
7473
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_NMEDIT+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test -n "$NMEDIT"; then
7483 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7492 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7495 fi
7496 done
7497 done
7498 IFS=$as_save_IFS
7499
7500 fi
7501 fi
7502 NMEDIT=$ac_cv_prog_NMEDIT
7503 if test -n "$NMEDIT"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7505 $as_echo "$NMEDIT" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509 fi
7510
7511
7512 fi
7513 if test -z "$ac_cv_prog_NMEDIT"; then
7514 ac_ct_NMEDIT=$NMEDIT
7515 # Extract the first word of "nmedit", so it can be a program name with args.
7516 set dummy nmedit; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 if test -n "$ac_ct_NMEDIT"; then
7523 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7543 if test -n "$ac_ct_NMEDIT"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7545 $as_echo "$ac_ct_NMEDIT" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551 if test "x$ac_ct_NMEDIT" = x; then
7552 NMEDIT=":"
7553 else
7554 case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7559 esac
7560 NMEDIT=$ac_ct_NMEDIT
7561 fi
7562 else
7563 NMEDIT="$ac_cv_prog_NMEDIT"
7564 fi
7565
7566 if test -n "$ac_tool_prefix"; then
7567 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7568 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_LIPO+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$LIPO"; then
7575 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 LIPO=$ac_cv_prog_LIPO
7595 if test -n "$LIPO"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7597 $as_echo "$LIPO" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603
7604 fi
7605 if test -z "$ac_cv_prog_LIPO"; then
7606 ac_ct_LIPO=$LIPO
7607 # Extract the first word of "lipo", so it can be a program name with args.
7608 set dummy lipo; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 if test -n "$ac_ct_LIPO"; then
7615 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624 ac_cv_prog_ac_ct_LIPO="lipo"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7627 fi
7628 done
7629 done
7630 IFS=$as_save_IFS
7631
7632 fi
7633 fi
7634 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7635 if test -n "$ac_ct_LIPO"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7637 $as_echo "$ac_ct_LIPO" >&6; }
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7641 fi
7642
7643 if test "x$ac_ct_LIPO" = x; then
7644 LIPO=":"
7645 else
7646 case $cross_compiling:$ac_tool_warned in
7647 yes:)
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7650 ac_tool_warned=yes ;;
7651 esac
7652 LIPO=$ac_ct_LIPO
7653 fi
7654 else
7655 LIPO="$ac_cv_prog_LIPO"
7656 fi
7657
7658 if test -n "$ac_tool_prefix"; then
7659 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7660 set dummy ${ac_tool_prefix}otool; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_OTOOL+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$OTOOL"; then
7667 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 OTOOL=$ac_cv_prog_OTOOL
7687 if test -n "$OTOOL"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7689 $as_echo "$OTOOL" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694
7695
7696 fi
7697 if test -z "$ac_cv_prog_OTOOL"; then
7698 ac_ct_OTOOL=$OTOOL
7699 # Extract the first word of "otool", so it can be a program name with args.
7700 set dummy otool; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 if test -n "$ac_ct_OTOOL"; then
7707 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_prog_ac_ct_OTOOL="otool"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7719 fi
7720 done
7721 done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7727 if test -n "$ac_ct_OTOOL"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7729 $as_echo "$ac_ct_OTOOL" >&6; }
7730 else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735 if test "x$ac_ct_OTOOL" = x; then
7736 OTOOL=":"
7737 else
7738 case $cross_compiling:$ac_tool_warned in
7739 yes:)
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7742 ac_tool_warned=yes ;;
7743 esac
7744 OTOOL=$ac_ct_OTOOL
7745 fi
7746 else
7747 OTOOL="$ac_cv_prog_OTOOL"
7748 fi
7749
7750 if test -n "$ac_tool_prefix"; then
7751 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7752 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_OTOOL64+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 if test -n "$OTOOL64"; then
7759 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7768 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 OTOOL64=$ac_cv_prog_OTOOL64
7779 if test -n "$OTOOL64"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7781 $as_echo "$OTOOL64" >&6; }
7782 else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7785 fi
7786
7787
7788 fi
7789 if test -z "$ac_cv_prog_OTOOL64"; then
7790 ac_ct_OTOOL64=$OTOOL64
7791 # Extract the first word of "otool64", so it can be a program name with args.
7792 set dummy otool64; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$ac_ct_OTOOL64"; then
7799 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7803 do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_ac_ct_OTOOL64="otool64"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812 done
7813 done
7814 IFS=$as_save_IFS
7815
7816 fi
7817 fi
7818 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7819 if test -n "$ac_ct_OTOOL64"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7821 $as_echo "$ac_ct_OTOOL64" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 fi
7826
7827 if test "x$ac_ct_OTOOL64" = x; then
7828 OTOOL64=":"
7829 else
7830 case $cross_compiling:$ac_tool_warned in
7831 yes:)
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834 ac_tool_warned=yes ;;
7835 esac
7836 OTOOL64=$ac_ct_OTOOL64
7837 fi
7838 else
7839 OTOOL64="$ac_cv_prog_OTOOL64"
7840 fi
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7869 $as_echo_n "checking for -single_module linker flag... " >&6; }
7870 if ${lt_cv_apple_cc_single_mod+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 lt_cv_apple_cc_single_mod=no
7874 if test -z "${LT_MULTI_MODULE}"; then
7875 # By default we will add the -single_module flag. You can override
7876 # by either setting the environment variable LT_MULTI_MODULE
7877 # non-empty at configure time, or by adding -multi_module to the
7878 # link flags.
7879 rm -rf libconftest.dylib*
7880 echo "int foo(void){return 1;}" > conftest.c
7881 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7882 -dynamiclib -Wl,-single_module conftest.c" >&5
7883 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7884 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7885 _lt_result=$?
7886 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7887 lt_cv_apple_cc_single_mod=yes
7888 else
7889 cat conftest.err >&5
7890 fi
7891 rm -rf libconftest.dylib*
7892 rm -f conftest.*
7893 fi
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7896 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7898 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7899 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 lt_cv_ld_exported_symbols_list=no
7903 save_LDFLAGS=$LDFLAGS
7904 echo "_main" > conftest.sym
7905 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908
7909 int
7910 main ()
7911 {
7912
7913 ;
7914 return 0;
7915 }
7916 _ACEOF
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 lt_cv_ld_exported_symbols_list=yes
7919 else
7920 lt_cv_ld_exported_symbols_list=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LDFLAGS="$save_LDFLAGS"
7925
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7928 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7930 $as_echo_n "checking for -force_load linker flag... " >&6; }
7931 if ${lt_cv_ld_force_load+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 lt_cv_ld_force_load=no
7935 cat > conftest.c << _LT_EOF
7936 int forced_loaded() { return 2;}
7937 _LT_EOF
7938 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7939 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7940 echo "$AR cru libconftest.a conftest.o" >&5
7941 $AR cru libconftest.a conftest.o 2>&5
7942 echo "$RANLIB libconftest.a" >&5
7943 $RANLIB libconftest.a 2>&5
7944 cat > conftest.c << _LT_EOF
7945 int main() { return 0;}
7946 _LT_EOF
7947 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7948 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7949 _lt_result=$?
7950 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7951 lt_cv_ld_force_load=yes
7952 else
7953 cat conftest.err >&5
7954 fi
7955 rm -f conftest.err libconftest.a conftest conftest.c
7956 rm -rf conftest.dSYM
7957
7958 fi
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7960 $as_echo "$lt_cv_ld_force_load" >&6; }
7961 case $host_os in
7962 rhapsody* | darwin1.[012])
7963 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7964 darwin1.*)
7965 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7966 darwin*) # darwin 5.x on
7967 # if running on 10.5 or later, the deployment target defaults
7968 # to the OS version, if on x86, and 10.4, the deployment
7969 # target defaults to 10.4. Don't you love it?
7970 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7971 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7973 10.[012]*)
7974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7975 10.*)
7976 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7977 esac
7978 ;;
7979 esac
7980 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7981 _lt_dar_single_mod='$single_module'
7982 fi
7983 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7984 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7985 else
7986 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7987 fi
7988 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7989 _lt_dsymutil='~$DSYMUTIL $lib || :'
7990 else
7991 _lt_dsymutil=
7992 fi
7993 ;;
7994 esac
7995
7996 for ac_header in dlfcn.h
7997 do :
7998 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7999 "
8000 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8001 cat >>confdefs.h <<_ACEOF
8002 #define HAVE_DLFCN_H 1
8003 _ACEOF
8004
8005 fi
8006
8007 done
8008
8009
8010
8011
8012
8013 # Set options
8014
8015
8016
8017 enable_dlopen=no
8018
8019
8020 enable_win32_dll=no
8021
8022
8023 # Check whether --enable-shared was given.
8024 if test "${enable_shared+set}" = set; then :
8025 enableval=$enable_shared; p=${PACKAGE-default}
8026 case $enableval in
8027 yes) enable_shared=yes ;;
8028 no) enable_shared=no ;;
8029 *)
8030 enable_shared=no
8031 # Look at the argument we got. We use all the common list separators.
8032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8033 for pkg in $enableval; do
8034 IFS="$lt_save_ifs"
8035 if test "X$pkg" = "X$p"; then
8036 enable_shared=yes
8037 fi
8038 done
8039 IFS="$lt_save_ifs"
8040 ;;
8041 esac
8042 else
8043 enable_shared=yes
8044 fi
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054 # Check whether --enable-static was given.
8055 if test "${enable_static+set}" = set; then :
8056 enableval=$enable_static; p=${PACKAGE-default}
8057 case $enableval in
8058 yes) enable_static=yes ;;
8059 no) enable_static=no ;;
8060 *)
8061 enable_static=no
8062 # Look at the argument we got. We use all the common list separators.
8063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8064 for pkg in $enableval; do
8065 IFS="$lt_save_ifs"
8066 if test "X$pkg" = "X$p"; then
8067 enable_static=yes
8068 fi
8069 done
8070 IFS="$lt_save_ifs"
8071 ;;
8072 esac
8073 else
8074 enable_static=yes
8075 fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 # Check whether --with-pic was given.
8087 if test "${with_pic+set}" = set; then :
8088 withval=$with_pic; pic_mode="$withval"
8089 else
8090 pic_mode=default
8091 fi
8092
8093
8094 test -z "$pic_mode" && pic_mode=default
8095
8096
8097
8098
8099
8100
8101
8102 # Check whether --enable-fast-install was given.
8103 if test "${enable_fast_install+set}" = set; then :
8104 enableval=$enable_fast_install; p=${PACKAGE-default}
8105 case $enableval in
8106 yes) enable_fast_install=yes ;;
8107 no) enable_fast_install=no ;;
8108 *)
8109 enable_fast_install=no
8110 # Look at the argument we got. We use all the common list separators.
8111 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8112 for pkg in $enableval; do
8113 IFS="$lt_save_ifs"
8114 if test "X$pkg" = "X$p"; then
8115 enable_fast_install=yes
8116 fi
8117 done
8118 IFS="$lt_save_ifs"
8119 ;;
8120 esac
8121 else
8122 enable_fast_install=yes
8123 fi
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 # This can be used to rebuild libtool when needed
8136 LIBTOOL_DEPS="$ltmain"
8137
8138 # Always use our own libtool.
8139 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166 test -z "$LN_S" && LN_S="ln -s"
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181 if test -n "${ZSH_VERSION+set}" ; then
8182 setopt NO_GLOB_SUBST
8183 fi
8184
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8186 $as_echo_n "checking for objdir... " >&6; }
8187 if ${lt_cv_objdir+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 rm -f .libs 2>/dev/null
8191 mkdir .libs 2>/dev/null
8192 if test -d .libs; then
8193 lt_cv_objdir=.libs
8194 else
8195 # MS-DOS does not allow filenames that begin with a dot.
8196 lt_cv_objdir=_libs
8197 fi
8198 rmdir .libs 2>/dev/null
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8201 $as_echo "$lt_cv_objdir" >&6; }
8202 objdir=$lt_cv_objdir
8203
8204
8205
8206
8207
8208 cat >>confdefs.h <<_ACEOF
8209 #define LT_OBJDIR "$lt_cv_objdir/"
8210 _ACEOF
8211
8212
8213
8214
8215 case $host_os in
8216 aix3*)
8217 # AIX sometimes has problems with the GCC collect2 program. For some
8218 # reason, if we set the COLLECT_NAMES environment variable, the problems
8219 # vanish in a puff of smoke.
8220 if test "X${COLLECT_NAMES+set}" != Xset; then
8221 COLLECT_NAMES=
8222 export COLLECT_NAMES
8223 fi
8224 ;;
8225 esac
8226
8227 # Global variables:
8228 ofile=libtool
8229 can_build_shared=yes
8230
8231 # All known linkers require a `.a' archive for static linking (except MSVC,
8232 # which needs '.lib').
8233 libext=a
8234
8235 with_gnu_ld="$lt_cv_prog_gnu_ld"
8236
8237 old_CC="$CC"
8238 old_CFLAGS="$CFLAGS"
8239
8240 # Set sane defaults for various variables
8241 test -z "$CC" && CC=cc
8242 test -z "$LTCC" && LTCC=$CC
8243 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8244 test -z "$LD" && LD=ld
8245 test -z "$ac_objext" && ac_objext=o
8246
8247 for cc_temp in $compiler""; do
8248 case $cc_temp in
8249 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8250 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8251 \-*) ;;
8252 *) break;;
8253 esac
8254 done
8255 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8256
8257
8258 # Only perform the check for file, if the check method requires it
8259 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8260 case $deplibs_check_method in
8261 file_magic*)
8262 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8264 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8265 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 case $MAGIC_CMD in
8269 [\\/*] | ?:[\\/]*)
8270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8271 ;;
8272 *)
8273 lt_save_MAGIC_CMD="$MAGIC_CMD"
8274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8275 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8276 for ac_dir in $ac_dummy; do
8277 IFS="$lt_save_ifs"
8278 test -z "$ac_dir" && ac_dir=.
8279 if test -f $ac_dir/${ac_tool_prefix}file; then
8280 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8281 if test -n "$file_magic_test_file"; then
8282 case $deplibs_check_method in
8283 "file_magic "*)
8284 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8287 $EGREP "$file_magic_regex" > /dev/null; then
8288 :
8289 else
8290 cat <<_LT_EOF 1>&2
8291
8292 *** Warning: the command libtool uses to detect shared libraries,
8293 *** $file_magic_cmd, produces output that libtool cannot recognize.
8294 *** The result is that libtool may fail to recognize shared libraries
8295 *** as such. This will affect the creation of libtool libraries that
8296 *** depend on shared libraries, but programs linked with such libtool
8297 *** libraries will work regardless of this problem. Nevertheless, you
8298 *** may want to report the problem to your system manager and/or to
8299 *** bug-libtool@gnu.org
8300
8301 _LT_EOF
8302 fi ;;
8303 esac
8304 fi
8305 break
8306 fi
8307 done
8308 IFS="$lt_save_ifs"
8309 MAGIC_CMD="$lt_save_MAGIC_CMD"
8310 ;;
8311 esac
8312 fi
8313
8314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8315 if test -n "$MAGIC_CMD"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8317 $as_echo "$MAGIC_CMD" >&6; }
8318 else
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323
8324
8325
8326
8327 if test -z "$lt_cv_path_MAGIC_CMD"; then
8328 if test -n "$ac_tool_prefix"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8330 $as_echo_n "checking for file... " >&6; }
8331 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 case $MAGIC_CMD in
8335 [\\/*] | ?:[\\/]*)
8336 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8337 ;;
8338 *)
8339 lt_save_MAGIC_CMD="$MAGIC_CMD"
8340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8341 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8342 for ac_dir in $ac_dummy; do
8343 IFS="$lt_save_ifs"
8344 test -z "$ac_dir" && ac_dir=.
8345 if test -f $ac_dir/file; then
8346 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8347 if test -n "$file_magic_test_file"; then
8348 case $deplibs_check_method in
8349 "file_magic "*)
8350 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8352 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8353 $EGREP "$file_magic_regex" > /dev/null; then
8354 :
8355 else
8356 cat <<_LT_EOF 1>&2
8357
8358 *** Warning: the command libtool uses to detect shared libraries,
8359 *** $file_magic_cmd, produces output that libtool cannot recognize.
8360 *** The result is that libtool may fail to recognize shared libraries
8361 *** as such. This will affect the creation of libtool libraries that
8362 *** depend on shared libraries, but programs linked with such libtool
8363 *** libraries will work regardless of this problem. Nevertheless, you
8364 *** may want to report the problem to your system manager and/or to
8365 *** bug-libtool@gnu.org
8366
8367 _LT_EOF
8368 fi ;;
8369 esac
8370 fi
8371 break
8372 fi
8373 done
8374 IFS="$lt_save_ifs"
8375 MAGIC_CMD="$lt_save_MAGIC_CMD"
8376 ;;
8377 esac
8378 fi
8379
8380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8381 if test -n "$MAGIC_CMD"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8383 $as_echo "$MAGIC_CMD" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8387 fi
8388
8389
8390 else
8391 MAGIC_CMD=:
8392 fi
8393 fi
8394
8395 fi
8396 ;;
8397 esac
8398
8399 # Use C for the default configuration in the libtool script
8400
8401 lt_save_CC="$CC"
8402 ac_ext=c
8403 ac_cpp='$CPP $CPPFLAGS'
8404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8407
8408
8409 # Source file extension for C test sources.
8410 ac_ext=c
8411
8412 # Object file extension for compiled C test sources.
8413 objext=o
8414 objext=$objext
8415
8416 # Code to be used in simple compile tests
8417 lt_simple_compile_test_code="int some_variable = 0;"
8418
8419 # Code to be used in simple link tests
8420 lt_simple_link_test_code='int main(){return(0);}'
8421
8422
8423
8424
8425
8426
8427
8428 # If no C compiler was specified, use CC.
8429 LTCC=${LTCC-"$CC"}
8430
8431 # If no C compiler flags were specified, use CFLAGS.
8432 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8433
8434 # Allow CC to be a program name with arguments.
8435 compiler=$CC
8436
8437 # Save the default compiler, since it gets overwritten when the other
8438 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8439 compiler_DEFAULT=$CC
8440
8441 # save warnings/boilerplate of simple test code
8442 ac_outfile=conftest.$ac_objext
8443 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8444 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8445 _lt_compiler_boilerplate=`cat conftest.err`
8446 $RM conftest*
8447
8448 ac_outfile=conftest.$ac_objext
8449 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8450 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8451 _lt_linker_boilerplate=`cat conftest.err`
8452 $RM -r conftest*
8453
8454
8455 if test -n "$compiler"; then
8456
8457 lt_prog_compiler_no_builtin_flag=
8458
8459 if test "$GCC" = yes; then
8460 case $cc_basename in
8461 nvcc*)
8462 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8463 *)
8464 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8465 esac
8466
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8468 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8469 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 lt_cv_prog_compiler_rtti_exceptions=no
8473 ac_outfile=conftest.$ac_objext
8474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8475 lt_compiler_flag="-fno-rtti -fno-exceptions"
8476 # Insert the option either (1) after the last *FLAGS variable, or
8477 # (2) before a word containing "conftest.", or (3) at the end.
8478 # Note that $ac_compile itself does not contain backslashes and begins
8479 # with a dollar sign (not a hyphen), so the echo should work correctly.
8480 # The option is referenced via a variable to avoid confusing sed.
8481 lt_compile=`echo "$ac_compile" | $SED \
8482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8484 -e 's:$: $lt_compiler_flag:'`
8485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8486 (eval "$lt_compile" 2>conftest.err)
8487 ac_status=$?
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 if (exit $ac_status) && test -s "$ac_outfile"; then
8491 # The compiler can only warn and ignore the option if not recognized
8492 # So say no if there are warnings other than the usual output.
8493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8495 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8496 lt_cv_prog_compiler_rtti_exceptions=yes
8497 fi
8498 fi
8499 $RM conftest*
8500
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8503 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8504
8505 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8506 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8507 else
8508 :
8509 fi
8510
8511 fi
8512
8513
8514
8515
8516
8517
8518 lt_prog_compiler_wl=
8519 lt_prog_compiler_pic=
8520 lt_prog_compiler_static=
8521
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8523 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8524
8525 if test "$GCC" = yes; then
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_static='-static'
8528
8529 case $host_os in
8530 aix*)
8531 # All AIX code is PIC.
8532 if test "$host_cpu" = ia64; then
8533 # AIX 5 now supports IA64 processor
8534 lt_prog_compiler_static='-Bstatic'
8535 fi
8536 ;;
8537
8538 amigaos*)
8539 case $host_cpu in
8540 powerpc)
8541 # see comment about AmigaOS4 .so support
8542 lt_prog_compiler_pic='-fPIC'
8543 ;;
8544 m68k)
8545 # FIXME: we need at least 68020 code to build shared libraries, but
8546 # adding the `-m68020' flag to GCC prevents building anything better,
8547 # like `-m68040'.
8548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8549 ;;
8550 esac
8551 ;;
8552
8553 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8554 # PIC is the default for these OSes.
8555 ;;
8556
8557 mingw* | cygwin* | pw32* | os2* | cegcc*)
8558 # This hack is so that the source file can tell whether it is being
8559 # built for inclusion in a dll (and should export symbols for example).
8560 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8561 # (--disable-auto-import) libraries
8562 lt_prog_compiler_pic='-DDLL_EXPORT'
8563 ;;
8564
8565 darwin* | rhapsody*)
8566 # PIC is the default on this platform
8567 # Common symbols not allowed in MH_DYLIB files
8568 lt_prog_compiler_pic='-fno-common'
8569 ;;
8570
8571 haiku*)
8572 # PIC is the default for Haiku.
8573 # The "-static" flag exists, but is broken.
8574 lt_prog_compiler_static=
8575 ;;
8576
8577 hpux*)
8578 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8579 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8580 # sets the default TLS model and affects inlining.
8581 case $host_cpu in
8582 hppa*64*)
8583 # +Z the default
8584 ;;
8585 *)
8586 lt_prog_compiler_pic='-fPIC'
8587 ;;
8588 esac
8589 ;;
8590
8591 interix[3-9]*)
8592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8593 # Instead, we relocate shared libraries at runtime.
8594 ;;
8595
8596 msdosdjgpp*)
8597 # Just because we use GCC doesn't mean we suddenly get shared libraries
8598 # on systems that don't support them.
8599 lt_prog_compiler_can_build_shared=no
8600 enable_shared=no
8601 ;;
8602
8603 *nto* | *qnx*)
8604 # QNX uses GNU C++, but need to define -shared option too, otherwise
8605 # it will coredump.
8606 lt_prog_compiler_pic='-fPIC -shared'
8607 ;;
8608
8609 sysv4*MP*)
8610 if test -d /usr/nec; then
8611 lt_prog_compiler_pic=-Kconform_pic
8612 fi
8613 ;;
8614
8615 *)
8616 lt_prog_compiler_pic='-fPIC'
8617 ;;
8618 esac
8619
8620 case $cc_basename in
8621 nvcc*) # Cuda Compiler Driver 2.2
8622 lt_prog_compiler_wl='-Xlinker '
8623 lt_prog_compiler_pic='-Xcompiler -fPIC'
8624 ;;
8625 esac
8626 else
8627 # PORTME Check for flag to pass linker flags through the system compiler.
8628 case $host_os in
8629 aix*)
8630 lt_prog_compiler_wl='-Wl,'
8631 if test "$host_cpu" = ia64; then
8632 # AIX 5 now supports IA64 processor
8633 lt_prog_compiler_static='-Bstatic'
8634 else
8635 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8636 fi
8637 ;;
8638
8639 mingw* | cygwin* | pw32* | os2* | cegcc*)
8640 # This hack is so that the source file can tell whether it is being
8641 # built for inclusion in a dll (and should export symbols for example).
8642 lt_prog_compiler_pic='-DDLL_EXPORT'
8643 ;;
8644
8645 hpux9* | hpux10* | hpux11*)
8646 lt_prog_compiler_wl='-Wl,'
8647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8648 # not for PA HP-UX.
8649 case $host_cpu in
8650 hppa*64*|ia64*)
8651 # +Z the default
8652 ;;
8653 *)
8654 lt_prog_compiler_pic='+Z'
8655 ;;
8656 esac
8657 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8658 lt_prog_compiler_static='${wl}-a ${wl}archive'
8659 ;;
8660
8661 irix5* | irix6* | nonstopux*)
8662 lt_prog_compiler_wl='-Wl,'
8663 # PIC (with -KPIC) is the default.
8664 lt_prog_compiler_static='-non_shared'
8665 ;;
8666
8667 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8668 case $cc_basename in
8669 # old Intel for x86_64 which still supported -KPIC.
8670 ecc*)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_pic='-KPIC'
8673 lt_prog_compiler_static='-static'
8674 ;;
8675 # icc used to be incompatible with GCC.
8676 # ICC 10 doesn't accept -KPIC any more.
8677 icc* | ifort*)
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-fPIC'
8680 lt_prog_compiler_static='-static'
8681 ;;
8682 # Lahey Fortran 8.1.
8683 lf95*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='--shared'
8686 lt_prog_compiler_static='--static'
8687 ;;
8688 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8689 # Portland Group compilers (*not* the Pentium gcc compiler,
8690 # which looks to be a dead project)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='-fpic'
8693 lt_prog_compiler_static='-Bstatic'
8694 ;;
8695 ccc*)
8696 lt_prog_compiler_wl='-Wl,'
8697 # All Alpha code is PIC.
8698 lt_prog_compiler_static='-non_shared'
8699 ;;
8700 xl* | bgxl* | bgf* | mpixl*)
8701 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8702 lt_prog_compiler_wl='-Wl,'
8703 lt_prog_compiler_pic='-qpic'
8704 lt_prog_compiler_static='-qstaticlink'
8705 ;;
8706 *)
8707 case `$CC -V 2>&1 | sed 5q` in
8708 *Sun\ F* | *Sun*Fortran*)
8709 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8710 lt_prog_compiler_pic='-KPIC'
8711 lt_prog_compiler_static='-Bstatic'
8712 lt_prog_compiler_wl=''
8713 ;;
8714 *Sun\ C*)
8715 # Sun C 5.9
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8718 lt_prog_compiler_wl='-Wl,'
8719 ;;
8720 esac
8721 ;;
8722 esac
8723 ;;
8724
8725 newsos6)
8726 lt_prog_compiler_pic='-KPIC'
8727 lt_prog_compiler_static='-Bstatic'
8728 ;;
8729
8730 *nto* | *qnx*)
8731 # QNX uses GNU C++, but need to define -shared option too, otherwise
8732 # it will coredump.
8733 lt_prog_compiler_pic='-fPIC -shared'
8734 ;;
8735
8736 osf3* | osf4* | osf5*)
8737 lt_prog_compiler_wl='-Wl,'
8738 # All OSF/1 code is PIC.
8739 lt_prog_compiler_static='-non_shared'
8740 ;;
8741
8742 rdos*)
8743 lt_prog_compiler_static='-non_shared'
8744 ;;
8745
8746 solaris*)
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8749 case $cc_basename in
8750 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8751 lt_prog_compiler_wl='-Qoption ld ';;
8752 *)
8753 lt_prog_compiler_wl='-Wl,';;
8754 esac
8755 ;;
8756
8757 sunos4*)
8758 lt_prog_compiler_wl='-Qoption ld '
8759 lt_prog_compiler_pic='-PIC'
8760 lt_prog_compiler_static='-Bstatic'
8761 ;;
8762
8763 sysv4 | sysv4.2uw2* | sysv4.3*)
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='-KPIC'
8766 lt_prog_compiler_static='-Bstatic'
8767 ;;
8768
8769 sysv4*MP*)
8770 if test -d /usr/nec ;then
8771 lt_prog_compiler_pic='-Kconform_pic'
8772 lt_prog_compiler_static='-Bstatic'
8773 fi
8774 ;;
8775
8776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-KPIC'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781
8782 unicos*)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_can_build_shared=no
8785 ;;
8786
8787 uts4*)
8788 lt_prog_compiler_pic='-pic'
8789 lt_prog_compiler_static='-Bstatic'
8790 ;;
8791
8792 *)
8793 lt_prog_compiler_can_build_shared=no
8794 ;;
8795 esac
8796 fi
8797
8798 case $host_os in
8799 # For platforms which do not support PIC, -DPIC is meaningless:
8800 *djgpp*)
8801 lt_prog_compiler_pic=
8802 ;;
8803 *)
8804 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8805 ;;
8806 esac
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8808 $as_echo "$lt_prog_compiler_pic" >&6; }
8809
8810
8811
8812
8813
8814
8815 #
8816 # Check to make sure the PIC flag actually works.
8817 #
8818 if test -n "$lt_prog_compiler_pic"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8820 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8821 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 lt_cv_prog_compiler_pic_works=no
8825 ac_outfile=conftest.$ac_objext
8826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8827 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8828 # Insert the option either (1) after the last *FLAGS variable, or
8829 # (2) before a word containing "conftest.", or (3) at the end.
8830 # Note that $ac_compile itself does not contain backslashes and begins
8831 # with a dollar sign (not a hyphen), so the echo should work correctly.
8832 # The option is referenced via a variable to avoid confusing sed.
8833 lt_compile=`echo "$ac_compile" | $SED \
8834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836 -e 's:$: $lt_compiler_flag:'`
8837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8838 (eval "$lt_compile" 2>conftest.err)
8839 ac_status=$?
8840 cat conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 if (exit $ac_status) && test -s "$ac_outfile"; then
8843 # The compiler can only warn and ignore the option if not recognized
8844 # So say no if there are warnings other than the usual output.
8845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8848 lt_cv_prog_compiler_pic_works=yes
8849 fi
8850 fi
8851 $RM conftest*
8852
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8855 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8856
8857 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8858 case $lt_prog_compiler_pic in
8859 "" | " "*) ;;
8860 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8861 esac
8862 else
8863 lt_prog_compiler_pic=
8864 lt_prog_compiler_can_build_shared=no
8865 fi
8866
8867 fi
8868
8869
8870
8871
8872
8873
8874 #
8875 # Check to make sure the static flag actually works.
8876 #
8877 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8879 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8880 if ${lt_cv_prog_compiler_static_works+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 lt_cv_prog_compiler_static_works=no
8884 save_LDFLAGS="$LDFLAGS"
8885 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8886 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8888 # The linker can only warn and ignore the option if not recognized
8889 # So say no if there are warnings
8890 if test -s conftest.err; then
8891 # Append any errors to the config.log.
8892 cat conftest.err 1>&5
8893 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8895 if diff conftest.exp conftest.er2 >/dev/null; then
8896 lt_cv_prog_compiler_static_works=yes
8897 fi
8898 else
8899 lt_cv_prog_compiler_static_works=yes
8900 fi
8901 fi
8902 $RM -r conftest*
8903 LDFLAGS="$save_LDFLAGS"
8904
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8907 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8908
8909 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8910 :
8911 else
8912 lt_prog_compiler_static=
8913 fi
8914
8915
8916
8917
8918
8919
8920
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8922 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8923 if ${lt_cv_prog_compiler_c_o+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 lt_cv_prog_compiler_c_o=no
8927 $RM -r conftest 2>/dev/null
8928 mkdir conftest
8929 cd conftest
8930 mkdir out
8931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8932
8933 lt_compiler_flag="-o out/conftest2.$ac_objext"
8934 # Insert the option either (1) after the last *FLAGS variable, or
8935 # (2) before a word containing "conftest.", or (3) at the end.
8936 # Note that $ac_compile itself does not contain backslashes and begins
8937 # with a dollar sign (not a hyphen), so the echo should work correctly.
8938 lt_compile=`echo "$ac_compile" | $SED \
8939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8941 -e 's:$: $lt_compiler_flag:'`
8942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8943 (eval "$lt_compile" 2>out/conftest.err)
8944 ac_status=$?
8945 cat out/conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8948 then
8949 # The compiler can only warn and ignore the option if not recognized
8950 # So say no if there are warnings
8951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8954 lt_cv_prog_compiler_c_o=yes
8955 fi
8956 fi
8957 chmod u+w . 2>&5
8958 $RM conftest*
8959 # SGI C++ compiler will create directory out/ii_files/ for
8960 # template instantiation
8961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8962 $RM out/* && rmdir out
8963 cd ..
8964 $RM -r conftest
8965 $RM conftest*
8966
8967 fi
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8969 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8970
8971
8972
8973
8974
8975
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8977 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8978 if ${lt_cv_prog_compiler_c_o+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 lt_cv_prog_compiler_c_o=no
8982 $RM -r conftest 2>/dev/null
8983 mkdir conftest
8984 cd conftest
8985 mkdir out
8986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8987
8988 lt_compiler_flag="-o out/conftest2.$ac_objext"
8989 # Insert the option either (1) after the last *FLAGS variable, or
8990 # (2) before a word containing "conftest.", or (3) at the end.
8991 # Note that $ac_compile itself does not contain backslashes and begins
8992 # with a dollar sign (not a hyphen), so the echo should work correctly.
8993 lt_compile=`echo "$ac_compile" | $SED \
8994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8996 -e 's:$: $lt_compiler_flag:'`
8997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8998 (eval "$lt_compile" 2>out/conftest.err)
8999 ac_status=$?
9000 cat out/conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9003 then
9004 # The compiler can only warn and ignore the option if not recognized
9005 # So say no if there are warnings
9006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9009 lt_cv_prog_compiler_c_o=yes
9010 fi
9011 fi
9012 chmod u+w . 2>&5
9013 $RM conftest*
9014 # SGI C++ compiler will create directory out/ii_files/ for
9015 # template instantiation
9016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9017 $RM out/* && rmdir out
9018 cd ..
9019 $RM -r conftest
9020 $RM conftest*
9021
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9024 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9025
9026
9027
9028
9029 hard_links="nottested"
9030 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9031 # do not overwrite the value of need_locks provided by the user
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9033 $as_echo_n "checking if we can lock with hard links... " >&6; }
9034 hard_links=yes
9035 $RM conftest*
9036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9037 touch conftest.a
9038 ln conftest.a conftest.b 2>&5 || hard_links=no
9039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9041 $as_echo "$hard_links" >&6; }
9042 if test "$hard_links" = no; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9044 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9045 need_locks=warn
9046 fi
9047 else
9048 need_locks=no
9049 fi
9050
9051
9052
9053
9054
9055
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9057 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9058
9059 runpath_var=
9060 allow_undefined_flag=
9061 always_export_symbols=no
9062 archive_cmds=
9063 archive_expsym_cmds=
9064 compiler_needs_object=no
9065 enable_shared_with_static_runtimes=no
9066 export_dynamic_flag_spec=
9067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9068 hardcode_automatic=no
9069 hardcode_direct=no
9070 hardcode_direct_absolute=no
9071 hardcode_libdir_flag_spec=
9072 hardcode_libdir_flag_spec_ld=
9073 hardcode_libdir_separator=
9074 hardcode_minus_L=no
9075 hardcode_shlibpath_var=unsupported
9076 inherit_rpath=no
9077 link_all_deplibs=unknown
9078 module_cmds=
9079 module_expsym_cmds=
9080 old_archive_from_new_cmds=
9081 old_archive_from_expsyms_cmds=
9082 thread_safe_flag_spec=
9083 whole_archive_flag_spec=
9084 # include_expsyms should be a list of space-separated symbols to be *always*
9085 # included in the symbol list
9086 include_expsyms=
9087 # exclude_expsyms can be an extended regexp of symbols to exclude
9088 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9089 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9090 # as well as any symbol that contains `d'.
9091 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9092 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9093 # platforms (ab)use it in PIC code, but their linkers get confused if
9094 # the symbol is explicitly referenced. Since portable code cannot
9095 # rely on this symbol name, it's probably fine to never include it in
9096 # preloaded symbol tables.
9097 # Exclude shared library initialization/finalization symbols.
9098 extract_expsyms_cmds=
9099
9100 case $host_os in
9101 cygwin* | mingw* | pw32* | cegcc*)
9102 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9103 # When not using gcc, we currently assume that we are using
9104 # Microsoft Visual C++.
9105 if test "$GCC" != yes; then
9106 with_gnu_ld=no
9107 fi
9108 ;;
9109 interix*)
9110 # we just hope/assume this is gcc and not c89 (= MSVC++)
9111 with_gnu_ld=yes
9112 ;;
9113 openbsd*)
9114 with_gnu_ld=no
9115 ;;
9116 esac
9117
9118 ld_shlibs=yes
9119
9120 # On some targets, GNU ld is compatible enough with the native linker
9121 # that we're better off using the native interface for both.
9122 lt_use_gnu_ld_interface=no
9123 if test "$with_gnu_ld" = yes; then
9124 case $host_os in
9125 aix*)
9126 # The AIX port of GNU ld has always aspired to compatibility
9127 # with the native linker. However, as the warning in the GNU ld
9128 # block says, versions before 2.19.5* couldn't really create working
9129 # shared libraries, regardless of the interface used.
9130 case `$LD -v 2>&1` in
9131 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9132 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9133 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9134 *)
9135 lt_use_gnu_ld_interface=yes
9136 ;;
9137 esac
9138 ;;
9139 *)
9140 lt_use_gnu_ld_interface=yes
9141 ;;
9142 esac
9143 fi
9144
9145 if test "$lt_use_gnu_ld_interface" = yes; then
9146 # If archive_cmds runs LD, not CC, wlarc should be empty
9147 wlarc='${wl}'
9148
9149 # Set some defaults for GNU ld with shared library support. These
9150 # are reset later if shared libraries are not supported. Putting them
9151 # here allows them to be overridden if necessary.
9152 runpath_var=LD_RUN_PATH
9153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9154 export_dynamic_flag_spec='${wl}--export-dynamic'
9155 # ancient GNU ld didn't support --whole-archive et. al.
9156 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9157 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9158 else
9159 whole_archive_flag_spec=
9160 fi
9161 supports_anon_versioning=no
9162 case `$LD -v 2>&1` in
9163 *GNU\ gold*) supports_anon_versioning=yes ;;
9164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9167 *\ 2.11.*) ;; # other 2.11 versions
9168 *) supports_anon_versioning=yes ;;
9169 esac
9170
9171 # See if GNU ld supports shared libraries.
9172 case $host_os in
9173 aix[3-9]*)
9174 # On AIX/PPC, the GNU linker is very broken
9175 if test "$host_cpu" != ia64; then
9176 ld_shlibs=no
9177 cat <<_LT_EOF 1>&2
9178
9179 *** Warning: the GNU linker, at least up to release 2.19, is reported
9180 *** to be unable to reliably create shared libraries on AIX.
9181 *** Therefore, libtool is disabling shared libraries support. If you
9182 *** really care for shared libraries, you may want to install binutils
9183 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9184 *** You will then need to restart the configuration process.
9185
9186 _LT_EOF
9187 fi
9188 ;;
9189
9190 amigaos*)
9191 case $host_cpu in
9192 powerpc)
9193 # see comment about AmigaOS4 .so support
9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195 archive_expsym_cmds=''
9196 ;;
9197 m68k)
9198 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)'
9199 hardcode_libdir_flag_spec='-L$libdir'
9200 hardcode_minus_L=yes
9201 ;;
9202 esac
9203 ;;
9204
9205 beos*)
9206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9207 allow_undefined_flag=unsupported
9208 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9209 # support --undefined. This deserves some investigation. FIXME
9210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211 else
9212 ld_shlibs=no
9213 fi
9214 ;;
9215
9216 cygwin* | mingw* | pw32* | cegcc*)
9217 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9218 # as there is no search path for DLLs.
9219 hardcode_libdir_flag_spec='-L$libdir'
9220 export_dynamic_flag_spec='${wl}--export-all-symbols'
9221 allow_undefined_flag=unsupported
9222 always_export_symbols=no
9223 enable_shared_with_static_runtimes=yes
9224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9225
9226 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9228 # If the export-symbols file already is a .def file (1st line
9229 # is EXPORTS), use it as is; otherwise, prepend...
9230 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9231 cp $export_symbols $output_objdir/$soname.def;
9232 else
9233 echo EXPORTS > $output_objdir/$soname.def;
9234 cat $export_symbols >> $output_objdir/$soname.def;
9235 fi~
9236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9237 else
9238 ld_shlibs=no
9239 fi
9240 ;;
9241
9242 haiku*)
9243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9244 link_all_deplibs=yes
9245 ;;
9246
9247 interix[3-9]*)
9248 hardcode_direct=no
9249 hardcode_shlibpath_var=no
9250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9251 export_dynamic_flag_spec='${wl}-E'
9252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9253 # Instead, shared libraries are loaded at an image base (0x10000000 by
9254 # default) and relocated if they conflict, which is a slow very memory
9255 # consuming and fragmenting process. To avoid this, we pick a random,
9256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9258 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9259 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'
9260 ;;
9261
9262 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9263 tmp_diet=no
9264 if test "$host_os" = linux-dietlibc; then
9265 case $cc_basename in
9266 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9267 esac
9268 fi
9269 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9270 && test "$tmp_diet" = no
9271 then
9272 tmp_addflag=
9273 tmp_sharedflag='-shared'
9274 case $cc_basename,$host_cpu in
9275 pgcc*) # Portland Group C compiler
9276 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9277 tmp_addflag=' $pic_flag'
9278 ;;
9279 pgf77* | pgf90* | pgf95* | pgfortran*)
9280 # Portland Group f77 and f90 compilers
9281 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9282 tmp_addflag=' $pic_flag -Mnomain' ;;
9283 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9284 tmp_addflag=' -i_dynamic' ;;
9285 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9286 tmp_addflag=' -i_dynamic -nofor_main' ;;
9287 ifc* | ifort*) # Intel Fortran compiler
9288 tmp_addflag=' -nofor_main' ;;
9289 lf95*) # Lahey Fortran 8.1
9290 whole_archive_flag_spec=
9291 tmp_sharedflag='--shared' ;;
9292 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9293 tmp_sharedflag='-qmkshrobj'
9294 tmp_addflag= ;;
9295 nvcc*) # Cuda Compiler Driver 2.2
9296 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9297 compiler_needs_object=yes
9298 ;;
9299 esac
9300 case `$CC -V 2>&1 | sed 5q` in
9301 *Sun\ C*) # Sun C 5.9
9302 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9303 compiler_needs_object=yes
9304 tmp_sharedflag='-G' ;;
9305 *Sun\ F*) # Sun Fortran 8.3
9306 tmp_sharedflag='-G' ;;
9307 esac
9308 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309
9310 if test "x$supports_anon_versioning" = xyes; then
9311 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9313 echo "local: *; };" >> $output_objdir/$libname.ver~
9314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9315 fi
9316
9317 case $cc_basename in
9318 xlf* | bgf* | bgxlf* | mpixlf*)
9319 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9320 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9321 hardcode_libdir_flag_spec=
9322 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9323 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9324 if test "x$supports_anon_versioning" = xyes; then
9325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9327 echo "local: *; };" >> $output_objdir/$libname.ver~
9328 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9329 fi
9330 ;;
9331 esac
9332 else
9333 ld_shlibs=no
9334 fi
9335 ;;
9336
9337 netbsd*)
9338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9339 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9340 wlarc=
9341 else
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9344 fi
9345 ;;
9346
9347 solaris*)
9348 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9349 ld_shlibs=no
9350 cat <<_LT_EOF 1>&2
9351
9352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9353 *** create shared libraries on Solaris systems. Therefore, libtool
9354 *** is disabling shared libraries support. We urge you to upgrade GNU
9355 *** binutils to release 2.9.1 or newer. Another option is to modify
9356 *** your PATH or compiler configuration so that the native linker is
9357 *** used, and then restart.
9358
9359 _LT_EOF
9360 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9363 else
9364 ld_shlibs=no
9365 fi
9366 ;;
9367
9368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9369 case `$LD -v 2>&1` in
9370 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9371 ld_shlibs=no
9372 cat <<_LT_EOF 1>&2
9373
9374 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9375 *** reliably create shared libraries on SCO systems. Therefore, libtool
9376 *** is disabling shared libraries support. We urge you to upgrade GNU
9377 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9378 *** your PATH or compiler configuration so that the native linker is
9379 *** used, and then restart.
9380
9381 _LT_EOF
9382 ;;
9383 *)
9384 # For security reasons, it is highly recommended that you always
9385 # use absolute paths for naming shared libraries, and exclude the
9386 # DT_RUNPATH tag from executables and libraries. But doing so
9387 # requires that you compile everything twice, which is a pain.
9388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9392 else
9393 ld_shlibs=no
9394 fi
9395 ;;
9396 esac
9397 ;;
9398
9399 sunos4*)
9400 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9401 wlarc=
9402 hardcode_direct=yes
9403 hardcode_shlibpath_var=no
9404 ;;
9405
9406 *)
9407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9410 else
9411 ld_shlibs=no
9412 fi
9413 ;;
9414 esac
9415
9416 if test "$ld_shlibs" = no; then
9417 runpath_var=
9418 hardcode_libdir_flag_spec=
9419 export_dynamic_flag_spec=
9420 whole_archive_flag_spec=
9421 fi
9422 else
9423 # PORTME fill in a description of your system's linker (not GNU ld)
9424 case $host_os in
9425 aix3*)
9426 allow_undefined_flag=unsupported
9427 always_export_symbols=yes
9428 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'
9429 # Note: this linker hardcodes the directories in LIBPATH if there
9430 # are no directories specified by -L.
9431 hardcode_minus_L=yes
9432 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9433 # Neither direct hardcoding nor static linking is supported with a
9434 # broken collect2.
9435 hardcode_direct=unsupported
9436 fi
9437 ;;
9438
9439 aix[4-9]*)
9440 if test "$host_cpu" = ia64; then
9441 # On IA64, the linker does run time linking by default, so we don't
9442 # have to do anything special.
9443 aix_use_runtimelinking=no
9444 exp_sym_flag='-Bexport'
9445 no_entry_flag=""
9446 else
9447 # If we're using GNU nm, then we don't want the "-C" option.
9448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9449 # Also, AIX nm treats weak defined symbols like other global
9450 # defined symbols, whereas GNU nm marks them as "W".
9451 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9452 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9453 else
9454 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'
9455 fi
9456 aix_use_runtimelinking=no
9457
9458 # Test if we are trying to use run time linking or normal
9459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9460 # need to do runtime linking.
9461 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9462 for ld_flag in $LDFLAGS; do
9463 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9464 aix_use_runtimelinking=yes
9465 break
9466 fi
9467 done
9468 ;;
9469 esac
9470
9471 exp_sym_flag='-bexport'
9472 no_entry_flag='-bnoentry'
9473 fi
9474
9475 # When large executables or shared objects are built, AIX ld can
9476 # have problems creating the table of contents. If linking a library
9477 # or program results in "error TOC overflow" add -mminimal-toc to
9478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9480
9481 archive_cmds=''
9482 hardcode_direct=yes
9483 hardcode_direct_absolute=yes
9484 hardcode_libdir_separator=':'
9485 link_all_deplibs=yes
9486 file_list_spec='${wl}-f,'
9487
9488 if test "$GCC" = yes; then
9489 case $host_os in aix4.[012]|aix4.[012].*)
9490 # We only want to do this on AIX 4.2 and lower, the check
9491 # below for broken collect2 doesn't work under 4.3+
9492 collect2name=`${CC} -print-prog-name=collect2`
9493 if test -f "$collect2name" &&
9494 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9495 then
9496 # We have reworked collect2
9497 :
9498 else
9499 # We have old collect2
9500 hardcode_direct=unsupported
9501 # It fails to find uninstalled libraries when the uninstalled
9502 # path is not listed in the libpath. Setting hardcode_minus_L
9503 # to unsupported forces relinking
9504 hardcode_minus_L=yes
9505 hardcode_libdir_flag_spec='-L$libdir'
9506 hardcode_libdir_separator=
9507 fi
9508 ;;
9509 esac
9510 shared_flag='-shared'
9511 if test "$aix_use_runtimelinking" = yes; then
9512 shared_flag="$shared_flag "'${wl}-G'
9513 fi
9514 else
9515 # not using gcc
9516 if test "$host_cpu" = ia64; then
9517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9518 # chokes on -Wl,-G. The following line is correct:
9519 shared_flag='-G'
9520 else
9521 if test "$aix_use_runtimelinking" = yes; then
9522 shared_flag='${wl}-G'
9523 else
9524 shared_flag='${wl}-bM:SRE'
9525 fi
9526 fi
9527 fi
9528
9529 export_dynamic_flag_spec='${wl}-bexpall'
9530 # It seems that -bexpall does not export symbols beginning with
9531 # underscore (_), so it is better to generate a list of symbols to export.
9532 always_export_symbols=yes
9533 if test "$aix_use_runtimelinking" = yes; then
9534 # Warning - without using the other runtime loading flags (-brtl),
9535 # -berok will link without error, but may produce a broken library.
9536 allow_undefined_flag='-berok'
9537 # Determine the default libpath from the value encoded in an
9538 # empty executable.
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541
9542 int
9543 main ()
9544 {
9545
9546 ;
9547 return 0;
9548 }
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"; then :
9551
9552 lt_aix_libpath_sed='
9553 /Import File Strings/,/^$/ {
9554 /^0/ {
9555 s/^0 *\(.*\)$/\1/
9556 p
9557 }
9558 }'
9559 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560 # Check for a 64-bit object if we didn't find anything.
9561 if test -z "$aix_libpath"; then
9562 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9563 fi
9564 fi
9565 rm -f core conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
9567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9568
9569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9570 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9571 else
9572 if test "$host_cpu" = ia64; then
9573 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9574 allow_undefined_flag="-z nodefs"
9575 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"
9576 else
9577 # Determine the default libpath from the value encoded in an
9578 # empty executable.
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581
9582 int
9583 main ()
9584 {
9585
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 if ac_fn_c_try_link "$LINENO"; then :
9591
9592 lt_aix_libpath_sed='
9593 /Import File Strings/,/^$/ {
9594 /^0/ {
9595 s/^0 *\(.*\)$/\1/
9596 p
9597 }
9598 }'
9599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9600 # Check for a 64-bit object if we didn't find anything.
9601 if test -z "$aix_libpath"; then
9602 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9603 fi
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9608
9609 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9610 # Warning - without using the other run time loading flags,
9611 # -berok will link without error, but may produce a broken library.
9612 no_undefined_flag=' ${wl}-bernotok'
9613 allow_undefined_flag=' ${wl}-berok'
9614 if test "$with_gnu_ld" = yes; then
9615 # We only use this code for GNU lds that support --whole-archive.
9616 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9617 else
9618 # Exported symbols can be pulled into shared objects from archives
9619 whole_archive_flag_spec='$convenience'
9620 fi
9621 archive_cmds_need_lc=yes
9622 # This is similar to how AIX traditionally builds its shared libraries.
9623 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'
9624 fi
9625 fi
9626 ;;
9627
9628 amigaos*)
9629 case $host_cpu in
9630 powerpc)
9631 # see comment about AmigaOS4 .so support
9632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9633 archive_expsym_cmds=''
9634 ;;
9635 m68k)
9636 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)'
9637 hardcode_libdir_flag_spec='-L$libdir'
9638 hardcode_minus_L=yes
9639 ;;
9640 esac
9641 ;;
9642
9643 bsdi[45]*)
9644 export_dynamic_flag_spec=-rdynamic
9645 ;;
9646
9647 cygwin* | mingw* | pw32* | cegcc*)
9648 # When not using gcc, we currently assume that we are using
9649 # Microsoft Visual C++.
9650 # hardcode_libdir_flag_spec is actually meaningless, as there is
9651 # no search path for DLLs.
9652 hardcode_libdir_flag_spec=' '
9653 allow_undefined_flag=unsupported
9654 # Tell ltmain to make .lib files, not .a files.
9655 libext=lib
9656 # Tell ltmain to make .dll files, not .so files.
9657 shrext_cmds=".dll"
9658 # FIXME: Setting linknames here is a bad hack.
9659 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9660 # The linker will automatically build a .lib file if we build a DLL.
9661 old_archive_from_new_cmds='true'
9662 # FIXME: Should let the user specify the lib program.
9663 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9664 fix_srcfile_path='`cygpath -w "$srcfile"`'
9665 enable_shared_with_static_runtimes=yes
9666 ;;
9667
9668 darwin* | rhapsody*)
9669
9670
9671 archive_cmds_need_lc=no
9672 hardcode_direct=no
9673 hardcode_automatic=yes
9674 hardcode_shlibpath_var=unsupported
9675 if test "$lt_cv_ld_force_load" = "yes"; then
9676 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9677 else
9678 whole_archive_flag_spec=''
9679 fi
9680 link_all_deplibs=yes
9681 allow_undefined_flag="$_lt_dar_allow_undefined"
9682 case $cc_basename in
9683 ifort*) _lt_dar_can_shared=yes ;;
9684 *) _lt_dar_can_shared=$GCC ;;
9685 esac
9686 if test "$_lt_dar_can_shared" = "yes"; then
9687 output_verbose_link_cmd=func_echo_all
9688 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9689 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9690 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}"
9691 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}"
9692
9693 else
9694 ld_shlibs=no
9695 fi
9696
9697 ;;
9698
9699 dgux*)
9700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_libdir_flag_spec='-L$libdir'
9702 hardcode_shlibpath_var=no
9703 ;;
9704
9705 freebsd1*)
9706 ld_shlibs=no
9707 ;;
9708
9709 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9710 # support. Future versions do this automatically, but an explicit c++rt0.o
9711 # does not break anything, and helps significantly (at the cost of a little
9712 # extra space).
9713 freebsd2.2*)
9714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9715 hardcode_libdir_flag_spec='-R$libdir'
9716 hardcode_direct=yes
9717 hardcode_shlibpath_var=no
9718 ;;
9719
9720 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9721 freebsd2*)
9722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_direct=yes
9724 hardcode_minus_L=yes
9725 hardcode_shlibpath_var=no
9726 ;;
9727
9728 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9729 freebsd* | dragonfly*)
9730 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9731 hardcode_libdir_flag_spec='-R$libdir'
9732 hardcode_direct=yes
9733 hardcode_shlibpath_var=no
9734 ;;
9735
9736 hpux9*)
9737 if test "$GCC" = yes; then
9738 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'
9739 else
9740 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'
9741 fi
9742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9743 hardcode_libdir_separator=:
9744 hardcode_direct=yes
9745
9746 # hardcode_minus_L: Not really in the search PATH,
9747 # but as the default location of the library.
9748 hardcode_minus_L=yes
9749 export_dynamic_flag_spec='${wl}-E'
9750 ;;
9751
9752 hpux10*)
9753 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9755 else
9756 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9757 fi
9758 if test "$with_gnu_ld" = no; then
9759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9760 hardcode_libdir_flag_spec_ld='+b $libdir'
9761 hardcode_libdir_separator=:
9762 hardcode_direct=yes
9763 hardcode_direct_absolute=yes
9764 export_dynamic_flag_spec='${wl}-E'
9765 # hardcode_minus_L: Not really in the search PATH,
9766 # but as the default location of the library.
9767 hardcode_minus_L=yes
9768 fi
9769 ;;
9770
9771 hpux11*)
9772 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9773 case $host_cpu in
9774 hppa*64*)
9775 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 ;;
9777 ia64*)
9778 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9779 ;;
9780 *)
9781 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9782 ;;
9783 esac
9784 else
9785 case $host_cpu in
9786 hppa*64*)
9787 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9788 ;;
9789 ia64*)
9790 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9791 ;;
9792 *)
9793
9794 # Older versions of the 11.00 compiler do not understand -b yet
9795 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9797 $as_echo_n "checking if $CC understands -b... " >&6; }
9798 if ${lt_cv_prog_compiler__b+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 lt_cv_prog_compiler__b=no
9802 save_LDFLAGS="$LDFLAGS"
9803 LDFLAGS="$LDFLAGS -b"
9804 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9806 # The linker can only warn and ignore the option if not recognized
9807 # So say no if there are warnings
9808 if test -s conftest.err; then
9809 # Append any errors to the config.log.
9810 cat conftest.err 1>&5
9811 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9813 if diff conftest.exp conftest.er2 >/dev/null; then
9814 lt_cv_prog_compiler__b=yes
9815 fi
9816 else
9817 lt_cv_prog_compiler__b=yes
9818 fi
9819 fi
9820 $RM -r conftest*
9821 LDFLAGS="$save_LDFLAGS"
9822
9823 fi
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9825 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9826
9827 if test x"$lt_cv_prog_compiler__b" = xyes; then
9828 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829 else
9830 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9831 fi
9832
9833 ;;
9834 esac
9835 fi
9836 if test "$with_gnu_ld" = no; then
9837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9838 hardcode_libdir_separator=:
9839
9840 case $host_cpu in
9841 hppa*64*|ia64*)
9842 hardcode_direct=no
9843 hardcode_shlibpath_var=no
9844 ;;
9845 *)
9846 hardcode_direct=yes
9847 hardcode_direct_absolute=yes
9848 export_dynamic_flag_spec='${wl}-E'
9849
9850 # hardcode_minus_L: Not really in the search PATH,
9851 # but as the default location of the library.
9852 hardcode_minus_L=yes
9853 ;;
9854 esac
9855 fi
9856 ;;
9857
9858 irix5* | irix6* | nonstopux*)
9859 if test "$GCC" = yes; then
9860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9861 # Try to use the -exported_symbol ld option, if it does not
9862 # work, assume that -exports_file does not work either and
9863 # implicitly export all symbols.
9864 save_LDFLAGS="$LDFLAGS"
9865 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868 int foo(void) {}
9869 _ACEOF
9870 if ac_fn_c_try_link "$LINENO"; then :
9871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9872
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876 LDFLAGS="$save_LDFLAGS"
9877 else
9878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9880 fi
9881 archive_cmds_need_lc='no'
9882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9883 hardcode_libdir_separator=:
9884 inherit_rpath=yes
9885 link_all_deplibs=yes
9886 ;;
9887
9888 netbsd*)
9889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9891 else
9892 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9893 fi
9894 hardcode_libdir_flag_spec='-R$libdir'
9895 hardcode_direct=yes
9896 hardcode_shlibpath_var=no
9897 ;;
9898
9899 newsos6)
9900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_direct=yes
9902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9903 hardcode_libdir_separator=:
9904 hardcode_shlibpath_var=no
9905 ;;
9906
9907 *nto* | *qnx*)
9908 ;;
9909
9910 openbsd*)
9911 if test -f /usr/libexec/ld.so; then
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 hardcode_direct_absolute=yes
9915 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9916 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9919 export_dynamic_flag_spec='${wl}-E'
9920 else
9921 case $host_os in
9922 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9924 hardcode_libdir_flag_spec='-R$libdir'
9925 ;;
9926 *)
9927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9929 ;;
9930 esac
9931 fi
9932 else
9933 ld_shlibs=no
9934 fi
9935 ;;
9936
9937 os2*)
9938 hardcode_libdir_flag_spec='-L$libdir'
9939 hardcode_minus_L=yes
9940 allow_undefined_flag=unsupported
9941 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'
9942 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9943 ;;
9944
9945 osf3*)
9946 if test "$GCC" = yes; then
9947 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9948 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9949 else
9950 allow_undefined_flag=' -expect_unresolved \*'
9951 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9952 fi
9953 archive_cmds_need_lc='no'
9954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9955 hardcode_libdir_separator=:
9956 ;;
9957
9958 osf4* | osf5*) # as osf3* with the addition of -msym flag
9959 if test "$GCC" = yes; then
9960 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9961 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9963 else
9964 allow_undefined_flag=' -expect_unresolved \*'
9965 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9966 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~
9967 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9968
9969 # Both c and cxx compiler support -rpath directly
9970 hardcode_libdir_flag_spec='-rpath $libdir'
9971 fi
9972 archive_cmds_need_lc='no'
9973 hardcode_libdir_separator=:
9974 ;;
9975
9976 solaris*)
9977 no_undefined_flag=' -z defs'
9978 if test "$GCC" = yes; then
9979 wlarc='${wl}'
9980 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9982 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9983 else
9984 case `$CC -V 2>&1` in
9985 *"Compilers 5.0"*)
9986 wlarc=''
9987 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9989 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9990 ;;
9991 *)
9992 wlarc='${wl}'
9993 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9995 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9996 ;;
9997 esac
9998 fi
9999 hardcode_libdir_flag_spec='-R$libdir'
10000 hardcode_shlibpath_var=no
10001 case $host_os in
10002 solaris2.[0-5] | solaris2.[0-5].*) ;;
10003 *)
10004 # The compiler driver will combine and reorder linker options,
10005 # but understands `-z linker_flag'. GCC discards it without `$wl',
10006 # but is careful enough not to reorder.
10007 # Supported since Solaris 2.6 (maybe 2.5.1?)
10008 if test "$GCC" = yes; then
10009 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10010 else
10011 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10012 fi
10013 ;;
10014 esac
10015 link_all_deplibs=yes
10016 ;;
10017
10018 sunos4*)
10019 if test "x$host_vendor" = xsequent; then
10020 # Use $CC to link under sequent, because it throws in some extra .o
10021 # files that make .init and .fini sections work.
10022 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10023 else
10024 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10025 fi
10026 hardcode_libdir_flag_spec='-L$libdir'
10027 hardcode_direct=yes
10028 hardcode_minus_L=yes
10029 hardcode_shlibpath_var=no
10030 ;;
10031
10032 sysv4)
10033 case $host_vendor in
10034 sni)
10035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_direct=yes # is this really true???
10037 ;;
10038 siemens)
10039 ## LD is ld it makes a PLAMLIB
10040 ## CC just makes a GrossModule.
10041 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10042 reload_cmds='$CC -r -o $output$reload_objs'
10043 hardcode_direct=no
10044 ;;
10045 motorola)
10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10048 ;;
10049 esac
10050 runpath_var='LD_RUN_PATH'
10051 hardcode_shlibpath_var=no
10052 ;;
10053
10054 sysv4.3*)
10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_shlibpath_var=no
10057 export_dynamic_flag_spec='-Bexport'
10058 ;;
10059
10060 sysv4*MP*)
10061 if test -d /usr/nec; then
10062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_shlibpath_var=no
10064 runpath_var=LD_RUN_PATH
10065 hardcode_runpath_var=yes
10066 ld_shlibs=yes
10067 fi
10068 ;;
10069
10070 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10071 no_undefined_flag='${wl}-z,text'
10072 archive_cmds_need_lc=no
10073 hardcode_shlibpath_var=no
10074 runpath_var='LD_RUN_PATH'
10075
10076 if test "$GCC" = yes; then
10077 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 else
10080 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 fi
10083 ;;
10084
10085 sysv5* | sco3.2v5* | sco5v6*)
10086 # Note: We can NOT use -z defs as we might desire, because we do not
10087 # link with -lc, and that would cause any symbols used from libc to
10088 # always be unresolved, which means just about no library would
10089 # ever link correctly. If we're not using GNU ld we use -z text
10090 # though, which does catch some bad symbols but isn't as heavy-handed
10091 # as -z defs.
10092 no_undefined_flag='${wl}-z,text'
10093 allow_undefined_flag='${wl}-z,nodefs'
10094 archive_cmds_need_lc=no
10095 hardcode_shlibpath_var=no
10096 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10097 hardcode_libdir_separator=':'
10098 link_all_deplibs=yes
10099 export_dynamic_flag_spec='${wl}-Bexport'
10100 runpath_var='LD_RUN_PATH'
10101
10102 if test "$GCC" = yes; then
10103 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 else
10106 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108 fi
10109 ;;
10110
10111 uts4*)
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_libdir_flag_spec='-L$libdir'
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 *)
10118 ld_shlibs=no
10119 ;;
10120 esac
10121
10122 if test x$host_vendor = xsni; then
10123 case $host in
10124 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10125 export_dynamic_flag_spec='${wl}-Blargedynsym'
10126 ;;
10127 esac
10128 fi
10129 fi
10130
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10132 $as_echo "$ld_shlibs" >&6; }
10133 test "$ld_shlibs" = no && can_build_shared=no
10134
10135 with_gnu_ld=$with_gnu_ld
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151 #
10152 # Do we need to explicitly link libc?
10153 #
10154 case "x$archive_cmds_need_lc" in
10155 x|xyes)
10156 # Assume -lc should be added
10157 archive_cmds_need_lc=yes
10158
10159 if test "$enable_shared" = yes && test "$GCC" = yes; then
10160 case $archive_cmds in
10161 *'~'*)
10162 # FIXME: we may have to deal with multi-command sequences.
10163 ;;
10164 '$CC '*)
10165 # Test whether the compiler implicitly links with -lc since on some
10166 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10167 # to ld, don't add -lc before -lgcc.
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10169 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10170 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 $RM conftest*
10174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10175
10176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10177 (eval $ac_compile) 2>&5
10178 ac_status=$?
10179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10180 test $ac_status = 0; } 2>conftest.err; then
10181 soname=conftest
10182 lib=conftest
10183 libobjs=conftest.$ac_objext
10184 deplibs=
10185 wl=$lt_prog_compiler_wl
10186 pic_flag=$lt_prog_compiler_pic
10187 compiler_flags=-v
10188 linker_flags=-v
10189 verstring=
10190 output_objdir=.
10191 libname=conftest
10192 lt_save_allow_undefined_flag=$allow_undefined_flag
10193 allow_undefined_flag=
10194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10195 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10196 ac_status=$?
10197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10198 test $ac_status = 0; }
10199 then
10200 lt_cv_archive_cmds_need_lc=no
10201 else
10202 lt_cv_archive_cmds_need_lc=yes
10203 fi
10204 allow_undefined_flag=$lt_save_allow_undefined_flag
10205 else
10206 cat conftest.err 1>&5
10207 fi
10208 $RM conftest*
10209
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10212 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10213 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10214 ;;
10215 esac
10216 fi
10217 ;;
10218 esac
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10377 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10378
10379 if test "$GCC" = yes; then
10380 case $host_os in
10381 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10382 *) lt_awk_arg="/^libraries:/" ;;
10383 esac
10384 case $host_os in
10385 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10386 *) lt_sed_strip_eq="s,=/,/,g" ;;
10387 esac
10388 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10389 case $lt_search_path_spec in
10390 *\;*)
10391 # if the path contains ";" then we assume it to be the separator
10392 # otherwise default to the standard path separator (i.e. ":") - it is
10393 # assumed that no part of a normal pathname contains ";" but that should
10394 # okay in the real world where ";" in dirpaths is itself problematic.
10395 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10396 ;;
10397 *)
10398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10399 ;;
10400 esac
10401 # Ok, now we have the path, separated by spaces, we can step through it
10402 # and add multilib dir if necessary.
10403 lt_tmp_lt_search_path_spec=
10404 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10405 for lt_sys_path in $lt_search_path_spec; do
10406 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10407 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10408 else
10409 test -d "$lt_sys_path" && \
10410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10411 fi
10412 done
10413 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10414 BEGIN {RS=" "; FS="/|\n";} {
10415 lt_foo="";
10416 lt_count=0;
10417 for (lt_i = NF; lt_i > 0; lt_i--) {
10418 if ($lt_i != "" && $lt_i != ".") {
10419 if ($lt_i == "..") {
10420 lt_count++;
10421 } else {
10422 if (lt_count == 0) {
10423 lt_foo="/" $lt_i lt_foo;
10424 } else {
10425 lt_count--;
10426 }
10427 }
10428 }
10429 }
10430 if (lt_foo != "") { lt_freq[lt_foo]++; }
10431 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10432 }'`
10433 # AWK program above erroneously prepends '/' to C:/dos/paths
10434 # for these hosts.
10435 case $host_os in
10436 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10437 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10438 esac
10439 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10440 else
10441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10442 fi
10443 library_names_spec=
10444 libname_spec='lib$name'
10445 soname_spec=
10446 shrext_cmds=".so"
10447 postinstall_cmds=
10448 postuninstall_cmds=
10449 finish_cmds=
10450 finish_eval=
10451 shlibpath_var=
10452 shlibpath_overrides_runpath=unknown
10453 version_type=none
10454 dynamic_linker="$host_os ld.so"
10455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10456 need_lib_prefix=unknown
10457 hardcode_into_libs=no
10458
10459 # when you set need_version to no, make sure it does not cause -set_version
10460 # flags to be left without arguments
10461 need_version=unknown
10462
10463 case $host_os in
10464 aix3*)
10465 version_type=linux
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10467 shlibpath_var=LIBPATH
10468
10469 # AIX 3 has no versioning support, so we append a major version to the name.
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 ;;
10472
10473 aix[4-9]*)
10474 version_type=linux
10475 need_lib_prefix=no
10476 need_version=no
10477 hardcode_into_libs=yes
10478 if test "$host_cpu" = ia64; then
10479 # AIX 5 supports IA64
10480 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 else
10483 # With GCC up to 2.95.x, collect2 would create an import file
10484 # for dependence libraries. The import file would start with
10485 # the line `#! .'. This would cause the generated library to
10486 # depend on `.', always an invalid library. This was fixed in
10487 # development snapshots of GCC prior to 3.0.
10488 case $host_os in
10489 aix4 | aix4.[01] | aix4.[01].*)
10490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10491 echo ' yes '
10492 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10493 :
10494 else
10495 can_build_shared=no
10496 fi
10497 ;;
10498 esac
10499 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10500 # soname into executable. Probably we can add versioning support to
10501 # collect2, so additional links can be useful in future.
10502 if test "$aix_use_runtimelinking" = yes; then
10503 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10504 # instead of lib<name>.a to let people know that these are not
10505 # typical AIX shared libraries.
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507 else
10508 # We preserve .a as extension for shared libraries through AIX4.2
10509 # and later when we are not doing run time linking.
10510 library_names_spec='${libname}${release}.a $libname.a'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 fi
10513 shlibpath_var=LIBPATH
10514 fi
10515 ;;
10516
10517 amigaos*)
10518 case $host_cpu in
10519 powerpc)
10520 # Since July 2007 AmigaOS4 officially supports .so libraries.
10521 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 ;;
10524 m68k)
10525 library_names_spec='$libname.ixlibrary $libname.a'
10526 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10527 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10528 ;;
10529 esac
10530 ;;
10531
10532 beos*)
10533 library_names_spec='${libname}${shared_ext}'
10534 dynamic_linker="$host_os ld.so"
10535 shlibpath_var=LIBRARY_PATH
10536 ;;
10537
10538 bsdi[45]*)
10539 version_type=linux
10540 need_version=no
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10547 # the default ld.so.conf also contains /usr/contrib/lib and
10548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10549 # libtool to hard-code these into programs
10550 ;;
10551
10552 cygwin* | mingw* | pw32* | cegcc*)
10553 version_type=windows
10554 shrext_cmds=".dll"
10555 need_version=no
10556 need_lib_prefix=no
10557
10558 case $GCC,$host_os in
10559 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10560 library_names_spec='$libname.dll.a'
10561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10562 postinstall_cmds='base_file=`basename \${file}`~
10563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10564 dldir=$destdir/`dirname \$dlpath`~
10565 test -d \$dldir || mkdir -p \$dldir~
10566 $install_prog $dir/$dlname \$dldir/$dlname~
10567 chmod a+x \$dldir/$dlname~
10568 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10569 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10570 fi'
10571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10572 dlpath=$dir/\$dldll~
10573 $RM \$dlpath'
10574 shlibpath_overrides_runpath=yes
10575
10576 case $host_os in
10577 cygwin*)
10578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10580
10581 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10582 ;;
10583 mingw* | cegcc*)
10584 # MinGW DLLs use traditional 'lib' prefix
10585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10586 ;;
10587 pw32*)
10588 # pw32 DLLs use 'pw' prefix rather than 'lib'
10589 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590 ;;
10591 esac
10592 ;;
10593
10594 *)
10595 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10596 ;;
10597 esac
10598 dynamic_linker='Win32 ld.exe'
10599 # FIXME: first we should search . and the directory the executable is in
10600 shlibpath_var=PATH
10601 ;;
10602
10603 darwin* | rhapsody*)
10604 dynamic_linker="$host_os dyld"
10605 version_type=darwin
10606 need_lib_prefix=no
10607 need_version=no
10608 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10609 soname_spec='${libname}${release}${major}$shared_ext'
10610 shlibpath_overrides_runpath=yes
10611 shlibpath_var=DYLD_LIBRARY_PATH
10612 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10613
10614 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10616 ;;
10617
10618 dgux*)
10619 version_type=linux
10620 need_lib_prefix=no
10621 need_version=no
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 ;;
10626
10627 freebsd1*)
10628 dynamic_linker=no
10629 ;;
10630
10631 freebsd* | dragonfly*)
10632 # DragonFly does not have aout. When/if they implement a new
10633 # versioning mechanism, adjust this.
10634 if test -x /usr/bin/objformat; then
10635 objformat=`/usr/bin/objformat`
10636 else
10637 case $host_os in
10638 freebsd[123]*) objformat=aout ;;
10639 *) objformat=elf ;;
10640 esac
10641 fi
10642 version_type=freebsd-$objformat
10643 case $version_type in
10644 freebsd-elf*)
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10646 need_version=no
10647 need_lib_prefix=no
10648 ;;
10649 freebsd-*)
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10651 need_version=yes
10652 ;;
10653 esac
10654 shlibpath_var=LD_LIBRARY_PATH
10655 case $host_os in
10656 freebsd2*)
10657 shlibpath_overrides_runpath=yes
10658 ;;
10659 freebsd3.[01]* | freebsdelf3.[01]*)
10660 shlibpath_overrides_runpath=yes
10661 hardcode_into_libs=yes
10662 ;;
10663 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10664 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10665 shlibpath_overrides_runpath=no
10666 hardcode_into_libs=yes
10667 ;;
10668 *) # from 4.6 on, and DragonFly
10669 shlibpath_overrides_runpath=yes
10670 hardcode_into_libs=yes
10671 ;;
10672 esac
10673 ;;
10674
10675 gnu*)
10676 version_type=linux
10677 need_lib_prefix=no
10678 need_version=no
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 hardcode_into_libs=yes
10683 ;;
10684
10685 haiku*)
10686 version_type=linux
10687 need_lib_prefix=no
10688 need_version=no
10689 dynamic_linker="$host_os runtime_loader"
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 shlibpath_var=LIBRARY_PATH
10693 shlibpath_overrides_runpath=yes
10694 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10695 hardcode_into_libs=yes
10696 ;;
10697
10698 hpux9* | hpux10* | hpux11*)
10699 # Give a soname corresponding to the major version so that dld.sl refuses to
10700 # link against other versions.
10701 version_type=sunos
10702 need_lib_prefix=no
10703 need_version=no
10704 case $host_cpu in
10705 ia64*)
10706 shrext_cmds='.so'
10707 hardcode_into_libs=yes
10708 dynamic_linker="$host_os dld.so"
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 if test "X$HPUX_IA64_MODE" = X32; then
10714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10715 else
10716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10717 fi
10718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10719 ;;
10720 hppa*64*)
10721 shrext_cmds='.sl'
10722 hardcode_into_libs=yes
10723 dynamic_linker="$host_os dld.sl"
10724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10730 ;;
10731 *)
10732 shrext_cmds='.sl'
10733 dynamic_linker="$host_os dld.sl"
10734 shlibpath_var=SHLIB_PATH
10735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 soname_spec='${libname}${release}${shared_ext}$major'
10738 ;;
10739 esac
10740 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10741 postinstall_cmds='chmod 555 $lib'
10742 # or fails outright, so override atomically:
10743 install_override_mode=555
10744 ;;
10745
10746 interix[3-9]*)
10747 version_type=linux
10748 need_lib_prefix=no
10749 need_version=no
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath=no
10755 hardcode_into_libs=yes
10756 ;;
10757
10758 irix5* | irix6* | nonstopux*)
10759 case $host_os in
10760 nonstopux*) version_type=nonstopux ;;
10761 *)
10762 if test "$lt_cv_prog_gnu_ld" = yes; then
10763 version_type=linux
10764 else
10765 version_type=irix
10766 fi ;;
10767 esac
10768 need_lib_prefix=no
10769 need_version=no
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10772 case $host_os in
10773 irix5* | nonstopux*)
10774 libsuff= shlibsuff=
10775 ;;
10776 *)
10777 case $LD in # libtool.m4 will add one of these switches to LD
10778 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10779 libsuff= shlibsuff= libmagic=32-bit;;
10780 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10781 libsuff=32 shlibsuff=N32 libmagic=N32;;
10782 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10783 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10784 *) libsuff= shlibsuff= libmagic=never-match;;
10785 esac
10786 ;;
10787 esac
10788 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10789 shlibpath_overrides_runpath=no
10790 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10791 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10792 hardcode_into_libs=yes
10793 ;;
10794
10795 # No shared lib support for Linux oldld, aout, or coff.
10796 linux*oldld* | linux*aout* | linux*coff*)
10797 dynamic_linker=no
10798 ;;
10799
10800 # This must be Linux ELF.
10801 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10802 version_type=linux
10803 need_lib_prefix=no
10804 need_version=no
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810
10811 # Some binutils ld are patched to set DT_RUNPATH
10812 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 lt_cv_shlibpath_overrides_runpath=no
10816 save_LDFLAGS=$LDFLAGS
10817 save_libdir=$libdir
10818 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10819 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822
10823 int
10824 main ()
10825 {
10826
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"; then :
10832 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10833 lt_cv_shlibpath_overrides_runpath=yes
10834 fi
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 LDFLAGS=$save_LDFLAGS
10839 libdir=$save_libdir
10840
10841 fi
10842
10843 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10844
10845 # This implies no fast_install, which is unacceptable.
10846 # Some rework will be needed to allow for fast_install
10847 # before this can be enabled.
10848 hardcode_into_libs=yes
10849
10850 # Append ld.so.conf contents to the search path
10851 if test -f /etc/ld.so.conf; then
10852 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;s/"//g;/^$/d' | tr '\n' ' '`
10853 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10854 fi
10855
10856 # We used to test for /lib/ld.so.1 and disable shared libraries on
10857 # powerpc, because MkLinux only supported shared libraries with the
10858 # GNU dynamic linker. Since this was broken with cross compilers,
10859 # most powerpc-linux boxes support dynamic linking these days and
10860 # people can always --disable-shared, the test was removed, and we
10861 # assume the GNU/Linux dynamic linker is in use.
10862 dynamic_linker='GNU/Linux ld.so'
10863 ;;
10864
10865 netbsd*)
10866 version_type=sunos
10867 need_lib_prefix=no
10868 need_version=no
10869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10872 dynamic_linker='NetBSD (a.out) ld.so'
10873 else
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 dynamic_linker='NetBSD ld.elf_so'
10877 fi
10878 shlibpath_var=LD_LIBRARY_PATH
10879 shlibpath_overrides_runpath=yes
10880 hardcode_into_libs=yes
10881 ;;
10882
10883 newsos6)
10884 version_type=linux
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=yes
10888 ;;
10889
10890 *nto* | *qnx*)
10891 version_type=qnx
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=no
10898 hardcode_into_libs=yes
10899 dynamic_linker='ldqnx.so'
10900 ;;
10901
10902 openbsd*)
10903 version_type=sunos
10904 sys_lib_dlsearch_path_spec="/usr/lib"
10905 need_lib_prefix=no
10906 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10907 case $host_os in
10908 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10909 *) need_version=no ;;
10910 esac
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10913 shlibpath_var=LD_LIBRARY_PATH
10914 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10915 case $host_os in
10916 openbsd2.[89] | openbsd2.[89].*)
10917 shlibpath_overrides_runpath=no
10918 ;;
10919 *)
10920 shlibpath_overrides_runpath=yes
10921 ;;
10922 esac
10923 else
10924 shlibpath_overrides_runpath=yes
10925 fi
10926 ;;
10927
10928 os2*)
10929 libname_spec='$name'
10930 shrext_cmds=".dll"
10931 need_lib_prefix=no
10932 library_names_spec='$libname${shared_ext} $libname.a'
10933 dynamic_linker='OS/2 ld.exe'
10934 shlibpath_var=LIBPATH
10935 ;;
10936
10937 osf3* | osf4* | osf5*)
10938 version_type=osf
10939 need_lib_prefix=no
10940 need_version=no
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10945 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10946 ;;
10947
10948 rdos*)
10949 dynamic_linker=no
10950 ;;
10951
10952 solaris*)
10953 version_type=linux
10954 need_lib_prefix=no
10955 need_version=no
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=yes
10960 hardcode_into_libs=yes
10961 # ldd complains unless libraries are executable
10962 postinstall_cmds='chmod +x $lib'
10963 ;;
10964
10965 sunos4*)
10966 version_type=sunos
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=yes
10971 if test "$with_gnu_ld" = yes; then
10972 need_lib_prefix=no
10973 fi
10974 need_version=yes
10975 ;;
10976
10977 sysv4 | sysv4.3*)
10978 version_type=linux
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 case $host_vendor in
10983 sni)
10984 shlibpath_overrides_runpath=no
10985 need_lib_prefix=no
10986 runpath_var=LD_RUN_PATH
10987 ;;
10988 siemens)
10989 need_lib_prefix=no
10990 ;;
10991 motorola)
10992 need_lib_prefix=no
10993 need_version=no
10994 shlibpath_overrides_runpath=no
10995 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10996 ;;
10997 esac
10998 ;;
10999
11000 sysv4*MP*)
11001 if test -d /usr/nec ;then
11002 version_type=linux
11003 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11004 soname_spec='$libname${shared_ext}.$major'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 fi
11007 ;;
11008
11009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11010 version_type=freebsd-elf
11011 need_lib_prefix=no
11012 need_version=no
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 shlibpath_overrides_runpath=yes
11017 hardcode_into_libs=yes
11018 if test "$with_gnu_ld" = yes; then
11019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11020 else
11021 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11022 case $host_os in
11023 sco3.2v5*)
11024 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11025 ;;
11026 esac
11027 fi
11028 sys_lib_dlsearch_path_spec='/usr/lib'
11029 ;;
11030
11031 tpf*)
11032 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11033 version_type=linux
11034 need_lib_prefix=no
11035 need_version=no
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=no
11039 hardcode_into_libs=yes
11040 ;;
11041
11042 uts4*)
11043 version_type=linux
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 ;;
11048
11049 *)
11050 dynamic_linker=no
11051 ;;
11052 esac
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11054 $as_echo "$dynamic_linker" >&6; }
11055 test "$dynamic_linker" = no && can_build_shared=no
11056
11057 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11058 if test "$GCC" = yes; then
11059 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11060 fi
11061
11062 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11063 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11064 fi
11065 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11066 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11067 fi
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11161 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11162 hardcode_action=
11163 if test -n "$hardcode_libdir_flag_spec" ||
11164 test -n "$runpath_var" ||
11165 test "X$hardcode_automatic" = "Xyes" ; then
11166
11167 # We can hardcode non-existent directories.
11168 if test "$hardcode_direct" != no &&
11169 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11170 # have to relink, otherwise we might link with an installed library
11171 # when we should be linking with a yet-to-be-installed one
11172 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11173 test "$hardcode_minus_L" != no; then
11174 # Linking always hardcodes the temporary library directory.
11175 hardcode_action=relink
11176 else
11177 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11178 hardcode_action=immediate
11179 fi
11180 else
11181 # We cannot hardcode anything, or else we can only hardcode existing
11182 # directories.
11183 hardcode_action=unsupported
11184 fi
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11186 $as_echo "$hardcode_action" >&6; }
11187
11188 if test "$hardcode_action" = relink ||
11189 test "$inherit_rpath" = yes; then
11190 # Fast installation is not supported
11191 enable_fast_install=no
11192 elif test "$shlibpath_overrides_runpath" = yes ||
11193 test "$enable_shared" = no; then
11194 # Fast installation is not necessary
11195 enable_fast_install=needless
11196 fi
11197
11198
11199
11200
11201
11202
11203 if test "x$enable_dlopen" != xyes; then
11204 enable_dlopen=unknown
11205 enable_dlopen_self=unknown
11206 enable_dlopen_self_static=unknown
11207 else
11208 lt_cv_dlopen=no
11209 lt_cv_dlopen_libs=
11210
11211 case $host_os in
11212 beos*)
11213 lt_cv_dlopen="load_add_on"
11214 lt_cv_dlopen_libs=
11215 lt_cv_dlopen_self=yes
11216 ;;
11217
11218 mingw* | pw32* | cegcc*)
11219 lt_cv_dlopen="LoadLibrary"
11220 lt_cv_dlopen_libs=
11221 ;;
11222
11223 cygwin*)
11224 lt_cv_dlopen="dlopen"
11225 lt_cv_dlopen_libs=
11226 ;;
11227
11228 darwin*)
11229 # if libdl is installed we need to link against it
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11232 if ${ac_cv_lib_dl_dlopen+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-ldl $LIBS"
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char dlopen ();
11247 int
11248 main ()
11249 {
11250 return dlopen ();
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 if ac_fn_c_try_link "$LINENO"; then :
11256 ac_cv_lib_dl_dlopen=yes
11257 else
11258 ac_cv_lib_dl_dlopen=no
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11265 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11266 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11268 else
11269
11270 lt_cv_dlopen="dyld"
11271 lt_cv_dlopen_libs=
11272 lt_cv_dlopen_self=yes
11273
11274 fi
11275
11276 ;;
11277
11278 *)
11279 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11280 if test "x$ac_cv_func_shl_load" = xyes; then :
11281 lt_cv_dlopen="shl_load"
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11284 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11285 if ${ac_cv_lib_dld_shl_load+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 ac_check_lib_save_LIBS=$LIBS
11289 LIBS="-ldld $LIBS"
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11292
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11296 #ifdef __cplusplus
11297 extern "C"
11298 #endif
11299 char shl_load ();
11300 int
11301 main ()
11302 {
11303 return shl_load ();
11304 ;
11305 return 0;
11306 }
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"; then :
11309 ac_cv_lib_dld_shl_load=yes
11310 else
11311 ac_cv_lib_dld_shl_load=no
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext \
11314 conftest$ac_exeext conftest.$ac_ext
11315 LIBS=$ac_check_lib_save_LIBS
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11318 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11319 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11320 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11321 else
11322 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11323 if test "x$ac_cv_func_dlopen" = xyes; then :
11324 lt_cv_dlopen="dlopen"
11325 else
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11327 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11328 if ${ac_cv_lib_dl_dlopen+:} false; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 ac_check_lib_save_LIBS=$LIBS
11332 LIBS="-ldl $LIBS"
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11335
11336 /* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 char dlopen ();
11343 int
11344 main ()
11345 {
11346 return dlopen ();
11347 ;
11348 return 0;
11349 }
11350 _ACEOF
11351 if ac_fn_c_try_link "$LINENO"; then :
11352 ac_cv_lib_dl_dlopen=yes
11353 else
11354 ac_cv_lib_dl_dlopen=no
11355 fi
11356 rm -f core conftest.err conftest.$ac_objext \
11357 conftest$ac_exeext conftest.$ac_ext
11358 LIBS=$ac_check_lib_save_LIBS
11359 fi
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11361 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11362 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11364 else
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11366 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11367 if ${ac_cv_lib_svld_dlopen+:} false; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 ac_check_lib_save_LIBS=$LIBS
11371 LIBS="-lsvld $LIBS"
11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11374
11375 /* Override any GCC internal prototype to avoid an error.
11376 Use char because int might match the return type of a GCC
11377 builtin and then its argument prototype would still apply. */
11378 #ifdef __cplusplus
11379 extern "C"
11380 #endif
11381 char dlopen ();
11382 int
11383 main ()
11384 {
11385 return dlopen ();
11386 ;
11387 return 0;
11388 }
11389 _ACEOF
11390 if ac_fn_c_try_link "$LINENO"; then :
11391 ac_cv_lib_svld_dlopen=yes
11392 else
11393 ac_cv_lib_svld_dlopen=no
11394 fi
11395 rm -f core conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext conftest.$ac_ext
11397 LIBS=$ac_check_lib_save_LIBS
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11400 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11401 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11405 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11406 if ${ac_cv_lib_dld_dld_link+:} false; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 ac_check_lib_save_LIBS=$LIBS
11410 LIBS="-ldld $LIBS"
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11413
11414 /* Override any GCC internal prototype to avoid an error.
11415 Use char because int might match the return type of a GCC
11416 builtin and then its argument prototype would still apply. */
11417 #ifdef __cplusplus
11418 extern "C"
11419 #endif
11420 char dld_link ();
11421 int
11422 main ()
11423 {
11424 return dld_link ();
11425 ;
11426 return 0;
11427 }
11428 _ACEOF
11429 if ac_fn_c_try_link "$LINENO"; then :
11430 ac_cv_lib_dld_dld_link=yes
11431 else
11432 ac_cv_lib_dld_dld_link=no
11433 fi
11434 rm -f core conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436 LIBS=$ac_check_lib_save_LIBS
11437 fi
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11439 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11440 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11441 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11442 fi
11443
11444
11445 fi
11446
11447
11448 fi
11449
11450
11451 fi
11452
11453
11454 fi
11455
11456
11457 fi
11458
11459 ;;
11460 esac
11461
11462 if test "x$lt_cv_dlopen" != xno; then
11463 enable_dlopen=yes
11464 else
11465 enable_dlopen=no
11466 fi
11467
11468 case $lt_cv_dlopen in
11469 dlopen)
11470 save_CPPFLAGS="$CPPFLAGS"
11471 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11472
11473 save_LDFLAGS="$LDFLAGS"
11474 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11475
11476 save_LIBS="$LIBS"
11477 LIBS="$lt_cv_dlopen_libs $LIBS"
11478
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11480 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11481 if ${lt_cv_dlopen_self+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 if test "$cross_compiling" = yes; then :
11485 lt_cv_dlopen_self=cross
11486 else
11487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11488 lt_status=$lt_dlunknown
11489 cat > conftest.$ac_ext <<_LT_EOF
11490 #line $LINENO "configure"
11491 #include "confdefs.h"
11492
11493 #if HAVE_DLFCN_H
11494 #include <dlfcn.h>
11495 #endif
11496
11497 #include <stdio.h>
11498
11499 #ifdef RTLD_GLOBAL
11500 # define LT_DLGLOBAL RTLD_GLOBAL
11501 #else
11502 # ifdef DL_GLOBAL
11503 # define LT_DLGLOBAL DL_GLOBAL
11504 # else
11505 # define LT_DLGLOBAL 0
11506 # endif
11507 #endif
11508
11509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11510 find out it does not work in some platform. */
11511 #ifndef LT_DLLAZY_OR_NOW
11512 # ifdef RTLD_LAZY
11513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11514 # else
11515 # ifdef DL_LAZY
11516 # define LT_DLLAZY_OR_NOW DL_LAZY
11517 # else
11518 # ifdef RTLD_NOW
11519 # define LT_DLLAZY_OR_NOW RTLD_NOW
11520 # else
11521 # ifdef DL_NOW
11522 # define LT_DLLAZY_OR_NOW DL_NOW
11523 # else
11524 # define LT_DLLAZY_OR_NOW 0
11525 # endif
11526 # endif
11527 # endif
11528 # endif
11529 #endif
11530
11531 /* When -fvisbility=hidden is used, assume the code has been annotated
11532 correspondingly for the symbols needed. */
11533 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11534 void fnord () __attribute__((visibility("default")));
11535 #endif
11536
11537 void fnord () { int i=42; }
11538 int main ()
11539 {
11540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11541 int status = $lt_dlunknown;
11542
11543 if (self)
11544 {
11545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11546 else
11547 {
11548 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11549 else puts (dlerror ());
11550 }
11551 /* dlclose (self); */
11552 }
11553 else
11554 puts (dlerror ());
11555
11556 return status;
11557 }
11558 _LT_EOF
11559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11560 (eval $ac_link) 2>&5
11561 ac_status=$?
11562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11564 (./conftest; exit; ) >&5 2>/dev/null
11565 lt_status=$?
11566 case x$lt_status in
11567 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11568 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11569 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11570 esac
11571 else :
11572 # compilation failed
11573 lt_cv_dlopen_self=no
11574 fi
11575 fi
11576 rm -fr conftest*
11577
11578
11579 fi
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11581 $as_echo "$lt_cv_dlopen_self" >&6; }
11582
11583 if test "x$lt_cv_dlopen_self" = xyes; then
11584 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11586 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11587 if ${lt_cv_dlopen_self_static+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 if test "$cross_compiling" = yes; then :
11591 lt_cv_dlopen_self_static=cross
11592 else
11593 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11594 lt_status=$lt_dlunknown
11595 cat > conftest.$ac_ext <<_LT_EOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11598
11599 #if HAVE_DLFCN_H
11600 #include <dlfcn.h>
11601 #endif
11602
11603 #include <stdio.h>
11604
11605 #ifdef RTLD_GLOBAL
11606 # define LT_DLGLOBAL RTLD_GLOBAL
11607 #else
11608 # ifdef DL_GLOBAL
11609 # define LT_DLGLOBAL DL_GLOBAL
11610 # else
11611 # define LT_DLGLOBAL 0
11612 # endif
11613 #endif
11614
11615 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11616 find out it does not work in some platform. */
11617 #ifndef LT_DLLAZY_OR_NOW
11618 # ifdef RTLD_LAZY
11619 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11620 # else
11621 # ifdef DL_LAZY
11622 # define LT_DLLAZY_OR_NOW DL_LAZY
11623 # else
11624 # ifdef RTLD_NOW
11625 # define LT_DLLAZY_OR_NOW RTLD_NOW
11626 # else
11627 # ifdef DL_NOW
11628 # define LT_DLLAZY_OR_NOW DL_NOW
11629 # else
11630 # define LT_DLLAZY_OR_NOW 0
11631 # endif
11632 # endif
11633 # endif
11634 # endif
11635 #endif
11636
11637 /* When -fvisbility=hidden is used, assume the code has been annotated
11638 correspondingly for the symbols needed. */
11639 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11640 void fnord () __attribute__((visibility("default")));
11641 #endif
11642
11643 void fnord () { int i=42; }
11644 int main ()
11645 {
11646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11647 int status = $lt_dlunknown;
11648
11649 if (self)
11650 {
11651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11652 else
11653 {
11654 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11655 else puts (dlerror ());
11656 }
11657 /* dlclose (self); */
11658 }
11659 else
11660 puts (dlerror ());
11661
11662 return status;
11663 }
11664 _LT_EOF
11665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11666 (eval $ac_link) 2>&5
11667 ac_status=$?
11668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11669 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11670 (./conftest; exit; ) >&5 2>/dev/null
11671 lt_status=$?
11672 case x$lt_status in
11673 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11674 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11675 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11676 esac
11677 else :
11678 # compilation failed
11679 lt_cv_dlopen_self_static=no
11680 fi
11681 fi
11682 rm -fr conftest*
11683
11684
11685 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11687 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11688 fi
11689
11690 CPPFLAGS="$save_CPPFLAGS"
11691 LDFLAGS="$save_LDFLAGS"
11692 LIBS="$save_LIBS"
11693 ;;
11694 esac
11695
11696 case $lt_cv_dlopen_self in
11697 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11698 *) enable_dlopen_self=unknown ;;
11699 esac
11700
11701 case $lt_cv_dlopen_self_static in
11702 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11703 *) enable_dlopen_self_static=unknown ;;
11704 esac
11705 fi
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723 striplib=
11724 old_striplib=
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11726 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11727 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11728 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11729 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11731 $as_echo "yes" >&6; }
11732 else
11733 # FIXME - insert some real tests, host_os isn't really good enough
11734 case $host_os in
11735 darwin*)
11736 if test -n "$STRIP" ; then
11737 striplib="$STRIP -x"
11738 old_striplib="$STRIP -S"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11740 $as_echo "yes" >&6; }
11741 else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745 ;;
11746 *)
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11749 ;;
11750 esac
11751 fi
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764 # Report which library types will actually be built
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11766 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11768 $as_echo "$can_build_shared" >&6; }
11769
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11771 $as_echo_n "checking whether to build shared libraries... " >&6; }
11772 test "$can_build_shared" = "no" && enable_shared=no
11773
11774 # On AIX, shared libraries and static libraries use the same namespace, and
11775 # are all built from PIC.
11776 case $host_os in
11777 aix3*)
11778 test "$enable_shared" = yes && enable_static=no
11779 if test -n "$RANLIB"; then
11780 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11781 postinstall_cmds='$RANLIB $lib'
11782 fi
11783 ;;
11784
11785 aix[4-9]*)
11786 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11787 test "$enable_shared" = yes && enable_static=no
11788 fi
11789 ;;
11790 esac
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11792 $as_echo "$enable_shared" >&6; }
11793
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11795 $as_echo_n "checking whether to build static libraries... " >&6; }
11796 # Make sure either enable_shared or enable_static is yes.
11797 test "$enable_shared" = yes || enable_static=yes
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11799 $as_echo "$enable_static" >&6; }
11800
11801
11802
11803
11804 fi
11805 ac_ext=c
11806 ac_cpp='$CPP $CPPFLAGS'
11807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11810
11811 CC="$lt_save_CC"
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825 ac_config_commands="$ac_config_commands libtool"
11826
11827
11828
11829
11830 # Only expand once:
11831
11832
11833
11834 # Check for dependencies
11835
11836 pkg_failed=no
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XV" >&5
11838 $as_echo_n "checking for XV... " >&6; }
11839
11840 if test -n "$XV_CFLAGS"; then
11841 pkg_cv_XV_CFLAGS="$XV_CFLAGS"
11842 elif test -n "$PKG_CONFIG"; then
11843 if test -n "$PKG_CONFIG" && \
11844 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5
11845 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5
11846 ac_status=$?
11847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11848 test $ac_status = 0; }; then
11849 pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto videoproto" 2>/dev/null`
11850 else
11851 pkg_failed=yes
11852 fi
11853 else
11854 pkg_failed=untried
11855 fi
11856 if test -n "$XV_LIBS"; then
11857 pkg_cv_XV_LIBS="$XV_LIBS"
11858 elif test -n "$PKG_CONFIG"; then
11859 if test -n "$PKG_CONFIG" && \
11860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto videoproto\""; } >&5
11861 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto videoproto") 2>&5
11862 ac_status=$?
11863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11864 test $ac_status = 0; }; then
11865 pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto videoproto" 2>/dev/null`
11866 else
11867 pkg_failed=yes
11868 fi
11869 else
11870 pkg_failed=untried
11871 fi
11872
11873
11874
11875 if test $pkg_failed = yes; then
11876
11877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11878 _pkg_short_errors_supported=yes
11879 else
11880 _pkg_short_errors_supported=no
11881 fi
11882 if test $_pkg_short_errors_supported = yes; then
11883 XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto videoproto" 2>&1`
11884 else
11885 XV_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto videoproto" 2>&1`
11886 fi
11887 # Put the nasty error message in config.log where it belongs
11888 echo "$XV_PKG_ERRORS" >&5
11889
11890 as_fn_error $? "Package requirements (x11 xext xextproto videoproto) were not met:
11891
11892 $XV_PKG_ERRORS
11893
11894 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11895 installed software in a non-standard prefix.
11896
11897 Alternatively, you may set the environment variables XV_CFLAGS
11898 and XV_LIBS to avoid the need to call pkg-config.
11899 See the pkg-config man page for more details.
11900 " "$LINENO" 5
11901 elif test $pkg_failed = untried; then
11902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11904 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11905 is in your PATH or set the PKG_CONFIG environment variable to the full
11906 path to pkg-config.
11907
11908 Alternatively, you may set the environment variables XV_CFLAGS
11909 and XV_LIBS to avoid the need to call pkg-config.
11910 See the pkg-config man page for more details.
11911
11912 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11913 See \`config.log' for more details" "$LINENO" 5; }
11914 else
11915 XV_CFLAGS=$pkg_cv_XV_CFLAGS
11916 XV_LIBS=$pkg_cv_XV_LIBS
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11918 $as_echo "yes" >&6; }
11919 :
11920 fi
11921
11922
11923
11924
11925 # Check whether --enable-malloc0returnsnull was given.
11926 if test "${enable_malloc0returnsnull+set}" = set; then :
11927 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11928 else
11929 MALLOC_ZERO_RETURNS_NULL=auto
11930 fi
11931
11932
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11934 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11935 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11936 if test "$cross_compiling" = yes; then :
11937 MALLOC_ZERO_RETURNS_NULL=yes
11938 else
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941
11942 char *malloc();
11943 char *realloc();
11944 char *calloc();
11945 main() {
11946 char *m0, *r0, *c0, *p;
11947 m0 = malloc(0);
11948 p = malloc(10);
11949 r0 = realloc(p,0);
11950 c0 = calloc(0);
11951 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
11952 }
11953 _ACEOF
11954 if ac_fn_c_try_run "$LINENO"; then :
11955 MALLOC_ZERO_RETURNS_NULL=yes
11956 else
11957 MALLOC_ZERO_RETURNS_NULL=no
11958 fi
11959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11960 conftest.$ac_objext conftest.beam conftest.$ac_ext
11961 fi
11962
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11965 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11966
11967 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11968 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11969 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11970 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11971 else
11972 MALLOC_ZERO_CFLAGS=""
11973 XMALLOC_ZERO_CFLAGS=""
11974 XTMALLOC_ZERO_CFLAGS=""
11975 fi
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 # Check whether --with-lint was given.
11988 if test "${with_lint+set}" = set; then :
11989 withval=$with_lint; use_lint=$withval
11990 else
11991 use_lint=no
11992 fi
11993
11994
11995 # Obtain platform specific info like program name and options
11996 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11997 case $host_os in
11998 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11999 lint_name=splint
12000 lint_options="-badflag"
12001 ;;
12002 *freebsd* | *netbsd*)
12003 lint_name=lint
12004 lint_options="-u -b"
12005 ;;
12006 *solaris*)
12007 lint_name=lint
12008 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12009 ;;
12010 esac
12011
12012 # Test for the presence of the program (either guessed by the code or spelled out by the user)
12013 if test "x$use_lint" = x"yes" ; then
12014 # Extract the first word of "$lint_name", so it can be a program name with args.
12015 set dummy $lint_name; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if ${ac_cv_path_LINT+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 case $LINT in
12022 [\\/]* | ?:[\\/]*)
12023 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12024 ;;
12025 *)
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12028 do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12033 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 break 2
12036 fi
12037 done
12038 done
12039 IFS=$as_save_IFS
12040
12041 ;;
12042 esac
12043 fi
12044 LINT=$ac_cv_path_LINT
12045 if test -n "$LINT"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12047 $as_echo "$LINT" >&6; }
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12051 fi
12052
12053
12054 if test "x$LINT" = "x"; then
12055 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12056 fi
12057 elif test "x$use_lint" = x"no" ; then
12058 if test "x$LINT" != "x"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12060 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12061 fi
12062 else
12063 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12064 fi
12065
12066 # User supplied flags override default flags
12067 if test "x$LINT_FLAGS" != "x"; then
12068 lint_options=$LINT_FLAGS
12069 fi
12070
12071 LINT_FLAGS=$lint_options
12072
12073 if test "x$LINT" != x; then
12074 LINT_TRUE=
12075 LINT_FALSE='#'
12076 else
12077 LINT_TRUE='#'
12078 LINT_FALSE=
12079 fi
12080
12081
12082
12083
12084
12085 # Check whether --enable-lint-library was given.
12086 if test "${enable_lint_library+set}" = set; then :
12087 enableval=$enable_lint_library; make_lint_lib=$enableval
12088 else
12089 make_lint_lib=no
12090 fi
12091
12092
12093 if test "x$make_lint_lib" = x"yes" ; then
12094 LINTLIB=llib-lXv.ln
12095 if test "x$LINT" = "x"; then
12096 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
12097 fi
12098 elif test "x$make_lint_lib" != x"no" ; then
12099 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
12100 fi
12101
12102
12103 if test x$make_lint_lib != xno; then
12104 MAKE_LINT_LIB_TRUE=
12105 MAKE_LINT_LIB_FALSE='#'
12106 else
12107 MAKE_LINT_LIB_TRUE='#'
12108 MAKE_LINT_LIB_FALSE=
12109 fi
12110
12111
12112
12113
12114 ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc"
12115
12116 cat >confcache <<\_ACEOF
12117 # This file is a shell script that caches the results of configure
12118 # tests run on this system so they can be shared between configure
12119 # scripts and configure runs, see configure's option --config-cache.
12120 # It is not useful on other systems. If it contains results you don't
12121 # want to keep, you may remove or edit it.
12122 #
12123 # config.status only pays attention to the cache file if you give it
12124 # the --recheck option to rerun configure.
12125 #
12126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12128 # following values.
12129
12130 _ACEOF
12131
12132 # The following way of writing the cache mishandles newlines in values,
12133 # but we know of no workaround that is simple, portable, and efficient.
12134 # So, we kill variables containing newlines.
12135 # Ultrix sh set writes to stderr and can't be redirected directly,
12136 # and sets the high bit in the cache file unless we assign to the vars.
12137 (
12138 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12139 eval ac_val=\$$ac_var
12140 case $ac_val in #(
12141 *${as_nl}*)
12142 case $ac_var in #(
12143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12145 esac
12146 case $ac_var in #(
12147 _ | IFS | as_nl) ;; #(
12148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12149 *) { eval $ac_var=; unset $ac_var;} ;;
12150 esac ;;
12151 esac
12152 done
12153
12154 (set) 2>&1 |
12155 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12156 *${as_nl}ac_space=\ *)
12157 # `set' does not quote correctly, so add quotes: double-quote
12158 # substitution turns \\\\ into \\, and sed turns \\ into \.
12159 sed -n \
12160 "s/'/'\\\\''/g;
12161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12162 ;; #(
12163 *)
12164 # `set' quotes correctly as required by POSIX, so do not add quotes.
12165 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12166 ;;
12167 esac |
12168 sort
12169 ) |
12170 sed '
12171 /^ac_cv_env_/b end
12172 t clear
12173 :clear
12174 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12175 t end
12176 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12177 :end' >>confcache
12178 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12179 if test -w "$cache_file"; then
12180 if test "x$cache_file" != "x/dev/null"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12182 $as_echo "$as_me: updating cache $cache_file" >&6;}
12183 if test ! -f "$cache_file" || test -h "$cache_file"; then
12184 cat confcache >"$cache_file"
12185 else
12186 case $cache_file in #(
12187 */* | ?:*)
12188 mv -f confcache "$cache_file"$$ &&
12189 mv -f "$cache_file"$$ "$cache_file" ;; #(
12190 *)
12191 mv -f confcache "$cache_file" ;;
12192 esac
12193 fi
12194 fi
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12197 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12198 fi
12199 fi
12200 rm -f confcache
12201
12202 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12203 # Let make expand exec_prefix.
12204 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12205
12206 DEFS=-DHAVE_CONFIG_H
12207
12208 ac_libobjs=
12209 ac_ltlibobjs=
12210 U=
12211 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12212 # 1. Remove the extension, and $U if already installed.
12213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12214 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12216 # will be set to the directory where LIBOBJS objects are built.
12217 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12218 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12219 done
12220 LIBOBJS=$ac_libobjs
12221
12222 LTLIBOBJS=$ac_ltlibobjs
12223
12224
12225 if test -n "$EXEEXT"; then
12226 am__EXEEXT_TRUE=
12227 am__EXEEXT_FALSE='#'
12228 else
12229 am__EXEEXT_TRUE='#'
12230 am__EXEEXT_FALSE=
12231 fi
12232
12233 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12234 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12236 fi
12237 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12238 as_fn_error $? "conditional \"AMDEP\" was never defined.
12239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12240 fi
12241 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12242 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12244 fi
12245 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12246 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12248 fi
12249 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12250 as_fn_error $? "conditional \"LINT\" was never defined.
12251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12252 fi
12253 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
12254 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
12255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12256 fi
12257
12258 : "${CONFIG_STATUS=./config.status}"
12259 ac_write_fail=0
12260 ac_clean_files_save=$ac_clean_files
12261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12263 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12264 as_write_fail=0
12265 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12266 #! $SHELL
12267 # Generated by $as_me.
12268 # Run this file to recreate the current configuration.
12269 # Compiler output produced by configure, useful for debugging
12270 # configure, is in config.log if it exists.
12271
12272 debug=false
12273 ac_cs_recheck=false
12274 ac_cs_silent=false
12275
12276 SHELL=\${CONFIG_SHELL-$SHELL}
12277 export SHELL
12278 _ASEOF
12279 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12280 ## -------------------- ##
12281 ## M4sh Initialization. ##
12282 ## -------------------- ##
12283
12284 # Be more Bourne compatible
12285 DUALCASE=1; export DUALCASE # for MKS sh
12286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12287 emulate sh
12288 NULLCMD=:
12289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12290 # is contrary to our usage. Disable this feature.
12291 alias -g '${1+"$@"}'='"$@"'
12292 setopt NO_GLOB_SUBST
12293 else
12294 case `(set -o) 2>/dev/null` in #(
12295 *posix*) :
12296 set -o posix ;; #(
12297 *) :
12298 ;;
12299 esac
12300 fi
12301
12302
12303 as_nl='
12304 '
12305 export as_nl
12306 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12307 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12310 # Prefer a ksh shell builtin over an external printf program on Solaris,
12311 # but without wasting forks for bash or zsh.
12312 if test -z "$BASH_VERSION$ZSH_VERSION" \
12313 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12314 as_echo='print -r --'
12315 as_echo_n='print -rn --'
12316 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12317 as_echo='printf %s\n'
12318 as_echo_n='printf %s'
12319 else
12320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12322 as_echo_n='/usr/ucb/echo -n'
12323 else
12324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12325 as_echo_n_body='eval
12326 arg=$1;
12327 case $arg in #(
12328 *"$as_nl"*)
12329 expr "X$arg" : "X\\(.*\\)$as_nl";
12330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12331 esac;
12332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12333 '
12334 export as_echo_n_body
12335 as_echo_n='sh -c $as_echo_n_body as_echo'
12336 fi
12337 export as_echo_body
12338 as_echo='sh -c $as_echo_body as_echo'
12339 fi
12340
12341 # The user is always right.
12342 if test "${PATH_SEPARATOR+set}" != set; then
12343 PATH_SEPARATOR=:
12344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12346 PATH_SEPARATOR=';'
12347 }
12348 fi
12349
12350
12351 # IFS
12352 # We need space, tab and new line, in precisely that order. Quoting is
12353 # there to prevent editors from complaining about space-tab.
12354 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12355 # splitting by setting IFS to empty value.)
12356 IFS=" "" $as_nl"
12357
12358 # Find who we are. Look in the path if we contain no directory separator.
12359 as_myself=
12360 case $0 in #((
12361 *[\\/]* ) as_myself=$0 ;;
12362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12364 do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
12367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12368 done
12369 IFS=$as_save_IFS
12370
12371 ;;
12372 esac
12373 # We did not find ourselves, most probably we were run as `sh COMMAND'
12374 # in which case we are not to be found in the path.
12375 if test "x$as_myself" = x; then
12376 as_myself=$0
12377 fi
12378 if test ! -f "$as_myself"; then
12379 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12380 exit 1
12381 fi
12382
12383 # Unset variables that we do not need and which cause bugs (e.g. in
12384 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12385 # suppresses any "Segmentation fault" message there. '((' could
12386 # trigger a bug in pdksh 5.2.14.
12387 for as_var in BASH_ENV ENV MAIL MAILPATH
12388 do eval test x\${$as_var+set} = xset \
12389 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12390 done
12391 PS1='$ '
12392 PS2='> '
12393 PS4='+ '
12394
12395 # NLS nuisances.
12396 LC_ALL=C
12397 export LC_ALL
12398 LANGUAGE=C
12399 export LANGUAGE
12400
12401 # CDPATH.
12402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12403
12404
12405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12406 # ----------------------------------------
12407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12409 # script with STATUS, using 1 if that was 0.
12410 as_fn_error ()
12411 {
12412 as_status=$1; test $as_status -eq 0 && as_status=1
12413 if test "$4"; then
12414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12416 fi
12417 $as_echo "$as_me: error: $2" >&2
12418 as_fn_exit $as_status
12419 } # as_fn_error
12420
12421
12422 # as_fn_set_status STATUS
12423 # -----------------------
12424 # Set $? to STATUS, without forking.
12425 as_fn_set_status ()
12426 {
12427 return $1
12428 } # as_fn_set_status
12429
12430 # as_fn_exit STATUS
12431 # -----------------
12432 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12433 as_fn_exit ()
12434 {
12435 set +e
12436 as_fn_set_status $1
12437 exit $1
12438 } # as_fn_exit
12439
12440 # as_fn_unset VAR
12441 # ---------------
12442 # Portably unset VAR.
12443 as_fn_unset ()
12444 {
12445 { eval $1=; unset $1;}
12446 }
12447 as_unset=as_fn_unset
12448 # as_fn_append VAR VALUE
12449 # ----------------------
12450 # Append the text in VALUE to the end of the definition contained in VAR. Take
12451 # advantage of any shell optimizations that allow amortized linear growth over
12452 # repeated appends, instead of the typical quadratic growth present in naive
12453 # implementations.
12454 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12455 eval 'as_fn_append ()
12456 {
12457 eval $1+=\$2
12458 }'
12459 else
12460 as_fn_append ()
12461 {
12462 eval $1=\$$1\$2
12463 }
12464 fi # as_fn_append
12465
12466 # as_fn_arith ARG...
12467 # ------------------
12468 # Perform arithmetic evaluation on the ARGs, and store the result in the
12469 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12470 # must be portable across $(()) and expr.
12471 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12472 eval 'as_fn_arith ()
12473 {
12474 as_val=$(( $* ))
12475 }'
12476 else
12477 as_fn_arith ()
12478 {
12479 as_val=`expr "$@" || test $? -eq 1`
12480 }
12481 fi # as_fn_arith
12482
12483
12484 if expr a : '\(a\)' >/dev/null 2>&1 &&
12485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12486 as_expr=expr
12487 else
12488 as_expr=false
12489 fi
12490
12491 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12492 as_basename=basename
12493 else
12494 as_basename=false
12495 fi
12496
12497 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12498 as_dirname=dirname
12499 else
12500 as_dirname=false
12501 fi
12502
12503 as_me=`$as_basename -- "$0" ||
12504 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12505 X"$0" : 'X\(//\)$' \| \
12506 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12507 $as_echo X/"$0" |
12508 sed '/^.*\/\([^/][^/]*\)\/*$/{
12509 s//\1/
12510 q
12511 }
12512 /^X\/\(\/\/\)$/{
12513 s//\1/
12514 q
12515 }
12516 /^X\/\(\/\).*/{
12517 s//\1/
12518 q
12519 }
12520 s/.*/./; q'`
12521
12522 # Avoid depending upon Character Ranges.
12523 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12524 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12525 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12526 as_cr_digits='0123456789'
12527 as_cr_alnum=$as_cr_Letters$as_cr_digits
12528
12529 ECHO_C= ECHO_N= ECHO_T=
12530 case `echo -n x` in #(((((
12531 -n*)
12532 case `echo 'xy\c'` in
12533 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12534 xy) ECHO_C='\c';;
12535 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12536 ECHO_T=' ';;
12537 esac;;
12538 *)
12539 ECHO_N='-n';;
12540 esac
12541
12542 rm -f conf$$ conf$$.exe conf$$.file
12543 if test -d conf$$.dir; then
12544 rm -f conf$$.dir/conf$$.file
12545 else
12546 rm -f conf$$.dir
12547 mkdir conf$$.dir 2>/dev/null
12548 fi
12549 if (echo >conf$$.file) 2>/dev/null; then
12550 if ln -s conf$$.file conf$$ 2>/dev/null; then
12551 as_ln_s='ln -s'
12552 # ... but there are two gotchas:
12553 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12554 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12555 # In both cases, we have to default to `cp -p'.
12556 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12557 as_ln_s='cp -p'
12558 elif ln conf$$.file conf$$ 2>/dev/null; then
12559 as_ln_s=ln
12560 else
12561 as_ln_s='cp -p'
12562 fi
12563 else
12564 as_ln_s='cp -p'
12565 fi
12566 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12567 rmdir conf$$.dir 2>/dev/null
12568
12569
12570 # as_fn_mkdir_p
12571 # -------------
12572 # Create "$as_dir" as a directory, including parents if necessary.
12573 as_fn_mkdir_p ()
12574 {
12575
12576 case $as_dir in #(
12577 -*) as_dir=./$as_dir;;
12578 esac
12579 test -d "$as_dir" || eval $as_mkdir_p || {
12580 as_dirs=
12581 while :; do
12582 case $as_dir in #(
12583 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12584 *) as_qdir=$as_dir;;
12585 esac
12586 as_dirs="'$as_qdir' $as_dirs"
12587 as_dir=`$as_dirname -- "$as_dir" ||
12588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12589 X"$as_dir" : 'X\(//\)[^/]' \| \
12590 X"$as_dir" : 'X\(//\)$' \| \
12591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12592 $as_echo X"$as_dir" |
12593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12594 s//\1/
12595 q
12596 }
12597 /^X\(\/\/\)[^/].*/{
12598 s//\1/
12599 q
12600 }
12601 /^X\(\/\/\)$/{
12602 s//\1/
12603 q
12604 }
12605 /^X\(\/\).*/{
12606 s//\1/
12607 q
12608 }
12609 s/.*/./; q'`
12610 test -d "$as_dir" && break
12611 done
12612 test -z "$as_dirs" || eval "mkdir $as_dirs"
12613 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12614
12615
12616 } # as_fn_mkdir_p
12617 if mkdir -p . 2>/dev/null; then
12618 as_mkdir_p='mkdir -p "$as_dir"'
12619 else
12620 test -d ./-p && rmdir ./-p
12621 as_mkdir_p=false
12622 fi
12623
12624 if test -x / >/dev/null 2>&1; then
12625 as_test_x='test -x'
12626 else
12627 if ls -dL / >/dev/null 2>&1; then
12628 as_ls_L_option=L
12629 else
12630 as_ls_L_option=
12631 fi
12632 as_test_x='
12633 eval sh -c '\''
12634 if test -d "$1"; then
12635 test -d "$1/.";
12636 else
12637 case $1 in #(
12638 -*)set "./$1";;
12639 esac;
12640 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12641 ???[sx]*):;;*)false;;esac;fi
12642 '\'' sh
12643 '
12644 fi
12645 as_executable_p=$as_test_x
12646
12647 # Sed expression to map a string onto a valid CPP name.
12648 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12649
12650 # Sed expression to map a string onto a valid variable name.
12651 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12652
12653
12654 exec 6>&1
12655 ## ----------------------------------- ##
12656 ## Main body of $CONFIG_STATUS script. ##
12657 ## ----------------------------------- ##
12658 _ASEOF
12659 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12660
12661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12662 # Save the log message, to keep $0 and so on meaningful, and to
12663 # report actual input values of CONFIG_FILES etc. instead of their
12664 # values after options handling.
12665 ac_log="
12666 This file was extended by libXv $as_me 1.0.6, which was
12667 generated by GNU Autoconf 2.68. Invocation command line was
12668
12669 CONFIG_FILES = $CONFIG_FILES
12670 CONFIG_HEADERS = $CONFIG_HEADERS
12671 CONFIG_LINKS = $CONFIG_LINKS
12672 CONFIG_COMMANDS = $CONFIG_COMMANDS
12673 $ $0 $@
12674
12675 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12676 "
12677
12678 _ACEOF
12679
12680 case $ac_config_files in *"
12681 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12682 esac
12683
12684 case $ac_config_headers in *"
12685 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12686 esac
12687
12688
12689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12690 # Files that config.status was made for.
12691 config_files="$ac_config_files"
12692 config_headers="$ac_config_headers"
12693 config_commands="$ac_config_commands"
12694
12695 _ACEOF
12696
12697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12698 ac_cs_usage="\
12699 \`$as_me' instantiates files and other configuration actions
12700 from templates according to the current configuration. Unless the files
12701 and actions are specified as TAGs, all are instantiated by default.
12702
12703 Usage: $0 [OPTION]... [TAG]...
12704
12705 -h, --help print this help, then exit
12706 -V, --version print version number and configuration settings, then exit
12707 --config print configuration, then exit
12708 -q, --quiet, --silent
12709 do not print progress messages
12710 -d, --debug don't remove temporary files
12711 --recheck update $as_me by reconfiguring in the same conditions
12712 --file=FILE[:TEMPLATE]
12713 instantiate the configuration file FILE
12714 --header=FILE[:TEMPLATE]
12715 instantiate the configuration header FILE
12716
12717 Configuration files:
12718 $config_files
12719
12720 Configuration headers:
12721 $config_headers
12722
12723 Configuration commands:
12724 $config_commands
12725
12726 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12727
12728 _ACEOF
12729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12730 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12731 ac_cs_version="\\
12732 libXv config.status 1.0.6
12733 configured by $0, generated by GNU Autoconf 2.68,
12734 with options \\"\$ac_cs_config\\"
12735
12736 Copyright (C) 2010 Free Software Foundation, Inc.
12737 This config.status script is free software; the Free Software Foundation
12738 gives unlimited permission to copy, distribute and modify it."
12739
12740 ac_pwd='$ac_pwd'
12741 srcdir='$srcdir'
12742 INSTALL='$INSTALL'
12743 MKDIR_P='$MKDIR_P'
12744 AWK='$AWK'
12745 test -n "\$AWK" || AWK=awk
12746 _ACEOF
12747
12748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12749 # The default lists apply if the user does not specify any file.
12750 ac_need_defaults=:
12751 while test $# != 0
12752 do
12753 case $1 in
12754 --*=?*)
12755 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12756 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12757 ac_shift=:
12758 ;;
12759 --*=)
12760 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12761 ac_optarg=
12762 ac_shift=:
12763 ;;
12764 *)
12765 ac_option=$1
12766 ac_optarg=$2
12767 ac_shift=shift
12768 ;;
12769 esac
12770
12771 case $ac_option in
12772 # Handling of the options.
12773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12774 ac_cs_recheck=: ;;
12775 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12776 $as_echo "$ac_cs_version"; exit ;;
12777 --config | --confi | --conf | --con | --co | --c )
12778 $as_echo "$ac_cs_config"; exit ;;
12779 --debug | --debu | --deb | --de | --d | -d )
12780 debug=: ;;
12781 --file | --fil | --fi | --f )
12782 $ac_shift
12783 case $ac_optarg in
12784 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12785 '') as_fn_error $? "missing file argument" ;;
12786 esac
12787 as_fn_append CONFIG_FILES " '$ac_optarg'"
12788 ac_need_defaults=false;;
12789 --header | --heade | --head | --hea )
12790 $ac_shift
12791 case $ac_optarg in
12792 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12793 esac
12794 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12795 ac_need_defaults=false;;
12796 --he | --h)
12797 # Conflict between --help and --header
12798 as_fn_error $? "ambiguous option: \`$1'
12799 Try \`$0 --help' for more information.";;
12800 --help | --hel | -h )
12801 $as_echo "$ac_cs_usage"; exit ;;
12802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12803 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12804 ac_cs_silent=: ;;
12805
12806 # This is an error.
12807 -*) as_fn_error $? "unrecognized option: \`$1'
12808 Try \`$0 --help' for more information." ;;
12809
12810 *) as_fn_append ac_config_targets " $1"
12811 ac_need_defaults=false ;;
12812
12813 esac
12814 shift
12815 done
12816
12817 ac_configure_extra_args=
12818
12819 if $ac_cs_silent; then
12820 exec 6>/dev/null
12821 ac_configure_extra_args="$ac_configure_extra_args --silent"
12822 fi
12823
12824 _ACEOF
12825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12826 if \$ac_cs_recheck; then
12827 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12828 shift
12829 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12830 CONFIG_SHELL='$SHELL'
12831 export CONFIG_SHELL
12832 exec "\$@"
12833 fi
12834
12835 _ACEOF
12836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12837 exec 5>>config.log
12838 {
12839 echo
12840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12841 ## Running $as_me. ##
12842 _ASBOX
12843 $as_echo "$ac_log"
12844 } >&5
12845
12846 _ACEOF
12847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12848 #
12849 # INIT-COMMANDS
12850 #
12851 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12852
12853
12854 # The HP-UX ksh and POSIX shell print the target directory to stdout
12855 # if CDPATH is set.
12856 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12857
12858 sed_quote_subst='$sed_quote_subst'
12859 double_quote_subst='$double_quote_subst'
12860 delay_variable_subst='$delay_variable_subst'
12861 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12862 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12863 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12864 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12865 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12866 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12867 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12868 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12869 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12870 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12871 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12872 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12873 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12874 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12875 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12876 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12877 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12878 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12879 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12880 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12881 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12882 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12883 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12884 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12885 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12886 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12887 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12888 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12889 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12890 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12891 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12892 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12893 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12894 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12895 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12896 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12897 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12898 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12899 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12900 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12901 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12902 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12903 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12904 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12905 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12906 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12907 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12908 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12909 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12910 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12911 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12912 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12913 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12914 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12915 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12916 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12917 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12918 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12919 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12920 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12921 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12922 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12923 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12924 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12925 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12926 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12927 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12928 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12929 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12930 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12931 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12932 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12933 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12934 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12935 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12936 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12937 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12938 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12939 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12940 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12941 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12942 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12943 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12944 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12945 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12946 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12947 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12948 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12949 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12950 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12951 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12952 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12953 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12954 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12955 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12956 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12957 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12958 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12959 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12960 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12961 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12962 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12963 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12964 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12965 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12966 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12967 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12968 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12969 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12970 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12971 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12972 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12973 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12974 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12975 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12976 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12977 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12978 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12979 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12980 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12981
12982 LTCC='$LTCC'
12983 LTCFLAGS='$LTCFLAGS'
12984 compiler='$compiler_DEFAULT'
12985
12986 # A function that is used when there is no print builtin or printf.
12987 func_fallback_echo ()
12988 {
12989 eval 'cat <<_LTECHO_EOF
12990 \$1
12991 _LTECHO_EOF'
12992 }
12993
12994 # Quote evaled strings.
12995 for var in SHELL \
12996 ECHO \
12997 SED \
12998 GREP \
12999 EGREP \
13000 FGREP \
13001 LD \
13002 NM \
13003 LN_S \
13004 lt_SP2NL \
13005 lt_NL2SP \
13006 reload_flag \
13007 OBJDUMP \
13008 deplibs_check_method \
13009 file_magic_cmd \
13010 AR \
13011 AR_FLAGS \
13012 STRIP \
13013 RANLIB \
13014 CC \
13015 CFLAGS \
13016 compiler \
13017 lt_cv_sys_global_symbol_pipe \
13018 lt_cv_sys_global_symbol_to_cdecl \
13019 lt_cv_sys_global_symbol_to_c_name_address \
13020 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13021 lt_prog_compiler_no_builtin_flag \
13022 lt_prog_compiler_wl \
13023 lt_prog_compiler_pic \
13024 lt_prog_compiler_static \
13025 lt_cv_prog_compiler_c_o \
13026 need_locks \
13027 DSYMUTIL \
13028 NMEDIT \
13029 LIPO \
13030 OTOOL \
13031 OTOOL64 \
13032 shrext_cmds \
13033 export_dynamic_flag_spec \
13034 whole_archive_flag_spec \
13035 compiler_needs_object \
13036 with_gnu_ld \
13037 allow_undefined_flag \
13038 no_undefined_flag \
13039 hardcode_libdir_flag_spec \
13040 hardcode_libdir_flag_spec_ld \
13041 hardcode_libdir_separator \
13042 fix_srcfile_path \
13043 exclude_expsyms \
13044 include_expsyms \
13045 file_list_spec \
13046 variables_saved_for_relink \
13047 libname_spec \
13048 library_names_spec \
13049 soname_spec \
13050 install_override_mode \
13051 finish_eval \
13052 old_striplib \
13053 striplib; do
13054 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13055 *[\\\\\\\`\\"\\\$]*)
13056 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13057 ;;
13058 *)
13059 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13060 ;;
13061 esac
13062 done
13063
13064 # Double-quote double-evaled strings.
13065 for var in reload_cmds \
13066 old_postinstall_cmds \
13067 old_postuninstall_cmds \
13068 old_archive_cmds \
13069 extract_expsyms_cmds \
13070 old_archive_from_new_cmds \
13071 old_archive_from_expsyms_cmds \
13072 archive_cmds \
13073 archive_expsym_cmds \
13074 module_cmds \
13075 module_expsym_cmds \
13076 export_symbols_cmds \
13077 prelink_cmds \
13078 postinstall_cmds \
13079 postuninstall_cmds \
13080 finish_cmds \
13081 sys_lib_search_path_spec \
13082 sys_lib_dlsearch_path_spec; do
13083 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13084 *[\\\\\\\`\\"\\\$]*)
13085 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13086 ;;
13087 *)
13088 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13089 ;;
13090 esac
13091 done
13092
13093 ac_aux_dir='$ac_aux_dir'
13094 xsi_shell='$xsi_shell'
13095 lt_shell_append='$lt_shell_append'
13096
13097 # See if we are running on zsh, and set the options which allow our
13098 # commands through without removal of \ escapes INIT.
13099 if test -n "\${ZSH_VERSION+set}" ; then
13100 setopt NO_GLOB_SUBST
13101 fi
13102
13103
13104 PACKAGE='$PACKAGE'
13105 VERSION='$VERSION'
13106 TIMESTAMP='$TIMESTAMP'
13107 RM='$RM'
13108 ofile='$ofile'
13109
13110
13111
13112
13113 _ACEOF
13114
13115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13116
13117 # Handling of arguments.
13118 for ac_config_target in $ac_config_targets
13119 do
13120 case $ac_config_target in
13121 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13123 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13125 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13126 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
13127 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
13128 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13129 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13130 "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;;
13131
13132 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13133 esac
13134 done
13135
13136
13137 # If the user did not use the arguments to specify the items to instantiate,
13138 # then the envvar interface is used. Set only those that are not.
13139 # We use the long form for the default assignment because of an extremely
13140 # bizarre bug on SunOS 4.1.3.
13141 if $ac_need_defaults; then
13142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13144 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13145 fi
13146
13147 # Have a temporary directory for convenience. Make it in the build tree
13148 # simply because there is no reason against having it here, and in addition,
13149 # creating and moving files from /tmp can sometimes cause problems.
13150 # Hook for its removal unless debugging.
13151 # Note that there is a small window in which the directory will not be cleaned:
13152 # after its creation but before its name has been assigned to `$tmp'.
13153 $debug ||
13154 {
13155 tmp= ac_tmp=
13156 trap 'exit_status=$?
13157 : "${ac_tmp:=$tmp}"
13158 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13159 ' 0
13160 trap 'as_fn_exit 1' 1 2 13 15
13161 }
13162 # Create a (secure) tmp directory for tmp files.
13163
13164 {
13165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13166 test -d "$tmp"
13167 } ||
13168 {
13169 tmp=./conf$$-$RANDOM
13170 (umask 077 && mkdir "$tmp")
13171 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13172 ac_tmp=$tmp
13173
13174 # Set up the scripts for CONFIG_FILES section.
13175 # No need to generate them if there are no CONFIG_FILES.
13176 # This happens for instance with `./config.status config.h'.
13177 if test -n "$CONFIG_FILES"; then
13178
13179
13180 ac_cr=`echo X | tr X '\015'`
13181 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13182 # But we know of no other shell where ac_cr would be empty at this
13183 # point, so we can use a bashism as a fallback.
13184 if test "x$ac_cr" = x; then
13185 eval ac_cr=\$\'\\r\'
13186 fi
13187 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13188 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13189 ac_cs_awk_cr='\\r'
13190 else
13191 ac_cs_awk_cr=$ac_cr
13192 fi
13193
13194 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13195 _ACEOF
13196
13197
13198 {
13199 echo "cat >conf$$subs.awk <<_ACEOF" &&
13200 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13201 echo "_ACEOF"
13202 } >conf$$subs.sh ||
13203 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13204 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13205 ac_delim='%!_!# '
13206 for ac_last_try in false false false false false :; do
13207 . ./conf$$subs.sh ||
13208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13209
13210 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13211 if test $ac_delim_n = $ac_delim_num; then
13212 break
13213 elif $ac_last_try; then
13214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13215 else
13216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13217 fi
13218 done
13219 rm -f conf$$subs.sh
13220
13221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13222 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13223 _ACEOF
13224 sed -n '
13225 h
13226 s/^/S["/; s/!.*/"]=/
13227 p
13228 g
13229 s/^[^!]*!//
13230 :repl
13231 t repl
13232 s/'"$ac_delim"'$//
13233 t delim
13234 :nl
13235 h
13236 s/\(.\{148\}\)..*/\1/
13237 t more1
13238 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13239 p
13240 n
13241 b repl
13242 :more1
13243 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13244 p
13245 g
13246 s/.\{148\}//
13247 t nl
13248 :delim
13249 h
13250 s/\(.\{148\}\)..*/\1/
13251 t more2
13252 s/["\\]/\\&/g; s/^/"/; s/$/"/
13253 p
13254 b
13255 :more2
13256 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13257 p
13258 g
13259 s/.\{148\}//
13260 t delim
13261 ' <conf$$subs.awk | sed '
13262 /^[^""]/{
13263 N
13264 s/\n//
13265 }
13266 ' >>$CONFIG_STATUS || ac_write_fail=1
13267 rm -f conf$$subs.awk
13268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13269 _ACAWK
13270 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13271 for (key in S) S_is_set[key] = 1
13272 FS = ""
13273
13274 }
13275 {
13276 line = $ 0
13277 nfields = split(line, field, "@")
13278 substed = 0
13279 len = length(field[1])
13280 for (i = 2; i < nfields; i++) {
13281 key = field[i]
13282 keylen = length(key)
13283 if (S_is_set[key]) {
13284 value = S[key]
13285 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13286 len += length(value) + length(field[++i])
13287 substed = 1
13288 } else
13289 len += 1 + keylen
13290 }
13291
13292 print line
13293 }
13294
13295 _ACAWK
13296 _ACEOF
13297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13298 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13299 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13300 else
13301 cat
13302 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13303 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13304 _ACEOF
13305
13306 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13307 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13308 # trailing colons and then remove the whole line if VPATH becomes empty
13309 # (actually we leave an empty line to preserve line numbers).
13310 if test "x$srcdir" = x.; then
13311 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13312 h
13313 s///
13314 s/^/:/
13315 s/[ ]*$/:/
13316 s/:\$(srcdir):/:/g
13317 s/:\${srcdir}:/:/g
13318 s/:@srcdir@:/:/g
13319 s/^:*//
13320 s/:*$//
13321 x
13322 s/\(=[ ]*\).*/\1/
13323 G
13324 s/\n//
13325 s/^[^=]*=[ ]*$//
13326 }'
13327 fi
13328
13329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13330 fi # test -n "$CONFIG_FILES"
13331
13332 # Set up the scripts for CONFIG_HEADERS section.
13333 # No need to generate them if there are no CONFIG_HEADERS.
13334 # This happens for instance with `./config.status Makefile'.
13335 if test -n "$CONFIG_HEADERS"; then
13336 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13337 BEGIN {
13338 _ACEOF
13339
13340 # Transform confdefs.h into an awk script `defines.awk', embedded as
13341 # here-document in config.status, that substitutes the proper values into
13342 # config.h.in to produce config.h.
13343
13344 # Create a delimiter string that does not exist in confdefs.h, to ease
13345 # handling of long lines.
13346 ac_delim='%!_!# '
13347 for ac_last_try in false false :; do
13348 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13349 if test -z "$ac_tt"; then
13350 break
13351 elif $ac_last_try; then
13352 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13353 else
13354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13355 fi
13356 done
13357
13358 # For the awk script, D is an array of macro values keyed by name,
13359 # likewise P contains macro parameters if any. Preserve backslash
13360 # newline sequences.
13361
13362 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13363 sed -n '
13364 s/.\{148\}/&'"$ac_delim"'/g
13365 t rset
13366 :rset
13367 s/^[ ]*#[ ]*define[ ][ ]*/ /
13368 t def
13369 d
13370 :def
13371 s/\\$//
13372 t bsnl
13373 s/["\\]/\\&/g
13374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13375 D["\1"]=" \3"/p
13376 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13377 d
13378 :bsnl
13379 s/["\\]/\\&/g
13380 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13381 D["\1"]=" \3\\\\\\n"\\/p
13382 t cont
13383 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13384 t cont
13385 d
13386 :cont
13387 n
13388 s/.\{148\}/&'"$ac_delim"'/g
13389 t clear
13390 :clear
13391 s/\\$//
13392 t bsnlc
13393 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13394 d
13395 :bsnlc
13396 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13397 b cont
13398 ' <confdefs.h | sed '
13399 s/'"$ac_delim"'/"\\\
13400 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13401
13402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13403 for (key in D) D_is_set[key] = 1
13404 FS = ""
13405 }
13406 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13407 line = \$ 0
13408 split(line, arg, " ")
13409 if (arg[1] == "#") {
13410 defundef = arg[2]
13411 mac1 = arg[3]
13412 } else {
13413 defundef = substr(arg[1], 2)
13414 mac1 = arg[2]
13415 }
13416 split(mac1, mac2, "(") #)
13417 macro = mac2[1]
13418 prefix = substr(line, 1, index(line, defundef) - 1)
13419 if (D_is_set[macro]) {
13420 # Preserve the white space surrounding the "#".
13421 print prefix "define", macro P[macro] D[macro]
13422 next
13423 } else {
13424 # Replace #undef with comments. This is necessary, for example,
13425 # in the case of _POSIX_SOURCE, which is predefined and required
13426 # on some systems where configure will not decide to define it.
13427 if (defundef == "undef") {
13428 print "/*", prefix defundef, macro, "*/"
13429 next
13430 }
13431 }
13432 }
13433 { print }
13434 _ACAWK
13435 _ACEOF
13436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13437 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13438 fi # test -n "$CONFIG_HEADERS"
13439
13440
13441 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13442 shift
13443 for ac_tag
13444 do
13445 case $ac_tag in
13446 :[FHLC]) ac_mode=$ac_tag; continue;;
13447 esac
13448 case $ac_mode$ac_tag in
13449 :[FHL]*:*);;
13450 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13451 :[FH]-) ac_tag=-:-;;
13452 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13453 esac
13454 ac_save_IFS=$IFS
13455 IFS=:
13456 set x $ac_tag
13457 IFS=$ac_save_IFS
13458 shift
13459 ac_file=$1
13460 shift
13461
13462 case $ac_mode in
13463 :L) ac_source=$1;;
13464 :[FH])
13465 ac_file_inputs=
13466 for ac_f
13467 do
13468 case $ac_f in
13469 -) ac_f="$ac_tmp/stdin";;
13470 *) # Look for the file first in the build tree, then in the source tree
13471 # (if the path is not absolute). The absolute path cannot be DOS-style,
13472 # because $ac_f cannot contain `:'.
13473 test -f "$ac_f" ||
13474 case $ac_f in
13475 [\\/$]*) false;;
13476 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13477 esac ||
13478 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13479 esac
13480 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13481 as_fn_append ac_file_inputs " '$ac_f'"
13482 done
13483
13484 # Let's still pretend it is `configure' which instantiates (i.e., don't
13485 # use $as_me), people would be surprised to read:
13486 # /* config.h. Generated by config.status. */
13487 configure_input='Generated from '`
13488 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13489 `' by configure.'
13490 if test x"$ac_file" != x-; then
13491 configure_input="$ac_file. $configure_input"
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13493 $as_echo "$as_me: creating $ac_file" >&6;}
13494 fi
13495 # Neutralize special characters interpreted by sed in replacement strings.
13496 case $configure_input in #(
13497 *\&* | *\|* | *\\* )
13498 ac_sed_conf_input=`$as_echo "$configure_input" |
13499 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13500 *) ac_sed_conf_input=$configure_input;;
13501 esac
13502
13503 case $ac_tag in
13504 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13505 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13506 esac
13507 ;;
13508 esac
13509
13510 ac_dir=`$as_dirname -- "$ac_file" ||
13511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13512 X"$ac_file" : 'X\(//\)[^/]' \| \
13513 X"$ac_file" : 'X\(//\)$' \| \
13514 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13515 $as_echo X"$ac_file" |
13516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13517 s//\1/
13518 q
13519 }
13520 /^X\(\/\/\)[^/].*/{
13521 s//\1/
13522 q
13523 }
13524 /^X\(\/\/\)$/{
13525 s//\1/
13526 q
13527 }
13528 /^X\(\/\).*/{
13529 s//\1/
13530 q
13531 }
13532 s/.*/./; q'`
13533 as_dir="$ac_dir"; as_fn_mkdir_p
13534 ac_builddir=.
13535
13536 case "$ac_dir" in
13537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13538 *)
13539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13540 # A ".." for each directory in $ac_dir_suffix.
13541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13542 case $ac_top_builddir_sub in
13543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13545 esac ;;
13546 esac
13547 ac_abs_top_builddir=$ac_pwd
13548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13549 # for backward compatibility:
13550 ac_top_builddir=$ac_top_build_prefix
13551
13552 case $srcdir in
13553 .) # We are building in place.
13554 ac_srcdir=.
13555 ac_top_srcdir=$ac_top_builddir_sub
13556 ac_abs_top_srcdir=$ac_pwd ;;
13557 [\\/]* | ?:[\\/]* ) # Absolute name.
13558 ac_srcdir=$srcdir$ac_dir_suffix;
13559 ac_top_srcdir=$srcdir
13560 ac_abs_top_srcdir=$srcdir ;;
13561 *) # Relative name.
13562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13563 ac_top_srcdir=$ac_top_build_prefix$srcdir
13564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13565 esac
13566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13567
13568
13569 case $ac_mode in
13570 :F)
13571 #
13572 # CONFIG_FILE
13573 #
13574
13575 case $INSTALL in
13576 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13577 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13578 esac
13579 ac_MKDIR_P=$MKDIR_P
13580 case $MKDIR_P in
13581 [\\/$]* | ?:[\\/]* ) ;;
13582 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13583 esac
13584 _ACEOF
13585
13586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13587 # If the template does not know about datarootdir, expand it.
13588 # FIXME: This hack should be removed a few years after 2.60.
13589 ac_datarootdir_hack=; ac_datarootdir_seen=
13590 ac_sed_dataroot='
13591 /datarootdir/ {
13592 p
13593 q
13594 }
13595 /@datadir@/p
13596 /@docdir@/p
13597 /@infodir@/p
13598 /@localedir@/p
13599 /@mandir@/p'
13600 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13601 *datarootdir*) ac_datarootdir_seen=yes;;
13602 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13604 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13605 _ACEOF
13606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13607 ac_datarootdir_hack='
13608 s&@datadir@&$datadir&g
13609 s&@docdir@&$docdir&g
13610 s&@infodir@&$infodir&g
13611 s&@localedir@&$localedir&g
13612 s&@mandir@&$mandir&g
13613 s&\\\${datarootdir}&$datarootdir&g' ;;
13614 esac
13615 _ACEOF
13616
13617 # Neutralize VPATH when `$srcdir' = `.'.
13618 # Shell code in configure.ac might set extrasub.
13619 # FIXME: do we really want to maintain this feature?
13620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13621 ac_sed_extra="$ac_vpsub
13622 $extrasub
13623 _ACEOF
13624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13625 :t
13626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13627 s|@configure_input@|$ac_sed_conf_input|;t t
13628 s&@top_builddir@&$ac_top_builddir_sub&;t t
13629 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13630 s&@srcdir@&$ac_srcdir&;t t
13631 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13632 s&@top_srcdir@&$ac_top_srcdir&;t t
13633 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13634 s&@builddir@&$ac_builddir&;t t
13635 s&@abs_builddir@&$ac_abs_builddir&;t t
13636 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13637 s&@INSTALL@&$ac_INSTALL&;t t
13638 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13639 $ac_datarootdir_hack
13640 "
13641 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13642 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13643
13644 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13645 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13646 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13647 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13649 which seems to be undefined. Please make sure it is defined" >&5
13650 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13651 which seems to be undefined. Please make sure it is defined" >&2;}
13652
13653 rm -f "$ac_tmp/stdin"
13654 case $ac_file in
13655 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13656 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13657 esac \
13658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13659 ;;
13660 :H)
13661 #
13662 # CONFIG_HEADER
13663 #
13664 if test x"$ac_file" != x-; then
13665 {
13666 $as_echo "/* $configure_input */" \
13667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13668 } >"$ac_tmp/config.h" \
13669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13670 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13672 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13673 else
13674 rm -f "$ac_file"
13675 mv "$ac_tmp/config.h" "$ac_file" \
13676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13677 fi
13678 else
13679 $as_echo "/* $configure_input */" \
13680 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13681 || as_fn_error $? "could not create -" "$LINENO" 5
13682 fi
13683 # Compute "$ac_file"'s index in $config_headers.
13684 _am_arg="$ac_file"
13685 _am_stamp_count=1
13686 for _am_header in $config_headers :; do
13687 case $_am_header in
13688 $_am_arg | $_am_arg:* )
13689 break ;;
13690 * )
13691 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13692 esac
13693 done
13694 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13695 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13696 X"$_am_arg" : 'X\(//\)[^/]' \| \
13697 X"$_am_arg" : 'X\(//\)$' \| \
13698 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13699 $as_echo X"$_am_arg" |
13700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13701 s//\1/
13702 q
13703 }
13704 /^X\(\/\/\)[^/].*/{
13705 s//\1/
13706 q
13707 }
13708 /^X\(\/\/\)$/{
13709 s//\1/
13710 q
13711 }
13712 /^X\(\/\).*/{
13713 s//\1/
13714 q
13715 }
13716 s/.*/./; q'`/stamp-h$_am_stamp_count
13717 ;;
13718
13719 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13720 $as_echo "$as_me: executing $ac_file commands" >&6;}
13721 ;;
13722 esac
13723
13724
13725 case $ac_file$ac_mode in
13726 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13727 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13728 # are listed without --file. Let's play safe and only enable the eval
13729 # if we detect the quoting.
13730 case $CONFIG_FILES in
13731 *\'*) eval set x "$CONFIG_FILES" ;;
13732 *) set x $CONFIG_FILES ;;
13733 esac
13734 shift
13735 for mf
13736 do
13737 # Strip MF so we end up with the name of the file.
13738 mf=`echo "$mf" | sed -e 's/:.*$//'`
13739 # Check whether this is an Automake generated Makefile or not.
13740 # We used to match only the files named `Makefile.in', but
13741 # some people rename them; so instead we look at the file content.
13742 # Grep'ing the first line is not enough: some people post-process
13743 # each Makefile.in and add a new line on top of each file to say so.
13744 # Grep'ing the whole file is not good either: AIX grep has a line
13745 # limit of 2048, but all sed's we know have understand at least 4000.
13746 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13747 dirpart=`$as_dirname -- "$mf" ||
13748 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13749 X"$mf" : 'X\(//\)[^/]' \| \
13750 X"$mf" : 'X\(//\)$' \| \
13751 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13752 $as_echo X"$mf" |
13753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13754 s//\1/
13755 q
13756 }
13757 /^X\(\/\/\)[^/].*/{
13758 s//\1/
13759 q
13760 }
13761 /^X\(\/\/\)$/{
13762 s//\1/
13763 q
13764 }
13765 /^X\(\/\).*/{
13766 s//\1/
13767 q
13768 }
13769 s/.*/./; q'`
13770 else
13771 continue
13772 fi
13773 # Extract the definition of DEPDIR, am__include, and am__quote
13774 # from the Makefile without running `make'.
13775 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13776 test -z "$DEPDIR" && continue
13777 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13778 test -z "am__include" && continue
13779 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13780 # When using ansi2knr, U may be empty or an underscore; expand it
13781 U=`sed -n 's/^U = //p' < "$mf"`
13782 # Find all dependency output files, they are included files with
13783 # $(DEPDIR) in their names. We invoke sed twice because it is the
13784 # simplest approach to changing $(DEPDIR) to its actual value in the
13785 # expansion.
13786 for file in `sed -n "
13787 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13788 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13789 # Make sure the directory exists.
13790 test -f "$dirpart/$file" && continue
13791 fdir=`$as_dirname -- "$file" ||
13792 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13793 X"$file" : 'X\(//\)[^/]' \| \
13794 X"$file" : 'X\(//\)$' \| \
13795 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13796 $as_echo X"$file" |
13797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13798 s//\1/
13799 q
13800 }
13801 /^X\(\/\/\)[^/].*/{
13802 s//\1/
13803 q
13804 }
13805 /^X\(\/\/\)$/{
13806 s//\1/
13807 q
13808 }
13809 /^X\(\/\).*/{
13810 s//\1/
13811 q
13812 }
13813 s/.*/./; q'`
13814 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13815 # echo "creating $dirpart/$file"
13816 echo '# dummy' > "$dirpart/$file"
13817 done
13818 done
13819 }
13820 ;;
13821 "libtool":C)
13822
13823 # See if we are running on zsh, and set the options which allow our
13824 # commands through without removal of \ escapes.
13825 if test -n "${ZSH_VERSION+set}" ; then
13826 setopt NO_GLOB_SUBST
13827 fi
13828
13829 cfgfile="${ofile}T"
13830 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13831 $RM "$cfgfile"
13832
13833 cat <<_LT_EOF >> "$cfgfile"
13834 #! $SHELL
13835
13836 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13837 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13838 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13839 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13840 #
13841 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13842 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13843 # Inc.
13844 # Written by Gordon Matzigkeit, 1996
13845 #
13846 # This file is part of GNU Libtool.
13847 #
13848 # GNU Libtool is free software; you can redistribute it and/or
13849 # modify it under the terms of the GNU General Public License as
13850 # published by the Free Software Foundation; either version 2 of
13851 # the License, or (at your option) any later version.
13852 #
13853 # As a special exception to the GNU General Public License,
13854 # if you distribute this file as part of a program or library that
13855 # is built using GNU Libtool, you may include this file under the
13856 # same distribution terms that you use for the rest of that program.
13857 #
13858 # GNU Libtool is distributed in the hope that it will be useful,
13859 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13860 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13861 # GNU General Public License for more details.
13862 #
13863 # You should have received a copy of the GNU General Public License
13864 # along with GNU Libtool; see the file COPYING. If not, a copy
13865 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13866 # obtained by writing to the Free Software Foundation, Inc.,
13867 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13868
13869
13870 # The names of the tagged configurations supported by this script.
13871 available_tags=""
13872
13873 # ### BEGIN LIBTOOL CONFIG
13874
13875 # Which release of libtool.m4 was used?
13876 macro_version=$macro_version
13877 macro_revision=$macro_revision
13878
13879 # Whether or not to build shared libraries.
13880 build_libtool_libs=$enable_shared
13881
13882 # Whether or not to build static libraries.
13883 build_old_libs=$enable_static
13884
13885 # What type of objects to build.
13886 pic_mode=$pic_mode
13887
13888 # Whether or not to optimize for fast installation.
13889 fast_install=$enable_fast_install
13890
13891 # Shell to use when invoking shell scripts.
13892 SHELL=$lt_SHELL
13893
13894 # An echo program that protects backslashes.
13895 ECHO=$lt_ECHO
13896
13897 # The host system.
13898 host_alias=$host_alias
13899 host=$host
13900 host_os=$host_os
13901
13902 # The build system.
13903 build_alias=$build_alias
13904 build=$build
13905 build_os=$build_os
13906
13907 # A sed program that does not truncate output.
13908 SED=$lt_SED
13909
13910 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13911 Xsed="\$SED -e 1s/^X//"
13912
13913 # A grep program that handles long lines.
13914 GREP=$lt_GREP
13915
13916 # An ERE matcher.
13917 EGREP=$lt_EGREP
13918
13919 # A literal string matcher.
13920 FGREP=$lt_FGREP
13921
13922 # A BSD- or MS-compatible name lister.
13923 NM=$lt_NM
13924
13925 # Whether we need soft or hard links.
13926 LN_S=$lt_LN_S
13927
13928 # What is the maximum length of a command?
13929 max_cmd_len=$max_cmd_len
13930
13931 # Object file suffix (normally "o").
13932 objext=$ac_objext
13933
13934 # Executable file suffix (normally "").
13935 exeext=$exeext
13936
13937 # whether the shell understands "unset".
13938 lt_unset=$lt_unset
13939
13940 # turn spaces into newlines.
13941 SP2NL=$lt_lt_SP2NL
13942
13943 # turn newlines into spaces.
13944 NL2SP=$lt_lt_NL2SP
13945
13946 # An object symbol dumper.
13947 OBJDUMP=$lt_OBJDUMP
13948
13949 # Method to check whether dependent libraries are shared objects.
13950 deplibs_check_method=$lt_deplibs_check_method
13951
13952 # Command to use when deplibs_check_method == "file_magic".
13953 file_magic_cmd=$lt_file_magic_cmd
13954
13955 # The archiver.
13956 AR=$lt_AR
13957 AR_FLAGS=$lt_AR_FLAGS
13958
13959 # A symbol stripping program.
13960 STRIP=$lt_STRIP
13961
13962 # Commands used to install an old-style archive.
13963 RANLIB=$lt_RANLIB
13964 old_postinstall_cmds=$lt_old_postinstall_cmds
13965 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13966
13967 # Whether to use a lock for old archive extraction.
13968 lock_old_archive_extraction=$lock_old_archive_extraction
13969
13970 # A C compiler.
13971 LTCC=$lt_CC
13972
13973 # LTCC compiler flags.
13974 LTCFLAGS=$lt_CFLAGS
13975
13976 # Take the output of nm and produce a listing of raw symbols and C names.
13977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13978
13979 # Transform the output of nm in a proper C declaration.
13980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13981
13982 # Transform the output of nm in a C name address pair.
13983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13984
13985 # Transform the output of nm in a C name address pair when lib prefix is needed.
13986 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13987
13988 # The name of the directory that contains temporary libtool files.
13989 objdir=$objdir
13990
13991 # Used to examine libraries when file_magic_cmd begins with "file".
13992 MAGIC_CMD=$MAGIC_CMD
13993
13994 # Must we lock files when doing compilation?
13995 need_locks=$lt_need_locks
13996
13997 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13998 DSYMUTIL=$lt_DSYMUTIL
13999
14000 # Tool to change global to local symbols on Mac OS X.
14001 NMEDIT=$lt_NMEDIT
14002
14003 # Tool to manipulate fat objects and archives on Mac OS X.
14004 LIPO=$lt_LIPO
14005
14006 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14007 OTOOL=$lt_OTOOL
14008
14009 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14010 OTOOL64=$lt_OTOOL64
14011
14012 # Old archive suffix (normally "a").
14013 libext=$libext
14014
14015 # Shared library suffix (normally ".so").
14016 shrext_cmds=$lt_shrext_cmds
14017
14018 # The commands to extract the exported symbol list from a shared archive.
14019 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14020
14021 # Variables whose values should be saved in libtool wrapper scripts and
14022 # restored at link time.
14023 variables_saved_for_relink=$lt_variables_saved_for_relink
14024
14025 # Do we need the "lib" prefix for modules?
14026 need_lib_prefix=$need_lib_prefix
14027
14028 # Do we need a version for libraries?
14029 need_version=$need_version
14030
14031 # Library versioning type.
14032 version_type=$version_type
14033
14034 # Shared library runtime path variable.
14035 runpath_var=$runpath_var
14036
14037 # Shared library path variable.
14038 shlibpath_var=$shlibpath_var
14039
14040 # Is shlibpath searched before the hard-coded library search path?
14041 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14042
14043 # Format of library name prefix.
14044 libname_spec=$lt_libname_spec
14045
14046 # List of archive names. First name is the real one, the rest are links.
14047 # The last name is the one that the linker finds with -lNAME
14048 library_names_spec=$lt_library_names_spec
14049
14050 # The coded name of the library, if different from the real name.
14051 soname_spec=$lt_soname_spec
14052
14053 # Permission mode override for installation of shared libraries.
14054 install_override_mode=$lt_install_override_mode
14055
14056 # Command to use after installation of a shared archive.
14057 postinstall_cmds=$lt_postinstall_cmds
14058
14059 # Command to use after uninstallation of a shared archive.
14060 postuninstall_cmds=$lt_postuninstall_cmds
14061
14062 # Commands used to finish a libtool library installation in a directory.
14063 finish_cmds=$lt_finish_cmds
14064
14065 # As "finish_cmds", except a single script fragment to be evaled but
14066 # not shown.
14067 finish_eval=$lt_finish_eval
14068
14069 # Whether we should hardcode library paths into libraries.
14070 hardcode_into_libs=$hardcode_into_libs
14071
14072 # Compile-time system search path for libraries.
14073 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14074
14075 # Run-time system search path for libraries.
14076 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14077
14078 # Whether dlopen is supported.
14079 dlopen_support=$enable_dlopen
14080
14081 # Whether dlopen of programs is supported.
14082 dlopen_self=$enable_dlopen_self
14083
14084 # Whether dlopen of statically linked programs is supported.
14085 dlopen_self_static=$enable_dlopen_self_static
14086
14087 # Commands to strip libraries.
14088 old_striplib=$lt_old_striplib
14089 striplib=$lt_striplib
14090
14091
14092 # The linker used to build libraries.
14093 LD=$lt_LD
14094
14095 # How to create reloadable object files.
14096 reload_flag=$lt_reload_flag
14097 reload_cmds=$lt_reload_cmds
14098
14099 # Commands used to build an old-style archive.
14100 old_archive_cmds=$lt_old_archive_cmds
14101
14102 # A language specific compiler.
14103 CC=$lt_compiler
14104
14105 # Is the compiler the GNU compiler?
14106 with_gcc=$GCC
14107
14108 # Compiler flag to turn off builtin functions.
14109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14110
14111 # How to pass a linker flag through the compiler.
14112 wl=$lt_lt_prog_compiler_wl
14113
14114 # Additional compiler flags for building library objects.
14115 pic_flag=$lt_lt_prog_compiler_pic
14116
14117 # Compiler flag to prevent dynamic linking.
14118 link_static_flag=$lt_lt_prog_compiler_static
14119
14120 # Does compiler simultaneously support -c and -o options?
14121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14122
14123 # Whether or not to add -lc for building shared libraries.
14124 build_libtool_need_lc=$archive_cmds_need_lc
14125
14126 # Whether or not to disallow shared libs when runtime libs are static.
14127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14128
14129 # Compiler flag to allow reflexive dlopens.
14130 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14131
14132 # Compiler flag to generate shared objects directly from archives.
14133 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14134
14135 # Whether the compiler copes with passing no objects directly.
14136 compiler_needs_object=$lt_compiler_needs_object
14137
14138 # Create an old-style archive from a shared archive.
14139 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14140
14141 # Create a temporary old-style archive to link instead of a shared archive.
14142 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14143
14144 # Commands used to build a shared archive.
14145 archive_cmds=$lt_archive_cmds
14146 archive_expsym_cmds=$lt_archive_expsym_cmds
14147
14148 # Commands used to build a loadable module if different from building
14149 # a shared archive.
14150 module_cmds=$lt_module_cmds
14151 module_expsym_cmds=$lt_module_expsym_cmds
14152
14153 # Whether we are building with GNU ld or not.
14154 with_gnu_ld=$lt_with_gnu_ld
14155
14156 # Flag that allows shared libraries with undefined symbols to be built.
14157 allow_undefined_flag=$lt_allow_undefined_flag
14158
14159 # Flag that enforces no undefined symbols.
14160 no_undefined_flag=$lt_no_undefined_flag
14161
14162 # Flag to hardcode \$libdir into a binary during linking.
14163 # This must work even if \$libdir does not exist
14164 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14165
14166 # If ld is used when linking, flag to hardcode \$libdir into a binary
14167 # during linking. This must work even if \$libdir does not exist.
14168 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14169
14170 # Whether we need a single "-rpath" flag with a separated argument.
14171 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14172
14173 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14174 # DIR into the resulting binary.
14175 hardcode_direct=$hardcode_direct
14176
14177 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14178 # DIR into the resulting binary and the resulting library dependency is
14179 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14180 # library is relocated.
14181 hardcode_direct_absolute=$hardcode_direct_absolute
14182
14183 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14184 # into the resulting binary.
14185 hardcode_minus_L=$hardcode_minus_L
14186
14187 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14188 # into the resulting binary.
14189 hardcode_shlibpath_var=$hardcode_shlibpath_var
14190
14191 # Set to "yes" if building a shared library automatically hardcodes DIR
14192 # into the library and all subsequent libraries and executables linked
14193 # against it.
14194 hardcode_automatic=$hardcode_automatic
14195
14196 # Set to yes if linker adds runtime paths of dependent libraries
14197 # to runtime path list.
14198 inherit_rpath=$inherit_rpath
14199
14200 # Whether libtool must link a program against all its dependency libraries.
14201 link_all_deplibs=$link_all_deplibs
14202
14203 # Fix the shell variable \$srcfile for the compiler.
14204 fix_srcfile_path=$lt_fix_srcfile_path
14205
14206 # Set to "yes" if exported symbols are required.
14207 always_export_symbols=$always_export_symbols
14208
14209 # The commands to list exported symbols.
14210 export_symbols_cmds=$lt_export_symbols_cmds
14211
14212 # Symbols that should not be listed in the preloaded symbols.
14213 exclude_expsyms=$lt_exclude_expsyms
14214
14215 # Symbols that must always be exported.
14216 include_expsyms=$lt_include_expsyms
14217
14218 # Commands necessary for linking programs (against libraries) with templates.
14219 prelink_cmds=$lt_prelink_cmds
14220
14221 # Specify filename containing input files.
14222 file_list_spec=$lt_file_list_spec
14223
14224 # How to hardcode a shared library path into an executable.
14225 hardcode_action=$hardcode_action
14226
14227 # ### END LIBTOOL CONFIG
14228
14229 _LT_EOF
14230
14231 case $host_os in
14232 aix3*)
14233 cat <<\_LT_EOF >> "$cfgfile"
14234 # AIX sometimes has problems with the GCC collect2 program. For some
14235 # reason, if we set the COLLECT_NAMES environment variable, the problems
14236 # vanish in a puff of smoke.
14237 if test "X${COLLECT_NAMES+set}" != Xset; then
14238 COLLECT_NAMES=
14239 export COLLECT_NAMES
14240 fi
14241 _LT_EOF
14242 ;;
14243 esac
14244
14245
14246 ltmain="$ac_aux_dir/ltmain.sh"
14247
14248
14249 # We use sed instead of cat because bash on DJGPP gets confused if
14250 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14251 # text mode, it properly converts lines to CR/LF. This bash problem
14252 # is reportedly fixed, but why not run on old versions too?
14253 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14254 || (rm -f "$cfgfile"; exit 1)
14255
14256 case $xsi_shell in
14257 yes)
14258 cat << \_LT_EOF >> "$cfgfile"
14259
14260 # func_dirname file append nondir_replacement
14261 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14262 # otherwise set result to NONDIR_REPLACEMENT.
14263 func_dirname ()
14264 {
14265 case ${1} in
14266 */*) func_dirname_result="${1%/*}${2}" ;;
14267 * ) func_dirname_result="${3}" ;;
14268 esac
14269 }
14270
14271 # func_basename file
14272 func_basename ()
14273 {
14274 func_basename_result="${1##*/}"
14275 }
14276
14277 # func_dirname_and_basename file append nondir_replacement
14278 # perform func_basename and func_dirname in a single function
14279 # call:
14280 # dirname: Compute the dirname of FILE. If nonempty,
14281 # add APPEND to the result, otherwise set result
14282 # to NONDIR_REPLACEMENT.
14283 # value returned in "$func_dirname_result"
14284 # basename: Compute filename of FILE.
14285 # value retuned in "$func_basename_result"
14286 # Implementation must be kept synchronized with func_dirname
14287 # and func_basename. For efficiency, we do not delegate to
14288 # those functions but instead duplicate the functionality here.
14289 func_dirname_and_basename ()
14290 {
14291 case ${1} in
14292 */*) func_dirname_result="${1%/*}${2}" ;;
14293 * ) func_dirname_result="${3}" ;;
14294 esac
14295 func_basename_result="${1##*/}"
14296 }
14297
14298 # func_stripname prefix suffix name
14299 # strip PREFIX and SUFFIX off of NAME.
14300 # PREFIX and SUFFIX must not contain globbing or regex special
14301 # characters, hashes, percent signs, but SUFFIX may contain a leading
14302 # dot (in which case that matches only a dot).
14303 func_stripname ()
14304 {
14305 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14306 # positional parameters, so assign one to ordinary parameter first.
14307 func_stripname_result=${3}
14308 func_stripname_result=${func_stripname_result#"${1}"}
14309 func_stripname_result=${func_stripname_result%"${2}"}
14310 }
14311
14312 # func_opt_split
14313 func_opt_split ()
14314 {
14315 func_opt_split_opt=${1%%=*}
14316 func_opt_split_arg=${1#*=}
14317 }
14318
14319 # func_lo2o object
14320 func_lo2o ()
14321 {
14322 case ${1} in
14323 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14324 *) func_lo2o_result=${1} ;;
14325 esac
14326 }
14327
14328 # func_xform libobj-or-source
14329 func_xform ()
14330 {
14331 func_xform_result=${1%.*}.lo
14332 }
14333
14334 # func_arith arithmetic-term...
14335 func_arith ()
14336 {
14337 func_arith_result=$(( $* ))
14338 }
14339
14340 # func_len string
14341 # STRING may not start with a hyphen.
14342 func_len ()
14343 {
14344 func_len_result=${#1}
14345 }
14346
14347 _LT_EOF
14348 ;;
14349 *) # Bourne compatible functions.
14350 cat << \_LT_EOF >> "$cfgfile"
14351
14352 # func_dirname file append nondir_replacement
14353 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14354 # otherwise set result to NONDIR_REPLACEMENT.
14355 func_dirname ()
14356 {
14357 # Extract subdirectory from the argument.
14358 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14359 if test "X$func_dirname_result" = "X${1}"; then
14360 func_dirname_result="${3}"
14361 else
14362 func_dirname_result="$func_dirname_result${2}"
14363 fi
14364 }
14365
14366 # func_basename file
14367 func_basename ()
14368 {
14369 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14370 }
14371
14372
14373 # func_stripname prefix suffix name
14374 # strip PREFIX and SUFFIX off of NAME.
14375 # PREFIX and SUFFIX must not contain globbing or regex special
14376 # characters, hashes, percent signs, but SUFFIX may contain a leading
14377 # dot (in which case that matches only a dot).
14378 # func_strip_suffix prefix name
14379 func_stripname ()
14380 {
14381 case ${2} in
14382 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14383 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14384 esac
14385 }
14386
14387 # sed scripts:
14388 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14389 my_sed_long_arg='1s/^-[^=]*=//'
14390
14391 # func_opt_split
14392 func_opt_split ()
14393 {
14394 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14395 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14396 }
14397
14398 # func_lo2o object
14399 func_lo2o ()
14400 {
14401 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14402 }
14403
14404 # func_xform libobj-or-source
14405 func_xform ()
14406 {
14407 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14408 }
14409
14410 # func_arith arithmetic-term...
14411 func_arith ()
14412 {
14413 func_arith_result=`expr "$@"`
14414 }
14415
14416 # func_len string
14417 # STRING may not start with a hyphen.
14418 func_len ()
14419 {
14420 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14421 }
14422
14423 _LT_EOF
14424 esac
14425
14426 case $lt_shell_append in
14427 yes)
14428 cat << \_LT_EOF >> "$cfgfile"
14429
14430 # func_append var value
14431 # Append VALUE to the end of shell variable VAR.
14432 func_append ()
14433 {
14434 eval "$1+=\$2"
14435 }
14436 _LT_EOF
14437 ;;
14438 *)
14439 cat << \_LT_EOF >> "$cfgfile"
14440
14441 # func_append var value
14442 # Append VALUE to the end of shell variable VAR.
14443 func_append ()
14444 {
14445 eval "$1=\$$1\$2"
14446 }
14447
14448 _LT_EOF
14449 ;;
14450 esac
14451
14452
14453 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14454 || (rm -f "$cfgfile"; exit 1)
14455
14456 mv -f "$cfgfile" "$ofile" ||
14457 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14458 chmod +x "$ofile"
14459
14460 ;;
14461
14462 esac
14463 done # for ac_tag
14464
14465
14466 as_fn_exit 0
14467 _ACEOF
14468 ac_clean_files=$ac_clean_files_save
14469
14470 test $ac_write_fail = 0 ||
14471 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14472
14473
14474 # configure is writing to config.log, and then calls config.status.
14475 # config.status does its own redirection, appending to config.log.
14476 # Unfortunately, on DOS this fails, as config.log is still kept open
14477 # by configure, so config.status won't be able to write to it; its
14478 # output is simply discarded. So we exec the FD to /dev/null,
14479 # effectively closing config.log, so it can be properly (re)opened and
14480 # appended to by config.status. When coming back to configure, we
14481 # need to make the FD available again.
14482 if test "$no_create" != yes; then
14483 ac_cs_success=:
14484 ac_config_status_args=
14485 test "$silent" = yes &&
14486 ac_config_status_args="$ac_config_status_args --quiet"
14487 exec 5>/dev/null
14488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14489 exec 5>>config.log
14490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14491 # would make configure fail if this is the last instruction.
14492 $ac_cs_success || as_fn_exit 1
14493 fi
14494 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14496 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14497 fi
14498
14499