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.69 for xf86-video-openchrome 0.4.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-video-openchrome'
593 PACKAGE_TARNAME='xf86-video-openchrome'
594 PACKAGE_VERSION='0.4.0'
595 PACKAGE_STRING='xf86-video-openchrome 0.4.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 MAN_SUBSTS
641 XORG_MAN_PAGE
642 ADMIN_MAN_DIR
643 DRIVER_MAN_DIR
644 MISC_MAN_DIR
645 FILE_MAN_DIR
646 LIB_MAN_DIR
647 APP_MAN_DIR
648 ADMIN_MAN_SUFFIX
649 MISC_MAN_SUFFIX
650 FILE_MAN_SUFFIX
651 LIB_MAN_SUFFIX
652 APP_MAN_SUFFIX
653 DRIVER_MAN_SUFFIX
654 DRIVER_NAME
655 moduledir
656 TOOLS_FALSE
657 TOOLS_TRUE
658 XV_DEBUG_FALSE
659 XV_DEBUG_TRUE
660 DEBUG_FALSE
661 DEBUG_TRUE
662 XVMC_FALSE
663 XVMC_TRUE
664 XVMC_LIBS
665 XVMC_CFLAGS
666 LIBUDEV_LIBS
667 LIBUDEV_CFLAGS
668 DRI_FALSE
669 DRI_TRUE
670 DRI_LIBS
671 DRI_CFLAGS
672 PCIACCESS_LIBS
673 PCIACCESS_CFLAGS
674 HAVE_XEXTPROTO_71_FALSE
675 HAVE_XEXTPROTO_71_TRUE
676 XEXT_LIBS
677 XEXT_CFLAGS
678 XORG_LIBS
679 XORG_CFLAGS
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 CPP
684 LT_SYS_LIBRARY_PATH
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
690 MANIFEST_TOOL
691 RANLIB
692 ac_ct_AR
693 AR
694 DLLTOOL
695 OBJDUMP
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 LIBTOOL
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_maintainer_mode
804 enable_static
805 enable_shared
806 with_pic
807 enable_fast_install
808 with_aix_soname
809 enable_dependency_tracking
810 with_gnu_ld
811 with_sysroot
812 enable_libtool_lock
813 enable_largefile
814 with_xorg_module_dir
815 enable_debug
816 enable_xv_debug
817 enable_viaregtool
818 with_release_version
819 '
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 LT_SYS_LIBRARY_PATH
829 CPP
830 PKG_CONFIG
831 PKG_CONFIG_PATH
832 PKG_CONFIG_LIBDIR
833 XORG_CFLAGS
834 XORG_LIBS
835 XEXT_CFLAGS
836 XEXT_LIBS
837 PCIACCESS_CFLAGS
838 PCIACCESS_LIBS
839 DRI_CFLAGS
840 DRI_LIBS
841 LIBUDEV_CFLAGS
842 LIBUDEV_LIBS
843 XVMC_CFLAGS
844 XVMC_LIBS'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
904 fi
905
906 case $ac_option in
907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *=) ac_optarg= ;;
909 *) ac_optarg=yes ;;
910 esac
911
912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
917
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
922
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
927
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
937
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
942
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
975
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1011
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1016
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1046
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1120
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1273 do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385 \`configure' configures xf86-video-openchrome 0.4.0 to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 [PREFIX]
1410
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root
1434 [DATAROOTDIR/doc/xf86-video-openchrome]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of xf86-video-openchrome 0.4.0:";;
1457 esac
1458 cat <<\_ACEOF
1459
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-maintainer-mode
1467 enable make rules and dependencies not useful (and
1468 sometimes confusing) to the casual installer
1469 --enable-static[=PKGS] build static libraries [default=no]
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1478 --disable-largefile omit support for large files
1479 --enable-debug Enable debugging support [[default=no]]
1480 --enable-xv-debug Enable XVideo debugging support [[default=no]]
1481 --enable-viaregtool Enable build of registers dumper tool [[default=no]]
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-aix-soname=aix|svr4|both
1489 shared library versioning (aka "SONAME") variant to
1490 provide on AIX, [default=aix].
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1493 compiler's sysroot if not specified).
1494 --with-xorg-module-dir=DIR
1495 Default xorg module directory
1496 [[default=$libdir/xorg/modules]]
1497 --with-release-version=STRING
1498 Use release version string in package name
1499
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 LT_SYS_LIBRARY_PATH
1509 User-defined run-time library search path.
1510 CPP C preprocessor
1511 PKG_CONFIG path to pkg-config utility
1512 PKG_CONFIG_PATH
1513 directories to add to pkg-config's search path
1514 PKG_CONFIG_LIBDIR
1515 path overriding pkg-config's built-in search path
1516 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1517 XORG_LIBS linker flags for XORG, overriding pkg-config
1518 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1519 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1520 PCIACCESS_CFLAGS
1521 C compiler flags for PCIACCESS, overriding pkg-config
1522 PCIACCESS_LIBS
1523 linker flags for PCIACCESS, overriding pkg-config
1524 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1525 DRI_LIBS linker flags for DRI, overriding pkg-config
1526 LIBUDEV_CFLAGS
1527 C compiler flags for LIBUDEV, overriding pkg-config
1528 LIBUDEV_LIBS
1529 linker flags for LIBUDEV, overriding pkg-config
1530 XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1531 XVMC_LIBS linker flags for XVMC, overriding pkg-config
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 xf86-video-openchrome configure 0.4.0
1600 generated by GNU Autoconf 2.69
1601
1602 Copyright (C) 2012 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_link ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest$ac_exeext
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest$ac_exeext && {
1677 test "$cross_compiling" = yes ||
1678 test -x conftest$ac_exeext
1679 }; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1
1686 fi
1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689 # interfere with the next link command; also delete a directory that is
1690 # left behind by Apple's compiler. We do this before executing the actions.
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_link
1696
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 eval "$3=yes"
1716 else
1717 eval "$3=no"
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 fi
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726 } # ac_fn_c_check_header_compile
1727
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1747 fi
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } > conftest.i && {
1750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_cpp
1764
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1769 ac_fn_c_try_run ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783 { { case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_try") 2>&5
1790 ac_status=$?
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; }; }; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: program exited with status $ac_status" >&5
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=$ac_status
1800 fi
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_run
1806
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1822 #define $2 innocuous_$2
1823
1824 /* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $2 (); below.
1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827 <limits.h> exists even on freestanding compilers. */
1828
1829 #ifdef __STDC__
1830 # include <limits.h>
1831 #else
1832 # include <assert.h>
1833 #endif
1834
1835 #undef $2
1836
1837 /* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 char $2 ();
1844 /* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847 #if defined __stub_$2 || defined __stub___$2
1848 choke me
1849 #endif
1850
1851 int
1852 main ()
1853 {
1854 return $2 ();
1855 ;
1856 return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_link "$LINENO"; then :
1860 eval "$3=yes"
1861 else
1862 eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext \
1865 conftest$ac_exeext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_func
1873
1874 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1875 # ----------------------------------------------
1876 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1877 ac_fn_c_check_header_preproc ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 #include <$2>
1888 _ACEOF
1889 if ac_fn_c_try_cpp "$LINENO"; then :
1890 eval "$3=yes"
1891 else
1892 eval "$3=no"
1893 fi
1894 rm -f conftest.err conftest.i conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_header_preproc
1902
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1907 # accordingly.
1908 ac_fn_c_check_header_mongrel ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if eval \${$3+:} false; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1916 fi
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 else
1921 # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $4
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_header_compiler=yes
1931 else
1932 ac_header_compiler=no
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1937
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_cpp "$LINENO"; then :
1946 ac_header_preproc=yes
1947 else
1948 ac_header_preproc=no
1949 fi
1950 rm -f conftest.err conftest.i conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1953
1954 # So? What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1956 yes:no: )
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 ;;
1962 no:yes:* )
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 ( $as_echo "## -------------------------------------------------------------------------------------------------- ##
1974 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome ##
1975 ## -------------------------------------------------------------------------------------------------- ##"
1976 ) | sed "s/^/$as_me: WARNING: /" >&2
1977 ;;
1978 esac
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval \${$3+:} false; then :
1982 $as_echo_n "(cached) " >&6
1983 else
1984 eval "$3=\$ac_header_compiler"
1985 fi
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 fi
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992 } # ac_fn_c_check_header_mongrel
1993 cat >config.log <<_ACEOF
1994 This file contains any messages produced by compilers while
1995 running configure, to aid debugging if configure makes a mistake.
1996
1997 It was created by xf86-video-openchrome $as_me 0.4.0, which was
1998 generated by GNU Autoconf 2.69. Invocation command line was
1999
2000 $ $0 $@
2001
2002 _ACEOF
2003 exec 5>>config.log
2004 {
2005 cat <<_ASUNAME
2006 ## --------- ##
2007 ## Platform. ##
2008 ## --------- ##
2009
2010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2015
2016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2017 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2018
2019 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2020 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2022 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2023 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2024 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2025 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2026
2027 _ASUNAME
2028
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 $as_echo "PATH: $as_dir"
2035 done
2036 IFS=$as_save_IFS
2037
2038 } >&5
2039
2040 cat >&5 <<_ACEOF
2041
2042
2043 ## ----------- ##
2044 ## Core tests. ##
2045 ## ----------- ##
2046
2047 _ACEOF
2048
2049
2050 # Keep a trace of the command line.
2051 # Strip out --no-create and --no-recursion so they do not pile up.
2052 # Strip out --silent because we don't want to record it for future runs.
2053 # Also quote any args containing shell meta-characters.
2054 # Make two passes to allow for proper duplicate-argument suppression.
2055 ac_configure_args=
2056 ac_configure_args0=
2057 ac_configure_args1=
2058 ac_must_keep_next=false
2059 for ac_pass in 1 2
2060 do
2061 for ac_arg
2062 do
2063 case $ac_arg in
2064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2066 | -silent | --silent | --silen | --sile | --sil)
2067 continue ;;
2068 *\'*)
2069 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2070 esac
2071 case $ac_pass in
2072 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2073 2)
2074 as_fn_append ac_configure_args1 " '$ac_arg'"
2075 if test $ac_must_keep_next = true; then
2076 ac_must_keep_next=false # Got value, back to normal.
2077 else
2078 case $ac_arg in
2079 *=* | --config-cache | -C | -disable-* | --disable-* \
2080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2082 | -with-* | --with-* | -without-* | --without-* | --x)
2083 case "$ac_configure_args0 " in
2084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2085 esac
2086 ;;
2087 -* ) ac_must_keep_next=true ;;
2088 esac
2089 fi
2090 as_fn_append ac_configure_args " '$ac_arg'"
2091 ;;
2092 esac
2093 done
2094 done
2095 { ac_configure_args0=; unset ac_configure_args0;}
2096 { ac_configure_args1=; unset ac_configure_args1;}
2097
2098 # When interrupted or exit'd, cleanup temporary files, and complete
2099 # config.log. We remove comments because anyway the quotes in there
2100 # would cause problems or look ugly.
2101 # WARNING: Use '\'' to represent an apostrophe within the trap.
2102 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2103 trap 'exit_status=$?
2104 # Save into config.log some information that might help in debugging.
2105 {
2106 echo
2107
2108 $as_echo "## ---------------- ##
2109 ## Cache variables. ##
2110 ## ---------------- ##"
2111 echo
2112 # The following way of writing the cache mishandles newlines in values,
2113 (
2114 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2115 eval ac_val=\$$ac_var
2116 case $ac_val in #(
2117 *${as_nl}*)
2118 case $ac_var in #(
2119 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2120 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2121 esac
2122 case $ac_var in #(
2123 _ | IFS | as_nl) ;; #(
2124 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2125 *) { eval $ac_var=; unset $ac_var;} ;;
2126 esac ;;
2127 esac
2128 done
2129 (set) 2>&1 |
2130 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2131 *${as_nl}ac_space=\ *)
2132 sed -n \
2133 "s/'\''/'\''\\\\'\'''\''/g;
2134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2135 ;; #(
2136 *)
2137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2138 ;;
2139 esac |
2140 sort
2141 )
2142 echo
2143
2144 $as_echo "## ----------------- ##
2145 ## Output variables. ##
2146 ## ----------------- ##"
2147 echo
2148 for ac_var in $ac_subst_vars
2149 do
2150 eval ac_val=\$$ac_var
2151 case $ac_val in
2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 esac
2154 $as_echo "$ac_var='\''$ac_val'\''"
2155 done | sort
2156 echo
2157
2158 if test -n "$ac_subst_files"; then
2159 $as_echo "## ------------------- ##
2160 ## File substitutions. ##
2161 ## ------------------- ##"
2162 echo
2163 for ac_var in $ac_subst_files
2164 do
2165 eval ac_val=\$$ac_var
2166 case $ac_val in
2167 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2168 esac
2169 $as_echo "$ac_var='\''$ac_val'\''"
2170 done | sort
2171 echo
2172 fi
2173
2174 if test -s confdefs.h; then
2175 $as_echo "## ----------- ##
2176 ## confdefs.h. ##
2177 ## ----------- ##"
2178 echo
2179 cat confdefs.h
2180 echo
2181 fi
2182 test "$ac_signal" != 0 &&
2183 $as_echo "$as_me: caught signal $ac_signal"
2184 $as_echo "$as_me: exit $exit_status"
2185 } >&5
2186 rm -f core *.core core.conftest.* &&
2187 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2188 exit $exit_status
2189 ' 0
2190 for ac_signal in 1 2 13 15; do
2191 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2192 done
2193 ac_signal=0
2194
2195 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2196 rm -f -r conftest* confdefs.h
2197
2198 $as_echo "/* confdefs.h */" > confdefs.h
2199
2200 # Predefined preprocessor variables.
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_NAME "$PACKAGE_NAME"
2204 _ACEOF
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_STRING "$PACKAGE_STRING"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_URL "$PACKAGE_URL"
2224 _ACEOF
2225
2226
2227 # Let the site file select an alternate cache file if it wants to.
2228 # Prefer an explicitly selected file to automatically selected ones.
2229 ac_site_file1=NONE
2230 ac_site_file2=NONE
2231 if test -n "$CONFIG_SITE"; then
2232 # We do not want a PATH search for config.site.
2233 case $CONFIG_SITE in #((
2234 -*) ac_site_file1=./$CONFIG_SITE;;
2235 */*) ac_site_file1=$CONFIG_SITE;;
2236 *) ac_site_file1=./$CONFIG_SITE;;
2237 esac
2238 elif test "x$prefix" != xNONE; then
2239 ac_site_file1=$prefix/share/config.site
2240 ac_site_file2=$prefix/etc/config.site
2241 else
2242 ac_site_file1=$ac_default_prefix/share/config.site
2243 ac_site_file2=$ac_default_prefix/etc/config.site
2244 fi
2245 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2246 do
2247 test "x$ac_site_file" = xNONE && continue
2248 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2250 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2251 sed 's/^/| /' "$ac_site_file" >&5
2252 . "$ac_site_file" \
2253 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255 as_fn_error $? "failed to load site script $ac_site_file
2256 See \`config.log' for more details" "$LINENO" 5; }
2257 fi
2258 done
2259
2260 if test -r "$cache_file"; then
2261 # Some versions of bash will fail to source /dev/null (special files
2262 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2263 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2265 $as_echo "$as_me: loading cache $cache_file" >&6;}
2266 case $cache_file in
2267 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2268 *) . "./$cache_file";;
2269 esac
2270 fi
2271 else
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2273 $as_echo "$as_me: creating cache $cache_file" >&6;}
2274 >$cache_file
2275 fi
2276
2277 # Check that the precious variables saved in the cache have kept the same
2278 # value.
2279 ac_cache_corrupted=false
2280 for ac_var in $ac_precious_vars; do
2281 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2282 eval ac_new_set=\$ac_env_${ac_var}_set
2283 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2284 eval ac_new_val=\$ac_env_${ac_var}_value
2285 case $ac_old_set,$ac_new_set in
2286 set,)
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2288 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2289 ac_cache_corrupted=: ;;
2290 ,set)
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2292 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2293 ac_cache_corrupted=: ;;
2294 ,);;
2295 *)
2296 if test "x$ac_old_val" != "x$ac_new_val"; then
2297 # differences in whitespace do not lead to failure.
2298 ac_old_val_w=`echo x $ac_old_val`
2299 ac_new_val_w=`echo x $ac_new_val`
2300 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2302 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2303 ac_cache_corrupted=:
2304 else
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2306 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2307 eval $ac_var=\$ac_old_val
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2310 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2312 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2313 fi;;
2314 esac
2315 # Pass precious variables to config.status.
2316 if test "$ac_new_set" = set; then
2317 case $ac_new_val in
2318 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2319 *) ac_arg=$ac_var=$ac_new_val ;;
2320 esac
2321 case " $ac_configure_args " in
2322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2323 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2324 esac
2325 fi
2326 done
2327 if $ac_cache_corrupted; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2331 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2332 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2333 fi
2334 ## -------------------- ##
2335 ## Main body of script. ##
2336 ## -------------------- ##
2337
2338 ac_ext=c
2339 ac_cpp='$CPP $CPPFLAGS'
2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343
2344
2345
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define VIA_MAJOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/')
2349 _ACEOF
2350
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define VIA_MINOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/')
2354 _ACEOF
2355
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define VIA_PATCHLEVEL $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/')
2359 _ACEOF
2360
2361
2362
2363 ac_config_headers="$ac_config_headers config.h"
2364
2365 ac_aux_dir=
2366 for ac_dir in . "$srcdir"/.; do
2367 if test -f "$ac_dir/install-sh"; then
2368 ac_aux_dir=$ac_dir
2369 ac_install_sh="$ac_aux_dir/install-sh -c"
2370 break
2371 elif test -f "$ac_dir/install.sh"; then
2372 ac_aux_dir=$ac_dir
2373 ac_install_sh="$ac_aux_dir/install.sh -c"
2374 break
2375 elif test -f "$ac_dir/shtool"; then
2376 ac_aux_dir=$ac_dir
2377 ac_install_sh="$ac_aux_dir/shtool install -c"
2378 break
2379 fi
2380 done
2381 if test -z "$ac_aux_dir"; then
2382 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2383 fi
2384
2385 # These three variables are undocumented and unsupported,
2386 # and are intended to be withdrawn in a future Autoconf release.
2387 # They can cause serious problems if a builder's source tree is in a directory
2388 # whose full name contains unusual characters.
2389 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2390 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2391 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2392
2393
2394
2395 am__api_version='1.15'
2396
2397 # Find a good install program. We prefer a C program (faster),
2398 # so one script is as good as another. But avoid the broken or
2399 # incompatible versions:
2400 # SysV /etc/install, /usr/sbin/install
2401 # SunOS /usr/etc/install
2402 # IRIX /sbin/install
2403 # AIX /bin/install
2404 # AmigaOS /C/install, which installs bootblocks on floppy discs
2405 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2406 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2407 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2408 # OS/2's system install, which has a completely different semantic
2409 # ./install, which can be erroneously created by make from ./install.sh.
2410 # Reject install programs that cannot install multiple files.
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2412 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2413 if test -z "$INSTALL"; then
2414 if ${ac_cv_path_install+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 # Account for people who put trailing slashes in PATH elements.
2423 case $as_dir/ in #((
2424 ./ | .// | /[cC]/* | \
2425 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2426 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2427 /usr/ucb/* ) ;;
2428 *)
2429 # OSF1 and SCO ODT 3.0 have their own names for install.
2430 # Don't use installbsd from OSF since it installs stuff as root
2431 # by default.
2432 for ac_prog in ginstall scoinst install; do
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2435 if test $ac_prog = install &&
2436 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2437 # AIX install. It has an incompatible calling convention.
2438 :
2439 elif test $ac_prog = install &&
2440 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2441 # program-specific install script used by HP pwplus--don't use.
2442 :
2443 else
2444 rm -rf conftest.one conftest.two conftest.dir
2445 echo one > conftest.one
2446 echo two > conftest.two
2447 mkdir conftest.dir
2448 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2449 test -s conftest.one && test -s conftest.two &&
2450 test -s conftest.dir/conftest.one &&
2451 test -s conftest.dir/conftest.two
2452 then
2453 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2454 break 3
2455 fi
2456 fi
2457 fi
2458 done
2459 done
2460 ;;
2461 esac
2462
2463 done
2464 IFS=$as_save_IFS
2465
2466 rm -rf conftest.one conftest.two conftest.dir
2467
2468 fi
2469 if test "${ac_cv_path_install+set}" = set; then
2470 INSTALL=$ac_cv_path_install
2471 else
2472 # As a last resort, use the slow shell script. Don't cache a
2473 # value for INSTALL within a source directory, because that will
2474 # break other packages using the cache if that directory is
2475 # removed, or if the value is a relative name.
2476 INSTALL=$ac_install_sh
2477 fi
2478 fi
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2480 $as_echo "$INSTALL" >&6; }
2481
2482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2483 # It thinks the first close brace ends the variable substitution.
2484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2485
2486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2487
2488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2489
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2491 $as_echo_n "checking whether build environment is sane... " >&6; }
2492 # Reject unsafe characters in $srcdir or the absolute working directory
2493 # name. Accept space and tab only in the latter.
2494 am_lf='
2495 '
2496 case `pwd` in
2497 *[\\\"\#\$\&\'\`$am_lf]*)
2498 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2499 esac
2500 case $srcdir in
2501 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2502 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2503 esac
2504
2505 # Do 'set' in a subshell so we don't clobber the current shell's
2506 # arguments. Must try -L first in case configure is actually a
2507 # symlink; some systems play weird games with the mod time of symlinks
2508 # (eg FreeBSD returns the mod time of the symlink's containing
2509 # directory).
2510 if (
2511 am_has_slept=no
2512 for am_try in 1 2; do
2513 echo "timestamp, slept: $am_has_slept" > conftest.file
2514 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2515 if test "$*" = "X"; then
2516 # -L didn't work.
2517 set X `ls -t "$srcdir/configure" conftest.file`
2518 fi
2519 if test "$*" != "X $srcdir/configure conftest.file" \
2520 && test "$*" != "X conftest.file $srcdir/configure"; then
2521
2522 # If neither matched, then we have a broken ls. This can happen
2523 # if, for instance, CONFIG_SHELL is bash and it inherits a
2524 # broken ls alias from the environment. This has actually
2525 # happened. Such a system could not be considered "sane".
2526 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2527 alias in your environment" "$LINENO" 5
2528 fi
2529 if test "$2" = conftest.file || test $am_try -eq 2; then
2530 break
2531 fi
2532 # Just in case.
2533 sleep 1
2534 am_has_slept=yes
2535 done
2536 test "$2" = conftest.file
2537 )
2538 then
2539 # Ok.
2540 :
2541 else
2542 as_fn_error $? "newly created file is older than distributed files!
2543 Check your system clock" "$LINENO" 5
2544 fi
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2546 $as_echo "yes" >&6; }
2547 # If we didn't sleep, we still need to ensure time stamps of config.status and
2548 # generated files are strictly newer.
2549 am_sleep_pid=
2550 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2551 ( sleep 1 ) &
2552 am_sleep_pid=$!
2553 fi
2554
2555 rm -f conftest.file
2556
2557 test "$program_prefix" != NONE &&
2558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2559 # Use a double $ so make ignores it.
2560 test "$program_suffix" != NONE &&
2561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2562 # Double any \ or $.
2563 # By default was `s,x,x', remove it if useless.
2564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2566
2567 # Expand $ac_aux_dir to an absolute path.
2568 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2569
2570 if test x"${MISSING+set}" != xset; then
2571 case $am_aux_dir in
2572 *\ * | *\ *)
2573 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2574 *)
2575 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2576 esac
2577 fi
2578 # Use eval to expand $SHELL
2579 if eval "$MISSING --is-lightweight"; then
2580 am_missing_run="$MISSING "
2581 else
2582 am_missing_run=
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2584 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2585 fi
2586
2587 if test x"${install_sh+set}" != xset; then
2588 case $am_aux_dir in
2589 *\ * | *\ *)
2590 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2591 *)
2592 install_sh="\${SHELL} $am_aux_dir/install-sh"
2593 esac
2594 fi
2595
2596 # Installed binaries are usually stripped using 'strip' when the user
2597 # run "make install-strip". However 'strip' might not be the right
2598 # tool to use in cross-compilation environments, therefore Automake
2599 # will honor the 'STRIP' environment variable to overrule this program.
2600 if test "$cross_compiling" != no; then
2601 if test -n "$ac_tool_prefix"; then
2602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}strip; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_STRIP+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$STRIP"; then
2610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 STRIP=$ac_cv_prog_STRIP
2630 if test -n "$STRIP"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2632 $as_echo "$STRIP" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639 fi
2640 if test -z "$ac_cv_prog_STRIP"; then
2641 ac_ct_STRIP=$STRIP
2642 # Extract the first word of "strip", so it can be a program name with args.
2643 set dummy strip; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 if test -n "$ac_ct_STRIP"; then
2650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_ac_ct_STRIP="strip"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi
2668 fi
2669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2670 if test -n "$ac_ct_STRIP"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2672 $as_echo "$ac_ct_STRIP" >&6; }
2673 else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678 if test "x$ac_ct_STRIP" = x; then
2679 STRIP=":"
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2686 esac
2687 STRIP=$ac_ct_STRIP
2688 fi
2689 else
2690 STRIP="$ac_cv_prog_STRIP"
2691 fi
2692
2693 fi
2694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2697 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2698 if test -z "$MKDIR_P"; then
2699 if ${ac_cv_path_mkdir+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_prog in mkdir gmkdir; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2710 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2711 'mkdir (GNU coreutils) '* | \
2712 'mkdir (coreutils) '* | \
2713 'mkdir (fileutils) '4.1*)
2714 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2715 break 3;;
2716 esac
2717 done
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 fi
2723
2724 test -d ./--version && rmdir ./--version
2725 if test "${ac_cv_path_mkdir+set}" = set; then
2726 MKDIR_P="$ac_cv_path_mkdir -p"
2727 else
2728 # As a last resort, use the slow shell script. Don't cache a
2729 # value for MKDIR_P within a source directory, because that will
2730 # break other packages using the cache if that directory is
2731 # removed, or if the value is a relative name.
2732 MKDIR_P="$ac_install_sh -d"
2733 fi
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2736 $as_echo "$MKDIR_P" >&6; }
2737
2738 for ac_prog in gawk mawk nawk awk
2739 do
2740 # Extract the first word of "$ac_prog", so it can be a program name with args.
2741 set dummy $ac_prog; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_AWK+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$AWK"; then
2748 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_AWK="$ac_prog"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 AWK=$ac_cv_prog_AWK
2768 if test -n "$AWK"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2770 $as_echo "$AWK" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2775
2776
2777 test -n "$AWK" && break
2778 done
2779
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2781 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2782 set x ${MAKE-make}
2783 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2784 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 cat >conftest.make <<\_ACEOF
2788 SHELL = /bin/sh
2789 all:
2790 @echo '@@@%%%=$(MAKE)=@@@%%%'
2791 _ACEOF
2792 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2793 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2794 *@@@%%%=?*=@@@%%%*)
2795 eval ac_cv_prog_make_${ac_make}_set=yes;;
2796 *)
2797 eval ac_cv_prog_make_${ac_make}_set=no;;
2798 esac
2799 rm -f conftest.make
2800 fi
2801 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2803 $as_echo "yes" >&6; }
2804 SET_MAKE=
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 SET_MAKE="MAKE=${MAKE-make}"
2809 fi
2810
2811 rm -rf .tst 2>/dev/null
2812 mkdir .tst 2>/dev/null
2813 if test -d .tst; then
2814 am__leading_dot=.
2815 else
2816 am__leading_dot=_
2817 fi
2818 rmdir .tst 2>/dev/null
2819
2820 # Check whether --enable-silent-rules was given.
2821 if test "${enable_silent_rules+set}" = set; then :
2822 enableval=$enable_silent_rules;
2823 fi
2824
2825 case $enable_silent_rules in # (((
2826 yes) AM_DEFAULT_VERBOSITY=0;;
2827 no) AM_DEFAULT_VERBOSITY=1;;
2828 *) AM_DEFAULT_VERBOSITY=1;;
2829 esac
2830 am_make=${MAKE-make}
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2832 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2833 if ${am_cv_make_support_nested_variables+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if $as_echo 'TRUE=$(BAR$(V))
2837 BAR0=false
2838 BAR1=true
2839 V=1
2840 am__doit:
2841 @$(TRUE)
2842 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2843 am_cv_make_support_nested_variables=yes
2844 else
2845 am_cv_make_support_nested_variables=no
2846 fi
2847 fi
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2849 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2850 if test $am_cv_make_support_nested_variables = yes; then
2851 AM_V='$(V)'
2852 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2853 else
2854 AM_V=$AM_DEFAULT_VERBOSITY
2855 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2856 fi
2857 AM_BACKSLASH='\'
2858
2859 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2860 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2861 # is not polluted with repeated "-I."
2862 am__isrc=' -I$(srcdir)'
2863 # test to see if srcdir already configured
2864 if test -f $srcdir/config.status; then
2865 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2866 fi
2867 fi
2868
2869 # test whether we have cygpath
2870 if test -z "$CYGPATH_W"; then
2871 if (cygpath --version) >/dev/null 2>/dev/null; then
2872 CYGPATH_W='cygpath -w'
2873 else
2874 CYGPATH_W=echo
2875 fi
2876 fi
2877
2878
2879 # Define the identity of the package.
2880 PACKAGE='xf86-video-openchrome'
2881 VERSION='0.4.0'
2882
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE "$PACKAGE"
2886 _ACEOF
2887
2888
2889 cat >>confdefs.h <<_ACEOF
2890 #define VERSION "$VERSION"
2891 _ACEOF
2892
2893 # Some tools Automake needs.
2894
2895 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2896
2897
2898 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2899
2900
2901 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2902
2903
2904 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2905
2906
2907 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2908
2909 # For better backward compatibility. To be removed once Automake 1.9.x
2910 # dies out for good. For more background, see:
2911 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2912 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2913 mkdir_p='$(MKDIR_P)'
2914
2915 # We need awk for the "check" target (and possibly the TAP driver). The
2916 # system "awk" is bad on some platforms.
2917 # Always define AMTAR for backward compatibility. Yes, it's still used
2918 # in the wild :-( We should find a proper way to deprecate it ...
2919 AMTAR='$${TAR-tar}'
2920
2921
2922 # We'll loop over all known methods to create a tar archive until one works.
2923 _am_tools='gnutar pax cpio none'
2924
2925 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2926
2927
2928
2929
2930
2931
2932 # POSIX will say in a future version that running "rm -f" with no argument
2933 # is OK; and we want to be able to make that assumption in our Makefile
2934 # recipes. So use an aggressive probe to check that the usage we want is
2935 # actually supported "in the wild" to an acceptable degree.
2936 # See automake bug#10828.
2937 # To make any issue more visible, cause the running configure to be aborted
2938 # by default if the 'rm' program in use doesn't match our expectations; the
2939 # user can still override this though.
2940 if rm -f && rm -fr && rm -rf; then : OK; else
2941 cat >&2 <<'END'
2942 Oops!
2943
2944 Your 'rm' program seems unable to run without file operands specified
2945 on the command line, even when the '-f' option is present. This is contrary
2946 to the behaviour of most rm programs out there, and not conforming with
2947 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2948
2949 Please tell bug-automake@gnu.org about your system, including the value
2950 of your $PATH and any error possibly output before this message. This
2951 can help us improve future automake versions.
2952
2953 END
2954 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2955 echo 'Configuration will proceed anyway, since you have set the' >&2
2956 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2957 echo >&2
2958 else
2959 cat >&2 <<'END'
2960 Aborting the configuration process, to ensure you take notice of the issue.
2961
2962 You can download and install GNU coreutils to get an 'rm' implementation
2963 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2964
2965 If you want to complete the configuration process using your problematic
2966 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2967 to "yes", and re-run configure.
2968
2969 END
2970 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2971 fi
2972 fi
2973
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2976 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2977 # Check whether --enable-maintainer-mode was given.
2978 if test "${enable_maintainer_mode+set}" = set; then :
2979 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2980 else
2981 USE_MAINTAINER_MODE=no
2982 fi
2983
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2985 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2986 if test $USE_MAINTAINER_MODE = yes; then
2987 MAINTAINER_MODE_TRUE=
2988 MAINTAINER_MODE_FALSE='#'
2989 else
2990 MAINTAINER_MODE_TRUE='#'
2991 MAINTAINER_MODE_FALSE=
2992 fi
2993
2994 MAINT=$MAINTAINER_MODE_TRUE
2995
2996
2997
2998 # Initialize libtool
2999 # Check whether --enable-static was given.
3000 if test "${enable_static+set}" = set; then :
3001 enableval=$enable_static; p=${PACKAGE-default}
3002 case $enableval in
3003 yes) enable_static=yes ;;
3004 no) enable_static=no ;;
3005 *)
3006 enable_static=no
3007 # Look at the argument we got. We use all the common list separators.
3008 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3009 for pkg in $enableval; do
3010 IFS=$lt_save_ifs
3011 if test "X$pkg" = "X$p"; then
3012 enable_static=yes
3013 fi
3014 done
3015 IFS=$lt_save_ifs
3016 ;;
3017 esac
3018 else
3019 enable_static=no
3020 fi
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030 case `pwd` in
3031 *\ * | *\ *)
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3033 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3034 esac
3035
3036
3037
3038 macro_version='2.4.6'
3039 macro_revision='2.4.6'
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053 ltmain=$ac_aux_dir/ltmain.sh
3054
3055 # Make sure we can run config.sub.
3056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3057 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3058
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3060 $as_echo_n "checking build system type... " >&6; }
3061 if ${ac_cv_build+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 ac_build_alias=$build_alias
3065 test "x$ac_build_alias" = x &&
3066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3067 test "x$ac_build_alias" = x &&
3068 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3069 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3070 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3071
3072 fi
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3074 $as_echo "$ac_cv_build" >&6; }
3075 case $ac_cv_build in
3076 *-*-*) ;;
3077 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3078 esac
3079 build=$ac_cv_build
3080 ac_save_IFS=$IFS; IFS='-'
3081 set x $ac_cv_build
3082 shift
3083 build_cpu=$1
3084 build_vendor=$2
3085 shift; shift
3086 # Remember, the first character of IFS is used to create $*,
3087 # except with old shells:
3088 build_os=$*
3089 IFS=$ac_save_IFS
3090 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3091
3092
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3094 $as_echo_n "checking host system type... " >&6; }
3095 if ${ac_cv_host+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test "x$host_alias" = x; then
3099 ac_cv_host=$ac_cv_build
3100 else
3101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3102 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3103 fi
3104
3105 fi
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3107 $as_echo "$ac_cv_host" >&6; }
3108 case $ac_cv_host in
3109 *-*-*) ;;
3110 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3111 esac
3112 host=$ac_cv_host
3113 ac_save_IFS=$IFS; IFS='-'
3114 set x $ac_cv_host
3115 shift
3116 host_cpu=$1
3117 host_vendor=$2
3118 shift; shift
3119 # Remember, the first character of IFS is used to create $*,
3120 # except with old shells:
3121 host_os=$*
3122 IFS=$ac_save_IFS
3123 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3124
3125
3126 # Backslashify metacharacters that are still active within
3127 # double-quoted strings.
3128 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3129
3130 # Same as above, but do not quote variable references.
3131 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3132
3133 # Sed substitution to delay expansion of an escaped shell variable in a
3134 # double_quote_subst'ed string.
3135 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3136
3137 # Sed substitution to delay expansion of an escaped single quote.
3138 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3139
3140 # Sed substitution to avoid accidental globbing in evaled expressions
3141 no_glob_subst='s/\*/\\\*/g'
3142
3143 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3144 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3145 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3146
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3148 $as_echo_n "checking how to print strings... " >&6; }
3149 # Test print first, because it will be a builtin if present.
3150 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3151 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3152 ECHO='print -r --'
3153 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3154 ECHO='printf %s\n'
3155 else
3156 # Use this function as a fallback that always works.
3157 func_fallback_echo ()
3158 {
3159 eval 'cat <<_LTECHO_EOF
3160 $1
3161 _LTECHO_EOF'
3162 }
3163 ECHO='func_fallback_echo'
3164 fi
3165
3166 # func_echo_all arg...
3167 # Invoke $ECHO with all args, space-separated.
3168 func_echo_all ()
3169 {
3170 $ECHO ""
3171 }
3172
3173 case $ECHO in
3174 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3175 $as_echo "printf" >&6; } ;;
3176 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3177 $as_echo "print -r" >&6; } ;;
3178 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3179 $as_echo "cat" >&6; } ;;
3180 esac
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195 DEPDIR="${am__leading_dot}deps"
3196
3197 ac_config_commands="$ac_config_commands depfiles"
3198
3199
3200 am_make=${MAKE-make}
3201 cat > confinc << 'END'
3202 am__doit:
3203 @echo this is the am__doit target
3204 .PHONY: am__doit
3205 END
3206 # If we don't find an include directive, just comment out the code.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3208 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3209 am__include="#"
3210 am__quote=
3211 _am_result=none
3212 # First try GNU make style include.
3213 echo "include confinc" > confmf
3214 # Ignore all kinds of additional output from 'make'.
3215 case `$am_make -s -f confmf 2> /dev/null` in #(
3216 *the\ am__doit\ target*)
3217 am__include=include
3218 am__quote=
3219 _am_result=GNU
3220 ;;
3221 esac
3222 # Now try BSD make style include.
3223 if test "$am__include" = "#"; then
3224 echo '.include "confinc"' > confmf
3225 case `$am_make -s -f confmf 2> /dev/null` in #(
3226 *the\ am__doit\ target*)
3227 am__include=.include
3228 am__quote="\""
3229 _am_result=BSD
3230 ;;
3231 esac
3232 fi
3233
3234
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3236 $as_echo "$_am_result" >&6; }
3237 rm -f confinc confmf
3238
3239 # Check whether --enable-dependency-tracking was given.
3240 if test "${enable_dependency_tracking+set}" = set; then :
3241 enableval=$enable_dependency_tracking;
3242 fi
3243
3244 if test "x$enable_dependency_tracking" != xno; then
3245 am_depcomp="$ac_aux_dir/depcomp"
3246 AMDEPBACKSLASH='\'
3247 am__nodep='_no'
3248 fi
3249 if test "x$enable_dependency_tracking" != xno; then
3250 AMDEP_TRUE=
3251 AMDEP_FALSE='#'
3252 else
3253 AMDEP_TRUE='#'
3254 AMDEP_FALSE=
3255 fi
3256
3257
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 fi
3302 if test -z "$ac_cv_prog_CC"; then
3303 ac_ct_CC=$CC
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_CC="gcc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332 if test -n "$ac_ct_CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3334 $as_echo "$ac_ct_CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340 if test "x$ac_ct_CC" = x; then
3341 CC=""
3342 else
3343 case $cross_compiling:$ac_tool_warned in
3344 yes:)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347 ac_tool_warned=yes ;;
3348 esac
3349 CC=$ac_ct_CC
3350 fi
3351 else
3352 CC="$ac_cv_prog_CC"
3353 fi
3354
3355 if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_CC="${ac_tool_prefix}cc"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 CC=$ac_cv_prog_CC
3385 if test -n "$CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3388 else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394 fi
3395 fi
3396 if test -z "$CC"; then
3397 # Extract the first word of "cc", so it can be a program name with args.
3398 set dummy cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 ac_prog_rejected=no
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416 ac_prog_rejected=yes
3417 continue
3418 fi
3419 ac_cv_prog_CC="cc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 if test $ac_prog_rejected = yes; then
3428 # We found a bogon in the path, so make sure we never use it.
3429 set dummy $ac_cv_prog_CC
3430 shift
3431 if test $# != 0; then
3432 # We chose a different compiler from the bogus one.
3433 # However, it has the same basename, so the bogon will be chosen
3434 # first if we set CC to just the basename; use the full file name.
3435 shift
3436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3437 fi
3438 fi
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$CC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in cl.exe
3455 do
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_CC+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 fi
3491
3492
3493 test -n "$CC" && break
3494 done
3495 fi
3496 if test -z "$CC"; then
3497 ac_ct_CC=$CC
3498 for ac_prog in cl.exe
3499 do
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test -n "$ac_ct_CC"; then
3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_CC="$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537 test -n "$ac_ct_CC" && break
3538 done
3539
3540 if test "x$ac_ct_CC" = x; then
3541 CC=""
3542 else
3543 case $cross_compiling:$ac_tool_warned in
3544 yes:)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned=yes ;;
3548 esac
3549 CC=$ac_ct_CC
3550 fi
3551 fi
3552
3553 fi
3554
3555
3556 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "no acceptable C compiler found in \$PATH
3559 See \`config.log' for more details" "$LINENO" 5; }
3560
3561 # Provide some information about the compiler.
3562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3563 set X $ac_compile
3564 ac_compiler=$2
3565 for ac_option in --version -v -V -qversion; do
3566 { { ac_try="$ac_compiler $ac_option >&5"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3574 ac_status=$?
3575 if test -s conftest.err; then
3576 sed '10a\
3577 ... rest of stderr output deleted ...
3578 10q' conftest.err >conftest.er1
3579 cat conftest.er1 >&5
3580 fi
3581 rm -f conftest.er1 conftest.err
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }
3584 done
3585
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588
3589 int
3590 main ()
3591 {
3592
3593 ;
3594 return 0;
3595 }
3596 _ACEOF
3597 ac_clean_files_save=$ac_clean_files
3598 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3599 # Try to create an executable without -o first, disregard a.out.
3600 # It will help us diagnose broken compilers, and finding out an intuition
3601 # of exeext.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3603 $as_echo_n "checking whether the C compiler works... " >&6; }
3604 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3605
3606 # The possible output files:
3607 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3608
3609 ac_rmfiles=
3610 for ac_file in $ac_files
3611 do
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3615 esac
3616 done
3617 rm -f $ac_rmfiles
3618
3619 if { { ac_try="$ac_link_default"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link_default") 2>&5
3627 ac_status=$?
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; then :
3630 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3631 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3632 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3633 # so that the user can short-circuit this test for compilers unknown to
3634 # Autoconf.
3635 for ac_file in $ac_files ''
3636 do
3637 test -f "$ac_file" || continue
3638 case $ac_file in
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3640 ;;
3641 [ab].out )
3642 # We found the default executable, but exeext='' is most
3643 # certainly right.
3644 break;;
3645 *.* )
3646 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3647 then :; else
3648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649 fi
3650 # We set ac_cv_exeext here because the later test for it is not
3651 # safe: cross compilers may not add the suffix if given an `-o'
3652 # argument, so we may need to know it at that point already.
3653 # Even if this section looks crufty: it has the advantage of
3654 # actually working.
3655 break;;
3656 * )
3657 break;;
3658 esac
3659 done
3660 test "$ac_cv_exeext" = no && ac_cv_exeext=
3661
3662 else
3663 ac_file=''
3664 fi
3665 if test -z "$ac_file"; then :
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668 $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error 77 "C compiler cannot create executables
3674 See \`config.log' for more details" "$LINENO" 5; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3677 $as_echo "yes" >&6; }
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3680 $as_echo_n "checking for C compiler default output file name... " >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3682 $as_echo "$ac_file" >&6; }
3683 ac_exeext=$ac_cv_exeext
3684
3685 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3686 ac_clean_files=$ac_clean_files_save
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3688 $as_echo_n "checking for suffix of executables... " >&6; }
3689 if { { ac_try="$ac_link"
3690 case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696 (eval "$ac_link") 2>&5
3697 ac_status=$?
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }; then :
3700 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3701 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3702 # work properly (i.e., refer to `conftest.exe'), while it won't with
3703 # `rm'.
3704 for ac_file in conftest.exe conftest conftest.*; do
3705 test -f "$ac_file" || continue
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3709 break;;
3710 * ) break;;
3711 esac
3712 done
3713 else
3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3717 See \`config.log' for more details" "$LINENO" 5; }
3718 fi
3719 rm -f conftest conftest$ac_cv_exeext
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3721 $as_echo "$ac_cv_exeext" >&6; }
3722
3723 rm -f conftest.$ac_ext
3724 EXEEXT=$ac_cv_exeext
3725 ac_exeext=$EXEEXT
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728 #include <stdio.h>
3729 int
3730 main ()
3731 {
3732 FILE *f = fopen ("conftest.out", "w");
3733 return ferror (f) || fclose (f) != 0;
3734
3735 ;
3736 return 0;
3737 }
3738 _ACEOF
3739 ac_clean_files="$ac_clean_files conftest.out"
3740 # Check that the compiler produces executables we can run. If not, either
3741 # the compiler is broken, or we cross compile.
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3743 $as_echo_n "checking whether we are cross compiling... " >&6; }
3744 if test "$cross_compiling" != yes; then
3745 { { ac_try="$ac_link"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }
3756 if { ac_try='./conftest$ac_cv_exeext'
3757 { { case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_try") 2>&5
3764 ac_status=$?
3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }; }; then
3767 cross_compiling=no
3768 else
3769 if test "$cross_compiling" = maybe; then
3770 cross_compiling=yes
3771 else
3772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774 as_fn_error $? "cannot run C compiled programs.
3775 If you meant to cross compile, use \`--host'.
3776 See \`config.log' for more details" "$LINENO" 5; }
3777 fi
3778 fi
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781 $as_echo "$cross_compiling" >&6; }
3782
3783 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3784 ac_clean_files=$ac_clean_files_save
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3786 $as_echo_n "checking for suffix of object files... " >&6; }
3787 if ${ac_cv_objext+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792
3793 int
3794 main ()
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.o conftest.obj
3802 if { { ac_try="$ac_compile"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_compile") 2>&5
3810 ac_status=$?
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }; then :
3813 for ac_file in conftest.o conftest.obj conftest.*; do
3814 test -f "$ac_file" || continue;
3815 case $ac_file in
3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3818 break;;
3819 esac
3820 done
3821 else
3822 $as_echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error $? "cannot compute suffix of object files: cannot compile
3828 See \`config.log' for more details" "$LINENO" 5; }
3829 fi
3830 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3833 $as_echo "$ac_cv_objext" >&6; }
3834 OBJEXT=$ac_cv_objext
3835 ac_objext=$OBJEXT
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3837 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3838 if ${ac_cv_c_compiler_gnu+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843
3844 int
3845 main ()
3846 {
3847 #ifndef __GNUC__
3848 choke me
3849 #endif
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_compiler_gnu=yes
3857 else
3858 ac_compiler_gnu=no
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3865 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3866 if test $ac_compiler_gnu = yes; then
3867 GCC=yes
3868 else
3869 GCC=
3870 fi
3871 ac_test_CFLAGS=${CFLAGS+set}
3872 ac_save_CFLAGS=$CFLAGS
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3874 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3875 if ${ac_cv_prog_cc_g+:} false; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 ac_save_c_werror_flag=$ac_c_werror_flag
3879 ac_c_werror_flag=yes
3880 ac_cv_prog_cc_g=no
3881 CFLAGS="-g"
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884
3885 int
3886 main ()
3887 {
3888
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_g=yes
3895 else
3896 CFLAGS=""
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899
3900 int
3901 main ()
3902 {
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909
3910 else
3911 ac_c_werror_flag=$ac_save_c_werror_flag
3912 CFLAGS="-g"
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915
3916 int
3917 main ()
3918 {
3919
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_cv_prog_cc_g=yes
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_c_werror_flag=$ac_save_c_werror_flag
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3935 $as_echo "$ac_cv_prog_cc_g" >&6; }
3936 if test "$ac_test_CFLAGS" = set; then
3937 CFLAGS=$ac_save_CFLAGS
3938 elif test $ac_cv_prog_cc_g = yes; then
3939 if test "$GCC" = yes; then
3940 CFLAGS="-g -O2"
3941 else
3942 CFLAGS="-g"
3943 fi
3944 else
3945 if test "$GCC" = yes; then
3946 CFLAGS="-O2"
3947 else
3948 CFLAGS=
3949 fi
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3952 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3953 if ${ac_cv_prog_cc_c89+:} false; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 ac_cv_prog_cc_c89=no
3957 ac_save_CC=$CC
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <stdarg.h>
3961 #include <stdio.h>
3962 struct stat;
3963 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3964 struct buf { int x; };
3965 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3966 static char *e (p, i)
3967 char **p;
3968 int i;
3969 {
3970 return p[i];
3971 }
3972 static char *f (char * (*g) (char **, int), char **p, ...)
3973 {
3974 char *s;
3975 va_list v;
3976 va_start (v,p);
3977 s = g (p, va_arg (v,int));
3978 va_end (v);
3979 return s;
3980 }
3981
3982 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3983 function prototypes and stuff, but not '\xHH' hex character constants.
3984 These don't provoke an error unfortunately, instead are silently treated
3985 as 'x'. The following induces an error, until -std is added to get
3986 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3987 array size at least. It's necessary to write '\x00'==0 to get something
3988 that's true only with -std. */
3989 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990
3991 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3992 inside strings and character constants. */
3993 #define FOO(x) 'x'
3994 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995
3996 int test (int i, double x);
3997 struct s1 {int (*f) (int a);};
3998 struct s2 {int (*f) (double a);};
3999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4000 int argc;
4001 char **argv;
4002 int
4003 main ()
4004 {
4005 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4011 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 do
4013 CC="$ac_save_CC $ac_arg"
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_prog_cc_c89=$ac_arg
4016 fi
4017 rm -f core conftest.err conftest.$ac_objext
4018 test "x$ac_cv_prog_cc_c89" != "xno" && break
4019 done
4020 rm -f conftest.$ac_ext
4021 CC=$ac_save_CC
4022
4023 fi
4024 # AC_CACHE_VAL
4025 case "x$ac_cv_prog_cc_c89" in
4026 x)
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4028 $as_echo "none needed" >&6; } ;;
4029 xno)
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031 $as_echo "unsupported" >&6; } ;;
4032 *)
4033 CC="$CC $ac_cv_prog_cc_c89"
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4035 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4036 esac
4037 if test "x$ac_cv_prog_cc_c89" != xno; then :
4038
4039 fi
4040
4041 ac_ext=c
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4053 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4054 if ${am_cv_prog_cc_c_o+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059
4060 int
4061 main ()
4062 {
4063
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 # Make sure it works both with $CC and with simple cc.
4069 # Following AC_PROG_CC_C_O, we do the test twice because some
4070 # compilers refuse to overwrite an existing .o file with -o,
4071 # though they will create one.
4072 am_cv_prog_cc_c_o=yes
4073 for am_i in 1 2; do
4074 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4075 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } \
4079 && test -f conftest2.$ac_objext; then
4080 : OK
4081 else
4082 am_cv_prog_cc_c_o=no
4083 break
4084 fi
4085 done
4086 rm -f core conftest*
4087 unset am_i
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4090 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4091 if test "$am_cv_prog_cc_c_o" != yes; then
4092 # Losing compiler, so override with the script.
4093 # FIXME: It is wrong to rewrite CC.
4094 # But if we don't then we get into trouble of one sort or another.
4095 # A longer-term fix would be to have automake use am__CC in this case,
4096 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4097 CC="$am_aux_dir/compile $CC"
4098 fi
4099 ac_ext=c
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105
4106 depcc="$CC" am_compiler_list=
4107
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4109 $as_echo_n "checking dependency style of $depcc... " >&6; }
4110 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4114 # We make a subdir and do the tests there. Otherwise we can end up
4115 # making bogus files that we don't know about and never remove. For
4116 # instance it was reported that on HP-UX the gcc test will end up
4117 # making a dummy file named 'D' -- because '-MD' means "put the output
4118 # in D".
4119 rm -rf conftest.dir
4120 mkdir conftest.dir
4121 # Copy depcomp to subdir because otherwise we won't find it if we're
4122 # using a relative directory.
4123 cp "$am_depcomp" conftest.dir
4124 cd conftest.dir
4125 # We will build objects and dependencies in a subdirectory because
4126 # it helps to detect inapplicable dependency modes. For instance
4127 # both Tru64's cc and ICC support -MD to output dependencies as a
4128 # side effect of compilation, but ICC will put the dependencies in
4129 # the current directory while Tru64 will put them in the object
4130 # directory.
4131 mkdir sub
4132
4133 am_cv_CC_dependencies_compiler_type=none
4134 if test "$am_compiler_list" = ""; then
4135 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4136 fi
4137 am__universal=false
4138 case " $depcc " in #(
4139 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4140 esac
4141
4142 for depmode in $am_compiler_list; do
4143 # Setup a source with many dependencies, because some compilers
4144 # like to wrap large dependency lists on column 80 (with \), and
4145 # we should not choose a depcomp mode which is confused by this.
4146 #
4147 # We need to recreate these files for each test, as the compiler may
4148 # overwrite some of them when testing with obscure command lines.
4149 # This happens at least with the AIX C compiler.
4150 : > sub/conftest.c
4151 for i in 1 2 3 4 5 6; do
4152 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4153 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4154 # Solaris 10 /bin/sh.
4155 echo '/* dummy */' > sub/conftst$i.h
4156 done
4157 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4158
4159 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4160 # mode. It turns out that the SunPro C++ compiler does not properly
4161 # handle '-M -o', and we need to detect this. Also, some Intel
4162 # versions had trouble with output in subdirs.
4163 am__obj=sub/conftest.${OBJEXT-o}
4164 am__minus_obj="-o $am__obj"
4165 case $depmode in
4166 gcc)
4167 # This depmode causes a compiler race in universal mode.
4168 test "$am__universal" = false || continue
4169 ;;
4170 nosideeffect)
4171 # After this tag, mechanisms are not by side-effect, so they'll
4172 # only be used when explicitly requested.
4173 if test "x$enable_dependency_tracking" = xyes; then
4174 continue
4175 else
4176 break
4177 fi
4178 ;;
4179 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4180 # This compiler won't grok '-c -o', but also, the minuso test has
4181 # not run yet. These depmodes are late enough in the game, and
4182 # so weak that their functioning should not be impacted.
4183 am__obj=conftest.${OBJEXT-o}
4184 am__minus_obj=
4185 ;;
4186 none) break ;;
4187 esac
4188 if depmode=$depmode \
4189 source=sub/conftest.c object=$am__obj \
4190 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4191 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4192 >/dev/null 2>conftest.err &&
4193 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4195 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4197 # icc doesn't choke on unknown options, it will just issue warnings
4198 # or remarks (even with -Werror). So we grep stderr for any message
4199 # that says an option was ignored or not supported.
4200 # When given -MP, icc 7.0 and 7.1 complain thusly:
4201 # icc: Command line warning: ignoring option '-M'; no argument required
4202 # The diagnosis changed in icc 8.0:
4203 # icc: Command line remark: option '-MP' not supported
4204 if (grep 'ignoring option' conftest.err ||
4205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4206 am_cv_CC_dependencies_compiler_type=$depmode
4207 break
4208 fi
4209 fi
4210 done
4211
4212 cd ..
4213 rm -rf conftest.dir
4214 else
4215 am_cv_CC_dependencies_compiler_type=none
4216 fi
4217
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4220 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4222
4223 if
4224 test "x$enable_dependency_tracking" != xno \
4225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4226 am__fastdepCC_TRUE=
4227 am__fastdepCC_FALSE='#'
4228 else
4229 am__fastdepCC_TRUE='#'
4230 am__fastdepCC_FALSE=
4231 fi
4232
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4235 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4236 if ${ac_cv_path_SED+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4240 for ac_i in 1 2 3 4 5 6 7; do
4241 ac_script="$ac_script$as_nl$ac_script"
4242 done
4243 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4244 { ac_script=; unset ac_script;}
4245 if test -z "$SED"; then
4246 ac_path_SED_found=false
4247 # Loop through the user's path and test for each of PROGNAME-LIST
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_prog in sed gsed; do
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4256 as_fn_executable_p "$ac_path_SED" || continue
4257 # Check for GNU ac_path_SED and select it if it is found.
4258 # Check for GNU $ac_path_SED
4259 case `"$ac_path_SED" --version 2>&1` in
4260 *GNU*)
4261 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4262 *)
4263 ac_count=0
4264 $as_echo_n 0123456789 >"conftest.in"
4265 while :
4266 do
4267 cat "conftest.in" "conftest.in" >"conftest.tmp"
4268 mv "conftest.tmp" "conftest.in"
4269 cp "conftest.in" "conftest.nl"
4270 $as_echo '' >> "conftest.nl"
4271 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4273 as_fn_arith $ac_count + 1 && ac_count=$as_val
4274 if test $ac_count -gt ${ac_path_SED_max-0}; then
4275 # Best one so far, save it but keep looking for a better one
4276 ac_cv_path_SED="$ac_path_SED"
4277 ac_path_SED_max=$ac_count
4278 fi
4279 # 10*(2^10) chars as input seems more than enough
4280 test $ac_count -gt 10 && break
4281 done
4282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4283 esac
4284
4285 $ac_path_SED_found && break 3
4286 done
4287 done
4288 done
4289 IFS=$as_save_IFS
4290 if test -z "$ac_cv_path_SED"; then
4291 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4292 fi
4293 else
4294 ac_cv_path_SED=$SED
4295 fi
4296
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4299 $as_echo "$ac_cv_path_SED" >&6; }
4300 SED="$ac_cv_path_SED"
4301 rm -f conftest.sed
4302
4303 test -z "$SED" && SED=sed
4304 Xsed="$SED -e 1s/^X//"
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4317 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4318 if ${ac_cv_path_GREP+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -z "$GREP"; then
4322 ac_path_GREP_found=false
4323 # Loop through the user's path and test for each of PROGNAME-LIST
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_prog in grep ggrep; do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4332 as_fn_executable_p "$ac_path_GREP" || continue
4333 # Check for GNU ac_path_GREP and select it if it is found.
4334 # Check for GNU $ac_path_GREP
4335 case `"$ac_path_GREP" --version 2>&1` in
4336 *GNU*)
4337 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4338 *)
4339 ac_count=0
4340 $as_echo_n 0123456789 >"conftest.in"
4341 while :
4342 do
4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
4344 mv "conftest.tmp" "conftest.in"
4345 cp "conftest.in" "conftest.nl"
4346 $as_echo 'GREP' >> "conftest.nl"
4347 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349 as_fn_arith $ac_count + 1 && ac_count=$as_val
4350 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4351 # Best one so far, save it but keep looking for a better one
4352 ac_cv_path_GREP="$ac_path_GREP"
4353 ac_path_GREP_max=$ac_count
4354 fi
4355 # 10*(2^10) chars as input seems more than enough
4356 test $ac_count -gt 10 && break
4357 done
4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359 esac
4360
4361 $ac_path_GREP_found && break 3
4362 done
4363 done
4364 done
4365 IFS=$as_save_IFS
4366 if test -z "$ac_cv_path_GREP"; then
4367 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4368 fi
4369 else
4370 ac_cv_path_GREP=$GREP
4371 fi
4372
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4375 $as_echo "$ac_cv_path_GREP" >&6; }
4376 GREP="$ac_cv_path_GREP"
4377
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4380 $as_echo_n "checking for egrep... " >&6; }
4381 if ${ac_cv_path_EGREP+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4385 then ac_cv_path_EGREP="$GREP -E"
4386 else
4387 if test -z "$EGREP"; then
4388 ac_path_EGREP_found=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392 do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_prog in egrep; do
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4398 as_fn_executable_p "$ac_path_EGREP" || continue
4399 # Check for GNU ac_path_EGREP and select it if it is found.
4400 # Check for GNU $ac_path_EGREP
4401 case `"$ac_path_EGREP" --version 2>&1` in
4402 *GNU*)
4403 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4404 *)
4405 ac_count=0
4406 $as_echo_n 0123456789 >"conftest.in"
4407 while :
4408 do
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo 'EGREP' >> "conftest.nl"
4413 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415 as_fn_arith $ac_count + 1 && ac_count=$as_val
4416 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_EGREP="$ac_path_EGREP"
4419 ac_path_EGREP_max=$ac_count
4420 fi
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4423 done
4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425 esac
4426
4427 $ac_path_EGREP_found && break 3
4428 done
4429 done
4430 done
4431 IFS=$as_save_IFS
4432 if test -z "$ac_cv_path_EGREP"; then
4433 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434 fi
4435 else
4436 ac_cv_path_EGREP=$EGREP
4437 fi
4438
4439 fi
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4442 $as_echo "$ac_cv_path_EGREP" >&6; }
4443 EGREP="$ac_cv_path_EGREP"
4444
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4447 $as_echo_n "checking for fgrep... " >&6; }
4448 if ${ac_cv_path_FGREP+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4452 then ac_cv_path_FGREP="$GREP -F"
4453 else
4454 if test -z "$FGREP"; then
4455 ac_path_FGREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459 do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in fgrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4465 as_fn_executable_p "$ac_path_FGREP" || continue
4466 # Check for GNU ac_path_FGREP and select it if it is found.
4467 # Check for GNU $ac_path_FGREP
4468 case `"$ac_path_FGREP" --version 2>&1` in
4469 *GNU*)
4470 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4471 *)
4472 ac_count=0
4473 $as_echo_n 0123456789 >"conftest.in"
4474 while :
4475 do
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'FGREP' >> "conftest.nl"
4480 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_FGREP="$ac_path_FGREP"
4486 ac_path_FGREP_max=$ac_count
4487 fi
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4490 done
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492 esac
4493
4494 $ac_path_FGREP_found && break 3
4495 done
4496 done
4497 done
4498 IFS=$as_save_IFS
4499 if test -z "$ac_cv_path_FGREP"; then
4500 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501 fi
4502 else
4503 ac_cv_path_FGREP=$FGREP
4504 fi
4505
4506 fi
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4509 $as_echo "$ac_cv_path_FGREP" >&6; }
4510 FGREP="$ac_cv_path_FGREP"
4511
4512
4513 test -z "$GREP" && GREP=grep
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533 # Check whether --with-gnu-ld was given.
4534 if test "${with_gnu_ld+set}" = set; then :
4535 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4536 else
4537 with_gnu_ld=no
4538 fi
4539
4540 ac_prog=ld
4541 if test yes = "$GCC"; then
4542 # Check if gcc -print-prog-name=ld gives a path.
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4544 $as_echo_n "checking for ld used by $CC... " >&6; }
4545 case $host in
4546 *-*-mingw*)
4547 # gcc leaves a trailing carriage return, which upsets mingw
4548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4549 *)
4550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4551 esac
4552 case $ac_prog in
4553 # Accept absolute paths.
4554 [\\/]* | ?:[\\/]*)
4555 re_direlt='/[^/][^/]*/\.\./'
4556 # Canonicalize the pathname of ld
4557 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4558 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4559 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4560 done
4561 test -z "$LD" && LD=$ac_prog
4562 ;;
4563 "")
4564 # If it fails, then pretend we aren't using GCC.
4565 ac_prog=ld
4566 ;;
4567 *)
4568 # If it is relative, then search for the first ld in PATH.
4569 with_gnu_ld=unknown
4570 ;;
4571 esac
4572 elif test yes = "$with_gnu_ld"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4574 $as_echo_n "checking for GNU ld... " >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4577 $as_echo_n "checking for non-GNU ld... " >&6; }
4578 fi
4579 if ${lt_cv_path_LD+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -z "$LD"; then
4583 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4584 for ac_dir in $PATH; do
4585 IFS=$lt_save_ifs
4586 test -z "$ac_dir" && ac_dir=.
4587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4588 lt_cv_path_LD=$ac_dir/$ac_prog
4589 # Check to see if the program is GNU ld. I'd rather use --version,
4590 # but apparently some variants of GNU ld only accept -v.
4591 # Break only if it was the GNU/non-GNU ld that we prefer.
4592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4593 *GNU* | *'with BFD'*)
4594 test no != "$with_gnu_ld" && break
4595 ;;
4596 *)
4597 test yes != "$with_gnu_ld" && break
4598 ;;
4599 esac
4600 fi
4601 done
4602 IFS=$lt_save_ifs
4603 else
4604 lt_cv_path_LD=$LD # Let the user override the test with a path.
4605 fi
4606 fi
4607
4608 LD=$lt_cv_path_LD
4609 if test -n "$LD"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4611 $as_echo "$LD" >&6; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 fi
4616 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4619 if ${lt_cv_prog_gnu_ld+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4623 case `$LD -v 2>&1 </dev/null` in
4624 *GNU* | *'with BFD'*)
4625 lt_cv_prog_gnu_ld=yes
4626 ;;
4627 *)
4628 lt_cv_prog_gnu_ld=no
4629 ;;
4630 esac
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4633 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4634 with_gnu_ld=$lt_cv_prog_gnu_ld
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4645 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4646 if ${lt_cv_path_NM+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$NM"; then
4650 # Let the user override the test.
4651 lt_cv_path_NM=$NM
4652 else
4653 lt_nm_to_check=${ac_tool_prefix}nm
4654 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4655 lt_nm_to_check="$lt_nm_to_check nm"
4656 fi
4657 for lt_tmp_nm in $lt_nm_to_check; do
4658 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4659 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4660 IFS=$lt_save_ifs
4661 test -z "$ac_dir" && ac_dir=.
4662 tmp_nm=$ac_dir/$lt_tmp_nm
4663 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4664 # Check to see if the nm accepts a BSD-compat flag.
4665 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4666 # nm: unknown option "B" ignored
4667 # Tru64's nm complains that /dev/null is an invalid object file
4668 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4669 case $build_os in
4670 mingw*) lt_bad_file=conftest.nm/nofile ;;
4671 *) lt_bad_file=/dev/null ;;
4672 esac
4673 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4674 *$lt_bad_file* | *'Invalid file or object type'*)
4675 lt_cv_path_NM="$tmp_nm -B"
4676 break 2
4677 ;;
4678 *)
4679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4680 */dev/null*)
4681 lt_cv_path_NM="$tmp_nm -p"
4682 break 2
4683 ;;
4684 *)
4685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4686 continue # so that we can try to find one that supports BSD flags
4687 ;;
4688 esac
4689 ;;
4690 esac
4691 fi
4692 done
4693 IFS=$lt_save_ifs
4694 done
4695 : ${lt_cv_path_NM=no}
4696 fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4699 $as_echo "$lt_cv_path_NM" >&6; }
4700 if test no != "$lt_cv_path_NM"; then
4701 NM=$lt_cv_path_NM
4702 else
4703 # Didn't find any BSD compatible name lister, look for dumpbin.
4704 if test -n "$DUMPBIN"; then :
4705 # Let the user override the test.
4706 else
4707 if test -n "$ac_tool_prefix"; then
4708 for ac_prog in dumpbin "link -dump"
4709 do
4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_prog_DUMPBIN+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$DUMPBIN"; then
4718 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731 done
4732 done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 DUMPBIN=$ac_cv_prog_DUMPBIN
4738 if test -n "$DUMPBIN"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4740 $as_echo "$DUMPBIN" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746
4747 test -n "$DUMPBIN" && break
4748 done
4749 fi
4750 if test -z "$DUMPBIN"; then
4751 ac_ct_DUMPBIN=$DUMPBIN
4752 for ac_prog in dumpbin "link -dump"
4753 do
4754 # Extract the first word of "$ac_prog", so it can be a program name with args.
4755 set dummy $ac_prog; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$ac_ct_DUMPBIN"; then
4762 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779 fi
4780 fi
4781 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4782 if test -n "$ac_ct_DUMPBIN"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4784 $as_echo "$ac_ct_DUMPBIN" >&6; }
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4788 fi
4789
4790
4791 test -n "$ac_ct_DUMPBIN" && break
4792 done
4793
4794 if test "x$ac_ct_DUMPBIN" = x; then
4795 DUMPBIN=":"
4796 else
4797 case $cross_compiling:$ac_tool_warned in
4798 yes:)
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801 ac_tool_warned=yes ;;
4802 esac
4803 DUMPBIN=$ac_ct_DUMPBIN
4804 fi
4805 fi
4806
4807 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4808 *COFF*)
4809 DUMPBIN="$DUMPBIN -symbols -headers"
4810 ;;
4811 *)
4812 DUMPBIN=:
4813 ;;
4814 esac
4815 fi
4816
4817 if test : != "$DUMPBIN"; then
4818 NM=$DUMPBIN
4819 fi
4820 fi
4821 test -z "$NM" && NM=nm
4822
4823
4824
4825
4826
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4829 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4830 if ${lt_cv_nm_interface+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 lt_cv_nm_interface="BSD nm"
4834 echo "int some_variable = 0;" > conftest.$ac_ext
4835 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4836 (eval "$ac_compile" 2>conftest.err)
4837 cat conftest.err >&5
4838 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4839 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4840 cat conftest.err >&5
4841 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4842 cat conftest.out >&5
4843 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4844 lt_cv_nm_interface="MS dumpbin"
4845 fi
4846 rm -f conftest*
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4849 $as_echo "$lt_cv_nm_interface" >&6; }
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4852 $as_echo_n "checking whether ln -s works... " >&6; }
4853 LN_S=$as_ln_s
4854 if test "$LN_S" = "ln -s"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4856 $as_echo "yes" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4859 $as_echo "no, using $LN_S" >&6; }
4860 fi
4861
4862 # find the maximum length of command line arguments
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4864 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4865 if ${lt_cv_sys_max_cmd_len+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 i=0
4869 teststring=ABCD
4870
4871 case $build_os in
4872 msdosdjgpp*)
4873 # On DJGPP, this test can blow up pretty badly due to problems in libc
4874 # (any single argument exceeding 2000 bytes causes a buffer overrun
4875 # during glob expansion). Even if it were fixed, the result of this
4876 # check would be larger than it should be.
4877 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4878 ;;
4879
4880 gnu*)
4881 # Under GNU Hurd, this test is not required because there is
4882 # no limit to the length of command line arguments.
4883 # Libtool will interpret -1 as no limit whatsoever
4884 lt_cv_sys_max_cmd_len=-1;
4885 ;;
4886
4887 cygwin* | mingw* | cegcc*)
4888 # On Win9x/ME, this test blows up -- it succeeds, but takes
4889 # about 5 minutes as the teststring grows exponentially.
4890 # Worse, since 9x/ME are not pre-emptively multitasking,
4891 # you end up with a "frozen" computer, even though with patience
4892 # the test eventually succeeds (with a max line length of 256k).
4893 # Instead, let's just punt: use the minimum linelength reported by
4894 # all of the supported platforms: 8192 (on NT/2K/XP).
4895 lt_cv_sys_max_cmd_len=8192;
4896 ;;
4897
4898 mint*)
4899 # On MiNT this can take a long time and run out of memory.
4900 lt_cv_sys_max_cmd_len=8192;
4901 ;;
4902
4903 amigaos*)
4904 # On AmigaOS with pdksh, this test takes hours, literally.
4905 # So we just punt and use a minimum line length of 8192.
4906 lt_cv_sys_max_cmd_len=8192;
4907 ;;
4908
4909 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4910 # This has been around since 386BSD, at least. Likely further.
4911 if test -x /sbin/sysctl; then
4912 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4913 elif test -x /usr/sbin/sysctl; then
4914 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4915 else
4916 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4917 fi
4918 # And add a safety zone
4919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4921 ;;
4922
4923 interix*)
4924 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4925 lt_cv_sys_max_cmd_len=196608
4926 ;;
4927
4928 os2*)
4929 # The test takes a long time on OS/2.
4930 lt_cv_sys_max_cmd_len=8192
4931 ;;
4932
4933 osf*)
4934 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4935 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4936 # nice to cause kernel panics so lets avoid the loop below.
4937 # First set a reasonable default.
4938 lt_cv_sys_max_cmd_len=16384
4939 #
4940 if test -x /sbin/sysconfig; then
4941 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4942 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4943 esac
4944 fi
4945 ;;
4946 sco3.2v5*)
4947 lt_cv_sys_max_cmd_len=102400
4948 ;;
4949 sysv5* | sco5v6* | sysv4.2uw2*)
4950 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4951 if test -n "$kargmax"; then
4952 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4953 else
4954 lt_cv_sys_max_cmd_len=32768
4955 fi
4956 ;;
4957 *)
4958 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4959 if test -n "$lt_cv_sys_max_cmd_len" && \
4960 test undefined != "$lt_cv_sys_max_cmd_len"; then
4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4963 else
4964 # Make teststring a little bigger before we do anything with it.
4965 # a 1K string should be a reasonable start.
4966 for i in 1 2 3 4 5 6 7 8; do
4967 teststring=$teststring$teststring
4968 done
4969 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4970 # If test is not a shell built-in, we'll probably end up computing a
4971 # maximum length that is only half of the actual maximum length, but
4972 # we can't tell.
4973 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4974 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4975 test 17 != "$i" # 1/2 MB should be enough
4976 do
4977 i=`expr $i + 1`
4978 teststring=$teststring$teststring
4979 done
4980 # Only check the string length outside the loop.
4981 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4982 teststring=
4983 # Add a significant safety factor because C++ compilers can tack on
4984 # massive amounts of additional arguments before passing them to the
4985 # linker. It appears as though 1/2 is a usable value.
4986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4987 fi
4988 ;;
4989 esac
4990
4991 fi
4992
4993 if test -n "$lt_cv_sys_max_cmd_len"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4995 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4998 $as_echo "none" >&6; }
4999 fi
5000 max_cmd_len=$lt_cv_sys_max_cmd_len
5001
5002
5003
5004
5005
5006
5007 : ${CP="cp -f"}
5008 : ${MV="mv -f"}
5009 : ${RM="rm -f"}
5010
5011 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5012 lt_unset=unset
5013 else
5014 lt_unset=false
5015 fi
5016
5017
5018
5019
5020
5021 # test EBCDIC or ASCII
5022 case `echo X|tr X '\101'` in
5023 A) # ASCII based system
5024 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5025 lt_SP2NL='tr \040 \012'
5026 lt_NL2SP='tr \015\012 \040\040'
5027 ;;
5028 *) # EBCDIC based system
5029 lt_SP2NL='tr \100 \n'
5030 lt_NL2SP='tr \r\n \100\100'
5031 ;;
5032 esac
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5043 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5044 if ${lt_cv_to_host_file_cmd+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 case $host in
5048 *-*-mingw* )
5049 case $build in
5050 *-*-mingw* ) # actually msys
5051 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5052 ;;
5053 *-*-cygwin* )
5054 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5055 ;;
5056 * ) # otherwise, assume *nix
5057 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5058 ;;
5059 esac
5060 ;;
5061 *-*-cygwin* )
5062 case $build in
5063 *-*-mingw* ) # actually msys
5064 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5065 ;;
5066 *-*-cygwin* )
5067 lt_cv_to_host_file_cmd=func_convert_file_noop
5068 ;;
5069 * ) # otherwise, assume *nix
5070 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5071 ;;
5072 esac
5073 ;;
5074 * ) # unhandled hosts (and "normal" native builds)
5075 lt_cv_to_host_file_cmd=func_convert_file_noop
5076 ;;
5077 esac
5078
5079 fi
5080
5081 to_host_file_cmd=$lt_cv_to_host_file_cmd
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5083 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5084
5085
5086
5087
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5090 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5091 if ${lt_cv_to_tool_file_cmd+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 #assume ordinary cross tools, or native build.
5095 lt_cv_to_tool_file_cmd=func_convert_file_noop
5096 case $host in
5097 *-*-mingw* )
5098 case $build in
5099 *-*-mingw* ) # actually msys
5100 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5101 ;;
5102 esac
5103 ;;
5104 esac
5105
5106 fi
5107
5108 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5110 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5111
5112
5113
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5117 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5118 if ${lt_cv_ld_reload_flag+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 lt_cv_ld_reload_flag='-r'
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5124 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5125 reload_flag=$lt_cv_ld_reload_flag
5126 case $reload_flag in
5127 "" | " "*) ;;
5128 *) reload_flag=" $reload_flag" ;;
5129 esac
5130 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5131 case $host_os in
5132 cygwin* | mingw* | pw32* | cegcc*)
5133 if test yes != "$GCC"; then
5134 reload_cmds=false
5135 fi
5136 ;;
5137 darwin*)
5138 if test yes = "$GCC"; then
5139 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5140 else
5141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5142 fi
5143 ;;
5144 esac
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154 if test -n "$ac_tool_prefix"; then
5155 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5156 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_prog_OBJDUMP+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if test -n "$OBJDUMP"; then
5163 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 OBJDUMP=$ac_cv_prog_OBJDUMP
5183 if test -n "$OBJDUMP"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5185 $as_echo "$OBJDUMP" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192 fi
5193 if test -z "$ac_cv_prog_OBJDUMP"; then
5194 ac_ct_OBJDUMP=$OBJDUMP
5195 # Extract the first word of "objdump", so it can be a program name with args.
5196 set dummy objdump; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$ac_ct_OBJDUMP"; then
5203 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220 fi
5221 fi
5222 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5223 if test -n "$ac_ct_OBJDUMP"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5225 $as_echo "$ac_ct_OBJDUMP" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231 if test "x$ac_ct_OBJDUMP" = x; then
5232 OBJDUMP="false"
5233 else
5234 case $cross_compiling:$ac_tool_warned in
5235 yes:)
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238 ac_tool_warned=yes ;;
5239 esac
5240 OBJDUMP=$ac_ct_OBJDUMP
5241 fi
5242 else
5243 OBJDUMP="$ac_cv_prog_OBJDUMP"
5244 fi
5245
5246 test -z "$OBJDUMP" && OBJDUMP=objdump
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5257 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5258 if ${lt_cv_deplibs_check_method+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 lt_cv_file_magic_cmd='$MAGIC_CMD'
5262 lt_cv_file_magic_test_file=
5263 lt_cv_deplibs_check_method='unknown'
5264 # Need to set the preceding variable on all platforms that support
5265 # interlibrary dependencies.
5266 # 'none' -- dependencies not supported.
5267 # 'unknown' -- same as none, but documents that we really don't know.
5268 # 'pass_all' -- all dependencies passed with no checks.
5269 # 'test_compile' -- check by making test program.
5270 # 'file_magic [[regex]]' -- check by looking for files in library path
5271 # that responds to the $file_magic_cmd with a given extended regex.
5272 # If you have 'file' or equivalent on your system and you're not sure
5273 # whether 'pass_all' will *always* work, you probably want this one.
5274
5275 case $host_os in
5276 aix[4-9]*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 beos*)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283
5284 bsdi[45]*)
5285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5286 lt_cv_file_magic_cmd='/usr/bin/file -L'
5287 lt_cv_file_magic_test_file=/shlib/libc.so
5288 ;;
5289
5290 cygwin*)
5291 # func_win32_libid is a shell function defined in ltmain.sh
5292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5293 lt_cv_file_magic_cmd='func_win32_libid'
5294 ;;
5295
5296 mingw* | pw32*)
5297 # Base MSYS/MinGW do not provide the 'file' command needed by
5298 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5299 # unless we find 'file', for example because we are cross-compiling.
5300 if ( file / ) >/dev/null 2>&1; then
5301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5302 lt_cv_file_magic_cmd='func_win32_libid'
5303 else
5304 # Keep this pattern in sync with the one in func_win32_libid.
5305 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5306 lt_cv_file_magic_cmd='$OBJDUMP -f'
5307 fi
5308 ;;
5309
5310 cegcc*)
5311 # use the weaker test based on 'objdump'. See mingw*.
5312 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5313 lt_cv_file_magic_cmd='$OBJDUMP -f'
5314 ;;
5315
5316 darwin* | rhapsody*)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319
5320 freebsd* | dragonfly*)
5321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5322 case $host_cpu in
5323 i*86 )
5324 # Not sure whether the presence of OpenBSD here was a mistake.
5325 # Let's accept both of them until this is cleared up.
5326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5327 lt_cv_file_magic_cmd=/usr/bin/file
5328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5329 ;;
5330 esac
5331 else
5332 lt_cv_deplibs_check_method=pass_all
5333 fi
5334 ;;
5335
5336 haiku*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340 hpux10.20* | hpux11*)
5341 lt_cv_file_magic_cmd=/usr/bin/file
5342 case $host_cpu in
5343 ia64*)
5344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5346 ;;
5347 hppa*64*)
5348 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]'
5349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5350 ;;
5351 *)
5352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5353 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5354 ;;
5355 esac
5356 ;;
5357
5358 interix[3-9]*)
5359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5361 ;;
5362
5363 irix5* | irix6* | nonstopux*)
5364 case $LD in
5365 *-32|*"-32 ") libmagic=32-bit;;
5366 *-n32|*"-n32 ") libmagic=N32;;
5367 *-64|*"-64 ") libmagic=64-bit;;
5368 *) libmagic=never-match;;
5369 esac
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372
5373 # This must be glibc/ELF.
5374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377
5378 netbsd*)
5379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5381 else
5382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5383 fi
5384 ;;
5385
5386 newos6*)
5387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5388 lt_cv_file_magic_cmd=/usr/bin/file
5389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5390 ;;
5391
5392 *nto* | *qnx*)
5393 lt_cv_deplibs_check_method=pass_all
5394 ;;
5395
5396 openbsd* | bitrig*)
5397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5399 else
5400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5401 fi
5402 ;;
5403
5404 osf3* | osf4* | osf5*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408 rdos*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412 solaris*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419
5420 sysv4 | sysv4.3*)
5421 case $host_vendor in
5422 motorola)
5423 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]'
5424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5425 ;;
5426 ncr)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429 sequent)
5430 lt_cv_file_magic_cmd='/bin/file'
5431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5432 ;;
5433 sni)
5434 lt_cv_file_magic_cmd='/bin/file'
5435 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5436 lt_cv_file_magic_test_file=/lib/libc.so
5437 ;;
5438 siemens)
5439 lt_cv_deplibs_check_method=pass_all
5440 ;;
5441 pc)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444 esac
5445 ;;
5446
5447 tpf*)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450 os2*)
5451 lt_cv_deplibs_check_method=pass_all
5452 ;;
5453 esac
5454
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5457 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5458
5459 file_magic_glob=
5460 want_nocaseglob=no
5461 if test "$build" = "$host"; then
5462 case $host_os in
5463 mingw* | pw32*)
5464 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5465 want_nocaseglob=yes
5466 else
5467 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5468 fi
5469 ;;
5470 esac
5471 fi
5472
5473 file_magic_cmd=$lt_cv_file_magic_cmd
5474 deplibs_check_method=$lt_cv_deplibs_check_method
5475 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5500 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_prog_DLLTOOL+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 if test -n "$DLLTOOL"; then
5507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 DLLTOOL=$ac_cv_prog_DLLTOOL
5527 if test -n "$DLLTOOL"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5529 $as_echo "$DLLTOOL" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534
5535
5536 fi
5537 if test -z "$ac_cv_prog_DLLTOOL"; then
5538 ac_ct_DLLTOOL=$DLLTOOL
5539 # Extract the first word of "dlltool", so it can be a program name with args.
5540 set dummy dlltool; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$ac_ct_DLLTOOL"; then
5547 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5567 if test -n "$ac_ct_DLLTOOL"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5569 $as_echo "$ac_ct_DLLTOOL" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575 if test "x$ac_ct_DLLTOOL" = x; then
5576 DLLTOOL="false"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584 DLLTOOL=$ac_ct_DLLTOOL
5585 fi
5586 else
5587 DLLTOOL="$ac_cv_prog_DLLTOOL"
5588 fi
5589
5590 test -z "$DLLTOOL" && DLLTOOL=dlltool
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5602 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5603 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 lt_cv_sharedlib_from_linklib_cmd='unknown'
5607
5608 case $host_os in
5609 cygwin* | mingw* | pw32* | cegcc*)
5610 # two different shell functions defined in ltmain.sh;
5611 # decide which one to use based on capabilities of $DLLTOOL
5612 case `$DLLTOOL --help 2>&1` in
5613 *--identify-strict*)
5614 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5615 ;;
5616 *)
5617 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5618 ;;
5619 esac
5620 ;;
5621 *)
5622 # fallback: assume linklib IS sharedlib
5623 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5624 ;;
5625 esac
5626
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5629 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5630 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5631 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5632
5633
5634
5635
5636
5637
5638
5639
5640 if test -n "$ac_tool_prefix"; then
5641 for ac_prog in ar
5642 do
5643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_AR+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 if test -n "$AR"; then
5651 ac_cv_prog_AR="$AR" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664 done
5665 done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 AR=$ac_cv_prog_AR
5671 if test -n "$AR"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5673 $as_echo "$AR" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678
5679
5680 test -n "$AR" && break
5681 done
5682 fi
5683 if test -z "$AR"; then
5684 ac_ct_AR=$AR
5685 for ac_prog in ar
5686 do
5687 # Extract the first word of "$ac_prog", so it can be a program name with args.
5688 set dummy $ac_prog; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 if test -n "$ac_ct_AR"; then
5695 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_ac_ct_AR="$ac_prog"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708 done
5709 done
5710 IFS=$as_save_IFS
5711
5712 fi
5713 fi
5714 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5715 if test -n "$ac_ct_AR"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5717 $as_echo "$ac_ct_AR" >&6; }
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723
5724 test -n "$ac_ct_AR" && break
5725 done
5726
5727 if test "x$ac_ct_AR" = x; then
5728 AR="false"
5729 else
5730 case $cross_compiling:$ac_tool_warned in
5731 yes:)
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5734 ac_tool_warned=yes ;;
5735 esac
5736 AR=$ac_ct_AR
5737 fi
5738 fi
5739
5740 : ${AR=ar}
5741 : ${AR_FLAGS=cru}
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5754 $as_echo_n "checking for archiver @FILE support... " >&6; }
5755 if ${lt_cv_ar_at_file+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 lt_cv_ar_at_file=no
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761
5762 int
5763 main ()
5764 {
5765
5766 ;
5767 return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_c_try_compile "$LINENO"; then :
5771 echo conftest.$ac_objext > conftest.lst
5772 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5774 (eval $lt_ar_try) 2>&5
5775 ac_status=$?
5776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5777 test $ac_status = 0; }
5778 if test 0 -eq "$ac_status"; then
5779 # Ensure the archiver fails upon bogus file names.
5780 rm -f conftest.$ac_objext libconftest.a
5781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5782 (eval $lt_ar_try) 2>&5
5783 ac_status=$?
5784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5785 test $ac_status = 0; }
5786 if test 0 -ne "$ac_status"; then
5787 lt_cv_ar_at_file=@
5788 fi
5789 fi
5790 rm -f conftest.* libconftest.a
5791
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5797 $as_echo "$lt_cv_ar_at_file" >&6; }
5798
5799 if test no = "$lt_cv_ar_at_file"; then
5800 archiver_list_spec=
5801 else
5802 archiver_list_spec=$lt_cv_ar_at_file
5803 fi
5804
5805
5806
5807
5808
5809
5810
5811 if test -n "$ac_tool_prefix"; then
5812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5813 set dummy ${ac_tool_prefix}strip; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_STRIP+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if test -n "$STRIP"; then
5820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5832 fi
5833 done
5834 done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 STRIP=$ac_cv_prog_STRIP
5840 if test -n "$STRIP"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5842 $as_echo "$STRIP" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848
5849 fi
5850 if test -z "$ac_cv_prog_STRIP"; then
5851 ac_ct_STRIP=$STRIP
5852 # Extract the first word of "strip", so it can be a program name with args.
5853 set dummy strip; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test -n "$ac_ct_STRIP"; then
5860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_ac_ct_STRIP="strip"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5876
5877 fi
5878 fi
5879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5880 if test -n "$ac_ct_STRIP"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5882 $as_echo "$ac_ct_STRIP" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888 if test "x$ac_ct_STRIP" = x; then
5889 STRIP=":"
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897 STRIP=$ac_ct_STRIP
5898 fi
5899 else
5900 STRIP="$ac_cv_prog_STRIP"
5901 fi
5902
5903 test -z "$STRIP" && STRIP=:
5904
5905
5906
5907
5908
5909
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if ${ac_cv_prog_RANLIB+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test -n "$RANLIB"; then
5919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935
5936 fi
5937 fi
5938 RANLIB=$ac_cv_prog_RANLIB
5939 if test -n "$RANLIB"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5941 $as_echo "$RANLIB" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946
5947
5948 fi
5949 if test -z "$ac_cv_prog_RANLIB"; then
5950 ac_ct_RANLIB=$RANLIB
5951 # Extract the first word of "ranlib", so it can be a program name with args.
5952 set dummy ranlib; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if test -n "$ac_ct_RANLIB"; then
5959 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_ac_ct_RANLIB="ranlib"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972 done
5973 done
5974 IFS=$as_save_IFS
5975
5976 fi
5977 fi
5978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5979 if test -n "$ac_ct_RANLIB"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5981 $as_echo "$ac_ct_RANLIB" >&6; }
5982 else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986
5987 if test "x$ac_ct_RANLIB" = x; then
5988 RANLIB=":"
5989 else
5990 case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996 RANLIB=$ac_ct_RANLIB
5997 fi
5998 else
5999 RANLIB="$ac_cv_prog_RANLIB"
6000 fi
6001
6002 test -z "$RANLIB" && RANLIB=:
6003
6004
6005
6006
6007
6008
6009 # Determine commands to create old-style static archives.
6010 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6011 old_postinstall_cmds='chmod 644 $oldlib'
6012 old_postuninstall_cmds=
6013
6014 if test -n "$RANLIB"; then
6015 case $host_os in
6016 bitrig* | openbsd*)
6017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6018 ;;
6019 *)
6020 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6021 ;;
6022 esac
6023 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6024 fi
6025
6026 case $host_os in
6027 darwin*)
6028 lock_old_archive_extraction=yes ;;
6029 *)
6030 lock_old_archive_extraction=no ;;
6031 esac
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071 # If no C compiler was specified, use CC.
6072 LTCC=${LTCC-"$CC"}
6073
6074 # If no C compiler flags were specified, use CFLAGS.
6075 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6076
6077 # Allow CC to be a program name with arguments.
6078 compiler=$CC
6079
6080
6081 # Check for command to grab the raw symbol name followed by C symbol from nm.
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6083 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6084 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087
6088 # These are sane defaults that work on at least a few old systems.
6089 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6090
6091 # Character class describing NM global symbol codes.
6092 symcode='[BCDEGRST]'
6093
6094 # Regexp to match symbols that can be accessed directly from C.
6095 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6096
6097 # Define system-specific variables.
6098 case $host_os in
6099 aix*)
6100 symcode='[BCDT]'
6101 ;;
6102 cygwin* | mingw* | pw32* | cegcc*)
6103 symcode='[ABCDGISTW]'
6104 ;;
6105 hpux*)
6106 if test ia64 = "$host_cpu"; then
6107 symcode='[ABCDEGRST]'
6108 fi
6109 ;;
6110 irix* | nonstopux*)
6111 symcode='[BCDEGRST]'
6112 ;;
6113 osf*)
6114 symcode='[BCDEGQRST]'
6115 ;;
6116 solaris*)
6117 symcode='[BDRT]'
6118 ;;
6119 sco3.2v5*)
6120 symcode='[DT]'
6121 ;;
6122 sysv4.2uw2*)
6123 symcode='[DT]'
6124 ;;
6125 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6126 symcode='[ABDT]'
6127 ;;
6128 sysv4)
6129 symcode='[DFNSTU]'
6130 ;;
6131 esac
6132
6133 # If we're using GNU nm, then use its standard symbol codes.
6134 case `$NM -V 2>&1` in
6135 *GNU* | *'with BFD'*)
6136 symcode='[ABCDGIRSTW]' ;;
6137 esac
6138
6139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6140 # Gets list of data symbols to import.
6141 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6142 # Adjust the below global symbol transforms to fixup imported variables.
6143 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6144 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6145 lt_c_name_lib_hook="\
6146 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6147 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6148 else
6149 # Disable hooks by default.
6150 lt_cv_sys_global_symbol_to_import=
6151 lt_cdecl_hook=
6152 lt_c_name_hook=
6153 lt_c_name_lib_hook=
6154 fi
6155
6156 # Transform an extracted symbol line into a proper C declaration.
6157 # Some systems (esp. on ia64) link data and code symbols differently,
6158 # so use this general approach.
6159 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6160 $lt_cdecl_hook\
6161 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6162 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6163
6164 # Transform an extracted symbol line into symbol name and symbol address
6165 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6166 $lt_c_name_hook\
6167 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6168 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6169
6170 # Transform an extracted symbol line into symbol name with lib prefix and
6171 # symbol address.
6172 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6173 $lt_c_name_lib_hook\
6174 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6175 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6176 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6177
6178 # Handle CRLF in mingw tool chain
6179 opt_cr=
6180 case $build_os in
6181 mingw*)
6182 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6183 ;;
6184 esac
6185
6186 # Try without a prefix underscore, then with it.
6187 for ac_symprfx in "" "_"; do
6188
6189 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6190 symxfrm="\\1 $ac_symprfx\\2 \\2"
6191
6192 # Write the raw and C identifiers.
6193 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6194 # Fake it for dumpbin and say T for any non-static function,
6195 # D for any global variable and I for any imported variable.
6196 # Also find C++ and __fastcall symbols from MSVC++,
6197 # which start with @ or ?.
6198 lt_cv_sys_global_symbol_pipe="$AWK '"\
6199 " {last_section=section; section=\$ 3};"\
6200 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6201 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6202 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6203 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6204 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6205 " \$ 0!~/External *\|/{next};"\
6206 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6207 " {if(hide[section]) next};"\
6208 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6209 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6210 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6211 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6212 " ' prfx=^$ac_symprfx"
6213 else
6214 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6215 fi
6216 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6217
6218 # Check to see that the pipe works correctly.
6219 pipe_works=no
6220
6221 rm -f conftest*
6222 cat > conftest.$ac_ext <<_LT_EOF
6223 #ifdef __cplusplus
6224 extern "C" {
6225 #endif
6226 char nm_test_var;
6227 void nm_test_func(void);
6228 void nm_test_func(void){}
6229 #ifdef __cplusplus
6230 }
6231 #endif
6232 int main(){nm_test_var='a';nm_test_func();return(0);}
6233 _LT_EOF
6234
6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6236 (eval $ac_compile) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }; then
6240 # Now try to grab the symbols.
6241 nlist=conftest.nm
6242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6243 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6244 ac_status=$?
6245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6246 test $ac_status = 0; } && test -s "$nlist"; then
6247 # Try sorting and uniquifying the output.
6248 if sort "$nlist" | uniq > "$nlist"T; then
6249 mv -f "$nlist"T "$nlist"
6250 else
6251 rm -f "$nlist"T
6252 fi
6253
6254 # Make sure that we snagged all the symbols we need.
6255 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6256 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6257 cat <<_LT_EOF > conftest.$ac_ext
6258 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6259 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6260 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6261 relocations are performed -- see ld's documentation on pseudo-relocs. */
6262 # define LT_DLSYM_CONST
6263 #elif defined __osf__
6264 /* This system does not cope well with relocations in const data. */
6265 # define LT_DLSYM_CONST
6266 #else
6267 # define LT_DLSYM_CONST const
6268 #endif
6269
6270 #ifdef __cplusplus
6271 extern "C" {
6272 #endif
6273
6274 _LT_EOF
6275 # Now generate the symbol file.
6276 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6277
6278 cat <<_LT_EOF >> conftest.$ac_ext
6279
6280 /* The mapping between symbol names and symbols. */
6281 LT_DLSYM_CONST struct {
6282 const char *name;
6283 void *address;
6284 }
6285 lt__PROGRAM__LTX_preloaded_symbols[] =
6286 {
6287 { "@PROGRAM@", (void *) 0 },
6288 _LT_EOF
6289 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6290 cat <<\_LT_EOF >> conftest.$ac_ext
6291 {0, (void *) 0}
6292 };
6293
6294 /* This works around a problem in FreeBSD linker */
6295 #ifdef FREEBSD_WORKAROUND
6296 static const void *lt_preloaded_setup() {
6297 return lt__PROGRAM__LTX_preloaded_symbols;
6298 }
6299 #endif
6300
6301 #ifdef __cplusplus
6302 }
6303 #endif
6304 _LT_EOF
6305 # Now try linking the two files.
6306 mv conftest.$ac_objext conftstm.$ac_objext
6307 lt_globsym_save_LIBS=$LIBS
6308 lt_globsym_save_CFLAGS=$CFLAGS
6309 LIBS=conftstm.$ac_objext
6310 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6312 (eval $ac_link) 2>&5
6313 ac_status=$?
6314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6316 pipe_works=yes
6317 fi
6318 LIBS=$lt_globsym_save_LIBS
6319 CFLAGS=$lt_globsym_save_CFLAGS
6320 else
6321 echo "cannot find nm_test_func in $nlist" >&5
6322 fi
6323 else
6324 echo "cannot find nm_test_var in $nlist" >&5
6325 fi
6326 else
6327 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6328 fi
6329 else
6330 echo "$progname: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6332 fi
6333 rm -rf conftest* conftst*
6334
6335 # Do not use the global_symbol_pipe unless it works.
6336 if test yes = "$pipe_works"; then
6337 break
6338 else
6339 lt_cv_sys_global_symbol_pipe=
6340 fi
6341 done
6342
6343 fi
6344
6345 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6346 lt_cv_sys_global_symbol_to_cdecl=
6347 fi
6348 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6350 $as_echo "failed" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6353 $as_echo "ok" >&6; }
6354 fi
6355
6356 # Response file support.
6357 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6358 nm_file_list_spec='@'
6359 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6360 nm_file_list_spec='@'
6361 fi
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6400 $as_echo_n "checking for sysroot... " >&6; }
6401
6402 # Check whether --with-sysroot was given.
6403 if test "${with_sysroot+set}" = set; then :
6404 withval=$with_sysroot;
6405 else
6406 with_sysroot=no
6407 fi
6408
6409
6410 lt_sysroot=
6411 case $with_sysroot in #(
6412 yes)
6413 if test yes = "$GCC"; then
6414 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6415 fi
6416 ;; #(
6417 /*)
6418 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6419 ;; #(
6420 no|'')
6421 ;; #(
6422 *)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6424 $as_echo "$with_sysroot" >&6; }
6425 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6426 ;;
6427 esac
6428
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6430 $as_echo "${lt_sysroot:-no}" >&6; }
6431
6432
6433
6434
6435
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6437 $as_echo_n "checking for a working dd... " >&6; }
6438 if ${ac_cv_path_lt_DD+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 printf 0123456789abcdef0123456789abcdef >conftest.i
6442 cat conftest.i conftest.i >conftest2.i
6443 : ${lt_DD:=$DD}
6444 if test -z "$lt_DD"; then
6445 ac_path_lt_DD_found=false
6446 # Loop through the user's path and test for each of PROGNAME-LIST
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_prog in dd; do
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6455 as_fn_executable_p "$ac_path_lt_DD" || continue
6456 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6457 cmp -s conftest.i conftest.out \
6458 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6459 fi
6460 $ac_path_lt_DD_found && break 3
6461 done
6462 done
6463 done
6464 IFS=$as_save_IFS
6465 if test -z "$ac_cv_path_lt_DD"; then
6466 :
6467 fi
6468 else
6469 ac_cv_path_lt_DD=$lt_DD
6470 fi
6471
6472 rm -f conftest.i conftest2.i conftest.out
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6475 $as_echo "$ac_cv_path_lt_DD" >&6; }
6476
6477
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6479 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6480 if ${lt_cv_truncate_bin+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 printf 0123456789abcdef0123456789abcdef >conftest.i
6484 cat conftest.i conftest.i >conftest2.i
6485 lt_cv_truncate_bin=
6486 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6487 cmp -s conftest.i conftest.out \
6488 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6489 fi
6490 rm -f conftest.i conftest2.i conftest.out
6491 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6492 fi
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6494 $as_echo "$lt_cv_truncate_bin" >&6; }
6495
6496
6497
6498
6499
6500
6501
6502 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6503 func_cc_basename ()
6504 {
6505 for cc_temp in $*""; do
6506 case $cc_temp in
6507 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6508 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6509 \-*) ;;
6510 *) break;;
6511 esac
6512 done
6513 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6514 }
6515
6516 # Check whether --enable-libtool-lock was given.
6517 if test "${enable_libtool_lock+set}" = set; then :
6518 enableval=$enable_libtool_lock;
6519 fi
6520
6521 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6522
6523 # Some flags need to be propagated to the compiler or linker for good
6524 # libtool support.
6525 case $host in
6526 ia64-*-hpux*)
6527 # Find out what ABI is being produced by ac_compile, and set mode
6528 # options accordingly.
6529 echo 'int i;' > conftest.$ac_ext
6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6531 (eval $ac_compile) 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
6535 case `/usr/bin/file conftest.$ac_objext` in
6536 *ELF-32*)
6537 HPUX_IA64_MODE=32
6538 ;;
6539 *ELF-64*)
6540 HPUX_IA64_MODE=64
6541 ;;
6542 esac
6543 fi
6544 rm -rf conftest*
6545 ;;
6546 *-*-irix6*)
6547 # Find out what ABI is being produced by ac_compile, and set linker
6548 # options accordingly.
6549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 if test yes = "$lt_cv_prog_gnu_ld"; then
6556 case `/usr/bin/file conftest.$ac_objext` in
6557 *32-bit*)
6558 LD="${LD-ld} -melf32bsmip"
6559 ;;
6560 *N32*)
6561 LD="${LD-ld} -melf32bmipn32"
6562 ;;
6563 *64-bit*)
6564 LD="${LD-ld} -melf64bmip"
6565 ;;
6566 esac
6567 else
6568 case `/usr/bin/file conftest.$ac_objext` in
6569 *32-bit*)
6570 LD="${LD-ld} -32"
6571 ;;
6572 *N32*)
6573 LD="${LD-ld} -n32"
6574 ;;
6575 *64-bit*)
6576 LD="${LD-ld} -64"
6577 ;;
6578 esac
6579 fi
6580 fi
6581 rm -rf conftest*
6582 ;;
6583
6584 mips64*-*linux*)
6585 # Find out what ABI is being produced by ac_compile, and set linker
6586 # options accordingly.
6587 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6589 (eval $ac_compile) 2>&5
6590 ac_status=$?
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592 test $ac_status = 0; }; then
6593 emul=elf
6594 case `/usr/bin/file conftest.$ac_objext` in
6595 *32-bit*)
6596 emul="${emul}32"
6597 ;;
6598 *64-bit*)
6599 emul="${emul}64"
6600 ;;
6601 esac
6602 case `/usr/bin/file conftest.$ac_objext` in
6603 *MSB*)
6604 emul="${emul}btsmip"
6605 ;;
6606 *LSB*)
6607 emul="${emul}ltsmip"
6608 ;;
6609 esac
6610 case `/usr/bin/file conftest.$ac_objext` in
6611 *N32*)
6612 emul="${emul}n32"
6613 ;;
6614 esac
6615 LD="${LD-ld} -m $emul"
6616 fi
6617 rm -rf conftest*
6618 ;;
6619
6620 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6621 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6622 # Find out what ABI is being produced by ac_compile, and set linker
6623 # options accordingly. Note that the listed cases only cover the
6624 # situations where additional linker options are needed (such as when
6625 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6626 # vice versa); the common cases where no linker options are needed do
6627 # not appear in the list.
6628 echo 'int i;' > conftest.$ac_ext
6629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6630 (eval $ac_compile) 2>&5
6631 ac_status=$?
6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633 test $ac_status = 0; }; then
6634 case `/usr/bin/file conftest.o` in
6635 *32-bit*)
6636 case $host in
6637 x86_64-*kfreebsd*-gnu)
6638 LD="${LD-ld} -m elf_i386_fbsd"
6639 ;;
6640 x86_64-*linux*)
6641 case `/usr/bin/file conftest.o` in
6642 *x86-64*)
6643 LD="${LD-ld} -m elf32_x86_64"
6644 ;;
6645 *)
6646 LD="${LD-ld} -m elf_i386"
6647 ;;
6648 esac
6649 ;;
6650 powerpc64le-*linux*)
6651 LD="${LD-ld} -m elf32lppclinux"
6652 ;;
6653 powerpc64-*linux*)
6654 LD="${LD-ld} -m elf32ppclinux"
6655 ;;
6656 s390x-*linux*)
6657 LD="${LD-ld} -m elf_s390"
6658 ;;
6659 sparc64-*linux*)
6660 LD="${LD-ld} -m elf32_sparc"
6661 ;;
6662 esac
6663 ;;
6664 *64-bit*)
6665 case $host in
6666 x86_64-*kfreebsd*-gnu)
6667 LD="${LD-ld} -m elf_x86_64_fbsd"
6668 ;;
6669 x86_64-*linux*)
6670 LD="${LD-ld} -m elf_x86_64"
6671 ;;
6672 powerpcle-*linux*)
6673 LD="${LD-ld} -m elf64lppc"
6674 ;;
6675 powerpc-*linux*)
6676 LD="${LD-ld} -m elf64ppc"
6677 ;;
6678 s390*-*linux*|s390*-*tpf*)
6679 LD="${LD-ld} -m elf64_s390"
6680 ;;
6681 sparc*-*linux*)
6682 LD="${LD-ld} -m elf64_sparc"
6683 ;;
6684 esac
6685 ;;
6686 esac
6687 fi
6688 rm -rf conftest*
6689 ;;
6690
6691 *-*-sco3.2v5*)
6692 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6693 SAVE_CFLAGS=$CFLAGS
6694 CFLAGS="$CFLAGS -belf"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6696 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6697 if ${lt_cv_cc_needs_belf+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 ac_ext=c
6701 ac_cpp='$CPP $CPPFLAGS'
6702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6705
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708
6709 int
6710 main ()
6711 {
6712
6713 ;
6714 return 0;
6715 }
6716 _ACEOF
6717 if ac_fn_c_try_link "$LINENO"; then :
6718 lt_cv_cc_needs_belf=yes
6719 else
6720 lt_cv_cc_needs_belf=no
6721 fi
6722 rm -f core conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
6724 ac_ext=c
6725 ac_cpp='$CPP $CPPFLAGS'
6726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6729
6730 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6732 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6733 if test yes != "$lt_cv_cc_needs_belf"; then
6734 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6735 CFLAGS=$SAVE_CFLAGS
6736 fi
6737 ;;
6738 *-*solaris*)
6739 # Find out what ABI is being produced by ac_compile, and set linker
6740 # options accordingly.
6741 echo 'int i;' > conftest.$ac_ext
6742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6743 (eval $ac_compile) 2>&5
6744 ac_status=$?
6745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6746 test $ac_status = 0; }; then
6747 case `/usr/bin/file conftest.o` in
6748 *64-bit*)
6749 case $lt_cv_prog_gnu_ld in
6750 yes*)
6751 case $host in
6752 i?86-*-solaris*|x86_64-*-solaris*)
6753 LD="${LD-ld} -m elf_x86_64"
6754 ;;
6755 sparc*-*-solaris*)
6756 LD="${LD-ld} -m elf64_sparc"
6757 ;;
6758 esac
6759 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6760 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6761 LD=${LD-ld}_sol2
6762 fi
6763 ;;
6764 *)
6765 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6766 LD="${LD-ld} -64"
6767 fi
6768 ;;
6769 esac
6770 ;;
6771 esac
6772 fi
6773 rm -rf conftest*
6774 ;;
6775 esac
6776
6777 need_locks=$enable_libtool_lock
6778
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}mt; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test -n "$MANIFEST_TOOL"; then
6788 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6808 if test -n "$MANIFEST_TOOL"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6810 $as_echo "$MANIFEST_TOOL" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6819 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6820 # Extract the first word of "mt", so it can be a program name with args.
6821 set dummy mt; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 if test -n "$ac_ct_MANIFEST_TOOL"; then
6828 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6837 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6848 if test -n "$ac_ct_MANIFEST_TOOL"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6850 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6851 else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6857 MANIFEST_TOOL=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6866 fi
6867 else
6868 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6869 fi
6870
6871 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6873 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6874 if ${lt_cv_path_mainfest_tool+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 lt_cv_path_mainfest_tool=no
6878 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6879 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6880 cat conftest.err >&5
6881 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6882 lt_cv_path_mainfest_tool=yes
6883 fi
6884 rm -f conftest*
6885 fi
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6887 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6888 if test yes != "$lt_cv_path_mainfest_tool"; then
6889 MANIFEST_TOOL=:
6890 fi
6891
6892
6893
6894
6895
6896
6897 case $host_os in
6898 rhapsody* | darwin*)
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$DSYMUTIL"; then
6908 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6928 if test -n "$DSYMUTIL"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6930 $as_echo "$DSYMUTIL" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_DSYMUTIL"; then
6939 ac_ct_DSYMUTIL=$DSYMUTIL
6940 # Extract the first word of "dsymutil", so it can be a program name with args.
6941 set dummy dsymutil; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_DSYMUTIL"; then
6948 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6968 if test -n "$ac_ct_DSYMUTIL"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6970 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976 if test "x$ac_ct_DSYMUTIL" = x; then
6977 DSYMUTIL=":"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985 DSYMUTIL=$ac_ct_DSYMUTIL
6986 fi
6987 else
6988 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6989 fi
6990
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_NMEDIT+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$NMEDIT"; then
7000 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 NMEDIT=$ac_cv_prog_NMEDIT
7020 if test -n "$NMEDIT"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7022 $as_echo "$NMEDIT" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_NMEDIT"; then
7031 ac_ct_NMEDIT=$NMEDIT
7032 # Extract the first word of "nmedit", so it can be a program name with args.
7033 set dummy nmedit; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 if test -n "$ac_ct_NMEDIT"; then
7040 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7060 if test -n "$ac_ct_NMEDIT"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7062 $as_echo "$ac_ct_NMEDIT" >&6; }
7063 else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067
7068 if test "x$ac_ct_NMEDIT" = x; then
7069 NMEDIT=":"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077 NMEDIT=$ac_ct_NMEDIT
7078 fi
7079 else
7080 NMEDIT="$ac_cv_prog_NMEDIT"
7081 fi
7082
7083 if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if ${ac_cv_prog_LIPO+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test -n "$LIPO"; then
7092 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi
7110 fi
7111 LIPO=$ac_cv_prog_LIPO
7112 if test -n "$LIPO"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7114 $as_echo "$LIPO" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119
7120
7121 fi
7122 if test -z "$ac_cv_prog_LIPO"; then
7123 ac_ct_LIPO=$LIPO
7124 # Extract the first word of "lipo", so it can be a program name with args.
7125 set dummy lipo; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 if test -n "$ac_ct_LIPO"; then
7132 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_ac_ct_LIPO="lipo"
7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7152 if test -n "$ac_ct_LIPO"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7154 $as_echo "$ac_ct_LIPO" >&6; }
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7158 fi
7159
7160 if test "x$ac_ct_LIPO" = x; then
7161 LIPO=":"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169 LIPO=$ac_ct_LIPO
7170 fi
7171 else
7172 LIPO="$ac_cv_prog_LIPO"
7173 fi
7174
7175 if test -n "$ac_tool_prefix"; then
7176 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7177 set dummy ${ac_tool_prefix}otool; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_prog_OTOOL+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 if test -n "$OTOOL"; then
7184 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7188 do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197 done
7198 done
7199 IFS=$as_save_IFS
7200
7201 fi
7202 fi
7203 OTOOL=$ac_cv_prog_OTOOL
7204 if test -n "$OTOOL"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7206 $as_echo "$OTOOL" >&6; }
7207 else
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7210 fi
7211
7212
7213 fi
7214 if test -z "$ac_cv_prog_OTOOL"; then
7215 ac_ct_OTOOL=$OTOOL
7216 # Extract the first word of "otool", so it can be a program name with args.
7217 set dummy otool; ac_word=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 if test -n "$ac_ct_OTOOL"; then
7224 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7225 else
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233 ac_cv_prog_ac_ct_OTOOL="otool"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 break 2
7236 fi
7237 done
7238 done
7239 IFS=$as_save_IFS
7240
7241 fi
7242 fi
7243 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7244 if test -n "$ac_ct_OTOOL"; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7246 $as_echo "$ac_ct_OTOOL" >&6; }
7247 else
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249 $as_echo "no" >&6; }
7250 fi
7251
7252 if test "x$ac_ct_OTOOL" = x; then
7253 OTOOL=":"
7254 else
7255 case $cross_compiling:$ac_tool_warned in
7256 yes:)
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7259 ac_tool_warned=yes ;;
7260 esac
7261 OTOOL=$ac_ct_OTOOL
7262 fi
7263 else
7264 OTOOL="$ac_cv_prog_OTOOL"
7265 fi
7266
7267 if test -n "$ac_tool_prefix"; then
7268 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7269 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_OTOOL64+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$OTOOL64"; then
7276 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 OTOOL64=$ac_cv_prog_OTOOL64
7296 if test -n "$OTOOL64"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7298 $as_echo "$OTOOL64" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304
7305 fi
7306 if test -z "$ac_cv_prog_OTOOL64"; then
7307 ac_ct_OTOOL64=$OTOOL64
7308 # Extract the first word of "otool64", so it can be a program name with args.
7309 set dummy otool64; ac_word=$2
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 if test -n "$ac_ct_OTOOL64"; then
7316 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_ac_ct_OTOOL64="otool64"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329 done
7330 done
7331 IFS=$as_save_IFS
7332
7333 fi
7334 fi
7335 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7336 if test -n "$ac_ct_OTOOL64"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7338 $as_echo "$ac_ct_OTOOL64" >&6; }
7339 else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7342 fi
7343
7344 if test "x$ac_ct_OTOOL64" = x; then
7345 OTOOL64=":"
7346 else
7347 case $cross_compiling:$ac_tool_warned in
7348 yes:)
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7351 ac_tool_warned=yes ;;
7352 esac
7353 OTOOL64=$ac_ct_OTOOL64
7354 fi
7355 else
7356 OTOOL64="$ac_cv_prog_OTOOL64"
7357 fi
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7386 $as_echo_n "checking for -single_module linker flag... " >&6; }
7387 if ${lt_cv_apple_cc_single_mod+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 lt_cv_apple_cc_single_mod=no
7391 if test -z "$LT_MULTI_MODULE"; then
7392 # By default we will add the -single_module flag. You can override
7393 # by either setting the environment variable LT_MULTI_MODULE
7394 # non-empty at configure time, or by adding -multi_module to the
7395 # link flags.
7396 rm -rf libconftest.dylib*
7397 echo "int foo(void){return 1;}" > conftest.c
7398 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7399 -dynamiclib -Wl,-single_module conftest.c" >&5
7400 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7401 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7402 _lt_result=$?
7403 # If there is a non-empty error log, and "single_module"
7404 # appears in it, assume the flag caused a linker warning
7405 if test -s conftest.err && $GREP single_module conftest.err; then
7406 cat conftest.err >&5
7407 # Otherwise, if the output was created with a 0 exit code from
7408 # the compiler, it worked.
7409 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7410 lt_cv_apple_cc_single_mod=yes
7411 else
7412 cat conftest.err >&5
7413 fi
7414 rm -rf libconftest.dylib*
7415 rm -f conftest.*
7416 fi
7417 fi
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7419 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7422 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7423 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 lt_cv_ld_exported_symbols_list=no
7427 save_LDFLAGS=$LDFLAGS
7428 echo "_main" > conftest.sym
7429 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432
7433 int
7434 main ()
7435 {
7436
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 if ac_fn_c_try_link "$LINENO"; then :
7442 lt_cv_ld_exported_symbols_list=yes
7443 else
7444 lt_cv_ld_exported_symbols_list=no
7445 fi
7446 rm -f core conftest.err conftest.$ac_objext \
7447 conftest$ac_exeext conftest.$ac_ext
7448 LDFLAGS=$save_LDFLAGS
7449
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7452 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7453
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7455 $as_echo_n "checking for -force_load linker flag... " >&6; }
7456 if ${lt_cv_ld_force_load+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 lt_cv_ld_force_load=no
7460 cat > conftest.c << _LT_EOF
7461 int forced_loaded() { return 2;}
7462 _LT_EOF
7463 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7464 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7465 echo "$AR cru libconftest.a conftest.o" >&5
7466 $AR cru libconftest.a conftest.o 2>&5
7467 echo "$RANLIB libconftest.a" >&5
7468 $RANLIB libconftest.a 2>&5
7469 cat > conftest.c << _LT_EOF
7470 int main() { return 0;}
7471 _LT_EOF
7472 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7473 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7474 _lt_result=$?
7475 if test -s conftest.err && $GREP force_load conftest.err; then
7476 cat conftest.err >&5
7477 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7478 lt_cv_ld_force_load=yes
7479 else
7480 cat conftest.err >&5
7481 fi
7482 rm -f conftest.err libconftest.a conftest conftest.c
7483 rm -rf conftest.dSYM
7484
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7487 $as_echo "$lt_cv_ld_force_load" >&6; }
7488 case $host_os in
7489 rhapsody* | darwin1.[012])
7490 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7491 darwin1.*)
7492 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7493 darwin*) # darwin 5.x on
7494 # if running on 10.5 or later, the deployment target defaults
7495 # to the OS version, if on x86, and 10.4, the deployment
7496 # target defaults to 10.4. Don't you love it?
7497 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7498 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7499 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7500 10.[012][,.]*)
7501 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7502 10.*)
7503 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7504 esac
7505 ;;
7506 esac
7507 if test yes = "$lt_cv_apple_cc_single_mod"; then
7508 _lt_dar_single_mod='$single_module'
7509 fi
7510 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7511 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7512 else
7513 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7514 fi
7515 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7516 _lt_dsymutil='~$DSYMUTIL $lib || :'
7517 else
7518 _lt_dsymutil=
7519 fi
7520 ;;
7521 esac
7522
7523 # func_munge_path_list VARIABLE PATH
7524 # -----------------------------------
7525 # VARIABLE is name of variable containing _space_ separated list of
7526 # directories to be munged by the contents of PATH, which is string
7527 # having a format:
7528 # "DIR[:DIR]:"
7529 # string "DIR[ DIR]" will be prepended to VARIABLE
7530 # ":DIR[:DIR]"
7531 # string "DIR[ DIR]" will be appended to VARIABLE
7532 # "DIRP[:DIRP]::[DIRA:]DIRA"
7533 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7534 # "DIRA[ DIRA]" will be appended to VARIABLE
7535 # "DIR[:DIR]"
7536 # VARIABLE will be replaced by "DIR[ DIR]"
7537 func_munge_path_list ()
7538 {
7539 case x$2 in
7540 x)
7541 ;;
7542 *:)
7543 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7544 ;;
7545 x:*)
7546 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7547 ;;
7548 *::*)
7549 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7550 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7551 ;;
7552 *)
7553 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7554 ;;
7555 esac
7556 }
7557
7558 ac_ext=c
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7564 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7565 # On Suns, sometimes $CPP names a directory.
7566 if test -n "$CPP" && test -d "$CPP"; then
7567 CPP=
7568 fi
7569 if test -z "$CPP"; then
7570 if ${ac_cv_prog_CPP+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 # Double quotes because CPP needs to be expanded
7574 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7575 do
7576 ac_preproc_ok=false
7577 for ac_c_preproc_warn_flag in '' yes
7578 do
7579 # Use a header file that comes with gcc, so configuring glibc
7580 # with a fresh cross-compiler works.
7581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7582 # <limits.h> exists even on freestanding compilers.
7583 # On the NeXT, cc -E runs the code through the compiler's parser,
7584 # not just through cpp. "Syntax error" is here to catch this case.
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 #ifdef __STDC__
7588 # include <limits.h>
7589 #else
7590 # include <assert.h>
7591 #endif
7592 Syntax error
7593 _ACEOF
7594 if ac_fn_c_try_cpp "$LINENO"; then :
7595
7596 else
7597 # Broken: fails on valid input.
7598 continue
7599 fi
7600 rm -f conftest.err conftest.i conftest.$ac_ext
7601
7602 # OK, works on sane cases. Now check whether nonexistent headers
7603 # can be detected and how.
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 #include <ac_nonexistent.h>
7607 _ACEOF
7608 if ac_fn_c_try_cpp "$LINENO"; then :
7609 # Broken: success on invalid input.
7610 continue
7611 else
7612 # Passes both tests.
7613 ac_preproc_ok=:
7614 break
7615 fi
7616 rm -f conftest.err conftest.i conftest.$ac_ext
7617
7618 done
7619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7620 rm -f conftest.i conftest.err conftest.$ac_ext
7621 if $ac_preproc_ok; then :
7622 break
7623 fi
7624
7625 done
7626 ac_cv_prog_CPP=$CPP
7627
7628 fi
7629 CPP=$ac_cv_prog_CPP
7630 else
7631 ac_cv_prog_CPP=$CPP
7632 fi
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7634 $as_echo "$CPP" >&6; }
7635 ac_preproc_ok=false
7636 for ac_c_preproc_warn_flag in '' yes
7637 do
7638 # Use a header file that comes with gcc, so configuring glibc
7639 # with a fresh cross-compiler works.
7640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7641 # <limits.h> exists even on freestanding compilers.
7642 # On the NeXT, cc -E runs the code through the compiler's parser,
7643 # not just through cpp. "Syntax error" is here to catch this case.
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 #ifdef __STDC__
7647 # include <limits.h>
7648 #else
7649 # include <assert.h>
7650 #endif
7651 Syntax error
7652 _ACEOF
7653 if ac_fn_c_try_cpp "$LINENO"; then :
7654
7655 else
7656 # Broken: fails on valid input.
7657 continue
7658 fi
7659 rm -f conftest.err conftest.i conftest.$ac_ext
7660
7661 # OK, works on sane cases. Now check whether nonexistent headers
7662 # can be detected and how.
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665 #include <ac_nonexistent.h>
7666 _ACEOF
7667 if ac_fn_c_try_cpp "$LINENO"; then :
7668 # Broken: success on invalid input.
7669 continue
7670 else
7671 # Passes both tests.
7672 ac_preproc_ok=:
7673 break
7674 fi
7675 rm -f conftest.err conftest.i conftest.$ac_ext
7676
7677 done
7678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7679 rm -f conftest.i conftest.err conftest.$ac_ext
7680 if $ac_preproc_ok; then :
7681
7682 else
7683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7685 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7686 See \`config.log' for more details" "$LINENO" 5; }
7687 fi
7688
7689 ac_ext=c
7690 ac_cpp='$CPP $CPPFLAGS'
7691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7694
7695
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7697 $as_echo_n "checking for ANSI C header files... " >&6; }
7698 if ${ac_cv_header_stdc+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 #include <stdlib.h>
7704 #include <stdarg.h>
7705 #include <string.h>
7706 #include <float.h>
7707
7708 int
7709 main ()
7710 {
7711
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 if ac_fn_c_try_compile "$LINENO"; then :
7717 ac_cv_header_stdc=yes
7718 else
7719 ac_cv_header_stdc=no
7720 fi
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722
7723 if test $ac_cv_header_stdc = yes; then
7724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 #include <string.h>
7728
7729 _ACEOF
7730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7731 $EGREP "memchr" >/dev/null 2>&1; then :
7732
7733 else
7734 ac_cv_header_stdc=no
7735 fi
7736 rm -f conftest*
7737
7738 fi
7739
7740 if test $ac_cv_header_stdc = yes; then
7741 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #include <stdlib.h>
7745
7746 _ACEOF
7747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748 $EGREP "free" >/dev/null 2>&1; then :
7749
7750 else
7751 ac_cv_header_stdc=no
7752 fi
7753 rm -f conftest*
7754
7755 fi
7756
7757 if test $ac_cv_header_stdc = yes; then
7758 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7759 if test "$cross_compiling" = yes; then :
7760 :
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 #include <ctype.h>
7765 #include <stdlib.h>
7766 #if ((' ' & 0x0FF) == 0x020)
7767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7769 #else
7770 # define ISLOWER(c) \
7771 (('a' <= (c) && (c) <= 'i') \
7772 || ('j' <= (c) && (c) <= 'r') \
7773 || ('s' <= (c) && (c) <= 'z'))
7774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7775 #endif
7776
7777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7778 int
7779 main ()
7780 {
7781 int i;
7782 for (i = 0; i < 256; i++)
7783 if (XOR (islower (i), ISLOWER (i))
7784 || toupper (i) != TOUPPER (i))
7785 return 2;
7786 return 0;
7787 }
7788 _ACEOF
7789 if ac_fn_c_try_run "$LINENO"; then :
7790
7791 else
7792 ac_cv_header_stdc=no
7793 fi
7794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7795 conftest.$ac_objext conftest.beam conftest.$ac_ext
7796 fi
7797
7798 fi
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7801 $as_echo "$ac_cv_header_stdc" >&6; }
7802 if test $ac_cv_header_stdc = yes; then
7803
7804 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7805
7806 fi
7807
7808 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7809 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7810 inttypes.h stdint.h unistd.h
7811 do :
7812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7813 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7814 "
7815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7816 cat >>confdefs.h <<_ACEOF
7817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7818 _ACEOF
7819
7820 fi
7821
7822 done
7823
7824
7825 for ac_header in dlfcn.h
7826 do :
7827 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7828 "
7829 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7830 cat >>confdefs.h <<_ACEOF
7831 #define HAVE_DLFCN_H 1
7832 _ACEOF
7833
7834 fi
7835
7836 done
7837
7838
7839
7840
7841
7842 # Set options
7843
7844
7845
7846 enable_dlopen=no
7847
7848
7849 enable_win32_dll=no
7850
7851
7852 # Check whether --enable-shared was given.
7853 if test "${enable_shared+set}" = set; then :
7854 enableval=$enable_shared; p=${PACKAGE-default}
7855 case $enableval in
7856 yes) enable_shared=yes ;;
7857 no) enable_shared=no ;;
7858 *)
7859 enable_shared=no
7860 # Look at the argument we got. We use all the common list separators.
7861 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7862 for pkg in $enableval; do
7863 IFS=$lt_save_ifs
7864 if test "X$pkg" = "X$p"; then
7865 enable_shared=yes
7866 fi
7867 done
7868 IFS=$lt_save_ifs
7869 ;;
7870 esac
7871 else
7872 enable_shared=yes
7873 fi
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885 # Check whether --with-pic was given.
7886 if test "${with_pic+set}" = set; then :
7887 withval=$with_pic; lt_p=${PACKAGE-default}
7888 case $withval in
7889 yes|no) pic_mode=$withval ;;
7890 *)
7891 pic_mode=default
7892 # Look at the argument we got. We use all the common list separators.
7893 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7894 for lt_pkg in $withval; do
7895 IFS=$lt_save_ifs
7896 if test "X$lt_pkg" = "X$lt_p"; then
7897 pic_mode=yes
7898 fi
7899 done
7900 IFS=$lt_save_ifs
7901 ;;
7902 esac
7903 else
7904 pic_mode=default
7905 fi
7906
7907
7908
7909
7910
7911
7912
7913
7914 # Check whether --enable-fast-install was given.
7915 if test "${enable_fast_install+set}" = set; then :
7916 enableval=$enable_fast_install; p=${PACKAGE-default}
7917 case $enableval in
7918 yes) enable_fast_install=yes ;;
7919 no) enable_fast_install=no ;;
7920 *)
7921 enable_fast_install=no
7922 # Look at the argument we got. We use all the common list separators.
7923 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7924 for pkg in $enableval; do
7925 IFS=$lt_save_ifs
7926 if test "X$pkg" = "X$p"; then
7927 enable_fast_install=yes
7928 fi
7929 done
7930 IFS=$lt_save_ifs
7931 ;;
7932 esac
7933 else
7934 enable_fast_install=yes
7935 fi
7936
7937
7938
7939
7940
7941
7942
7943
7944 shared_archive_member_spec=
7945 case $host,$enable_shared in
7946 power*-*-aix[5-9]*,yes)
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7948 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7949
7950 # Check whether --with-aix-soname was given.
7951 if test "${with_aix_soname+set}" = set; then :
7952 withval=$with_aix_soname; case $withval in
7953 aix|svr4|both)
7954 ;;
7955 *)
7956 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7957 ;;
7958 esac
7959 lt_cv_with_aix_soname=$with_aix_soname
7960 else
7961 if ${lt_cv_with_aix_soname+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 lt_cv_with_aix_soname=aix
7965 fi
7966
7967 with_aix_soname=$lt_cv_with_aix_soname
7968 fi
7969
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7971 $as_echo "$with_aix_soname" >&6; }
7972 if test aix != "$with_aix_soname"; then
7973 # For the AIX way of multilib, we name the shared archive member
7974 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7975 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7976 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7977 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7978 if test 64 = "${OBJECT_MODE-32}"; then
7979 shared_archive_member_spec=shr_64
7980 else
7981 shared_archive_member_spec=shr
7982 fi
7983 fi
7984 ;;
7985 *)
7986 with_aix_soname=aix
7987 ;;
7988 esac
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999 # This can be used to rebuild libtool when needed
8000 LIBTOOL_DEPS=$ltmain
8001
8002 # Always use our own libtool.
8003 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034 test -z "$LN_S" && LN_S="ln -s"
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049 if test -n "${ZSH_VERSION+set}"; then
8050 setopt NO_GLOB_SUBST
8051 fi
8052
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8054 $as_echo_n "checking for objdir... " >&6; }
8055 if ${lt_cv_objdir+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 rm -f .libs 2>/dev/null
8059 mkdir .libs 2>/dev/null
8060 if test -d .libs; then
8061 lt_cv_objdir=.libs
8062 else
8063 # MS-DOS does not allow filenames that begin with a dot.
8064 lt_cv_objdir=_libs
8065 fi
8066 rmdir .libs 2>/dev/null
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8069 $as_echo "$lt_cv_objdir" >&6; }
8070 objdir=$lt_cv_objdir
8071
8072
8073
8074
8075
8076 cat >>confdefs.h <<_ACEOF
8077 #define LT_OBJDIR "$lt_cv_objdir/"
8078 _ACEOF
8079
8080
8081
8082
8083 case $host_os in
8084 aix3*)
8085 # AIX sometimes has problems with the GCC collect2 program. For some
8086 # reason, if we set the COLLECT_NAMES environment variable, the problems
8087 # vanish in a puff of smoke.
8088 if test set != "${COLLECT_NAMES+set}"; then
8089 COLLECT_NAMES=
8090 export COLLECT_NAMES
8091 fi
8092 ;;
8093 esac
8094
8095 # Global variables:
8096 ofile=libtool
8097 can_build_shared=yes
8098
8099 # All known linkers require a '.a' archive for static linking (except MSVC,
8100 # which needs '.lib').
8101 libext=a
8102
8103 with_gnu_ld=$lt_cv_prog_gnu_ld
8104
8105 old_CC=$CC
8106 old_CFLAGS=$CFLAGS
8107
8108 # Set sane defaults for various variables
8109 test -z "$CC" && CC=cc
8110 test -z "$LTCC" && LTCC=$CC
8111 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8112 test -z "$LD" && LD=ld
8113 test -z "$ac_objext" && ac_objext=o
8114
8115 func_cc_basename $compiler
8116 cc_basename=$func_cc_basename_result
8117
8118
8119 # Only perform the check for file, if the check method requires it
8120 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8121 case $deplibs_check_method in
8122 file_magic*)
8123 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8125 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8126 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 case $MAGIC_CMD in
8130 [\\/*] | ?:[\\/]*)
8131 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8132 ;;
8133 *)
8134 lt_save_MAGIC_CMD=$MAGIC_CMD
8135 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8137 for ac_dir in $ac_dummy; do
8138 IFS=$lt_save_ifs
8139 test -z "$ac_dir" && ac_dir=.
8140 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8141 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8142 if test -n "$file_magic_test_file"; then
8143 case $deplibs_check_method in
8144 "file_magic "*)
8145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8146 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8148 $EGREP "$file_magic_regex" > /dev/null; then
8149 :
8150 else
8151 cat <<_LT_EOF 1>&2
8152
8153 *** Warning: the command libtool uses to detect shared libraries,
8154 *** $file_magic_cmd, produces output that libtool cannot recognize.
8155 *** The result is that libtool may fail to recognize shared libraries
8156 *** as such. This will affect the creation of libtool libraries that
8157 *** depend on shared libraries, but programs linked with such libtool
8158 *** libraries will work regardless of this problem. Nevertheless, you
8159 *** may want to report the problem to your system manager and/or to
8160 *** bug-libtool (at] gnu.org
8161
8162 _LT_EOF
8163 fi ;;
8164 esac
8165 fi
8166 break
8167 fi
8168 done
8169 IFS=$lt_save_ifs
8170 MAGIC_CMD=$lt_save_MAGIC_CMD
8171 ;;
8172 esac
8173 fi
8174
8175 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8176 if test -n "$MAGIC_CMD"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8178 $as_echo "$MAGIC_CMD" >&6; }
8179 else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184
8185
8186
8187
8188 if test -z "$lt_cv_path_MAGIC_CMD"; then
8189 if test -n "$ac_tool_prefix"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8191 $as_echo_n "checking for file... " >&6; }
8192 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 case $MAGIC_CMD in
8196 [\\/*] | ?:[\\/]*)
8197 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8198 ;;
8199 *)
8200 lt_save_MAGIC_CMD=$MAGIC_CMD
8201 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8202 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8203 for ac_dir in $ac_dummy; do
8204 IFS=$lt_save_ifs
8205 test -z "$ac_dir" && ac_dir=.
8206 if test -f "$ac_dir/file"; then
8207 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8208 if test -n "$file_magic_test_file"; then
8209 case $deplibs_check_method in
8210 "file_magic "*)
8211 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8212 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8214 $EGREP "$file_magic_regex" > /dev/null; then
8215 :
8216 else
8217 cat <<_LT_EOF 1>&2
8218
8219 *** Warning: the command libtool uses to detect shared libraries,
8220 *** $file_magic_cmd, produces output that libtool cannot recognize.
8221 *** The result is that libtool may fail to recognize shared libraries
8222 *** as such. This will affect the creation of libtool libraries that
8223 *** depend on shared libraries, but programs linked with such libtool
8224 *** libraries will work regardless of this problem. Nevertheless, you
8225 *** may want to report the problem to your system manager and/or to
8226 *** bug-libtool (at] gnu.org
8227
8228 _LT_EOF
8229 fi ;;
8230 esac
8231 fi
8232 break
8233 fi
8234 done
8235 IFS=$lt_save_ifs
8236 MAGIC_CMD=$lt_save_MAGIC_CMD
8237 ;;
8238 esac
8239 fi
8240
8241 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8242 if test -n "$MAGIC_CMD"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8244 $as_echo "$MAGIC_CMD" >&6; }
8245 else
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249
8250
8251 else
8252 MAGIC_CMD=:
8253 fi
8254 fi
8255
8256 fi
8257 ;;
8258 esac
8259
8260 # Use C for the default configuration in the libtool script
8261
8262 lt_save_CC=$CC
8263 ac_ext=c
8264 ac_cpp='$CPP $CPPFLAGS'
8265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8268
8269
8270 # Source file extension for C test sources.
8271 ac_ext=c
8272
8273 # Object file extension for compiled C test sources.
8274 objext=o
8275 objext=$objext
8276
8277 # Code to be used in simple compile tests
8278 lt_simple_compile_test_code="int some_variable = 0;"
8279
8280 # Code to be used in simple link tests
8281 lt_simple_link_test_code='int main(){return(0);}'
8282
8283
8284
8285
8286
8287
8288
8289 # If no C compiler was specified, use CC.
8290 LTCC=${LTCC-"$CC"}
8291
8292 # If no C compiler flags were specified, use CFLAGS.
8293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8294
8295 # Allow CC to be a program name with arguments.
8296 compiler=$CC
8297
8298 # Save the default compiler, since it gets overwritten when the other
8299 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8300 compiler_DEFAULT=$CC
8301
8302 # save warnings/boilerplate of simple test code
8303 ac_outfile=conftest.$ac_objext
8304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8306 _lt_compiler_boilerplate=`cat conftest.err`
8307 $RM conftest*
8308
8309 ac_outfile=conftest.$ac_objext
8310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8312 _lt_linker_boilerplate=`cat conftest.err`
8313 $RM -r conftest*
8314
8315
8316 if test -n "$compiler"; then
8317
8318 lt_prog_compiler_no_builtin_flag=
8319
8320 if test yes = "$GCC"; then
8321 case $cc_basename in
8322 nvcc*)
8323 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8324 *)
8325 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8326 esac
8327
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8329 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8330 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 lt_cv_prog_compiler_rtti_exceptions=no
8334 ac_outfile=conftest.$ac_objext
8335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8337 # Insert the option either (1) after the last *FLAGS variable, or
8338 # (2) before a word containing "conftest.", or (3) at the end.
8339 # Note that $ac_compile itself does not contain backslashes and begins
8340 # with a dollar sign (not a hyphen), so the echo should work correctly.
8341 # The option is referenced via a variable to avoid confusing sed.
8342 lt_compile=`echo "$ac_compile" | $SED \
8343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345 -e 's:$: $lt_compiler_flag:'`
8346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8347 (eval "$lt_compile" 2>conftest.err)
8348 ac_status=$?
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 if (exit $ac_status) && test -s "$ac_outfile"; then
8352 # The compiler can only warn and ignore the option if not recognized
8353 # So say no if there are warnings other than the usual output.
8354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8357 lt_cv_prog_compiler_rtti_exceptions=yes
8358 fi
8359 fi
8360 $RM conftest*
8361
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8364 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8365
8366 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8368 else
8369 :
8370 fi
8371
8372 fi
8373
8374
8375
8376
8377
8378
8379 lt_prog_compiler_wl=
8380 lt_prog_compiler_pic=
8381 lt_prog_compiler_static=
8382
8383
8384 if test yes = "$GCC"; then
8385 lt_prog_compiler_wl='-Wl,'
8386 lt_prog_compiler_static='-static'
8387
8388 case $host_os in
8389 aix*)
8390 # All AIX code is PIC.
8391 if test ia64 = "$host_cpu"; then
8392 # AIX 5 now supports IA64 processor
8393 lt_prog_compiler_static='-Bstatic'
8394 fi
8395 lt_prog_compiler_pic='-fPIC'
8396 ;;
8397
8398 amigaos*)
8399 case $host_cpu in
8400 powerpc)
8401 # see comment about AmigaOS4 .so support
8402 lt_prog_compiler_pic='-fPIC'
8403 ;;
8404 m68k)
8405 # FIXME: we need at least 68020 code to build shared libraries, but
8406 # adding the '-m68020' flag to GCC prevents building anything better,
8407 # like '-m68040'.
8408 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8409 ;;
8410 esac
8411 ;;
8412
8413 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8414 # PIC is the default for these OSes.
8415 ;;
8416
8417 mingw* | cygwin* | pw32* | os2* | cegcc*)
8418 # This hack is so that the source file can tell whether it is being
8419 # built for inclusion in a dll (and should export symbols for example).
8420 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8421 # (--disable-auto-import) libraries
8422 lt_prog_compiler_pic='-DDLL_EXPORT'
8423 case $host_os in
8424 os2*)
8425 lt_prog_compiler_static='$wl-static'
8426 ;;
8427 esac
8428 ;;
8429
8430 darwin* | rhapsody*)
8431 # PIC is the default on this platform
8432 # Common symbols not allowed in MH_DYLIB files
8433 lt_prog_compiler_pic='-fno-common'
8434 ;;
8435
8436 haiku*)
8437 # PIC is the default for Haiku.
8438 # The "-static" flag exists, but is broken.
8439 lt_prog_compiler_static=
8440 ;;
8441
8442 hpux*)
8443 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8444 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8445 # sets the default TLS model and affects inlining.
8446 case $host_cpu in
8447 hppa*64*)
8448 # +Z the default
8449 ;;
8450 *)
8451 lt_prog_compiler_pic='-fPIC'
8452 ;;
8453 esac
8454 ;;
8455
8456 interix[3-9]*)
8457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8458 # Instead, we relocate shared libraries at runtime.
8459 ;;
8460
8461 msdosdjgpp*)
8462 # Just because we use GCC doesn't mean we suddenly get shared libraries
8463 # on systems that don't support them.
8464 lt_prog_compiler_can_build_shared=no
8465 enable_shared=no
8466 ;;
8467
8468 *nto* | *qnx*)
8469 # QNX uses GNU C++, but need to define -shared option too, otherwise
8470 # it will coredump.
8471 lt_prog_compiler_pic='-fPIC -shared'
8472 ;;
8473
8474 sysv4*MP*)
8475 if test -d /usr/nec; then
8476 lt_prog_compiler_pic=-Kconform_pic
8477 fi
8478 ;;
8479
8480 *)
8481 lt_prog_compiler_pic='-fPIC'
8482 ;;
8483 esac
8484
8485 case $cc_basename in
8486 nvcc*) # Cuda Compiler Driver 2.2
8487 lt_prog_compiler_wl='-Xlinker '
8488 if test -n "$lt_prog_compiler_pic"; then
8489 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8490 fi
8491 ;;
8492 esac
8493 else
8494 # PORTME Check for flag to pass linker flags through the system compiler.
8495 case $host_os in
8496 aix*)
8497 lt_prog_compiler_wl='-Wl,'
8498 if test ia64 = "$host_cpu"; then
8499 # AIX 5 now supports IA64 processor
8500 lt_prog_compiler_static='-Bstatic'
8501 else
8502 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8503 fi
8504 ;;
8505
8506 darwin* | rhapsody*)
8507 # PIC is the default on this platform
8508 # Common symbols not allowed in MH_DYLIB files
8509 lt_prog_compiler_pic='-fno-common'
8510 case $cc_basename in
8511 nagfor*)
8512 # NAG Fortran compiler
8513 lt_prog_compiler_wl='-Wl,-Wl,,'
8514 lt_prog_compiler_pic='-PIC'
8515 lt_prog_compiler_static='-Bstatic'
8516 ;;
8517 esac
8518 ;;
8519
8520 mingw* | cygwin* | pw32* | os2* | cegcc*)
8521 # This hack is so that the source file can tell whether it is being
8522 # built for inclusion in a dll (and should export symbols for example).
8523 lt_prog_compiler_pic='-DDLL_EXPORT'
8524 case $host_os in
8525 os2*)
8526 lt_prog_compiler_static='$wl-static'
8527 ;;
8528 esac
8529 ;;
8530
8531 hpux9* | hpux10* | hpux11*)
8532 lt_prog_compiler_wl='-Wl,'
8533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8534 # not for PA HP-UX.
8535 case $host_cpu in
8536 hppa*64*|ia64*)
8537 # +Z the default
8538 ;;
8539 *)
8540 lt_prog_compiler_pic='+Z'
8541 ;;
8542 esac
8543 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8544 lt_prog_compiler_static='$wl-a ${wl}archive'
8545 ;;
8546
8547 irix5* | irix6* | nonstopux*)
8548 lt_prog_compiler_wl='-Wl,'
8549 # PIC (with -KPIC) is the default.
8550 lt_prog_compiler_static='-non_shared'
8551 ;;
8552
8553 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8554 case $cc_basename in
8555 # old Intel for x86_64, which still supported -KPIC.
8556 ecc*)
8557 lt_prog_compiler_wl='-Wl,'
8558 lt_prog_compiler_pic='-KPIC'
8559 lt_prog_compiler_static='-static'
8560 ;;
8561 # icc used to be incompatible with GCC.
8562 # ICC 10 doesn't accept -KPIC any more.
8563 icc* | ifort*)
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_pic='-fPIC'
8566 lt_prog_compiler_static='-static'
8567 ;;
8568 # Lahey Fortran 8.1.
8569 lf95*)
8570 lt_prog_compiler_wl='-Wl,'
8571 lt_prog_compiler_pic='--shared'
8572 lt_prog_compiler_static='--static'
8573 ;;
8574 nagfor*)
8575 # NAG Fortran compiler
8576 lt_prog_compiler_wl='-Wl,-Wl,,'
8577 lt_prog_compiler_pic='-PIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 ;;
8580 tcc*)
8581 # Fabrice Bellard et al's Tiny C Compiler
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-fPIC'
8584 lt_prog_compiler_static='-static'
8585 ;;
8586 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8587 # Portland Group compilers (*not* the Pentium gcc compiler,
8588 # which looks to be a dead project)
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='-fpic'
8591 lt_prog_compiler_static='-Bstatic'
8592 ;;
8593 ccc*)
8594 lt_prog_compiler_wl='-Wl,'
8595 # All Alpha code is PIC.
8596 lt_prog_compiler_static='-non_shared'
8597 ;;
8598 xl* | bgxl* | bgf* | mpixl*)
8599 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='-qpic'
8602 lt_prog_compiler_static='-qstaticlink'
8603 ;;
8604 *)
8605 case `$CC -V 2>&1 | sed 5q` in
8606 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8607 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 lt_prog_compiler_wl=''
8611 ;;
8612 *Sun\ F* | *Sun*Fortran*)
8613 lt_prog_compiler_pic='-KPIC'
8614 lt_prog_compiler_static='-Bstatic'
8615 lt_prog_compiler_wl='-Qoption ld '
8616 ;;
8617 *Sun\ C*)
8618 # Sun C 5.9
8619 lt_prog_compiler_pic='-KPIC'
8620 lt_prog_compiler_static='-Bstatic'
8621 lt_prog_compiler_wl='-Wl,'
8622 ;;
8623 *Intel*\ [CF]*Compiler*)
8624 lt_prog_compiler_wl='-Wl,'
8625 lt_prog_compiler_pic='-fPIC'
8626 lt_prog_compiler_static='-static'
8627 ;;
8628 *Portland\ Group*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-fpic'
8631 lt_prog_compiler_static='-Bstatic'
8632 ;;
8633 esac
8634 ;;
8635 esac
8636 ;;
8637
8638 newsos6)
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 ;;
8642
8643 *nto* | *qnx*)
8644 # QNX uses GNU C++, but need to define -shared option too, otherwise
8645 # it will coredump.
8646 lt_prog_compiler_pic='-fPIC -shared'
8647 ;;
8648
8649 osf3* | osf4* | osf5*)
8650 lt_prog_compiler_wl='-Wl,'
8651 # All OSF/1 code is PIC.
8652 lt_prog_compiler_static='-non_shared'
8653 ;;
8654
8655 rdos*)
8656 lt_prog_compiler_static='-non_shared'
8657 ;;
8658
8659 solaris*)
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 case $cc_basename in
8663 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8664 lt_prog_compiler_wl='-Qoption ld ';;
8665 *)
8666 lt_prog_compiler_wl='-Wl,';;
8667 esac
8668 ;;
8669
8670 sunos4*)
8671 lt_prog_compiler_wl='-Qoption ld '
8672 lt_prog_compiler_pic='-PIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 ;;
8675
8676 sysv4 | sysv4.2uw2* | sysv4.3*)
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 ;;
8681
8682 sysv4*MP*)
8683 if test -d /usr/nec; then
8684 lt_prog_compiler_pic='-Kconform_pic'
8685 lt_prog_compiler_static='-Bstatic'
8686 fi
8687 ;;
8688
8689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8693 ;;
8694
8695 unicos*)
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_can_build_shared=no
8698 ;;
8699
8700 uts4*)
8701 lt_prog_compiler_pic='-pic'
8702 lt_prog_compiler_static='-Bstatic'
8703 ;;
8704
8705 *)
8706 lt_prog_compiler_can_build_shared=no
8707 ;;
8708 esac
8709 fi
8710
8711 case $host_os in
8712 # For platforms that do not support PIC, -DPIC is meaningless:
8713 *djgpp*)
8714 lt_prog_compiler_pic=
8715 ;;
8716 *)
8717 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8718 ;;
8719 esac
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8722 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8723 if ${lt_cv_prog_compiler_pic+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8727 fi
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8729 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8730 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8731
8732 #
8733 # Check to make sure the PIC flag actually works.
8734 #
8735 if test -n "$lt_prog_compiler_pic"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8737 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8738 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 lt_cv_prog_compiler_pic_works=no
8742 ac_outfile=conftest.$ac_objext
8743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8744 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8745 # Insert the option either (1) after the last *FLAGS variable, or
8746 # (2) before a word containing "conftest.", or (3) at the end.
8747 # Note that $ac_compile itself does not contain backslashes and begins
8748 # with a dollar sign (not a hyphen), so the echo should work correctly.
8749 # The option is referenced via a variable to avoid confusing sed.
8750 lt_compile=`echo "$ac_compile" | $SED \
8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8753 -e 's:$: $lt_compiler_flag:'`
8754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8755 (eval "$lt_compile" 2>conftest.err)
8756 ac_status=$?
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 if (exit $ac_status) && test -s "$ac_outfile"; then
8760 # The compiler can only warn and ignore the option if not recognized
8761 # So say no if there are warnings other than the usual output.
8762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8765 lt_cv_prog_compiler_pic_works=yes
8766 fi
8767 fi
8768 $RM conftest*
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8772 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8773
8774 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8775 case $lt_prog_compiler_pic in
8776 "" | " "*) ;;
8777 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8778 esac
8779 else
8780 lt_prog_compiler_pic=
8781 lt_prog_compiler_can_build_shared=no
8782 fi
8783
8784 fi
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 #
8797 # Check to make sure the static flag actually works.
8798 #
8799 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8801 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8802 if ${lt_cv_prog_compiler_static_works+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 lt_cv_prog_compiler_static_works=no
8806 save_LDFLAGS=$LDFLAGS
8807 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8808 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8809 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8810 # The linker can only warn and ignore the option if not recognized
8811 # So say no if there are warnings
8812 if test -s conftest.err; then
8813 # Append any errors to the config.log.
8814 cat conftest.err 1>&5
8815 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8817 if diff conftest.exp conftest.er2 >/dev/null; then
8818 lt_cv_prog_compiler_static_works=yes
8819 fi
8820 else
8821 lt_cv_prog_compiler_static_works=yes
8822 fi
8823 fi
8824 $RM -r conftest*
8825 LDFLAGS=$save_LDFLAGS
8826
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8829 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8830
8831 if test yes = "$lt_cv_prog_compiler_static_works"; then
8832 :
8833 else
8834 lt_prog_compiler_static=
8835 fi
8836
8837
8838
8839
8840
8841
8842
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8844 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8845 if ${lt_cv_prog_compiler_c_o+:} false; then :
8846 $as_echo_n "(cached) " >&6
8847 else
8848 lt_cv_prog_compiler_c_o=no
8849 $RM -r conftest 2>/dev/null
8850 mkdir conftest
8851 cd conftest
8852 mkdir out
8853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8854
8855 lt_compiler_flag="-o out/conftest2.$ac_objext"
8856 # Insert the option either (1) after the last *FLAGS variable, or
8857 # (2) before a word containing "conftest.", or (3) at the end.
8858 # Note that $ac_compile itself does not contain backslashes and begins
8859 # with a dollar sign (not a hyphen), so the echo should work correctly.
8860 lt_compile=`echo "$ac_compile" | $SED \
8861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863 -e 's:$: $lt_compiler_flag:'`
8864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8865 (eval "$lt_compile" 2>out/conftest.err)
8866 ac_status=$?
8867 cat out/conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8870 then
8871 # The compiler can only warn and ignore the option if not recognized
8872 # So say no if there are warnings
8873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8874 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8875 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8876 lt_cv_prog_compiler_c_o=yes
8877 fi
8878 fi
8879 chmod u+w . 2>&5
8880 $RM conftest*
8881 # SGI C++ compiler will create directory out/ii_files/ for
8882 # template instantiation
8883 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8884 $RM out/* && rmdir out
8885 cd ..
8886 $RM -r conftest
8887 $RM conftest*
8888
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8891 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8892
8893
8894
8895
8896
8897
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8899 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8900 if ${lt_cv_prog_compiler_c_o+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_prog_compiler_c_o=no
8904 $RM -r conftest 2>/dev/null
8905 mkdir conftest
8906 cd conftest
8907 mkdir out
8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909
8910 lt_compiler_flag="-o out/conftest2.$ac_objext"
8911 # Insert the option either (1) after the last *FLAGS variable, or
8912 # (2) before a word containing "conftest.", or (3) at the end.
8913 # Note that $ac_compile itself does not contain backslashes and begins
8914 # with a dollar sign (not a hyphen), so the echo should work correctly.
8915 lt_compile=`echo "$ac_compile" | $SED \
8916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8918 -e 's:$: $lt_compiler_flag:'`
8919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8920 (eval "$lt_compile" 2>out/conftest.err)
8921 ac_status=$?
8922 cat out/conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8925 then
8926 # The compiler can only warn and ignore the option if not recognized
8927 # So say no if there are warnings
8928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8931 lt_cv_prog_compiler_c_o=yes
8932 fi
8933 fi
8934 chmod u+w . 2>&5
8935 $RM conftest*
8936 # SGI C++ compiler will create directory out/ii_files/ for
8937 # template instantiation
8938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8939 $RM out/* && rmdir out
8940 cd ..
8941 $RM -r conftest
8942 $RM conftest*
8943
8944 fi
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8946 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8947
8948
8949
8950
8951 hard_links=nottested
8952 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8953 # do not overwrite the value of need_locks provided by the user
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8955 $as_echo_n "checking if we can lock with hard links... " >&6; }
8956 hard_links=yes
8957 $RM conftest*
8958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959 touch conftest.a
8960 ln conftest.a conftest.b 2>&5 || hard_links=no
8961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8963 $as_echo "$hard_links" >&6; }
8964 if test no = "$hard_links"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8966 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8967 need_locks=warn
8968 fi
8969 else
8970 need_locks=no
8971 fi
8972
8973
8974
8975
8976
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8979 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8980
8981 runpath_var=
8982 allow_undefined_flag=
8983 always_export_symbols=no
8984 archive_cmds=
8985 archive_expsym_cmds=
8986 compiler_needs_object=no
8987 enable_shared_with_static_runtimes=no
8988 export_dynamic_flag_spec=
8989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8990 hardcode_automatic=no
8991 hardcode_direct=no
8992 hardcode_direct_absolute=no
8993 hardcode_libdir_flag_spec=
8994 hardcode_libdir_separator=
8995 hardcode_minus_L=no
8996 hardcode_shlibpath_var=unsupported
8997 inherit_rpath=no
8998 link_all_deplibs=unknown
8999 module_cmds=
9000 module_expsym_cmds=
9001 old_archive_from_new_cmds=
9002 old_archive_from_expsyms_cmds=
9003 thread_safe_flag_spec=
9004 whole_archive_flag_spec=
9005 # include_expsyms should be a list of space-separated symbols to be *always*
9006 # included in the symbol list
9007 include_expsyms=
9008 # exclude_expsyms can be an extended regexp of symbols to exclude
9009 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9010 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9011 # as well as any symbol that contains 'd'.
9012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9014 # platforms (ab)use it in PIC code, but their linkers get confused if
9015 # the symbol is explicitly referenced. Since portable code cannot
9016 # rely on this symbol name, it's probably fine to never include it in
9017 # preloaded symbol tables.
9018 # Exclude shared library initialization/finalization symbols.
9019 extract_expsyms_cmds=
9020
9021 case $host_os in
9022 cygwin* | mingw* | pw32* | cegcc*)
9023 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9024 # When not using gcc, we currently assume that we are using
9025 # Microsoft Visual C++.
9026 if test yes != "$GCC"; then
9027 with_gnu_ld=no
9028 fi
9029 ;;
9030 interix*)
9031 # we just hope/assume this is gcc and not c89 (= MSVC++)
9032 with_gnu_ld=yes
9033 ;;
9034 openbsd* | bitrig*)
9035 with_gnu_ld=no
9036 ;;
9037 esac
9038
9039 ld_shlibs=yes
9040
9041 # On some targets, GNU ld is compatible enough with the native linker
9042 # that we're better off using the native interface for both.
9043 lt_use_gnu_ld_interface=no
9044 if test yes = "$with_gnu_ld"; then
9045 case $host_os in
9046 aix*)
9047 # The AIX port of GNU ld has always aspired to compatibility
9048 # with the native linker. However, as the warning in the GNU ld
9049 # block says, versions before 2.19.5* couldn't really create working
9050 # shared libraries, regardless of the interface used.
9051 case `$LD -v 2>&1` in
9052 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9053 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9054 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9055 *)
9056 lt_use_gnu_ld_interface=yes
9057 ;;
9058 esac
9059 ;;
9060 *)
9061 lt_use_gnu_ld_interface=yes
9062 ;;
9063 esac
9064 fi
9065
9066 if test yes = "$lt_use_gnu_ld_interface"; then
9067 # If archive_cmds runs LD, not CC, wlarc should be empty
9068 wlarc='$wl'
9069
9070 # Set some defaults for GNU ld with shared library support. These
9071 # are reset later if shared libraries are not supported. Putting them
9072 # here allows them to be overridden if necessary.
9073 runpath_var=LD_RUN_PATH
9074 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9075 export_dynamic_flag_spec='$wl--export-dynamic'
9076 # ancient GNU ld didn't support --whole-archive et. al.
9077 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9078 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9079 else
9080 whole_archive_flag_spec=
9081 fi
9082 supports_anon_versioning=no
9083 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9084 *GNU\ gold*) supports_anon_versioning=yes ;;
9085 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9088 *\ 2.11.*) ;; # other 2.11 versions
9089 *) supports_anon_versioning=yes ;;
9090 esac
9091
9092 # See if GNU ld supports shared libraries.
9093 case $host_os in
9094 aix[3-9]*)
9095 # On AIX/PPC, the GNU linker is very broken
9096 if test ia64 != "$host_cpu"; then
9097 ld_shlibs=no
9098 cat <<_LT_EOF 1>&2
9099
9100 *** Warning: the GNU linker, at least up to release 2.19, is reported
9101 *** to be unable to reliably create shared libraries on AIX.
9102 *** Therefore, libtool is disabling shared libraries support. If you
9103 *** really care for shared libraries, you may want to install binutils
9104 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9105 *** You will then need to restart the configuration process.
9106
9107 _LT_EOF
9108 fi
9109 ;;
9110
9111 amigaos*)
9112 case $host_cpu in
9113 powerpc)
9114 # see comment about AmigaOS4 .so support
9115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9116 archive_expsym_cmds=''
9117 ;;
9118 m68k)
9119 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)'
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 hardcode_minus_L=yes
9122 ;;
9123 esac
9124 ;;
9125
9126 beos*)
9127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9128 allow_undefined_flag=unsupported
9129 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9130 # support --undefined. This deserves some investigation. FIXME
9131 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9132 else
9133 ld_shlibs=no
9134 fi
9135 ;;
9136
9137 cygwin* | mingw* | pw32* | cegcc*)
9138 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9139 # as there is no search path for DLLs.
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 export_dynamic_flag_spec='$wl--export-all-symbols'
9142 allow_undefined_flag=unsupported
9143 always_export_symbols=no
9144 enable_shared_with_static_runtimes=yes
9145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9146 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9147
9148 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9150 # If the export-symbols file already is a .def file, use it as
9151 # is; otherwise, prepend EXPORTS...
9152 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9153 cp $export_symbols $output_objdir/$soname.def;
9154 else
9155 echo EXPORTS > $output_objdir/$soname.def;
9156 cat $export_symbols >> $output_objdir/$soname.def;
9157 fi~
9158 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9159 else
9160 ld_shlibs=no
9161 fi
9162 ;;
9163
9164 haiku*)
9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9166 link_all_deplibs=yes
9167 ;;
9168
9169 os2*)
9170 hardcode_libdir_flag_spec='-L$libdir'
9171 hardcode_minus_L=yes
9172 allow_undefined_flag=unsupported
9173 shrext_cmds=.dll
9174 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9175 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9176 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9177 $ECHO EXPORTS >> $output_objdir/$libname.def~
9178 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9179 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9180 emximp -o $lib $output_objdir/$libname.def'
9181 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9184 $ECHO EXPORTS >> $output_objdir/$libname.def~
9185 prefix_cmds="$SED"~
9186 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9187 prefix_cmds="$prefix_cmds -e 1d";
9188 fi~
9189 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9190 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9191 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9192 emximp -o $lib $output_objdir/$libname.def'
9193 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9194 enable_shared_with_static_runtimes=yes
9195 ;;
9196
9197 interix[3-9]*)
9198 hardcode_direct=no
9199 hardcode_shlibpath_var=no
9200 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9201 export_dynamic_flag_spec='$wl-E'
9202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9203 # Instead, shared libraries are loaded at an image base (0x10000000 by
9204 # default) and relocated if they conflict, which is a slow very memory
9205 # consuming and fragmenting process. To avoid this, we pick a random,
9206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9207 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9209 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'
9210 ;;
9211
9212 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9213 tmp_diet=no
9214 if test linux-dietlibc = "$host_os"; then
9215 case $cc_basename in
9216 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9217 esac
9218 fi
9219 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9220 && test no = "$tmp_diet"
9221 then
9222 tmp_addflag=' $pic_flag'
9223 tmp_sharedflag='-shared'
9224 case $cc_basename,$host_cpu in
9225 pgcc*) # Portland Group C compiler
9226 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'
9227 tmp_addflag=' $pic_flag'
9228 ;;
9229 pgf77* | pgf90* | pgf95* | pgfortran*)
9230 # Portland Group f77 and f90 compilers
9231 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'
9232 tmp_addflag=' $pic_flag -Mnomain' ;;
9233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9234 tmp_addflag=' -i_dynamic' ;;
9235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9236 tmp_addflag=' -i_dynamic -nofor_main' ;;
9237 ifc* | ifort*) # Intel Fortran compiler
9238 tmp_addflag=' -nofor_main' ;;
9239 lf95*) # Lahey Fortran 8.1
9240 whole_archive_flag_spec=
9241 tmp_sharedflag='--shared' ;;
9242 nagfor*) # NAGFOR 5.3
9243 tmp_sharedflag='-Wl,-shared' ;;
9244 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9245 tmp_sharedflag='-qmkshrobj'
9246 tmp_addflag= ;;
9247 nvcc*) # Cuda Compiler Driver 2.2
9248 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'
9249 compiler_needs_object=yes
9250 ;;
9251 esac
9252 case `$CC -V 2>&1 | sed 5q` in
9253 *Sun\ C*) # Sun C 5.9
9254 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'
9255 compiler_needs_object=yes
9256 tmp_sharedflag='-G' ;;
9257 *Sun\ F*) # Sun Fortran 8.3
9258 tmp_sharedflag='-G' ;;
9259 esac
9260 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9261
9262 if test yes = "$supports_anon_versioning"; then
9263 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9264 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9265 echo "local: *; };" >> $output_objdir/$libname.ver~
9266 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9267 fi
9268
9269 case $cc_basename in
9270 tcc*)
9271 export_dynamic_flag_spec='-rdynamic'
9272 ;;
9273 xlf* | bgf* | bgxlf* | mpixlf*)
9274 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9275 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9276 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9277 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9278 if test yes = "$supports_anon_versioning"; then
9279 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9281 echo "local: *; };" >> $output_objdir/$libname.ver~
9282 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9283 fi
9284 ;;
9285 esac
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290
9291 netbsd*)
9292 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9293 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9294 wlarc=
9295 else
9296 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9297 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9298 fi
9299 ;;
9300
9301 solaris*)
9302 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9303 ld_shlibs=no
9304 cat <<_LT_EOF 1>&2
9305
9306 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9307 *** create shared libraries on Solaris systems. Therefore, libtool
9308 *** is disabling shared libraries support. We urge you to upgrade GNU
9309 *** binutils to release 2.9.1 or newer. Another option is to modify
9310 *** your PATH or compiler configuration so that the native linker is
9311 *** used, and then restart.
9312
9313 _LT_EOF
9314 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9316 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9317 else
9318 ld_shlibs=no
9319 fi
9320 ;;
9321
9322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9323 case `$LD -v 2>&1` in
9324 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9325 ld_shlibs=no
9326 cat <<_LT_EOF 1>&2
9327
9328 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9329 *** reliably create shared libraries on SCO systems. Therefore, libtool
9330 *** is disabling shared libraries support. We urge you to upgrade GNU
9331 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9332 *** your PATH or compiler configuration so that the native linker is
9333 *** used, and then restart.
9334
9335 _LT_EOF
9336 ;;
9337 *)
9338 # For security reasons, it is highly recommended that you always
9339 # use absolute paths for naming shared libraries, and exclude the
9340 # DT_RUNPATH tag from executables and libraries. But doing so
9341 # requires that you compile everything twice, which is a pain.
9342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9343 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9346 else
9347 ld_shlibs=no
9348 fi
9349 ;;
9350 esac
9351 ;;
9352
9353 sunos4*)
9354 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9355 wlarc=
9356 hardcode_direct=yes
9357 hardcode_shlibpath_var=no
9358 ;;
9359
9360 *)
9361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9363 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9364 else
9365 ld_shlibs=no
9366 fi
9367 ;;
9368 esac
9369
9370 if test no = "$ld_shlibs"; then
9371 runpath_var=
9372 hardcode_libdir_flag_spec=
9373 export_dynamic_flag_spec=
9374 whole_archive_flag_spec=
9375 fi
9376 else
9377 # PORTME fill in a description of your system's linker (not GNU ld)
9378 case $host_os in
9379 aix3*)
9380 allow_undefined_flag=unsupported
9381 always_export_symbols=yes
9382 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'
9383 # Note: this linker hardcodes the directories in LIBPATH if there
9384 # are no directories specified by -L.
9385 hardcode_minus_L=yes
9386 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9387 # Neither direct hardcoding nor static linking is supported with a
9388 # broken collect2.
9389 hardcode_direct=unsupported
9390 fi
9391 ;;
9392
9393 aix[4-9]*)
9394 if test ia64 = "$host_cpu"; then
9395 # On IA64, the linker does run time linking by default, so we don't
9396 # have to do anything special.
9397 aix_use_runtimelinking=no
9398 exp_sym_flag='-Bexport'
9399 no_entry_flag=
9400 else
9401 # If we're using GNU nm, then we don't want the "-C" option.
9402 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9403 # Without the "-l" option, or with the "-B" option, AIX nm treats
9404 # weak defined symbols like other global defined symbols, whereas
9405 # GNU nm marks them as "W".
9406 # While the 'weak' keyword is ignored in the Export File, we need
9407 # it in the Import File for the 'aix-soname' feature, so we have
9408 # to replace the "-B" option with "-P" for AIX nm.
9409 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9410 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9411 else
9412 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9413 fi
9414 aix_use_runtimelinking=no
9415
9416 # Test if we are trying to use run time linking or normal
9417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9418 # have runtime linking enabled, and use it for executables.
9419 # For shared libraries, we enable/disable runtime linking
9420 # depending on the kind of the shared library created -
9421 # when "with_aix_soname,aix_use_runtimelinking" is:
9422 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9423 # "aix,yes" lib.so shared, rtl:yes, for executables
9424 # lib.a static archive
9425 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9426 # lib.a(lib.so.V) shared, rtl:no, for executables
9427 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9428 # lib.a(lib.so.V) shared, rtl:no
9429 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9430 # lib.a static archive
9431 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9432 for ld_flag in $LDFLAGS; do
9433 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9434 aix_use_runtimelinking=yes
9435 break
9436 fi
9437 done
9438 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9439 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9440 # so we don't have lib.a shared libs to link our executables.
9441 # We have to force runtime linking in this case.
9442 aix_use_runtimelinking=yes
9443 LDFLAGS="$LDFLAGS -Wl,-brtl"
9444 fi
9445 ;;
9446 esac
9447
9448 exp_sym_flag='-bexport'
9449 no_entry_flag='-bnoentry'
9450 fi
9451
9452 # When large executables or shared objects are built, AIX ld can
9453 # have problems creating the table of contents. If linking a library
9454 # or program results in "error TOC overflow" add -mminimal-toc to
9455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9457
9458 archive_cmds=''
9459 hardcode_direct=yes
9460 hardcode_direct_absolute=yes
9461 hardcode_libdir_separator=':'
9462 link_all_deplibs=yes
9463 file_list_spec='$wl-f,'
9464 case $with_aix_soname,$aix_use_runtimelinking in
9465 aix,*) ;; # traditional, no import file
9466 svr4,* | *,yes) # use import file
9467 # The Import File defines what to hardcode.
9468 hardcode_direct=no
9469 hardcode_direct_absolute=no
9470 ;;
9471 esac
9472
9473 if test yes = "$GCC"; then
9474 case $host_os in aix4.[012]|aix4.[012].*)
9475 # We only want to do this on AIX 4.2 and lower, the check
9476 # below for broken collect2 doesn't work under 4.3+
9477 collect2name=`$CC -print-prog-name=collect2`
9478 if test -f "$collect2name" &&
9479 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9480 then
9481 # We have reworked collect2
9482 :
9483 else
9484 # We have old collect2
9485 hardcode_direct=unsupported
9486 # It fails to find uninstalled libraries when the uninstalled
9487 # path is not listed in the libpath. Setting hardcode_minus_L
9488 # to unsupported forces relinking
9489 hardcode_minus_L=yes
9490 hardcode_libdir_flag_spec='-L$libdir'
9491 hardcode_libdir_separator=
9492 fi
9493 ;;
9494 esac
9495 shared_flag='-shared'
9496 if test yes = "$aix_use_runtimelinking"; then
9497 shared_flag="$shared_flag "'$wl-G'
9498 fi
9499 # Need to ensure runtime linking is disabled for the traditional
9500 # shared library, or the linker may eventually find shared libraries
9501 # /with/ Import File - we do not want to mix them.
9502 shared_flag_aix='-shared'
9503 shared_flag_svr4='-shared $wl-G'
9504 else
9505 # not using gcc
9506 if test ia64 = "$host_cpu"; then
9507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9508 # chokes on -Wl,-G. The following line is correct:
9509 shared_flag='-G'
9510 else
9511 if test yes = "$aix_use_runtimelinking"; then
9512 shared_flag='$wl-G'
9513 else
9514 shared_flag='$wl-bM:SRE'
9515 fi
9516 shared_flag_aix='$wl-bM:SRE'
9517 shared_flag_svr4='$wl-G'
9518 fi
9519 fi
9520
9521 export_dynamic_flag_spec='$wl-bexpall'
9522 # It seems that -bexpall does not export symbols beginning with
9523 # underscore (_), so it is better to generate a list of symbols to export.
9524 always_export_symbols=yes
9525 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9526 # Warning - without using the other runtime loading flags (-brtl),
9527 # -berok will link without error, but may produce a broken library.
9528 allow_undefined_flag='-berok'
9529 # Determine the default libpath from the value encoded in an
9530 # empty executable.
9531 if test set = "${lt_cv_aix_libpath+set}"; then
9532 aix_libpath=$lt_cv_aix_libpath
9533 else
9534 if ${lt_cv_aix_libpath_+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9539
9540 int
9541 main ()
9542 {
9543
9544 ;
9545 return 0;
9546 }
9547 _ACEOF
9548 if ac_fn_c_try_link "$LINENO"; then :
9549
9550 lt_aix_libpath_sed='
9551 /Import File Strings/,/^$/ {
9552 /^0/ {
9553 s/^0 *\([^ ]*\) *$/\1/
9554 p
9555 }
9556 }'
9557 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9558 # Check for a 64-bit object if we didn't find anything.
9559 if test -z "$lt_cv_aix_libpath_"; then
9560 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9561 fi
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565 if test -z "$lt_cv_aix_libpath_"; then
9566 lt_cv_aix_libpath_=/usr/lib:/lib
9567 fi
9568
9569 fi
9570
9571 aix_libpath=$lt_cv_aix_libpath_
9572 fi
9573
9574 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9575 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9576 else
9577 if test ia64 = "$host_cpu"; then
9578 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9579 allow_undefined_flag="-z nodefs"
9580 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"
9581 else
9582 # Determine the default libpath from the value encoded in an
9583 # empty executable.
9584 if test set = "${lt_cv_aix_libpath+set}"; then
9585 aix_libpath=$lt_cv_aix_libpath
9586 else
9587 if ${lt_cv_aix_libpath_+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592
9593 int
9594 main ()
9595 {
9596
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602
9603 lt_aix_libpath_sed='
9604 /Import File Strings/,/^$/ {
9605 /^0/ {
9606 s/^0 *\([^ ]*\) *$/\1/
9607 p
9608 }
9609 }'
9610 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611 # Check for a 64-bit object if we didn't find anything.
9612 if test -z "$lt_cv_aix_libpath_"; then
9613 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614 fi
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 if test -z "$lt_cv_aix_libpath_"; then
9619 lt_cv_aix_libpath_=/usr/lib:/lib
9620 fi
9621
9622 fi
9623
9624 aix_libpath=$lt_cv_aix_libpath_
9625 fi
9626
9627 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9628 # Warning - without using the other run time loading flags,
9629 # -berok will link without error, but may produce a broken library.
9630 no_undefined_flag=' $wl-bernotok'
9631 allow_undefined_flag=' $wl-berok'
9632 if test yes = "$with_gnu_ld"; then
9633 # We only use this code for GNU lds that support --whole-archive.
9634 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9635 else
9636 # Exported symbols can be pulled into shared objects from archives
9637 whole_archive_flag_spec='$convenience'
9638 fi
9639 archive_cmds_need_lc=yes
9640 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9641 # -brtl affects multiple linker settings, -berok does not and is overridden later
9642 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9643 if test svr4 != "$with_aix_soname"; then
9644 # This is similar to how AIX traditionally builds its shared libraries.
9645 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9646 fi
9647 if test aix != "$with_aix_soname"; then
9648 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9649 else
9650 # used by -dlpreopen to get the symbols
9651 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9652 fi
9653 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9654 fi
9655 fi
9656 ;;
9657
9658 amigaos*)
9659 case $host_cpu in
9660 powerpc)
9661 # see comment about AmigaOS4 .so support
9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9663 archive_expsym_cmds=''
9664 ;;
9665 m68k)
9666 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)'
9667 hardcode_libdir_flag_spec='-L$libdir'
9668 hardcode_minus_L=yes
9669 ;;
9670 esac
9671 ;;
9672
9673 bsdi[45]*)
9674 export_dynamic_flag_spec=-rdynamic
9675 ;;
9676
9677 cygwin* | mingw* | pw32* | cegcc*)
9678 # When not using gcc, we currently assume that we are using
9679 # Microsoft Visual C++.
9680 # hardcode_libdir_flag_spec is actually meaningless, as there is
9681 # no search path for DLLs.
9682 case $cc_basename in
9683 cl*)
9684 # Native MSVC
9685 hardcode_libdir_flag_spec=' '
9686 allow_undefined_flag=unsupported
9687 always_export_symbols=yes
9688 file_list_spec='@'
9689 # Tell ltmain to make .lib files, not .a files.
9690 libext=lib
9691 # Tell ltmain to make .dll files, not .so files.
9692 shrext_cmds=.dll
9693 # FIXME: Setting linknames here is a bad hack.
9694 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9695 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9696 cp "$export_symbols" "$output_objdir/$soname.def";
9697 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9698 else
9699 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9700 fi~
9701 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9702 linknames='
9703 # The linker will not automatically build a static lib if we build a DLL.
9704 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9705 enable_shared_with_static_runtimes=yes
9706 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9707 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9708 # Don't use ranlib
9709 old_postinstall_cmds='chmod 644 $oldlib'
9710 postlink_cmds='lt_outputfile="@OUTPUT@"~
9711 lt_tool_outputfile="@TOOL_OUTPUT@"~
9712 case $lt_outputfile in
9713 *.exe|*.EXE) ;;
9714 *)
9715 lt_outputfile=$lt_outputfile.exe
9716 lt_tool_outputfile=$lt_tool_outputfile.exe
9717 ;;
9718 esac~
9719 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9720 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9721 $RM "$lt_outputfile.manifest";
9722 fi'
9723 ;;
9724 *)
9725 # Assume MSVC wrapper
9726 hardcode_libdir_flag_spec=' '
9727 allow_undefined_flag=unsupported
9728 # Tell ltmain to make .lib files, not .a files.
9729 libext=lib
9730 # Tell ltmain to make .dll files, not .so files.
9731 shrext_cmds=.dll
9732 # FIXME: Setting linknames here is a bad hack.
9733 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9734 # The linker will automatically build a .lib file if we build a DLL.
9735 old_archive_from_new_cmds='true'
9736 # FIXME: Should let the user specify the lib program.
9737 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9738 enable_shared_with_static_runtimes=yes
9739 ;;
9740 esac
9741 ;;
9742
9743 darwin* | rhapsody*)
9744
9745
9746 archive_cmds_need_lc=no
9747 hardcode_direct=no
9748 hardcode_automatic=yes
9749 hardcode_shlibpath_var=unsupported
9750 if test yes = "$lt_cv_ld_force_load"; then
9751 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\"`'
9752
9753 else
9754 whole_archive_flag_spec=''
9755 fi
9756 link_all_deplibs=yes
9757 allow_undefined_flag=$_lt_dar_allow_undefined
9758 case $cc_basename in
9759 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9760 *) _lt_dar_can_shared=$GCC ;;
9761 esac
9762 if test yes = "$_lt_dar_can_shared"; then
9763 output_verbose_link_cmd=func_echo_all
9764 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9765 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9766 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"
9767 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"
9768
9769 else
9770 ld_shlibs=no
9771 fi
9772
9773 ;;
9774
9775 dgux*)
9776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 hardcode_shlibpath_var=no
9779 ;;
9780
9781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9782 # support. Future versions do this automatically, but an explicit c++rt0.o
9783 # does not break anything, and helps significantly (at the cost of a little
9784 # extra space).
9785 freebsd2.2*)
9786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9787 hardcode_libdir_flag_spec='-R$libdir'
9788 hardcode_direct=yes
9789 hardcode_shlibpath_var=no
9790 ;;
9791
9792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9793 freebsd2.*)
9794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9795 hardcode_direct=yes
9796 hardcode_minus_L=yes
9797 hardcode_shlibpath_var=no
9798 ;;
9799
9800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9801 freebsd* | dragonfly*)
9802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9803 hardcode_libdir_flag_spec='-R$libdir'
9804 hardcode_direct=yes
9805 hardcode_shlibpath_var=no
9806 ;;
9807
9808 hpux9*)
9809 if test yes = "$GCC"; then
9810 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9811 else
9812 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9813 fi
9814 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9815 hardcode_libdir_separator=:
9816 hardcode_direct=yes
9817
9818 # hardcode_minus_L: Not really in the search PATH,
9819 # but as the default location of the library.
9820 hardcode_minus_L=yes
9821 export_dynamic_flag_spec='$wl-E'
9822 ;;
9823
9824 hpux10*)
9825 if test yes,no = "$GCC,$with_gnu_ld"; then
9826 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9827 else
9828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9829 fi
9830 if test no = "$with_gnu_ld"; then
9831 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9832 hardcode_libdir_separator=:
9833 hardcode_direct=yes
9834 hardcode_direct_absolute=yes
9835 export_dynamic_flag_spec='$wl-E'
9836 # hardcode_minus_L: Not really in the search PATH,
9837 # but as the default location of the library.
9838 hardcode_minus_L=yes
9839 fi
9840 ;;
9841
9842 hpux11*)
9843 if test yes,no = "$GCC,$with_gnu_ld"; then
9844 case $host_cpu in
9845 hppa*64*)
9846 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9847 ;;
9848 ia64*)
9849 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9850 ;;
9851 *)
9852 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9853 ;;
9854 esac
9855 else
9856 case $host_cpu in
9857 hppa*64*)
9858 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9859 ;;
9860 ia64*)
9861 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9862 ;;
9863 *)
9864
9865 # Older versions of the 11.00 compiler do not understand -b yet
9866 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9868 $as_echo_n "checking if $CC understands -b... " >&6; }
9869 if ${lt_cv_prog_compiler__b+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 lt_cv_prog_compiler__b=no
9873 save_LDFLAGS=$LDFLAGS
9874 LDFLAGS="$LDFLAGS -b"
9875 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9877 # The linker can only warn and ignore the option if not recognized
9878 # So say no if there are warnings
9879 if test -s conftest.err; then
9880 # Append any errors to the config.log.
9881 cat conftest.err 1>&5
9882 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9884 if diff conftest.exp conftest.er2 >/dev/null; then
9885 lt_cv_prog_compiler__b=yes
9886 fi
9887 else
9888 lt_cv_prog_compiler__b=yes
9889 fi
9890 fi
9891 $RM -r conftest*
9892 LDFLAGS=$save_LDFLAGS
9893
9894 fi
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9896 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9897
9898 if test yes = "$lt_cv_prog_compiler__b"; then
9899 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9900 else
9901 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9902 fi
9903
9904 ;;
9905 esac
9906 fi
9907 if test no = "$with_gnu_ld"; then
9908 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9909 hardcode_libdir_separator=:
9910
9911 case $host_cpu in
9912 hppa*64*|ia64*)
9913 hardcode_direct=no
9914 hardcode_shlibpath_var=no
9915 ;;
9916 *)
9917 hardcode_direct=yes
9918 hardcode_direct_absolute=yes
9919 export_dynamic_flag_spec='$wl-E'
9920
9921 # hardcode_minus_L: Not really in the search PATH,
9922 # but as the default location of the library.
9923 hardcode_minus_L=yes
9924 ;;
9925 esac
9926 fi
9927 ;;
9928
9929 irix5* | irix6* | nonstopux*)
9930 if test yes = "$GCC"; then
9931 archive_cmds='$CC -shared $pic_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'
9932 # Try to use the -exported_symbol ld option, if it does not
9933 # work, assume that -exports_file does not work either and
9934 # implicitly export all symbols.
9935 # This should be the same for all languages, so no per-tag cache variable.
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9937 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9938 if ${lt_cv_irix_exported_symbol+:} false; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 save_LDFLAGS=$LDFLAGS
9942 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 int foo (void) { return 0; }
9946 _ACEOF
9947 if ac_fn_c_try_link "$LINENO"; then :
9948 lt_cv_irix_exported_symbol=yes
9949 else
9950 lt_cv_irix_exported_symbol=no
9951 fi
9952 rm -f core conftest.err conftest.$ac_objext \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LDFLAGS=$save_LDFLAGS
9955 fi
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9957 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9958 if test yes = "$lt_cv_irix_exported_symbol"; then
9959 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
9960 fi
9961 else
9962 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'
9963 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'
9964 fi
9965 archive_cmds_need_lc='no'
9966 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9967 hardcode_libdir_separator=:
9968 inherit_rpath=yes
9969 link_all_deplibs=yes
9970 ;;
9971
9972 linux*)
9973 case $cc_basename in
9974 tcc*)
9975 # Fabrice Bellard et al's Tiny C Compiler
9976 ld_shlibs=yes
9977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9978 ;;
9979 esac
9980 ;;
9981
9982 netbsd*)
9983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9985 else
9986 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9987 fi
9988 hardcode_libdir_flag_spec='-R$libdir'
9989 hardcode_direct=yes
9990 hardcode_shlibpath_var=no
9991 ;;
9992
9993 newsos6)
9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_direct=yes
9996 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9997 hardcode_libdir_separator=:
9998 hardcode_shlibpath_var=no
9999 ;;
10000
10001 *nto* | *qnx*)
10002 ;;
10003
10004 openbsd* | bitrig*)
10005 if test -f /usr/libexec/ld.so; then
10006 hardcode_direct=yes
10007 hardcode_shlibpath_var=no
10008 hardcode_direct_absolute=yes
10009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10010 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10011 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10012 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10013 export_dynamic_flag_spec='$wl-E'
10014 else
10015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10016 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10017 fi
10018 else
10019 ld_shlibs=no
10020 fi
10021 ;;
10022
10023 os2*)
10024 hardcode_libdir_flag_spec='-L$libdir'
10025 hardcode_minus_L=yes
10026 allow_undefined_flag=unsupported
10027 shrext_cmds=.dll
10028 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10029 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10030 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10031 $ECHO EXPORTS >> $output_objdir/$libname.def~
10032 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10033 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10034 emximp -o $lib $output_objdir/$libname.def'
10035 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10036 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10037 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10038 $ECHO EXPORTS >> $output_objdir/$libname.def~
10039 prefix_cmds="$SED"~
10040 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10041 prefix_cmds="$prefix_cmds -e 1d";
10042 fi~
10043 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10044 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10045 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10046 emximp -o $lib $output_objdir/$libname.def'
10047 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10048 enable_shared_with_static_runtimes=yes
10049 ;;
10050
10051 osf3*)
10052 if test yes = "$GCC"; then
10053 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10054 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'
10055 else
10056 allow_undefined_flag=' -expect_unresolved \*'
10057 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'
10058 fi
10059 archive_cmds_need_lc='no'
10060 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10061 hardcode_libdir_separator=:
10062 ;;
10063
10064 osf4* | osf5*) # as osf3* with the addition of -msym flag
10065 if test yes = "$GCC"; then
10066 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10067 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
10068 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10069 else
10070 allow_undefined_flag=' -expect_unresolved \*'
10071 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'
10072 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~
10073 $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'
10074
10075 # Both c and cxx compiler support -rpath directly
10076 hardcode_libdir_flag_spec='-rpath $libdir'
10077 fi
10078 archive_cmds_need_lc='no'
10079 hardcode_libdir_separator=:
10080 ;;
10081
10082 solaris*)
10083 no_undefined_flag=' -z defs'
10084 if test yes = "$GCC"; then
10085 wlarc='$wl'
10086 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10088 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10089 else
10090 case `$CC -V 2>&1` in
10091 *"Compilers 5.0"*)
10092 wlarc=''
10093 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10095 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10096 ;;
10097 *)
10098 wlarc='$wl'
10099 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10101 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10102 ;;
10103 esac
10104 fi
10105 hardcode_libdir_flag_spec='-R$libdir'
10106 hardcode_shlibpath_var=no
10107 case $host_os in
10108 solaris2.[0-5] | solaris2.[0-5].*) ;;
10109 *)
10110 # The compiler driver will combine and reorder linker options,
10111 # but understands '-z linker_flag'. GCC discards it without '$wl',
10112 # but is careful enough not to reorder.
10113 # Supported since Solaris 2.6 (maybe 2.5.1?)
10114 if test yes = "$GCC"; then
10115 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10116 else
10117 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10118 fi
10119 ;;
10120 esac
10121 link_all_deplibs=yes
10122 ;;
10123
10124 sunos4*)
10125 if test sequent = "$host_vendor"; then
10126 # Use $CC to link under sequent, because it throws in some extra .o
10127 # files that make .init and .fini sections work.
10128 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10129 else
10130 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10131 fi
10132 hardcode_libdir_flag_spec='-L$libdir'
10133 hardcode_direct=yes
10134 hardcode_minus_L=yes
10135 hardcode_shlibpath_var=no
10136 ;;
10137
10138 sysv4)
10139 case $host_vendor in
10140 sni)
10141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142 hardcode_direct=yes # is this really true???
10143 ;;
10144 siemens)
10145 ## LD is ld it makes a PLAMLIB
10146 ## CC just makes a GrossModule.
10147 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10148 reload_cmds='$CC -r -o $output$reload_objs'
10149 hardcode_direct=no
10150 ;;
10151 motorola)
10152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10153 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10154 ;;
10155 esac
10156 runpath_var='LD_RUN_PATH'
10157 hardcode_shlibpath_var=no
10158 ;;
10159
10160 sysv4.3*)
10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10162 hardcode_shlibpath_var=no
10163 export_dynamic_flag_spec='-Bexport'
10164 ;;
10165
10166 sysv4*MP*)
10167 if test -d /usr/nec; then
10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_shlibpath_var=no
10170 runpath_var=LD_RUN_PATH
10171 hardcode_runpath_var=yes
10172 ld_shlibs=yes
10173 fi
10174 ;;
10175
10176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10177 no_undefined_flag='$wl-z,text'
10178 archive_cmds_need_lc=no
10179 hardcode_shlibpath_var=no
10180 runpath_var='LD_RUN_PATH'
10181
10182 if test yes = "$GCC"; then
10183 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 else
10186 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 fi
10189 ;;
10190
10191 sysv5* | sco3.2v5* | sco5v6*)
10192 # Note: We CANNOT use -z defs as we might desire, because we do not
10193 # link with -lc, and that would cause any symbols used from libc to
10194 # always be unresolved, which means just about no library would
10195 # ever link correctly. If we're not using GNU ld we use -z text
10196 # though, which does catch some bad symbols but isn't as heavy-handed
10197 # as -z defs.
10198 no_undefined_flag='$wl-z,text'
10199 allow_undefined_flag='$wl-z,nodefs'
10200 archive_cmds_need_lc=no
10201 hardcode_shlibpath_var=no
10202 hardcode_libdir_flag_spec='$wl-R,$libdir'
10203 hardcode_libdir_separator=':'
10204 link_all_deplibs=yes
10205 export_dynamic_flag_spec='$wl-Bexport'
10206 runpath_var='LD_RUN_PATH'
10207
10208 if test yes = "$GCC"; then
10209 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211 else
10212 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 fi
10215 ;;
10216
10217 uts4*)
10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219 hardcode_libdir_flag_spec='-L$libdir'
10220 hardcode_shlibpath_var=no
10221 ;;
10222
10223 *)
10224 ld_shlibs=no
10225 ;;
10226 esac
10227
10228 if test sni = "$host_vendor"; then
10229 case $host in
10230 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10231 export_dynamic_flag_spec='$wl-Blargedynsym'
10232 ;;
10233 esac
10234 fi
10235 fi
10236
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10238 $as_echo "$ld_shlibs" >&6; }
10239 test no = "$ld_shlibs" && can_build_shared=no
10240
10241 with_gnu_ld=$with_gnu_ld
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257 #
10258 # Do we need to explicitly link libc?
10259 #
10260 case "x$archive_cmds_need_lc" in
10261 x|xyes)
10262 # Assume -lc should be added
10263 archive_cmds_need_lc=yes
10264
10265 if test yes,yes = "$GCC,$enable_shared"; then
10266 case $archive_cmds in
10267 *'~'*)
10268 # FIXME: we may have to deal with multi-command sequences.
10269 ;;
10270 '$CC '*)
10271 # Test whether the compiler implicitly links with -lc since on some
10272 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10273 # to ld, don't add -lc before -lgcc.
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10275 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10276 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 $RM conftest*
10280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10281
10282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10283 (eval $ac_compile) 2>&5
10284 ac_status=$?
10285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10286 test $ac_status = 0; } 2>conftest.err; then
10287 soname=conftest
10288 lib=conftest
10289 libobjs=conftest.$ac_objext
10290 deplibs=
10291 wl=$lt_prog_compiler_wl
10292 pic_flag=$lt_prog_compiler_pic
10293 compiler_flags=-v
10294 linker_flags=-v
10295 verstring=
10296 output_objdir=.
10297 libname=conftest
10298 lt_save_allow_undefined_flag=$allow_undefined_flag
10299 allow_undefined_flag=
10300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10301 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10302 ac_status=$?
10303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10304 test $ac_status = 0; }
10305 then
10306 lt_cv_archive_cmds_need_lc=no
10307 else
10308 lt_cv_archive_cmds_need_lc=yes
10309 fi
10310 allow_undefined_flag=$lt_save_allow_undefined_flag
10311 else
10312 cat conftest.err 1>&5
10313 fi
10314 $RM conftest*
10315
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10318 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10319 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10320 ;;
10321 esac
10322 fi
10323 ;;
10324 esac
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
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10478 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10479
10480 if test yes = "$GCC"; then
10481 case $host_os in
10482 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10483 *) lt_awk_arg='/^libraries:/' ;;
10484 esac
10485 case $host_os in
10486 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10487 *) lt_sed_strip_eq='s|=/|/|g' ;;
10488 esac
10489 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10490 case $lt_search_path_spec in
10491 *\;*)
10492 # if the path contains ";" then we assume it to be the separator
10493 # otherwise default to the standard path separator (i.e. ":") - it is
10494 # assumed that no part of a normal pathname contains ";" but that should
10495 # okay in the real world where ";" in dirpaths is itself problematic.
10496 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10497 ;;
10498 *)
10499 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10500 ;;
10501 esac
10502 # Ok, now we have the path, separated by spaces, we can step through it
10503 # and add multilib dir if necessary...
10504 lt_tmp_lt_search_path_spec=
10505 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10506 # ...but if some path component already ends with the multilib dir we assume
10507 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10508 case "$lt_multi_os_dir; $lt_search_path_spec " in
10509 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10510 lt_multi_os_dir=
10511 ;;
10512 esac
10513 for lt_sys_path in $lt_search_path_spec; do
10514 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10515 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10516 elif test -n "$lt_multi_os_dir"; then
10517 test -d "$lt_sys_path" && \
10518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10519 fi
10520 done
10521 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10522 BEGIN {RS = " "; FS = "/|\n";} {
10523 lt_foo = "";
10524 lt_count = 0;
10525 for (lt_i = NF; lt_i > 0; lt_i--) {
10526 if ($lt_i != "" && $lt_i != ".") {
10527 if ($lt_i == "..") {
10528 lt_count++;
10529 } else {
10530 if (lt_count == 0) {
10531 lt_foo = "/" $lt_i lt_foo;
10532 } else {
10533 lt_count--;
10534 }
10535 }
10536 }
10537 }
10538 if (lt_foo != "") { lt_freq[lt_foo]++; }
10539 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10540 }'`
10541 # AWK program above erroneously prepends '/' to C:/dos/paths
10542 # for these hosts.
10543 case $host_os in
10544 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10545 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10546 esac
10547 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10548 else
10549 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10550 fi
10551 library_names_spec=
10552 libname_spec='lib$name'
10553 soname_spec=
10554 shrext_cmds=.so
10555 postinstall_cmds=
10556 postuninstall_cmds=
10557 finish_cmds=
10558 finish_eval=
10559 shlibpath_var=
10560 shlibpath_overrides_runpath=unknown
10561 version_type=none
10562 dynamic_linker="$host_os ld.so"
10563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10564 need_lib_prefix=unknown
10565 hardcode_into_libs=no
10566
10567 # when you set need_version to no, make sure it does not cause -set_version
10568 # flags to be left without arguments
10569 need_version=unknown
10570
10571
10572
10573 case $host_os in
10574 aix3*)
10575 version_type=linux # correct to gnu/linux during the next big refactor
10576 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10577 shlibpath_var=LIBPATH
10578
10579 # AIX 3 has no versioning support, so we append a major version to the name.
10580 soname_spec='$libname$release$shared_ext$major'
10581 ;;
10582
10583 aix[4-9]*)
10584 version_type=linux # correct to gnu/linux during the next big refactor
10585 need_lib_prefix=no
10586 need_version=no
10587 hardcode_into_libs=yes
10588 if test ia64 = "$host_cpu"; then
10589 # AIX 5 supports IA64
10590 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 else
10593 # With GCC up to 2.95.x, collect2 would create an import file
10594 # for dependence libraries. The import file would start with
10595 # the line '#! .'. This would cause the generated library to
10596 # depend on '.', always an invalid library. This was fixed in
10597 # development snapshots of GCC prior to 3.0.
10598 case $host_os in
10599 aix4 | aix4.[01] | aix4.[01].*)
10600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10601 echo ' yes '
10602 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10603 :
10604 else
10605 can_build_shared=no
10606 fi
10607 ;;
10608 esac
10609 # Using Import Files as archive members, it is possible to support
10610 # filename-based versioning of shared library archives on AIX. While
10611 # this would work for both with and without runtime linking, it will
10612 # prevent static linking of such archives. So we do filename-based
10613 # shared library versioning with .so extension only, which is used
10614 # when both runtime linking and shared linking is enabled.
10615 # Unfortunately, runtime linking may impact performance, so we do
10616 # not want this to be the default eventually. Also, we use the
10617 # versioned .so libs for executables only if there is the -brtl
10618 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10619 # To allow for filename-based versioning support, we need to create
10620 # libNAME.so.V as an archive file, containing:
10621 # *) an Import File, referring to the versioned filename of the
10622 # archive as well as the shared archive member, telling the
10623 # bitwidth (32 or 64) of that shared object, and providing the
10624 # list of exported symbols of that shared object, eventually
10625 # decorated with the 'weak' keyword
10626 # *) the shared object with the F_LOADONLY flag set, to really avoid
10627 # it being seen by the linker.
10628 # At run time we better use the real file rather than another symlink,
10629 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10630
10631 case $with_aix_soname,$aix_use_runtimelinking in
10632 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10633 # soname into executable. Probably we can add versioning support to
10634 # collect2, so additional links can be useful in future.
10635 aix,yes) # traditional libtool
10636 dynamic_linker='AIX unversionable lib.so'
10637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10638 # instead of lib<name>.a to let people know that these are not
10639 # typical AIX shared libraries.
10640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10641 ;;
10642 aix,no) # traditional AIX only
10643 dynamic_linker='AIX lib.a(lib.so.V)'
10644 # We preserve .a as extension for shared libraries through AIX4.2
10645 # and later when we are not doing run time linking.
10646 library_names_spec='$libname$release.a $libname.a'
10647 soname_spec='$libname$release$shared_ext$major'
10648 ;;
10649 svr4,*) # full svr4 only
10650 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10651 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10652 # We do not specify a path in Import Files, so LIBPATH fires.
10653 shlibpath_overrides_runpath=yes
10654 ;;
10655 *,yes) # both, prefer svr4
10656 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10657 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10658 # unpreferred sharedlib libNAME.a needs extra handling
10659 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10660 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10661 # We do not specify a path in Import Files, so LIBPATH fires.
10662 shlibpath_overrides_runpath=yes
10663 ;;
10664 *,no) # both, prefer aix
10665 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10666 library_names_spec='$libname$release.a $libname.a'
10667 soname_spec='$libname$release$shared_ext$major'
10668 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10669 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10670 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10671 ;;
10672 esac
10673 shlibpath_var=LIBPATH
10674 fi
10675 ;;
10676
10677 amigaos*)
10678 case $host_cpu in
10679 powerpc)
10680 # Since July 2007 AmigaOS4 officially supports .so libraries.
10681 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10683 ;;
10684 m68k)
10685 library_names_spec='$libname.ixlibrary $libname.a'
10686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10687 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10688 ;;
10689 esac
10690 ;;
10691
10692 beos*)
10693 library_names_spec='$libname$shared_ext'
10694 dynamic_linker="$host_os ld.so"
10695 shlibpath_var=LIBRARY_PATH
10696 ;;
10697
10698 bsdi[45]*)
10699 version_type=linux # correct to gnu/linux during the next big refactor
10700 need_version=no
10701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10702 soname_spec='$libname$release$shared_ext$major'
10703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10707 # the default ld.so.conf also contains /usr/contrib/lib and
10708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10709 # libtool to hard-code these into programs
10710 ;;
10711
10712 cygwin* | mingw* | pw32* | cegcc*)
10713 version_type=windows
10714 shrext_cmds=.dll
10715 need_version=no
10716 need_lib_prefix=no
10717
10718 case $GCC,$cc_basename in
10719 yes,*)
10720 # gcc
10721 library_names_spec='$libname.dll.a'
10722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10723 postinstall_cmds='base_file=`basename \$file`~
10724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10725 dldir=$destdir/`dirname \$dlpath`~
10726 test -d \$dldir || mkdir -p \$dldir~
10727 $install_prog $dir/$dlname \$dldir/$dlname~
10728 chmod a+x \$dldir/$dlname~
10729 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10730 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10731 fi'
10732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10733 dlpath=$dir/\$dldll~
10734 $RM \$dlpath'
10735 shlibpath_overrides_runpath=yes
10736
10737 case $host_os in
10738 cygwin*)
10739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10740 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10741
10742 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10743 ;;
10744 mingw* | cegcc*)
10745 # MinGW DLLs use traditional 'lib' prefix
10746 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10747 ;;
10748 pw32*)
10749 # pw32 DLLs use 'pw' prefix rather than 'lib'
10750 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10751 ;;
10752 esac
10753 dynamic_linker='Win32 ld.exe'
10754 ;;
10755
10756 *,cl*)
10757 # Native MSVC
10758 libname_spec='$name'
10759 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10760 library_names_spec='$libname.dll.lib'
10761
10762 case $build_os in
10763 mingw*)
10764 sys_lib_search_path_spec=
10765 lt_save_ifs=$IFS
10766 IFS=';'
10767 for lt_path in $LIB
10768 do
10769 IFS=$lt_save_ifs
10770 # Let DOS variable expansion print the short 8.3 style file name.
10771 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10772 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10773 done
10774 IFS=$lt_save_ifs
10775 # Convert to MSYS style.
10776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10777 ;;
10778 cygwin*)
10779 # Convert to unix form, then to dos form, then back to unix form
10780 # but this time dos style (no spaces!) so that the unix form looks
10781 # like /cygdrive/c/PROGRA~1:/cygdr...
10782 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10783 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10784 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10785 ;;
10786 *)
10787 sys_lib_search_path_spec=$LIB
10788 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10789 # It is most probably a Windows format PATH.
10790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10791 else
10792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10793 fi
10794 # FIXME: find the short name or the path components, as spaces are
10795 # common. (e.g. "Program Files" -> "PROGRA~1")
10796 ;;
10797 esac
10798
10799 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10800 postinstall_cmds='base_file=`basename \$file`~
10801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10802 dldir=$destdir/`dirname \$dlpath`~
10803 test -d \$dldir || mkdir -p \$dldir~
10804 $install_prog $dir/$dlname \$dldir/$dlname'
10805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10806 dlpath=$dir/\$dldll~
10807 $RM \$dlpath'
10808 shlibpath_overrides_runpath=yes
10809 dynamic_linker='Win32 link.exe'
10810 ;;
10811
10812 *)
10813 # Assume MSVC wrapper
10814 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10815 dynamic_linker='Win32 ld.exe'
10816 ;;
10817 esac
10818 # FIXME: first we should search . and the directory the executable is in
10819 shlibpath_var=PATH
10820 ;;
10821
10822 darwin* | rhapsody*)
10823 dynamic_linker="$host_os dyld"
10824 version_type=darwin
10825 need_lib_prefix=no
10826 need_version=no
10827 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10828 soname_spec='$libname$release$major$shared_ext'
10829 shlibpath_overrides_runpath=yes
10830 shlibpath_var=DYLD_LIBRARY_PATH
10831 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10832
10833 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10834 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10835 ;;
10836
10837 dgux*)
10838 version_type=linux # correct to gnu/linux during the next big refactor
10839 need_lib_prefix=no
10840 need_version=no
10841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10842 soname_spec='$libname$release$shared_ext$major'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 ;;
10845
10846 freebsd* | dragonfly*)
10847 # DragonFly does not have aout. When/if they implement a new
10848 # versioning mechanism, adjust this.
10849 if test -x /usr/bin/objformat; then
10850 objformat=`/usr/bin/objformat`
10851 else
10852 case $host_os in
10853 freebsd[23].*) objformat=aout ;;
10854 *) objformat=elf ;;
10855 esac
10856 fi
10857 version_type=freebsd-$objformat
10858 case $version_type in
10859 freebsd-elf*)
10860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10861 soname_spec='$libname$release$shared_ext$major'
10862 need_version=no
10863 need_lib_prefix=no
10864 ;;
10865 freebsd-*)
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10867 need_version=yes
10868 ;;
10869 esac
10870 shlibpath_var=LD_LIBRARY_PATH
10871 case $host_os in
10872 freebsd2.*)
10873 shlibpath_overrides_runpath=yes
10874 ;;
10875 freebsd3.[01]* | freebsdelf3.[01]*)
10876 shlibpath_overrides_runpath=yes
10877 hardcode_into_libs=yes
10878 ;;
10879 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10880 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10881 shlibpath_overrides_runpath=no
10882 hardcode_into_libs=yes
10883 ;;
10884 *) # from 4.6 on, and DragonFly
10885 shlibpath_overrides_runpath=yes
10886 hardcode_into_libs=yes
10887 ;;
10888 esac
10889 ;;
10890
10891 haiku*)
10892 version_type=linux # correct to gnu/linux during the next big refactor
10893 need_lib_prefix=no
10894 need_version=no
10895 dynamic_linker="$host_os runtime_loader"
10896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10897 soname_spec='$libname$release$shared_ext$major'
10898 shlibpath_var=LIBRARY_PATH
10899 shlibpath_overrides_runpath=no
10900 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10901 hardcode_into_libs=yes
10902 ;;
10903
10904 hpux9* | hpux10* | hpux11*)
10905 # Give a soname corresponding to the major version so that dld.sl refuses to
10906 # link against other versions.
10907 version_type=sunos
10908 need_lib_prefix=no
10909 need_version=no
10910 case $host_cpu in
10911 ia64*)
10912 shrext_cmds='.so'
10913 hardcode_into_libs=yes
10914 dynamic_linker="$host_os dld.so"
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10918 soname_spec='$libname$release$shared_ext$major'
10919 if test 32 = "$HPUX_IA64_MODE"; then
10920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10921 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10922 else
10923 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10924 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10925 fi
10926 ;;
10927 hppa*64*)
10928 shrext_cmds='.sl'
10929 hardcode_into_libs=yes
10930 dynamic_linker="$host_os dld.sl"
10931 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10934 soname_spec='$libname$release$shared_ext$major'
10935 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10937 ;;
10938 *)
10939 shrext_cmds='.sl'
10940 dynamic_linker="$host_os dld.sl"
10941 shlibpath_var=SHLIB_PATH
10942 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10944 soname_spec='$libname$release$shared_ext$major'
10945 ;;
10946 esac
10947 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10948 postinstall_cmds='chmod 555 $lib'
10949 # or fails outright, so override atomically:
10950 install_override_mode=555
10951 ;;
10952
10953 interix[3-9]*)
10954 version_type=linux # correct to gnu/linux during the next big refactor
10955 need_lib_prefix=no
10956 need_version=no
10957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10958 soname_spec='$libname$release$shared_ext$major'
10959 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=no
10962 hardcode_into_libs=yes
10963 ;;
10964
10965 irix5* | irix6* | nonstopux*)
10966 case $host_os in
10967 nonstopux*) version_type=nonstopux ;;
10968 *)
10969 if test yes = "$lt_cv_prog_gnu_ld"; then
10970 version_type=linux # correct to gnu/linux during the next big refactor
10971 else
10972 version_type=irix
10973 fi ;;
10974 esac
10975 need_lib_prefix=no
10976 need_version=no
10977 soname_spec='$libname$release$shared_ext$major'
10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10979 case $host_os in
10980 irix5* | nonstopux*)
10981 libsuff= shlibsuff=
10982 ;;
10983 *)
10984 case $LD in # libtool.m4 will add one of these switches to LD
10985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10986 libsuff= shlibsuff= libmagic=32-bit;;
10987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10988 libsuff=32 shlibsuff=N32 libmagic=N32;;
10989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10991 *) libsuff= shlibsuff= libmagic=never-match;;
10992 esac
10993 ;;
10994 esac
10995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10996 shlibpath_overrides_runpath=no
10997 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10998 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10999 hardcode_into_libs=yes
11000 ;;
11001
11002 # No shared lib support for Linux oldld, aout, or coff.
11003 linux*oldld* | linux*aout* | linux*coff*)
11004 dynamic_linker=no
11005 ;;
11006
11007 linux*android*)
11008 version_type=none # Android doesn't support versioned libraries.
11009 need_lib_prefix=no
11010 need_version=no
11011 library_names_spec='$libname$release$shared_ext'
11012 soname_spec='$libname$release$shared_ext'
11013 finish_cmds=
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11016
11017 # This implies no fast_install, which is unacceptable.
11018 # Some rework will be needed to allow for fast_install
11019 # before this can be enabled.
11020 hardcode_into_libs=yes
11021
11022 dynamic_linker='Android linker'
11023 # Don't embed -rpath directories since the linker doesn't support them.
11024 hardcode_libdir_flag_spec='-L$libdir'
11025 ;;
11026
11027 # This must be glibc/ELF.
11028 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11029 version_type=linux # correct to gnu/linux during the next big refactor
11030 need_lib_prefix=no
11031 need_version=no
11032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11033 soname_spec='$libname$release$shared_ext$major'
11034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=no
11037
11038 # Some binutils ld are patched to set DT_RUNPATH
11039 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 lt_cv_shlibpath_overrides_runpath=no
11043 save_LDFLAGS=$LDFLAGS
11044 save_libdir=$libdir
11045 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11046 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049
11050 int
11051 main ()
11052 {
11053
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11060 lt_cv_shlibpath_overrides_runpath=yes
11061 fi
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LDFLAGS=$save_LDFLAGS
11066 libdir=$save_libdir
11067
11068 fi
11069
11070 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11071
11072 # This implies no fast_install, which is unacceptable.
11073 # Some rework will be needed to allow for fast_install
11074 # before this can be enabled.
11075 hardcode_into_libs=yes
11076
11077 # Add ABI-specific directories to the system library path.
11078 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11079
11080 # Ideally, we could use ldconfig to report *all* directores which are
11081 # searched for libraries, however this is still not possible. Aside from not
11082 # being certain /sbin/ldconfig is available, command
11083 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11084 # even though it is searched at run-time. Try to do the best guess by
11085 # appending ld.so.conf contents (and includes) to the search path.
11086 if test -f /etc/ld.so.conf; then
11087 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' ' '`
11088 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11089 fi
11090
11091 # We used to test for /lib/ld.so.1 and disable shared libraries on
11092 # powerpc, because MkLinux only supported shared libraries with the
11093 # GNU dynamic linker. Since this was broken with cross compilers,
11094 # most powerpc-linux boxes support dynamic linking these days and
11095 # people can always --disable-shared, the test was removed, and we
11096 # assume the GNU/Linux dynamic linker is in use.
11097 dynamic_linker='GNU/Linux ld.so'
11098 ;;
11099
11100 netbsd*)
11101 version_type=sunos
11102 need_lib_prefix=no
11103 need_version=no
11104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107 dynamic_linker='NetBSD (a.out) ld.so'
11108 else
11109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11110 soname_spec='$libname$release$shared_ext$major'
11111 dynamic_linker='NetBSD ld.elf_so'
11112 fi
11113 shlibpath_var=LD_LIBRARY_PATH
11114 shlibpath_overrides_runpath=yes
11115 hardcode_into_libs=yes
11116 ;;
11117
11118 newsos6)
11119 version_type=linux # correct to gnu/linux during the next big refactor
11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 ;;
11124
11125 *nto* | *qnx*)
11126 version_type=qnx
11127 need_lib_prefix=no
11128 need_version=no
11129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11130 soname_spec='$libname$release$shared_ext$major'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 shlibpath_overrides_runpath=no
11133 hardcode_into_libs=yes
11134 dynamic_linker='ldqnx.so'
11135 ;;
11136
11137 openbsd* | bitrig*)
11138 version_type=sunos
11139 sys_lib_dlsearch_path_spec=/usr/lib
11140 need_lib_prefix=no
11141 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11142 need_version=no
11143 else
11144 need_version=yes
11145 fi
11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=yes
11150 ;;
11151
11152 os2*)
11153 libname_spec='$name'
11154 version_type=windows
11155 shrext_cmds=.dll
11156 need_version=no
11157 need_lib_prefix=no
11158 # OS/2 can only load a DLL with a base name of 8 characters or less.
11159 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11160 v=$($ECHO $release$versuffix | tr -d .-);
11161 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11162 $ECHO $n$v`$shared_ext'
11163 library_names_spec='${libname}_dll.$libext'
11164 dynamic_linker='OS/2 ld.exe'
11165 shlibpath_var=BEGINLIBPATH
11166 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11168 postinstall_cmds='base_file=`basename \$file`~
11169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11170 dldir=$destdir/`dirname \$dlpath`~
11171 test -d \$dldir || mkdir -p \$dldir~
11172 $install_prog $dir/$dlname \$dldir/$dlname~
11173 chmod a+x \$dldir/$dlname~
11174 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11175 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11176 fi'
11177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11178 dlpath=$dir/\$dldll~
11179 $RM \$dlpath'
11180 ;;
11181
11182 osf3* | osf4* | osf5*)
11183 version_type=osf
11184 need_lib_prefix=no
11185 need_version=no
11186 soname_spec='$libname$release$shared_ext$major'
11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11191 ;;
11192
11193 rdos*)
11194 dynamic_linker=no
11195 ;;
11196
11197 solaris*)
11198 version_type=linux # correct to gnu/linux during the next big refactor
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202 soname_spec='$libname$release$shared_ext$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath=yes
11205 hardcode_into_libs=yes
11206 # ldd complains unless libraries are executable
11207 postinstall_cmds='chmod +x $lib'
11208 ;;
11209
11210 sunos4*)
11211 version_type=sunos
11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11213 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 shlibpath_overrides_runpath=yes
11216 if test yes = "$with_gnu_ld"; then
11217 need_lib_prefix=no
11218 fi
11219 need_version=yes
11220 ;;
11221
11222 sysv4 | sysv4.3*)
11223 version_type=linux # correct to gnu/linux during the next big refactor
11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11225 soname_spec='$libname$release$shared_ext$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 case $host_vendor in
11228 sni)
11229 shlibpath_overrides_runpath=no
11230 need_lib_prefix=no
11231 runpath_var=LD_RUN_PATH
11232 ;;
11233 siemens)
11234 need_lib_prefix=no
11235 ;;
11236 motorola)
11237 need_lib_prefix=no
11238 need_version=no
11239 shlibpath_overrides_runpath=no
11240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11241 ;;
11242 esac
11243 ;;
11244
11245 sysv4*MP*)
11246 if test -d /usr/nec; then
11247 version_type=linux # correct to gnu/linux during the next big refactor
11248 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11249 soname_spec='$libname$shared_ext.$major'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 fi
11252 ;;
11253
11254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11255 version_type=sco
11256 need_lib_prefix=no
11257 need_version=no
11258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11259 soname_spec='$libname$release$shared_ext$major'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 shlibpath_overrides_runpath=yes
11262 hardcode_into_libs=yes
11263 if test yes = "$with_gnu_ld"; then
11264 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11265 else
11266 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11267 case $host_os in
11268 sco3.2v5*)
11269 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11270 ;;
11271 esac
11272 fi
11273 sys_lib_dlsearch_path_spec='/usr/lib'
11274 ;;
11275
11276 tpf*)
11277 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11278 version_type=linux # correct to gnu/linux during the next big refactor
11279 need_lib_prefix=no
11280 need_version=no
11281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 shlibpath_overrides_runpath=no
11284 hardcode_into_libs=yes
11285 ;;
11286
11287 uts4*)
11288 version_type=linux # correct to gnu/linux during the next big refactor
11289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11290 soname_spec='$libname$release$shared_ext$major'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 ;;
11293
11294 *)
11295 dynamic_linker=no
11296 ;;
11297 esac
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11299 $as_echo "$dynamic_linker" >&6; }
11300 test no = "$dynamic_linker" && can_build_shared=no
11301
11302 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11303 if test yes = "$GCC"; then
11304 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11305 fi
11306
11307 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11308 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11309 fi
11310
11311 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11312 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11313 fi
11314
11315 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11316 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11317
11318 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11319 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11320
11321 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11322 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11421 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11422 hardcode_action=
11423 if test -n "$hardcode_libdir_flag_spec" ||
11424 test -n "$runpath_var" ||
11425 test yes = "$hardcode_automatic"; then
11426
11427 # We can hardcode non-existent directories.
11428 if test no != "$hardcode_direct" &&
11429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11430 # have to relink, otherwise we might link with an installed library
11431 # when we should be linking with a yet-to-be-installed one
11432 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11433 test no != "$hardcode_minus_L"; then
11434 # Linking always hardcodes the temporary library directory.
11435 hardcode_action=relink
11436 else
11437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11438 hardcode_action=immediate
11439 fi
11440 else
11441 # We cannot hardcode anything, or else we can only hardcode existing
11442 # directories.
11443 hardcode_action=unsupported
11444 fi
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11446 $as_echo "$hardcode_action" >&6; }
11447
11448 if test relink = "$hardcode_action" ||
11449 test yes = "$inherit_rpath"; then
11450 # Fast installation is not supported
11451 enable_fast_install=no
11452 elif test yes = "$shlibpath_overrides_runpath" ||
11453 test no = "$enable_shared"; then
11454 # Fast installation is not necessary
11455 enable_fast_install=needless
11456 fi
11457
11458
11459
11460
11461
11462
11463 if test yes != "$enable_dlopen"; then
11464 enable_dlopen=unknown
11465 enable_dlopen_self=unknown
11466 enable_dlopen_self_static=unknown
11467 else
11468 lt_cv_dlopen=no
11469 lt_cv_dlopen_libs=
11470
11471 case $host_os in
11472 beos*)
11473 lt_cv_dlopen=load_add_on
11474 lt_cv_dlopen_libs=
11475 lt_cv_dlopen_self=yes
11476 ;;
11477
11478 mingw* | pw32* | cegcc*)
11479 lt_cv_dlopen=LoadLibrary
11480 lt_cv_dlopen_libs=
11481 ;;
11482
11483 cygwin*)
11484 lt_cv_dlopen=dlopen
11485 lt_cv_dlopen_libs=
11486 ;;
11487
11488 darwin*)
11489 # if libdl is installed we need to link against it
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11491 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11492 if ${ac_cv_lib_dl_dlopen+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 ac_check_lib_save_LIBS=$LIBS
11496 LIBS="-ldl $LIBS"
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499
11500 /* Override any GCC internal prototype to avoid an error.
11501 Use char because int might match the return type of a GCC
11502 builtin and then its argument prototype would still apply. */
11503 #ifdef __cplusplus
11504 extern "C"
11505 #endif
11506 char dlopen ();
11507 int
11508 main ()
11509 {
11510 return dlopen ();
11511 ;
11512 return 0;
11513 }
11514 _ACEOF
11515 if ac_fn_c_try_link "$LINENO"; then :
11516 ac_cv_lib_dl_dlopen=yes
11517 else
11518 ac_cv_lib_dl_dlopen=no
11519 fi
11520 rm -f core conftest.err conftest.$ac_objext \
11521 conftest$ac_exeext conftest.$ac_ext
11522 LIBS=$ac_check_lib_save_LIBS
11523 fi
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11526 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11527 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11528 else
11529
11530 lt_cv_dlopen=dyld
11531 lt_cv_dlopen_libs=
11532 lt_cv_dlopen_self=yes
11533
11534 fi
11535
11536 ;;
11537
11538 tpf*)
11539 # Don't try to run any link tests for TPF. We know it's impossible
11540 # because TPF is a cross-compiler, and we know how we open DSOs.
11541 lt_cv_dlopen=dlopen
11542 lt_cv_dlopen_libs=
11543 lt_cv_dlopen_self=no
11544 ;;
11545
11546 *)
11547 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11548 if test "x$ac_cv_func_shl_load" = xyes; then :
11549 lt_cv_dlopen=shl_load
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11552 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11553 if ${ac_cv_lib_dld_shl_load+:} false; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 ac_check_lib_save_LIBS=$LIBS
11557 LIBS="-ldld $LIBS"
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char shl_load ();
11568 int
11569 main ()
11570 {
11571 return shl_load ();
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 ac_cv_lib_dld_shl_load=yes
11578 else
11579 ac_cv_lib_dld_shl_load=no
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11586 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11587 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11588 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11589 else
11590 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11591 if test "x$ac_cv_func_dlopen" = xyes; then :
11592 lt_cv_dlopen=dlopen
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11595 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11596 if ${ac_cv_lib_dl_dlopen+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-ldl $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char dlopen ();
11611 int
11612 main ()
11613 {
11614 return dlopen ();
11615 ;
11616 return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_dl_dlopen=yes
11621 else
11622 ac_cv_lib_dl_dlopen=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11629 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11630 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11631 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11632 else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11634 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11635 if ${ac_cv_lib_svld_dlopen+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-lsvld $LIBS"
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11642
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 char dlopen ();
11650 int
11651 main ()
11652 {
11653 return dlopen ();
11654 ;
11655 return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"; then :
11659 ac_cv_lib_svld_dlopen=yes
11660 else
11661 ac_cv_lib_svld_dlopen=no
11662 fi
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11666 fi
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11668 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11669 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11670 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11673 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11674 if ${ac_cv_lib_dld_dld_link+:} false; then :
11675 $as_echo_n "(cached) " >&6
11676 else
11677 ac_check_lib_save_LIBS=$LIBS
11678 LIBS="-ldld $LIBS"
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11681
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char dld_link ();
11689 int
11690 main ()
11691 {
11692 return dld_link ();
11693 ;
11694 return 0;
11695 }
11696 _ACEOF
11697 if ac_fn_c_try_link "$LINENO"; then :
11698 ac_cv_lib_dld_dld_link=yes
11699 else
11700 ac_cv_lib_dld_dld_link=no
11701 fi
11702 rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11704 LIBS=$ac_check_lib_save_LIBS
11705 fi
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11707 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11708 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11709 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11710 fi
11711
11712
11713 fi
11714
11715
11716 fi
11717
11718
11719 fi
11720
11721
11722 fi
11723
11724
11725 fi
11726
11727 ;;
11728 esac
11729
11730 if test no = "$lt_cv_dlopen"; then
11731 enable_dlopen=no
11732 else
11733 enable_dlopen=yes
11734 fi
11735
11736 case $lt_cv_dlopen in
11737 dlopen)
11738 save_CPPFLAGS=$CPPFLAGS
11739 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11740
11741 save_LDFLAGS=$LDFLAGS
11742 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11743
11744 save_LIBS=$LIBS
11745 LIBS="$lt_cv_dlopen_libs $LIBS"
11746
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11748 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11749 if ${lt_cv_dlopen_self+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 if test yes = "$cross_compiling"; then :
11753 lt_cv_dlopen_self=cross
11754 else
11755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11756 lt_status=$lt_dlunknown
11757 cat > conftest.$ac_ext <<_LT_EOF
11758 #line $LINENO "configure"
11759 #include "confdefs.h"
11760
11761 #if HAVE_DLFCN_H
11762 #include <dlfcn.h>
11763 #endif
11764
11765 #include <stdio.h>
11766
11767 #ifdef RTLD_GLOBAL
11768 # define LT_DLGLOBAL RTLD_GLOBAL
11769 #else
11770 # ifdef DL_GLOBAL
11771 # define LT_DLGLOBAL DL_GLOBAL
11772 # else
11773 # define LT_DLGLOBAL 0
11774 # endif
11775 #endif
11776
11777 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11778 find out it does not work in some platform. */
11779 #ifndef LT_DLLAZY_OR_NOW
11780 # ifdef RTLD_LAZY
11781 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11782 # else
11783 # ifdef DL_LAZY
11784 # define LT_DLLAZY_OR_NOW DL_LAZY
11785 # else
11786 # ifdef RTLD_NOW
11787 # define LT_DLLAZY_OR_NOW RTLD_NOW
11788 # else
11789 # ifdef DL_NOW
11790 # define LT_DLLAZY_OR_NOW DL_NOW
11791 # else
11792 # define LT_DLLAZY_OR_NOW 0
11793 # endif
11794 # endif
11795 # endif
11796 # endif
11797 #endif
11798
11799 /* When -fvisibility=hidden is used, assume the code has been annotated
11800 correspondingly for the symbols needed. */
11801 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11802 int fnord () __attribute__((visibility("default")));
11803 #endif
11804
11805 int fnord () { return 42; }
11806 int main ()
11807 {
11808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11809 int status = $lt_dlunknown;
11810
11811 if (self)
11812 {
11813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11814 else
11815 {
11816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11817 else puts (dlerror ());
11818 }
11819 /* dlclose (self); */
11820 }
11821 else
11822 puts (dlerror ());
11823
11824 return status;
11825 }
11826 _LT_EOF
11827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11828 (eval $ac_link) 2>&5
11829 ac_status=$?
11830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11831 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11832 (./conftest; exit; ) >&5 2>/dev/null
11833 lt_status=$?
11834 case x$lt_status in
11835 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11836 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11837 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11838 esac
11839 else :
11840 # compilation failed
11841 lt_cv_dlopen_self=no
11842 fi
11843 fi
11844 rm -fr conftest*
11845
11846
11847 fi
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11849 $as_echo "$lt_cv_dlopen_self" >&6; }
11850
11851 if test yes = "$lt_cv_dlopen_self"; then
11852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11854 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11855 if ${lt_cv_dlopen_self_static+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 if test yes = "$cross_compiling"; then :
11859 lt_cv_dlopen_self_static=cross
11860 else
11861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11862 lt_status=$lt_dlunknown
11863 cat > conftest.$ac_ext <<_LT_EOF
11864 #line $LINENO "configure"
11865 #include "confdefs.h"
11866
11867 #if HAVE_DLFCN_H
11868 #include <dlfcn.h>
11869 #endif
11870
11871 #include <stdio.h>
11872
11873 #ifdef RTLD_GLOBAL
11874 # define LT_DLGLOBAL RTLD_GLOBAL
11875 #else
11876 # ifdef DL_GLOBAL
11877 # define LT_DLGLOBAL DL_GLOBAL
11878 # else
11879 # define LT_DLGLOBAL 0
11880 # endif
11881 #endif
11882
11883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11884 find out it does not work in some platform. */
11885 #ifndef LT_DLLAZY_OR_NOW
11886 # ifdef RTLD_LAZY
11887 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11888 # else
11889 # ifdef DL_LAZY
11890 # define LT_DLLAZY_OR_NOW DL_LAZY
11891 # else
11892 # ifdef RTLD_NOW
11893 # define LT_DLLAZY_OR_NOW RTLD_NOW
11894 # else
11895 # ifdef DL_NOW
11896 # define LT_DLLAZY_OR_NOW DL_NOW
11897 # else
11898 # define LT_DLLAZY_OR_NOW 0
11899 # endif
11900 # endif
11901 # endif
11902 # endif
11903 #endif
11904
11905 /* When -fvisibility=hidden is used, assume the code has been annotated
11906 correspondingly for the symbols needed. */
11907 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11908 int fnord () __attribute__((visibility("default")));
11909 #endif
11910
11911 int fnord () { return 42; }
11912 int main ()
11913 {
11914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11915 int status = $lt_dlunknown;
11916
11917 if (self)
11918 {
11919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11920 else
11921 {
11922 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11923 else puts (dlerror ());
11924 }
11925 /* dlclose (self); */
11926 }
11927 else
11928 puts (dlerror ());
11929
11930 return status;
11931 }
11932 _LT_EOF
11933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11934 (eval $ac_link) 2>&5
11935 ac_status=$?
11936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11937 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11938 (./conftest; exit; ) >&5 2>/dev/null
11939 lt_status=$?
11940 case x$lt_status in
11941 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11942 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11943 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11944 esac
11945 else :
11946 # compilation failed
11947 lt_cv_dlopen_self_static=no
11948 fi
11949 fi
11950 rm -fr conftest*
11951
11952
11953 fi
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11955 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11956 fi
11957
11958 CPPFLAGS=$save_CPPFLAGS
11959 LDFLAGS=$save_LDFLAGS
11960 LIBS=$save_LIBS
11961 ;;
11962 esac
11963
11964 case $lt_cv_dlopen_self in
11965 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11966 *) enable_dlopen_self=unknown ;;
11967 esac
11968
11969 case $lt_cv_dlopen_self_static in
11970 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11971 *) enable_dlopen_self_static=unknown ;;
11972 esac
11973 fi
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991 striplib=
11992 old_striplib=
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11994 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11995 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11996 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11997 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999 $as_echo "yes" >&6; }
12000 else
12001 # FIXME - insert some real tests, host_os isn't really good enough
12002 case $host_os in
12003 darwin*)
12004 if test -n "$STRIP"; then
12005 striplib="$STRIP -x"
12006 old_striplib="$STRIP -S"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12008 $as_echo "yes" >&6; }
12009 else
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12012 fi
12013 ;;
12014 *)
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12017 ;;
12018 esac
12019 fi
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032 # Report what library types will actually be built
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12034 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12036 $as_echo "$can_build_shared" >&6; }
12037
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12039 $as_echo_n "checking whether to build shared libraries... " >&6; }
12040 test no = "$can_build_shared" && enable_shared=no
12041
12042 # On AIX, shared libraries and static libraries use the same namespace, and
12043 # are all built from PIC.
12044 case $host_os in
12045 aix3*)
12046 test yes = "$enable_shared" && enable_static=no
12047 if test -n "$RANLIB"; then
12048 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12049 postinstall_cmds='$RANLIB $lib'
12050 fi
12051 ;;
12052
12053 aix[4-9]*)
12054 if test ia64 != "$host_cpu"; then
12055 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12056 yes,aix,yes) ;; # shared object as lib.so file only
12057 yes,svr4,*) ;; # shared object as lib.so archive member only
12058 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12059 esac
12060 fi
12061 ;;
12062 esac
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12064 $as_echo "$enable_shared" >&6; }
12065
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12067 $as_echo_n "checking whether to build static libraries... " >&6; }
12068 # Make sure either enable_shared or enable_static is yes.
12069 test yes = "$enable_shared" || enable_static=yes
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12071 $as_echo "$enable_static" >&6; }
12072
12073
12074
12075
12076 fi
12077 ac_ext=c
12078 ac_cpp='$CPP $CPPFLAGS'
12079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12082
12083 CC=$lt_save_CC
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099 ac_config_commands="$ac_config_commands libtool"
12100
12101
12102
12103
12104 # Only expand once:
12105
12106
12107 # Check whether --enable-largefile was given.
12108 if test "${enable_largefile+set}" = set; then :
12109 enableval=$enable_largefile;
12110 fi
12111
12112 if test "$enable_largefile" != no; then
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12115 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12116 if ${ac_cv_sys_largefile_CC+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 ac_cv_sys_largefile_CC=no
12120 if test "$GCC" != yes; then
12121 ac_save_CC=$CC
12122 while :; do
12123 # IRIX 6.2 and later do not support large files by default,
12124 # so use the C compiler's -n32 option if that helps.
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127 #include <sys/types.h>
12128 /* Check that off_t can represent 2**63 - 1 correctly.
12129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12130 since some C++ compilers masquerading as C compilers
12131 incorrectly reject 9223372036854775807. */
12132 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12134 && LARGE_OFF_T % 2147483647 == 1)
12135 ? 1 : -1];
12136 int
12137 main ()
12138 {
12139
12140 ;
12141 return 0;
12142 }
12143 _ACEOF
12144 if ac_fn_c_try_compile "$LINENO"; then :
12145 break
12146 fi
12147 rm -f core conftest.err conftest.$ac_objext
12148 CC="$CC -n32"
12149 if ac_fn_c_try_compile "$LINENO"; then :
12150 ac_cv_sys_largefile_CC=' -n32'; break
12151 fi
12152 rm -f core conftest.err conftest.$ac_objext
12153 break
12154 done
12155 CC=$ac_save_CC
12156 rm -f conftest.$ac_ext
12157 fi
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12160 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12161 if test "$ac_cv_sys_largefile_CC" != no; then
12162 CC=$CC$ac_cv_sys_largefile_CC
12163 fi
12164
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12166 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12167 if ${ac_cv_sys_file_offset_bits+:} false; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 while :; do
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12173 #include <sys/types.h>
12174 /* Check that off_t can represent 2**63 - 1 correctly.
12175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12176 since some C++ compilers masquerading as C compilers
12177 incorrectly reject 9223372036854775807. */
12178 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12180 && LARGE_OFF_T % 2147483647 == 1)
12181 ? 1 : -1];
12182 int
12183 main ()
12184 {
12185
12186 ;
12187 return 0;
12188 }
12189 _ACEOF
12190 if ac_fn_c_try_compile "$LINENO"; then :
12191 ac_cv_sys_file_offset_bits=no; break
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12196 #define _FILE_OFFSET_BITS 64
12197 #include <sys/types.h>
12198 /* Check that off_t can represent 2**63 - 1 correctly.
12199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12200 since some C++ compilers masquerading as C compilers
12201 incorrectly reject 9223372036854775807. */
12202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12204 && LARGE_OFF_T % 2147483647 == 1)
12205 ? 1 : -1];
12206 int
12207 main ()
12208 {
12209
12210 ;
12211 return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_compile "$LINENO"; then :
12215 ac_cv_sys_file_offset_bits=64; break
12216 fi
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 ac_cv_sys_file_offset_bits=unknown
12219 break
12220 done
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12223 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12224 case $ac_cv_sys_file_offset_bits in #(
12225 no | unknown) ;;
12226 *)
12227 cat >>confdefs.h <<_ACEOF
12228 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12229 _ACEOF
12230 ;;
12231 esac
12232 rm -rf conftest*
12233 if test $ac_cv_sys_file_offset_bits = unknown; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12235 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12236 if ${ac_cv_sys_large_files+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 while :; do
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12242 #include <sys/types.h>
12243 /* Check that off_t can represent 2**63 - 1 correctly.
12244 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12245 since some C++ compilers masquerading as C compilers
12246 incorrectly reject 9223372036854775807. */
12247 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12248 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12249 && LARGE_OFF_T % 2147483647 == 1)
12250 ? 1 : -1];
12251 int
12252 main ()
12253 {
12254
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 if ac_fn_c_try_compile "$LINENO"; then :
12260 ac_cv_sys_large_files=no; break
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12265 #define _LARGE_FILES 1
12266 #include <sys/types.h>
12267 /* Check that off_t can represent 2**63 - 1 correctly.
12268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12269 since some C++ compilers masquerading as C compilers
12270 incorrectly reject 9223372036854775807. */
12271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12273 && LARGE_OFF_T % 2147483647 == 1)
12274 ? 1 : -1];
12275 int
12276 main ()
12277 {
12278
12279 ;
12280 return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_compile "$LINENO"; then :
12284 ac_cv_sys_large_files=1; break
12285 fi
12286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 ac_cv_sys_large_files=unknown
12288 break
12289 done
12290 fi
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12292 $as_echo "$ac_cv_sys_large_files" >&6; }
12293 case $ac_cv_sys_large_files in #(
12294 no | unknown) ;;
12295 *)
12296 cat >>confdefs.h <<_ACEOF
12297 #define _LARGE_FILES $ac_cv_sys_large_files
12298 _ACEOF
12299 ;;
12300 esac
12301 rm -rf conftest*
12302 fi
12303
12304
12305 fi
12306
12307
12308
12309
12310
12311 # Check whether --with-xorg-module-dir was given.
12312 if test "${with_xorg_module_dir+set}" = set; then :
12313 withval=$with_xorg_module_dir; moduledir="$withval"
12314 else
12315 moduledir="$libdir/xorg/modules"
12316 fi
12317
12318
12319 # Check whether --enable-debug was given.
12320 if test "${enable_debug+set}" = set; then :
12321 enableval=$enable_debug; DEBUG="$enableval"
12322 else
12323 DEBUG=no
12324 fi
12325
12326
12327 # Check whether --enable-xv-debug was given.
12328 if test "${enable_xv_debug+set}" = set; then :
12329 enableval=$enable_xv_debug; XV_DEBUG="$enableval"
12330 else
12331 XV_DEBUG=no
12332 fi
12333
12334
12335 # Check whether --enable-viaregtool was given.
12336 if test "${enable_viaregtool+set}" = set; then :
12337 enableval=$enable_viaregtool; TOOLS="$enableval"
12338 else
12339 TOOLS=no
12340 fi
12341
12342
12343 # Checks for extensions
12344
12345 SAVE_CFLAGS="$CFLAGS"
12346 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349
12350 #include "xorg-server.h"
12351 #if !defined RANDR
12352 #error RANDR not defined
12353 #endif
12354
12355 int
12356 main ()
12357 {
12358
12359 ;
12360 return 0;
12361 }
12362 _ACEOF
12363 if ac_fn_c_try_compile "$LINENO"; then :
12364 _EXT_CHECK=yes
12365 else
12366 _EXT_CHECK=no
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 CFLAGS="$SAVE_CFLAGS"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
12371 $as_echo_n "checking if RANDR is defined... " >&6; }
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
12373 $as_echo "$_EXT_CHECK" >&6; }
12374 if test "$_EXT_CHECK" != no; then
12375 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12376 fi
12377
12378
12379 SAVE_CFLAGS="$CFLAGS"
12380 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383
12384 #include "xorg-server.h"
12385 #if !defined RENDER
12386 #error RENDER not defined
12387 #endif
12388
12389 int
12390 main ()
12391 {
12392
12393 ;
12394 return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_compile "$LINENO"; then :
12398 _EXT_CHECK=yes
12399 else
12400 _EXT_CHECK=no
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 CFLAGS="$SAVE_CFLAGS"
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
12405 $as_echo_n "checking if RENDER is defined... " >&6; }
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
12407 $as_echo "$_EXT_CHECK" >&6; }
12408 if test "$_EXT_CHECK" != no; then
12409 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
12410 fi
12411
12412
12413 SAVE_CFLAGS="$CFLAGS"
12414 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417
12418 #include "xorg-server.h"
12419 #if !defined XV
12420 #error XV not defined
12421 #endif
12422
12423 int
12424 main ()
12425 {
12426
12427 ;
12428 return 0;
12429 }
12430 _ACEOF
12431 if ac_fn_c_try_compile "$LINENO"; then :
12432 _EXT_CHECK=yes
12433 else
12434 _EXT_CHECK=no
12435 fi
12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437 CFLAGS="$SAVE_CFLAGS"
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
12439 $as_echo_n "checking if XV is defined... " >&6; }
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
12441 $as_echo "$_EXT_CHECK" >&6; }
12442 if test "$_EXT_CHECK" != no; then
12443 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
12444 fi
12445
12446
12447 SAVE_CFLAGS="$CFLAGS"
12448 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451
12452 #include "xorg-server.h"
12453 #if !defined XF86DRI
12454 #error XF86DRI not defined
12455 #endif
12456
12457 int
12458 main ()
12459 {
12460
12461 ;
12462 return 0;
12463 }
12464 _ACEOF
12465 if ac_fn_c_try_compile "$LINENO"; then :
12466 _EXT_CHECK=yes
12467 else
12468 _EXT_CHECK=no
12469 fi
12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471 CFLAGS="$SAVE_CFLAGS"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
12473 $as_echo_n "checking if XF86DRI is defined... " >&6; }
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
12475 $as_echo "$_EXT_CHECK" >&6; }
12476 if test "$_EXT_CHECK" != no; then
12477 REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
12478 fi
12479
12480
12481 SAVE_CFLAGS="$CFLAGS"
12482 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12485
12486 #include "xorg-server.h"
12487 #if !defined DPMSExtension
12488 #error DPMSExtension not defined
12489 #endif
12490
12491 int
12492 main ()
12493 {
12494
12495 ;
12496 return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_compile "$LINENO"; then :
12500 _EXT_CHECK=yes
12501 else
12502 _EXT_CHECK=no
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 CFLAGS="$SAVE_CFLAGS"
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
12507 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
12509 $as_echo "$_EXT_CHECK" >&6; }
12510 if test "$_EXT_CHECK" != no; then
12511 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
12512 fi
12513
12514
12515 # Checks for pkg-config packages
12516
12517
12518
12519
12520
12521
12522
12523 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12524 if test -n "$ac_tool_prefix"; then
12525 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12526 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12530 $as_echo_n "(cached) " >&6
12531 else
12532 case $PKG_CONFIG in
12533 [\\/]* | ?:[\\/]*)
12534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12535 ;;
12536 *)
12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538 for as_dir in $PATH
12539 do
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12544 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 break 2
12547 fi
12548 done
12549 done
12550 IFS=$as_save_IFS
12551
12552 ;;
12553 esac
12554 fi
12555 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12556 if test -n "$PKG_CONFIG"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12558 $as_echo "$PKG_CONFIG" >&6; }
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 $as_echo "no" >&6; }
12562 fi
12563
12564
12565 fi
12566 if test -z "$ac_cv_path_PKG_CONFIG"; then
12567 ac_pt_PKG_CONFIG=$PKG_CONFIG
12568 # Extract the first word of "pkg-config", so it can be a program name with args.
12569 set dummy pkg-config; ac_word=$2
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12571 $as_echo_n "checking for $ac_word... " >&6; }
12572 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 case $ac_pt_PKG_CONFIG in
12576 [\\/]* | ?:[\\/]*)
12577 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12578 ;;
12579 *)
12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12582 do
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
12585 for ac_exec_ext in '' $ac_executable_extensions; do
12586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12587 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12589 break 2
12590 fi
12591 done
12592 done
12593 IFS=$as_save_IFS
12594
12595 ;;
12596 esac
12597 fi
12598 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12599 if test -n "$ac_pt_PKG_CONFIG"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12601 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12605 fi
12606
12607 if test "x$ac_pt_PKG_CONFIG" = x; then
12608 PKG_CONFIG=""
12609 else
12610 case $cross_compiling:$ac_tool_warned in
12611 yes:)
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12614 ac_tool_warned=yes ;;
12615 esac
12616 PKG_CONFIG=$ac_pt_PKG_CONFIG
12617 fi
12618 else
12619 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12620 fi
12621
12622 fi
12623 if test -n "$PKG_CONFIG"; then
12624 _pkg_min_version=0.9.0
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12626 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12627 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12629 $as_echo "yes" >&6; }
12630 else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12633 PKG_CONFIG=""
12634 fi
12635 fi
12636
12637 pkg_failed=no
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
12639 $as_echo_n "checking for XORG... " >&6; }
12640
12641 if test -n "$XORG_CFLAGS"; then
12642 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12643 elif test -n "$PKG_CONFIG"; then
12644 if test -n "$PKG_CONFIG" && \
12645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto glproto \$REQUIRED_MODULES\""; } >&5
12646 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto glproto $REQUIRED_MODULES") 2>&5
12647 ac_status=$?
12648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12649 test $ac_status = 0; }; then
12650 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto glproto $REQUIRED_MODULES" 2>/dev/null`
12651 test "x$?" != "x0" && pkg_failed=yes
12652 else
12653 pkg_failed=yes
12654 fi
12655 else
12656 pkg_failed=untried
12657 fi
12658 if test -n "$XORG_LIBS"; then
12659 pkg_cv_XORG_LIBS="$XORG_LIBS"
12660 elif test -n "$PKG_CONFIG"; then
12661 if test -n "$PKG_CONFIG" && \
12662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto glproto \$REQUIRED_MODULES\""; } >&5
12663 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto glproto $REQUIRED_MODULES") 2>&5
12664 ac_status=$?
12665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12666 test $ac_status = 0; }; then
12667 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto glproto $REQUIRED_MODULES" 2>/dev/null`
12668 test "x$?" != "x0" && pkg_failed=yes
12669 else
12670 pkg_failed=yes
12671 fi
12672 else
12673 pkg_failed=untried
12674 fi
12675
12676
12677
12678 if test $pkg_failed = yes; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12681
12682 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12683 _pkg_short_errors_supported=yes
12684 else
12685 _pkg_short_errors_supported=no
12686 fi
12687 if test $_pkg_short_errors_supported = yes; then
12688 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto glproto $REQUIRED_MODULES" 2>&1`
12689 else
12690 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto glproto $REQUIRED_MODULES" 2>&1`
12691 fi
12692 # Put the nasty error message in config.log where it belongs
12693 echo "$XORG_PKG_ERRORS" >&5
12694
12695 as_fn_error $? "Package requirements (xorg-server xproto fontsproto glproto $REQUIRED_MODULES) were not met:
12696
12697 $XORG_PKG_ERRORS
12698
12699 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12700 installed software in a non-standard prefix.
12701
12702 Alternatively, you may set the environment variables XORG_CFLAGS
12703 and XORG_LIBS to avoid the need to call pkg-config.
12704 See the pkg-config man page for more details." "$LINENO" 5
12705 elif test $pkg_failed = untried; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12710 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12711 is in your PATH or set the PKG_CONFIG environment variable to the full
12712 path to pkg-config.
12713
12714 Alternatively, you may set the environment variables XORG_CFLAGS
12715 and XORG_LIBS to avoid the need to call pkg-config.
12716 See the pkg-config man page for more details.
12717
12718 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12719 See \`config.log' for more details" "$LINENO" 5; }
12720 else
12721 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12722 XORG_LIBS=$pkg_cv_XORG_LIBS
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12724 $as_echo "yes" >&6; }
12725
12726 fi
12727
12728 pkg_failed=no
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
12730 $as_echo_n "checking for XEXT... " >&6; }
12731
12732 if test -n "$XEXT_CFLAGS"; then
12733 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
12734 elif test -n "$PKG_CONFIG"; then
12735 if test -n "$PKG_CONFIG" && \
12736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
12737 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12738 ac_status=$?
12739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12740 test $ac_status = 0; }; then
12741 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
12742 test "x$?" != "x0" && pkg_failed=yes
12743 else
12744 pkg_failed=yes
12745 fi
12746 else
12747 pkg_failed=untried
12748 fi
12749 if test -n "$XEXT_LIBS"; then
12750 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
12751 elif test -n "$PKG_CONFIG"; then
12752 if test -n "$PKG_CONFIG" && \
12753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
12754 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
12755 ac_status=$?
12756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12757 test $ac_status = 0; }; then
12758 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
12759 test "x$?" != "x0" && pkg_failed=yes
12760 else
12761 pkg_failed=yes
12762 fi
12763 else
12764 pkg_failed=untried
12765 fi
12766
12767
12768
12769 if test $pkg_failed = yes; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12772
12773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12774 _pkg_short_errors_supported=yes
12775 else
12776 _pkg_short_errors_supported=no
12777 fi
12778 if test $_pkg_short_errors_supported = yes; then
12779 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
12780 else
12781 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
12782 fi
12783 # Put the nasty error message in config.log where it belongs
12784 echo "$XEXT_PKG_ERRORS" >&5
12785
12786 HAVE_XEXTPROTO_71="no"
12787 elif test $pkg_failed = untried; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12790 HAVE_XEXTPROTO_71="no"
12791 else
12792 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
12793 XEXT_LIBS=$pkg_cv_XEXT_LIBS
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12795 $as_echo "yes" >&6; }
12796 HAVE_XEXTPROTO_71="yes";
12797 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
12798
12799 fi
12800 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
12801 HAVE_XEXTPROTO_71_TRUE=
12802 HAVE_XEXTPROTO_71_FALSE='#'
12803 else
12804 HAVE_XEXTPROTO_71_TRUE='#'
12805 HAVE_XEXTPROTO_71_FALSE=
12806 fi
12807
12808
12809 # Checks for libraries.
12810
12811 # Checks for header files.
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12813 $as_echo_n "checking for ANSI C header files... " >&6; }
12814 if ${ac_cv_header_stdc+:} false; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819 #include <stdlib.h>
12820 #include <stdarg.h>
12821 #include <string.h>
12822 #include <float.h>
12823
12824 int
12825 main ()
12826 {
12827
12828 ;
12829 return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_c_try_compile "$LINENO"; then :
12833 ac_cv_header_stdc=yes
12834 else
12835 ac_cv_header_stdc=no
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838
12839 if test $ac_cv_header_stdc = yes; then
12840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843 #include <string.h>
12844
12845 _ACEOF
12846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12847 $EGREP "memchr" >/dev/null 2>&1; then :
12848
12849 else
12850 ac_cv_header_stdc=no
12851 fi
12852 rm -f conftest*
12853
12854 fi
12855
12856 if test $ac_cv_header_stdc = yes; then
12857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12860 #include <stdlib.h>
12861
12862 _ACEOF
12863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12864 $EGREP "free" >/dev/null 2>&1; then :
12865
12866 else
12867 ac_cv_header_stdc=no
12868 fi
12869 rm -f conftest*
12870
12871 fi
12872
12873 if test $ac_cv_header_stdc = yes; then
12874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12875 if test "$cross_compiling" = yes; then :
12876 :
12877 else
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 #include <ctype.h>
12881 #include <stdlib.h>
12882 #if ((' ' & 0x0FF) == 0x020)
12883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12885 #else
12886 # define ISLOWER(c) \
12887 (('a' <= (c) && (c) <= 'i') \
12888 || ('j' <= (c) && (c) <= 'r') \
12889 || ('s' <= (c) && (c) <= 'z'))
12890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12891 #endif
12892
12893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12894 int
12895 main ()
12896 {
12897 int i;
12898 for (i = 0; i < 256; i++)
12899 if (XOR (islower (i), ISLOWER (i))
12900 || toupper (i) != TOUPPER (i))
12901 return 2;
12902 return 0;
12903 }
12904 _ACEOF
12905 if ac_fn_c_try_run "$LINENO"; then :
12906
12907 else
12908 ac_cv_header_stdc=no
12909 fi
12910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12911 conftest.$ac_objext conftest.beam conftest.$ac_ext
12912 fi
12913
12914 fi
12915 fi
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12917 $as_echo "$ac_cv_header_stdc" >&6; }
12918 if test $ac_cv_header_stdc = yes; then
12919
12920 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12921
12922 fi
12923
12924
12925 save_CPPFLAGS="$CPPFLAGS"
12926 CPPFLAGS="$XORG_CFLAGS $CPPFLAGS"
12927 ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\"
12928 "
12929 if test "x$ac_cv_header_xf86Modes_h" = xyes; then :
12930 XMODES=yes
12931 else
12932 XMODES=no
12933 fi
12934
12935
12936
12937 pkg_failed=no
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
12939 $as_echo_n "checking for PCIACCESS... " >&6; }
12940
12941 if test -n "$PCIACCESS_CFLAGS"; then
12942 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
12943 elif test -n "$PKG_CONFIG"; then
12944 if test -n "$PKG_CONFIG" && \
12945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.11.0\""; } >&5
12946 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.11.0") 2>&5
12947 ac_status=$?
12948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; }; then
12950 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.11.0" 2>/dev/null`
12951 test "x$?" != "x0" && pkg_failed=yes
12952 else
12953 pkg_failed=yes
12954 fi
12955 else
12956 pkg_failed=untried
12957 fi
12958 if test -n "$PCIACCESS_LIBS"; then
12959 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
12960 elif test -n "$PKG_CONFIG"; then
12961 if test -n "$PKG_CONFIG" && \
12962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.11.0\""; } >&5
12963 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.11.0") 2>&5
12964 ac_status=$?
12965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966 test $ac_status = 0; }; then
12967 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.11.0" 2>/dev/null`
12968 test "x$?" != "x0" && pkg_failed=yes
12969 else
12970 pkg_failed=yes
12971 fi
12972 else
12973 pkg_failed=untried
12974 fi
12975
12976
12977
12978 if test $pkg_failed = yes; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12981
12982 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12983 _pkg_short_errors_supported=yes
12984 else
12985 _pkg_short_errors_supported=no
12986 fi
12987 if test $_pkg_short_errors_supported = yes; then
12988 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.11.0" 2>&1`
12989 else
12990 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.11.0" 2>&1`
12991 fi
12992 # Put the nasty error message in config.log where it belongs
12993 echo "$PCIACCESS_PKG_ERRORS" >&5
12994
12995 HAVE_PCIACCESS="no"
12996 elif test $pkg_failed = untried; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
12999 HAVE_PCIACCESS="no"
13000 else
13001 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
13002 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13004 $as_echo "yes" >&6; }
13005 HAVE_PCIACCESS="yes";
13006 $as_echo "#define HAVE_PCIACCESS 1" >>confdefs.h
13007
13008 fi
13009
13010
13011
13012
13013 pkg_failed=no
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
13015 $as_echo_n "checking for DRI... " >&6; }
13016
13017 if test -n "$DRI_CFLAGS"; then
13018 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
13019 elif test -n "$PKG_CONFIG"; then
13020 if test -n "$PKG_CONFIG" && \
13021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.4 xf86driproto\""; } >&5
13022 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.4 xf86driproto") 2>&5
13023 ac_status=$?
13024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13025 test $ac_status = 0; }; then
13026 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.4 xf86driproto" 2>/dev/null`
13027 test "x$?" != "x0" && pkg_failed=yes
13028 else
13029 pkg_failed=yes
13030 fi
13031 else
13032 pkg_failed=untried
13033 fi
13034 if test -n "$DRI_LIBS"; then
13035 pkg_cv_DRI_LIBS="$DRI_LIBS"
13036 elif test -n "$PKG_CONFIG"; then
13037 if test -n "$PKG_CONFIG" && \
13038 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.4 xf86driproto\""; } >&5
13039 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.4 xf86driproto") 2>&5
13040 ac_status=$?
13041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13042 test $ac_status = 0; }; then
13043 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.4 xf86driproto" 2>/dev/null`
13044 test "x$?" != "x0" && pkg_failed=yes
13045 else
13046 pkg_failed=yes
13047 fi
13048 else
13049 pkg_failed=untried
13050 fi
13051
13052
13053
13054 if test $pkg_failed = yes; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13057
13058 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13059 _pkg_short_errors_supported=yes
13060 else
13061 _pkg_short_errors_supported=no
13062 fi
13063 if test $_pkg_short_errors_supported = yes; then
13064 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.4 xf86driproto" 2>&1`
13065 else
13066 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.4 xf86driproto" 2>&1`
13067 fi
13068 # Put the nasty error message in config.log where it belongs
13069 echo "$DRI_PKG_ERRORS" >&5
13070
13071 DRI="no"
13072 elif test $pkg_failed = untried; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075 DRI="no"
13076 else
13077 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
13078 DRI_LIBS=$pkg_cv_DRI_LIBS
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080 $as_echo "yes" >&6; }
13081 DRI="yes";
13082 $as_echo "#define HAVE_DRI 1" >>confdefs.h
13083
13084 fi
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build KMS support" >&5
13086 $as_echo_n "checking whether to build KMS support... " >&6; }
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
13088 $as_echo "$DRI" >&6; }
13089
13090 if test x$DRI = xyes; then
13091 DRI_TRUE=
13092 DRI_FALSE='#'
13093 else
13094 DRI_TRUE='#'
13095 DRI_FALSE=
13096 fi
13097
13098 if test "$DRI" = yes; then
13099
13100 $as_echo "#define XF86DRI 1" >>confdefs.h
13101
13102
13103 ac_fn_c_check_header_preproc "$LINENO" "damage.h" "ac_cv_header_damage_h"
13104 if test "x$ac_cv_header_damage_h" = xyes; then :
13105 have_damage_h="yes"
13106 else
13107 have_damage_h="no"
13108 fi
13109
13110
13111 if test "$have_damage_h" = yes; then
13112
13113 $as_echo "#define DAMAGE 1" >>confdefs.h
13114
13115 fi
13116
13117
13118 pkg_failed=no
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
13120 $as_echo_n "checking for LIBUDEV... " >&6; }
13121
13122 if test -n "$LIBUDEV_CFLAGS"; then
13123 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
13124 elif test -n "$PKG_CONFIG"; then
13125 if test -n "$PKG_CONFIG" && \
13126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
13127 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
13128 ac_status=$?
13129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13130 test $ac_status = 0; }; then
13131 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
13132 test "x$?" != "x0" && pkg_failed=yes
13133 else
13134 pkg_failed=yes
13135 fi
13136 else
13137 pkg_failed=untried
13138 fi
13139 if test -n "$LIBUDEV_LIBS"; then
13140 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
13141 elif test -n "$PKG_CONFIG"; then
13142 if test -n "$PKG_CONFIG" && \
13143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
13144 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
13145 ac_status=$?
13146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13147 test $ac_status = 0; }; then
13148 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
13149 test "x$?" != "x0" && pkg_failed=yes
13150 else
13151 pkg_failed=yes
13152 fi
13153 else
13154 pkg_failed=untried
13155 fi
13156
13157
13158
13159 if test $pkg_failed = yes; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13162
13163 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13164 _pkg_short_errors_supported=yes
13165 else
13166 _pkg_short_errors_supported=no
13167 fi
13168 if test $_pkg_short_errors_supported = yes; then
13169 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
13170 else
13171 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
13172 fi
13173 # Put the nasty error message in config.log where it belongs
13174 echo "$LIBUDEV_PKG_ERRORS" >&5
13175
13176 LIBUDEV=no
13177 elif test $pkg_failed = untried; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13180 LIBUDEV=no
13181 else
13182 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
13183 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13186 LIBUDEV=yes
13187 fi
13188 if test "x$LIBUDEV" = xyes; then
13189
13190 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
13191
13192 fi
13193
13194 case "$host_cpu" in
13195 i*86)
13196 XVMC=yes ;;
13197 amd64*|x86_64*)
13198 XVMC=yes ;;
13199 *)
13200 XVMC=no ;;
13201 esac
13202 else
13203 XVMC="no"
13204 fi
13205
13206 if test "x$XVMC" = xyes; then
13207 for ac_header in pthread.h sys/ioctl.h sys/time.h time.h
13208 do :
13209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13210 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13212 cat >>confdefs.h <<_ACEOF
13213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13214 _ACEOF
13215
13216 else
13217 XVMC="no"; break
13218 fi
13219
13220 done
13221
13222
13223 pkg_failed=no
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
13225 $as_echo_n "checking for XVMC... " >&6; }
13226
13227 if test -n "$XVMC_CFLAGS"; then
13228 pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
13229 elif test -n "$PKG_CONFIG"; then
13230 if test -n "$PKG_CONFIG" && \
13231 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\""; } >&5
13232 ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5
13233 ac_status=$?
13234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13235 test $ac_status = 0; }; then
13236 pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xvmc" 2>/dev/null`
13237 test "x$?" != "x0" && pkg_failed=yes
13238 else
13239 pkg_failed=yes
13240 fi
13241 else
13242 pkg_failed=untried
13243 fi
13244 if test -n "$XVMC_LIBS"; then
13245 pkg_cv_XVMC_LIBS="$XVMC_LIBS"
13246 elif test -n "$PKG_CONFIG"; then
13247 if test -n "$PKG_CONFIG" && \
13248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\""; } >&5
13249 ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5
13250 ac_status=$?
13251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13252 test $ac_status = 0; }; then
13253 pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 xext xvmc" 2>/dev/null`
13254 test "x$?" != "x0" && pkg_failed=yes
13255 else
13256 pkg_failed=yes
13257 fi
13258 else
13259 pkg_failed=untried
13260 fi
13261
13262
13263
13264 if test $pkg_failed = yes; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267
13268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13269 _pkg_short_errors_supported=yes
13270 else
13271 _pkg_short_errors_supported=no
13272 fi
13273 if test $_pkg_short_errors_supported = yes; then
13274 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xvmc" 2>&1`
13275 else
13276 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xvmc" 2>&1`
13277 fi
13278 # Put the nasty error message in config.log where it belongs
13279 echo "$XVMC_PKG_ERRORS" >&5
13280
13281 as_fn_error $? "Package requirements (x11 xext xvmc) were not met:
13282
13283 $XVMC_PKG_ERRORS
13284
13285 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13286 installed software in a non-standard prefix.
13287
13288 Alternatively, you may set the environment variables XVMC_CFLAGS
13289 and XVMC_LIBS to avoid the need to call pkg-config.
13290 See the pkg-config man page for more details." "$LINENO" 5
13291 elif test $pkg_failed = untried; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293 $as_echo "no" >&6; }
13294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13296 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13297 is in your PATH or set the PKG_CONFIG environment variable to the full
13298 path to pkg-config.
13299
13300 Alternatively, you may set the environment variables XVMC_CFLAGS
13301 and XVMC_LIBS to avoid the need to call pkg-config.
13302 See the pkg-config man page for more details.
13303
13304 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13305 See \`config.log' for more details" "$LINENO" 5; }
13306 else
13307 XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
13308 XVMC_LIBS=$pkg_cv_XVMC_LIBS
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310 $as_echo "yes" >&6; }
13311
13312 fi
13313 fi
13314
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XvMC driver support" >&5
13316 $as_echo_n "checking whether to build XvMC driver support... " >&6; }
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
13318 $as_echo "$XVMC" >&6; }
13319
13320 if test x$XVMC = xyes; then
13321 XVMC_TRUE=
13322 XVMC_FALSE='#'
13323 else
13324 XVMC_TRUE='#'
13325 XVMC_FALSE=
13326 fi
13327
13328
13329 if test x$DEBUG = xyes; then
13330 DEBUG_TRUE=
13331 DEBUG_FALSE='#'
13332 else
13333 DEBUG_TRUE='#'
13334 DEBUG_FALSE=
13335 fi
13336
13337 if test "$DEBUG" = yes; then
13338
13339 $as_echo "#define HAVE_DEBUG 1" >>confdefs.h
13340
13341 fi
13342
13343 if test x$XV_DEBUG = xyes; then
13344 XV_DEBUG_TRUE=
13345 XV_DEBUG_FALSE='#'
13346 else
13347 XV_DEBUG_TRUE='#'
13348 XV_DEBUG_FALSE=
13349 fi
13350
13351 if test "$XV_DEBUG" = yes; then
13352
13353 $as_echo "#define XV_DEBUG 1" >>confdefs.h
13354
13355 fi
13356
13357 if test x$TOOLS = xyes; then
13358 TOOLS_TRUE=
13359 TOOLS_FALSE='#'
13360 else
13361 TOOLS_TRUE='#'
13362 TOOLS_FALSE=
13363 fi
13364
13365 if test "$TOOLS" = yes; then
13366
13367 $as_echo "#define TOOLS 1" >>confdefs.h
13368
13369 fi
13370
13371
13372
13373
13374
13375 DRIVER_NAME=openchrome
13376
13377
13378
13379 $as_echo "#define X_USE_LINEARFB 1" >>confdefs.h
13380
13381
13382 $as_echo "#define X_USE_REGION_NULL 1" >>confdefs.h
13383
13384
13385 $as_echo "#define X_HAVE_XAAGETROP 1" >>confdefs.h
13386
13387
13388 $as_echo "#define X_NEED_I2CSTART 1" >>confdefs.h
13389
13390
13391 DRIVER_MAN_SUFFIX="4"
13392
13393
13394
13395
13396
13397
13398 if test x$APP_MAN_SUFFIX = x ; then
13399 APP_MAN_SUFFIX=1
13400 fi
13401 if test x$APP_MAN_DIR = x ; then
13402 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
13403 fi
13404
13405 if test x$LIB_MAN_SUFFIX = x ; then
13406 LIB_MAN_SUFFIX=3
13407 fi
13408 if test x$LIB_MAN_DIR = x ; then
13409 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
13410 fi
13411
13412 if test x$FILE_MAN_SUFFIX = x ; then
13413 case $host_os in
13414 solaris*) FILE_MAN_SUFFIX=4 ;;
13415 *) FILE_MAN_SUFFIX=5 ;;
13416 esac
13417 fi
13418 if test x$FILE_MAN_DIR = x ; then
13419 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
13420 fi
13421
13422 if test x$MISC_MAN_SUFFIX = x ; then
13423 case $host_os in
13424 solaris*) MISC_MAN_SUFFIX=5 ;;
13425 *) MISC_MAN_SUFFIX=7 ;;
13426 esac
13427 fi
13428 if test x$MISC_MAN_DIR = x ; then
13429 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
13430 fi
13431
13432 if test x$DRIVER_MAN_SUFFIX = x ; then
13433 case $host_os in
13434 solaris*) DRIVER_MAN_SUFFIX=7 ;;
13435 *) DRIVER_MAN_SUFFIX=4 ;;
13436 esac
13437 fi
13438 if test x$DRIVER_MAN_DIR = x ; then
13439 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
13440 fi
13441
13442 if test x$ADMIN_MAN_SUFFIX = x ; then
13443 case $host_os in
13444 solaris*) ADMIN_MAN_SUFFIX=1m ;;
13445 *) ADMIN_MAN_SUFFIX=8 ;;
13446 esac
13447 fi
13448 if test x$ADMIN_MAN_DIR = x ; then
13449 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
13450 fi
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466 XORG_MAN_PAGE="X Version 11"
13467
13468 MAN_SUBSTS="\
13469 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
13470 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
13471 -e 's|__xservername__|Xorg|g' \
13472 -e 's|__xconfigfile__|xorg.conf|g' \
13473 -e 's|__projectroot__|\$(prefix)|g' \
13474 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
13475 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
13476 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
13477 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
13478 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
13479 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
13480 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
13481
13482
13483
13484
13485
13486 # Check whether --with-release-version was given.
13487 if test "${with_release_version+set}" = set; then :
13488 withval=$with_release_version; RELEASE_VERSION="$withval"
13489 else
13490 RELEASE_VERSION=""
13491 fi
13492
13493 if test "x$RELEASE_VERSION" != "x"; then
13494 PACKAGE="$PACKAGE-$RELEASE_VERSION"
13495 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
13497 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
13498 fi
13499
13500
13501 ac_config_files="$ac_config_files Makefile src/xvmc/Makefile src/Makefile man/Makefile tools/Makefile"
13502
13503 cat >confcache <<\_ACEOF
13504 # This file is a shell script that caches the results of configure
13505 # tests run on this system so they can be shared between configure
13506 # scripts and configure runs, see configure's option --config-cache.
13507 # It is not useful on other systems. If it contains results you don't
13508 # want to keep, you may remove or edit it.
13509 #
13510 # config.status only pays attention to the cache file if you give it
13511 # the --recheck option to rerun configure.
13512 #
13513 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13514 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13515 # following values.
13516
13517 _ACEOF
13518
13519 # The following way of writing the cache mishandles newlines in values,
13520 # but we know of no workaround that is simple, portable, and efficient.
13521 # So, we kill variables containing newlines.
13522 # Ultrix sh set writes to stderr and can't be redirected directly,
13523 # and sets the high bit in the cache file unless we assign to the vars.
13524 (
13525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13526 eval ac_val=\$$ac_var
13527 case $ac_val in #(
13528 *${as_nl}*)
13529 case $ac_var in #(
13530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13531 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13532 esac
13533 case $ac_var in #(
13534 _ | IFS | as_nl) ;; #(
13535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13536 *) { eval $ac_var=; unset $ac_var;} ;;
13537 esac ;;
13538 esac
13539 done
13540
13541 (set) 2>&1 |
13542 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13543 *${as_nl}ac_space=\ *)
13544 # `set' does not quote correctly, so add quotes: double-quote
13545 # substitution turns \\\\ into \\, and sed turns \\ into \.
13546 sed -n \
13547 "s/'/'\\\\''/g;
13548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13549 ;; #(
13550 *)
13551 # `set' quotes correctly as required by POSIX, so do not add quotes.
13552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13553 ;;
13554 esac |
13555 sort
13556 ) |
13557 sed '
13558 /^ac_cv_env_/b end
13559 t clear
13560 :clear
13561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13562 t end
13563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13564 :end' >>confcache
13565 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13566 if test -w "$cache_file"; then
13567 if test "x$cache_file" != "x/dev/null"; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13569 $as_echo "$as_me: updating cache $cache_file" >&6;}
13570 if test ! -f "$cache_file" || test -h "$cache_file"; then
13571 cat confcache >"$cache_file"
13572 else
13573 case $cache_file in #(
13574 */* | ?:*)
13575 mv -f confcache "$cache_file"$$ &&
13576 mv -f "$cache_file"$$ "$cache_file" ;; #(
13577 *)
13578 mv -f confcache "$cache_file" ;;
13579 esac
13580 fi
13581 fi
13582 else
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13584 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13585 fi
13586 fi
13587 rm -f confcache
13588
13589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13590 # Let make expand exec_prefix.
13591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13592
13593 DEFS=-DHAVE_CONFIG_H
13594
13595 ac_libobjs=
13596 ac_ltlibobjs=
13597 U=
13598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13599 # 1. Remove the extension, and $U if already installed.
13600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13601 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13603 # will be set to the directory where LIBOBJS objects are built.
13604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13606 done
13607 LIBOBJS=$ac_libobjs
13608
13609 LTLIBOBJS=$ac_ltlibobjs
13610
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13613 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13614 if test -n "$am_sleep_pid"; then
13615 # Hide warnings about reused PIDs.
13616 wait $am_sleep_pid 2>/dev/null
13617 fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13619 $as_echo "done" >&6; }
13620 if test -n "$EXEEXT"; then
13621 am__EXEEXT_TRUE=
13622 am__EXEEXT_FALSE='#'
13623 else
13624 am__EXEEXT_TRUE='#'
13625 am__EXEEXT_FALSE=
13626 fi
13627
13628 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13629 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13631 fi
13632 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13633 as_fn_error $? "conditional \"AMDEP\" was never defined.
13634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13635 fi
13636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13637 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13639 fi
13640 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
13641 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
13642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13643 fi
13644 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
13645 as_fn_error $? "conditional \"DRI\" was never defined.
13646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13647 fi
13648 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
13649 as_fn_error $? "conditional \"XVMC\" was never defined.
13650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13651 fi
13652 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
13653 as_fn_error $? "conditional \"DEBUG\" was never defined.
13654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13655 fi
13656 if test -z "${XV_DEBUG_TRUE}" && test -z "${XV_DEBUG_FALSE}"; then
13657 as_fn_error $? "conditional \"XV_DEBUG\" was never defined.
13658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13659 fi
13660 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13661 as_fn_error $? "conditional \"TOOLS\" was never defined.
13662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13663 fi
13664
13665 : "${CONFIG_STATUS=./config.status}"
13666 ac_write_fail=0
13667 ac_clean_files_save=$ac_clean_files
13668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13671 as_write_fail=0
13672 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13673 #! $SHELL
13674 # Generated by $as_me.
13675 # Run this file to recreate the current configuration.
13676 # Compiler output produced by configure, useful for debugging
13677 # configure, is in config.log if it exists.
13678
13679 debug=false
13680 ac_cs_recheck=false
13681 ac_cs_silent=false
13682
13683 SHELL=\${CONFIG_SHELL-$SHELL}
13684 export SHELL
13685 _ASEOF
13686 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13687 ## -------------------- ##
13688 ## M4sh Initialization. ##
13689 ## -------------------- ##
13690
13691 # Be more Bourne compatible
13692 DUALCASE=1; export DUALCASE # for MKS sh
13693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13694 emulate sh
13695 NULLCMD=:
13696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13697 # is contrary to our usage. Disable this feature.
13698 alias -g '${1+"$@"}'='"$@"'
13699 setopt NO_GLOB_SUBST
13700 else
13701 case `(set -o) 2>/dev/null` in #(
13702 *posix*) :
13703 set -o posix ;; #(
13704 *) :
13705 ;;
13706 esac
13707 fi
13708
13709
13710 as_nl='
13711 '
13712 export as_nl
13713 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13714 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13717 # Prefer a ksh shell builtin over an external printf program on Solaris,
13718 # but without wasting forks for bash or zsh.
13719 if test -z "$BASH_VERSION$ZSH_VERSION" \
13720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13721 as_echo='print -r --'
13722 as_echo_n='print -rn --'
13723 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13724 as_echo='printf %s\n'
13725 as_echo_n='printf %s'
13726 else
13727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13729 as_echo_n='/usr/ucb/echo -n'
13730 else
13731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13732 as_echo_n_body='eval
13733 arg=$1;
13734 case $arg in #(
13735 *"$as_nl"*)
13736 expr "X$arg" : "X\\(.*\\)$as_nl";
13737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13738 esac;
13739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13740 '
13741 export as_echo_n_body
13742 as_echo_n='sh -c $as_echo_n_body as_echo'
13743 fi
13744 export as_echo_body
13745 as_echo='sh -c $as_echo_body as_echo'
13746 fi
13747
13748 # The user is always right.
13749 if test "${PATH_SEPARATOR+set}" != set; then
13750 PATH_SEPARATOR=:
13751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13753 PATH_SEPARATOR=';'
13754 }
13755 fi
13756
13757
13758 # IFS
13759 # We need space, tab and new line, in precisely that order. Quoting is
13760 # there to prevent editors from complaining about space-tab.
13761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13762 # splitting by setting IFS to empty value.)
13763 IFS=" "" $as_nl"
13764
13765 # Find who we are. Look in the path if we contain no directory separator.
13766 as_myself=
13767 case $0 in #((
13768 *[\\/]* ) as_myself=$0 ;;
13769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13771 do
13772 IFS=$as_save_IFS
13773 test -z "$as_dir" && as_dir=.
13774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13775 done
13776 IFS=$as_save_IFS
13777
13778 ;;
13779 esac
13780 # We did not find ourselves, most probably we were run as `sh COMMAND'
13781 # in which case we are not to be found in the path.
13782 if test "x$as_myself" = x; then
13783 as_myself=$0
13784 fi
13785 if test ! -f "$as_myself"; then
13786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13787 exit 1
13788 fi
13789
13790 # Unset variables that we do not need and which cause bugs (e.g. in
13791 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13792 # suppresses any "Segmentation fault" message there. '((' could
13793 # trigger a bug in pdksh 5.2.14.
13794 for as_var in BASH_ENV ENV MAIL MAILPATH
13795 do eval test x\${$as_var+set} = xset \
13796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13797 done
13798 PS1='$ '
13799 PS2='> '
13800 PS4='+ '
13801
13802 # NLS nuisances.
13803 LC_ALL=C
13804 export LC_ALL
13805 LANGUAGE=C
13806 export LANGUAGE
13807
13808 # CDPATH.
13809 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13810
13811
13812 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13813 # ----------------------------------------
13814 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13815 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13816 # script with STATUS, using 1 if that was 0.
13817 as_fn_error ()
13818 {
13819 as_status=$1; test $as_status -eq 0 && as_status=1
13820 if test "$4"; then
13821 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13822 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13823 fi
13824 $as_echo "$as_me: error: $2" >&2
13825 as_fn_exit $as_status
13826 } # as_fn_error
13827
13828
13829 # as_fn_set_status STATUS
13830 # -----------------------
13831 # Set $? to STATUS, without forking.
13832 as_fn_set_status ()
13833 {
13834 return $1
13835 } # as_fn_set_status
13836
13837 # as_fn_exit STATUS
13838 # -----------------
13839 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13840 as_fn_exit ()
13841 {
13842 set +e
13843 as_fn_set_status $1
13844 exit $1
13845 } # as_fn_exit
13846
13847 # as_fn_unset VAR
13848 # ---------------
13849 # Portably unset VAR.
13850 as_fn_unset ()
13851 {
13852 { eval $1=; unset $1;}
13853 }
13854 as_unset=as_fn_unset
13855 # as_fn_append VAR VALUE
13856 # ----------------------
13857 # Append the text in VALUE to the end of the definition contained in VAR. Take
13858 # advantage of any shell optimizations that allow amortized linear growth over
13859 # repeated appends, instead of the typical quadratic growth present in naive
13860 # implementations.
13861 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13862 eval 'as_fn_append ()
13863 {
13864 eval $1+=\$2
13865 }'
13866 else
13867 as_fn_append ()
13868 {
13869 eval $1=\$$1\$2
13870 }
13871 fi # as_fn_append
13872
13873 # as_fn_arith ARG...
13874 # ------------------
13875 # Perform arithmetic evaluation on the ARGs, and store the result in the
13876 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13877 # must be portable across $(()) and expr.
13878 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13879 eval 'as_fn_arith ()
13880 {
13881 as_val=$(( $* ))
13882 }'
13883 else
13884 as_fn_arith ()
13885 {
13886 as_val=`expr "$@" || test $? -eq 1`
13887 }
13888 fi # as_fn_arith
13889
13890
13891 if expr a : '\(a\)' >/dev/null 2>&1 &&
13892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13893 as_expr=expr
13894 else
13895 as_expr=false
13896 fi
13897
13898 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13899 as_basename=basename
13900 else
13901 as_basename=false
13902 fi
13903
13904 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13905 as_dirname=dirname
13906 else
13907 as_dirname=false
13908 fi
13909
13910 as_me=`$as_basename -- "$0" ||
13911 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13912 X"$0" : 'X\(//\)$' \| \
13913 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13914 $as_echo X/"$0" |
13915 sed '/^.*\/\([^/][^/]*\)\/*$/{
13916 s//\1/
13917 q
13918 }
13919 /^X\/\(\/\/\)$/{
13920 s//\1/
13921 q
13922 }
13923 /^X\/\(\/\).*/{
13924 s//\1/
13925 q
13926 }
13927 s/.*/./; q'`
13928
13929 # Avoid depending upon Character Ranges.
13930 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13931 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13932 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13933 as_cr_digits='0123456789'
13934 as_cr_alnum=$as_cr_Letters$as_cr_digits
13935
13936 ECHO_C= ECHO_N= ECHO_T=
13937 case `echo -n x` in #(((((
13938 -n*)
13939 case `echo 'xy\c'` in
13940 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13941 xy) ECHO_C='\c';;
13942 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13943 ECHO_T=' ';;
13944 esac;;
13945 *)
13946 ECHO_N='-n';;
13947 esac
13948
13949 rm -f conf$$ conf$$.exe conf$$.file
13950 if test -d conf$$.dir; then
13951 rm -f conf$$.dir/conf$$.file
13952 else
13953 rm -f conf$$.dir
13954 mkdir conf$$.dir 2>/dev/null
13955 fi
13956 if (echo >conf$$.file) 2>/dev/null; then
13957 if ln -s conf$$.file conf$$ 2>/dev/null; then
13958 as_ln_s='ln -s'
13959 # ... but there are two gotchas:
13960 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13961 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13962 # In both cases, we have to default to `cp -pR'.
13963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13964 as_ln_s='cp -pR'
13965 elif ln conf$$.file conf$$ 2>/dev/null; then
13966 as_ln_s=ln
13967 else
13968 as_ln_s='cp -pR'
13969 fi
13970 else
13971 as_ln_s='cp -pR'
13972 fi
13973 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13974 rmdir conf$$.dir 2>/dev/null
13975
13976
13977 # as_fn_mkdir_p
13978 # -------------
13979 # Create "$as_dir" as a directory, including parents if necessary.
13980 as_fn_mkdir_p ()
13981 {
13982
13983 case $as_dir in #(
13984 -*) as_dir=./$as_dir;;
13985 esac
13986 test -d "$as_dir" || eval $as_mkdir_p || {
13987 as_dirs=
13988 while :; do
13989 case $as_dir in #(
13990 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13991 *) as_qdir=$as_dir;;
13992 esac
13993 as_dirs="'$as_qdir' $as_dirs"
13994 as_dir=`$as_dirname -- "$as_dir" ||
13995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13996 X"$as_dir" : 'X\(//\)[^/]' \| \
13997 X"$as_dir" : 'X\(//\)$' \| \
13998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13999 $as_echo X"$as_dir" |
14000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14001 s//\1/
14002 q
14003 }
14004 /^X\(\/\/\)[^/].*/{
14005 s//\1/
14006 q
14007 }
14008 /^X\(\/\/\)$/{
14009 s//\1/
14010 q
14011 }
14012 /^X\(\/\).*/{
14013 s//\1/
14014 q
14015 }
14016 s/.*/./; q'`
14017 test -d "$as_dir" && break
14018 done
14019 test -z "$as_dirs" || eval "mkdir $as_dirs"
14020 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14021
14022
14023 } # as_fn_mkdir_p
14024 if mkdir -p . 2>/dev/null; then
14025 as_mkdir_p='mkdir -p "$as_dir"'
14026 else
14027 test -d ./-p && rmdir ./-p
14028 as_mkdir_p=false
14029 fi
14030
14031
14032 # as_fn_executable_p FILE
14033 # -----------------------
14034 # Test if FILE is an executable regular file.
14035 as_fn_executable_p ()
14036 {
14037 test -f "$1" && test -x "$1"
14038 } # as_fn_executable_p
14039 as_test_x='test -x'
14040 as_executable_p=as_fn_executable_p
14041
14042 # Sed expression to map a string onto a valid CPP name.
14043 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14044
14045 # Sed expression to map a string onto a valid variable name.
14046 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14047
14048
14049 exec 6>&1
14050 ## ----------------------------------- ##
14051 ## Main body of $CONFIG_STATUS script. ##
14052 ## ----------------------------------- ##
14053 _ASEOF
14054 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14055
14056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14057 # Save the log message, to keep $0 and so on meaningful, and to
14058 # report actual input values of CONFIG_FILES etc. instead of their
14059 # values after options handling.
14060 ac_log="
14061 This file was extended by xf86-video-openchrome $as_me 0.4.0, which was
14062 generated by GNU Autoconf 2.69. Invocation command line was
14063
14064 CONFIG_FILES = $CONFIG_FILES
14065 CONFIG_HEADERS = $CONFIG_HEADERS
14066 CONFIG_LINKS = $CONFIG_LINKS
14067 CONFIG_COMMANDS = $CONFIG_COMMANDS
14068 $ $0 $@
14069
14070 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14071 "
14072
14073 _ACEOF
14074
14075 case $ac_config_files in *"
14076 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14077 esac
14078
14079 case $ac_config_headers in *"
14080 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14081 esac
14082
14083
14084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14085 # Files that config.status was made for.
14086 config_files="$ac_config_files"
14087 config_headers="$ac_config_headers"
14088 config_commands="$ac_config_commands"
14089
14090 _ACEOF
14091
14092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14093 ac_cs_usage="\
14094 \`$as_me' instantiates files and other configuration actions
14095 from templates according to the current configuration. Unless the files
14096 and actions are specified as TAGs, all are instantiated by default.
14097
14098 Usage: $0 [OPTION]... [TAG]...
14099
14100 -h, --help print this help, then exit
14101 -V, --version print version number and configuration settings, then exit
14102 --config print configuration, then exit
14103 -q, --quiet, --silent
14104 do not print progress messages
14105 -d, --debug don't remove temporary files
14106 --recheck update $as_me by reconfiguring in the same conditions
14107 --file=FILE[:TEMPLATE]
14108 instantiate the configuration file FILE
14109 --header=FILE[:TEMPLATE]
14110 instantiate the configuration header FILE
14111
14112 Configuration files:
14113 $config_files
14114
14115 Configuration headers:
14116 $config_headers
14117
14118 Configuration commands:
14119 $config_commands
14120
14121 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>."
14122
14123 _ACEOF
14124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14125 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14126 ac_cs_version="\\
14127 xf86-video-openchrome config.status 0.4.0
14128 configured by $0, generated by GNU Autoconf 2.69,
14129 with options \\"\$ac_cs_config\\"
14130
14131 Copyright (C) 2012 Free Software Foundation, Inc.
14132 This config.status script is free software; the Free Software Foundation
14133 gives unlimited permission to copy, distribute and modify it."
14134
14135 ac_pwd='$ac_pwd'
14136 srcdir='$srcdir'
14137 INSTALL='$INSTALL'
14138 MKDIR_P='$MKDIR_P'
14139 AWK='$AWK'
14140 test -n "\$AWK" || AWK=awk
14141 _ACEOF
14142
14143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14144 # The default lists apply if the user does not specify any file.
14145 ac_need_defaults=:
14146 while test $# != 0
14147 do
14148 case $1 in
14149 --*=?*)
14150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14152 ac_shift=:
14153 ;;
14154 --*=)
14155 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14156 ac_optarg=
14157 ac_shift=:
14158 ;;
14159 *)
14160 ac_option=$1
14161 ac_optarg=$2
14162 ac_shift=shift
14163 ;;
14164 esac
14165
14166 case $ac_option in
14167 # Handling of the options.
14168 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14169 ac_cs_recheck=: ;;
14170 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14171 $as_echo "$ac_cs_version"; exit ;;
14172 --config | --confi | --conf | --con | --co | --c )
14173 $as_echo "$ac_cs_config"; exit ;;
14174 --debug | --debu | --deb | --de | --d | -d )
14175 debug=: ;;
14176 --file | --fil | --fi | --f )
14177 $ac_shift
14178 case $ac_optarg in
14179 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14180 '') as_fn_error $? "missing file argument" ;;
14181 esac
14182 as_fn_append CONFIG_FILES " '$ac_optarg'"
14183 ac_need_defaults=false;;
14184 --header | --heade | --head | --hea )
14185 $ac_shift
14186 case $ac_optarg in
14187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14188 esac
14189 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14190 ac_need_defaults=false;;
14191 --he | --h)
14192 # Conflict between --help and --header
14193 as_fn_error $? "ambiguous option: \`$1'
14194 Try \`$0 --help' for more information.";;
14195 --help | --hel | -h )
14196 $as_echo "$ac_cs_usage"; exit ;;
14197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14198 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14199 ac_cs_silent=: ;;
14200
14201 # This is an error.
14202 -*) as_fn_error $? "unrecognized option: \`$1'
14203 Try \`$0 --help' for more information." ;;
14204
14205 *) as_fn_append ac_config_targets " $1"
14206 ac_need_defaults=false ;;
14207
14208 esac
14209 shift
14210 done
14211
14212 ac_configure_extra_args=
14213
14214 if $ac_cs_silent; then
14215 exec 6>/dev/null
14216 ac_configure_extra_args="$ac_configure_extra_args --silent"
14217 fi
14218
14219 _ACEOF
14220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14221 if \$ac_cs_recheck; then
14222 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14223 shift
14224 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14225 CONFIG_SHELL='$SHELL'
14226 export CONFIG_SHELL
14227 exec "\$@"
14228 fi
14229
14230 _ACEOF
14231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14232 exec 5>>config.log
14233 {
14234 echo
14235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14236 ## Running $as_me. ##
14237 _ASBOX
14238 $as_echo "$ac_log"
14239 } >&5
14240
14241 _ACEOF
14242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14243 #
14244 # INIT-COMMANDS
14245 #
14246 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14247
14248
14249 # The HP-UX ksh and POSIX shell print the target directory to stdout
14250 # if CDPATH is set.
14251 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14252
14253 sed_quote_subst='$sed_quote_subst'
14254 double_quote_subst='$double_quote_subst'
14255 delay_variable_subst='$delay_variable_subst'
14256 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14257 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14258 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14259 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14260 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14261 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14262 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14263 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14264 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14265 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14266 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14267 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14268 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14269 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14270 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14271 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14272 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14273 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14274 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14275 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14276 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14277 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14278 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14279 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14280 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14281 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14282 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14283 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14284 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14285 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14286 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14287 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14288 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14289 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14290 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14291 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14292 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14293 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14294 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14295 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14296 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14297 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14298 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14299 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14300 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14301 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14302 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14303 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14304 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14305 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14306 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14307 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14308 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14309 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14310 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14311 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14312 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14313 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14314 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"`'
14315 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14316 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14317 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14318 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14319 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14320 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14321 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14322 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14323 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14324 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14325 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14326 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14327 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14328 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14329 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14330 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14331 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14332 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14333 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14334 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14335 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14336 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14337 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14338 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14339 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14340 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14341 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14342 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14343 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14344 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14345 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14346 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14347 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14348 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14349 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14350 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14351 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14352 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14353 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14354 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14355 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14356 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14357 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14358 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14359 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14360 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14361 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14362 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14363 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14364 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14365 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14366 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14367 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14368 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14369 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14370 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14371 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14372 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14373 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14374 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14375 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14376 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14377 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14378 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14379 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14380 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14381 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14382 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14383 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14384 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14385 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14386 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14387 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14388 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14389 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14390 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14391
14392 LTCC='$LTCC'
14393 LTCFLAGS='$LTCFLAGS'
14394 compiler='$compiler_DEFAULT'
14395
14396 # A function that is used when there is no print builtin or printf.
14397 func_fallback_echo ()
14398 {
14399 eval 'cat <<_LTECHO_EOF
14400 \$1
14401 _LTECHO_EOF'
14402 }
14403
14404 # Quote evaled strings.
14405 for var in SHELL \
14406 ECHO \
14407 PATH_SEPARATOR \
14408 SED \
14409 GREP \
14410 EGREP \
14411 FGREP \
14412 LD \
14413 NM \
14414 LN_S \
14415 lt_SP2NL \
14416 lt_NL2SP \
14417 reload_flag \
14418 OBJDUMP \
14419 deplibs_check_method \
14420 file_magic_cmd \
14421 file_magic_glob \
14422 want_nocaseglob \
14423 DLLTOOL \
14424 sharedlib_from_linklib_cmd \
14425 AR \
14426 AR_FLAGS \
14427 archiver_list_spec \
14428 STRIP \
14429 RANLIB \
14430 CC \
14431 CFLAGS \
14432 compiler \
14433 lt_cv_sys_global_symbol_pipe \
14434 lt_cv_sys_global_symbol_to_cdecl \
14435 lt_cv_sys_global_symbol_to_import \
14436 lt_cv_sys_global_symbol_to_c_name_address \
14437 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14438 lt_cv_nm_interface \
14439 nm_file_list_spec \
14440 lt_cv_truncate_bin \
14441 lt_prog_compiler_no_builtin_flag \
14442 lt_prog_compiler_pic \
14443 lt_prog_compiler_wl \
14444 lt_prog_compiler_static \
14445 lt_cv_prog_compiler_c_o \
14446 need_locks \
14447 MANIFEST_TOOL \
14448 DSYMUTIL \
14449 NMEDIT \
14450 LIPO \
14451 OTOOL \
14452 OTOOL64 \
14453 shrext_cmds \
14454 export_dynamic_flag_spec \
14455 whole_archive_flag_spec \
14456 compiler_needs_object \
14457 with_gnu_ld \
14458 allow_undefined_flag \
14459 no_undefined_flag \
14460 hardcode_libdir_flag_spec \
14461 hardcode_libdir_separator \
14462 exclude_expsyms \
14463 include_expsyms \
14464 file_list_spec \
14465 variables_saved_for_relink \
14466 libname_spec \
14467 library_names_spec \
14468 soname_spec \
14469 install_override_mode \
14470 finish_eval \
14471 old_striplib \
14472 striplib; do
14473 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14474 *[\\\\\\\`\\"\\\$]*)
14475 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14476 ;;
14477 *)
14478 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14479 ;;
14480 esac
14481 done
14482
14483 # Double-quote double-evaled strings.
14484 for var in reload_cmds \
14485 old_postinstall_cmds \
14486 old_postuninstall_cmds \
14487 old_archive_cmds \
14488 extract_expsyms_cmds \
14489 old_archive_from_new_cmds \
14490 old_archive_from_expsyms_cmds \
14491 archive_cmds \
14492 archive_expsym_cmds \
14493 module_cmds \
14494 module_expsym_cmds \
14495 export_symbols_cmds \
14496 prelink_cmds \
14497 postlink_cmds \
14498 postinstall_cmds \
14499 postuninstall_cmds \
14500 finish_cmds \
14501 sys_lib_search_path_spec \
14502 configure_time_dlsearch_path \
14503 configure_time_lt_sys_library_path; do
14504 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14505 *[\\\\\\\`\\"\\\$]*)
14506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14507 ;;
14508 *)
14509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14510 ;;
14511 esac
14512 done
14513
14514 ac_aux_dir='$ac_aux_dir'
14515
14516 # See if we are running on zsh, and set the options that allow our
14517 # commands through without removal of \ escapes INIT.
14518 if test -n "\${ZSH_VERSION+set}"; then
14519 setopt NO_GLOB_SUBST
14520 fi
14521
14522
14523 PACKAGE='$PACKAGE'
14524 VERSION='$VERSION'
14525 RM='$RM'
14526 ofile='$ofile'
14527
14528
14529
14530
14531 _ACEOF
14532
14533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14534
14535 # Handling of arguments.
14536 for ac_config_target in $ac_config_targets
14537 do
14538 case $ac_config_target in
14539 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14540 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14541 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14542 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14543 "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
14544 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14545 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14546 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14547
14548 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14549 esac
14550 done
14551
14552
14553 # If the user did not use the arguments to specify the items to instantiate,
14554 # then the envvar interface is used. Set only those that are not.
14555 # We use the long form for the default assignment because of an extremely
14556 # bizarre bug on SunOS 4.1.3.
14557 if $ac_need_defaults; then
14558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14559 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14560 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14561 fi
14562
14563 # Have a temporary directory for convenience. Make it in the build tree
14564 # simply because there is no reason against having it here, and in addition,
14565 # creating and moving files from /tmp can sometimes cause problems.
14566 # Hook for its removal unless debugging.
14567 # Note that there is a small window in which the directory will not be cleaned:
14568 # after its creation but before its name has been assigned to `$tmp'.
14569 $debug ||
14570 {
14571 tmp= ac_tmp=
14572 trap 'exit_status=$?
14573 : "${ac_tmp:=$tmp}"
14574 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14575 ' 0
14576 trap 'as_fn_exit 1' 1 2 13 15
14577 }
14578 # Create a (secure) tmp directory for tmp files.
14579
14580 {
14581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14582 test -d "$tmp"
14583 } ||
14584 {
14585 tmp=./conf$$-$RANDOM
14586 (umask 077 && mkdir "$tmp")
14587 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14588 ac_tmp=$tmp
14589
14590 # Set up the scripts for CONFIG_FILES section.
14591 # No need to generate them if there are no CONFIG_FILES.
14592 # This happens for instance with `./config.status config.h'.
14593 if test -n "$CONFIG_FILES"; then
14594
14595
14596 ac_cr=`echo X | tr X '\015'`
14597 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14598 # But we know of no other shell where ac_cr would be empty at this
14599 # point, so we can use a bashism as a fallback.
14600 if test "x$ac_cr" = x; then
14601 eval ac_cr=\$\'\\r\'
14602 fi
14603 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14604 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14605 ac_cs_awk_cr='\\r'
14606 else
14607 ac_cs_awk_cr=$ac_cr
14608 fi
14609
14610 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14611 _ACEOF
14612
14613
14614 {
14615 echo "cat >conf$$subs.awk <<_ACEOF" &&
14616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14617 echo "_ACEOF"
14618 } >conf$$subs.sh ||
14619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14621 ac_delim='%!_!# '
14622 for ac_last_try in false false false false false :; do
14623 . ./conf$$subs.sh ||
14624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14625
14626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14627 if test $ac_delim_n = $ac_delim_num; then
14628 break
14629 elif $ac_last_try; then
14630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14631 else
14632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14633 fi
14634 done
14635 rm -f conf$$subs.sh
14636
14637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14638 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14639 _ACEOF
14640 sed -n '
14641 h
14642 s/^/S["/; s/!.*/"]=/
14643 p
14644 g
14645 s/^[^!]*!//
14646 :repl
14647 t repl
14648 s/'"$ac_delim"'$//
14649 t delim
14650 :nl
14651 h
14652 s/\(.\{148\}\)..*/\1/
14653 t more1
14654 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14655 p
14656 n
14657 b repl
14658 :more1
14659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14660 p
14661 g
14662 s/.\{148\}//
14663 t nl
14664 :delim
14665 h
14666 s/\(.\{148\}\)..*/\1/
14667 t more2
14668 s/["\\]/\\&/g; s/^/"/; s/$/"/
14669 p
14670 b
14671 :more2
14672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14673 p
14674 g
14675 s/.\{148\}//
14676 t delim
14677 ' <conf$$subs.awk | sed '
14678 /^[^""]/{
14679 N
14680 s/\n//
14681 }
14682 ' >>$CONFIG_STATUS || ac_write_fail=1
14683 rm -f conf$$subs.awk
14684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14685 _ACAWK
14686 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14687 for (key in S) S_is_set[key] = 1
14688 FS = ""
14689
14690 }
14691 {
14692 line = $ 0
14693 nfields = split(line, field, "@")
14694 substed = 0
14695 len = length(field[1])
14696 for (i = 2; i < nfields; i++) {
14697 key = field[i]
14698 keylen = length(key)
14699 if (S_is_set[key]) {
14700 value = S[key]
14701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14702 len += length(value) + length(field[++i])
14703 substed = 1
14704 } else
14705 len += 1 + keylen
14706 }
14707
14708 print line
14709 }
14710
14711 _ACAWK
14712 _ACEOF
14713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14714 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14716 else
14717 cat
14718 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14719 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14720 _ACEOF
14721
14722 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14723 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14724 # trailing colons and then remove the whole line if VPATH becomes empty
14725 # (actually we leave an empty line to preserve line numbers).
14726 if test "x$srcdir" = x.; then
14727 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14728 h
14729 s///
14730 s/^/:/
14731 s/[ ]*$/:/
14732 s/:\$(srcdir):/:/g
14733 s/:\${srcdir}:/:/g
14734 s/:@srcdir@:/:/g
14735 s/^:*//
14736 s/:*$//
14737 x
14738 s/\(=[ ]*\).*/\1/
14739 G
14740 s/\n//
14741 s/^[^=]*=[ ]*$//
14742 }'
14743 fi
14744
14745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14746 fi # test -n "$CONFIG_FILES"
14747
14748 # Set up the scripts for CONFIG_HEADERS section.
14749 # No need to generate them if there are no CONFIG_HEADERS.
14750 # This happens for instance with `./config.status Makefile'.
14751 if test -n "$CONFIG_HEADERS"; then
14752 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14753 BEGIN {
14754 _ACEOF
14755
14756 # Transform confdefs.h into an awk script `defines.awk', embedded as
14757 # here-document in config.status, that substitutes the proper values into
14758 # config.h.in to produce config.h.
14759
14760 # Create a delimiter string that does not exist in confdefs.h, to ease
14761 # handling of long lines.
14762 ac_delim='%!_!# '
14763 for ac_last_try in false false :; do
14764 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14765 if test -z "$ac_tt"; then
14766 break
14767 elif $ac_last_try; then
14768 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14769 else
14770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14771 fi
14772 done
14773
14774 # For the awk script, D is an array of macro values keyed by name,
14775 # likewise P contains macro parameters if any. Preserve backslash
14776 # newline sequences.
14777
14778 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14779 sed -n '
14780 s/.\{148\}/&'"$ac_delim"'/g
14781 t rset
14782 :rset
14783 s/^[ ]*#[ ]*define[ ][ ]*/ /
14784 t def
14785 d
14786 :def
14787 s/\\$//
14788 t bsnl
14789 s/["\\]/\\&/g
14790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14791 D["\1"]=" \3"/p
14792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14793 d
14794 :bsnl
14795 s/["\\]/\\&/g
14796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14797 D["\1"]=" \3\\\\\\n"\\/p
14798 t cont
14799 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14800 t cont
14801 d
14802 :cont
14803 n
14804 s/.\{148\}/&'"$ac_delim"'/g
14805 t clear
14806 :clear
14807 s/\\$//
14808 t bsnlc
14809 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14810 d
14811 :bsnlc
14812 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14813 b cont
14814 ' <confdefs.h | sed '
14815 s/'"$ac_delim"'/"\\\
14816 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14817
14818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14819 for (key in D) D_is_set[key] = 1
14820 FS = ""
14821 }
14822 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14823 line = \$ 0
14824 split(line, arg, " ")
14825 if (arg[1] == "#") {
14826 defundef = arg[2]
14827 mac1 = arg[3]
14828 } else {
14829 defundef = substr(arg[1], 2)
14830 mac1 = arg[2]
14831 }
14832 split(mac1, mac2, "(") #)
14833 macro = mac2[1]
14834 prefix = substr(line, 1, index(line, defundef) - 1)
14835 if (D_is_set[macro]) {
14836 # Preserve the white space surrounding the "#".
14837 print prefix "define", macro P[macro] D[macro]
14838 next
14839 } else {
14840 # Replace #undef with comments. This is necessary, for example,
14841 # in the case of _POSIX_SOURCE, which is predefined and required
14842 # on some systems where configure will not decide to define it.
14843 if (defundef == "undef") {
14844 print "/*", prefix defundef, macro, "*/"
14845 next
14846 }
14847 }
14848 }
14849 { print }
14850 _ACAWK
14851 _ACEOF
14852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14853 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14854 fi # test -n "$CONFIG_HEADERS"
14855
14856
14857 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14858 shift
14859 for ac_tag
14860 do
14861 case $ac_tag in
14862 :[FHLC]) ac_mode=$ac_tag; continue;;
14863 esac
14864 case $ac_mode$ac_tag in
14865 :[FHL]*:*);;
14866 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14867 :[FH]-) ac_tag=-:-;;
14868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14869 esac
14870 ac_save_IFS=$IFS
14871 IFS=:
14872 set x $ac_tag
14873 IFS=$ac_save_IFS
14874 shift
14875 ac_file=$1
14876 shift
14877
14878 case $ac_mode in
14879 :L) ac_source=$1;;
14880 :[FH])
14881 ac_file_inputs=
14882 for ac_f
14883 do
14884 case $ac_f in
14885 -) ac_f="$ac_tmp/stdin";;
14886 *) # Look for the file first in the build tree, then in the source tree
14887 # (if the path is not absolute). The absolute path cannot be DOS-style,
14888 # because $ac_f cannot contain `:'.
14889 test -f "$ac_f" ||
14890 case $ac_f in
14891 [\\/$]*) false;;
14892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14893 esac ||
14894 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14895 esac
14896 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14897 as_fn_append ac_file_inputs " '$ac_f'"
14898 done
14899
14900 # Let's still pretend it is `configure' which instantiates (i.e., don't
14901 # use $as_me), people would be surprised to read:
14902 # /* config.h. Generated by config.status. */
14903 configure_input='Generated from '`
14904 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14905 `' by configure.'
14906 if test x"$ac_file" != x-; then
14907 configure_input="$ac_file. $configure_input"
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14909 $as_echo "$as_me: creating $ac_file" >&6;}
14910 fi
14911 # Neutralize special characters interpreted by sed in replacement strings.
14912 case $configure_input in #(
14913 *\&* | *\|* | *\\* )
14914 ac_sed_conf_input=`$as_echo "$configure_input" |
14915 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14916 *) ac_sed_conf_input=$configure_input;;
14917 esac
14918
14919 case $ac_tag in
14920 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14922 esac
14923 ;;
14924 esac
14925
14926 ac_dir=`$as_dirname -- "$ac_file" ||
14927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14928 X"$ac_file" : 'X\(//\)[^/]' \| \
14929 X"$ac_file" : 'X\(//\)$' \| \
14930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14931 $as_echo X"$ac_file" |
14932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14933 s//\1/
14934 q
14935 }
14936 /^X\(\/\/\)[^/].*/{
14937 s//\1/
14938 q
14939 }
14940 /^X\(\/\/\)$/{
14941 s//\1/
14942 q
14943 }
14944 /^X\(\/\).*/{
14945 s//\1/
14946 q
14947 }
14948 s/.*/./; q'`
14949 as_dir="$ac_dir"; as_fn_mkdir_p
14950 ac_builddir=.
14951
14952 case "$ac_dir" in
14953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14954 *)
14955 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14956 # A ".." for each directory in $ac_dir_suffix.
14957 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14958 case $ac_top_builddir_sub in
14959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14961 esac ;;
14962 esac
14963 ac_abs_top_builddir=$ac_pwd
14964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14965 # for backward compatibility:
14966 ac_top_builddir=$ac_top_build_prefix
14967
14968 case $srcdir in
14969 .) # We are building in place.
14970 ac_srcdir=.
14971 ac_top_srcdir=$ac_top_builddir_sub
14972 ac_abs_top_srcdir=$ac_pwd ;;
14973 [\\/]* | ?:[\\/]* ) # Absolute name.
14974 ac_srcdir=$srcdir$ac_dir_suffix;
14975 ac_top_srcdir=$srcdir
14976 ac_abs_top_srcdir=$srcdir ;;
14977 *) # Relative name.
14978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14979 ac_top_srcdir=$ac_top_build_prefix$srcdir
14980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14981 esac
14982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14983
14984
14985 case $ac_mode in
14986 :F)
14987 #
14988 # CONFIG_FILE
14989 #
14990
14991 case $INSTALL in
14992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14993 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14994 esac
14995 ac_MKDIR_P=$MKDIR_P
14996 case $MKDIR_P in
14997 [\\/$]* | ?:[\\/]* ) ;;
14998 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14999 esac
15000 _ACEOF
15001
15002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15003 # If the template does not know about datarootdir, expand it.
15004 # FIXME: This hack should be removed a few years after 2.60.
15005 ac_datarootdir_hack=; ac_datarootdir_seen=
15006 ac_sed_dataroot='
15007 /datarootdir/ {
15008 p
15009 q
15010 }
15011 /@datadir@/p
15012 /@docdir@/p
15013 /@infodir@/p
15014 /@localedir@/p
15015 /@mandir@/p'
15016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15017 *datarootdir*) ac_datarootdir_seen=yes;;
15018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15021 _ACEOF
15022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15023 ac_datarootdir_hack='
15024 s&@datadir@&$datadir&g
15025 s&@docdir@&$docdir&g
15026 s&@infodir@&$infodir&g
15027 s&@localedir@&$localedir&g
15028 s&@mandir@&$mandir&g
15029 s&\\\${datarootdir}&$datarootdir&g' ;;
15030 esac
15031 _ACEOF
15032
15033 # Neutralize VPATH when `$srcdir' = `.'.
15034 # Shell code in configure.ac might set extrasub.
15035 # FIXME: do we really want to maintain this feature?
15036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15037 ac_sed_extra="$ac_vpsub
15038 $extrasub
15039 _ACEOF
15040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15041 :t
15042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15043 s|@configure_input@|$ac_sed_conf_input|;t t
15044 s&@top_builddir@&$ac_top_builddir_sub&;t t
15045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15046 s&@srcdir@&$ac_srcdir&;t t
15047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15048 s&@top_srcdir@&$ac_top_srcdir&;t t
15049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15050 s&@builddir@&$ac_builddir&;t t
15051 s&@abs_builddir@&$ac_abs_builddir&;t t
15052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15053 s&@INSTALL@&$ac_INSTALL&;t t
15054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15055 $ac_datarootdir_hack
15056 "
15057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15058 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15059
15060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15061 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15063 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15065 which seems to be undefined. Please make sure it is defined" >&5
15066 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15067 which seems to be undefined. Please make sure it is defined" >&2;}
15068
15069 rm -f "$ac_tmp/stdin"
15070 case $ac_file in
15071 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15072 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15073 esac \
15074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15075 ;;
15076 :H)
15077 #
15078 # CONFIG_HEADER
15079 #
15080 if test x"$ac_file" != x-; then
15081 {
15082 $as_echo "/* $configure_input */" \
15083 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15084 } >"$ac_tmp/config.h" \
15085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15086 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15088 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15089 else
15090 rm -f "$ac_file"
15091 mv "$ac_tmp/config.h" "$ac_file" \
15092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15093 fi
15094 else
15095 $as_echo "/* $configure_input */" \
15096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15097 || as_fn_error $? "could not create -" "$LINENO" 5
15098 fi
15099 # Compute "$ac_file"'s index in $config_headers.
15100 _am_arg="$ac_file"
15101 _am_stamp_count=1
15102 for _am_header in $config_headers :; do
15103 case $_am_header in
15104 $_am_arg | $_am_arg:* )
15105 break ;;
15106 * )
15107 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15108 esac
15109 done
15110 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15111 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15112 X"$_am_arg" : 'X\(//\)[^/]' \| \
15113 X"$_am_arg" : 'X\(//\)$' \| \
15114 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15115 $as_echo X"$_am_arg" |
15116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15117 s//\1/
15118 q
15119 }
15120 /^X\(\/\/\)[^/].*/{
15121 s//\1/
15122 q
15123 }
15124 /^X\(\/\/\)$/{
15125 s//\1/
15126 q
15127 }
15128 /^X\(\/\).*/{
15129 s//\1/
15130 q
15131 }
15132 s/.*/./; q'`/stamp-h$_am_stamp_count
15133 ;;
15134
15135 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15136 $as_echo "$as_me: executing $ac_file commands" >&6;}
15137 ;;
15138 esac
15139
15140
15141 case $ac_file$ac_mode in
15142 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15143 # Older Autoconf quotes --file arguments for eval, but not when files
15144 # are listed without --file. Let's play safe and only enable the eval
15145 # if we detect the quoting.
15146 case $CONFIG_FILES in
15147 *\'*) eval set x "$CONFIG_FILES" ;;
15148 *) set x $CONFIG_FILES ;;
15149 esac
15150 shift
15151 for mf
15152 do
15153 # Strip MF so we end up with the name of the file.
15154 mf=`echo "$mf" | sed -e 's/:.*$//'`
15155 # Check whether this is an Automake generated Makefile or not.
15156 # We used to match only the files named 'Makefile.in', but
15157 # some people rename them; so instead we look at the file content.
15158 # Grep'ing the first line is not enough: some people post-process
15159 # each Makefile.in and add a new line on top of each file to say so.
15160 # Grep'ing the whole file is not good either: AIX grep has a line
15161 # limit of 2048, but all sed's we know have understand at least 4000.
15162 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15163 dirpart=`$as_dirname -- "$mf" ||
15164 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15165 X"$mf" : 'X\(//\)[^/]' \| \
15166 X"$mf" : 'X\(//\)$' \| \
15167 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15168 $as_echo X"$mf" |
15169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15170 s//\1/
15171 q
15172 }
15173 /^X\(\/\/\)[^/].*/{
15174 s//\1/
15175 q
15176 }
15177 /^X\(\/\/\)$/{
15178 s//\1/
15179 q
15180 }
15181 /^X\(\/\).*/{
15182 s//\1/
15183 q
15184 }
15185 s/.*/./; q'`
15186 else
15187 continue
15188 fi
15189 # Extract the definition of DEPDIR, am__include, and am__quote
15190 # from the Makefile without running 'make'.
15191 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15192 test -z "$DEPDIR" && continue
15193 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15194 test -z "$am__include" && continue
15195 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15196 # Find all dependency output files, they are included files with
15197 # $(DEPDIR) in their names. We invoke sed twice because it is the
15198 # simplest approach to changing $(DEPDIR) to its actual value in the
15199 # expansion.
15200 for file in `sed -n "
15201 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15202 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15203 # Make sure the directory exists.
15204 test -f "$dirpart/$file" && continue
15205 fdir=`$as_dirname -- "$file" ||
15206 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15207 X"$file" : 'X\(//\)[^/]' \| \
15208 X"$file" : 'X\(//\)$' \| \
15209 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15210 $as_echo X"$file" |
15211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15212 s//\1/
15213 q
15214 }
15215 /^X\(\/\/\)[^/].*/{
15216 s//\1/
15217 q
15218 }
15219 /^X\(\/\/\)$/{
15220 s//\1/
15221 q
15222 }
15223 /^X\(\/\).*/{
15224 s//\1/
15225 q
15226 }
15227 s/.*/./; q'`
15228 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15229 # echo "creating $dirpart/$file"
15230 echo '# dummy' > "$dirpart/$file"
15231 done
15232 done
15233 }
15234 ;;
15235 "libtool":C)
15236
15237 # See if we are running on zsh, and set the options that allow our
15238 # commands through without removal of \ escapes.
15239 if test -n "${ZSH_VERSION+set}"; then
15240 setopt NO_GLOB_SUBST
15241 fi
15242
15243 cfgfile=${ofile}T
15244 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15245 $RM "$cfgfile"
15246
15247 cat <<_LT_EOF >> "$cfgfile"
15248 #! $SHELL
15249 # Generated automatically by $as_me ($PACKAGE) $VERSION
15250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15251 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15252
15253 # Provide generalized library-building support services.
15254 # Written by Gordon Matzigkeit, 1996
15255
15256 # Copyright (C) 2014 Free Software Foundation, Inc.
15257 # This is free software; see the source for copying conditions. There is NO
15258 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15259
15260 # GNU Libtool is free software; you can redistribute it and/or modify
15261 # it under the terms of the GNU General Public License as published by
15262 # the Free Software Foundation; either version 2 of of the License, or
15263 # (at your option) any later version.
15264 #
15265 # As a special exception to the GNU General Public License, if you
15266 # distribute this file as part of a program or library that is built
15267 # using GNU Libtool, you may include this file under the same
15268 # distribution terms that you use for the rest of that program.
15269 #
15270 # GNU Libtool is distributed in the hope that it will be useful, but
15271 # WITHOUT ANY WARRANTY; without even the implied warranty of
15272 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15273 # GNU General Public License for more details.
15274 #
15275 # You should have received a copy of the GNU General Public License
15276 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15277
15278
15279 # The names of the tagged configurations supported by this script.
15280 available_tags=''
15281
15282 # Configured defaults for sys_lib_dlsearch_path munging.
15283 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15284
15285 # ### BEGIN LIBTOOL CONFIG
15286
15287 # Whether or not to build static libraries.
15288 build_old_libs=$enable_static
15289
15290 # Which release of libtool.m4 was used?
15291 macro_version=$macro_version
15292 macro_revision=$macro_revision
15293
15294 # Whether or not to build shared libraries.
15295 build_libtool_libs=$enable_shared
15296
15297 # What type of objects to build.
15298 pic_mode=$pic_mode
15299
15300 # Whether or not to optimize for fast installation.
15301 fast_install=$enable_fast_install
15302
15303 # Shared archive member basename,for filename based shared library versioning on AIX.
15304 shared_archive_member_spec=$shared_archive_member_spec
15305
15306 # Shell to use when invoking shell scripts.
15307 SHELL=$lt_SHELL
15308
15309 # An echo program that protects backslashes.
15310 ECHO=$lt_ECHO
15311
15312 # The PATH separator for the build system.
15313 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15314
15315 # The host system.
15316 host_alias=$host_alias
15317 host=$host
15318 host_os=$host_os
15319
15320 # The build system.
15321 build_alias=$build_alias
15322 build=$build
15323 build_os=$build_os
15324
15325 # A sed program that does not truncate output.
15326 SED=$lt_SED
15327
15328 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15329 Xsed="\$SED -e 1s/^X//"
15330
15331 # A grep program that handles long lines.
15332 GREP=$lt_GREP
15333
15334 # An ERE matcher.
15335 EGREP=$lt_EGREP
15336
15337 # A literal string matcher.
15338 FGREP=$lt_FGREP
15339
15340 # A BSD- or MS-compatible name lister.
15341 NM=$lt_NM
15342
15343 # Whether we need soft or hard links.
15344 LN_S=$lt_LN_S
15345
15346 # What is the maximum length of a command?
15347 max_cmd_len=$max_cmd_len
15348
15349 # Object file suffix (normally "o").
15350 objext=$ac_objext
15351
15352 # Executable file suffix (normally "").
15353 exeext=$exeext
15354
15355 # whether the shell understands "unset".
15356 lt_unset=$lt_unset
15357
15358 # turn spaces into newlines.
15359 SP2NL=$lt_lt_SP2NL
15360
15361 # turn newlines into spaces.
15362 NL2SP=$lt_lt_NL2SP
15363
15364 # convert \$build file names to \$host format.
15365 to_host_file_cmd=$lt_cv_to_host_file_cmd
15366
15367 # convert \$build files to toolchain format.
15368 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15369
15370 # An object symbol dumper.
15371 OBJDUMP=$lt_OBJDUMP
15372
15373 # Method to check whether dependent libraries are shared objects.
15374 deplibs_check_method=$lt_deplibs_check_method
15375
15376 # Command to use when deplibs_check_method = "file_magic".
15377 file_magic_cmd=$lt_file_magic_cmd
15378
15379 # How to find potential files when deplibs_check_method = "file_magic".
15380 file_magic_glob=$lt_file_magic_glob
15381
15382 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15383 want_nocaseglob=$lt_want_nocaseglob
15384
15385 # DLL creation program.
15386 DLLTOOL=$lt_DLLTOOL
15387
15388 # Command to associate shared and link libraries.
15389 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15390
15391 # The archiver.
15392 AR=$lt_AR
15393
15394 # Flags to create an archive.
15395 AR_FLAGS=$lt_AR_FLAGS
15396
15397 # How to feed a file listing to the archiver.
15398 archiver_list_spec=$lt_archiver_list_spec
15399
15400 # A symbol stripping program.
15401 STRIP=$lt_STRIP
15402
15403 # Commands used to install an old-style archive.
15404 RANLIB=$lt_RANLIB
15405 old_postinstall_cmds=$lt_old_postinstall_cmds
15406 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15407
15408 # Whether to use a lock for old archive extraction.
15409 lock_old_archive_extraction=$lock_old_archive_extraction
15410
15411 # A C compiler.
15412 LTCC=$lt_CC
15413
15414 # LTCC compiler flags.
15415 LTCFLAGS=$lt_CFLAGS
15416
15417 # Take the output of nm and produce a listing of raw symbols and C names.
15418 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15419
15420 # Transform the output of nm in a proper C declaration.
15421 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15422
15423 # Transform the output of nm into a list of symbols to manually relocate.
15424 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15425
15426 # Transform the output of nm in a C name address pair.
15427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15428
15429 # Transform the output of nm in a C name address pair when lib prefix is needed.
15430 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15431
15432 # The name lister interface.
15433 nm_interface=$lt_lt_cv_nm_interface
15434
15435 # Specify filename containing input files for \$NM.
15436 nm_file_list_spec=$lt_nm_file_list_spec
15437
15438 # The root where to search for dependent libraries,and where our libraries should be installed.
15439 lt_sysroot=$lt_sysroot
15440
15441 # Command to truncate a binary pipe.
15442 lt_truncate_bin=$lt_lt_cv_truncate_bin
15443
15444 # The name of the directory that contains temporary libtool files.
15445 objdir=$objdir
15446
15447 # Used to examine libraries when file_magic_cmd begins with "file".
15448 MAGIC_CMD=$MAGIC_CMD
15449
15450 # Must we lock files when doing compilation?
15451 need_locks=$lt_need_locks
15452
15453 # Manifest tool.
15454 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15455
15456 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15457 DSYMUTIL=$lt_DSYMUTIL
15458
15459 # Tool to change global to local symbols on Mac OS X.
15460 NMEDIT=$lt_NMEDIT
15461
15462 # Tool to manipulate fat objects and archives on Mac OS X.
15463 LIPO=$lt_LIPO
15464
15465 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15466 OTOOL=$lt_OTOOL
15467
15468 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15469 OTOOL64=$lt_OTOOL64
15470
15471 # Old archive suffix (normally "a").
15472 libext=$libext
15473
15474 # Shared library suffix (normally ".so").
15475 shrext_cmds=$lt_shrext_cmds
15476
15477 # The commands to extract the exported symbol list from a shared archive.
15478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15479
15480 # Variables whose values should be saved in libtool wrapper scripts and
15481 # restored at link time.
15482 variables_saved_for_relink=$lt_variables_saved_for_relink
15483
15484 # Do we need the "lib" prefix for modules?
15485 need_lib_prefix=$need_lib_prefix
15486
15487 # Do we need a version for libraries?
15488 need_version=$need_version
15489
15490 # Library versioning type.
15491 version_type=$version_type
15492
15493 # Shared library runtime path variable.
15494 runpath_var=$runpath_var
15495
15496 # Shared library path variable.
15497 shlibpath_var=$shlibpath_var
15498
15499 # Is shlibpath searched before the hard-coded library search path?
15500 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15501
15502 # Format of library name prefix.
15503 libname_spec=$lt_libname_spec
15504
15505 # List of archive names. First name is the real one, the rest are links.
15506 # The last name is the one that the linker finds with -lNAME
15507 library_names_spec=$lt_library_names_spec
15508
15509 # The coded name of the library, if different from the real name.
15510 soname_spec=$lt_soname_spec
15511
15512 # Permission mode override for installation of shared libraries.
15513 install_override_mode=$lt_install_override_mode
15514
15515 # Command to use after installation of a shared archive.
15516 postinstall_cmds=$lt_postinstall_cmds
15517
15518 # Command to use after uninstallation of a shared archive.
15519 postuninstall_cmds=$lt_postuninstall_cmds
15520
15521 # Commands used to finish a libtool library installation in a directory.
15522 finish_cmds=$lt_finish_cmds
15523
15524 # As "finish_cmds", except a single script fragment to be evaled but
15525 # not shown.
15526 finish_eval=$lt_finish_eval
15527
15528 # Whether we should hardcode library paths into libraries.
15529 hardcode_into_libs=$hardcode_into_libs
15530
15531 # Compile-time system search path for libraries.
15532 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15533
15534 # Detected run-time system search path for libraries.
15535 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15536
15537 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15538 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15539
15540 # Whether dlopen is supported.
15541 dlopen_support=$enable_dlopen
15542
15543 # Whether dlopen of programs is supported.
15544 dlopen_self=$enable_dlopen_self
15545
15546 # Whether dlopen of statically linked programs is supported.
15547 dlopen_self_static=$enable_dlopen_self_static
15548
15549 # Commands to strip libraries.
15550 old_striplib=$lt_old_striplib
15551 striplib=$lt_striplib
15552
15553
15554 # The linker used to build libraries.
15555 LD=$lt_LD
15556
15557 # How to create reloadable object files.
15558 reload_flag=$lt_reload_flag
15559 reload_cmds=$lt_reload_cmds
15560
15561 # Commands used to build an old-style archive.
15562 old_archive_cmds=$lt_old_archive_cmds
15563
15564 # A language specific compiler.
15565 CC=$lt_compiler
15566
15567 # Is the compiler the GNU compiler?
15568 with_gcc=$GCC
15569
15570 # Compiler flag to turn off builtin functions.
15571 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15572
15573 # Additional compiler flags for building library objects.
15574 pic_flag=$lt_lt_prog_compiler_pic
15575
15576 # How to pass a linker flag through the compiler.
15577 wl=$lt_lt_prog_compiler_wl
15578
15579 # Compiler flag to prevent dynamic linking.
15580 link_static_flag=$lt_lt_prog_compiler_static
15581
15582 # Does compiler simultaneously support -c and -o options?
15583 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15584
15585 # Whether or not to add -lc for building shared libraries.
15586 build_libtool_need_lc=$archive_cmds_need_lc
15587
15588 # Whether or not to disallow shared libs when runtime libs are static.
15589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15590
15591 # Compiler flag to allow reflexive dlopens.
15592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15593
15594 # Compiler flag to generate shared objects directly from archives.
15595 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15596
15597 # Whether the compiler copes with passing no objects directly.
15598 compiler_needs_object=$lt_compiler_needs_object
15599
15600 # Create an old-style archive from a shared archive.
15601 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15602
15603 # Create a temporary old-style archive to link instead of a shared archive.
15604 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15605
15606 # Commands used to build a shared archive.
15607 archive_cmds=$lt_archive_cmds
15608 archive_expsym_cmds=$lt_archive_expsym_cmds
15609
15610 # Commands used to build a loadable module if different from building
15611 # a shared archive.
15612 module_cmds=$lt_module_cmds
15613 module_expsym_cmds=$lt_module_expsym_cmds
15614
15615 # Whether we are building with GNU ld or not.
15616 with_gnu_ld=$lt_with_gnu_ld
15617
15618 # Flag that allows shared libraries with undefined symbols to be built.
15619 allow_undefined_flag=$lt_allow_undefined_flag
15620
15621 # Flag that enforces no undefined symbols.
15622 no_undefined_flag=$lt_no_undefined_flag
15623
15624 # Flag to hardcode \$libdir into a binary during linking.
15625 # This must work even if \$libdir does not exist
15626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15627
15628 # Whether we need a single "-rpath" flag with a separated argument.
15629 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15630
15631 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15632 # DIR into the resulting binary.
15633 hardcode_direct=$hardcode_direct
15634
15635 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15636 # DIR into the resulting binary and the resulting library dependency is
15637 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15638 # library is relocated.
15639 hardcode_direct_absolute=$hardcode_direct_absolute
15640
15641 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15642 # into the resulting binary.
15643 hardcode_minus_L=$hardcode_minus_L
15644
15645 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15646 # into the resulting binary.
15647 hardcode_shlibpath_var=$hardcode_shlibpath_var
15648
15649 # Set to "yes" if building a shared library automatically hardcodes DIR
15650 # into the library and all subsequent libraries and executables linked
15651 # against it.
15652 hardcode_automatic=$hardcode_automatic
15653
15654 # Set to yes if linker adds runtime paths of dependent libraries
15655 # to runtime path list.
15656 inherit_rpath=$inherit_rpath
15657
15658 # Whether libtool must link a program against all its dependency libraries.
15659 link_all_deplibs=$link_all_deplibs
15660
15661 # Set to "yes" if exported symbols are required.
15662 always_export_symbols=$always_export_symbols
15663
15664 # The commands to list exported symbols.
15665 export_symbols_cmds=$lt_export_symbols_cmds
15666
15667 # Symbols that should not be listed in the preloaded symbols.
15668 exclude_expsyms=$lt_exclude_expsyms
15669
15670 # Symbols that must always be exported.
15671 include_expsyms=$lt_include_expsyms
15672
15673 # Commands necessary for linking programs (against libraries) with templates.
15674 prelink_cmds=$lt_prelink_cmds
15675
15676 # Commands necessary for finishing linking programs.
15677 postlink_cmds=$lt_postlink_cmds
15678
15679 # Specify filename containing input files.
15680 file_list_spec=$lt_file_list_spec
15681
15682 # How to hardcode a shared library path into an executable.
15683 hardcode_action=$hardcode_action
15684
15685 # ### END LIBTOOL CONFIG
15686
15687 _LT_EOF
15688
15689 cat <<'_LT_EOF' >> "$cfgfile"
15690
15691 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15692
15693 # func_munge_path_list VARIABLE PATH
15694 # -----------------------------------
15695 # VARIABLE is name of variable containing _space_ separated list of
15696 # directories to be munged by the contents of PATH, which is string
15697 # having a format:
15698 # "DIR[:DIR]:"
15699 # string "DIR[ DIR]" will be prepended to VARIABLE
15700 # ":DIR[:DIR]"
15701 # string "DIR[ DIR]" will be appended to VARIABLE
15702 # "DIRP[:DIRP]::[DIRA:]DIRA"
15703 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15704 # "DIRA[ DIRA]" will be appended to VARIABLE
15705 # "DIR[:DIR]"
15706 # VARIABLE will be replaced by "DIR[ DIR]"
15707 func_munge_path_list ()
15708 {
15709 case x$2 in
15710 x)
15711 ;;
15712 *:)
15713 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15714 ;;
15715 x:*)
15716 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15717 ;;
15718 *::*)
15719 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15720 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15721 ;;
15722 *)
15723 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15724 ;;
15725 esac
15726 }
15727
15728
15729 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15730 func_cc_basename ()
15731 {
15732 for cc_temp in $*""; do
15733 case $cc_temp in
15734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15736 \-*) ;;
15737 *) break;;
15738 esac
15739 done
15740 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15741 }
15742
15743
15744 # ### END FUNCTIONS SHARED WITH CONFIGURE
15745
15746 _LT_EOF
15747
15748 case $host_os in
15749 aix3*)
15750 cat <<\_LT_EOF >> "$cfgfile"
15751 # AIX sometimes has problems with the GCC collect2 program. For some
15752 # reason, if we set the COLLECT_NAMES environment variable, the problems
15753 # vanish in a puff of smoke.
15754 if test set != "${COLLECT_NAMES+set}"; then
15755 COLLECT_NAMES=
15756 export COLLECT_NAMES
15757 fi
15758 _LT_EOF
15759 ;;
15760 esac
15761
15762
15763 ltmain=$ac_aux_dir/ltmain.sh
15764
15765
15766 # We use sed instead of cat because bash on DJGPP gets confused if
15767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15768 # text mode, it properly converts lines to CR/LF. This bash problem
15769 # is reportedly fixed, but why not run on old versions too?
15770 sed '$q' "$ltmain" >> "$cfgfile" \
15771 || (rm -f "$cfgfile"; exit 1)
15772
15773 mv -f "$cfgfile" "$ofile" ||
15774 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15775 chmod +x "$ofile"
15776
15777 ;;
15778
15779 esac
15780 done # for ac_tag
15781
15782
15783 as_fn_exit 0
15784 _ACEOF
15785 ac_clean_files=$ac_clean_files_save
15786
15787 test $ac_write_fail = 0 ||
15788 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15789
15790
15791 # configure is writing to config.log, and then calls config.status.
15792 # config.status does its own redirection, appending to config.log.
15793 # Unfortunately, on DOS this fails, as config.log is still kept open
15794 # by configure, so config.status won't be able to write to it; its
15795 # output is simply discarded. So we exec the FD to /dev/null,
15796 # effectively closing config.log, so it can be properly (re)opened and
15797 # appended to by config.status. When coming back to configure, we
15798 # need to make the FD available again.
15799 if test "$no_create" != yes; then
15800 ac_cs_success=:
15801 ac_config_status_args=
15802 test "$silent" = yes &&
15803 ac_config_status_args="$ac_config_status_args --quiet"
15804 exec 5>/dev/null
15805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15806 exec 5>>config.log
15807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15808 # would make configure fail if this is the last instruction.
15809 $ac_cs_success || as_fn_exit 1
15810 fi
15811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15813 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15814 fi
15815
15816