configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXft 2.2.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libXft'
573 PACKAGE_TARNAME='libXft'
574 PACKAGE_VERSION='2.2.0'
575 PACKAGE_STRING='libXft 2.2.0'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 FONTCONFIG_LIBS
620 FONTCONFIG_CFLAGS
621 ft_config
622 FREETYPE_LIBS
623 FREETYPE_CFLAGS
624 XMKMF
625 XRENDER_LIBS
626 XRENDER_CFLAGS
627 XFT_LT_VERSION
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 RANLIB
634 AR
635 OBJDUMP
636 LN_S
637 NM
638 ac_ct_DUMPBIN
639 DUMPBIN
640 LD
641 FGREP
642 LIBTOOL
643 AM_BACKSLASH
644 AM_DEFAULT_VERBOSITY
645 MAN_SUBSTS
646 XORG_MAN_PAGE
647 ADMIN_MAN_DIR
648 DRIVER_MAN_DIR
649 MISC_MAN_DIR
650 FILE_MAN_DIR
651 LIB_MAN_DIR
652 APP_MAN_DIR
653 ADMIN_MAN_SUFFIX
654 DRIVER_MAN_SUFFIX
655 MISC_MAN_SUFFIX
656 FILE_MAN_SUFFIX
657 LIB_MAN_SUFFIX
658 APP_MAN_SUFFIX
659 SED
660 host_os
661 host_vendor
662 host_cpu
663 host
664 build_os
665 build_vendor
666 build_cpu
667 build
668 INSTALL_CMD
669 PKG_CONFIG
670 CHANGELOG_CMD
671 CWARNFLAGS
672 EGREP
673 GREP
674 CPP
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 MAINT
692 MAINTAINER_MODE_FALSE
693 MAINTAINER_MODE_TRUE
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_maintainer_mode
759 enable_dependency_tracking
760 enable_strict_compilation
761 enable_silent_rules
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_gnu_ld
767 enable_libtool_lock
768 with_x
769 with_freetype_config
770 '
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP
780 PKG_CONFIG
781 XRENDER_CFLAGS
782 XRENDER_LIBS
783 XMKMF
784 FREETYPE_CFLAGS
785 FREETYPE_LIBS
786 FONTCONFIG_CFLAGS
787 FONTCONFIG_LIBS'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used" >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures libXft 2.2.0 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 X features:
1393 --x-includes=DIR X include files are in DIR
1394 --x-libraries=DIR X library files are in DIR
1395
1396 System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of libXft 2.2.0:";;
1405 esac
1406 cat <<\_ACEOF
1407
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-maintainer-mode enable make rules and dependencies not useful
1413 (and sometimes confusing) to the casual installer
1414 --disable-dependency-tracking speeds up one-time build
1415 --enable-dependency-tracking do not reject slow dependency extractors
1416 --enable-strict-compilation
1417 Enable all warnings from compiler and make them
1418 errors (default: disabled)
1419 --enable-silent-rules less verbose build output (undo: `make V=1')
1420 --disable-silent-rules verbose build output (undo: `make V=0')
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 --with-x use the X Window System
1434 --with-freetype-config=PROG Use FreeType configuration program PROG
1435
1436 Some influential environment variables:
1437 CC C compiler command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440 nonstandard directory <lib dir>
1441 LIBS libraries to pass to the linker, e.g. -l<library>
1442 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1444 CPP C preprocessor
1445 PKG_CONFIG path to pkg-config utility
1446 XRENDER_CFLAGS
1447 C compiler flags for XRENDER, overriding pkg-config
1448 XRENDER_LIBS
1449 linker flags for XRENDER, overriding pkg-config
1450 XMKMF Path to xmkmf, Makefile generator for X Window System
1451 FREETYPE_CFLAGS
1452 C compiler flags for FREETYPE, overriding pkg-config
1453 FREETYPE_LIBS
1454 linker flags for FREETYPE, overriding pkg-config
1455 FONTCONFIG_CFLAGS
1456 C compiler flags for FONTCONFIG, overriding pkg-config
1457 FONTCONFIG_LIBS
1458 linker flags for FONTCONFIG, overriding pkg-config
1459
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1462
1463 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1464 _ACEOF
1465 ac_status=$?
1466 fi
1467
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *)
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1491
1492 case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521 fi
1522
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525 cat <<\_ACEOF
1526 libXft configure 2.2.0
1527 generated by GNU Autoconf 2.68
1528
1529 Copyright (C) 2010 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1532 _ACEOF
1533 exit
1534 fi
1535
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1539
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1575
1576 } # ac_fn_c_try_compile
1577
1578 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1579 # ---------------------------------------------
1580 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1581 # accordingly.
1582 ac_fn_c_check_decl ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 as_decl_name=`echo $2|sed 's/ *(.*//'`
1586 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1588 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1589 if eval \${$3+:} false; then :
1590 $as_echo_n "(cached) " >&6
1591 else
1592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593 /* end confdefs.h. */
1594 $4
1595 int
1596 main ()
1597 {
1598 #ifndef $as_decl_name
1599 #ifdef __cplusplus
1600 (void) $as_decl_use;
1601 #else
1602 (void) $as_decl_name;
1603 #endif
1604 #endif
1605
1606 ;
1607 return 0;
1608 }
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611 eval "$3=yes"
1612 else
1613 eval "$3=no"
1614 fi
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616 fi
1617 eval ac_res=\$$3
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621
1622 } # ac_fn_c_check_decl
1623
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } > conftest.i && {
1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_cpp
1660
1661 # ac_fn_c_try_run LINENO
1662 # ----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1664 # that executables *can* be run.
1665 ac_fn_c_try_run ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1679 { { case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_try") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; }; }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: program exited with status $ac_status" >&5
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=$ac_status
1696 fi
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_run
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_try_link LINENO
1735 # -----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_link ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext conftest$ac_exeext
1741 if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest$ac_exeext && {
1760 test "$cross_compiling" = yes ||
1761 $as_test_x conftest$ac_exeext
1762 }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1772 # interfere with the next link command; also delete a directory that is
1773 # left behind by Apple's compiler. We do this before executing the actions.
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_link
1779
1780 # ac_fn_c_check_func LINENO FUNC VAR
1781 # ----------------------------------
1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783 ac_fn_c_check_func ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1795 #define $2 innocuous_$2
1796
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char $2 (); below.
1799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1800 <limits.h> exists even on freestanding compilers. */
1801
1802 #ifdef __STDC__
1803 # include <limits.h>
1804 #else
1805 # include <assert.h>
1806 #endif
1807
1808 #undef $2
1809
1810 /* Override any GCC internal prototype to avoid an error.
1811 Use char because int might match the return type of a GCC
1812 builtin and then its argument prototype would still apply. */
1813 #ifdef __cplusplus
1814 extern "C"
1815 #endif
1816 char $2 ();
1817 /* The GNU C library defines this for functions which it implements
1818 to always fail with ENOSYS. Some functions are actually named
1819 something starting with __ and the normal name is an alias. */
1820 #if defined __stub_$2 || defined __stub___$2
1821 choke me
1822 #endif
1823
1824 int
1825 main ()
1826 {
1827 return $2 ();
1828 ;
1829 return 0;
1830 }
1831 _ACEOF
1832 if ac_fn_c_try_link "$LINENO"; then :
1833 eval "$3=yes"
1834 else
1835 eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext \
1838 conftest$ac_exeext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_c_check_func
1846
1847 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1848 # -------------------------------------------------------
1849 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1850 # the include files in INCLUDES and setting the cache variable VAR
1851 # accordingly.
1852 ac_fn_c_check_header_mongrel ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if eval \${$3+:} false; then :
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1860 fi
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 else
1865 # Is the header compilable?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1867 $as_echo_n "checking $2 usability... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $4
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 ac_header_compiler=yes
1875 else
1876 ac_header_compiler=no
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1880 $as_echo "$ac_header_compiler" >&6; }
1881
1882 # Is the header present?
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1884 $as_echo_n "checking $2 presence... " >&6; }
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 ac_header_preproc=yes
1891 else
1892 ac_header_preproc=no
1893 fi
1894 rm -f conftest.err conftest.i conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1896 $as_echo "$ac_header_preproc" >&6; }
1897
1898 # So? What about this header?
1899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900 yes:no: )
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1902 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1904 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1905 ;;
1906 no:yes:* )
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1908 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1910 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1912 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1914 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 ( $as_echo "## ---------------------------------------------------------------------- ##
1918 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1919 ## ---------------------------------------------------------------------- ##"
1920 ) | sed "s/^/$as_me: WARNING: /" >&2
1921 ;;
1922 esac
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1927 else
1928 eval "$3=\$ac_header_compiler"
1929 fi
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 fi
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_header_mongrel
1937
1938 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1939 # ----------------------------------------------------
1940 # Tries to find if the field MEMBER exists in type AGGR, after including
1941 # INCLUDES, setting cache variable VAR accordingly.
1942 ac_fn_c_check_member ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1946 $as_echo_n "checking for $2.$3... " >&6; }
1947 if eval \${$4+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $5
1953 int
1954 main ()
1955 {
1956 static $2 ac_aggr;
1957 if (ac_aggr.$3)
1958 return 0;
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 eval "$4=yes"
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $5
1969 int
1970 main ()
1971 {
1972 static $2 ac_aggr;
1973 if (sizeof ac_aggr.$3)
1974 return 0;
1975 ;
1976 return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 eval "$4=yes"
1981 else
1982 eval "$4=no"
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$4
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_check_member
1994 cat >config.log <<_ACEOF
1995 This file contains any messages produced by compilers while
1996 running configure, to aid debugging if configure makes a mistake.
1997
1998 It was created by libXft $as_me 2.2.0, which was
1999 generated by GNU Autoconf 2.68. Invocation command line was
2000
2001 $ $0 $@
2002
2003 _ACEOF
2004 exec 5>>config.log
2005 {
2006 cat <<_ASUNAME
2007 ## --------- ##
2008 ## Platform. ##
2009 ## --------- ##
2010
2011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2016
2017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2019
2020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2023 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2027
2028 _ASUNAME
2029
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 $as_echo "PATH: $as_dir"
2036 done
2037 IFS=$as_save_IFS
2038
2039 } >&5
2040
2041 cat >&5 <<_ACEOF
2042
2043
2044 ## ----------- ##
2045 ## Core tests. ##
2046 ## ----------- ##
2047
2048 _ACEOF
2049
2050
2051 # Keep a trace of the command line.
2052 # Strip out --no-create and --no-recursion so they do not pile up.
2053 # Strip out --silent because we don't want to record it for future runs.
2054 # Also quote any args containing shell meta-characters.
2055 # Make two passes to allow for proper duplicate-argument suppression.
2056 ac_configure_args=
2057 ac_configure_args0=
2058 ac_configure_args1=
2059 ac_must_keep_next=false
2060 for ac_pass in 1 2
2061 do
2062 for ac_arg
2063 do
2064 case $ac_arg in
2065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2067 | -silent | --silent | --silen | --sile | --sil)
2068 continue ;;
2069 *\'*)
2070 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2071 esac
2072 case $ac_pass in
2073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2074 2)
2075 as_fn_append ac_configure_args1 " '$ac_arg'"
2076 if test $ac_must_keep_next = true; then
2077 ac_must_keep_next=false # Got value, back to normal.
2078 else
2079 case $ac_arg in
2080 *=* | --config-cache | -C | -disable-* | --disable-* \
2081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2083 | -with-* | --with-* | -without-* | --without-* | --x)
2084 case "$ac_configure_args0 " in
2085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2086 esac
2087 ;;
2088 -* ) ac_must_keep_next=true ;;
2089 esac
2090 fi
2091 as_fn_append ac_configure_args " '$ac_arg'"
2092 ;;
2093 esac
2094 done
2095 done
2096 { ac_configure_args0=; unset ac_configure_args0;}
2097 { ac_configure_args1=; unset ac_configure_args1;}
2098
2099 # When interrupted or exit'd, cleanup temporary files, and complete
2100 # config.log. We remove comments because anyway the quotes in there
2101 # would cause problems or look ugly.
2102 # WARNING: Use '\'' to represent an apostrophe within the trap.
2103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2104 trap 'exit_status=$?
2105 # Save into config.log some information that might help in debugging.
2106 {
2107 echo
2108
2109 $as_echo "## ---------------- ##
2110 ## Cache variables. ##
2111 ## ---------------- ##"
2112 echo
2113 # The following way of writing the cache mishandles newlines in values,
2114 (
2115 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2116 eval ac_val=\$$ac_var
2117 case $ac_val in #(
2118 *${as_nl}*)
2119 case $ac_var in #(
2120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2122 esac
2123 case $ac_var in #(
2124 _ | IFS | as_nl) ;; #(
2125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2126 *) { eval $ac_var=; unset $ac_var;} ;;
2127 esac ;;
2128 esac
2129 done
2130 (set) 2>&1 |
2131 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2132 *${as_nl}ac_space=\ *)
2133 sed -n \
2134 "s/'\''/'\''\\\\'\'''\''/g;
2135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2136 ;; #(
2137 *)
2138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2139 ;;
2140 esac |
2141 sort
2142 )
2143 echo
2144
2145 $as_echo "## ----------------- ##
2146 ## Output variables. ##
2147 ## ----------------- ##"
2148 echo
2149 for ac_var in $ac_subst_vars
2150 do
2151 eval ac_val=\$$ac_var
2152 case $ac_val in
2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154 esac
2155 $as_echo "$ac_var='\''$ac_val'\''"
2156 done | sort
2157 echo
2158
2159 if test -n "$ac_subst_files"; then
2160 $as_echo "## ------------------- ##
2161 ## File substitutions. ##
2162 ## ------------------- ##"
2163 echo
2164 for ac_var in $ac_subst_files
2165 do
2166 eval ac_val=\$$ac_var
2167 case $ac_val in
2168 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169 esac
2170 $as_echo "$ac_var='\''$ac_val'\''"
2171 done | sort
2172 echo
2173 fi
2174
2175 if test -s confdefs.h; then
2176 $as_echo "## ----------- ##
2177 ## confdefs.h. ##
2178 ## ----------- ##"
2179 echo
2180 cat confdefs.h
2181 echo
2182 fi
2183 test "$ac_signal" != 0 &&
2184 $as_echo "$as_me: caught signal $ac_signal"
2185 $as_echo "$as_me: exit $exit_status"
2186 } >&5
2187 rm -f core *.core core.conftest.* &&
2188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2189 exit $exit_status
2190 ' 0
2191 for ac_signal in 1 2 13 15; do
2192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2193 done
2194 ac_signal=0
2195
2196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2197 rm -f -r conftest* confdefs.h
2198
2199 $as_echo "/* confdefs.h */" > confdefs.h
2200
2201 # Predefined preprocessor variables.
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_NAME "$PACKAGE_NAME"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_STRING "$PACKAGE_STRING"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_URL "$PACKAGE_URL"
2225 _ACEOF
2226
2227
2228 # Let the site file select an alternate cache file if it wants to.
2229 # Prefer an explicitly selected file to automatically selected ones.
2230 ac_site_file1=NONE
2231 ac_site_file2=NONE
2232 if test -n "$CONFIG_SITE"; then
2233 # We do not want a PATH search for config.site.
2234 case $CONFIG_SITE in #((
2235 -*) ac_site_file1=./$CONFIG_SITE;;
2236 */*) ac_site_file1=$CONFIG_SITE;;
2237 *) ac_site_file1=./$CONFIG_SITE;;
2238 esac
2239 elif test "x$prefix" != xNONE; then
2240 ac_site_file1=$prefix/share/config.site
2241 ac_site_file2=$prefix/etc/config.site
2242 else
2243 ac_site_file1=$ac_default_prefix/share/config.site
2244 ac_site_file2=$ac_default_prefix/etc/config.site
2245 fi
2246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2247 do
2248 test "x$ac_site_file" = xNONE && continue
2249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2252 sed 's/^/| /' "$ac_site_file" >&5
2253 . "$ac_site_file" \
2254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 as_fn_error $? "failed to load site script $ac_site_file
2257 See \`config.log' for more details" "$LINENO" 5; }
2258 fi
2259 done
2260
2261 if test -r "$cache_file"; then
2262 # Some versions of bash will fail to source /dev/null (special files
2263 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2266 $as_echo "$as_me: loading cache $cache_file" >&6;}
2267 case $cache_file in
2268 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2269 *) . "./$cache_file";;
2270 esac
2271 fi
2272 else
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2274 $as_echo "$as_me: creating cache $cache_file" >&6;}
2275 >$cache_file
2276 fi
2277
2278 # Check that the precious variables saved in the cache have kept the same
2279 # value.
2280 ac_cache_corrupted=false
2281 for ac_var in $ac_precious_vars; do
2282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2283 eval ac_new_set=\$ac_env_${ac_var}_set
2284 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2285 eval ac_new_val=\$ac_env_${ac_var}_value
2286 case $ac_old_set,$ac_new_set in
2287 set,)
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2289 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2290 ac_cache_corrupted=: ;;
2291 ,set)
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2294 ac_cache_corrupted=: ;;
2295 ,);;
2296 *)
2297 if test "x$ac_old_val" != "x$ac_new_val"; then
2298 # differences in whitespace do not lead to failure.
2299 ac_old_val_w=`echo x $ac_old_val`
2300 ac_new_val_w=`echo x $ac_new_val`
2301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2304 ac_cache_corrupted=:
2305 else
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2308 eval $ac_var=\$ac_old_val
2309 fi
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2311 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2313 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2314 fi;;
2315 esac
2316 # Pass precious variables to config.status.
2317 if test "$ac_new_set" = set; then
2318 case $ac_new_val in
2319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 *) ac_arg=$ac_var=$ac_new_val ;;
2321 esac
2322 case " $ac_configure_args " in
2323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2324 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2325 esac
2326 fi
2327 done
2328 if $ac_cache_corrupted; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2333 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2334 fi
2335 ## -------------------- ##
2336 ## Main body of script. ##
2337 ## -------------------- ##
2338
2339 ac_ext=c
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344
2345
2346 ac_aux_dir=
2347 for ac_dir in . "$srcdir"/.; do
2348 if test -f "$ac_dir/install-sh"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/install-sh -c"
2351 break
2352 elif test -f "$ac_dir/install.sh"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/install.sh -c"
2355 break
2356 elif test -f "$ac_dir/shtool"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/shtool install -c"
2359 break
2360 fi
2361 done
2362 if test -z "$ac_aux_dir"; then
2363 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2364 fi
2365
2366 # These three variables are undocumented and unsupported,
2367 # and are intended to be withdrawn in a future Autoconf release.
2368 # They can cause serious problems if a builder's source tree is in a directory
2369 # whose full name contains unusual characters.
2370 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2371 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2372 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2373
2374
2375
2376 am__api_version='1.11'
2377
2378 # Find a good install program. We prefer a C program (faster),
2379 # so one script is as good as another. But avoid the broken or
2380 # incompatible versions:
2381 # SysV /etc/install, /usr/sbin/install
2382 # SunOS /usr/etc/install
2383 # IRIX /sbin/install
2384 # AIX /bin/install
2385 # AmigaOS /C/install, which installs bootblocks on floppy discs
2386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389 # OS/2's system install, which has a completely different semantic
2390 # ./install, which can be erroneously created by make from ./install.sh.
2391 # Reject install programs that cannot install multiple files.
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2393 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2394 if test -z "$INSTALL"; then
2395 if ${ac_cv_path_install+:} false; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
2403 # Account for people who put trailing slashes in PATH elements.
2404 case $as_dir/ in #((
2405 ./ | .// | /[cC]/* | \
2406 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2407 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2408 /usr/ucb/* ) ;;
2409 *)
2410 # OSF1 and SCO ODT 3.0 have their own names for install.
2411 # Don't use installbsd from OSF since it installs stuff as root
2412 # by default.
2413 for ac_prog in ginstall scoinst install; do
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2416 if test $ac_prog = install &&
2417 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418 # AIX install. It has an incompatible calling convention.
2419 :
2420 elif test $ac_prog = install &&
2421 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422 # program-specific install script used by HP pwplus--don't use.
2423 :
2424 else
2425 rm -rf conftest.one conftest.two conftest.dir
2426 echo one > conftest.one
2427 echo two > conftest.two
2428 mkdir conftest.dir
2429 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2430 test -s conftest.one && test -s conftest.two &&
2431 test -s conftest.dir/conftest.one &&
2432 test -s conftest.dir/conftest.two
2433 then
2434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435 break 3
2436 fi
2437 fi
2438 fi
2439 done
2440 done
2441 ;;
2442 esac
2443
2444 done
2445 IFS=$as_save_IFS
2446
2447 rm -rf conftest.one conftest.two conftest.dir
2448
2449 fi
2450 if test "${ac_cv_path_install+set}" = set; then
2451 INSTALL=$ac_cv_path_install
2452 else
2453 # As a last resort, use the slow shell script. Don't cache a
2454 # value for INSTALL within a source directory, because that will
2455 # break other packages using the cache if that directory is
2456 # removed, or if the value is a relative name.
2457 INSTALL=$ac_install_sh
2458 fi
2459 fi
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2461 $as_echo "$INSTALL" >&6; }
2462
2463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2464 # It thinks the first close brace ends the variable substitution.
2465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2466
2467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2468
2469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2470
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2472 $as_echo_n "checking whether build environment is sane... " >&6; }
2473 # Just in case
2474 sleep 1
2475 echo timestamp > conftest.file
2476 # Reject unsafe characters in $srcdir or the absolute working directory
2477 # name. Accept space and tab only in the latter.
2478 am_lf='
2479 '
2480 case `pwd` in
2481 *[\\\"\#\$\&\'\`$am_lf]*)
2482 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2483 esac
2484 case $srcdir in
2485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2486 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2487 esac
2488
2489 # Do `set' in a subshell so we don't clobber the current shell's
2490 # arguments. Must try -L first in case configure is actually a
2491 # symlink; some systems play weird games with the mod time of symlinks
2492 # (eg FreeBSD returns the mod time of the symlink's containing
2493 # directory).
2494 if (
2495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2496 if test "$*" = "X"; then
2497 # -L didn't work.
2498 set X `ls -t "$srcdir/configure" conftest.file`
2499 fi
2500 rm -f conftest.file
2501 if test "$*" != "X $srcdir/configure conftest.file" \
2502 && test "$*" != "X conftest.file $srcdir/configure"; then
2503
2504 # If neither matched, then we have a broken ls. This can happen
2505 # if, for instance, CONFIG_SHELL is bash and it inherits a
2506 # broken ls alias from the environment. This has actually
2507 # happened. Such a system could not be considered "sane".
2508 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2509 alias in your environment" "$LINENO" 5
2510 fi
2511
2512 test "$2" = conftest.file
2513 )
2514 then
2515 # Ok.
2516 :
2517 else
2518 as_fn_error $? "newly created file is older than distributed files!
2519 Check your system clock" "$LINENO" 5
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522 $as_echo "yes" >&6; }
2523 test "$program_prefix" != NONE &&
2524 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2525 # Use a double $ so make ignores it.
2526 test "$program_suffix" != NONE &&
2527 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2528 # Double any \ or $.
2529 # By default was `s,x,x', remove it if useless.
2530 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2531 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2532
2533 # expand $ac_aux_dir to an absolute path
2534 am_aux_dir=`cd $ac_aux_dir && pwd`
2535
2536 if test x"${MISSING+set}" != xset; then
2537 case $am_aux_dir in
2538 *\ * | *\ *)
2539 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2540 *)
2541 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2542 esac
2543 fi
2544 # Use eval to expand $SHELL
2545 if eval "$MISSING --run true"; then
2546 am_missing_run="$MISSING --run "
2547 else
2548 am_missing_run=
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2550 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2551 fi
2552
2553 if test x"${install_sh}" != xset; then
2554 case $am_aux_dir in
2555 *\ * | *\ *)
2556 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2557 *)
2558 install_sh="\${SHELL} $am_aux_dir/install-sh"
2559 esac
2560 fi
2561
2562 # Installed binaries are usually stripped using `strip' when the user
2563 # run `make install-strip'. However `strip' might not be the right
2564 # tool to use in cross-compilation environments, therefore Automake
2565 # will honor the `STRIP' environment variable to overrule this program.
2566 if test "$cross_compiling" != no; then
2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2569 set dummy ${ac_tool_prefix}strip; ac_word=$2
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if ${ac_cv_prog_STRIP+:} false; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 if test -n "$STRIP"; then
2576 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594 fi
2595 STRIP=$ac_cv_prog_STRIP
2596 if test -n "$STRIP"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2598 $as_echo "$STRIP" >&6; }
2599 else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2602 fi
2603
2604
2605 fi
2606 if test -z "$ac_cv_prog_STRIP"; then
2607 ac_ct_STRIP=$STRIP
2608 # Extract the first word of "strip", so it can be a program name with args.
2609 set dummy strip; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test -n "$ac_ct_STRIP"; then
2616 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_ac_ct_STRIP="strip"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2636 if test -n "$ac_ct_STRIP"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2638 $as_echo "$ac_ct_STRIP" >&6; }
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2642 fi
2643
2644 if test "x$ac_ct_STRIP" = x; then
2645 STRIP=":"
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648 yes:)
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2651 ac_tool_warned=yes ;;
2652 esac
2653 STRIP=$ac_ct_STRIP
2654 fi
2655 else
2656 STRIP="$ac_cv_prog_STRIP"
2657 fi
2658
2659 fi
2660 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2661
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2663 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2664 if test -z "$MKDIR_P"; then
2665 if ${ac_cv_path_mkdir+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2670 do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_prog in mkdir gmkdir; do
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2676 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2677 'mkdir (GNU coreutils) '* | \
2678 'mkdir (coreutils) '* | \
2679 'mkdir (fileutils) '4.1*)
2680 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2681 break 3;;
2682 esac
2683 done
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689
2690 test -d ./--version && rmdir ./--version
2691 if test "${ac_cv_path_mkdir+set}" = set; then
2692 MKDIR_P="$ac_cv_path_mkdir -p"
2693 else
2694 # As a last resort, use the slow shell script. Don't cache a
2695 # value for MKDIR_P within a source directory, because that will
2696 # break other packages using the cache if that directory is
2697 # removed, or if the value is a relative name.
2698 MKDIR_P="$ac_install_sh -d"
2699 fi
2700 fi
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2702 $as_echo "$MKDIR_P" >&6; }
2703
2704 mkdir_p="$MKDIR_P"
2705 case $mkdir_p in
2706 [\\/$]* | ?:[\\/]*) ;;
2707 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2708 esac
2709
2710 for ac_prog in gawk mawk nawk awk
2711 do
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy $ac_prog; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_AWK+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_AWK="$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 AWK=$ac_cv_prog_AWK
2740 if test -n "$AWK"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742 $as_echo "$AWK" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749 test -n "$AWK" && break
2750 done
2751
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2753 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2754 set x ${MAKE-make}
2755 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2756 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 cat >conftest.make <<\_ACEOF
2760 SHELL = /bin/sh
2761 all:
2762 @echo '@@@%%%=$(MAKE)=@@@%%%'
2763 _ACEOF
2764 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2765 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2766 *@@@%%%=?*=@@@%%%*)
2767 eval ac_cv_prog_make_${ac_make}_set=yes;;
2768 *)
2769 eval ac_cv_prog_make_${ac_make}_set=no;;
2770 esac
2771 rm -f conftest.make
2772 fi
2773 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2775 $as_echo "yes" >&6; }
2776 SET_MAKE=
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 SET_MAKE="MAKE=${MAKE-make}"
2781 fi
2782
2783 rm -rf .tst 2>/dev/null
2784 mkdir .tst 2>/dev/null
2785 if test -d .tst; then
2786 am__leading_dot=.
2787 else
2788 am__leading_dot=_
2789 fi
2790 rmdir .tst 2>/dev/null
2791
2792 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2793 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2794 # is not polluted with repeated "-I."
2795 am__isrc=' -I$(srcdir)'
2796 # test to see if srcdir already configured
2797 if test -f $srcdir/config.status; then
2798 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2799 fi
2800 fi
2801
2802 # test whether we have cygpath
2803 if test -z "$CYGPATH_W"; then
2804 if (cygpath --version) >/dev/null 2>/dev/null; then
2805 CYGPATH_W='cygpath -w'
2806 else
2807 CYGPATH_W=echo
2808 fi
2809 fi
2810
2811
2812 # Define the identity of the package.
2813 PACKAGE='libXft'
2814 VERSION='2.2.0'
2815
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE "$PACKAGE"
2819 _ACEOF
2820
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define VERSION "$VERSION"
2824 _ACEOF
2825
2826 # Some tools Automake needs.
2827
2828 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829
2830
2831 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832
2833
2834 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835
2836
2837 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838
2839
2840 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841
2842 # We need awk for the "check" target. The system "awk" is bad on
2843 # some platforms.
2844 # Always define AMTAR for backward compatibility.
2845
2846 AMTAR=${AMTAR-"${am_missing_run}tar"}
2847
2848 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2849
2850
2851
2852
2853
2854
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2856 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2857 # Check whether --enable-maintainer-mode was given.
2858 if test "${enable_maintainer_mode+set}" = set; then :
2859 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2860 else
2861 USE_MAINTAINER_MODE=no
2862 fi
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2865 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2866 if test $USE_MAINTAINER_MODE = yes; then
2867 MAINTAINER_MODE_TRUE=
2868 MAINTAINER_MODE_FALSE='#'
2869 else
2870 MAINTAINER_MODE_TRUE='#'
2871 MAINTAINER_MODE_FALSE=
2872 fi
2873
2874 MAINT=$MAINTAINER_MODE_TRUE
2875
2876
2877
2878 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890 DEPDIR="${am__leading_dot}deps"
2891
2892 ac_config_commands="$ac_config_commands depfiles"
2893
2894
2895 am_make=${MAKE-make}
2896 cat > confinc << 'END'
2897 am__doit:
2898 @echo this is the am__doit target
2899 .PHONY: am__doit
2900 END
2901 # If we don't find an include directive, just comment out the code.
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2903 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2904 am__include="#"
2905 am__quote=
2906 _am_result=none
2907 # First try GNU make style include.
2908 echo "include confinc" > confmf
2909 # Ignore all kinds of additional output from `make'.
2910 case `$am_make -s -f confmf 2> /dev/null` in #(
2911 *the\ am__doit\ target*)
2912 am__include=include
2913 am__quote=
2914 _am_result=GNU
2915 ;;
2916 esac
2917 # Now try BSD make style include.
2918 if test "$am__include" = "#"; then
2919 echo '.include "confinc"' > confmf
2920 case `$am_make -s -f confmf 2> /dev/null` in #(
2921 *the\ am__doit\ target*)
2922 am__include=.include
2923 am__quote="\""
2924 _am_result=BSD
2925 ;;
2926 esac
2927 fi
2928
2929
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2931 $as_echo "$_am_result" >&6; }
2932 rm -f confinc confmf
2933
2934 # Check whether --enable-dependency-tracking was given.
2935 if test "${enable_dependency_tracking+set}" = set; then :
2936 enableval=$enable_dependency_tracking;
2937 fi
2938
2939 if test "x$enable_dependency_tracking" != xno; then
2940 am_depcomp="$ac_aux_dir/depcomp"
2941 AMDEPBACKSLASH='\'
2942 fi
2943 if test "x$enable_dependency_tracking" != xno; then
2944 AMDEP_TRUE=
2945 AMDEP_FALSE='#'
2946 else
2947 AMDEP_TRUE='#'
2948 AMDEP_FALSE=
2949 fi
2950
2951
2952 ac_ext=c
2953 ac_cpp='$CPP $CPPFLAGS'
2954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2959 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 CC=$ac_cv_prog_CC
2986 if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988 $as_echo "$CC" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994
2995 fi
2996 if test -z "$ac_cv_prog_CC"; then
2997 ac_ct_CC=$CC
2998 # Extract the first word of "gcc", so it can be a program name with args.
2999 set dummy gcc; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_CC="gcc"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026 if test -n "$ac_ct_CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028 $as_echo "$ac_ct_CC" >&6; }
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034 if test "x$ac_ct_CC" = x; then
3035 CC=""
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038 yes:)
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041 ac_tool_warned=yes ;;
3042 esac
3043 CC=$ac_ct_CC
3044 fi
3045 else
3046 CC="$ac_cv_prog_CC"
3047 fi
3048
3049 if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}cc; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_CC+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="${ac_tool_prefix}cc"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072 done
3073 done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088 fi
3089 fi
3090 if test -z "$CC"; then
3091 # Extract the first word of "cc", so it can be a program name with args.
3092 set dummy cc; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 else
3101 ac_prog_rejected=no
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3110 ac_prog_rejected=yes
3111 continue
3112 fi
3113 ac_cv_prog_CC="cc"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 if test $ac_prog_rejected = yes; then
3122 # We found a bogon in the path, so make sure we never use it.
3123 set dummy $ac_cv_prog_CC
3124 shift
3125 if test $# != 0; then
3126 # We chose a different compiler from the bogus one.
3127 # However, it has the same basename, so the bogon will be chosen
3128 # first if we set CC to just the basename; use the full file name.
3129 shift
3130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3131 fi
3132 fi
3133 fi
3134 fi
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138 $as_echo "$CC" >&6; }
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144
3145 fi
3146 if test -z "$CC"; then
3147 if test -n "$ac_tool_prefix"; then
3148 for ac_prog in cl.exe
3149 do
3150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_CC+:} false; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 test -n "$CC" && break
3188 done
3189 fi
3190 if test -z "$CC"; then
3191 ac_ct_CC=$CC
3192 for ac_prog in cl.exe
3193 do
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195 set dummy $ac_prog; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_ac_ct_CC="$ac_prog"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215 done
3216 done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224 $as_echo "$ac_ct_CC" >&6; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231 test -n "$ac_ct_CC" && break
3232 done
3233
3234 if test "x$ac_ct_CC" = x; then
3235 CC=""
3236 else
3237 case $cross_compiling:$ac_tool_warned in
3238 yes:)
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241 ac_tool_warned=yes ;;
3242 esac
3243 CC=$ac_ct_CC
3244 fi
3245 fi
3246
3247 fi
3248
3249
3250 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 as_fn_error $? "no acceptable C compiler found in \$PATH
3253 See \`config.log' for more details" "$LINENO" 5; }
3254
3255 # Provide some information about the compiler.
3256 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3257 set X $ac_compile
3258 ac_compiler=$2
3259 for ac_option in --version -v -V -qversion; do
3260 { { ac_try="$ac_compiler $ac_option >&5"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3268 ac_status=$?
3269 if test -s conftest.err; then
3270 sed '10a\
3271 ... rest of stderr output deleted ...
3272 10q' conftest.err >conftest.er1
3273 cat conftest.er1 >&5
3274 fi
3275 rm -f conftest.er1 conftest.err
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }
3278 done
3279
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282
3283 int
3284 main ()
3285 {
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 ac_clean_files_save=$ac_clean_files
3292 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3293 # Try to create an executable without -o first, disregard a.out.
3294 # It will help us diagnose broken compilers, and finding out an intuition
3295 # of exeext.
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3297 $as_echo_n "checking whether the C compiler works... " >&6; }
3298 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3299
3300 # The possible output files:
3301 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302
3303 ac_rmfiles=
3304 for ac_file in $ac_files
3305 do
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3309 esac
3310 done
3311 rm -f $ac_rmfiles
3312
3313 if { { ac_try="$ac_link_default"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_link_default") 2>&5
3321 ac_status=$?
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; then :
3324 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3325 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3326 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3327 # so that the user can short-circuit this test for compilers unknown to
3328 # Autoconf.
3329 for ac_file in $ac_files ''
3330 do
3331 test -f "$ac_file" || continue
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334 ;;
3335 [ab].out )
3336 # We found the default executable, but exeext='' is most
3337 # certainly right.
3338 break;;
3339 *.* )
3340 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3341 then :; else
3342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 fi
3344 # We set ac_cv_exeext here because the later test for it is not
3345 # safe: cross compilers may not add the suffix if given an `-o'
3346 # argument, so we may need to know it at that point already.
3347 # Even if this section looks crufty: it has the advantage of
3348 # actually working.
3349 break;;
3350 * )
3351 break;;
3352 esac
3353 done
3354 test "$ac_cv_exeext" = no && ac_cv_exeext=
3355
3356 else
3357 ac_file=''
3358 fi
3359 if test -z "$ac_file"; then :
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 $as_echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error 77 "C compiler cannot create executables
3368 See \`config.log' for more details" "$LINENO" 5; }
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3374 $as_echo_n "checking for C compiler default output file name... " >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3376 $as_echo "$ac_file" >&6; }
3377 ac_exeext=$ac_cv_exeext
3378
3379 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3380 ac_clean_files=$ac_clean_files_save
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3382 $as_echo_n "checking for suffix of executables... " >&6; }
3383 if { { ac_try="$ac_link"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_link") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; then :
3394 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3395 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3396 # work properly (i.e., refer to `conftest.exe'), while it won't with
3397 # `rm'.
3398 for ac_file in conftest.exe conftest conftest.*; do
3399 test -f "$ac_file" || continue
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403 break;;
3404 * ) break;;
3405 esac
3406 done
3407 else
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3411 See \`config.log' for more details" "$LINENO" 5; }
3412 fi
3413 rm -f conftest conftest$ac_cv_exeext
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3415 $as_echo "$ac_cv_exeext" >&6; }
3416
3417 rm -f conftest.$ac_ext
3418 EXEEXT=$ac_cv_exeext
3419 ac_exeext=$EXEEXT
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3422 #include <stdio.h>
3423 int
3424 main ()
3425 {
3426 FILE *f = fopen ("conftest.out", "w");
3427 return ferror (f) || fclose (f) != 0;
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 ac_clean_files="$ac_clean_files conftest.out"
3434 # Check that the compiler produces executables we can run. If not, either
3435 # the compiler is broken, or we cross compile.
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3437 $as_echo_n "checking whether we are cross compiling... " >&6; }
3438 if test "$cross_compiling" != yes; then
3439 { { ac_try="$ac_link"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_link") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }
3450 if { ac_try='./conftest$ac_cv_exeext'
3451 { { case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_try") 2>&5
3458 ac_status=$?
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }; }; then
3461 cross_compiling=no
3462 else
3463 if test "$cross_compiling" = maybe; then
3464 cross_compiling=yes
3465 else
3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 as_fn_error $? "cannot run C compiled programs.
3469 If you meant to cross compile, use \`--host'.
3470 See \`config.log' for more details" "$LINENO" 5; }
3471 fi
3472 fi
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3475 $as_echo "$cross_compiling" >&6; }
3476
3477 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3478 ac_clean_files=$ac_clean_files_save
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3480 $as_echo_n "checking for suffix of object files... " >&6; }
3481 if ${ac_cv_objext+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486
3487 int
3488 main ()
3489 {
3490
3491 ;
3492 return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.o conftest.obj
3496 if { { ac_try="$ac_compile"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_compile") 2>&5
3504 ac_status=$?
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 for ac_file in conftest.o conftest.obj conftest.*; do
3508 test -f "$ac_file" || continue;
3509 case $ac_file in
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3512 break;;
3513 esac
3514 done
3515 else
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error $? "cannot compute suffix of object files: cannot compile
3522 See \`config.log' for more details" "$LINENO" 5; }
3523 fi
3524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3527 $as_echo "$ac_cv_objext" >&6; }
3528 OBJEXT=$ac_cv_objext
3529 ac_objext=$OBJEXT
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3531 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3532 if ${ac_cv_c_compiler_gnu+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3537
3538 int
3539 main ()
3540 {
3541 #ifndef __GNUC__
3542 choke me
3543 #endif
3544
3545 ;
3546 return 0;
3547 }
3548 _ACEOF
3549 if ac_fn_c_try_compile "$LINENO"; then :
3550 ac_compiler_gnu=yes
3551 else
3552 ac_compiler_gnu=no
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3556
3557 fi
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3559 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3560 if test $ac_compiler_gnu = yes; then
3561 GCC=yes
3562 else
3563 GCC=
3564 fi
3565 ac_test_CFLAGS=${CFLAGS+set}
3566 ac_save_CFLAGS=$CFLAGS
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3568 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3569 if ${ac_cv_prog_cc_g+:} false; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 ac_save_c_werror_flag=$ac_c_werror_flag
3573 ac_c_werror_flag=yes
3574 ac_cv_prog_cc_g=no
3575 CFLAGS="-g"
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 int
3580 main ()
3581 {
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_prog_cc_g=yes
3589 else
3590 CFLAGS=""
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593
3594 int
3595 main ()
3596 {
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603
3604 else
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3606 CFLAGS="-g"
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609
3610 int
3611 main ()
3612 {
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_prog_cc_g=yes
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 ac_c_werror_flag=$ac_save_c_werror_flag
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3629 $as_echo "$ac_cv_prog_cc_g" >&6; }
3630 if test "$ac_test_CFLAGS" = set; then
3631 CFLAGS=$ac_save_CFLAGS
3632 elif test $ac_cv_prog_cc_g = yes; then
3633 if test "$GCC" = yes; then
3634 CFLAGS="-g -O2"
3635 else
3636 CFLAGS="-g"
3637 fi
3638 else
3639 if test "$GCC" = yes; then
3640 CFLAGS="-O2"
3641 else
3642 CFLAGS=
3643 fi
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3646 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3647 if ${ac_cv_prog_cc_c89+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 ac_cv_prog_cc_c89=no
3651 ac_save_CC=$CC
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654 #include <stdarg.h>
3655 #include <stdio.h>
3656 #include <sys/types.h>
3657 #include <sys/stat.h>
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3662 char **p;
3663 int i;
3664 {
3665 return p[i];
3666 }
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3668 {
3669 char *s;
3670 va_list v;
3671 va_start (v,p);
3672 s = g (p, va_arg (v,int));
3673 va_end (v);
3674 return s;
3675 }
3676
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3678 function prototypes and stuff, but not '\xHH' hex character constants.
3679 These don't provoke an error unfortunately, instead are silently treated
3680 as 'x'. The following induces an error, until -std is added to get
3681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3682 array size at least. It's necessary to write '\x00'==0 to get something
3683 that's true only with -std. */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3685
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687 inside strings and character constants. */
3688 #define FOO(x) 'x'
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3690
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3695 int argc;
3696 char **argv;
3697 int
3698 main ()
3699 {
3700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707 do
3708 CC="$ac_save_CC $ac_arg"
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_c89=$ac_arg
3711 fi
3712 rm -f core conftest.err conftest.$ac_objext
3713 test "x$ac_cv_prog_cc_c89" != "xno" && break
3714 done
3715 rm -f conftest.$ac_ext
3716 CC=$ac_save_CC
3717
3718 fi
3719 # AC_CACHE_VAL
3720 case "x$ac_cv_prog_cc_c89" in
3721 x)
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723 $as_echo "none needed" >&6; } ;;
3724 xno)
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726 $as_echo "unsupported" >&6; } ;;
3727 *)
3728 CC="$CC $ac_cv_prog_cc_c89"
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3731 esac
3732 if test "x$ac_cv_prog_cc_c89" != xno; then :
3733
3734 fi
3735
3736 ac_ext=c
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741
3742 depcc="$CC" am_compiler_list=
3743
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3745 $as_echo_n "checking dependency style of $depcc... " >&6; }
3746 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3750 # We make a subdir and do the tests there. Otherwise we can end up
3751 # making bogus files that we don't know about and never remove. For
3752 # instance it was reported that on HP-UX the gcc test will end up
3753 # making a dummy file named `D' -- because `-MD' means `put the output
3754 # in D'.
3755 mkdir conftest.dir
3756 # Copy depcomp to subdir because otherwise we won't find it if we're
3757 # using a relative directory.
3758 cp "$am_depcomp" conftest.dir
3759 cd conftest.dir
3760 # We will build objects and dependencies in a subdirectory because
3761 # it helps to detect inapplicable dependency modes. For instance
3762 # both Tru64's cc and ICC support -MD to output dependencies as a
3763 # side effect of compilation, but ICC will put the dependencies in
3764 # the current directory while Tru64 will put them in the object
3765 # directory.
3766 mkdir sub
3767
3768 am_cv_CC_dependencies_compiler_type=none
3769 if test "$am_compiler_list" = ""; then
3770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3771 fi
3772 am__universal=false
3773 case " $depcc " in #(
3774 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3775 esac
3776
3777 for depmode in $am_compiler_list; do
3778 # Setup a source with many dependencies, because some compilers
3779 # like to wrap large dependency lists on column 80 (with \), and
3780 # we should not choose a depcomp mode which is confused by this.
3781 #
3782 # We need to recreate these files for each test, as the compiler may
3783 # overwrite some of them when testing with obscure command lines.
3784 # This happens at least with the AIX C compiler.
3785 : > sub/conftest.c
3786 for i in 1 2 3 4 5 6; do
3787 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3788 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3789 # Solaris 8's {/usr,}/bin/sh.
3790 touch sub/conftst$i.h
3791 done
3792 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3793
3794 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3795 # mode. It turns out that the SunPro C++ compiler does not properly
3796 # handle `-M -o', and we need to detect this. Also, some Intel
3797 # versions had trouble with output in subdirs
3798 am__obj=sub/conftest.${OBJEXT-o}
3799 am__minus_obj="-o $am__obj"
3800 case $depmode in
3801 gcc)
3802 # This depmode causes a compiler race in universal mode.
3803 test "$am__universal" = false || continue
3804 ;;
3805 nosideeffect)
3806 # after this tag, mechanisms are not by side-effect, so they'll
3807 # only be used when explicitly requested
3808 if test "x$enable_dependency_tracking" = xyes; then
3809 continue
3810 else
3811 break
3812 fi
3813 ;;
3814 msvisualcpp | msvcmsys)
3815 # This compiler won't grok `-c -o', but also, the minuso test has
3816 # not run yet. These depmodes are late enough in the game, and
3817 # so weak that their functioning should not be impacted.
3818 am__obj=conftest.${OBJEXT-o}
3819 am__minus_obj=
3820 ;;
3821 none) break ;;
3822 esac
3823 if depmode=$depmode \
3824 source=sub/conftest.c object=$am__obj \
3825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3826 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3827 >/dev/null 2>conftest.err &&
3828 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3829 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3830 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3831 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3832 # icc doesn't choke on unknown options, it will just issue warnings
3833 # or remarks (even with -Werror). So we grep stderr for any message
3834 # that says an option was ignored or not supported.
3835 # When given -MP, icc 7.0 and 7.1 complain thusly:
3836 # icc: Command line warning: ignoring option '-M'; no argument required
3837 # The diagnosis changed in icc 8.0:
3838 # icc: Command line remark: option '-MP' not supported
3839 if (grep 'ignoring option' conftest.err ||
3840 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3841 am_cv_CC_dependencies_compiler_type=$depmode
3842 break
3843 fi
3844 fi
3845 done
3846
3847 cd ..
3848 rm -rf conftest.dir
3849 else
3850 am_cv_CC_dependencies_compiler_type=none
3851 fi
3852
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3855 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3856 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3857
3858 if
3859 test "x$enable_dependency_tracking" != xno \
3860 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3861 am__fastdepCC_TRUE=
3862 am__fastdepCC_FALSE='#'
3863 else
3864 am__fastdepCC_TRUE='#'
3865 am__fastdepCC_FALSE=
3866 fi
3867
3868
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3870 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3871 if ${ac_cv_prog_cc_c99+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 ac_cv_prog_cc_c99=no
3875 ac_save_CC=$CC
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <stdarg.h>
3879 #include <stdbool.h>
3880 #include <stdlib.h>
3881 #include <wchar.h>
3882 #include <stdio.h>
3883
3884 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3885 #define debug(...) fprintf (stderr, __VA_ARGS__)
3886 #define showlist(...) puts (#__VA_ARGS__)
3887 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3888 static void
3889 test_varargs_macros (void)
3890 {
3891 int x = 1234;
3892 int y = 5678;
3893 debug ("Flag");
3894 debug ("X = %d\n", x);
3895 showlist (The first, second, and third items.);
3896 report (x>y, "x is %d but y is %d", x, y);
3897 }
3898
3899 // Check long long types.
3900 #define BIG64 18446744073709551615ull
3901 #define BIG32 4294967295ul
3902 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3903 #if !BIG_OK
3904 your preprocessor is broken;
3905 #endif
3906 #if BIG_OK
3907 #else
3908 your preprocessor is broken;
3909 #endif
3910 static long long int bignum = -9223372036854775807LL;
3911 static unsigned long long int ubignum = BIG64;
3912
3913 struct incomplete_array
3914 {
3915 int datasize;
3916 double data[];
3917 };
3918
3919 struct named_init {
3920 int number;
3921 const wchar_t *name;
3922 double average;
3923 };
3924
3925 typedef const char *ccp;
3926
3927 static inline int
3928 test_restrict (ccp restrict text)
3929 {
3930 // See if C++-style comments work.
3931 // Iterate through items via the restricted pointer.
3932 // Also check for declarations in for loops.
3933 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3934 continue;
3935 return 0;
3936 }
3937
3938 // Check varargs and va_copy.
3939 static void
3940 test_varargs (const char *format, ...)
3941 {
3942 va_list args;
3943 va_start (args, format);
3944 va_list args_copy;
3945 va_copy (args_copy, args);
3946
3947 const char *str;
3948 int number;
3949 float fnumber;
3950
3951 while (*format)
3952 {
3953 switch (*format++)
3954 {
3955 case 's': // string
3956 str = va_arg (args_copy, const char *);
3957 break;
3958 case 'd': // int
3959 number = va_arg (args_copy, int);
3960 break;
3961 case 'f': // float
3962 fnumber = va_arg (args_copy, double);
3963 break;
3964 default:
3965 break;
3966 }
3967 }
3968 va_end (args_copy);
3969 va_end (args);
3970 }
3971
3972 int
3973 main ()
3974 {
3975
3976 // Check bool.
3977 _Bool success = false;
3978
3979 // Check restrict.
3980 if (test_restrict ("String literal") == 0)
3981 success = true;
3982 char *restrict newvar = "Another string";
3983
3984 // Check varargs.
3985 test_varargs ("s, d' f .", "string", 65, 34.234);
3986 test_varargs_macros ();
3987
3988 // Check flexible array members.
3989 struct incomplete_array *ia =
3990 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3991 ia->datasize = 10;
3992 for (int i = 0; i < ia->datasize; ++i)
3993 ia->data[i] = i * 1.234;
3994
3995 // Check named initializers.
3996 struct named_init ni = {
3997 .number = 34,
3998 .name = L"Test wide string",
3999 .average = 543.34343,
4000 };
4001
4002 ni.number = 58;
4003
4004 int dynamic_array[ni.number];
4005 dynamic_array[ni.number - 1] = 543;
4006
4007 // work around unused variable warnings
4008 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4009 || dynamic_array[ni.number - 1] != 543);
4010
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4016 do
4017 CC="$ac_save_CC $ac_arg"
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_prog_cc_c99=$ac_arg
4020 fi
4021 rm -f core conftest.err conftest.$ac_objext
4022 test "x$ac_cv_prog_cc_c99" != "xno" && break
4023 done
4024 rm -f conftest.$ac_ext
4025 CC=$ac_save_CC
4026
4027 fi
4028 # AC_CACHE_VAL
4029 case "x$ac_cv_prog_cc_c99" in
4030 x)
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4032 $as_echo "none needed" >&6; } ;;
4033 xno)
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4035 $as_echo "unsupported" >&6; } ;;
4036 *)
4037 CC="$CC $ac_cv_prog_cc_c99"
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4039 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4040 esac
4041 if test "x$ac_cv_prog_cc_c99" != xno; then :
4042
4043 fi
4044
4045
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 how to run the C preprocessor" >&5
4053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4054 # On Suns, sometimes $CPP names a directory.
4055 if test -n "$CPP" && test -d "$CPP"; then
4056 CPP=
4057 fi
4058 if test -z "$CPP"; then
4059 if ${ac_cv_prog_CPP+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 # Double quotes because CPP needs to be expanded
4063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4064 do
4065 ac_preproc_ok=false
4066 for ac_c_preproc_warn_flag in '' yes
4067 do
4068 # Use a header file that comes with gcc, so configuring glibc
4069 # with a fresh cross-compiler works.
4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071 # <limits.h> exists even on freestanding compilers.
4072 # On the NeXT, cc -E runs the code through the compiler's parser,
4073 # not just through cpp. "Syntax error" is here to catch this case.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4081 Syntax error
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4084
4085 else
4086 # Broken: fails on valid input.
4087 continue
4088 fi
4089 rm -f conftest.err conftest.i conftest.$ac_ext
4090
4091 # OK, works on sane cases. Now check whether nonexistent headers
4092 # can be detected and how.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <ac_nonexistent.h>
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098 # Broken: success on invalid input.
4099 continue
4100 else
4101 # Passes both tests.
4102 ac_preproc_ok=:
4103 break
4104 fi
4105 rm -f conftest.err conftest.i conftest.$ac_ext
4106
4107 done
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.i conftest.err conftest.$ac_ext
4110 if $ac_preproc_ok; then :
4111 break
4112 fi
4113
4114 done
4115 ac_cv_prog_CPP=$CPP
4116
4117 fi
4118 CPP=$ac_cv_prog_CPP
4119 else
4120 ac_cv_prog_CPP=$CPP
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4123 $as_echo "$CPP" >&6; }
4124 ac_preproc_ok=false
4125 for ac_c_preproc_warn_flag in '' yes
4126 do
4127 # Use a header file that comes with gcc, so configuring glibc
4128 # with a fresh cross-compiler works.
4129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4130 # <limits.h> exists even on freestanding compilers.
4131 # On the NeXT, cc -E runs the code through the compiler's parser,
4132 # not just through cpp. "Syntax error" is here to catch this case.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #ifdef __STDC__
4136 # include <limits.h>
4137 #else
4138 # include <assert.h>
4139 #endif
4140 Syntax error
4141 _ACEOF
4142 if ac_fn_c_try_cpp "$LINENO"; then :
4143
4144 else
4145 # Broken: fails on valid input.
4146 continue
4147 fi
4148 rm -f conftest.err conftest.i conftest.$ac_ext
4149
4150 # OK, works on sane cases. Now check whether nonexistent headers
4151 # can be detected and how.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <ac_nonexistent.h>
4155 _ACEOF
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4157 # Broken: success on invalid input.
4158 continue
4159 else
4160 # Passes both tests.
4161 ac_preproc_ok=:
4162 break
4163 fi
4164 rm -f conftest.err conftest.i conftest.$ac_ext
4165
4166 done
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.i conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then :
4170
4171 else
4172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4175 See \`config.log' for more details" "$LINENO" 5; }
4176 fi
4177
4178 ac_ext=c
4179 ac_cpp='$CPP $CPPFLAGS'
4180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4186 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4187 if ${ac_cv_path_GREP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 if test -z "$GREP"; then
4191 ac_path_GREP_found=false
4192 # Loop through the user's path and test for each of PROGNAME-LIST
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4195 do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_prog in grep ggrep; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4201 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4202 # Check for GNU ac_path_GREP and select it if it is found.
4203 # Check for GNU $ac_path_GREP
4204 case `"$ac_path_GREP" --version 2>&1` in
4205 *GNU*)
4206 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4207 *)
4208 ac_count=0
4209 $as_echo_n 0123456789 >"conftest.in"
4210 while :
4211 do
4212 cat "conftest.in" "conftest.in" >"conftest.tmp"
4213 mv "conftest.tmp" "conftest.in"
4214 cp "conftest.in" "conftest.nl"
4215 $as_echo 'GREP' >> "conftest.nl"
4216 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218 as_fn_arith $ac_count + 1 && ac_count=$as_val
4219 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4220 # Best one so far, save it but keep looking for a better one
4221 ac_cv_path_GREP="$ac_path_GREP"
4222 ac_path_GREP_max=$ac_count
4223 fi
4224 # 10*(2^10) chars as input seems more than enough
4225 test $ac_count -gt 10 && break
4226 done
4227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4228 esac
4229
4230 $ac_path_GREP_found && break 3
4231 done
4232 done
4233 done
4234 IFS=$as_save_IFS
4235 if test -z "$ac_cv_path_GREP"; then
4236 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4237 fi
4238 else
4239 ac_cv_path_GREP=$GREP
4240 fi
4241
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4244 $as_echo "$ac_cv_path_GREP" >&6; }
4245 GREP="$ac_cv_path_GREP"
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4249 $as_echo_n "checking for egrep... " >&6; }
4250 if ${ac_cv_path_EGREP+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4254 then ac_cv_path_EGREP="$GREP -E"
4255 else
4256 if test -z "$EGREP"; then
4257 ac_path_EGREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in egrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4267 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4268 # Check for GNU ac_path_EGREP and select it if it is found.
4269 # Check for GNU $ac_path_EGREP
4270 case `"$ac_path_EGREP" --version 2>&1` in
4271 *GNU*)
4272 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4273 *)
4274 ac_count=0
4275 $as_echo_n 0123456789 >"conftest.in"
4276 while :
4277 do
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'EGREP' >> "conftest.nl"
4282 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_EGREP="$ac_path_EGREP"
4288 ac_path_EGREP_max=$ac_count
4289 fi
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4292 done
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4295
4296 $ac_path_EGREP_found && break 3
4297 done
4298 done
4299 done
4300 IFS=$as_save_IFS
4301 if test -z "$ac_cv_path_EGREP"; then
4302 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303 fi
4304 else
4305 ac_cv_path_EGREP=$EGREP
4306 fi
4307
4308 fi
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4311 $as_echo "$ac_cv_path_EGREP" >&6; }
4312 EGREP="$ac_cv_path_EGREP"
4313
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4316 $as_echo_n "checking for ANSI C header files... " >&6; }
4317 if ${ac_cv_header_stdc+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 #include <stdlib.h>
4323 #include <stdarg.h>
4324 #include <string.h>
4325 #include <float.h>
4326
4327 int
4328 main ()
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336 ac_cv_header_stdc=yes
4337 else
4338 ac_cv_header_stdc=no
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341
4342 if test $ac_cv_header_stdc = yes; then
4343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346 #include <string.h>
4347
4348 _ACEOF
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350 $EGREP "memchr" >/dev/null 2>&1; then :
4351
4352 else
4353 ac_cv_header_stdc=no
4354 fi
4355 rm -f conftest*
4356
4357 fi
4358
4359 if test $ac_cv_header_stdc = yes; then
4360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363 #include <stdlib.h>
4364
4365 _ACEOF
4366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4367 $EGREP "free" >/dev/null 2>&1; then :
4368
4369 else
4370 ac_cv_header_stdc=no
4371 fi
4372 rm -f conftest*
4373
4374 fi
4375
4376 if test $ac_cv_header_stdc = yes; then
4377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4378 if test "$cross_compiling" = yes; then :
4379 :
4380 else
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <ctype.h>
4384 #include <stdlib.h>
4385 #if ((' ' & 0x0FF) == 0x020)
4386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4388 #else
4389 # define ISLOWER(c) \
4390 (('a' <= (c) && (c) <= 'i') \
4391 || ('j' <= (c) && (c) <= 'r') \
4392 || ('s' <= (c) && (c) <= 'z'))
4393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4394 #endif
4395
4396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4397 int
4398 main ()
4399 {
4400 int i;
4401 for (i = 0; i < 256; i++)
4402 if (XOR (islower (i), ISLOWER (i))
4403 || toupper (i) != TOUPPER (i))
4404 return 2;
4405 return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_c_try_run "$LINENO"; then :
4409
4410 else
4411 ac_cv_header_stdc=no
4412 fi
4413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4414 conftest.$ac_objext conftest.beam conftest.$ac_ext
4415 fi
4416
4417 fi
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4420 $as_echo "$ac_cv_header_stdc" >&6; }
4421 if test $ac_cv_header_stdc = yes; then
4422
4423 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4424
4425 fi
4426
4427 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4428 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4429 inttypes.h stdint.h unistd.h
4430 do :
4431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4432 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4433 "
4434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4435 cat >>confdefs.h <<_ACEOF
4436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4437 _ACEOF
4438
4439 fi
4440
4441 done
4442
4443
4444
4445
4446 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4447 if test -n "$ac_tool_prefix"; then
4448 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4449 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 case $PKG_CONFIG in
4456 [\\/]* | ?:[\\/]*)
4457 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4458 ;;
4459 *)
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4470 fi
4471 done
4472 done
4473 IFS=$as_save_IFS
4474
4475 ;;
4476 esac
4477 fi
4478 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4479 if test -n "$PKG_CONFIG"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4481 $as_echo "$PKG_CONFIG" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487
4488 fi
4489 if test -z "$ac_cv_path_PKG_CONFIG"; then
4490 ac_pt_PKG_CONFIG=$PKG_CONFIG
4491 # Extract the first word of "pkg-config", so it can be a program name with args.
4492 set dummy pkg-config; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 case $ac_pt_PKG_CONFIG in
4499 [\\/]* | ?:[\\/]*)
4500 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4501 ;;
4502 *)
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4513 fi
4514 done
4515 done
4516 IFS=$as_save_IFS
4517
4518 ;;
4519 esac
4520 fi
4521 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4522 if test -n "$ac_pt_PKG_CONFIG"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4524 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4525 else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4528 fi
4529
4530 if test "x$ac_pt_PKG_CONFIG" = x; then
4531 PKG_CONFIG=""
4532 else
4533 case $cross_compiling:$ac_tool_warned in
4534 yes:)
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4537 ac_tool_warned=yes ;;
4538 esac
4539 PKG_CONFIG=$ac_pt_PKG_CONFIG
4540 fi
4541 else
4542 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4543 fi
4544
4545 fi
4546 if test -n "$PKG_CONFIG"; then
4547 _pkg_min_version=0.9.0
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4549 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4550 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4553 else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4556 PKG_CONFIG=""
4557 fi
4558
4559 fi
4560 # Make sure we can run config.sub.
4561 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4562 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4565 $as_echo_n "checking build system type... " >&6; }
4566 if ${ac_cv_build+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_build_alias=$build_alias
4570 test "x$ac_build_alias" = x &&
4571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4572 test "x$ac_build_alias" = x &&
4573 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4574 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4576
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4579 $as_echo "$ac_cv_build" >&6; }
4580 case $ac_cv_build in
4581 *-*-*) ;;
4582 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4583 esac
4584 build=$ac_cv_build
4585 ac_save_IFS=$IFS; IFS='-'
4586 set x $ac_cv_build
4587 shift
4588 build_cpu=$1
4589 build_vendor=$2
4590 shift; shift
4591 # Remember, the first character of IFS is used to create $*,
4592 # except with old shells:
4593 build_os=$*
4594 IFS=$ac_save_IFS
4595 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4599 $as_echo_n "checking host system type... " >&6; }
4600 if ${ac_cv_host+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test "x$host_alias" = x; then
4604 ac_cv_host=$ac_cv_build
4605 else
4606 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4608 fi
4609
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4612 $as_echo "$ac_cv_host" >&6; }
4613 case $ac_cv_host in
4614 *-*-*) ;;
4615 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4616 esac
4617 host=$ac_cv_host
4618 ac_save_IFS=$IFS; IFS='-'
4619 set x $ac_cv_host
4620 shift
4621 host_cpu=$1
4622 host_vendor=$2
4623 shift; shift
4624 # Remember, the first character of IFS is used to create $*,
4625 # except with old shells:
4626 host_os=$*
4627 IFS=$ac_save_IFS
4628 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4632 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4633 if ${ac_cv_path_SED+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4637 for ac_i in 1 2 3 4 5 6 7; do
4638 ac_script="$ac_script$as_nl$ac_script"
4639 done
4640 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4641 { ac_script=; unset ac_script;}
4642 if test -z "$SED"; then
4643 ac_path_SED_found=false
4644 # Loop through the user's path and test for each of PROGNAME-LIST
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_prog in sed gsed; do
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4653 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4654 # Check for GNU ac_path_SED and select it if it is found.
4655 # Check for GNU $ac_path_SED
4656 case `"$ac_path_SED" --version 2>&1` in
4657 *GNU*)
4658 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4659 *)
4660 ac_count=0
4661 $as_echo_n 0123456789 >"conftest.in"
4662 while :
4663 do
4664 cat "conftest.in" "conftest.in" >"conftest.tmp"
4665 mv "conftest.tmp" "conftest.in"
4666 cp "conftest.in" "conftest.nl"
4667 $as_echo '' >> "conftest.nl"
4668 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670 as_fn_arith $ac_count + 1 && ac_count=$as_val
4671 if test $ac_count -gt ${ac_path_SED_max-0}; then
4672 # Best one so far, save it but keep looking for a better one
4673 ac_cv_path_SED="$ac_path_SED"
4674 ac_path_SED_max=$ac_count
4675 fi
4676 # 10*(2^10) chars as input seems more than enough
4677 test $ac_count -gt 10 && break
4678 done
4679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680 esac
4681
4682 $ac_path_SED_found && break 3
4683 done
4684 done
4685 done
4686 IFS=$as_save_IFS
4687 if test -z "$ac_cv_path_SED"; then
4688 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4689 fi
4690 else
4691 ac_cv_path_SED=$SED
4692 fi
4693
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4696 $as_echo "$ac_cv_path_SED" >&6; }
4697 SED="$ac_cv_path_SED"
4698 rm -f conftest.sed
4699
4700
4701
4702
4703
4704 if test "x$GCC" = xyes ; then
4705 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4706 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4707 -Wbad-function-cast -Wformat=2"
4708 case `$CC -dumpversion` in
4709 3.4.* | 4.*)
4710 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4711 ;;
4712 esac
4713 else
4714 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4715 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4716 SUNCC="yes"
4717 else
4718 SUNCC="no"
4719 fi
4720
4721 if test "x$SUNCC" = "xyes"; then
4722 CWARNFLAGS="-v"
4723 fi
4724 fi
4725
4726
4727
4728 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4729
4730
4731
4732 # Check whether --enable-strict-compilation was given.
4733 if test "${enable_strict_compilation+set}" = set; then :
4734 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4735 else
4736 STRICT_COMPILE=no
4737 fi
4738
4739 if test "x$STRICT_COMPILE" = "xyes"; then
4740 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4741 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4742 SUNCC="yes"
4743 else
4744 SUNCC="no"
4745 fi
4746
4747 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4748 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4749 INTELCC="yes"
4750 else
4751 INTELCC="no"
4752 fi
4753
4754 if test "x$GCC" = xyes ; then
4755 STRICT_CFLAGS="-pedantic -Werror"
4756 elif test "x$SUNCC" = "xyes"; then
4757 STRICT_CFLAGS="-errwarn"
4758 elif test "x$INTELCC" = "xyes"; then
4759 STRICT_CFLAGS="-Werror"
4760 fi
4761 fi
4762 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4763
4764
4765
4766
4767 cat >>confdefs.h <<_ACEOF
4768 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4769 _ACEOF
4770
4771 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4772 if test "x$PVM" = "x"; then
4773 PVM="0"
4774 fi
4775
4776 cat >>confdefs.h <<_ACEOF
4777 #define PACKAGE_VERSION_MINOR $PVM
4778 _ACEOF
4779
4780 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4781 if test "x$PVP" = "x"; then
4782 PVP="0"
4783 fi
4784
4785 cat >>confdefs.h <<_ACEOF
4786 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4787 _ACEOF
4788
4789
4790
4791 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4792 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4793 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4794 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4795
4796
4797
4798
4799 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4800 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4801 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4802 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4803 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4804
4805
4806
4807
4808
4809
4810 if test x$APP_MAN_SUFFIX = x ; then
4811 APP_MAN_SUFFIX=1
4812 fi
4813 if test x$APP_MAN_DIR = x ; then
4814 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4815 fi
4816
4817 if test x$LIB_MAN_SUFFIX = x ; then
4818 LIB_MAN_SUFFIX=3
4819 fi
4820 if test x$LIB_MAN_DIR = x ; then
4821 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4822 fi
4823
4824 if test x$FILE_MAN_SUFFIX = x ; then
4825 case $host_os in
4826 solaris*) FILE_MAN_SUFFIX=4 ;;
4827 *) FILE_MAN_SUFFIX=5 ;;
4828 esac
4829 fi
4830 if test x$FILE_MAN_DIR = x ; then
4831 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4832 fi
4833
4834 if test x$MISC_MAN_SUFFIX = x ; then
4835 case $host_os in
4836 solaris*) MISC_MAN_SUFFIX=5 ;;
4837 *) MISC_MAN_SUFFIX=7 ;;
4838 esac
4839 fi
4840 if test x$MISC_MAN_DIR = x ; then
4841 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4842 fi
4843
4844 if test x$DRIVER_MAN_SUFFIX = x ; then
4845 case $host_os in
4846 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4847 *) DRIVER_MAN_SUFFIX=4 ;;
4848 esac
4849 fi
4850 if test x$DRIVER_MAN_DIR = x ; then
4851 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4852 fi
4853
4854 if test x$ADMIN_MAN_SUFFIX = x ; then
4855 case $host_os in
4856 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4857 *) ADMIN_MAN_SUFFIX=8 ;;
4858 esac
4859 fi
4860 if test x$ADMIN_MAN_DIR = x ; then
4861 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4862 fi
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878 XORG_MAN_PAGE="X Version 11"
4879
4880 MAN_SUBSTS="\
4881 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4882 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4883 -e 's|__xservername__|Xorg|g' \
4884 -e 's|__xconfigfile__|xorg.conf|g' \
4885 -e 's|__projectroot__|\$(prefix)|g' \
4886 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4887 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4888 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4889 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4890 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4891 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4892 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4893
4894
4895
4896 # Check whether --enable-silent-rules was given.
4897 if test "${enable_silent_rules+set}" = set; then :
4898 enableval=$enable_silent_rules;
4899 fi
4900
4901 case $enable_silent_rules in
4902 yes) AM_DEFAULT_VERBOSITY=0;;
4903 no) AM_DEFAULT_VERBOSITY=1;;
4904 *) AM_DEFAULT_VERBOSITY=0;;
4905 esac
4906 AM_BACKSLASH='\'
4907
4908
4909 ac_config_headers="$ac_config_headers config.h"
4910
4911
4912 # checks for progs
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918 if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_CC+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$CC"; then
4927 ac_cv_prog_CC="$CC" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940 done
4941 done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 CC=$ac_cv_prog_CC
4947 if test -n "$CC"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4949 $as_echo "$CC" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954
4955
4956 fi
4957 if test -z "$ac_cv_prog_CC"; then
4958 ac_ct_CC=$CC
4959 # Extract the first word of "gcc", so it can be a program name with args.
4960 set dummy gcc; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$ac_ct_CC"; then
4967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_ac_ct_CC="gcc"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4979 fi
4980 done
4981 done
4982 IFS=$as_save_IFS
4983
4984 fi
4985 fi
4986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4987 if test -n "$ac_ct_CC"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4989 $as_echo "$ac_ct_CC" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4993 fi
4994
4995 if test "x$ac_ct_CC" = x; then
4996 CC=""
4997 else
4998 case $cross_compiling:$ac_tool_warned in
4999 yes:)
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5002 ac_tool_warned=yes ;;
5003 esac
5004 CC=$ac_ct_CC
5005 fi
5006 else
5007 CC="$ac_cv_prog_CC"
5008 fi
5009
5010 if test -z "$CC"; then
5011 if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5013 set dummy ${ac_tool_prefix}cc; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_CC+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -n "$CC"; then
5020 ac_cv_prog_CC="$CC" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_CC="${ac_tool_prefix}cc"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5032 fi
5033 done
5034 done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 CC=$ac_cv_prog_CC
5040 if test -n "$CC"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5042 $as_echo "$CC" >&6; }
5043 else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048
5049 fi
5050 fi
5051 if test -z "$CC"; then
5052 # Extract the first word of "cc", so it can be a program name with args.
5053 set dummy cc; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_CC+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -n "$CC"; then
5060 ac_cv_prog_CC="$CC" # Let the user override the test.
5061 else
5062 ac_prog_rejected=no
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5071 ac_prog_rejected=yes
5072 continue
5073 fi
5074 ac_cv_prog_CC="cc"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078 done
5079 done
5080 IFS=$as_save_IFS
5081
5082 if test $ac_prog_rejected = yes; then
5083 # We found a bogon in the path, so make sure we never use it.
5084 set dummy $ac_cv_prog_CC
5085 shift
5086 if test $# != 0; then
5087 # We chose a different compiler from the bogus one.
5088 # However, it has the same basename, so the bogon will be chosen
5089 # first if we set CC to just the basename; use the full file name.
5090 shift
5091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5092 fi
5093 fi
5094 fi
5095 fi
5096 CC=$ac_cv_prog_CC
5097 if test -n "$CC"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5099 $as_echo "$CC" >&6; }
5100 else
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5103 fi
5104
5105
5106 fi
5107 if test -z "$CC"; then
5108 if test -n "$ac_tool_prefix"; then
5109 for ac_prog in cl.exe
5110 do
5111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_CC+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$CC"; then
5119 ac_cv_prog_CC="$CC" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 CC=$ac_cv_prog_CC
5139 if test -n "$CC"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5141 $as_echo "$CC" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148 test -n "$CC" && break
5149 done
5150 fi
5151 if test -z "$CC"; then
5152 ac_ct_CC=$CC
5153 for ac_prog in cl.exe
5154 do
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if test -n "$ac_ct_CC"; then
5163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_prog_ac_ct_CC="$ac_prog"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5183 if test -n "$ac_ct_CC"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5185 $as_echo "$ac_ct_CC" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192 test -n "$ac_ct_CC" && break
5193 done
5194
5195 if test "x$ac_ct_CC" = x; then
5196 CC=""
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199 yes:)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204 CC=$ac_ct_CC
5205 fi
5206 fi
5207
5208 fi
5209
5210
5211 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213 as_fn_error $? "no acceptable C compiler found in \$PATH
5214 See \`config.log' for more details" "$LINENO" 5; }
5215
5216 # Provide some information about the compiler.
5217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5218 set X $ac_compile
5219 ac_compiler=$2
5220 for ac_option in --version -v -V -qversion; do
5221 { { ac_try="$ac_compiler $ac_option >&5"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5227 $as_echo "$ac_try_echo"; } >&5
5228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5229 ac_status=$?
5230 if test -s conftest.err; then
5231 sed '10a\
5232 ... rest of stderr output deleted ...
5233 10q' conftest.err >conftest.er1
5234 cat conftest.er1 >&5
5235 fi
5236 rm -f conftest.er1 conftest.err
5237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5238 test $ac_status = 0; }
5239 done
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5242 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5243 if ${ac_cv_c_compiler_gnu+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248
5249 int
5250 main ()
5251 {
5252 #ifndef __GNUC__
5253 choke me
5254 #endif
5255
5256 ;
5257 return 0;
5258 }
5259 _ACEOF
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261 ac_compiler_gnu=yes
5262 else
5263 ac_compiler_gnu=no
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5267
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5270 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5271 if test $ac_compiler_gnu = yes; then
5272 GCC=yes
5273 else
5274 GCC=
5275 fi
5276 ac_test_CFLAGS=${CFLAGS+set}
5277 ac_save_CFLAGS=$CFLAGS
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5279 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5280 if ${ac_cv_prog_cc_g+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 ac_save_c_werror_flag=$ac_c_werror_flag
5284 ac_c_werror_flag=yes
5285 ac_cv_prog_cc_g=no
5286 CFLAGS="-g"
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289
5290 int
5291 main ()
5292 {
5293
5294 ;
5295 return 0;
5296 }
5297 _ACEOF
5298 if ac_fn_c_try_compile "$LINENO"; then :
5299 ac_cv_prog_cc_g=yes
5300 else
5301 CFLAGS=""
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304
5305 int
5306 main ()
5307 {
5308
5309 ;
5310 return 0;
5311 }
5312 _ACEOF
5313 if ac_fn_c_try_compile "$LINENO"; then :
5314
5315 else
5316 ac_c_werror_flag=$ac_save_c_werror_flag
5317 CFLAGS="-g"
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320
5321 int
5322 main ()
5323 {
5324
5325 ;
5326 return 0;
5327 }
5328 _ACEOF
5329 if ac_fn_c_try_compile "$LINENO"; then :
5330 ac_cv_prog_cc_g=yes
5331 fi
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 ac_c_werror_flag=$ac_save_c_werror_flag
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5340 $as_echo "$ac_cv_prog_cc_g" >&6; }
5341 if test "$ac_test_CFLAGS" = set; then
5342 CFLAGS=$ac_save_CFLAGS
5343 elif test $ac_cv_prog_cc_g = yes; then
5344 if test "$GCC" = yes; then
5345 CFLAGS="-g -O2"
5346 else
5347 CFLAGS="-g"
5348 fi
5349 else
5350 if test "$GCC" = yes; then
5351 CFLAGS="-O2"
5352 else
5353 CFLAGS=
5354 fi
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5357 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5358 if ${ac_cv_prog_cc_c89+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 ac_cv_prog_cc_c89=no
5362 ac_save_CC=$CC
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 #include <stdarg.h>
5366 #include <stdio.h>
5367 #include <sys/types.h>
5368 #include <sys/stat.h>
5369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5370 struct buf { int x; };
5371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5372 static char *e (p, i)
5373 char **p;
5374 int i;
5375 {
5376 return p[i];
5377 }
5378 static char *f (char * (*g) (char **, int), char **p, ...)
5379 {
5380 char *s;
5381 va_list v;
5382 va_start (v,p);
5383 s = g (p, va_arg (v,int));
5384 va_end (v);
5385 return s;
5386 }
5387
5388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5389 function prototypes and stuff, but not '\xHH' hex character constants.
5390 These don't provoke an error unfortunately, instead are silently treated
5391 as 'x'. The following induces an error, until -std is added to get
5392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5393 array size at least. It's necessary to write '\x00'==0 to get something
5394 that's true only with -std. */
5395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5396
5397 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5398 inside strings and character constants. */
5399 #define FOO(x) 'x'
5400 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5401
5402 int test (int i, double x);
5403 struct s1 {int (*f) (int a);};
5404 struct s2 {int (*f) (double a);};
5405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5406 int argc;
5407 char **argv;
5408 int
5409 main ()
5410 {
5411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5412 ;
5413 return 0;
5414 }
5415 _ACEOF
5416 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5418 do
5419 CC="$ac_save_CC $ac_arg"
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 ac_cv_prog_cc_c89=$ac_arg
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext
5424 test "x$ac_cv_prog_cc_c89" != "xno" && break
5425 done
5426 rm -f conftest.$ac_ext
5427 CC=$ac_save_CC
5428
5429 fi
5430 # AC_CACHE_VAL
5431 case "x$ac_cv_prog_cc_c89" in
5432 x)
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5434 $as_echo "none needed" >&6; } ;;
5435 xno)
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5437 $as_echo "unsupported" >&6; } ;;
5438 *)
5439 CC="$CC $ac_cv_prog_cc_c89"
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5441 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5442 esac
5443 if test "x$ac_cv_prog_cc_c89" != xno; then :
5444
5445 fi
5446
5447 ac_ext=c
5448 ac_cpp='$CPP $CPPFLAGS'
5449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452
5453 depcc="$CC" am_compiler_list=
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5456 $as_echo_n "checking dependency style of $depcc... " >&6; }
5457 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5461 # We make a subdir and do the tests there. Otherwise we can end up
5462 # making bogus files that we don't know about and never remove. For
5463 # instance it was reported that on HP-UX the gcc test will end up
5464 # making a dummy file named `D' -- because `-MD' means `put the output
5465 # in D'.
5466 mkdir conftest.dir
5467 # Copy depcomp to subdir because otherwise we won't find it if we're
5468 # using a relative directory.
5469 cp "$am_depcomp" conftest.dir
5470 cd conftest.dir
5471 # We will build objects and dependencies in a subdirectory because
5472 # it helps to detect inapplicable dependency modes. For instance
5473 # both Tru64's cc and ICC support -MD to output dependencies as a
5474 # side effect of compilation, but ICC will put the dependencies in
5475 # the current directory while Tru64 will put them in the object
5476 # directory.
5477 mkdir sub
5478
5479 am_cv_CC_dependencies_compiler_type=none
5480 if test "$am_compiler_list" = ""; then
5481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5482 fi
5483 am__universal=false
5484 case " $depcc " in #(
5485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5486 esac
5487
5488 for depmode in $am_compiler_list; do
5489 # Setup a source with many dependencies, because some compilers
5490 # like to wrap large dependency lists on column 80 (with \), and
5491 # we should not choose a depcomp mode which is confused by this.
5492 #
5493 # We need to recreate these files for each test, as the compiler may
5494 # overwrite some of them when testing with obscure command lines.
5495 # This happens at least with the AIX C compiler.
5496 : > sub/conftest.c
5497 for i in 1 2 3 4 5 6; do
5498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5499 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5500 # Solaris 8's {/usr,}/bin/sh.
5501 touch sub/conftst$i.h
5502 done
5503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5504
5505 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5506 # mode. It turns out that the SunPro C++ compiler does not properly
5507 # handle `-M -o', and we need to detect this. Also, some Intel
5508 # versions had trouble with output in subdirs
5509 am__obj=sub/conftest.${OBJEXT-o}
5510 am__minus_obj="-o $am__obj"
5511 case $depmode in
5512 gcc)
5513 # This depmode causes a compiler race in universal mode.
5514 test "$am__universal" = false || continue
5515 ;;
5516 nosideeffect)
5517 # after this tag, mechanisms are not by side-effect, so they'll
5518 # only be used when explicitly requested
5519 if test "x$enable_dependency_tracking" = xyes; then
5520 continue
5521 else
5522 break
5523 fi
5524 ;;
5525 msvisualcpp | msvcmsys)
5526 # This compiler won't grok `-c -o', but also, the minuso test has
5527 # not run yet. These depmodes are late enough in the game, and
5528 # so weak that their functioning should not be impacted.
5529 am__obj=conftest.${OBJEXT-o}
5530 am__minus_obj=
5531 ;;
5532 none) break ;;
5533 esac
5534 if depmode=$depmode \
5535 source=sub/conftest.c object=$am__obj \
5536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5538 >/dev/null 2>conftest.err &&
5539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5543 # icc doesn't choke on unknown options, it will just issue warnings
5544 # or remarks (even with -Werror). So we grep stderr for any message
5545 # that says an option was ignored or not supported.
5546 # When given -MP, icc 7.0 and 7.1 complain thusly:
5547 # icc: Command line warning: ignoring option '-M'; no argument required
5548 # The diagnosis changed in icc 8.0:
5549 # icc: Command line remark: option '-MP' not supported
5550 if (grep 'ignoring option' conftest.err ||
5551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5552 am_cv_CC_dependencies_compiler_type=$depmode
5553 break
5554 fi
5555 fi
5556 done
5557
5558 cd ..
5559 rm -rf conftest.dir
5560 else
5561 am_cv_CC_dependencies_compiler_type=none
5562 fi
5563
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5566 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5567 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5568
5569 if
5570 test "x$enable_dependency_tracking" != xno \
5571 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5572 am__fastdepCC_TRUE=
5573 am__fastdepCC_FALSE='#'
5574 else
5575 am__fastdepCC_TRUE='#'
5576 am__fastdepCC_FALSE=
5577 fi
5578
5579
5580 case `pwd` in
5581 *\ * | *\ *)
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5583 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5584 esac
5585
5586
5587
5588 macro_version='2.2.10'
5589 macro_revision='1.3175'
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 ltmain="$ac_aux_dir/ltmain.sh"
5604
5605 # Backslashify metacharacters that are still active within
5606 # double-quoted strings.
5607 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5608
5609 # Same as above, but do not quote variable references.
5610 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5611
5612 # Sed substitution to delay expansion of an escaped shell variable in a
5613 # double_quote_subst'ed string.
5614 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5615
5616 # Sed substitution to delay expansion of an escaped single quote.
5617 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5618
5619 # Sed substitution to avoid accidental globbing in evaled expressions
5620 no_glob_subst='s/\*/\\\*/g'
5621
5622 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5623 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5624 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5627 $as_echo_n "checking how to print strings... " >&6; }
5628 # Test print first, because it will be a builtin if present.
5629 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5630 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5631 ECHO='print -r --'
5632 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5633 ECHO='printf %s\n'
5634 else
5635 # Use this function as a fallback that always works.
5636 func_fallback_echo ()
5637 {
5638 eval 'cat <<_LTECHO_EOF
5639 $1
5640 _LTECHO_EOF'
5641 }
5642 ECHO='func_fallback_echo'
5643 fi
5644
5645 # func_echo_all arg...
5646 # Invoke $ECHO with all args, space-separated.
5647 func_echo_all ()
5648 {
5649 $ECHO ""
5650 }
5651
5652 case "$ECHO" in
5653 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5654 $as_echo "printf" >&6; } ;;
5655 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5656 $as_echo "print -r" >&6; } ;;
5657 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5658 $as_echo "cat" >&6; } ;;
5659 esac
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5675 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5676 if ${ac_cv_path_SED+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5680 for ac_i in 1 2 3 4 5 6 7; do
5681 ac_script="$ac_script$as_nl$ac_script"
5682 done
5683 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5684 { ac_script=; unset ac_script;}
5685 if test -z "$SED"; then
5686 ac_path_SED_found=false
5687 # Loop through the user's path and test for each of PROGNAME-LIST
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_prog in sed gsed; do
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5696 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5697 # Check for GNU ac_path_SED and select it if it is found.
5698 # Check for GNU $ac_path_SED
5699 case `"$ac_path_SED" --version 2>&1` in
5700 *GNU*)
5701 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5702 *)
5703 ac_count=0
5704 $as_echo_n 0123456789 >"conftest.in"
5705 while :
5706 do
5707 cat "conftest.in" "conftest.in" >"conftest.tmp"
5708 mv "conftest.tmp" "conftest.in"
5709 cp "conftest.in" "conftest.nl"
5710 $as_echo '' >> "conftest.nl"
5711 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5713 as_fn_arith $ac_count + 1 && ac_count=$as_val
5714 if test $ac_count -gt ${ac_path_SED_max-0}; then
5715 # Best one so far, save it but keep looking for a better one
5716 ac_cv_path_SED="$ac_path_SED"
5717 ac_path_SED_max=$ac_count
5718 fi
5719 # 10*(2^10) chars as input seems more than enough
5720 test $ac_count -gt 10 && break
5721 done
5722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5723 esac
5724
5725 $ac_path_SED_found && break 3
5726 done
5727 done
5728 done
5729 IFS=$as_save_IFS
5730 if test -z "$ac_cv_path_SED"; then
5731 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5732 fi
5733 else
5734 ac_cv_path_SED=$SED
5735 fi
5736
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5739 $as_echo "$ac_cv_path_SED" >&6; }
5740 SED="$ac_cv_path_SED"
5741 rm -f conftest.sed
5742
5743 test -z "$SED" && SED=sed
5744 Xsed="$SED -e 1s/^X//"
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5757 $as_echo_n "checking for fgrep... " >&6; }
5758 if ${ac_cv_path_FGREP+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5762 then ac_cv_path_FGREP="$GREP -F"
5763 else
5764 if test -z "$FGREP"; then
5765 ac_path_FGREP_found=false
5766 # Loop through the user's path and test for each of PROGNAME-LIST
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5769 do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_prog in fgrep; do
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5775 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5776 # Check for GNU ac_path_FGREP and select it if it is found.
5777 # Check for GNU $ac_path_FGREP
5778 case `"$ac_path_FGREP" --version 2>&1` in
5779 *GNU*)
5780 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5781 *)
5782 ac_count=0
5783 $as_echo_n 0123456789 >"conftest.in"
5784 while :
5785 do
5786 cat "conftest.in" "conftest.in" >"conftest.tmp"
5787 mv "conftest.tmp" "conftest.in"
5788 cp "conftest.in" "conftest.nl"
5789 $as_echo 'FGREP' >> "conftest.nl"
5790 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5792 as_fn_arith $ac_count + 1 && ac_count=$as_val
5793 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5794 # Best one so far, save it but keep looking for a better one
5795 ac_cv_path_FGREP="$ac_path_FGREP"
5796 ac_path_FGREP_max=$ac_count
5797 fi
5798 # 10*(2^10) chars as input seems more than enough
5799 test $ac_count -gt 10 && break
5800 done
5801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5802 esac
5803
5804 $ac_path_FGREP_found && break 3
5805 done
5806 done
5807 done
5808 IFS=$as_save_IFS
5809 if test -z "$ac_cv_path_FGREP"; then
5810 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5811 fi
5812 else
5813 ac_cv_path_FGREP=$FGREP
5814 fi
5815
5816 fi
5817 fi
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5819 $as_echo "$ac_cv_path_FGREP" >&6; }
5820 FGREP="$ac_cv_path_FGREP"
5821
5822
5823 test -z "$GREP" && GREP=grep
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 # Check whether --with-gnu-ld was given.
5844 if test "${with_gnu_ld+set}" = set; then :
5845 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5846 else
5847 with_gnu_ld=no
5848 fi
5849
5850 ac_prog=ld
5851 if test "$GCC" = yes; then
5852 # Check if gcc -print-prog-name=ld gives a path.
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5854 $as_echo_n "checking for ld used by $CC... " >&6; }
5855 case $host in
5856 *-*-mingw*)
5857 # gcc leaves a trailing carriage return which upsets mingw
5858 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5859 *)
5860 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5861 esac
5862 case $ac_prog in
5863 # Accept absolute paths.
5864 [\\/]* | ?:[\\/]*)
5865 re_direlt='/[^/][^/]*/\.\./'
5866 # Canonicalize the pathname of ld
5867 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5868 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5869 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5870 done
5871 test -z "$LD" && LD="$ac_prog"
5872 ;;
5873 "")
5874 # If it fails, then pretend we aren't using GCC.
5875 ac_prog=ld
5876 ;;
5877 *)
5878 # If it is relative, then search for the first ld in PATH.
5879 with_gnu_ld=unknown
5880 ;;
5881 esac
5882 elif test "$with_gnu_ld" = yes; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5884 $as_echo_n "checking for GNU ld... " >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5887 $as_echo_n "checking for non-GNU ld... " >&6; }
5888 fi
5889 if ${lt_cv_path_LD+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -z "$LD"; then
5893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5894 for ac_dir in $PATH; do
5895 IFS="$lt_save_ifs"
5896 test -z "$ac_dir" && ac_dir=.
5897 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5898 lt_cv_path_LD="$ac_dir/$ac_prog"
5899 # Check to see if the program is GNU ld. I'd rather use --version,
5900 # but apparently some variants of GNU ld only accept -v.
5901 # Break only if it was the GNU/non-GNU ld that we prefer.
5902 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5903 *GNU* | *'with BFD'*)
5904 test "$with_gnu_ld" != no && break
5905 ;;
5906 *)
5907 test "$with_gnu_ld" != yes && break
5908 ;;
5909 esac
5910 fi
5911 done
5912 IFS="$lt_save_ifs"
5913 else
5914 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5915 fi
5916 fi
5917
5918 LD="$lt_cv_path_LD"
5919 if test -n "$LD"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5921 $as_echo "$LD" >&6; }
5922 else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5928 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5929 if ${lt_cv_prog_gnu_ld+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5933 case `$LD -v 2>&1 </dev/null` in
5934 *GNU* | *'with BFD'*)
5935 lt_cv_prog_gnu_ld=yes
5936 ;;
5937 *)
5938 lt_cv_prog_gnu_ld=no
5939 ;;
5940 esac
5941 fi
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5943 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5944 with_gnu_ld=$lt_cv_prog_gnu_ld
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5955 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5956 if ${lt_cv_path_NM+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if test -n "$NM"; then
5960 # Let the user override the test.
5961 lt_cv_path_NM="$NM"
5962 else
5963 lt_nm_to_check="${ac_tool_prefix}nm"
5964 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5965 lt_nm_to_check="$lt_nm_to_check nm"
5966 fi
5967 for lt_tmp_nm in $lt_nm_to_check; do
5968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5969 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5970 IFS="$lt_save_ifs"
5971 test -z "$ac_dir" && ac_dir=.
5972 tmp_nm="$ac_dir/$lt_tmp_nm"
5973 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5974 # Check to see if the nm accepts a BSD-compat flag.
5975 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5976 # nm: unknown option "B" ignored
5977 # Tru64's nm complains that /dev/null is an invalid object file
5978 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5979 */dev/null* | *'Invalid file or object type'*)
5980 lt_cv_path_NM="$tmp_nm -B"
5981 break
5982 ;;
5983 *)
5984 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5985 */dev/null*)
5986 lt_cv_path_NM="$tmp_nm -p"
5987 break
5988 ;;
5989 *)
5990 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5991 continue # so that we can try to find one that supports BSD flags
5992 ;;
5993 esac
5994 ;;
5995 esac
5996 fi
5997 done
5998 IFS="$lt_save_ifs"
5999 done
6000 : ${lt_cv_path_NM=no}
6001 fi
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6004 $as_echo "$lt_cv_path_NM" >&6; }
6005 if test "$lt_cv_path_NM" != "no"; then
6006 NM="$lt_cv_path_NM"
6007 else
6008 # Didn't find any BSD compatible name lister, look for dumpbin.
6009 if test -n "$DUMPBIN"; then :
6010 # Let the user override the test.
6011 else
6012 if test -n "$ac_tool_prefix"; then
6013 for ac_prog in dumpbin "link -dump"
6014 do
6015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if ${ac_cv_prog_DUMPBIN+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$DUMPBIN"; then
6023 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 DUMPBIN=$ac_cv_prog_DUMPBIN
6043 if test -n "$DUMPBIN"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6045 $as_echo "$DUMPBIN" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051
6052 test -n "$DUMPBIN" && break
6053 done
6054 fi
6055 if test -z "$DUMPBIN"; then
6056 ac_ct_DUMPBIN=$DUMPBIN
6057 for ac_prog in dumpbin "link -dump"
6058 do
6059 # Extract the first word of "$ac_prog", so it can be a program name with args.
6060 set dummy $ac_prog; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test -n "$ac_ct_DUMPBIN"; then
6067 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6087 if test -n "$ac_ct_DUMPBIN"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6089 $as_echo "$ac_ct_DUMPBIN" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6093 fi
6094
6095
6096 test -n "$ac_ct_DUMPBIN" && break
6097 done
6098
6099 if test "x$ac_ct_DUMPBIN" = x; then
6100 DUMPBIN=":"
6101 else
6102 case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108 DUMPBIN=$ac_ct_DUMPBIN
6109 fi
6110 fi
6111
6112 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6113 *COFF*)
6114 DUMPBIN="$DUMPBIN -symbols"
6115 ;;
6116 *)
6117 DUMPBIN=:
6118 ;;
6119 esac
6120 fi
6121
6122 if test "$DUMPBIN" != ":"; then
6123 NM="$DUMPBIN"
6124 fi
6125 fi
6126 test -z "$NM" && NM=nm
6127
6128
6129
6130
6131
6132
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6134 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6135 if ${lt_cv_nm_interface+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 lt_cv_nm_interface="BSD nm"
6139 echo "int some_variable = 0;" > conftest.$ac_ext
6140 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6141 (eval "$ac_compile" 2>conftest.err)
6142 cat conftest.err >&5
6143 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6144 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6145 cat conftest.err >&5
6146 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6147 cat conftest.out >&5
6148 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6149 lt_cv_nm_interface="MS dumpbin"
6150 fi
6151 rm -f conftest*
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6154 $as_echo "$lt_cv_nm_interface" >&6; }
6155
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6157 $as_echo_n "checking whether ln -s works... " >&6; }
6158 LN_S=$as_ln_s
6159 if test "$LN_S" = "ln -s"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6161 $as_echo "yes" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6164 $as_echo "no, using $LN_S" >&6; }
6165 fi
6166
6167 # find the maximum length of command line arguments
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6169 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6170 if ${lt_cv_sys_max_cmd_len+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 i=0
6174 teststring="ABCD"
6175
6176 case $build_os in
6177 msdosdjgpp*)
6178 # On DJGPP, this test can blow up pretty badly due to problems in libc
6179 # (any single argument exceeding 2000 bytes causes a buffer overrun
6180 # during glob expansion). Even if it were fixed, the result of this
6181 # check would be larger than it should be.
6182 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6183 ;;
6184
6185 gnu*)
6186 # Under GNU Hurd, this test is not required because there is
6187 # no limit to the length of command line arguments.
6188 # Libtool will interpret -1 as no limit whatsoever
6189 lt_cv_sys_max_cmd_len=-1;
6190 ;;
6191
6192 cygwin* | mingw* | cegcc*)
6193 # On Win9x/ME, this test blows up -- it succeeds, but takes
6194 # about 5 minutes as the teststring grows exponentially.
6195 # Worse, since 9x/ME are not pre-emptively multitasking,
6196 # you end up with a "frozen" computer, even though with patience
6197 # the test eventually succeeds (with a max line length of 256k).
6198 # Instead, let's just punt: use the minimum linelength reported by
6199 # all of the supported platforms: 8192 (on NT/2K/XP).
6200 lt_cv_sys_max_cmd_len=8192;
6201 ;;
6202
6203 mint*)
6204 # On MiNT this can take a long time and run out of memory.
6205 lt_cv_sys_max_cmd_len=8192;
6206 ;;
6207
6208 amigaos*)
6209 # On AmigaOS with pdksh, this test takes hours, literally.
6210 # So we just punt and use a minimum line length of 8192.
6211 lt_cv_sys_max_cmd_len=8192;
6212 ;;
6213
6214 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6215 # This has been around since 386BSD, at least. Likely further.
6216 if test -x /sbin/sysctl; then
6217 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6218 elif test -x /usr/sbin/sysctl; then
6219 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6220 else
6221 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6222 fi
6223 # And add a safety zone
6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6226 ;;
6227
6228 interix*)
6229 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6230 lt_cv_sys_max_cmd_len=196608
6231 ;;
6232
6233 osf*)
6234 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6235 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6236 # nice to cause kernel panics so lets avoid the loop below.
6237 # First set a reasonable default.
6238 lt_cv_sys_max_cmd_len=16384
6239 #
6240 if test -x /sbin/sysconfig; then
6241 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6242 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6243 esac
6244 fi
6245 ;;
6246 sco3.2v5*)
6247 lt_cv_sys_max_cmd_len=102400
6248 ;;
6249 sysv5* | sco5v6* | sysv4.2uw2*)
6250 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6251 if test -n "$kargmax"; then
6252 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6253 else
6254 lt_cv_sys_max_cmd_len=32768
6255 fi
6256 ;;
6257 *)
6258 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6259 if test -n "$lt_cv_sys_max_cmd_len"; then
6260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6262 else
6263 # Make teststring a little bigger before we do anything with it.
6264 # a 1K string should be a reasonable start.
6265 for i in 1 2 3 4 5 6 7 8 ; do
6266 teststring=$teststring$teststring
6267 done
6268 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6269 # If test is not a shell built-in, we'll probably end up computing a
6270 # maximum length that is only half of the actual maximum length, but
6271 # we can't tell.
6272 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6273 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6274 test $i != 17 # 1/2 MB should be enough
6275 do
6276 i=`expr $i + 1`
6277 teststring=$teststring$teststring
6278 done
6279 # Only check the string length outside the loop.
6280 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6281 teststring=
6282 # Add a significant safety factor because C++ compilers can tack on
6283 # massive amounts of additional arguments before passing them to the
6284 # linker. It appears as though 1/2 is a usable value.
6285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6286 fi
6287 ;;
6288 esac
6289
6290 fi
6291
6292 if test -n $lt_cv_sys_max_cmd_len ; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6294 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6297 $as_echo "none" >&6; }
6298 fi
6299 max_cmd_len=$lt_cv_sys_max_cmd_len
6300
6301
6302
6303
6304
6305
6306 : ${CP="cp -f"}
6307 : ${MV="mv -f"}
6308 : ${RM="rm -f"}
6309
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6311 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6312 # Try some XSI features
6313 xsi_shell=no
6314 ( _lt_dummy="a/b/c"
6315 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6316 = c,a/b,, \
6317 && eval 'test $(( 1 + 1 )) -eq 2 \
6318 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6319 && xsi_shell=yes
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6321 $as_echo "$xsi_shell" >&6; }
6322
6323
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6325 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6326 lt_shell_append=no
6327 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6328 >/dev/null 2>&1 \
6329 && lt_shell_append=yes
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6331 $as_echo "$lt_shell_append" >&6; }
6332
6333
6334 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6335 lt_unset=unset
6336 else
6337 lt_unset=false
6338 fi
6339
6340
6341
6342
6343
6344 # test EBCDIC or ASCII
6345 case `echo X|tr X '\101'` in
6346 A) # ASCII based system
6347 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6348 lt_SP2NL='tr \040 \012'
6349 lt_NL2SP='tr \015\012 \040\040'
6350 ;;
6351 *) # EBCDIC based system
6352 lt_SP2NL='tr \100 \n'
6353 lt_NL2SP='tr \r\n \100\100'
6354 ;;
6355 esac
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6366 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6367 if ${lt_cv_ld_reload_flag+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 lt_cv_ld_reload_flag='-r'
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6373 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6374 reload_flag=$lt_cv_ld_reload_flag
6375 case $reload_flag in
6376 "" | " "*) ;;
6377 *) reload_flag=" $reload_flag" ;;
6378 esac
6379 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6380 case $host_os in
6381 darwin*)
6382 if test "$GCC" = yes; then
6383 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6384 else
6385 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6386 fi
6387 ;;
6388 esac
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_OBJDUMP+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 if test -n "$OBJDUMP"; then
6407 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6419 fi
6420 done
6421 done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 OBJDUMP=$ac_cv_prog_OBJDUMP
6427 if test -n "$OBJDUMP"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6429 $as_echo "$OBJDUMP" >&6; }
6430 else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435
6436 fi
6437 if test -z "$ac_cv_prog_OBJDUMP"; then
6438 ac_ct_OBJDUMP=$OBJDUMP
6439 # Extract the first word of "objdump", so it can be a program name with args.
6440 set dummy objdump; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$ac_ct_OBJDUMP"; then
6447 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6467 if test -n "$ac_ct_OBJDUMP"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6469 $as_echo "$ac_ct_OBJDUMP" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475 if test "x$ac_ct_OBJDUMP" = x; then
6476 OBJDUMP="false"
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484 OBJDUMP=$ac_ct_OBJDUMP
6485 fi
6486 else
6487 OBJDUMP="$ac_cv_prog_OBJDUMP"
6488 fi
6489
6490 test -z "$OBJDUMP" && OBJDUMP=objdump
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6501 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6502 if ${lt_cv_deplibs_check_method+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 lt_cv_file_magic_cmd='$MAGIC_CMD'
6506 lt_cv_file_magic_test_file=
6507 lt_cv_deplibs_check_method='unknown'
6508 # Need to set the preceding variable on all platforms that support
6509 # interlibrary dependencies.
6510 # 'none' -- dependencies not supported.
6511 # `unknown' -- same as none, but documents that we really don't know.
6512 # 'pass_all' -- all dependencies passed with no checks.
6513 # 'test_compile' -- check by making test program.
6514 # 'file_magic [[regex]]' -- check by looking for files in library path
6515 # which responds to the $file_magic_cmd with a given extended regex.
6516 # If you have `file' or equivalent on your system and you're not sure
6517 # whether `pass_all' will *always* work, you probably want this one.
6518
6519 case $host_os in
6520 aix[4-9]*)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523
6524 beos*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528 bsdi[45]*)
6529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6530 lt_cv_file_magic_cmd='/usr/bin/file -L'
6531 lt_cv_file_magic_test_file=/shlib/libc.so
6532 ;;
6533
6534 cygwin*)
6535 # func_win32_libid is a shell function defined in ltmain.sh
6536 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6537 lt_cv_file_magic_cmd='func_win32_libid'
6538 ;;
6539
6540 mingw* | pw32*)
6541 # Base MSYS/MinGW do not provide the 'file' command needed by
6542 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6543 # unless we find 'file', for example because we are cross-compiling.
6544 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6545 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6546 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6547 lt_cv_file_magic_cmd='func_win32_libid'
6548 else
6549 # Keep this pattern in sync with the one in func_win32_libid.
6550 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6551 lt_cv_file_magic_cmd='$OBJDUMP -f'
6552 fi
6553 ;;
6554
6555 cegcc*)
6556 # use the weaker test based on 'objdump'. See mingw*.
6557 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6558 lt_cv_file_magic_cmd='$OBJDUMP -f'
6559 ;;
6560
6561 darwin* | rhapsody*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565 freebsd* | dragonfly*)
6566 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6567 case $host_cpu in
6568 i*86 )
6569 # Not sure whether the presence of OpenBSD here was a mistake.
6570 # Let's accept both of them until this is cleared up.
6571 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6572 lt_cv_file_magic_cmd=/usr/bin/file
6573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6574 ;;
6575 esac
6576 else
6577 lt_cv_deplibs_check_method=pass_all
6578 fi
6579 ;;
6580
6581 gnu*)
6582 lt_cv_deplibs_check_method=pass_all
6583 ;;
6584
6585 haiku*)
6586 lt_cv_deplibs_check_method=pass_all
6587 ;;
6588
6589 hpux10.20* | hpux11*)
6590 lt_cv_file_magic_cmd=/usr/bin/file
6591 case $host_cpu in
6592 ia64*)
6593 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6594 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6595 ;;
6596 hppa*64*)
6597 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]'
6598 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6599 ;;
6600 *)
6601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6602 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6603 ;;
6604 esac
6605 ;;
6606
6607 interix[3-9]*)
6608 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6610 ;;
6611
6612 irix5* | irix6* | nonstopux*)
6613 case $LD in
6614 *-32|*"-32 ") libmagic=32-bit;;
6615 *-n32|*"-n32 ") libmagic=N32;;
6616 *-64|*"-64 ") libmagic=64-bit;;
6617 *) libmagic=never-match;;
6618 esac
6619 lt_cv_deplibs_check_method=pass_all
6620 ;;
6621
6622 # This must be Linux ELF.
6623 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6624 lt_cv_deplibs_check_method=pass_all
6625 ;;
6626
6627 netbsd*)
6628 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6630 else
6631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6632 fi
6633 ;;
6634
6635 newos6*)
6636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6637 lt_cv_file_magic_cmd=/usr/bin/file
6638 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6639 ;;
6640
6641 *nto* | *qnx*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645 openbsd*)
6646 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6648 else
6649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6650 fi
6651 ;;
6652
6653 osf3* | osf4* | osf5*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657 rdos*)
6658 lt_cv_deplibs_check_method=pass_all
6659 ;;
6660
6661 solaris*)
6662 lt_cv_deplibs_check_method=pass_all
6663 ;;
6664
6665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6666 lt_cv_deplibs_check_method=pass_all
6667 ;;
6668
6669 sysv4 | sysv4.3*)
6670 case $host_vendor in
6671 motorola)
6672 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]'
6673 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6674 ;;
6675 ncr)
6676 lt_cv_deplibs_check_method=pass_all
6677 ;;
6678 sequent)
6679 lt_cv_file_magic_cmd='/bin/file'
6680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6681 ;;
6682 sni)
6683 lt_cv_file_magic_cmd='/bin/file'
6684 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6685 lt_cv_file_magic_test_file=/lib/libc.so
6686 ;;
6687 siemens)
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
6690 pc)
6691 lt_cv_deplibs_check_method=pass_all
6692 ;;
6693 esac
6694 ;;
6695
6696 tpf*)
6697 lt_cv_deplibs_check_method=pass_all
6698 ;;
6699 esac
6700
6701 fi
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6703 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6704 file_magic_cmd=$lt_cv_file_magic_cmd
6705 deplibs_check_method=$lt_cv_deplibs_check_method
6706 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}ar; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_AR+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 if test -n "$AR"; then
6728 ac_cv_prog_AR="$AR" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_AR="${ac_tool_prefix}ar"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 AR=$ac_cv_prog_AR
6748 if test -n "$AR"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6750 $as_echo "$AR" >&6; }
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756
6757 fi
6758 if test -z "$ac_cv_prog_AR"; then
6759 ac_ct_AR=$AR
6760 # Extract the first word of "ar", so it can be a program name with args.
6761 set dummy ar; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 if test -n "$ac_ct_AR"; then
6768 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_ac_ct_AR="ar"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6788 if test -n "$ac_ct_AR"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6790 $as_echo "$ac_ct_AR" >&6; }
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796 if test "x$ac_ct_AR" = x; then
6797 AR="false"
6798 else
6799 case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805 AR=$ac_ct_AR
6806 fi
6807 else
6808 AR="$ac_cv_prog_AR"
6809 fi
6810
6811 test -z "$AR" && AR=ar
6812 test -z "$AR_FLAGS" && AR_FLAGS=cru
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}strip; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_STRIP+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 if test -n "$STRIP"; then
6833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 STRIP=$ac_cv_prog_STRIP
6853 if test -n "$STRIP"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6855 $as_echo "$STRIP" >&6; }
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861
6862 fi
6863 if test -z "$ac_cv_prog_STRIP"; then
6864 ac_ct_STRIP=$STRIP
6865 # Extract the first word of "strip", so it can be a program name with args.
6866 set dummy strip; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 if test -n "$ac_ct_STRIP"; then
6873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_ac_ct_STRIP="strip"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6893 if test -n "$ac_ct_STRIP"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6895 $as_echo "$ac_ct_STRIP" >&6; }
6896 else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901 if test "x$ac_ct_STRIP" = x; then
6902 STRIP=":"
6903 else
6904 case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6909 esac
6910 STRIP=$ac_ct_STRIP
6911 fi
6912 else
6913 STRIP="$ac_cv_prog_STRIP"
6914 fi
6915
6916 test -z "$STRIP" && STRIP=:
6917
6918
6919
6920
6921
6922
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_RANLIB+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$RANLIB"; then
6932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi
6950 fi
6951 RANLIB=$ac_cv_prog_RANLIB
6952 if test -n "$RANLIB"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6954 $as_echo "$RANLIB" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6958 fi
6959
6960
6961 fi
6962 if test -z "$ac_cv_prog_RANLIB"; then
6963 ac_ct_RANLIB=$RANLIB
6964 # Extract the first word of "ranlib", so it can be a program name with args.
6965 set dummy ranlib; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$ac_ct_RANLIB"; then
6972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_RANLIB="ranlib"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6992 if test -n "$ac_ct_RANLIB"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6994 $as_echo "$ac_ct_RANLIB" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000 if test "x$ac_ct_RANLIB" = x; then
7001 RANLIB=":"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004 yes:)
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007 ac_tool_warned=yes ;;
7008 esac
7009 RANLIB=$ac_ct_RANLIB
7010 fi
7011 else
7012 RANLIB="$ac_cv_prog_RANLIB"
7013 fi
7014
7015 test -z "$RANLIB" && RANLIB=:
7016
7017
7018
7019
7020
7021
7022 # Determine commands to create old-style static archives.
7023 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7024 old_postinstall_cmds='chmod 644 $oldlib'
7025 old_postuninstall_cmds=
7026
7027 if test -n "$RANLIB"; then
7028 case $host_os in
7029 openbsd*)
7030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7031 ;;
7032 *)
7033 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7034 ;;
7035 esac
7036 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7037 fi
7038
7039 case $host_os in
7040 darwin*)
7041 lock_old_archive_extraction=yes ;;
7042 *)
7043 lock_old_archive_extraction=no ;;
7044 esac
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084 # If no C compiler was specified, use CC.
7085 LTCC=${LTCC-"$CC"}
7086
7087 # If no C compiler flags were specified, use CFLAGS.
7088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7089
7090 # Allow CC to be a program name with arguments.
7091 compiler=$CC
7092
7093
7094 # Check for command to grab the raw symbol name followed by C symbol from nm.
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7096 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7097 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100
7101 # These are sane defaults that work on at least a few old systems.
7102 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7103
7104 # Character class describing NM global symbol codes.
7105 symcode='[BCDEGRST]'
7106
7107 # Regexp to match symbols that can be accessed directly from C.
7108 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7109
7110 # Define system-specific variables.
7111 case $host_os in
7112 aix*)
7113 symcode='[BCDT]'
7114 ;;
7115 cygwin* | mingw* | pw32* | cegcc*)
7116 symcode='[ABCDGISTW]'
7117 ;;
7118 hpux*)
7119 if test "$host_cpu" = ia64; then
7120 symcode='[ABCDEGRST]'
7121 fi
7122 ;;
7123 irix* | nonstopux*)
7124 symcode='[BCDEGRST]'
7125 ;;
7126 osf*)
7127 symcode='[BCDEGQRST]'
7128 ;;
7129 solaris*)
7130 symcode='[BDRT]'
7131 ;;
7132 sco3.2v5*)
7133 symcode='[DT]'
7134 ;;
7135 sysv4.2uw2*)
7136 symcode='[DT]'
7137 ;;
7138 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7139 symcode='[ABDT]'
7140 ;;
7141 sysv4)
7142 symcode='[DFNSTU]'
7143 ;;
7144 esac
7145
7146 # If we're using GNU nm, then use its standard symbol codes.
7147 case `$NM -V 2>&1` in
7148 *GNU* | *'with BFD'*)
7149 symcode='[ABCDGIRSTW]' ;;
7150 esac
7151
7152 # Transform an extracted symbol line into a proper C declaration.
7153 # Some systems (esp. on ia64) link data and code symbols differently,
7154 # so use this general approach.
7155 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7156
7157 # Transform an extracted symbol line into symbol name and symbol address
7158 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7159 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7160
7161 # Handle CRLF in mingw tool chain
7162 opt_cr=
7163 case $build_os in
7164 mingw*)
7165 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7166 ;;
7167 esac
7168
7169 # Try without a prefix underscore, then with it.
7170 for ac_symprfx in "" "_"; do
7171
7172 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7173 symxfrm="\\1 $ac_symprfx\\2 \\2"
7174
7175 # Write the raw and C identifiers.
7176 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7177 # Fake it for dumpbin and say T for any non-static function
7178 # and D for any global variable.
7179 # Also find C++ and __fastcall symbols from MSVC++,
7180 # which start with @ or ?.
7181 lt_cv_sys_global_symbol_pipe="$AWK '"\
7182 " {last_section=section; section=\$ 3};"\
7183 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7184 " \$ 0!~/External *\|/{next};"\
7185 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7186 " {if(hide[section]) next};"\
7187 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7188 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7189 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7190 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7191 " ' prfx=^$ac_symprfx"
7192 else
7193 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7194 fi
7195
7196 # Check to see that the pipe works correctly.
7197 pipe_works=no
7198
7199 rm -f conftest*
7200 cat > conftest.$ac_ext <<_LT_EOF
7201 #ifdef __cplusplus
7202 extern "C" {
7203 #endif
7204 char nm_test_var;
7205 void nm_test_func(void);
7206 void nm_test_func(void){}
7207 #ifdef __cplusplus
7208 }
7209 #endif
7210 int main(){nm_test_var='a';nm_test_func();return(0);}
7211 _LT_EOF
7212
7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7214 (eval $ac_compile) 2>&5
7215 ac_status=$?
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; }; then
7218 # Now try to grab the symbols.
7219 nlist=conftest.nm
7220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7221 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7222 ac_status=$?
7223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7224 test $ac_status = 0; } && test -s "$nlist"; then
7225 # Try sorting and uniquifying the output.
7226 if sort "$nlist" | uniq > "$nlist"T; then
7227 mv -f "$nlist"T "$nlist"
7228 else
7229 rm -f "$nlist"T
7230 fi
7231
7232 # Make sure that we snagged all the symbols we need.
7233 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7234 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7235 cat <<_LT_EOF > conftest.$ac_ext
7236 #ifdef __cplusplus
7237 extern "C" {
7238 #endif
7239
7240 _LT_EOF
7241 # Now generate the symbol file.
7242 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7243
7244 cat <<_LT_EOF >> conftest.$ac_ext
7245
7246 /* The mapping between symbol names and symbols. */
7247 const struct {
7248 const char *name;
7249 void *address;
7250 }
7251 lt__PROGRAM__LTX_preloaded_symbols[] =
7252 {
7253 { "@PROGRAM@", (void *) 0 },
7254 _LT_EOF
7255 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7256 cat <<\_LT_EOF >> conftest.$ac_ext
7257 {0, (void *) 0}
7258 };
7259
7260 /* This works around a problem in FreeBSD linker */
7261 #ifdef FREEBSD_WORKAROUND
7262 static const void *lt_preloaded_setup() {
7263 return lt__PROGRAM__LTX_preloaded_symbols;
7264 }
7265 #endif
7266
7267 #ifdef __cplusplus
7268 }
7269 #endif
7270 _LT_EOF
7271 # Now try linking the two files.
7272 mv conftest.$ac_objext conftstm.$ac_objext
7273 lt_save_LIBS="$LIBS"
7274 lt_save_CFLAGS="$CFLAGS"
7275 LIBS="conftstm.$ac_objext"
7276 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7278 (eval $ac_link) 2>&5
7279 ac_status=$?
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7282 pipe_works=yes
7283 fi
7284 LIBS="$lt_save_LIBS"
7285 CFLAGS="$lt_save_CFLAGS"
7286 else
7287 echo "cannot find nm_test_func in $nlist" >&5
7288 fi
7289 else
7290 echo "cannot find nm_test_var in $nlist" >&5
7291 fi
7292 else
7293 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7294 fi
7295 else
7296 echo "$progname: failed program was:" >&5
7297 cat conftest.$ac_ext >&5
7298 fi
7299 rm -rf conftest* conftst*
7300
7301 # Do not use the global_symbol_pipe unless it works.
7302 if test "$pipe_works" = yes; then
7303 break
7304 else
7305 lt_cv_sys_global_symbol_pipe=
7306 fi
7307 done
7308
7309 fi
7310
7311 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7312 lt_cv_sys_global_symbol_to_cdecl=
7313 fi
7314 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7316 $as_echo "failed" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7319 $as_echo "ok" >&6; }
7320 fi
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343 # Check whether --enable-libtool-lock was given.
7344 if test "${enable_libtool_lock+set}" = set; then :
7345 enableval=$enable_libtool_lock;
7346 fi
7347
7348 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7349
7350 # Some flags need to be propagated to the compiler or linker for good
7351 # libtool support.
7352 case $host in
7353 ia64-*-hpux*)
7354 # Find out which ABI we are using.
7355 echo 'int i;' > conftest.$ac_ext
7356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357 (eval $ac_compile) 2>&5
7358 ac_status=$?
7359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360 test $ac_status = 0; }; then
7361 case `/usr/bin/file conftest.$ac_objext` in
7362 *ELF-32*)
7363 HPUX_IA64_MODE="32"
7364 ;;
7365 *ELF-64*)
7366 HPUX_IA64_MODE="64"
7367 ;;
7368 esac
7369 fi
7370 rm -rf conftest*
7371 ;;
7372 *-*-irix6*)
7373 # Find out which ABI we are using.
7374 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7376 (eval $ac_compile) 2>&5
7377 ac_status=$?
7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379 test $ac_status = 0; }; then
7380 if test "$lt_cv_prog_gnu_ld" = yes; then
7381 case `/usr/bin/file conftest.$ac_objext` in
7382 *32-bit*)
7383 LD="${LD-ld} -melf32bsmip"
7384 ;;
7385 *N32*)
7386 LD="${LD-ld} -melf32bmipn32"
7387 ;;
7388 *64-bit*)
7389 LD="${LD-ld} -melf64bmip"
7390 ;;
7391 esac
7392 else
7393 case `/usr/bin/file conftest.$ac_objext` in
7394 *32-bit*)
7395 LD="${LD-ld} -32"
7396 ;;
7397 *N32*)
7398 LD="${LD-ld} -n32"
7399 ;;
7400 *64-bit*)
7401 LD="${LD-ld} -64"
7402 ;;
7403 esac
7404 fi
7405 fi
7406 rm -rf conftest*
7407 ;;
7408
7409 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7410 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7411 # Find out which ABI we are using.
7412 echo 'int i;' > conftest.$ac_ext
7413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7414 (eval $ac_compile) 2>&5
7415 ac_status=$?
7416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7417 test $ac_status = 0; }; then
7418 case `/usr/bin/file conftest.o` in
7419 *32-bit*)
7420 case $host in
7421 x86_64-*kfreebsd*-gnu)
7422 LD="${LD-ld} -m elf_i386_fbsd"
7423 ;;
7424 x86_64-*linux*)
7425 LD="${LD-ld} -m elf_i386"
7426 ;;
7427 ppc64-*linux*|powerpc64-*linux*)
7428 LD="${LD-ld} -m elf32ppclinux"
7429 ;;
7430 s390x-*linux*)
7431 LD="${LD-ld} -m elf_s390"
7432 ;;
7433 sparc64-*linux*)
7434 LD="${LD-ld} -m elf32_sparc"
7435 ;;
7436 esac
7437 ;;
7438 *64-bit*)
7439 case $host in
7440 x86_64-*kfreebsd*-gnu)
7441 LD="${LD-ld} -m elf_x86_64_fbsd"
7442 ;;
7443 x86_64-*linux*)
7444 LD="${LD-ld} -m elf_x86_64"
7445 ;;
7446 ppc*-*linux*|powerpc*-*linux*)
7447 LD="${LD-ld} -m elf64ppc"
7448 ;;
7449 s390*-*linux*|s390*-*tpf*)
7450 LD="${LD-ld} -m elf64_s390"
7451 ;;
7452 sparc*-*linux*)
7453 LD="${LD-ld} -m elf64_sparc"
7454 ;;
7455 esac
7456 ;;
7457 esac
7458 fi
7459 rm -rf conftest*
7460 ;;
7461
7462 *-*-sco3.2v5*)
7463 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7464 SAVE_CFLAGS="$CFLAGS"
7465 CFLAGS="$CFLAGS -belf"
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7467 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7468 if ${lt_cv_cc_needs_belf+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 ac_ext=c
7472 ac_cpp='$CPP $CPPFLAGS'
7473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7476
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479
7480 int
7481 main ()
7482 {
7483
7484 ;
7485 return 0;
7486 }
7487 _ACEOF
7488 if ac_fn_c_try_link "$LINENO"; then :
7489 lt_cv_cc_needs_belf=yes
7490 else
7491 lt_cv_cc_needs_belf=no
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext \
7494 conftest$ac_exeext conftest.$ac_ext
7495 ac_ext=c
7496 ac_cpp='$CPP $CPPFLAGS'
7497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500
7501 fi
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7503 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7504 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7505 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7506 CFLAGS="$SAVE_CFLAGS"
7507 fi
7508 ;;
7509 sparc*-*solaris*)
7510 # Find out which ABI we are using.
7511 echo 'int i;' > conftest.$ac_ext
7512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7513 (eval $ac_compile) 2>&5
7514 ac_status=$?
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }; then
7517 case `/usr/bin/file conftest.o` in
7518 *64-bit*)
7519 case $lt_cv_prog_gnu_ld in
7520 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7521 *)
7522 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7523 LD="${LD-ld} -64"
7524 fi
7525 ;;
7526 esac
7527 ;;
7528 esac
7529 fi
7530 rm -rf conftest*
7531 ;;
7532 esac
7533
7534 need_locks="$enable_libtool_lock"
7535
7536
7537 case $host_os in
7538 rhapsody* | darwin*)
7539 if test -n "$ac_tool_prefix"; then
7540 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7541 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 if test -n "$DSYMUTIL"; then
7548 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565 fi
7566 fi
7567 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7568 if test -n "$DSYMUTIL"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7570 $as_echo "$DSYMUTIL" >&6; }
7571 else
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 fi
7575
7576
7577 fi
7578 if test -z "$ac_cv_prog_DSYMUTIL"; then
7579 ac_ct_DSYMUTIL=$DSYMUTIL
7580 # Extract the first word of "dsymutil", so it can be a program name with args.
7581 set dummy dsymutil; ac_word=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 if test -n "$ac_ct_DSYMUTIL"; then
7588 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7600 fi
7601 done
7602 done
7603 IFS=$as_save_IFS
7604
7605 fi
7606 fi
7607 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7608 if test -n "$ac_ct_DSYMUTIL"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7610 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7611 else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7614 fi
7615
7616 if test "x$ac_ct_DSYMUTIL" = x; then
7617 DSYMUTIL=":"
7618 else
7619 case $cross_compiling:$ac_tool_warned in
7620 yes:)
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7623 ac_tool_warned=yes ;;
7624 esac
7625 DSYMUTIL=$ac_ct_DSYMUTIL
7626 fi
7627 else
7628 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7629 fi
7630
7631 if test -n "$ac_tool_prefix"; then
7632 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7633 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_prog_NMEDIT+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 if test -n "$NMEDIT"; then
7640 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7652 fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657 fi
7658 fi
7659 NMEDIT=$ac_cv_prog_NMEDIT
7660 if test -n "$NMEDIT"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7662 $as_echo "$NMEDIT" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7666 fi
7667
7668
7669 fi
7670 if test -z "$ac_cv_prog_NMEDIT"; then
7671 ac_ct_NMEDIT=$NMEDIT
7672 # Extract the first word of "nmedit", so it can be a program name with args.
7673 set dummy nmedit; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 if test -n "$ac_ct_NMEDIT"; then
7680 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697 fi
7698 fi
7699 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7700 if test -n "$ac_ct_NMEDIT"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7702 $as_echo "$ac_ct_NMEDIT" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7706 fi
7707
7708 if test "x$ac_ct_NMEDIT" = x; then
7709 NMEDIT=":"
7710 else
7711 case $cross_compiling:$ac_tool_warned in
7712 yes:)
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7715 ac_tool_warned=yes ;;
7716 esac
7717 NMEDIT=$ac_ct_NMEDIT
7718 fi
7719 else
7720 NMEDIT="$ac_cv_prog_NMEDIT"
7721 fi
7722
7723 if test -n "$ac_tool_prefix"; then
7724 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7725 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if ${ac_cv_prog_LIPO+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 if test -n "$LIPO"; then
7732 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 LIPO=$ac_cv_prog_LIPO
7752 if test -n "$LIPO"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7754 $as_echo "$LIPO" >&6; }
7755 else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760
7761 fi
7762 if test -z "$ac_cv_prog_LIPO"; then
7763 ac_ct_LIPO=$LIPO
7764 # Extract the first word of "lipo", so it can be a program name with args.
7765 set dummy lipo; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$ac_ct_LIPO"; then
7772 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_ac_ct_LIPO="lipo"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7792 if test -n "$ac_ct_LIPO"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7794 $as_echo "$ac_ct_LIPO" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800 if test "x$ac_ct_LIPO" = x; then
7801 LIPO=":"
7802 else
7803 case $cross_compiling:$ac_tool_warned in
7804 yes:)
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7807 ac_tool_warned=yes ;;
7808 esac
7809 LIPO=$ac_ct_LIPO
7810 fi
7811 else
7812 LIPO="$ac_cv_prog_LIPO"
7813 fi
7814
7815 if test -n "$ac_tool_prefix"; then
7816 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7817 set dummy ${ac_tool_prefix}otool; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_OTOOL+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 if test -n "$OTOOL"; then
7824 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7833 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 OTOOL=$ac_cv_prog_OTOOL
7844 if test -n "$OTOOL"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7846 $as_echo "$OTOOL" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 fi
7851
7852
7853 fi
7854 if test -z "$ac_cv_prog_OTOOL"; then
7855 ac_ct_OTOOL=$OTOOL
7856 # Extract the first word of "otool", so it can be a program name with args.
7857 set dummy otool; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 if test -n "$ac_ct_OTOOL"; then
7864 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_prog_ac_ct_OTOOL="otool"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7884 if test -n "$ac_ct_OTOOL"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7886 $as_echo "$ac_ct_OTOOL" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892 if test "x$ac_ct_OTOOL" = x; then
7893 OTOOL=":"
7894 else
7895 case $cross_compiling:$ac_tool_warned in
7896 yes:)
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7899 ac_tool_warned=yes ;;
7900 esac
7901 OTOOL=$ac_ct_OTOOL
7902 fi
7903 else
7904 OTOOL="$ac_cv_prog_OTOOL"
7905 fi
7906
7907 if test -n "$ac_tool_prefix"; then
7908 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if ${ac_cv_prog_OTOOL64+:} false; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 if test -n "$OTOOL64"; then
7916 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7928 fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933 fi
7934 fi
7935 OTOOL64=$ac_cv_prog_OTOOL64
7936 if test -n "$OTOOL64"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7938 $as_echo "$OTOOL64" >&6; }
7939 else
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7942 fi
7943
7944
7945 fi
7946 if test -z "$ac_cv_prog_OTOOL64"; then
7947 ac_ct_OTOOL64=$OTOOL64
7948 # Extract the first word of "otool64", so it can be a program name with args.
7949 set dummy otool64; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 if test -n "$ac_ct_OTOOL64"; then
7956 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_ac_ct_OTOOL64="otool64"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7976 if test -n "$ac_ct_OTOOL64"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7978 $as_echo "$ac_ct_OTOOL64" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984 if test "x$ac_ct_OTOOL64" = x; then
7985 OTOOL64=":"
7986 else
7987 case $cross_compiling:$ac_tool_warned in
7988 yes:)
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7991 ac_tool_warned=yes ;;
7992 esac
7993 OTOOL64=$ac_ct_OTOOL64
7994 fi
7995 else
7996 OTOOL64="$ac_cv_prog_OTOOL64"
7997 fi
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8026 $as_echo_n "checking for -single_module linker flag... " >&6; }
8027 if ${lt_cv_apple_cc_single_mod+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 lt_cv_apple_cc_single_mod=no
8031 if test -z "${LT_MULTI_MODULE}"; then
8032 # By default we will add the -single_module flag. You can override
8033 # by either setting the environment variable LT_MULTI_MODULE
8034 # non-empty at configure time, or by adding -multi_module to the
8035 # link flags.
8036 rm -rf libconftest.dylib*
8037 echo "int foo(void){return 1;}" > conftest.c
8038 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8039 -dynamiclib -Wl,-single_module conftest.c" >&5
8040 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8041 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8042 _lt_result=$?
8043 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8044 lt_cv_apple_cc_single_mod=yes
8045 else
8046 cat conftest.err >&5
8047 fi
8048 rm -rf libconftest.dylib*
8049 rm -f conftest.*
8050 fi
8051 fi
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8053 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8055 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8056 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 lt_cv_ld_exported_symbols_list=no
8060 save_LDFLAGS=$LDFLAGS
8061 echo "_main" > conftest.sym
8062 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065
8066 int
8067 main ()
8068 {
8069
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_link "$LINENO"; then :
8075 lt_cv_ld_exported_symbols_list=yes
8076 else
8077 lt_cv_ld_exported_symbols_list=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext \
8080 conftest$ac_exeext conftest.$ac_ext
8081 LDFLAGS="$save_LDFLAGS"
8082
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8085 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8087 $as_echo_n "checking for -force_load linker flag... " >&6; }
8088 if ${lt_cv_ld_force_load+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 lt_cv_ld_force_load=no
8092 cat > conftest.c << _LT_EOF
8093 int forced_loaded() { return 2;}
8094 _LT_EOF
8095 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8096 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8097 echo "$AR cru libconftest.a conftest.o" >&5
8098 $AR cru libconftest.a conftest.o 2>&5
8099 echo "$RANLIB libconftest.a" >&5
8100 $RANLIB libconftest.a 2>&5
8101 cat > conftest.c << _LT_EOF
8102 int main() { return 0;}
8103 _LT_EOF
8104 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8105 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8106 _lt_result=$?
8107 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8108 lt_cv_ld_force_load=yes
8109 else
8110 cat conftest.err >&5
8111 fi
8112 rm -f conftest.err libconftest.a conftest conftest.c
8113 rm -rf conftest.dSYM
8114
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8117 $as_echo "$lt_cv_ld_force_load" >&6; }
8118 case $host_os in
8119 rhapsody* | darwin1.[012])
8120 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8121 darwin1.*)
8122 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8123 darwin*) # darwin 5.x on
8124 # if running on 10.5 or later, the deployment target defaults
8125 # to the OS version, if on x86, and 10.4, the deployment
8126 # target defaults to 10.4. Don't you love it?
8127 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8128 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8129 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8130 10.[012]*)
8131 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8132 10.*)
8133 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8134 esac
8135 ;;
8136 esac
8137 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8138 _lt_dar_single_mod='$single_module'
8139 fi
8140 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8141 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8142 else
8143 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8144 fi
8145 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8146 _lt_dsymutil='~$DSYMUTIL $lib || :'
8147 else
8148 _lt_dsymutil=
8149 fi
8150 ;;
8151 esac
8152
8153 for ac_header in dlfcn.h
8154 do :
8155 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8156 "
8157 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8158 cat >>confdefs.h <<_ACEOF
8159 #define HAVE_DLFCN_H 1
8160 _ACEOF
8161
8162 fi
8163
8164 done
8165
8166
8167
8168
8169
8170 # Set options
8171
8172
8173
8174 enable_dlopen=no
8175
8176
8177 enable_win32_dll=no
8178
8179
8180 # Check whether --enable-shared was given.
8181 if test "${enable_shared+set}" = set; then :
8182 enableval=$enable_shared; p=${PACKAGE-default}
8183 case $enableval in
8184 yes) enable_shared=yes ;;
8185 no) enable_shared=no ;;
8186 *)
8187 enable_shared=no
8188 # Look at the argument we got. We use all the common list separators.
8189 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8190 for pkg in $enableval; do
8191 IFS="$lt_save_ifs"
8192 if test "X$pkg" = "X$p"; then
8193 enable_shared=yes
8194 fi
8195 done
8196 IFS="$lt_save_ifs"
8197 ;;
8198 esac
8199 else
8200 enable_shared=yes
8201 fi
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211 # Check whether --enable-static was given.
8212 if test "${enable_static+set}" = set; then :
8213 enableval=$enable_static; p=${PACKAGE-default}
8214 case $enableval in
8215 yes) enable_static=yes ;;
8216 no) enable_static=no ;;
8217 *)
8218 enable_static=no
8219 # Look at the argument we got. We use all the common list separators.
8220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8221 for pkg in $enableval; do
8222 IFS="$lt_save_ifs"
8223 if test "X$pkg" = "X$p"; then
8224 enable_static=yes
8225 fi
8226 done
8227 IFS="$lt_save_ifs"
8228 ;;
8229 esac
8230 else
8231 enable_static=yes
8232 fi
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243 # Check whether --with-pic was given.
8244 if test "${with_pic+set}" = set; then :
8245 withval=$with_pic; pic_mode="$withval"
8246 else
8247 pic_mode=default
8248 fi
8249
8250
8251 test -z "$pic_mode" && pic_mode=default
8252
8253
8254
8255
8256
8257
8258
8259 # Check whether --enable-fast-install was given.
8260 if test "${enable_fast_install+set}" = set; then :
8261 enableval=$enable_fast_install; p=${PACKAGE-default}
8262 case $enableval in
8263 yes) enable_fast_install=yes ;;
8264 no) enable_fast_install=no ;;
8265 *)
8266 enable_fast_install=no
8267 # Look at the argument we got. We use all the common list separators.
8268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8269 for pkg in $enableval; do
8270 IFS="$lt_save_ifs"
8271 if test "X$pkg" = "X$p"; then
8272 enable_fast_install=yes
8273 fi
8274 done
8275 IFS="$lt_save_ifs"
8276 ;;
8277 esac
8278 else
8279 enable_fast_install=yes
8280 fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292 # This can be used to rebuild libtool when needed
8293 LIBTOOL_DEPS="$ltmain"
8294
8295 # Always use our own libtool.
8296 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323 test -z "$LN_S" && LN_S="ln -s"
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338 if test -n "${ZSH_VERSION+set}" ; then
8339 setopt NO_GLOB_SUBST
8340 fi
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8343 $as_echo_n "checking for objdir... " >&6; }
8344 if ${lt_cv_objdir+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 rm -f .libs 2>/dev/null
8348 mkdir .libs 2>/dev/null
8349 if test -d .libs; then
8350 lt_cv_objdir=.libs
8351 else
8352 # MS-DOS does not allow filenames that begin with a dot.
8353 lt_cv_objdir=_libs
8354 fi
8355 rmdir .libs 2>/dev/null
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8358 $as_echo "$lt_cv_objdir" >&6; }
8359 objdir=$lt_cv_objdir
8360
8361
8362
8363
8364
8365 cat >>confdefs.h <<_ACEOF
8366 #define LT_OBJDIR "$lt_cv_objdir/"
8367 _ACEOF
8368
8369
8370
8371
8372 case $host_os in
8373 aix3*)
8374 # AIX sometimes has problems with the GCC collect2 program. For some
8375 # reason, if we set the COLLECT_NAMES environment variable, the problems
8376 # vanish in a puff of smoke.
8377 if test "X${COLLECT_NAMES+set}" != Xset; then
8378 COLLECT_NAMES=
8379 export COLLECT_NAMES
8380 fi
8381 ;;
8382 esac
8383
8384 # Global variables:
8385 ofile=libtool
8386 can_build_shared=yes
8387
8388 # All known linkers require a `.a' archive for static linking (except MSVC,
8389 # which needs '.lib').
8390 libext=a
8391
8392 with_gnu_ld="$lt_cv_prog_gnu_ld"
8393
8394 old_CC="$CC"
8395 old_CFLAGS="$CFLAGS"
8396
8397 # Set sane defaults for various variables
8398 test -z "$CC" && CC=cc
8399 test -z "$LTCC" && LTCC=$CC
8400 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8401 test -z "$LD" && LD=ld
8402 test -z "$ac_objext" && ac_objext=o
8403
8404 for cc_temp in $compiler""; do
8405 case $cc_temp in
8406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8408 \-*) ;;
8409 *) break;;
8410 esac
8411 done
8412 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8413
8414
8415 # Only perform the check for file, if the check method requires it
8416 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8417 case $deplibs_check_method in
8418 file_magic*)
8419 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8421 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8422 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 case $MAGIC_CMD in
8426 [\\/*] | ?:[\\/]*)
8427 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8428 ;;
8429 *)
8430 lt_save_MAGIC_CMD="$MAGIC_CMD"
8431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8432 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8433 for ac_dir in $ac_dummy; do
8434 IFS="$lt_save_ifs"
8435 test -z "$ac_dir" && ac_dir=.
8436 if test -f $ac_dir/${ac_tool_prefix}file; then
8437 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8438 if test -n "$file_magic_test_file"; then
8439 case $deplibs_check_method in
8440 "file_magic "*)
8441 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8442 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8443 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8444 $EGREP "$file_magic_regex" > /dev/null; then
8445 :
8446 else
8447 cat <<_LT_EOF 1>&2
8448
8449 *** Warning: the command libtool uses to detect shared libraries,
8450 *** $file_magic_cmd, produces output that libtool cannot recognize.
8451 *** The result is that libtool may fail to recognize shared libraries
8452 *** as such. This will affect the creation of libtool libraries that
8453 *** depend on shared libraries, but programs linked with such libtool
8454 *** libraries will work regardless of this problem. Nevertheless, you
8455 *** may want to report the problem to your system manager and/or to
8456 *** bug-libtool@gnu.org
8457
8458 _LT_EOF
8459 fi ;;
8460 esac
8461 fi
8462 break
8463 fi
8464 done
8465 IFS="$lt_save_ifs"
8466 MAGIC_CMD="$lt_save_MAGIC_CMD"
8467 ;;
8468 esac
8469 fi
8470
8471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8472 if test -n "$MAGIC_CMD"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8474 $as_echo "$MAGIC_CMD" >&6; }
8475 else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8478 fi
8479
8480
8481
8482
8483
8484 if test -z "$lt_cv_path_MAGIC_CMD"; then
8485 if test -n "$ac_tool_prefix"; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8487 $as_echo_n "checking for file... " >&6; }
8488 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 case $MAGIC_CMD in
8492 [\\/*] | ?:[\\/]*)
8493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8494 ;;
8495 *)
8496 lt_save_MAGIC_CMD="$MAGIC_CMD"
8497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8499 for ac_dir in $ac_dummy; do
8500 IFS="$lt_save_ifs"
8501 test -z "$ac_dir" && ac_dir=.
8502 if test -f $ac_dir/file; then
8503 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8504 if test -n "$file_magic_test_file"; then
8505 case $deplibs_check_method in
8506 "file_magic "*)
8507 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8510 $EGREP "$file_magic_regex" > /dev/null; then
8511 :
8512 else
8513 cat <<_LT_EOF 1>&2
8514
8515 *** Warning: the command libtool uses to detect shared libraries,
8516 *** $file_magic_cmd, produces output that libtool cannot recognize.
8517 *** The result is that libtool may fail to recognize shared libraries
8518 *** as such. This will affect the creation of libtool libraries that
8519 *** depend on shared libraries, but programs linked with such libtool
8520 *** libraries will work regardless of this problem. Nevertheless, you
8521 *** may want to report the problem to your system manager and/or to
8522 *** bug-libtool@gnu.org
8523
8524 _LT_EOF
8525 fi ;;
8526 esac
8527 fi
8528 break
8529 fi
8530 done
8531 IFS="$lt_save_ifs"
8532 MAGIC_CMD="$lt_save_MAGIC_CMD"
8533 ;;
8534 esac
8535 fi
8536
8537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8538 if test -n "$MAGIC_CMD"; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8540 $as_echo "$MAGIC_CMD" >&6; }
8541 else
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545
8546
8547 else
8548 MAGIC_CMD=:
8549 fi
8550 fi
8551
8552 fi
8553 ;;
8554 esac
8555
8556 # Use C for the default configuration in the libtool script
8557
8558 lt_save_CC="$CC"
8559 ac_ext=c
8560 ac_cpp='$CPP $CPPFLAGS'
8561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
8565
8566 # Source file extension for C test sources.
8567 ac_ext=c
8568
8569 # Object file extension for compiled C test sources.
8570 objext=o
8571 objext=$objext
8572
8573 # Code to be used in simple compile tests
8574 lt_simple_compile_test_code="int some_variable = 0;"
8575
8576 # Code to be used in simple link tests
8577 lt_simple_link_test_code='int main(){return(0);}'
8578
8579
8580
8581
8582
8583
8584
8585 # If no C compiler was specified, use CC.
8586 LTCC=${LTCC-"$CC"}
8587
8588 # If no C compiler flags were specified, use CFLAGS.
8589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8590
8591 # Allow CC to be a program name with arguments.
8592 compiler=$CC
8593
8594 # Save the default compiler, since it gets overwritten when the other
8595 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8596 compiler_DEFAULT=$CC
8597
8598 # save warnings/boilerplate of simple test code
8599 ac_outfile=conftest.$ac_objext
8600 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8602 _lt_compiler_boilerplate=`cat conftest.err`
8603 $RM conftest*
8604
8605 ac_outfile=conftest.$ac_objext
8606 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8608 _lt_linker_boilerplate=`cat conftest.err`
8609 $RM -r conftest*
8610
8611
8612 if test -n "$compiler"; then
8613
8614 lt_prog_compiler_no_builtin_flag=
8615
8616 if test "$GCC" = yes; then
8617 case $cc_basename in
8618 nvcc*)
8619 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8620 *)
8621 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8622 esac
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8625 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8626 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 lt_cv_prog_compiler_rtti_exceptions=no
8630 ac_outfile=conftest.$ac_objext
8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8632 lt_compiler_flag="-fno-rtti -fno-exceptions"
8633 # Insert the option either (1) after the last *FLAGS variable, or
8634 # (2) before a word containing "conftest.", or (3) at the end.
8635 # Note that $ac_compile itself does not contain backslashes and begins
8636 # with a dollar sign (not a hyphen), so the echo should work correctly.
8637 # The option is referenced via a variable to avoid confusing sed.
8638 lt_compile=`echo "$ac_compile" | $SED \
8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8641 -e 's:$: $lt_compiler_flag:'`
8642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8643 (eval "$lt_compile" 2>conftest.err)
8644 ac_status=$?
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 if (exit $ac_status) && test -s "$ac_outfile"; then
8648 # The compiler can only warn and ignore the option if not recognized
8649 # So say no if there are warnings other than the usual output.
8650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8653 lt_cv_prog_compiler_rtti_exceptions=yes
8654 fi
8655 fi
8656 $RM conftest*
8657
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8660 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8661
8662 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8664 else
8665 :
8666 fi
8667
8668 fi
8669
8670
8671
8672
8673
8674
8675 lt_prog_compiler_wl=
8676 lt_prog_compiler_pic=
8677 lt_prog_compiler_static=
8678
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8680 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8681
8682 if test "$GCC" = yes; then
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_static='-static'
8685
8686 case $host_os in
8687 aix*)
8688 # All AIX code is PIC.
8689 if test "$host_cpu" = ia64; then
8690 # AIX 5 now supports IA64 processor
8691 lt_prog_compiler_static='-Bstatic'
8692 fi
8693 ;;
8694
8695 amigaos*)
8696 case $host_cpu in
8697 powerpc)
8698 # see comment about AmigaOS4 .so support
8699 lt_prog_compiler_pic='-fPIC'
8700 ;;
8701 m68k)
8702 # FIXME: we need at least 68020 code to build shared libraries, but
8703 # adding the `-m68020' flag to GCC prevents building anything better,
8704 # like `-m68040'.
8705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8706 ;;
8707 esac
8708 ;;
8709
8710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8711 # PIC is the default for these OSes.
8712 ;;
8713
8714 mingw* | cygwin* | pw32* | os2* | cegcc*)
8715 # This hack is so that the source file can tell whether it is being
8716 # built for inclusion in a dll (and should export symbols for example).
8717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8718 # (--disable-auto-import) libraries
8719 lt_prog_compiler_pic='-DDLL_EXPORT'
8720 ;;
8721
8722 darwin* | rhapsody*)
8723 # PIC is the default on this platform
8724 # Common symbols not allowed in MH_DYLIB files
8725 lt_prog_compiler_pic='-fno-common'
8726 ;;
8727
8728 haiku*)
8729 # PIC is the default for Haiku.
8730 # The "-static" flag exists, but is broken.
8731 lt_prog_compiler_static=
8732 ;;
8733
8734 hpux*)
8735 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8736 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8737 # sets the default TLS model and affects inlining.
8738 case $host_cpu in
8739 hppa*64*)
8740 # +Z the default
8741 ;;
8742 *)
8743 lt_prog_compiler_pic='-fPIC'
8744 ;;
8745 esac
8746 ;;
8747
8748 interix[3-9]*)
8749 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8750 # Instead, we relocate shared libraries at runtime.
8751 ;;
8752
8753 msdosdjgpp*)
8754 # Just because we use GCC doesn't mean we suddenly get shared libraries
8755 # on systems that don't support them.
8756 lt_prog_compiler_can_build_shared=no
8757 enable_shared=no
8758 ;;
8759
8760 *nto* | *qnx*)
8761 # QNX uses GNU C++, but need to define -shared option too, otherwise
8762 # it will coredump.
8763 lt_prog_compiler_pic='-fPIC -shared'
8764 ;;
8765
8766 sysv4*MP*)
8767 if test -d /usr/nec; then
8768 lt_prog_compiler_pic=-Kconform_pic
8769 fi
8770 ;;
8771
8772 *)
8773 lt_prog_compiler_pic='-fPIC'
8774 ;;
8775 esac
8776
8777 case $cc_basename in
8778 nvcc*) # Cuda Compiler Driver 2.2
8779 lt_prog_compiler_wl='-Xlinker '
8780 lt_prog_compiler_pic='-Xcompiler -fPIC'
8781 ;;
8782 esac
8783 else
8784 # PORTME Check for flag to pass linker flags through the system compiler.
8785 case $host_os in
8786 aix*)
8787 lt_prog_compiler_wl='-Wl,'
8788 if test "$host_cpu" = ia64; then
8789 # AIX 5 now supports IA64 processor
8790 lt_prog_compiler_static='-Bstatic'
8791 else
8792 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8793 fi
8794 ;;
8795
8796 mingw* | cygwin* | pw32* | os2* | cegcc*)
8797 # This hack is so that the source file can tell whether it is being
8798 # built for inclusion in a dll (and should export symbols for example).
8799 lt_prog_compiler_pic='-DDLL_EXPORT'
8800 ;;
8801
8802 hpux9* | hpux10* | hpux11*)
8803 lt_prog_compiler_wl='-Wl,'
8804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8805 # not for PA HP-UX.
8806 case $host_cpu in
8807 hppa*64*|ia64*)
8808 # +Z the default
8809 ;;
8810 *)
8811 lt_prog_compiler_pic='+Z'
8812 ;;
8813 esac
8814 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8815 lt_prog_compiler_static='${wl}-a ${wl}archive'
8816 ;;
8817
8818 irix5* | irix6* | nonstopux*)
8819 lt_prog_compiler_wl='-Wl,'
8820 # PIC (with -KPIC) is the default.
8821 lt_prog_compiler_static='-non_shared'
8822 ;;
8823
8824 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8825 case $cc_basename in
8826 # old Intel for x86_64 which still supported -KPIC.
8827 ecc*)
8828 lt_prog_compiler_wl='-Wl,'
8829 lt_prog_compiler_pic='-KPIC'
8830 lt_prog_compiler_static='-static'
8831 ;;
8832 # icc used to be incompatible with GCC.
8833 # ICC 10 doesn't accept -KPIC any more.
8834 icc* | ifort*)
8835 lt_prog_compiler_wl='-Wl,'
8836 lt_prog_compiler_pic='-fPIC'
8837 lt_prog_compiler_static='-static'
8838 ;;
8839 # Lahey Fortran 8.1.
8840 lf95*)
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='--shared'
8843 lt_prog_compiler_static='--static'
8844 ;;
8845 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8846 # Portland Group compilers (*not* the Pentium gcc compiler,
8847 # which looks to be a dead project)
8848 lt_prog_compiler_wl='-Wl,'
8849 lt_prog_compiler_pic='-fpic'
8850 lt_prog_compiler_static='-Bstatic'
8851 ;;
8852 ccc*)
8853 lt_prog_compiler_wl='-Wl,'
8854 # All Alpha code is PIC.
8855 lt_prog_compiler_static='-non_shared'
8856 ;;
8857 xl* | bgxl* | bgf* | mpixl*)
8858 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-qpic'
8861 lt_prog_compiler_static='-qstaticlink'
8862 ;;
8863 *)
8864 case `$CC -V 2>&1 | sed 5q` in
8865 *Sun\ F* | *Sun*Fortran*)
8866 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8867 lt_prog_compiler_pic='-KPIC'
8868 lt_prog_compiler_static='-Bstatic'
8869 lt_prog_compiler_wl=''
8870 ;;
8871 *Sun\ C*)
8872 # Sun C 5.9
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 lt_prog_compiler_wl='-Wl,'
8876 ;;
8877 esac
8878 ;;
8879 esac
8880 ;;
8881
8882 newsos6)
8883 lt_prog_compiler_pic='-KPIC'
8884 lt_prog_compiler_static='-Bstatic'
8885 ;;
8886
8887 *nto* | *qnx*)
8888 # QNX uses GNU C++, but need to define -shared option too, otherwise
8889 # it will coredump.
8890 lt_prog_compiler_pic='-fPIC -shared'
8891 ;;
8892
8893 osf3* | osf4* | osf5*)
8894 lt_prog_compiler_wl='-Wl,'
8895 # All OSF/1 code is PIC.
8896 lt_prog_compiler_static='-non_shared'
8897 ;;
8898
8899 rdos*)
8900 lt_prog_compiler_static='-non_shared'
8901 ;;
8902
8903 solaris*)
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8906 case $cc_basename in
8907 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8908 lt_prog_compiler_wl='-Qoption ld ';;
8909 *)
8910 lt_prog_compiler_wl='-Wl,';;
8911 esac
8912 ;;
8913
8914 sunos4*)
8915 lt_prog_compiler_wl='-Qoption ld '
8916 lt_prog_compiler_pic='-PIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 ;;
8919
8920 sysv4 | sysv4.2uw2* | sysv4.3*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 ;;
8925
8926 sysv4*MP*)
8927 if test -d /usr/nec ;then
8928 lt_prog_compiler_pic='-Kconform_pic'
8929 lt_prog_compiler_static='-Bstatic'
8930 fi
8931 ;;
8932
8933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8934 lt_prog_compiler_wl='-Wl,'
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 ;;
8938
8939 unicos*)
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_can_build_shared=no
8942 ;;
8943
8944 uts4*)
8945 lt_prog_compiler_pic='-pic'
8946 lt_prog_compiler_static='-Bstatic'
8947 ;;
8948
8949 *)
8950 lt_prog_compiler_can_build_shared=no
8951 ;;
8952 esac
8953 fi
8954
8955 case $host_os in
8956 # For platforms which do not support PIC, -DPIC is meaningless:
8957 *djgpp*)
8958 lt_prog_compiler_pic=
8959 ;;
8960 *)
8961 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8962 ;;
8963 esac
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8965 $as_echo "$lt_prog_compiler_pic" >&6; }
8966
8967
8968
8969
8970
8971
8972 #
8973 # Check to make sure the PIC flag actually works.
8974 #
8975 if test -n "$lt_prog_compiler_pic"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8977 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8978 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 lt_cv_prog_compiler_pic_works=no
8982 ac_outfile=conftest.$ac_objext
8983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8984 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8985 # Insert the option either (1) after the last *FLAGS variable, or
8986 # (2) before a word containing "conftest.", or (3) at the end.
8987 # Note that $ac_compile itself does not contain backslashes and begins
8988 # with a dollar sign (not a hyphen), so the echo should work correctly.
8989 # The option is referenced via a variable to avoid confusing sed.
8990 lt_compile=`echo "$ac_compile" | $SED \
8991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8993 -e 's:$: $lt_compiler_flag:'`
8994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8995 (eval "$lt_compile" 2>conftest.err)
8996 ac_status=$?
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 if (exit $ac_status) && test -s "$ac_outfile"; then
9000 # The compiler can only warn and ignore the option if not recognized
9001 # So say no if there are warnings other than the usual output.
9002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9005 lt_cv_prog_compiler_pic_works=yes
9006 fi
9007 fi
9008 $RM conftest*
9009
9010 fi
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9012 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9013
9014 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9015 case $lt_prog_compiler_pic in
9016 "" | " "*) ;;
9017 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9018 esac
9019 else
9020 lt_prog_compiler_pic=
9021 lt_prog_compiler_can_build_shared=no
9022 fi
9023
9024 fi
9025
9026
9027
9028
9029
9030
9031 #
9032 # Check to make sure the static flag actually works.
9033 #
9034 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9036 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9037 if ${lt_cv_prog_compiler_static_works+:} false; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 lt_cv_prog_compiler_static_works=no
9041 save_LDFLAGS="$LDFLAGS"
9042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9043 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9045 # The linker can only warn and ignore the option if not recognized
9046 # So say no if there are warnings
9047 if test -s conftest.err; then
9048 # Append any errors to the config.log.
9049 cat conftest.err 1>&5
9050 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9052 if diff conftest.exp conftest.er2 >/dev/null; then
9053 lt_cv_prog_compiler_static_works=yes
9054 fi
9055 else
9056 lt_cv_prog_compiler_static_works=yes
9057 fi
9058 fi
9059 $RM -r conftest*
9060 LDFLAGS="$save_LDFLAGS"
9061
9062 fi
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9064 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9065
9066 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9067 :
9068 else
9069 lt_prog_compiler_static=
9070 fi
9071
9072
9073
9074
9075
9076
9077
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9079 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9080 if ${lt_cv_prog_compiler_c_o+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 lt_cv_prog_compiler_c_o=no
9084 $RM -r conftest 2>/dev/null
9085 mkdir conftest
9086 cd conftest
9087 mkdir out
9088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9089
9090 lt_compiler_flag="-o out/conftest2.$ac_objext"
9091 # Insert the option either (1) after the last *FLAGS variable, or
9092 # (2) before a word containing "conftest.", or (3) at the end.
9093 # Note that $ac_compile itself does not contain backslashes and begins
9094 # with a dollar sign (not a hyphen), so the echo should work correctly.
9095 lt_compile=`echo "$ac_compile" | $SED \
9096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9098 -e 's:$: $lt_compiler_flag:'`
9099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9100 (eval "$lt_compile" 2>out/conftest.err)
9101 ac_status=$?
9102 cat out/conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9105 then
9106 # The compiler can only warn and ignore the option if not recognized
9107 # So say no if there are warnings
9108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9111 lt_cv_prog_compiler_c_o=yes
9112 fi
9113 fi
9114 chmod u+w . 2>&5
9115 $RM conftest*
9116 # SGI C++ compiler will create directory out/ii_files/ for
9117 # template instantiation
9118 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9119 $RM out/* && rmdir out
9120 cd ..
9121 $RM -r conftest
9122 $RM conftest*
9123
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9126 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9127
9128
9129
9130
9131
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9135 if ${lt_cv_prog_compiler_c_o+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 lt_cv_prog_compiler_c_o=no
9139 $RM -r conftest 2>/dev/null
9140 mkdir conftest
9141 cd conftest
9142 mkdir out
9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144
9145 lt_compiler_flag="-o out/conftest2.$ac_objext"
9146 # Insert the option either (1) after the last *FLAGS variable, or
9147 # (2) before a word containing "conftest.", or (3) at the end.
9148 # Note that $ac_compile itself does not contain backslashes and begins
9149 # with a dollar sign (not a hyphen), so the echo should work correctly.
9150 lt_compile=`echo "$ac_compile" | $SED \
9151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153 -e 's:$: $lt_compiler_flag:'`
9154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9155 (eval "$lt_compile" 2>out/conftest.err)
9156 ac_status=$?
9157 cat out/conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9160 then
9161 # The compiler can only warn and ignore the option if not recognized
9162 # So say no if there are warnings
9163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9166 lt_cv_prog_compiler_c_o=yes
9167 fi
9168 fi
9169 chmod u+w . 2>&5
9170 $RM conftest*
9171 # SGI C++ compiler will create directory out/ii_files/ for
9172 # template instantiation
9173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9174 $RM out/* && rmdir out
9175 cd ..
9176 $RM -r conftest
9177 $RM conftest*
9178
9179 fi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9181 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9182
9183
9184
9185
9186 hard_links="nottested"
9187 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9188 # do not overwrite the value of need_locks provided by the user
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9190 $as_echo_n "checking if we can lock with hard links... " >&6; }
9191 hard_links=yes
9192 $RM conftest*
9193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9194 touch conftest.a
9195 ln conftest.a conftest.b 2>&5 || hard_links=no
9196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9198 $as_echo "$hard_links" >&6; }
9199 if test "$hard_links" = no; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9201 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9202 need_locks=warn
9203 fi
9204 else
9205 need_locks=no
9206 fi
9207
9208
9209
9210
9211
9212
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9214 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9215
9216 runpath_var=
9217 allow_undefined_flag=
9218 always_export_symbols=no
9219 archive_cmds=
9220 archive_expsym_cmds=
9221 compiler_needs_object=no
9222 enable_shared_with_static_runtimes=no
9223 export_dynamic_flag_spec=
9224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9225 hardcode_automatic=no
9226 hardcode_direct=no
9227 hardcode_direct_absolute=no
9228 hardcode_libdir_flag_spec=
9229 hardcode_libdir_flag_spec_ld=
9230 hardcode_libdir_separator=
9231 hardcode_minus_L=no
9232 hardcode_shlibpath_var=unsupported
9233 inherit_rpath=no
9234 link_all_deplibs=unknown
9235 module_cmds=
9236 module_expsym_cmds=
9237 old_archive_from_new_cmds=
9238 old_archive_from_expsyms_cmds=
9239 thread_safe_flag_spec=
9240 whole_archive_flag_spec=
9241 # include_expsyms should be a list of space-separated symbols to be *always*
9242 # included in the symbol list
9243 include_expsyms=
9244 # exclude_expsyms can be an extended regexp of symbols to exclude
9245 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9246 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9247 # as well as any symbol that contains `d'.
9248 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9250 # platforms (ab)use it in PIC code, but their linkers get confused if
9251 # the symbol is explicitly referenced. Since portable code cannot
9252 # rely on this symbol name, it's probably fine to never include it in
9253 # preloaded symbol tables.
9254 # Exclude shared library initialization/finalization symbols.
9255 extract_expsyms_cmds=
9256
9257 case $host_os in
9258 cygwin* | mingw* | pw32* | cegcc*)
9259 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9260 # When not using gcc, we currently assume that we are using
9261 # Microsoft Visual C++.
9262 if test "$GCC" != yes; then
9263 with_gnu_ld=no
9264 fi
9265 ;;
9266 interix*)
9267 # we just hope/assume this is gcc and not c89 (= MSVC++)
9268 with_gnu_ld=yes
9269 ;;
9270 openbsd*)
9271 with_gnu_ld=no
9272 ;;
9273 esac
9274
9275 ld_shlibs=yes
9276
9277 # On some targets, GNU ld is compatible enough with the native linker
9278 # that we're better off using the native interface for both.
9279 lt_use_gnu_ld_interface=no
9280 if test "$with_gnu_ld" = yes; then
9281 case $host_os in
9282 aix*)
9283 # The AIX port of GNU ld has always aspired to compatibility
9284 # with the native linker. However, as the warning in the GNU ld
9285 # block says, versions before 2.19.5* couldn't really create working
9286 # shared libraries, regardless of the interface used.
9287 case `$LD -v 2>&1` in
9288 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9289 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9290 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9291 *)
9292 lt_use_gnu_ld_interface=yes
9293 ;;
9294 esac
9295 ;;
9296 *)
9297 lt_use_gnu_ld_interface=yes
9298 ;;
9299 esac
9300 fi
9301
9302 if test "$lt_use_gnu_ld_interface" = yes; then
9303 # If archive_cmds runs LD, not CC, wlarc should be empty
9304 wlarc='${wl}'
9305
9306 # Set some defaults for GNU ld with shared library support. These
9307 # are reset later if shared libraries are not supported. Putting them
9308 # here allows them to be overridden if necessary.
9309 runpath_var=LD_RUN_PATH
9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311 export_dynamic_flag_spec='${wl}--export-dynamic'
9312 # ancient GNU ld didn't support --whole-archive et. al.
9313 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9314 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9315 else
9316 whole_archive_flag_spec=
9317 fi
9318 supports_anon_versioning=no
9319 case `$LD -v 2>&1` in
9320 *GNU\ gold*) supports_anon_versioning=yes ;;
9321 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9322 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9323 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9324 *\ 2.11.*) ;; # other 2.11 versions
9325 *) supports_anon_versioning=yes ;;
9326 esac
9327
9328 # See if GNU ld supports shared libraries.
9329 case $host_os in
9330 aix[3-9]*)
9331 # On AIX/PPC, the GNU linker is very broken
9332 if test "$host_cpu" != ia64; then
9333 ld_shlibs=no
9334 cat <<_LT_EOF 1>&2
9335
9336 *** Warning: the GNU linker, at least up to release 2.19, is reported
9337 *** to be unable to reliably create shared libraries on AIX.
9338 *** Therefore, libtool is disabling shared libraries support. If you
9339 *** really care for shared libraries, you may want to install binutils
9340 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9341 *** You will then need to restart the configuration process.
9342
9343 _LT_EOF
9344 fi
9345 ;;
9346
9347 amigaos*)
9348 case $host_cpu in
9349 powerpc)
9350 # see comment about AmigaOS4 .so support
9351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 archive_expsym_cmds=''
9353 ;;
9354 m68k)
9355 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)'
9356 hardcode_libdir_flag_spec='-L$libdir'
9357 hardcode_minus_L=yes
9358 ;;
9359 esac
9360 ;;
9361
9362 beos*)
9363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9364 allow_undefined_flag=unsupported
9365 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9366 # support --undefined. This deserves some investigation. FIXME
9367 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368 else
9369 ld_shlibs=no
9370 fi
9371 ;;
9372
9373 cygwin* | mingw* | pw32* | cegcc*)
9374 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9375 # as there is no search path for DLLs.
9376 hardcode_libdir_flag_spec='-L$libdir'
9377 export_dynamic_flag_spec='${wl}--export-all-symbols'
9378 allow_undefined_flag=unsupported
9379 always_export_symbols=no
9380 enable_shared_with_static_runtimes=yes
9381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9382
9383 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385 # If the export-symbols file already is a .def file (1st line
9386 # is EXPORTS), use it as is; otherwise, prepend...
9387 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9388 cp $export_symbols $output_objdir/$soname.def;
9389 else
9390 echo EXPORTS > $output_objdir/$soname.def;
9391 cat $export_symbols >> $output_objdir/$soname.def;
9392 fi~
9393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9394 else
9395 ld_shlibs=no
9396 fi
9397 ;;
9398
9399 haiku*)
9400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401 link_all_deplibs=yes
9402 ;;
9403
9404 interix[3-9]*)
9405 hardcode_direct=no
9406 hardcode_shlibpath_var=no
9407 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9408 export_dynamic_flag_spec='${wl}-E'
9409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9410 # Instead, shared libraries are loaded at an image base (0x10000000 by
9411 # default) and relocated if they conflict, which is a slow very memory
9412 # consuming and fragmenting process. To avoid this, we pick a random,
9413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9414 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9416 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'
9417 ;;
9418
9419 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9420 tmp_diet=no
9421 if test "$host_os" = linux-dietlibc; then
9422 case $cc_basename in
9423 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9424 esac
9425 fi
9426 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9427 && test "$tmp_diet" = no
9428 then
9429 tmp_addflag=
9430 tmp_sharedflag='-shared'
9431 case $cc_basename,$host_cpu in
9432 pgcc*) # Portland Group C compiler
9433 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'
9434 tmp_addflag=' $pic_flag'
9435 ;;
9436 pgf77* | pgf90* | pgf95* | pgfortran*)
9437 # Portland Group f77 and f90 compilers
9438 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'
9439 tmp_addflag=' $pic_flag -Mnomain' ;;
9440 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9441 tmp_addflag=' -i_dynamic' ;;
9442 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9443 tmp_addflag=' -i_dynamic -nofor_main' ;;
9444 ifc* | ifort*) # Intel Fortran compiler
9445 tmp_addflag=' -nofor_main' ;;
9446 lf95*) # Lahey Fortran 8.1
9447 whole_archive_flag_spec=
9448 tmp_sharedflag='--shared' ;;
9449 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9450 tmp_sharedflag='-qmkshrobj'
9451 tmp_addflag= ;;
9452 nvcc*) # Cuda Compiler Driver 2.2
9453 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'
9454 compiler_needs_object=yes
9455 ;;
9456 esac
9457 case `$CC -V 2>&1 | sed 5q` in
9458 *Sun\ C*) # Sun C 5.9
9459 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'
9460 compiler_needs_object=yes
9461 tmp_sharedflag='-G' ;;
9462 *Sun\ F*) # Sun Fortran 8.3
9463 tmp_sharedflag='-G' ;;
9464 esac
9465 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466
9467 if test "x$supports_anon_versioning" = xyes; then
9468 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9469 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9470 echo "local: *; };" >> $output_objdir/$libname.ver~
9471 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9472 fi
9473
9474 case $cc_basename in
9475 xlf* | bgf* | bgxlf* | mpixlf*)
9476 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9477 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9478 hardcode_libdir_flag_spec=
9479 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9480 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9481 if test "x$supports_anon_versioning" = xyes; then
9482 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9484 echo "local: *; };" >> $output_objdir/$libname.ver~
9485 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9486 fi
9487 ;;
9488 esac
9489 else
9490 ld_shlibs=no
9491 fi
9492 ;;
9493
9494 netbsd*)
9495 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9496 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9497 wlarc=
9498 else
9499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9501 fi
9502 ;;
9503
9504 solaris*)
9505 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9506 ld_shlibs=no
9507 cat <<_LT_EOF 1>&2
9508
9509 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9510 *** create shared libraries on Solaris systems. Therefore, libtool
9511 *** is disabling shared libraries support. We urge you to upgrade GNU
9512 *** binutils to release 2.9.1 or newer. Another option is to modify
9513 *** your PATH or compiler configuration so that the native linker is
9514 *** used, and then restart.
9515
9516 _LT_EOF
9517 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9520 else
9521 ld_shlibs=no
9522 fi
9523 ;;
9524
9525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9526 case `$LD -v 2>&1` in
9527 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9528 ld_shlibs=no
9529 cat <<_LT_EOF 1>&2
9530
9531 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9532 *** reliably create shared libraries on SCO systems. Therefore, libtool
9533 *** is disabling shared libraries support. We urge you to upgrade GNU
9534 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9535 *** your PATH or compiler configuration so that the native linker is
9536 *** used, and then restart.
9537
9538 _LT_EOF
9539 ;;
9540 *)
9541 # For security reasons, it is highly recommended that you always
9542 # use absolute paths for naming shared libraries, and exclude the
9543 # DT_RUNPATH tag from executables and libraries. But doing so
9544 # requires that you compile everything twice, which is a pain.
9545 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9549 else
9550 ld_shlibs=no
9551 fi
9552 ;;
9553 esac
9554 ;;
9555
9556 sunos4*)
9557 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9558 wlarc=
9559 hardcode_direct=yes
9560 hardcode_shlibpath_var=no
9561 ;;
9562
9563 *)
9564 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9566 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9567 else
9568 ld_shlibs=no
9569 fi
9570 ;;
9571 esac
9572
9573 if test "$ld_shlibs" = no; then
9574 runpath_var=
9575 hardcode_libdir_flag_spec=
9576 export_dynamic_flag_spec=
9577 whole_archive_flag_spec=
9578 fi
9579 else
9580 # PORTME fill in a description of your system's linker (not GNU ld)
9581 case $host_os in
9582 aix3*)
9583 allow_undefined_flag=unsupported
9584 always_export_symbols=yes
9585 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'
9586 # Note: this linker hardcodes the directories in LIBPATH if there
9587 # are no directories specified by -L.
9588 hardcode_minus_L=yes
9589 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9590 # Neither direct hardcoding nor static linking is supported with a
9591 # broken collect2.
9592 hardcode_direct=unsupported
9593 fi
9594 ;;
9595
9596 aix[4-9]*)
9597 if test "$host_cpu" = ia64; then
9598 # On IA64, the linker does run time linking by default, so we don't
9599 # have to do anything special.
9600 aix_use_runtimelinking=no
9601 exp_sym_flag='-Bexport'
9602 no_entry_flag=""
9603 else
9604 # If we're using GNU nm, then we don't want the "-C" option.
9605 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9606 # Also, AIX nm treats weak defined symbols like other global
9607 # defined symbols, whereas GNU nm marks them as "W".
9608 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9609 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9610 else
9611 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9612 fi
9613 aix_use_runtimelinking=no
9614
9615 # Test if we are trying to use run time linking or normal
9616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9617 # need to do runtime linking.
9618 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9619 for ld_flag in $LDFLAGS; do
9620 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9621 aix_use_runtimelinking=yes
9622 break
9623 fi
9624 done
9625 ;;
9626 esac
9627
9628 exp_sym_flag='-bexport'
9629 no_entry_flag='-bnoentry'
9630 fi
9631
9632 # When large executables or shared objects are built, AIX ld can
9633 # have problems creating the table of contents. If linking a library
9634 # or program results in "error TOC overflow" add -mminimal-toc to
9635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9637
9638 archive_cmds=''
9639 hardcode_direct=yes
9640 hardcode_direct_absolute=yes
9641 hardcode_libdir_separator=':'
9642 link_all_deplibs=yes
9643 file_list_spec='${wl}-f,'
9644
9645 if test "$GCC" = yes; then
9646 case $host_os in aix4.[012]|aix4.[012].*)
9647 # We only want to do this on AIX 4.2 and lower, the check
9648 # below for broken collect2 doesn't work under 4.3+
9649 collect2name=`${CC} -print-prog-name=collect2`
9650 if test -f "$collect2name" &&
9651 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9652 then
9653 # We have reworked collect2
9654 :
9655 else
9656 # We have old collect2
9657 hardcode_direct=unsupported
9658 # It fails to find uninstalled libraries when the uninstalled
9659 # path is not listed in the libpath. Setting hardcode_minus_L
9660 # to unsupported forces relinking
9661 hardcode_minus_L=yes
9662 hardcode_libdir_flag_spec='-L$libdir'
9663 hardcode_libdir_separator=
9664 fi
9665 ;;
9666 esac
9667 shared_flag='-shared'
9668 if test "$aix_use_runtimelinking" = yes; then
9669 shared_flag="$shared_flag "'${wl}-G'
9670 fi
9671 else
9672 # not using gcc
9673 if test "$host_cpu" = ia64; then
9674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9675 # chokes on -Wl,-G. The following line is correct:
9676 shared_flag='-G'
9677 else
9678 if test "$aix_use_runtimelinking" = yes; then
9679 shared_flag='${wl}-G'
9680 else
9681 shared_flag='${wl}-bM:SRE'
9682 fi
9683 fi
9684 fi
9685
9686 export_dynamic_flag_spec='${wl}-bexpall'
9687 # It seems that -bexpall does not export symbols beginning with
9688 # underscore (_), so it is better to generate a list of symbols to export.
9689 always_export_symbols=yes
9690 if test "$aix_use_runtimelinking" = yes; then
9691 # Warning - without using the other runtime loading flags (-brtl),
9692 # -berok will link without error, but may produce a broken library.
9693 allow_undefined_flag='-berok'
9694 # Determine the default libpath from the value encoded in an
9695 # empty executable.
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698
9699 int
9700 main ()
9701 {
9702
9703 ;
9704 return 0;
9705 }
9706 _ACEOF
9707 if ac_fn_c_try_link "$LINENO"; then :
9708
9709 lt_aix_libpath_sed='
9710 /Import File Strings/,/^$/ {
9711 /^0/ {
9712 s/^0 *\(.*\)$/\1/
9713 p
9714 }
9715 }'
9716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9717 # Check for a 64-bit object if we didn't find anything.
9718 if test -z "$aix_libpath"; then
9719 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9720 fi
9721 fi
9722 rm -f core conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9725
9726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9727 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9728 else
9729 if test "$host_cpu" = ia64; then
9730 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9731 allow_undefined_flag="-z nodefs"
9732 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"
9733 else
9734 # Determine the default libpath from the value encoded in an
9735 # empty executable.
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738
9739 int
9740 main ()
9741 {
9742
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 if ac_fn_c_try_link "$LINENO"; then :
9748
9749 lt_aix_libpath_sed='
9750 /Import File Strings/,/^$/ {
9751 /^0/ {
9752 s/^0 *\(.*\)$/\1/
9753 p
9754 }
9755 }'
9756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9757 # Check for a 64-bit object if we didn't find anything.
9758 if test -z "$aix_libpath"; then
9759 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9760 fi
9761 fi
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9765
9766 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9767 # Warning - without using the other run time loading flags,
9768 # -berok will link without error, but may produce a broken library.
9769 no_undefined_flag=' ${wl}-bernotok'
9770 allow_undefined_flag=' ${wl}-berok'
9771 if test "$with_gnu_ld" = yes; then
9772 # We only use this code for GNU lds that support --whole-archive.
9773 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9774 else
9775 # Exported symbols can be pulled into shared objects from archives
9776 whole_archive_flag_spec='$convenience'
9777 fi
9778 archive_cmds_need_lc=yes
9779 # This is similar to how AIX traditionally builds its shared libraries.
9780 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9781 fi
9782 fi
9783 ;;
9784
9785 amigaos*)
9786 case $host_cpu in
9787 powerpc)
9788 # see comment about AmigaOS4 .so support
9789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790 archive_expsym_cmds=''
9791 ;;
9792 m68k)
9793 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)'
9794 hardcode_libdir_flag_spec='-L$libdir'
9795 hardcode_minus_L=yes
9796 ;;
9797 esac
9798 ;;
9799
9800 bsdi[45]*)
9801 export_dynamic_flag_spec=-rdynamic
9802 ;;
9803
9804 cygwin* | mingw* | pw32* | cegcc*)
9805 # When not using gcc, we currently assume that we are using
9806 # Microsoft Visual C++.
9807 # hardcode_libdir_flag_spec is actually meaningless, as there is
9808 # no search path for DLLs.
9809 hardcode_libdir_flag_spec=' '
9810 allow_undefined_flag=unsupported
9811 # Tell ltmain to make .lib files, not .a files.
9812 libext=lib
9813 # Tell ltmain to make .dll files, not .so files.
9814 shrext_cmds=".dll"
9815 # FIXME: Setting linknames here is a bad hack.
9816 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9817 # The linker will automatically build a .lib file if we build a DLL.
9818 old_archive_from_new_cmds='true'
9819 # FIXME: Should let the user specify the lib program.
9820 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9821 fix_srcfile_path='`cygpath -w "$srcfile"`'
9822 enable_shared_with_static_runtimes=yes
9823 ;;
9824
9825 darwin* | rhapsody*)
9826
9827
9828 archive_cmds_need_lc=no
9829 hardcode_direct=no
9830 hardcode_automatic=yes
9831 hardcode_shlibpath_var=unsupported
9832 if test "$lt_cv_ld_force_load" = "yes"; then
9833 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\"`'
9834 else
9835 whole_archive_flag_spec=''
9836 fi
9837 link_all_deplibs=yes
9838 allow_undefined_flag="$_lt_dar_allow_undefined"
9839 case $cc_basename in
9840 ifort*) _lt_dar_can_shared=yes ;;
9841 *) _lt_dar_can_shared=$GCC ;;
9842 esac
9843 if test "$_lt_dar_can_shared" = "yes"; then
9844 output_verbose_link_cmd=func_echo_all
9845 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9846 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9847 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}"
9848 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}"
9849
9850 else
9851 ld_shlibs=no
9852 fi
9853
9854 ;;
9855
9856 dgux*)
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 hardcode_shlibpath_var=no
9860 ;;
9861
9862 freebsd1*)
9863 ld_shlibs=no
9864 ;;
9865
9866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9867 # support. Future versions do this automatically, but an explicit c++rt0.o
9868 # does not break anything, and helps significantly (at the cost of a little
9869 # extra space).
9870 freebsd2.2*)
9871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9872 hardcode_libdir_flag_spec='-R$libdir'
9873 hardcode_direct=yes
9874 hardcode_shlibpath_var=no
9875 ;;
9876
9877 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9878 freebsd2*)
9879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880 hardcode_direct=yes
9881 hardcode_minus_L=yes
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9886 freebsd* | dragonfly*)
9887 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9888 hardcode_libdir_flag_spec='-R$libdir'
9889 hardcode_direct=yes
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 hpux9*)
9894 if test "$GCC" = yes; then
9895 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9896 else
9897 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9898 fi
9899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900 hardcode_libdir_separator=:
9901 hardcode_direct=yes
9902
9903 # hardcode_minus_L: Not really in the search PATH,
9904 # but as the default location of the library.
9905 hardcode_minus_L=yes
9906 export_dynamic_flag_spec='${wl}-E'
9907 ;;
9908
9909 hpux10*)
9910 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9911 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9912 else
9913 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9914 fi
9915 if test "$with_gnu_ld" = no; then
9916 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9917 hardcode_libdir_flag_spec_ld='+b $libdir'
9918 hardcode_libdir_separator=:
9919 hardcode_direct=yes
9920 hardcode_direct_absolute=yes
9921 export_dynamic_flag_spec='${wl}-E'
9922 # hardcode_minus_L: Not really in the search PATH,
9923 # but as the default location of the library.
9924 hardcode_minus_L=yes
9925 fi
9926 ;;
9927
9928 hpux11*)
9929 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9930 case $host_cpu in
9931 hppa*64*)
9932 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9933 ;;
9934 ia64*)
9935 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9936 ;;
9937 *)
9938 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9939 ;;
9940 esac
9941 else
9942 case $host_cpu in
9943 hppa*64*)
9944 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9945 ;;
9946 ia64*)
9947 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9948 ;;
9949 *)
9950
9951 # Older versions of the 11.00 compiler do not understand -b yet
9952 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9954 $as_echo_n "checking if $CC understands -b... " >&6; }
9955 if ${lt_cv_prog_compiler__b+:} false; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 lt_cv_prog_compiler__b=no
9959 save_LDFLAGS="$LDFLAGS"
9960 LDFLAGS="$LDFLAGS -b"
9961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9963 # The linker can only warn and ignore the option if not recognized
9964 # So say no if there are warnings
9965 if test -s conftest.err; then
9966 # Append any errors to the config.log.
9967 cat conftest.err 1>&5
9968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9970 if diff conftest.exp conftest.er2 >/dev/null; then
9971 lt_cv_prog_compiler__b=yes
9972 fi
9973 else
9974 lt_cv_prog_compiler__b=yes
9975 fi
9976 fi
9977 $RM -r conftest*
9978 LDFLAGS="$save_LDFLAGS"
9979
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9982 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9983
9984 if test x"$lt_cv_prog_compiler__b" = xyes; then
9985 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9986 else
9987 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9988 fi
9989
9990 ;;
9991 esac
9992 fi
9993 if test "$with_gnu_ld" = no; then
9994 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9995 hardcode_libdir_separator=:
9996
9997 case $host_cpu in
9998 hppa*64*|ia64*)
9999 hardcode_direct=no
10000 hardcode_shlibpath_var=no
10001 ;;
10002 *)
10003 hardcode_direct=yes
10004 hardcode_direct_absolute=yes
10005 export_dynamic_flag_spec='${wl}-E'
10006
10007 # hardcode_minus_L: Not really in the search PATH,
10008 # but as the default location of the library.
10009 hardcode_minus_L=yes
10010 ;;
10011 esac
10012 fi
10013 ;;
10014
10015 irix5* | irix6* | nonstopux*)
10016 if test "$GCC" = yes; then
10017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10018 # Try to use the -exported_symbol ld option, if it does not
10019 # work, assume that -exports_file does not work either and
10020 # implicitly export all symbols.
10021 save_LDFLAGS="$LDFLAGS"
10022 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 int foo(void) {}
10026 _ACEOF
10027 if ac_fn_c_try_link "$LINENO"; then :
10028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10029
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LDFLAGS="$save_LDFLAGS"
10034 else
10035 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'
10036 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'
10037 fi
10038 archive_cmds_need_lc='no'
10039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10040 hardcode_libdir_separator=:
10041 inherit_rpath=yes
10042 link_all_deplibs=yes
10043 ;;
10044
10045 netbsd*)
10046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10048 else
10049 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10050 fi
10051 hardcode_libdir_flag_spec='-R$libdir'
10052 hardcode_direct=yes
10053 hardcode_shlibpath_var=no
10054 ;;
10055
10056 newsos6)
10057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_direct=yes
10059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10060 hardcode_libdir_separator=:
10061 hardcode_shlibpath_var=no
10062 ;;
10063
10064 *nto* | *qnx*)
10065 ;;
10066
10067 openbsd*)
10068 if test -f /usr/libexec/ld.so; then
10069 hardcode_direct=yes
10070 hardcode_shlibpath_var=no
10071 hardcode_direct_absolute=yes
10072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10073 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10076 export_dynamic_flag_spec='${wl}-E'
10077 else
10078 case $host_os in
10079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_libdir_flag_spec='-R$libdir'
10082 ;;
10083 *)
10084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086 ;;
10087 esac
10088 fi
10089 else
10090 ld_shlibs=no
10091 fi
10092 ;;
10093
10094 os2*)
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_minus_L=yes
10097 allow_undefined_flag=unsupported
10098 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10099 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10100 ;;
10101
10102 osf3*)
10103 if test "$GCC" = yes; then
10104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10105 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'
10106 else
10107 allow_undefined_flag=' -expect_unresolved \*'
10108 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'
10109 fi
10110 archive_cmds_need_lc='no'
10111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112 hardcode_libdir_separator=:
10113 ;;
10114
10115 osf4* | osf5*) # as osf3* with the addition of -msym flag
10116 if test "$GCC" = yes; then
10117 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10118 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 else
10121 allow_undefined_flag=' -expect_unresolved \*'
10122 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'
10123 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~
10124 $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'
10125
10126 # Both c and cxx compiler support -rpath directly
10127 hardcode_libdir_flag_spec='-rpath $libdir'
10128 fi
10129 archive_cmds_need_lc='no'
10130 hardcode_libdir_separator=:
10131 ;;
10132
10133 solaris*)
10134 no_undefined_flag=' -z defs'
10135 if test "$GCC" = yes; then
10136 wlarc='${wl}'
10137 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10139 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10140 else
10141 case `$CC -V 2>&1` in
10142 *"Compilers 5.0"*)
10143 wlarc=''
10144 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10146 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10147 ;;
10148 *)
10149 wlarc='${wl}'
10150 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10152 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10153 ;;
10154 esac
10155 fi
10156 hardcode_libdir_flag_spec='-R$libdir'
10157 hardcode_shlibpath_var=no
10158 case $host_os in
10159 solaris2.[0-5] | solaris2.[0-5].*) ;;
10160 *)
10161 # The compiler driver will combine and reorder linker options,
10162 # but understands `-z linker_flag'. GCC discards it without `$wl',
10163 # but is careful enough not to reorder.
10164 # Supported since Solaris 2.6 (maybe 2.5.1?)
10165 if test "$GCC" = yes; then
10166 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10167 else
10168 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10169 fi
10170 ;;
10171 esac
10172 link_all_deplibs=yes
10173 ;;
10174
10175 sunos4*)
10176 if test "x$host_vendor" = xsequent; then
10177 # Use $CC to link under sequent, because it throws in some extra .o
10178 # files that make .init and .fini sections work.
10179 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10180 else
10181 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10182 fi
10183 hardcode_libdir_flag_spec='-L$libdir'
10184 hardcode_direct=yes
10185 hardcode_minus_L=yes
10186 hardcode_shlibpath_var=no
10187 ;;
10188
10189 sysv4)
10190 case $host_vendor in
10191 sni)
10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_direct=yes # is this really true???
10194 ;;
10195 siemens)
10196 ## LD is ld it makes a PLAMLIB
10197 ## CC just makes a GrossModule.
10198 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10199 reload_cmds='$CC -r -o $output$reload_objs'
10200 hardcode_direct=no
10201 ;;
10202 motorola)
10203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10205 ;;
10206 esac
10207 runpath_var='LD_RUN_PATH'
10208 hardcode_shlibpath_var=no
10209 ;;
10210
10211 sysv4.3*)
10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213 hardcode_shlibpath_var=no
10214 export_dynamic_flag_spec='-Bexport'
10215 ;;
10216
10217 sysv4*MP*)
10218 if test -d /usr/nec; then
10219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_shlibpath_var=no
10221 runpath_var=LD_RUN_PATH
10222 hardcode_runpath_var=yes
10223 ld_shlibs=yes
10224 fi
10225 ;;
10226
10227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10228 no_undefined_flag='${wl}-z,text'
10229 archive_cmds_need_lc=no
10230 hardcode_shlibpath_var=no
10231 runpath_var='LD_RUN_PATH'
10232
10233 if test "$GCC" = yes; then
10234 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236 else
10237 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 fi
10240 ;;
10241
10242 sysv5* | sco3.2v5* | sco5v6*)
10243 # Note: We can NOT use -z defs as we might desire, because we do not
10244 # link with -lc, and that would cause any symbols used from libc to
10245 # always be unresolved, which means just about no library would
10246 # ever link correctly. If we're not using GNU ld we use -z text
10247 # though, which does catch some bad symbols but isn't as heavy-handed
10248 # as -z defs.
10249 no_undefined_flag='${wl}-z,text'
10250 allow_undefined_flag='${wl}-z,nodefs'
10251 archive_cmds_need_lc=no
10252 hardcode_shlibpath_var=no
10253 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10254 hardcode_libdir_separator=':'
10255 link_all_deplibs=yes
10256 export_dynamic_flag_spec='${wl}-Bexport'
10257 runpath_var='LD_RUN_PATH'
10258
10259 if test "$GCC" = yes; then
10260 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 else
10263 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 fi
10266 ;;
10267
10268 uts4*)
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_libdir_flag_spec='-L$libdir'
10271 hardcode_shlibpath_var=no
10272 ;;
10273
10274 *)
10275 ld_shlibs=no
10276 ;;
10277 esac
10278
10279 if test x$host_vendor = xsni; then
10280 case $host in
10281 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10282 export_dynamic_flag_spec='${wl}-Blargedynsym'
10283 ;;
10284 esac
10285 fi
10286 fi
10287
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10289 $as_echo "$ld_shlibs" >&6; }
10290 test "$ld_shlibs" = no && can_build_shared=no
10291
10292 with_gnu_ld=$with_gnu_ld
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308 #
10309 # Do we need to explicitly link libc?
10310 #
10311 case "x$archive_cmds_need_lc" in
10312 x|xyes)
10313 # Assume -lc should be added
10314 archive_cmds_need_lc=yes
10315
10316 if test "$enable_shared" = yes && test "$GCC" = yes; then
10317 case $archive_cmds in
10318 *'~'*)
10319 # FIXME: we may have to deal with multi-command sequences.
10320 ;;
10321 '$CC '*)
10322 # Test whether the compiler implicitly links with -lc since on some
10323 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10324 # to ld, don't add -lc before -lgcc.
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10326 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10327 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 $RM conftest*
10331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10332
10333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10334 (eval $ac_compile) 2>&5
10335 ac_status=$?
10336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337 test $ac_status = 0; } 2>conftest.err; then
10338 soname=conftest
10339 lib=conftest
10340 libobjs=conftest.$ac_objext
10341 deplibs=
10342 wl=$lt_prog_compiler_wl
10343 pic_flag=$lt_prog_compiler_pic
10344 compiler_flags=-v
10345 linker_flags=-v
10346 verstring=
10347 output_objdir=.
10348 libname=conftest
10349 lt_save_allow_undefined_flag=$allow_undefined_flag
10350 allow_undefined_flag=
10351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10352 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10353 ac_status=$?
10354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10355 test $ac_status = 0; }
10356 then
10357 lt_cv_archive_cmds_need_lc=no
10358 else
10359 lt_cv_archive_cmds_need_lc=yes
10360 fi
10361 allow_undefined_flag=$lt_save_allow_undefined_flag
10362 else
10363 cat conftest.err 1>&5
10364 fi
10365 $RM conftest*
10366
10367 fi
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10369 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10370 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10371 ;;
10372 esac
10373 fi
10374 ;;
10375 esac
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
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10535
10536 if test "$GCC" = yes; then
10537 case $host_os in
10538 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10539 *) lt_awk_arg="/^libraries:/" ;;
10540 esac
10541 case $host_os in
10542 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10543 *) lt_sed_strip_eq="s,=/,/,g" ;;
10544 esac
10545 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10546 case $lt_search_path_spec in
10547 *\;*)
10548 # if the path contains ";" then we assume it to be the separator
10549 # otherwise default to the standard path separator (i.e. ":") - it is
10550 # assumed that no part of a normal pathname contains ";" but that should
10551 # okay in the real world where ";" in dirpaths is itself problematic.
10552 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10553 ;;
10554 *)
10555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10556 ;;
10557 esac
10558 # Ok, now we have the path, separated by spaces, we can step through it
10559 # and add multilib dir if necessary.
10560 lt_tmp_lt_search_path_spec=
10561 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10562 for lt_sys_path in $lt_search_path_spec; do
10563 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10564 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10565 else
10566 test -d "$lt_sys_path" && \
10567 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10568 fi
10569 done
10570 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10571 BEGIN {RS=" "; FS="/|\n";} {
10572 lt_foo="";
10573 lt_count=0;
10574 for (lt_i = NF; lt_i > 0; lt_i--) {
10575 if ($lt_i != "" && $lt_i != ".") {
10576 if ($lt_i == "..") {
10577 lt_count++;
10578 } else {
10579 if (lt_count == 0) {
10580 lt_foo="/" $lt_i lt_foo;
10581 } else {
10582 lt_count--;
10583 }
10584 }
10585 }
10586 }
10587 if (lt_foo != "") { lt_freq[lt_foo]++; }
10588 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10589 }'`
10590 # AWK program above erroneously prepends '/' to C:/dos/paths
10591 # for these hosts.
10592 case $host_os in
10593 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10594 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10595 esac
10596 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10597 else
10598 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10599 fi
10600 library_names_spec=
10601 libname_spec='lib$name'
10602 soname_spec=
10603 shrext_cmds=".so"
10604 postinstall_cmds=
10605 postuninstall_cmds=
10606 finish_cmds=
10607 finish_eval=
10608 shlibpath_var=
10609 shlibpath_overrides_runpath=unknown
10610 version_type=none
10611 dynamic_linker="$host_os ld.so"
10612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10613 need_lib_prefix=unknown
10614 hardcode_into_libs=no
10615
10616 # when you set need_version to no, make sure it does not cause -set_version
10617 # flags to be left without arguments
10618 need_version=unknown
10619
10620 case $host_os in
10621 aix3*)
10622 version_type=linux
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10624 shlibpath_var=LIBPATH
10625
10626 # AIX 3 has no versioning support, so we append a major version to the name.
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 ;;
10629
10630 aix[4-9]*)
10631 version_type=linux
10632 need_lib_prefix=no
10633 need_version=no
10634 hardcode_into_libs=yes
10635 if test "$host_cpu" = ia64; then
10636 # AIX 5 supports IA64
10637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 else
10640 # With GCC up to 2.95.x, collect2 would create an import file
10641 # for dependence libraries. The import file would start with
10642 # the line `#! .'. This would cause the generated library to
10643 # depend on `.', always an invalid library. This was fixed in
10644 # development snapshots of GCC prior to 3.0.
10645 case $host_os in
10646 aix4 | aix4.[01] | aix4.[01].*)
10647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10648 echo ' yes '
10649 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10650 :
10651 else
10652 can_build_shared=no
10653 fi
10654 ;;
10655 esac
10656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10657 # soname into executable. Probably we can add versioning support to
10658 # collect2, so additional links can be useful in future.
10659 if test "$aix_use_runtimelinking" = yes; then
10660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10661 # instead of lib<name>.a to let people know that these are not
10662 # typical AIX shared libraries.
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 else
10665 # We preserve .a as extension for shared libraries through AIX4.2
10666 # and later when we are not doing run time linking.
10667 library_names_spec='${libname}${release}.a $libname.a'
10668 soname_spec='${libname}${release}${shared_ext}$major'
10669 fi
10670 shlibpath_var=LIBPATH
10671 fi
10672 ;;
10673
10674 amigaos*)
10675 case $host_cpu in
10676 powerpc)
10677 # Since July 2007 AmigaOS4 officially supports .so libraries.
10678 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 ;;
10681 m68k)
10682 library_names_spec='$libname.ixlibrary $libname.a'
10683 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10684 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10685 ;;
10686 esac
10687 ;;
10688
10689 beos*)
10690 library_names_spec='${libname}${shared_ext}'
10691 dynamic_linker="$host_os ld.so"
10692 shlibpath_var=LIBRARY_PATH
10693 ;;
10694
10695 bsdi[45]*)
10696 version_type=linux
10697 need_version=no
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10704 # the default ld.so.conf also contains /usr/contrib/lib and
10705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10706 # libtool to hard-code these into programs
10707 ;;
10708
10709 cygwin* | mingw* | pw32* | cegcc*)
10710 version_type=windows
10711 shrext_cmds=".dll"
10712 need_version=no
10713 need_lib_prefix=no
10714
10715 case $GCC,$host_os in
10716 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10717 library_names_spec='$libname.dll.a'
10718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10719 postinstall_cmds='base_file=`basename \${file}`~
10720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10721 dldir=$destdir/`dirname \$dlpath`~
10722 test -d \$dldir || mkdir -p \$dldir~
10723 $install_prog $dir/$dlname \$dldir/$dlname~
10724 chmod a+x \$dldir/$dlname~
10725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10727 fi'
10728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10729 dlpath=$dir/\$dldll~
10730 $RM \$dlpath'
10731 shlibpath_overrides_runpath=yes
10732
10733 case $host_os in
10734 cygwin*)
10735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10737
10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10739 ;;
10740 mingw* | cegcc*)
10741 # MinGW DLLs use traditional 'lib' prefix
10742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10743 ;;
10744 pw32*)
10745 # pw32 DLLs use 'pw' prefix rather than 'lib'
10746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747 ;;
10748 esac
10749 ;;
10750
10751 *)
10752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10753 ;;
10754 esac
10755 dynamic_linker='Win32 ld.exe'
10756 # FIXME: first we should search . and the directory the executable is in
10757 shlibpath_var=PATH
10758 ;;
10759
10760 darwin* | rhapsody*)
10761 dynamic_linker="$host_os dyld"
10762 version_type=darwin
10763 need_lib_prefix=no
10764 need_version=no
10765 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10766 soname_spec='${libname}${release}${major}$shared_ext'
10767 shlibpath_overrides_runpath=yes
10768 shlibpath_var=DYLD_LIBRARY_PATH
10769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10770
10771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10773 ;;
10774
10775 dgux*)
10776 version_type=linux
10777 need_lib_prefix=no
10778 need_version=no
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 ;;
10783
10784 freebsd1*)
10785 dynamic_linker=no
10786 ;;
10787
10788 freebsd* | dragonfly*)
10789 # DragonFly does not have aout. When/if they implement a new
10790 # versioning mechanism, adjust this.
10791 if test -x /usr/bin/objformat; then
10792 objformat=`/usr/bin/objformat`
10793 else
10794 case $host_os in
10795 freebsd[123]*) objformat=aout ;;
10796 *) objformat=elf ;;
10797 esac
10798 fi
10799 version_type=freebsd-$objformat
10800 case $version_type in
10801 freebsd-elf*)
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10803 need_version=no
10804 need_lib_prefix=no
10805 ;;
10806 freebsd-*)
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10808 need_version=yes
10809 ;;
10810 esac
10811 shlibpath_var=LD_LIBRARY_PATH
10812 case $host_os in
10813 freebsd2*)
10814 shlibpath_overrides_runpath=yes
10815 ;;
10816 freebsd3.[01]* | freebsdelf3.[01]*)
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10819 ;;
10820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10822 shlibpath_overrides_runpath=no
10823 hardcode_into_libs=yes
10824 ;;
10825 *) # from 4.6 on, and DragonFly
10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10828 ;;
10829 esac
10830 ;;
10831
10832 gnu*)
10833 version_type=linux
10834 need_lib_prefix=no
10835 need_version=no
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 hardcode_into_libs=yes
10840 ;;
10841
10842 haiku*)
10843 version_type=linux
10844 need_lib_prefix=no
10845 need_version=no
10846 dynamic_linker="$host_os runtime_loader"
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 shlibpath_var=LIBRARY_PATH
10850 shlibpath_overrides_runpath=yes
10851 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10852 hardcode_into_libs=yes
10853 ;;
10854
10855 hpux9* | hpux10* | hpux11*)
10856 # Give a soname corresponding to the major version so that dld.sl refuses to
10857 # link against other versions.
10858 version_type=sunos
10859 need_lib_prefix=no
10860 need_version=no
10861 case $host_cpu in
10862 ia64*)
10863 shrext_cmds='.so'
10864 hardcode_into_libs=yes
10865 dynamic_linker="$host_os dld.so"
10866 shlibpath_var=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 if test "X$HPUX_IA64_MODE" = X32; then
10871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10872 else
10873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10874 fi
10875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10876 ;;
10877 hppa*64*)
10878 shrext_cmds='.sl'
10879 hardcode_into_libs=yes
10880 dynamic_linker="$host_os dld.sl"
10881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10887 ;;
10888 *)
10889 shrext_cmds='.sl'
10890 dynamic_linker="$host_os dld.sl"
10891 shlibpath_var=SHLIB_PATH
10892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 ;;
10896 esac
10897 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10898 postinstall_cmds='chmod 555 $lib'
10899 # or fails outright, so override atomically:
10900 install_override_mode=555
10901 ;;
10902
10903 interix[3-9]*)
10904 version_type=linux
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath=no
10912 hardcode_into_libs=yes
10913 ;;
10914
10915 irix5* | irix6* | nonstopux*)
10916 case $host_os in
10917 nonstopux*) version_type=nonstopux ;;
10918 *)
10919 if test "$lt_cv_prog_gnu_ld" = yes; then
10920 version_type=linux
10921 else
10922 version_type=irix
10923 fi ;;
10924 esac
10925 need_lib_prefix=no
10926 need_version=no
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10929 case $host_os in
10930 irix5* | nonstopux*)
10931 libsuff= shlibsuff=
10932 ;;
10933 *)
10934 case $LD in # libtool.m4 will add one of these switches to LD
10935 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10936 libsuff= shlibsuff= libmagic=32-bit;;
10937 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10938 libsuff=32 shlibsuff=N32 libmagic=N32;;
10939 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10940 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10941 *) libsuff= shlibsuff= libmagic=never-match;;
10942 esac
10943 ;;
10944 esac
10945 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10946 shlibpath_overrides_runpath=no
10947 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10948 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10949 hardcode_into_libs=yes
10950 ;;
10951
10952 # No shared lib support for Linux oldld, aout, or coff.
10953 linux*oldld* | linux*aout* | linux*coff*)
10954 dynamic_linker=no
10955 ;;
10956
10957 # This must be Linux ELF.
10958 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10959 version_type=linux
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=no
10967
10968 # Some binutils ld are patched to set DT_RUNPATH
10969 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 lt_cv_shlibpath_overrides_runpath=no
10973 save_LDFLAGS=$LDFLAGS
10974 save_libdir=$libdir
10975 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10976 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979
10980 int
10981 main ()
10982 {
10983
10984 ;
10985 return 0;
10986 }
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"; then :
10989 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10990 lt_cv_shlibpath_overrides_runpath=yes
10991 fi
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LDFLAGS=$save_LDFLAGS
10996 libdir=$save_libdir
10997
10998 fi
10999
11000 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11001
11002 # This implies no fast_install, which is unacceptable.
11003 # Some rework will be needed to allow for fast_install
11004 # before this can be enabled.
11005 hardcode_into_libs=yes
11006
11007 # Append ld.so.conf contents to the search path
11008 if test -f /etc/ld.so.conf; then
11009 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' ' '`
11010 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11011 fi
11012
11013 # We used to test for /lib/ld.so.1 and disable shared libraries on
11014 # powerpc, because MkLinux only supported shared libraries with the
11015 # GNU dynamic linker. Since this was broken with cross compilers,
11016 # most powerpc-linux boxes support dynamic linking these days and
11017 # people can always --disable-shared, the test was removed, and we
11018 # assume the GNU/Linux dynamic linker is in use.
11019 dynamic_linker='GNU/Linux ld.so'
11020 ;;
11021
11022 netbsd*)
11023 version_type=sunos
11024 need_lib_prefix=no
11025 need_version=no
11026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11029 dynamic_linker='NetBSD (a.out) ld.so'
11030 else
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 dynamic_linker='NetBSD ld.elf_so'
11034 fi
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11037 hardcode_into_libs=yes
11038 ;;
11039
11040 newsos6)
11041 version_type=linux
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 ;;
11046
11047 *nto* | *qnx*)
11048 version_type=qnx
11049 need_lib_prefix=no
11050 need_version=no
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=no
11055 hardcode_into_libs=yes
11056 dynamic_linker='ldqnx.so'
11057 ;;
11058
11059 openbsd*)
11060 version_type=sunos
11061 sys_lib_dlsearch_path_spec="/usr/lib"
11062 need_lib_prefix=no
11063 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11064 case $host_os in
11065 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11066 *) need_version=no ;;
11067 esac
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11072 case $host_os in
11073 openbsd2.[89] | openbsd2.[89].*)
11074 shlibpath_overrides_runpath=no
11075 ;;
11076 *)
11077 shlibpath_overrides_runpath=yes
11078 ;;
11079 esac
11080 else
11081 shlibpath_overrides_runpath=yes
11082 fi
11083 ;;
11084
11085 os2*)
11086 libname_spec='$name'
11087 shrext_cmds=".dll"
11088 need_lib_prefix=no
11089 library_names_spec='$libname${shared_ext} $libname.a'
11090 dynamic_linker='OS/2 ld.exe'
11091 shlibpath_var=LIBPATH
11092 ;;
11093
11094 osf3* | osf4* | osf5*)
11095 version_type=osf
11096 need_lib_prefix=no
11097 need_version=no
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11102 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11103 ;;
11104
11105 rdos*)
11106 dynamic_linker=no
11107 ;;
11108
11109 solaris*)
11110 version_type=linux
11111 need_lib_prefix=no
11112 need_version=no
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11118 # ldd complains unless libraries are executable
11119 postinstall_cmds='chmod +x $lib'
11120 ;;
11121
11122 sunos4*)
11123 version_type=sunos
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11125 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes
11128 if test "$with_gnu_ld" = yes; then
11129 need_lib_prefix=no
11130 fi
11131 need_version=yes
11132 ;;
11133
11134 sysv4 | sysv4.3*)
11135 version_type=linux
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 case $host_vendor in
11140 sni)
11141 shlibpath_overrides_runpath=no
11142 need_lib_prefix=no
11143 runpath_var=LD_RUN_PATH
11144 ;;
11145 siemens)
11146 need_lib_prefix=no
11147 ;;
11148 motorola)
11149 need_lib_prefix=no
11150 need_version=no
11151 shlibpath_overrides_runpath=no
11152 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11153 ;;
11154 esac
11155 ;;
11156
11157 sysv4*MP*)
11158 if test -d /usr/nec ;then
11159 version_type=linux
11160 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11161 soname_spec='$libname${shared_ext}.$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 fi
11164 ;;
11165
11166 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11167 version_type=freebsd-elf
11168 need_lib_prefix=no
11169 need_version=no
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 shlibpath_overrides_runpath=yes
11174 hardcode_into_libs=yes
11175 if test "$with_gnu_ld" = yes; then
11176 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11177 else
11178 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11179 case $host_os in
11180 sco3.2v5*)
11181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11182 ;;
11183 esac
11184 fi
11185 sys_lib_dlsearch_path_spec='/usr/lib'
11186 ;;
11187
11188 tpf*)
11189 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11190 version_type=linux
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=no
11196 hardcode_into_libs=yes
11197 ;;
11198
11199 uts4*)
11200 version_type=linux
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 ;;
11205
11206 *)
11207 dynamic_linker=no
11208 ;;
11209 esac
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11211 $as_echo "$dynamic_linker" >&6; }
11212 test "$dynamic_linker" = no && can_build_shared=no
11213
11214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11215 if test "$GCC" = yes; then
11216 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11217 fi
11218
11219 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11220 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11221 fi
11222 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11223 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11224 fi
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11318 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11319 hardcode_action=
11320 if test -n "$hardcode_libdir_flag_spec" ||
11321 test -n "$runpath_var" ||
11322 test "X$hardcode_automatic" = "Xyes" ; then
11323
11324 # We can hardcode non-existent directories.
11325 if test "$hardcode_direct" != no &&
11326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11327 # have to relink, otherwise we might link with an installed library
11328 # when we should be linking with a yet-to-be-installed one
11329 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11330 test "$hardcode_minus_L" != no; then
11331 # Linking always hardcodes the temporary library directory.
11332 hardcode_action=relink
11333 else
11334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11335 hardcode_action=immediate
11336 fi
11337 else
11338 # We cannot hardcode anything, or else we can only hardcode existing
11339 # directories.
11340 hardcode_action=unsupported
11341 fi
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11343 $as_echo "$hardcode_action" >&6; }
11344
11345 if test "$hardcode_action" = relink ||
11346 test "$inherit_rpath" = yes; then
11347 # Fast installation is not supported
11348 enable_fast_install=no
11349 elif test "$shlibpath_overrides_runpath" = yes ||
11350 test "$enable_shared" = no; then
11351 # Fast installation is not necessary
11352 enable_fast_install=needless
11353 fi
11354
11355
11356
11357
11358
11359
11360 if test "x$enable_dlopen" != xyes; then
11361 enable_dlopen=unknown
11362 enable_dlopen_self=unknown
11363 enable_dlopen_self_static=unknown
11364 else
11365 lt_cv_dlopen=no
11366 lt_cv_dlopen_libs=
11367
11368 case $host_os in
11369 beos*)
11370 lt_cv_dlopen="load_add_on"
11371 lt_cv_dlopen_libs=
11372 lt_cv_dlopen_self=yes
11373 ;;
11374
11375 mingw* | pw32* | cegcc*)
11376 lt_cv_dlopen="LoadLibrary"
11377 lt_cv_dlopen_libs=
11378 ;;
11379
11380 cygwin*)
11381 lt_cv_dlopen="dlopen"
11382 lt_cv_dlopen_libs=
11383 ;;
11384
11385 darwin*)
11386 # if libdl is installed we need to link against it
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11388 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11389 if ${ac_cv_lib_dl_dlopen+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 ac_check_lib_save_LIBS=$LIBS
11393 LIBS="-ldl $LIBS"
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11396
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 char dlopen ();
11404 int
11405 main ()
11406 {
11407 return dlopen ();
11408 ;
11409 return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_lib_dl_dlopen=yes
11414 else
11415 ac_cv_lib_dl_dlopen=no
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_lib_save_LIBS
11420 fi
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11422 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11423 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11425 else
11426
11427 lt_cv_dlopen="dyld"
11428 lt_cv_dlopen_libs=
11429 lt_cv_dlopen_self=yes
11430
11431 fi
11432
11433 ;;
11434
11435 *)
11436 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11437 if test "x$ac_cv_func_shl_load" = xyes; then :
11438 lt_cv_dlopen="shl_load"
11439 else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11441 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11442 if ${ac_cv_lib_dld_shl_load+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 ac_check_lib_save_LIBS=$LIBS
11446 LIBS="-ldld $LIBS"
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char shl_load ();
11457 int
11458 main ()
11459 {
11460 return shl_load ();
11461 ;
11462 return 0;
11463 }
11464 _ACEOF
11465 if ac_fn_c_try_link "$LINENO"; then :
11466 ac_cv_lib_dld_shl_load=yes
11467 else
11468 ac_cv_lib_dld_shl_load=no
11469 fi
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 LIBS=$ac_check_lib_save_LIBS
11473 fi
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11475 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11476 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11477 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11478 else
11479 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11480 if test "x$ac_cv_func_dlopen" = xyes; then :
11481 lt_cv_dlopen="dlopen"
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11484 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11485 if ${ac_cv_lib_dl_dlopen+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 ac_check_lib_save_LIBS=$LIBS
11489 LIBS="-ldl $LIBS"
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492
11493 /* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 char dlopen ();
11500 int
11501 main ()
11502 {
11503 return dlopen ();
11504 ;
11505 return 0;
11506 }
11507 _ACEOF
11508 if ac_fn_c_try_link "$LINENO"; then :
11509 ac_cv_lib_dl_dlopen=yes
11510 else
11511 ac_cv_lib_dl_dlopen=no
11512 fi
11513 rm -f core conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
11515 LIBS=$ac_check_lib_save_LIBS
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11518 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11519 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11523 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11524 if ${ac_cv_lib_svld_dlopen+:} false; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 ac_check_lib_save_LIBS=$LIBS
11528 LIBS="-lsvld $LIBS"
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531
11532 /* Override any GCC internal prototype to avoid an error.
11533 Use char because int might match the return type of a GCC
11534 builtin and then its argument prototype would still apply. */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 char dlopen ();
11539 int
11540 main ()
11541 {
11542 return dlopen ();
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"; then :
11548 ac_cv_lib_svld_dlopen=yes
11549 else
11550 ac_cv_lib_svld_dlopen=no
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11555 fi
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11557 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11558 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11562 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11563 if ${ac_cv_lib_dld_dld_link+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 ac_check_lib_save_LIBS=$LIBS
11567 LIBS="-ldld $LIBS"
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 char dld_link ();
11578 int
11579 main ()
11580 {
11581 return dld_link ();
11582 ;
11583 return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_link "$LINENO"; then :
11587 ac_cv_lib_dld_dld_link=yes
11588 else
11589 ac_cv_lib_dld_dld_link=no
11590 fi
11591 rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_lib_save_LIBS
11594 fi
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11596 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11597 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11598 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11599 fi
11600
11601
11602 fi
11603
11604
11605 fi
11606
11607
11608 fi
11609
11610
11611 fi
11612
11613
11614 fi
11615
11616 ;;
11617 esac
11618
11619 if test "x$lt_cv_dlopen" != xno; then
11620 enable_dlopen=yes
11621 else
11622 enable_dlopen=no
11623 fi
11624
11625 case $lt_cv_dlopen in
11626 dlopen)
11627 save_CPPFLAGS="$CPPFLAGS"
11628 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11629
11630 save_LDFLAGS="$LDFLAGS"
11631 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11632
11633 save_LIBS="$LIBS"
11634 LIBS="$lt_cv_dlopen_libs $LIBS"
11635
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11637 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11638 if ${lt_cv_dlopen_self+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 if test "$cross_compiling" = yes; then :
11642 lt_cv_dlopen_self=cross
11643 else
11644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11645 lt_status=$lt_dlunknown
11646 cat > conftest.$ac_ext <<_LT_EOF
11647 #line $LINENO "configure"
11648 #include "confdefs.h"
11649
11650 #if HAVE_DLFCN_H
11651 #include <dlfcn.h>
11652 #endif
11653
11654 #include <stdio.h>
11655
11656 #ifdef RTLD_GLOBAL
11657 # define LT_DLGLOBAL RTLD_GLOBAL
11658 #else
11659 # ifdef DL_GLOBAL
11660 # define LT_DLGLOBAL DL_GLOBAL
11661 # else
11662 # define LT_DLGLOBAL 0
11663 # endif
11664 #endif
11665
11666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11667 find out it does not work in some platform. */
11668 #ifndef LT_DLLAZY_OR_NOW
11669 # ifdef RTLD_LAZY
11670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11671 # else
11672 # ifdef DL_LAZY
11673 # define LT_DLLAZY_OR_NOW DL_LAZY
11674 # else
11675 # ifdef RTLD_NOW
11676 # define LT_DLLAZY_OR_NOW RTLD_NOW
11677 # else
11678 # ifdef DL_NOW
11679 # define LT_DLLAZY_OR_NOW DL_NOW
11680 # else
11681 # define LT_DLLAZY_OR_NOW 0
11682 # endif
11683 # endif
11684 # endif
11685 # endif
11686 #endif
11687
11688 /* When -fvisbility=hidden is used, assume the code has been annotated
11689 correspondingly for the symbols needed. */
11690 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11691 void fnord () __attribute__((visibility("default")));
11692 #endif
11693
11694 void fnord () { int i=42; }
11695 int main ()
11696 {
11697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11698 int status = $lt_dlunknown;
11699
11700 if (self)
11701 {
11702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11703 else
11704 {
11705 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11706 else puts (dlerror ());
11707 }
11708 /* dlclose (self); */
11709 }
11710 else
11711 puts (dlerror ());
11712
11713 return status;
11714 }
11715 _LT_EOF
11716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11717 (eval $ac_link) 2>&5
11718 ac_status=$?
11719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11720 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11721 (./conftest; exit; ) >&5 2>/dev/null
11722 lt_status=$?
11723 case x$lt_status in
11724 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11725 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11726 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11727 esac
11728 else :
11729 # compilation failed
11730 lt_cv_dlopen_self=no
11731 fi
11732 fi
11733 rm -fr conftest*
11734
11735
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11738 $as_echo "$lt_cv_dlopen_self" >&6; }
11739
11740 if test "x$lt_cv_dlopen_self" = xyes; then
11741 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11743 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11744 if ${lt_cv_dlopen_self_static+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 if test "$cross_compiling" = yes; then :
11748 lt_cv_dlopen_self_static=cross
11749 else
11750 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11751 lt_status=$lt_dlunknown
11752 cat > conftest.$ac_ext <<_LT_EOF
11753 #line $LINENO "configure"
11754 #include "confdefs.h"
11755
11756 #if HAVE_DLFCN_H
11757 #include <dlfcn.h>
11758 #endif
11759
11760 #include <stdio.h>
11761
11762 #ifdef RTLD_GLOBAL
11763 # define LT_DLGLOBAL RTLD_GLOBAL
11764 #else
11765 # ifdef DL_GLOBAL
11766 # define LT_DLGLOBAL DL_GLOBAL
11767 # else
11768 # define LT_DLGLOBAL 0
11769 # endif
11770 #endif
11771
11772 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11773 find out it does not work in some platform. */
11774 #ifndef LT_DLLAZY_OR_NOW
11775 # ifdef RTLD_LAZY
11776 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11777 # else
11778 # ifdef DL_LAZY
11779 # define LT_DLLAZY_OR_NOW DL_LAZY
11780 # else
11781 # ifdef RTLD_NOW
11782 # define LT_DLLAZY_OR_NOW RTLD_NOW
11783 # else
11784 # ifdef DL_NOW
11785 # define LT_DLLAZY_OR_NOW DL_NOW
11786 # else
11787 # define LT_DLLAZY_OR_NOW 0
11788 # endif
11789 # endif
11790 # endif
11791 # endif
11792 #endif
11793
11794 /* When -fvisbility=hidden is used, assume the code has been annotated
11795 correspondingly for the symbols needed. */
11796 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11797 void fnord () __attribute__((visibility("default")));
11798 #endif
11799
11800 void fnord () { int i=42; }
11801 int main ()
11802 {
11803 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11804 int status = $lt_dlunknown;
11805
11806 if (self)
11807 {
11808 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11809 else
11810 {
11811 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11812 else puts (dlerror ());
11813 }
11814 /* dlclose (self); */
11815 }
11816 else
11817 puts (dlerror ());
11818
11819 return status;
11820 }
11821 _LT_EOF
11822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11823 (eval $ac_link) 2>&5
11824 ac_status=$?
11825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11826 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11827 (./conftest; exit; ) >&5 2>/dev/null
11828 lt_status=$?
11829 case x$lt_status in
11830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11832 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11833 esac
11834 else :
11835 # compilation failed
11836 lt_cv_dlopen_self_static=no
11837 fi
11838 fi
11839 rm -fr conftest*
11840
11841
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11844 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11845 fi
11846
11847 CPPFLAGS="$save_CPPFLAGS"
11848 LDFLAGS="$save_LDFLAGS"
11849 LIBS="$save_LIBS"
11850 ;;
11851 esac
11852
11853 case $lt_cv_dlopen_self in
11854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11855 *) enable_dlopen_self=unknown ;;
11856 esac
11857
11858 case $lt_cv_dlopen_self_static in
11859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11860 *) enable_dlopen_self_static=unknown ;;
11861 esac
11862 fi
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880 striplib=
11881 old_striplib=
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11883 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11884 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11885 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11886 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11889 else
11890 # FIXME - insert some real tests, host_os isn't really good enough
11891 case $host_os in
11892 darwin*)
11893 if test -n "$STRIP" ; then
11894 striplib="$STRIP -x"
11895 old_striplib="$STRIP -S"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11897 $as_echo "yes" >&6; }
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901 fi
11902 ;;
11903 *)
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 ;;
11907 esac
11908 fi
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921 # Report which library types will actually be built
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11923 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11925 $as_echo "$can_build_shared" >&6; }
11926
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11928 $as_echo_n "checking whether to build shared libraries... " >&6; }
11929 test "$can_build_shared" = "no" && enable_shared=no
11930
11931 # On AIX, shared libraries and static libraries use the same namespace, and
11932 # are all built from PIC.
11933 case $host_os in
11934 aix3*)
11935 test "$enable_shared" = yes && enable_static=no
11936 if test -n "$RANLIB"; then
11937 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11938 postinstall_cmds='$RANLIB $lib'
11939 fi
11940 ;;
11941
11942 aix[4-9]*)
11943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11944 test "$enable_shared" = yes && enable_static=no
11945 fi
11946 ;;
11947 esac
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11949 $as_echo "$enable_shared" >&6; }
11950
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11952 $as_echo_n "checking whether to build static libraries... " >&6; }
11953 # Make sure either enable_shared or enable_static is yes.
11954 test "$enable_shared" = yes || enable_static=yes
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11956 $as_echo "$enable_static" >&6; }
11957
11958
11959
11960
11961 fi
11962 ac_ext=c
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967
11968 CC="$lt_save_CC"
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982 ac_config_commands="$ac_config_commands libtool"
11983
11984
11985
11986
11987 # Only expand once:
11988
11989
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11991 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11992 if ${ac_cv_path_SED+:} false; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11996 for ac_i in 1 2 3 4 5 6 7; do
11997 ac_script="$ac_script$as_nl$ac_script"
11998 done
11999 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12000 { ac_script=; unset ac_script;}
12001 if test -z "$SED"; then
12002 ac_path_SED_found=false
12003 # Loop through the user's path and test for each of PROGNAME-LIST
12004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $PATH
12006 do
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
12009 for ac_prog in sed gsed; do
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12012 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12013 # Check for GNU ac_path_SED and select it if it is found.
12014 # Check for GNU $ac_path_SED
12015 case `"$ac_path_SED" --version 2>&1` in
12016 *GNU*)
12017 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12018 *)
12019 ac_count=0
12020 $as_echo_n 0123456789 >"conftest.in"
12021 while :
12022 do
12023 cat "conftest.in" "conftest.in" >"conftest.tmp"
12024 mv "conftest.tmp" "conftest.in"
12025 cp "conftest.in" "conftest.nl"
12026 $as_echo '' >> "conftest.nl"
12027 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12029 as_fn_arith $ac_count + 1 && ac_count=$as_val
12030 if test $ac_count -gt ${ac_path_SED_max-0}; then
12031 # Best one so far, save it but keep looking for a better one
12032 ac_cv_path_SED="$ac_path_SED"
12033 ac_path_SED_max=$ac_count
12034 fi
12035 # 10*(2^10) chars as input seems more than enough
12036 test $ac_count -gt 10 && break
12037 done
12038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12039 esac
12040
12041 $ac_path_SED_found && break 3
12042 done
12043 done
12044 done
12045 IFS=$as_save_IFS
12046 if test -z "$ac_cv_path_SED"; then
12047 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12048 fi
12049 else
12050 ac_cv_path_SED=$SED
12051 fi
12052
12053 fi
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12055 $as_echo "$ac_cv_path_SED" >&6; }
12056 SED="$ac_cv_path_SED"
12057 rm -f conftest.sed
12058
12059
12060 # Set library version for Xft.h from package version set in AC_INIT
12061 # copied from PACKAGE_VERSION_* settings in XORG_VERSION
12062 ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h"
12063
12064
12065 cat >>confdefs.h <<_ACEOF
12066 #define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12067 _ACEOF
12068
12069
12070 cat >>confdefs.h <<_ACEOF
12071 #define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12072 _ACEOF
12073
12074
12075 cat >>confdefs.h <<_ACEOF
12076 #define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12077 _ACEOF
12078
12079
12080 XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'`
12081
12082
12083 #
12084 # Check for Xrender
12085 #
12086
12087 pkg_failed=no
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
12089 $as_echo_n "checking for XRENDER... " >&6; }
12090
12091 if test -n "$XRENDER_CFLAGS"; then
12092 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
12093 elif test -n "$PKG_CONFIG"; then
12094 if test -n "$PKG_CONFIG" && \
12095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2\""; } >&5
12096 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2") 2>&5
12097 ac_status=$?
12098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12099 test $ac_status = 0; }; then
12100 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2" 2>/dev/null`
12101 else
12102 pkg_failed=yes
12103 fi
12104 else
12105 pkg_failed=untried
12106 fi
12107 if test -n "$XRENDER_LIBS"; then
12108 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
12109 elif test -n "$PKG_CONFIG"; then
12110 if test -n "$PKG_CONFIG" && \
12111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2\""; } >&5
12112 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2") 2>&5
12113 ac_status=$?
12114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12115 test $ac_status = 0; }; then
12116 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2" 2>/dev/null`
12117 else
12118 pkg_failed=yes
12119 fi
12120 else
12121 pkg_failed=untried
12122 fi
12123
12124
12125
12126 if test $pkg_failed = yes; then
12127
12128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12129 _pkg_short_errors_supported=yes
12130 else
12131 _pkg_short_errors_supported=no
12132 fi
12133 if test $_pkg_short_errors_supported = yes; then
12134 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender >= 0.8.2" 2>&1`
12135 else
12136 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender >= 0.8.2" 2>&1`
12137 fi
12138 # Put the nasty error message in config.log where it belongs
12139 echo "$XRENDER_PKG_ERRORS" >&5
12140
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12143 xrender_found_with_pkgconfig=no
12144 elif test $pkg_failed = untried; then
12145 xrender_found_with_pkgconfig=no
12146 else
12147 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
12148 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12150 $as_echo "yes" >&6; }
12151 xrender_found_with_pkgconfig=yes
12152 fi
12153 case "$xrender_found_with_pkgconfig" in
12154 no)
12155
12156 pkg_failed=no
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
12158 $as_echo_n "checking for XRENDER... " >&6; }
12159
12160 if test -n "$XRENDER_CFLAGS"; then
12161 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
12162 elif test -n "$PKG_CONFIG"; then
12163 if test -n "$PKG_CONFIG" && \
12164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0\""; } >&5
12165 ($PKG_CONFIG --exists --print-errors "xrender >= 0") 2>&5
12166 ac_status=$?
12167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12168 test $ac_status = 0; }; then
12169 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0" 2>/dev/null`
12170 else
12171 pkg_failed=yes
12172 fi
12173 else
12174 pkg_failed=untried
12175 fi
12176 if test -n "$XRENDER_LIBS"; then
12177 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
12178 elif test -n "$PKG_CONFIG"; then
12179 if test -n "$PKG_CONFIG" && \
12180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0\""; } >&5
12181 ($PKG_CONFIG --exists --print-errors "xrender >= 0") 2>&5
12182 ac_status=$?
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }; then
12185 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0" 2>/dev/null`
12186 else
12187 pkg_failed=yes
12188 fi
12189 else
12190 pkg_failed=untried
12191 fi
12192
12193
12194
12195 if test $pkg_failed = yes; then
12196
12197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12198 _pkg_short_errors_supported=yes
12199 else
12200 _pkg_short_errors_supported=no
12201 fi
12202 if test $_pkg_short_errors_supported = yes; then
12203 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender >= 0" 2>&1`
12204 else
12205 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender >= 0" 2>&1`
12206 fi
12207 # Put the nasty error message in config.log where it belongs
12208 echo "$XRENDER_PKG_ERRORS" >&5
12209
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 old_xrender_found_with_pkgconfig=no
12213 elif test $pkg_failed = untried; then
12214 old_xrender_found_with_pkgconfig=no
12215 else
12216 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
12217 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12219 $as_echo "yes" >&6; }
12220 old_xrender_found_with_pkgconfig=yes
12221 fi
12222 case "$old_xrender_found_with_pkgconfig" in
12223 yes)
12224 XRENDER_LIBS="$XRENDER_LIBS -lXext -lX11"
12225 ;;
12226 *)
12227 # checks for X
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12229 $as_echo_n "checking for X... " >&6; }
12230
12231
12232 # Check whether --with-x was given.
12233 if test "${with_x+set}" = set; then :
12234 withval=$with_x;
12235 fi
12236
12237 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12238 if test "x$with_x" = xno; then
12239 # The user explicitly disabled X.
12240 have_x=disabled
12241 else
12242 case $x_includes,$x_libraries in #(
12243 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12244 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 # One or both of the vars are not set, and there is no cached value.
12248 ac_x_includes=no ac_x_libraries=no
12249 rm -f -r conftest.dir
12250 if mkdir conftest.dir; then
12251 cd conftest.dir
12252 cat >Imakefile <<'_ACEOF'
12253 incroot:
12254 @echo incroot='${INCROOT}'
12255 usrlibdir:
12256 @echo usrlibdir='${USRLIBDIR}'
12257 libdir:
12258 @echo libdir='${LIBDIR}'
12259 _ACEOF
12260 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12261 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12262 for ac_var in incroot usrlibdir libdir; do
12263 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12264 done
12265 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12266 for ac_extension in a so sl dylib la dll; do
12267 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12268 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12269 ac_im_usrlibdir=$ac_im_libdir; break
12270 fi
12271 done
12272 # Screen out bogus values from the imake configuration. They are
12273 # bogus both because they are the default anyway, and because
12274 # using them would break gcc on systems where it needs fixed includes.
12275 case $ac_im_incroot in
12276 /usr/include) ac_x_includes= ;;
12277 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12278 esac
12279 case $ac_im_usrlibdir in
12280 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12281 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12282 esac
12283 fi
12284 cd ..
12285 rm -f -r conftest.dir
12286 fi
12287
12288 # Standard set of common directories for X headers.
12289 # Check X11 before X11Rn because it is often a symlink to the current release.
12290 ac_x_header_dirs='
12291 /usr/X11/include
12292 /usr/X11R7/include
12293 /usr/X11R6/include
12294 /usr/X11R5/include
12295 /usr/X11R4/include
12296
12297 /usr/include/X11
12298 /usr/include/X11R7
12299 /usr/include/X11R6
12300 /usr/include/X11R5
12301 /usr/include/X11R4
12302
12303 /usr/local/X11/include
12304 /usr/local/X11R7/include
12305 /usr/local/X11R6/include
12306 /usr/local/X11R5/include
12307 /usr/local/X11R4/include
12308
12309 /usr/local/include/X11
12310 /usr/local/include/X11R7
12311 /usr/local/include/X11R6
12312 /usr/local/include/X11R5
12313 /usr/local/include/X11R4
12314
12315 /usr/X386/include
12316 /usr/x386/include
12317 /usr/XFree86/include/X11
12318
12319 /usr/include
12320 /usr/local/include
12321 /usr/unsupported/include
12322 /usr/athena/include
12323 /usr/local/x11r5/include
12324 /usr/lpp/Xamples/include
12325
12326 /usr/openwin/include
12327 /usr/openwin/share/include'
12328
12329 if test "$ac_x_includes" = no; then
12330 # Guess where to find include files, by looking for Xlib.h.
12331 # First, try using that file with no special directory specified.
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334 #include <X11/Xlib.h>
12335 _ACEOF
12336 if ac_fn_c_try_cpp "$LINENO"; then :
12337 # We can compile using X headers with no special include directory.
12338 ac_x_includes=
12339 else
12340 for ac_dir in $ac_x_header_dirs; do
12341 if test -r "$ac_dir/X11/Xlib.h"; then
12342 ac_x_includes=$ac_dir
12343 break
12344 fi
12345 done
12346 fi
12347 rm -f conftest.err conftest.i conftest.$ac_ext
12348 fi # $ac_x_includes = no
12349
12350 if test "$ac_x_libraries" = no; then
12351 # Check for the libraries.
12352 # See if we find them without any special options.
12353 # Don't add to $LIBS permanently.
12354 ac_save_LIBS=$LIBS
12355 LIBS="-lX11 $LIBS"
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12358 #include <X11/Xlib.h>
12359 int
12360 main ()
12361 {
12362 XrmInitialize ()
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_c_try_link "$LINENO"; then :
12368 LIBS=$ac_save_LIBS
12369 # We can link X programs with no special library path.
12370 ac_x_libraries=
12371 else
12372 LIBS=$ac_save_LIBS
12373 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12374 do
12375 # Don't even attempt the hair of trying to link an X program!
12376 for ac_extension in a so sl dylib la dll; do
12377 if test -r "$ac_dir/libX11.$ac_extension"; then
12378 ac_x_libraries=$ac_dir
12379 break 2
12380 fi
12381 done
12382 done
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386 fi # $ac_x_libraries = no
12387
12388 case $ac_x_includes,$ac_x_libraries in #(
12389 no,* | *,no | *\'*)
12390 # Didn't find X, or a directory has "'" in its name.
12391 ac_cv_have_x="have_x=no";; #(
12392 *)
12393 # Record where we found X for the cache.
12394 ac_cv_have_x="have_x=yes\
12395 ac_x_includes='$ac_x_includes'\
12396 ac_x_libraries='$ac_x_libraries'"
12397 esac
12398 fi
12399 ;; #(
12400 *) have_x=yes;;
12401 esac
12402 eval "$ac_cv_have_x"
12403 fi # $with_x != no
12404
12405 if test "$have_x" != yes; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12407 $as_echo "$have_x" >&6; }
12408 no_x=yes
12409 else
12410 # If each of the values was on the command line, it overrides each guess.
12411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12413 # Update the cache value to reflect the command line values.
12414 ac_cv_have_x="have_x=yes\
12415 ac_x_includes='$x_includes'\
12416 ac_x_libraries='$x_libraries'"
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12418 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12419 fi
12420
12421
12422 XRENDER_CFLAGS="-I$x_includes"
12423 XRENDER_LIBS="-L$x_libraries -lXrender -lXext -lX11"
12424
12425 saved_CPPFLAGS="$CPPFLAGS"
12426 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
12427 for ac_header in X11/extensions/Xrender.h
12428 do :
12429 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
12430 if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
12431 cat >>confdefs.h <<_ACEOF
12432 #define HAVE_X11_EXTENSIONS_XRENDER_H 1
12433 _ACEOF
12434
12435 else
12436 as_fn_error $? "Xrender.h not found." "$LINENO" 5
12437 fi
12438
12439 done
12440
12441 CPPFLAGS="$saved_CPPFLAGS"
12442
12443 saved_LIBS="$LIBS"
12444 LIBS="$LIBS $XRENDER_LIBS"
12445 for ac_func in XRenderFindStandardFormat
12446 do :
12447 ac_fn_c_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
12448 if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then :
12449 cat >>confdefs.h <<_ACEOF
12450 #define HAVE_XRENDERFINDSTANDARDFORMAT 1
12451 _ACEOF
12452
12453 else
12454 as_fn_error $? "libXrender not found or too old." "$LINENO" 5
12455 fi
12456 done
12457
12458 LIBS="$saved_LIBS"
12459 ;;
12460 esac
12461 ;;
12462 esac
12463
12464 # Check freetype configuration
12465
12466 # Check whether --with-freetype-config was given.
12467 if test "${with_freetype_config+set}" = set; then :
12468 withval=$with_freetype_config; freetype_config=$withval
12469 else
12470 freetype_config=auto
12471 fi
12472
12473
12474 if test "$freetype_config" = "auto"; then
12475
12476 pkg_failed=no
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
12478 $as_echo_n "checking for FREETYPE... " >&6; }
12479
12480 if test -n "$FREETYPE_CFLAGS"; then
12481 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
12482 elif test -n "$PKG_CONFIG"; then
12483 if test -n "$PKG_CONFIG" && \
12484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
12485 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
12486 ac_status=$?
12487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12488 test $ac_status = 0; }; then
12489 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
12490 else
12491 pkg_failed=yes
12492 fi
12493 else
12494 pkg_failed=untried
12495 fi
12496 if test -n "$FREETYPE_LIBS"; then
12497 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
12498 elif test -n "$PKG_CONFIG"; then
12499 if test -n "$PKG_CONFIG" && \
12500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
12501 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
12502 ac_status=$?
12503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504 test $ac_status = 0; }; then
12505 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
12506 else
12507 pkg_failed=yes
12508 fi
12509 else
12510 pkg_failed=untried
12511 fi
12512
12513
12514
12515 if test $pkg_failed = yes; then
12516
12517 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12518 _pkg_short_errors_supported=yes
12519 else
12520 _pkg_short_errors_supported=no
12521 fi
12522 if test $_pkg_short_errors_supported = yes; then
12523 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
12524 else
12525 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
12526 fi
12527 # Put the nasty error message in config.log where it belongs
12528 echo "$FREETYPE_PKG_ERRORS" >&5
12529
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12532 freetype_config=yes
12533 elif test $pkg_failed = untried; then
12534 freetype_config=yes
12535 else
12536 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
12537 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539 $as_echo "yes" >&6; }
12540 freetype_config=no
12541 fi
12542 fi
12543
12544 if test "$freetype_config" = "yes"; then
12545 # Extract the first word of "freetype-config", so it can be a program name with args.
12546 set dummy freetype-config; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if ${ac_cv_path_ft_config+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 case $ft_config in
12553 [\\/]* | ?:[\\/]*)
12554 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
12555 ;;
12556 *)
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12559 do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568 done
12569 done
12570 IFS=$as_save_IFS
12571
12572 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
12573 ;;
12574 esac
12575 fi
12576 ft_config=$ac_cv_path_ft_config
12577 if test -n "$ft_config"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
12579 $as_echo "$ft_config" >&6; }
12580 else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583 fi
12584
12585
12586 if test "$ft_config" = "no"; then
12587 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
12588 fi
12589 else
12590 ft_config="$freetype_config"
12591 fi
12592
12593 if test "$freetype_config" != "no"; then
12594 FREETYPE_CFLAGS="`$ft_config --cflags`"
12595 FREETYPE_LIBS="`$ft_config --libs`"
12596 fi
12597
12598 # Check fontconfig configuration
12599
12600 pkg_failed=no
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
12602 $as_echo_n "checking for FONTCONFIG... " >&6; }
12603
12604 if test -n "$FONTCONFIG_CFLAGS"; then
12605 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
12606 elif test -n "$PKG_CONFIG"; then
12607 if test -n "$PKG_CONFIG" && \
12608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2\""; } >&5
12609 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2") 2>&5
12610 ac_status=$?
12611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12612 test $ac_status = 0; }; then
12613 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2" 2>/dev/null`
12614 else
12615 pkg_failed=yes
12616 fi
12617 else
12618 pkg_failed=untried
12619 fi
12620 if test -n "$FONTCONFIG_LIBS"; then
12621 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
12622 elif test -n "$PKG_CONFIG"; then
12623 if test -n "$PKG_CONFIG" && \
12624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2\""; } >&5
12625 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2") 2>&5
12626 ac_status=$?
12627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12628 test $ac_status = 0; }; then
12629 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2" 2>/dev/null`
12630 else
12631 pkg_failed=yes
12632 fi
12633 else
12634 pkg_failed=untried
12635 fi
12636
12637
12638
12639 if test $pkg_failed = yes; then
12640
12641 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12642 _pkg_short_errors_supported=yes
12643 else
12644 _pkg_short_errors_supported=no
12645 fi
12646 if test $_pkg_short_errors_supported = yes; then
12647 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.2" 2>&1`
12648 else
12649 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.2" 2>&1`
12650 fi
12651 # Put the nasty error message in config.log where it belongs
12652 echo "$FONTCONFIG_PKG_ERRORS" >&5
12653
12654 as_fn_error $? "Package requirements (fontconfig >= 2.2) were not met:
12655
12656 $FONTCONFIG_PKG_ERRORS
12657
12658 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12659 installed software in a non-standard prefix.
12660
12661 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
12662 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
12663 See the pkg-config man page for more details.
12664 " "$LINENO" 5
12665 elif test $pkg_failed = untried; then
12666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12668 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12669 is in your PATH or set the PKG_CONFIG environment variable to the full
12670 path to pkg-config.
12671
12672 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
12673 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
12674 See the pkg-config man page for more details.
12675
12676 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12677 See \`config.log' for more details" "$LINENO" 5; }
12678 else
12679 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
12680 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12682 $as_echo "yes" >&6; }
12683 :
12684 fi
12685
12686
12687
12688
12689
12690
12691
12692
12693 fontconfig_save_libs="$LIBS"
12694 fontconfig_save_cflags="$CFLAGS"
12695 LIBS="$LIBS $FREETYPE_LIBS"
12696 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
12697 for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_GlyphSlot_Embolden
12698 do :
12699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12702 cat >>confdefs.h <<_ACEOF
12703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12704 _ACEOF
12705
12706 fi
12707 done
12708
12709 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
12710 #include FT_FREETYPE_H
12711 "
12712 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
12713 HAVE_FT_BITMAP_SIZE_Y_PPEM=1
12714 else
12715 HAVE_FT_BITMAP_SIZE_Y_PPEM=0
12716 fi
12717
12718
12719 cat >>confdefs.h <<_ACEOF
12720 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
12721 _ACEOF
12722
12723
12724 LIBS="$fontconfig_save_libs"
12725 CFLAGS="$fontconfig_save_cflags"
12726
12727 if test "$VERSION" = "" ; then
12728 VERSION=$PACKAGE_VERSION;
12729 fi
12730
12731 ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile"
12732
12733 cat >confcache <<\_ACEOF
12734 # This file is a shell script that caches the results of configure
12735 # tests run on this system so they can be shared between configure
12736 # scripts and configure runs, see configure's option --config-cache.
12737 # It is not useful on other systems. If it contains results you don't
12738 # want to keep, you may remove or edit it.
12739 #
12740 # config.status only pays attention to the cache file if you give it
12741 # the --recheck option to rerun configure.
12742 #
12743 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12744 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12745 # following values.
12746
12747 _ACEOF
12748
12749 # The following way of writing the cache mishandles newlines in values,
12750 # but we know of no workaround that is simple, portable, and efficient.
12751 # So, we kill variables containing newlines.
12752 # Ultrix sh set writes to stderr and can't be redirected directly,
12753 # and sets the high bit in the cache file unless we assign to the vars.
12754 (
12755 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12756 eval ac_val=\$$ac_var
12757 case $ac_val in #(
12758 *${as_nl}*)
12759 case $ac_var in #(
12760 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12762 esac
12763 case $ac_var in #(
12764 _ | IFS | as_nl) ;; #(
12765 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12766 *) { eval $ac_var=; unset $ac_var;} ;;
12767 esac ;;
12768 esac
12769 done
12770
12771 (set) 2>&1 |
12772 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12773 *${as_nl}ac_space=\ *)
12774 # `set' does not quote correctly, so add quotes: double-quote
12775 # substitution turns \\\\ into \\, and sed turns \\ into \.
12776 sed -n \
12777 "s/'/'\\\\''/g;
12778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12779 ;; #(
12780 *)
12781 # `set' quotes correctly as required by POSIX, so do not add quotes.
12782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12783 ;;
12784 esac |
12785 sort
12786 ) |
12787 sed '
12788 /^ac_cv_env_/b end
12789 t clear
12790 :clear
12791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12792 t end
12793 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12794 :end' >>confcache
12795 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12796 if test -w "$cache_file"; then
12797 if test "x$cache_file" != "x/dev/null"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12799 $as_echo "$as_me: updating cache $cache_file" >&6;}
12800 if test ! -f "$cache_file" || test -h "$cache_file"; then
12801 cat confcache >"$cache_file"
12802 else
12803 case $cache_file in #(
12804 */* | ?:*)
12805 mv -f confcache "$cache_file"$$ &&
12806 mv -f "$cache_file"$$ "$cache_file" ;; #(
12807 *)
12808 mv -f confcache "$cache_file" ;;
12809 esac
12810 fi
12811 fi
12812 else
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12814 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12815 fi
12816 fi
12817 rm -f confcache
12818
12819 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12820 # Let make expand exec_prefix.
12821 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12822
12823 DEFS=-DHAVE_CONFIG_H
12824
12825 ac_libobjs=
12826 ac_ltlibobjs=
12827 U=
12828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12829 # 1. Remove the extension, and $U if already installed.
12830 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12831 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12833 # will be set to the directory where LIBOBJS objects are built.
12834 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12835 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12836 done
12837 LIBOBJS=$ac_libobjs
12838
12839 LTLIBOBJS=$ac_ltlibobjs
12840
12841
12842 if test -n "$EXEEXT"; then
12843 am__EXEEXT_TRUE=
12844 am__EXEEXT_FALSE='#'
12845 else
12846 am__EXEEXT_TRUE='#'
12847 am__EXEEXT_FALSE=
12848 fi
12849
12850 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12851 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12853 fi
12854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12855 as_fn_error $? "conditional \"AMDEP\" was never defined.
12856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12857 fi
12858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12859 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12861 fi
12862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12863 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12865 fi
12866
12867 : "${CONFIG_STATUS=./config.status}"
12868 ac_write_fail=0
12869 ac_clean_files_save=$ac_clean_files
12870 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12872 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12873 as_write_fail=0
12874 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12875 #! $SHELL
12876 # Generated by $as_me.
12877 # Run this file to recreate the current configuration.
12878 # Compiler output produced by configure, useful for debugging
12879 # configure, is in config.log if it exists.
12880
12881 debug=false
12882 ac_cs_recheck=false
12883 ac_cs_silent=false
12884
12885 SHELL=\${CONFIG_SHELL-$SHELL}
12886 export SHELL
12887 _ASEOF
12888 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12889 ## -------------------- ##
12890 ## M4sh Initialization. ##
12891 ## -------------------- ##
12892
12893 # Be more Bourne compatible
12894 DUALCASE=1; export DUALCASE # for MKS sh
12895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12896 emulate sh
12897 NULLCMD=:
12898 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12899 # is contrary to our usage. Disable this feature.
12900 alias -g '${1+"$@"}'='"$@"'
12901 setopt NO_GLOB_SUBST
12902 else
12903 case `(set -o) 2>/dev/null` in #(
12904 *posix*) :
12905 set -o posix ;; #(
12906 *) :
12907 ;;
12908 esac
12909 fi
12910
12911
12912 as_nl='
12913 '
12914 export as_nl
12915 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12916 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12919 # Prefer a ksh shell builtin over an external printf program on Solaris,
12920 # but without wasting forks for bash or zsh.
12921 if test -z "$BASH_VERSION$ZSH_VERSION" \
12922 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12923 as_echo='print -r --'
12924 as_echo_n='print -rn --'
12925 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12926 as_echo='printf %s\n'
12927 as_echo_n='printf %s'
12928 else
12929 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12930 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12931 as_echo_n='/usr/ucb/echo -n'
12932 else
12933 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12934 as_echo_n_body='eval
12935 arg=$1;
12936 case $arg in #(
12937 *"$as_nl"*)
12938 expr "X$arg" : "X\\(.*\\)$as_nl";
12939 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12940 esac;
12941 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12942 '
12943 export as_echo_n_body
12944 as_echo_n='sh -c $as_echo_n_body as_echo'
12945 fi
12946 export as_echo_body
12947 as_echo='sh -c $as_echo_body as_echo'
12948 fi
12949
12950 # The user is always right.
12951 if test "${PATH_SEPARATOR+set}" != set; then
12952 PATH_SEPARATOR=:
12953 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12954 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12955 PATH_SEPARATOR=';'
12956 }
12957 fi
12958
12959
12960 # IFS
12961 # We need space, tab and new line, in precisely that order. Quoting is
12962 # there to prevent editors from complaining about space-tab.
12963 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12964 # splitting by setting IFS to empty value.)
12965 IFS=" "" $as_nl"
12966
12967 # Find who we are. Look in the path if we contain no directory separator.
12968 as_myself=
12969 case $0 in #((
12970 *[\\/]* ) as_myself=$0 ;;
12971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12973 do
12974 IFS=$as_save_IFS
12975 test -z "$as_dir" && as_dir=.
12976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12977 done
12978 IFS=$as_save_IFS
12979
12980 ;;
12981 esac
12982 # We did not find ourselves, most probably we were run as `sh COMMAND'
12983 # in which case we are not to be found in the path.
12984 if test "x$as_myself" = x; then
12985 as_myself=$0
12986 fi
12987 if test ! -f "$as_myself"; then
12988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12989 exit 1
12990 fi
12991
12992 # Unset variables that we do not need and which cause bugs (e.g. in
12993 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12994 # suppresses any "Segmentation fault" message there. '((' could
12995 # trigger a bug in pdksh 5.2.14.
12996 for as_var in BASH_ENV ENV MAIL MAILPATH
12997 do eval test x\${$as_var+set} = xset \
12998 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12999 done
13000 PS1='$ '
13001 PS2='> '
13002 PS4='+ '
13003
13004 # NLS nuisances.
13005 LC_ALL=C
13006 export LC_ALL
13007 LANGUAGE=C
13008 export LANGUAGE
13009
13010 # CDPATH.
13011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13012
13013
13014 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13015 # ----------------------------------------
13016 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13017 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13018 # script with STATUS, using 1 if that was 0.
13019 as_fn_error ()
13020 {
13021 as_status=$1; test $as_status -eq 0 && as_status=1
13022 if test "$4"; then
13023 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13024 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13025 fi
13026 $as_echo "$as_me: error: $2" >&2
13027 as_fn_exit $as_status
13028 } # as_fn_error
13029
13030
13031 # as_fn_set_status STATUS
13032 # -----------------------
13033 # Set $? to STATUS, without forking.
13034 as_fn_set_status ()
13035 {
13036 return $1
13037 } # as_fn_set_status
13038
13039 # as_fn_exit STATUS
13040 # -----------------
13041 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13042 as_fn_exit ()
13043 {
13044 set +e
13045 as_fn_set_status $1
13046 exit $1
13047 } # as_fn_exit
13048
13049 # as_fn_unset VAR
13050 # ---------------
13051 # Portably unset VAR.
13052 as_fn_unset ()
13053 {
13054 { eval $1=; unset $1;}
13055 }
13056 as_unset=as_fn_unset
13057 # as_fn_append VAR VALUE
13058 # ----------------------
13059 # Append the text in VALUE to the end of the definition contained in VAR. Take
13060 # advantage of any shell optimizations that allow amortized linear growth over
13061 # repeated appends, instead of the typical quadratic growth present in naive
13062 # implementations.
13063 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13064 eval 'as_fn_append ()
13065 {
13066 eval $1+=\$2
13067 }'
13068 else
13069 as_fn_append ()
13070 {
13071 eval $1=\$$1\$2
13072 }
13073 fi # as_fn_append
13074
13075 # as_fn_arith ARG...
13076 # ------------------
13077 # Perform arithmetic evaluation on the ARGs, and store the result in the
13078 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13079 # must be portable across $(()) and expr.
13080 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13081 eval 'as_fn_arith ()
13082 {
13083 as_val=$(( $* ))
13084 }'
13085 else
13086 as_fn_arith ()
13087 {
13088 as_val=`expr "$@" || test $? -eq 1`
13089 }
13090 fi # as_fn_arith
13091
13092
13093 if expr a : '\(a\)' >/dev/null 2>&1 &&
13094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13095 as_expr=expr
13096 else
13097 as_expr=false
13098 fi
13099
13100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13101 as_basename=basename
13102 else
13103 as_basename=false
13104 fi
13105
13106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13107 as_dirname=dirname
13108 else
13109 as_dirname=false
13110 fi
13111
13112 as_me=`$as_basename -- "$0" ||
13113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13114 X"$0" : 'X\(//\)$' \| \
13115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13116 $as_echo X/"$0" |
13117 sed '/^.*\/\([^/][^/]*\)\/*$/{
13118 s//\1/
13119 q
13120 }
13121 /^X\/\(\/\/\)$/{
13122 s//\1/
13123 q
13124 }
13125 /^X\/\(\/\).*/{
13126 s//\1/
13127 q
13128 }
13129 s/.*/./; q'`
13130
13131 # Avoid depending upon Character Ranges.
13132 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13135 as_cr_digits='0123456789'
13136 as_cr_alnum=$as_cr_Letters$as_cr_digits
13137
13138 ECHO_C= ECHO_N= ECHO_T=
13139 case `echo -n x` in #(((((
13140 -n*)
13141 case `echo 'xy\c'` in
13142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13143 xy) ECHO_C='\c';;
13144 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13145 ECHO_T=' ';;
13146 esac;;
13147 *)
13148 ECHO_N='-n';;
13149 esac
13150
13151 rm -f conf$$ conf$$.exe conf$$.file
13152 if test -d conf$$.dir; then
13153 rm -f conf$$.dir/conf$$.file
13154 else
13155 rm -f conf$$.dir
13156 mkdir conf$$.dir 2>/dev/null
13157 fi
13158 if (echo >conf$$.file) 2>/dev/null; then
13159 if ln -s conf$$.file conf$$ 2>/dev/null; then
13160 as_ln_s='ln -s'
13161 # ... but there are two gotchas:
13162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13164 # In both cases, we have to default to `cp -p'.
13165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13166 as_ln_s='cp -p'
13167 elif ln conf$$.file conf$$ 2>/dev/null; then
13168 as_ln_s=ln
13169 else
13170 as_ln_s='cp -p'
13171 fi
13172 else
13173 as_ln_s='cp -p'
13174 fi
13175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13176 rmdir conf$$.dir 2>/dev/null
13177
13178
13179 # as_fn_mkdir_p
13180 # -------------
13181 # Create "$as_dir" as a directory, including parents if necessary.
13182 as_fn_mkdir_p ()
13183 {
13184
13185 case $as_dir in #(
13186 -*) as_dir=./$as_dir;;
13187 esac
13188 test -d "$as_dir" || eval $as_mkdir_p || {
13189 as_dirs=
13190 while :; do
13191 case $as_dir in #(
13192 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13193 *) as_qdir=$as_dir;;
13194 esac
13195 as_dirs="'$as_qdir' $as_dirs"
13196 as_dir=`$as_dirname -- "$as_dir" ||
13197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13198 X"$as_dir" : 'X\(//\)[^/]' \| \
13199 X"$as_dir" : 'X\(//\)$' \| \
13200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13201 $as_echo X"$as_dir" |
13202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13203 s//\1/
13204 q
13205 }
13206 /^X\(\/\/\)[^/].*/{
13207 s//\1/
13208 q
13209 }
13210 /^X\(\/\/\)$/{
13211 s//\1/
13212 q
13213 }
13214 /^X\(\/\).*/{
13215 s//\1/
13216 q
13217 }
13218 s/.*/./; q'`
13219 test -d "$as_dir" && break
13220 done
13221 test -z "$as_dirs" || eval "mkdir $as_dirs"
13222 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13223
13224
13225 } # as_fn_mkdir_p
13226 if mkdir -p . 2>/dev/null; then
13227 as_mkdir_p='mkdir -p "$as_dir"'
13228 else
13229 test -d ./-p && rmdir ./-p
13230 as_mkdir_p=false
13231 fi
13232
13233 if test -x / >/dev/null 2>&1; then
13234 as_test_x='test -x'
13235 else
13236 if ls -dL / >/dev/null 2>&1; then
13237 as_ls_L_option=L
13238 else
13239 as_ls_L_option=
13240 fi
13241 as_test_x='
13242 eval sh -c '\''
13243 if test -d "$1"; then
13244 test -d "$1/.";
13245 else
13246 case $1 in #(
13247 -*)set "./$1";;
13248 esac;
13249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13250 ???[sx]*):;;*)false;;esac;fi
13251 '\'' sh
13252 '
13253 fi
13254 as_executable_p=$as_test_x
13255
13256 # Sed expression to map a string onto a valid CPP name.
13257 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13258
13259 # Sed expression to map a string onto a valid variable name.
13260 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13261
13262
13263 exec 6>&1
13264 ## ----------------------------------- ##
13265 ## Main body of $CONFIG_STATUS script. ##
13266 ## ----------------------------------- ##
13267 _ASEOF
13268 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13269
13270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13271 # Save the log message, to keep $0 and so on meaningful, and to
13272 # report actual input values of CONFIG_FILES etc. instead of their
13273 # values after options handling.
13274 ac_log="
13275 This file was extended by libXft $as_me 2.2.0, which was
13276 generated by GNU Autoconf 2.68. Invocation command line was
13277
13278 CONFIG_FILES = $CONFIG_FILES
13279 CONFIG_HEADERS = $CONFIG_HEADERS
13280 CONFIG_LINKS = $CONFIG_LINKS
13281 CONFIG_COMMANDS = $CONFIG_COMMANDS
13282 $ $0 $@
13283
13284 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13285 "
13286
13287 _ACEOF
13288
13289 case $ac_config_files in *"
13290 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13291 esac
13292
13293 case $ac_config_headers in *"
13294 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13295 esac
13296
13297
13298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13299 # Files that config.status was made for.
13300 config_files="$ac_config_files"
13301 config_headers="$ac_config_headers"
13302 config_commands="$ac_config_commands"
13303
13304 _ACEOF
13305
13306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13307 ac_cs_usage="\
13308 \`$as_me' instantiates files and other configuration actions
13309 from templates according to the current configuration. Unless the files
13310 and actions are specified as TAGs, all are instantiated by default.
13311
13312 Usage: $0 [OPTION]... [TAG]...
13313
13314 -h, --help print this help, then exit
13315 -V, --version print version number and configuration settings, then exit
13316 --config print configuration, then exit
13317 -q, --quiet, --silent
13318 do not print progress messages
13319 -d, --debug don't remove temporary files
13320 --recheck update $as_me by reconfiguring in the same conditions
13321 --file=FILE[:TEMPLATE]
13322 instantiate the configuration file FILE
13323 --header=FILE[:TEMPLATE]
13324 instantiate the configuration header FILE
13325
13326 Configuration files:
13327 $config_files
13328
13329 Configuration headers:
13330 $config_headers
13331
13332 Configuration commands:
13333 $config_commands
13334
13335 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13336
13337 _ACEOF
13338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13339 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13340 ac_cs_version="\\
13341 libXft config.status 2.2.0
13342 configured by $0, generated by GNU Autoconf 2.68,
13343 with options \\"\$ac_cs_config\\"
13344
13345 Copyright (C) 2010 Free Software Foundation, Inc.
13346 This config.status script is free software; the Free Software Foundation
13347 gives unlimited permission to copy, distribute and modify it."
13348
13349 ac_pwd='$ac_pwd'
13350 srcdir='$srcdir'
13351 INSTALL='$INSTALL'
13352 MKDIR_P='$MKDIR_P'
13353 AWK='$AWK'
13354 test -n "\$AWK" || AWK=awk
13355 _ACEOF
13356
13357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13358 # The default lists apply if the user does not specify any file.
13359 ac_need_defaults=:
13360 while test $# != 0
13361 do
13362 case $1 in
13363 --*=?*)
13364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13366 ac_shift=:
13367 ;;
13368 --*=)
13369 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13370 ac_optarg=
13371 ac_shift=:
13372 ;;
13373 *)
13374 ac_option=$1
13375 ac_optarg=$2
13376 ac_shift=shift
13377 ;;
13378 esac
13379
13380 case $ac_option in
13381 # Handling of the options.
13382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13383 ac_cs_recheck=: ;;
13384 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13385 $as_echo "$ac_cs_version"; exit ;;
13386 --config | --confi | --conf | --con | --co | --c )
13387 $as_echo "$ac_cs_config"; exit ;;
13388 --debug | --debu | --deb | --de | --d | -d )
13389 debug=: ;;
13390 --file | --fil | --fi | --f )
13391 $ac_shift
13392 case $ac_optarg in
13393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13394 '') as_fn_error $? "missing file argument" ;;
13395 esac
13396 as_fn_append CONFIG_FILES " '$ac_optarg'"
13397 ac_need_defaults=false;;
13398 --header | --heade | --head | --hea )
13399 $ac_shift
13400 case $ac_optarg in
13401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13402 esac
13403 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13404 ac_need_defaults=false;;
13405 --he | --h)
13406 # Conflict between --help and --header
13407 as_fn_error $? "ambiguous option: \`$1'
13408 Try \`$0 --help' for more information.";;
13409 --help | --hel | -h )
13410 $as_echo "$ac_cs_usage"; exit ;;
13411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13413 ac_cs_silent=: ;;
13414
13415 # This is an error.
13416 -*) as_fn_error $? "unrecognized option: \`$1'
13417 Try \`$0 --help' for more information." ;;
13418
13419 *) as_fn_append ac_config_targets " $1"
13420 ac_need_defaults=false ;;
13421
13422 esac
13423 shift
13424 done
13425
13426 ac_configure_extra_args=
13427
13428 if $ac_cs_silent; then
13429 exec 6>/dev/null
13430 ac_configure_extra_args="$ac_configure_extra_args --silent"
13431 fi
13432
13433 _ACEOF
13434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13435 if \$ac_cs_recheck; then
13436 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13437 shift
13438 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13439 CONFIG_SHELL='$SHELL'
13440 export CONFIG_SHELL
13441 exec "\$@"
13442 fi
13443
13444 _ACEOF
13445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13446 exec 5>>config.log
13447 {
13448 echo
13449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13450 ## Running $as_me. ##
13451 _ASBOX
13452 $as_echo "$ac_log"
13453 } >&5
13454
13455 _ACEOF
13456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13457 #
13458 # INIT-COMMANDS
13459 #
13460 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13461
13462
13463 # The HP-UX ksh and POSIX shell print the target directory to stdout
13464 # if CDPATH is set.
13465 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13466
13467 sed_quote_subst='$sed_quote_subst'
13468 double_quote_subst='$double_quote_subst'
13469 delay_variable_subst='$delay_variable_subst'
13470 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13471 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13472 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13473 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13474 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13475 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13476 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13477 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13478 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13479 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13480 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13481 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13482 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13483 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13484 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13485 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13486 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13487 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13488 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13489 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13490 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13491 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13492 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13493 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13494 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13495 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13496 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13497 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13498 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13499 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13500 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13501 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13502 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13503 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13504 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13505 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13506 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13507 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13508 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13509 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13510 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13511 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13512 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13513 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13514 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13515 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13516 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13517 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13518 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"`'
13519 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13520 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13521 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13522 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13523 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13524 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13525 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13526 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13527 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13528 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13529 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13530 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13531 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13532 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13533 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13534 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13535 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13536 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13537 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13538 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13539 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13540 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13541 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13542 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13543 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13544 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13545 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13546 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13547 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13548 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13549 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13550 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13551 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13552 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13553 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13554 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13555 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13556 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13557 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13558 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13559 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13560 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13561 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13562 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13563 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13564 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13565 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13566 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13567 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13568 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13569 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13570 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13571 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13572 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13573 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13574 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13575 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13576 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13577 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13578 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13579 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13580 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13581 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13582 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13583 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13584 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13585 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13586 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13587 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13588 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13589 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13590
13591 LTCC='$LTCC'
13592 LTCFLAGS='$LTCFLAGS'
13593 compiler='$compiler_DEFAULT'
13594
13595 # A function that is used when there is no print builtin or printf.
13596 func_fallback_echo ()
13597 {
13598 eval 'cat <<_LTECHO_EOF
13599 \$1
13600 _LTECHO_EOF'
13601 }
13602
13603 # Quote evaled strings.
13604 for var in SHELL \
13605 ECHO \
13606 SED \
13607 GREP \
13608 EGREP \
13609 FGREP \
13610 LD \
13611 NM \
13612 LN_S \
13613 lt_SP2NL \
13614 lt_NL2SP \
13615 reload_flag \
13616 OBJDUMP \
13617 deplibs_check_method \
13618 file_magic_cmd \
13619 AR \
13620 AR_FLAGS \
13621 STRIP \
13622 RANLIB \
13623 CC \
13624 CFLAGS \
13625 compiler \
13626 lt_cv_sys_global_symbol_pipe \
13627 lt_cv_sys_global_symbol_to_cdecl \
13628 lt_cv_sys_global_symbol_to_c_name_address \
13629 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13630 lt_prog_compiler_no_builtin_flag \
13631 lt_prog_compiler_wl \
13632 lt_prog_compiler_pic \
13633 lt_prog_compiler_static \
13634 lt_cv_prog_compiler_c_o \
13635 need_locks \
13636 DSYMUTIL \
13637 NMEDIT \
13638 LIPO \
13639 OTOOL \
13640 OTOOL64 \
13641 shrext_cmds \
13642 export_dynamic_flag_spec \
13643 whole_archive_flag_spec \
13644 compiler_needs_object \
13645 with_gnu_ld \
13646 allow_undefined_flag \
13647 no_undefined_flag \
13648 hardcode_libdir_flag_spec \
13649 hardcode_libdir_flag_spec_ld \
13650 hardcode_libdir_separator \
13651 fix_srcfile_path \
13652 exclude_expsyms \
13653 include_expsyms \
13654 file_list_spec \
13655 variables_saved_for_relink \
13656 libname_spec \
13657 library_names_spec \
13658 soname_spec \
13659 install_override_mode \
13660 finish_eval \
13661 old_striplib \
13662 striplib; do
13663 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13664 *[\\\\\\\`\\"\\\$]*)
13665 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13666 ;;
13667 *)
13668 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13669 ;;
13670 esac
13671 done
13672
13673 # Double-quote double-evaled strings.
13674 for var in reload_cmds \
13675 old_postinstall_cmds \
13676 old_postuninstall_cmds \
13677 old_archive_cmds \
13678 extract_expsyms_cmds \
13679 old_archive_from_new_cmds \
13680 old_archive_from_expsyms_cmds \
13681 archive_cmds \
13682 archive_expsym_cmds \
13683 module_cmds \
13684 module_expsym_cmds \
13685 export_symbols_cmds \
13686 prelink_cmds \
13687 postinstall_cmds \
13688 postuninstall_cmds \
13689 finish_cmds \
13690 sys_lib_search_path_spec \
13691 sys_lib_dlsearch_path_spec; do
13692 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13693 *[\\\\\\\`\\"\\\$]*)
13694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13695 ;;
13696 *)
13697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13698 ;;
13699 esac
13700 done
13701
13702 ac_aux_dir='$ac_aux_dir'
13703 xsi_shell='$xsi_shell'
13704 lt_shell_append='$lt_shell_append'
13705
13706 # See if we are running on zsh, and set the options which allow our
13707 # commands through without removal of \ escapes INIT.
13708 if test -n "\${ZSH_VERSION+set}" ; then
13709 setopt NO_GLOB_SUBST
13710 fi
13711
13712
13713 PACKAGE='$PACKAGE'
13714 VERSION='$VERSION'
13715 TIMESTAMP='$TIMESTAMP'
13716 RM='$RM'
13717 ofile='$ofile'
13718
13719
13720
13721
13722 _ACEOF
13723
13724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13725
13726 # Handling of arguments.
13727 for ac_config_target in $ac_config_targets
13728 do
13729 case $ac_config_target in
13730 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13731 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13732 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13733 "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;;
13734 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13735 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
13736 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13737 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13738
13739 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13740 esac
13741 done
13742
13743
13744 # If the user did not use the arguments to specify the items to instantiate,
13745 # then the envvar interface is used. Set only those that are not.
13746 # We use the long form for the default assignment because of an extremely
13747 # bizarre bug on SunOS 4.1.3.
13748 if $ac_need_defaults; then
13749 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13750 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13751 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13752 fi
13753
13754 # Have a temporary directory for convenience. Make it in the build tree
13755 # simply because there is no reason against having it here, and in addition,
13756 # creating and moving files from /tmp can sometimes cause problems.
13757 # Hook for its removal unless debugging.
13758 # Note that there is a small window in which the directory will not be cleaned:
13759 # after its creation but before its name has been assigned to `$tmp'.
13760 $debug ||
13761 {
13762 tmp= ac_tmp=
13763 trap 'exit_status=$?
13764 : "${ac_tmp:=$tmp}"
13765 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13766 ' 0
13767 trap 'as_fn_exit 1' 1 2 13 15
13768 }
13769 # Create a (secure) tmp directory for tmp files.
13770
13771 {
13772 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13773 test -d "$tmp"
13774 } ||
13775 {
13776 tmp=./conf$$-$RANDOM
13777 (umask 077 && mkdir "$tmp")
13778 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13779 ac_tmp=$tmp
13780
13781 # Set up the scripts for CONFIG_FILES section.
13782 # No need to generate them if there are no CONFIG_FILES.
13783 # This happens for instance with `./config.status config.h'.
13784 if test -n "$CONFIG_FILES"; then
13785
13786
13787 ac_cr=`echo X | tr X '\015'`
13788 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13789 # But we know of no other shell where ac_cr would be empty at this
13790 # point, so we can use a bashism as a fallback.
13791 if test "x$ac_cr" = x; then
13792 eval ac_cr=\$\'\\r\'
13793 fi
13794 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13795 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13796 ac_cs_awk_cr='\\r'
13797 else
13798 ac_cs_awk_cr=$ac_cr
13799 fi
13800
13801 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13802 _ACEOF
13803
13804
13805 {
13806 echo "cat >conf$$subs.awk <<_ACEOF" &&
13807 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13808 echo "_ACEOF"
13809 } >conf$$subs.sh ||
13810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13811 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13812 ac_delim='%!_!# '
13813 for ac_last_try in false false false false false :; do
13814 . ./conf$$subs.sh ||
13815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13816
13817 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13818 if test $ac_delim_n = $ac_delim_num; then
13819 break
13820 elif $ac_last_try; then
13821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13822 else
13823 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13824 fi
13825 done
13826 rm -f conf$$subs.sh
13827
13828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13829 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13830 _ACEOF
13831 sed -n '
13832 h
13833 s/^/S["/; s/!.*/"]=/
13834 p
13835 g
13836 s/^[^!]*!//
13837 :repl
13838 t repl
13839 s/'"$ac_delim"'$//
13840 t delim
13841 :nl
13842 h
13843 s/\(.\{148\}\)..*/\1/
13844 t more1
13845 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13846 p
13847 n
13848 b repl
13849 :more1
13850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13851 p
13852 g
13853 s/.\{148\}//
13854 t nl
13855 :delim
13856 h
13857 s/\(.\{148\}\)..*/\1/
13858 t more2
13859 s/["\\]/\\&/g; s/^/"/; s/$/"/
13860 p
13861 b
13862 :more2
13863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13864 p
13865 g
13866 s/.\{148\}//
13867 t delim
13868 ' <conf$$subs.awk | sed '
13869 /^[^""]/{
13870 N
13871 s/\n//
13872 }
13873 ' >>$CONFIG_STATUS || ac_write_fail=1
13874 rm -f conf$$subs.awk
13875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13876 _ACAWK
13877 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13878 for (key in S) S_is_set[key] = 1
13879 FS = ""
13880
13881 }
13882 {
13883 line = $ 0
13884 nfields = split(line, field, "@")
13885 substed = 0
13886 len = length(field[1])
13887 for (i = 2; i < nfields; i++) {
13888 key = field[i]
13889 keylen = length(key)
13890 if (S_is_set[key]) {
13891 value = S[key]
13892 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13893 len += length(value) + length(field[++i])
13894 substed = 1
13895 } else
13896 len += 1 + keylen
13897 }
13898
13899 print line
13900 }
13901
13902 _ACAWK
13903 _ACEOF
13904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13905 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13906 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13907 else
13908 cat
13909 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13910 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13911 _ACEOF
13912
13913 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13914 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13915 # trailing colons and then remove the whole line if VPATH becomes empty
13916 # (actually we leave an empty line to preserve line numbers).
13917 if test "x$srcdir" = x.; then
13918 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13919 h
13920 s///
13921 s/^/:/
13922 s/[ ]*$/:/
13923 s/:\$(srcdir):/:/g
13924 s/:\${srcdir}:/:/g
13925 s/:@srcdir@:/:/g
13926 s/^:*//
13927 s/:*$//
13928 x
13929 s/\(=[ ]*\).*/\1/
13930 G
13931 s/\n//
13932 s/^[^=]*=[ ]*$//
13933 }'
13934 fi
13935
13936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13937 fi # test -n "$CONFIG_FILES"
13938
13939 # Set up the scripts for CONFIG_HEADERS section.
13940 # No need to generate them if there are no CONFIG_HEADERS.
13941 # This happens for instance with `./config.status Makefile'.
13942 if test -n "$CONFIG_HEADERS"; then
13943 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13944 BEGIN {
13945 _ACEOF
13946
13947 # Transform confdefs.h into an awk script `defines.awk', embedded as
13948 # here-document in config.status, that substitutes the proper values into
13949 # config.h.in to produce config.h.
13950
13951 # Create a delimiter string that does not exist in confdefs.h, to ease
13952 # handling of long lines.
13953 ac_delim='%!_!# '
13954 for ac_last_try in false false :; do
13955 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13956 if test -z "$ac_tt"; then
13957 break
13958 elif $ac_last_try; then
13959 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13960 else
13961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13962 fi
13963 done
13964
13965 # For the awk script, D is an array of macro values keyed by name,
13966 # likewise P contains macro parameters if any. Preserve backslash
13967 # newline sequences.
13968
13969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13970 sed -n '
13971 s/.\{148\}/&'"$ac_delim"'/g
13972 t rset
13973 :rset
13974 s/^[ ]*#[ ]*define[ ][ ]*/ /
13975 t def
13976 d
13977 :def
13978 s/\\$//
13979 t bsnl
13980 s/["\\]/\\&/g
13981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13982 D["\1"]=" \3"/p
13983 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13984 d
13985 :bsnl
13986 s/["\\]/\\&/g
13987 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13988 D["\1"]=" \3\\\\\\n"\\/p
13989 t cont
13990 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13991 t cont
13992 d
13993 :cont
13994 n
13995 s/.\{148\}/&'"$ac_delim"'/g
13996 t clear
13997 :clear
13998 s/\\$//
13999 t bsnlc
14000 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14001 d
14002 :bsnlc
14003 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14004 b cont
14005 ' <confdefs.h | sed '
14006 s/'"$ac_delim"'/"\\\
14007 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14008
14009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14010 for (key in D) D_is_set[key] = 1
14011 FS = ""
14012 }
14013 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14014 line = \$ 0
14015 split(line, arg, " ")
14016 if (arg[1] == "#") {
14017 defundef = arg[2]
14018 mac1 = arg[3]
14019 } else {
14020 defundef = substr(arg[1], 2)
14021 mac1 = arg[2]
14022 }
14023 split(mac1, mac2, "(") #)
14024 macro = mac2[1]
14025 prefix = substr(line, 1, index(line, defundef) - 1)
14026 if (D_is_set[macro]) {
14027 # Preserve the white space surrounding the "#".
14028 print prefix "define", macro P[macro] D[macro]
14029 next
14030 } else {
14031 # Replace #undef with comments. This is necessary, for example,
14032 # in the case of _POSIX_SOURCE, which is predefined and required
14033 # on some systems where configure will not decide to define it.
14034 if (defundef == "undef") {
14035 print "/*", prefix defundef, macro, "*/"
14036 next
14037 }
14038 }
14039 }
14040 { print }
14041 _ACAWK
14042 _ACEOF
14043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14044 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14045 fi # test -n "$CONFIG_HEADERS"
14046
14047
14048 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14049 shift
14050 for ac_tag
14051 do
14052 case $ac_tag in
14053 :[FHLC]) ac_mode=$ac_tag; continue;;
14054 esac
14055 case $ac_mode$ac_tag in
14056 :[FHL]*:*);;
14057 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14058 :[FH]-) ac_tag=-:-;;
14059 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14060 esac
14061 ac_save_IFS=$IFS
14062 IFS=:
14063 set x $ac_tag
14064 IFS=$ac_save_IFS
14065 shift
14066 ac_file=$1
14067 shift
14068
14069 case $ac_mode in
14070 :L) ac_source=$1;;
14071 :[FH])
14072 ac_file_inputs=
14073 for ac_f
14074 do
14075 case $ac_f in
14076 -) ac_f="$ac_tmp/stdin";;
14077 *) # Look for the file first in the build tree, then in the source tree
14078 # (if the path is not absolute). The absolute path cannot be DOS-style,
14079 # because $ac_f cannot contain `:'.
14080 test -f "$ac_f" ||
14081 case $ac_f in
14082 [\\/$]*) false;;
14083 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14084 esac ||
14085 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14086 esac
14087 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14088 as_fn_append ac_file_inputs " '$ac_f'"
14089 done
14090
14091 # Let's still pretend it is `configure' which instantiates (i.e., don't
14092 # use $as_me), people would be surprised to read:
14093 # /* config.h. Generated by config.status. */
14094 configure_input='Generated from '`
14095 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14096 `' by configure.'
14097 if test x"$ac_file" != x-; then
14098 configure_input="$ac_file. $configure_input"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14100 $as_echo "$as_me: creating $ac_file" >&6;}
14101 fi
14102 # Neutralize special characters interpreted by sed in replacement strings.
14103 case $configure_input in #(
14104 *\&* | *\|* | *\\* )
14105 ac_sed_conf_input=`$as_echo "$configure_input" |
14106 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14107 *) ac_sed_conf_input=$configure_input;;
14108 esac
14109
14110 case $ac_tag in
14111 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14113 esac
14114 ;;
14115 esac
14116
14117 ac_dir=`$as_dirname -- "$ac_file" ||
14118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14119 X"$ac_file" : 'X\(//\)[^/]' \| \
14120 X"$ac_file" : 'X\(//\)$' \| \
14121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14122 $as_echo X"$ac_file" |
14123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14124 s//\1/
14125 q
14126 }
14127 /^X\(\/\/\)[^/].*/{
14128 s//\1/
14129 q
14130 }
14131 /^X\(\/\/\)$/{
14132 s//\1/
14133 q
14134 }
14135 /^X\(\/\).*/{
14136 s//\1/
14137 q
14138 }
14139 s/.*/./; q'`
14140 as_dir="$ac_dir"; as_fn_mkdir_p
14141 ac_builddir=.
14142
14143 case "$ac_dir" in
14144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14145 *)
14146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14147 # A ".." for each directory in $ac_dir_suffix.
14148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14149 case $ac_top_builddir_sub in
14150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14152 esac ;;
14153 esac
14154 ac_abs_top_builddir=$ac_pwd
14155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14156 # for backward compatibility:
14157 ac_top_builddir=$ac_top_build_prefix
14158
14159 case $srcdir in
14160 .) # We are building in place.
14161 ac_srcdir=.
14162 ac_top_srcdir=$ac_top_builddir_sub
14163 ac_abs_top_srcdir=$ac_pwd ;;
14164 [\\/]* | ?:[\\/]* ) # Absolute name.
14165 ac_srcdir=$srcdir$ac_dir_suffix;
14166 ac_top_srcdir=$srcdir
14167 ac_abs_top_srcdir=$srcdir ;;
14168 *) # Relative name.
14169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14170 ac_top_srcdir=$ac_top_build_prefix$srcdir
14171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14172 esac
14173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14174
14175
14176 case $ac_mode in
14177 :F)
14178 #
14179 # CONFIG_FILE
14180 #
14181
14182 case $INSTALL in
14183 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14184 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14185 esac
14186 ac_MKDIR_P=$MKDIR_P
14187 case $MKDIR_P in
14188 [\\/$]* | ?:[\\/]* ) ;;
14189 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14190 esac
14191 _ACEOF
14192
14193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14194 # If the template does not know about datarootdir, expand it.
14195 # FIXME: This hack should be removed a few years after 2.60.
14196 ac_datarootdir_hack=; ac_datarootdir_seen=
14197 ac_sed_dataroot='
14198 /datarootdir/ {
14199 p
14200 q
14201 }
14202 /@datadir@/p
14203 /@docdir@/p
14204 /@infodir@/p
14205 /@localedir@/p
14206 /@mandir@/p'
14207 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14208 *datarootdir*) ac_datarootdir_seen=yes;;
14209 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14211 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14212 _ACEOF
14213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14214 ac_datarootdir_hack='
14215 s&@datadir@&$datadir&g
14216 s&@docdir@&$docdir&g
14217 s&@infodir@&$infodir&g
14218 s&@localedir@&$localedir&g
14219 s&@mandir@&$mandir&g
14220 s&\\\${datarootdir}&$datarootdir&g' ;;
14221 esac
14222 _ACEOF
14223
14224 # Neutralize VPATH when `$srcdir' = `.'.
14225 # Shell code in configure.ac might set extrasub.
14226 # FIXME: do we really want to maintain this feature?
14227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14228 ac_sed_extra="$ac_vpsub
14229 $extrasub
14230 _ACEOF
14231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14232 :t
14233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14234 s|@configure_input@|$ac_sed_conf_input|;t t
14235 s&@top_builddir@&$ac_top_builddir_sub&;t t
14236 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14237 s&@srcdir@&$ac_srcdir&;t t
14238 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14239 s&@top_srcdir@&$ac_top_srcdir&;t t
14240 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14241 s&@builddir@&$ac_builddir&;t t
14242 s&@abs_builddir@&$ac_abs_builddir&;t t
14243 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14244 s&@INSTALL@&$ac_INSTALL&;t t
14245 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14246 $ac_datarootdir_hack
14247 "
14248 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14249 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14250
14251 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14252 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14254 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14256 which seems to be undefined. Please make sure it is defined" >&5
14257 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14258 which seems to be undefined. Please make sure it is defined" >&2;}
14259
14260 rm -f "$ac_tmp/stdin"
14261 case $ac_file in
14262 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14263 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14264 esac \
14265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14266 ;;
14267 :H)
14268 #
14269 # CONFIG_HEADER
14270 #
14271 if test x"$ac_file" != x-; then
14272 {
14273 $as_echo "/* $configure_input */" \
14274 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14275 } >"$ac_tmp/config.h" \
14276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14277 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14279 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14280 else
14281 rm -f "$ac_file"
14282 mv "$ac_tmp/config.h" "$ac_file" \
14283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14284 fi
14285 else
14286 $as_echo "/* $configure_input */" \
14287 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14288 || as_fn_error $? "could not create -" "$LINENO" 5
14289 fi
14290 # Compute "$ac_file"'s index in $config_headers.
14291 _am_arg="$ac_file"
14292 _am_stamp_count=1
14293 for _am_header in $config_headers :; do
14294 case $_am_header in
14295 $_am_arg | $_am_arg:* )
14296 break ;;
14297 * )
14298 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14299 esac
14300 done
14301 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14302 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14303 X"$_am_arg" : 'X\(//\)[^/]' \| \
14304 X"$_am_arg" : 'X\(//\)$' \| \
14305 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14306 $as_echo X"$_am_arg" |
14307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14308 s//\1/
14309 q
14310 }
14311 /^X\(\/\/\)[^/].*/{
14312 s//\1/
14313 q
14314 }
14315 /^X\(\/\/\)$/{
14316 s//\1/
14317 q
14318 }
14319 /^X\(\/\).*/{
14320 s//\1/
14321 q
14322 }
14323 s/.*/./; q'`/stamp-h$_am_stamp_count
14324 ;;
14325
14326 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14327 $as_echo "$as_me: executing $ac_file commands" >&6;}
14328 ;;
14329 esac
14330
14331
14332 case $ac_file$ac_mode in
14333 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14334 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14335 # are listed without --file. Let's play safe and only enable the eval
14336 # if we detect the quoting.
14337 case $CONFIG_FILES in
14338 *\'*) eval set x "$CONFIG_FILES" ;;
14339 *) set x $CONFIG_FILES ;;
14340 esac
14341 shift
14342 for mf
14343 do
14344 # Strip MF so we end up with the name of the file.
14345 mf=`echo "$mf" | sed -e 's/:.*$//'`
14346 # Check whether this is an Automake generated Makefile or not.
14347 # We used to match only the files named `Makefile.in', but
14348 # some people rename them; so instead we look at the file content.
14349 # Grep'ing the first line is not enough: some people post-process
14350 # each Makefile.in and add a new line on top of each file to say so.
14351 # Grep'ing the whole file is not good either: AIX grep has a line
14352 # limit of 2048, but all sed's we know have understand at least 4000.
14353 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14354 dirpart=`$as_dirname -- "$mf" ||
14355 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14356 X"$mf" : 'X\(//\)[^/]' \| \
14357 X"$mf" : 'X\(//\)$' \| \
14358 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14359 $as_echo X"$mf" |
14360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14361 s//\1/
14362 q
14363 }
14364 /^X\(\/\/\)[^/].*/{
14365 s//\1/
14366 q
14367 }
14368 /^X\(\/\/\)$/{
14369 s//\1/
14370 q
14371 }
14372 /^X\(\/\).*/{
14373 s//\1/
14374 q
14375 }
14376 s/.*/./; q'`
14377 else
14378 continue
14379 fi
14380 # Extract the definition of DEPDIR, am__include, and am__quote
14381 # from the Makefile without running `make'.
14382 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14383 test -z "$DEPDIR" && continue
14384 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14385 test -z "am__include" && continue
14386 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14387 # When using ansi2knr, U may be empty or an underscore; expand it
14388 U=`sed -n 's/^U = //p' < "$mf"`
14389 # Find all dependency output files, they are included files with
14390 # $(DEPDIR) in their names. We invoke sed twice because it is the
14391 # simplest approach to changing $(DEPDIR) to its actual value in the
14392 # expansion.
14393 for file in `sed -n "
14394 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14395 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14396 # Make sure the directory exists.
14397 test -f "$dirpart/$file" && continue
14398 fdir=`$as_dirname -- "$file" ||
14399 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14400 X"$file" : 'X\(//\)[^/]' \| \
14401 X"$file" : 'X\(//\)$' \| \
14402 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14403 $as_echo X"$file" |
14404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14405 s//\1/
14406 q
14407 }
14408 /^X\(\/\/\)[^/].*/{
14409 s//\1/
14410 q
14411 }
14412 /^X\(\/\/\)$/{
14413 s//\1/
14414 q
14415 }
14416 /^X\(\/\).*/{
14417 s//\1/
14418 q
14419 }
14420 s/.*/./; q'`
14421 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14422 # echo "creating $dirpart/$file"
14423 echo '# dummy' > "$dirpart/$file"
14424 done
14425 done
14426 }
14427 ;;
14428 "libtool":C)
14429
14430 # See if we are running on zsh, and set the options which allow our
14431 # commands through without removal of \ escapes.
14432 if test -n "${ZSH_VERSION+set}" ; then
14433 setopt NO_GLOB_SUBST
14434 fi
14435
14436 cfgfile="${ofile}T"
14437 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14438 $RM "$cfgfile"
14439
14440 cat <<_LT_EOF >> "$cfgfile"
14441 #! $SHELL
14442
14443 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14444 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14446 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14447 #
14448 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14449 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14450 # Inc.
14451 # Written by Gordon Matzigkeit, 1996
14452 #
14453 # This file is part of GNU Libtool.
14454 #
14455 # GNU Libtool is free software; you can redistribute it and/or
14456 # modify it under the terms of the GNU General Public License as
14457 # published by the Free Software Foundation; either version 2 of
14458 # the License, or (at your option) any later version.
14459 #
14460 # As a special exception to the GNU General Public License,
14461 # if you distribute this file as part of a program or library that
14462 # is built using GNU Libtool, you may include this file under the
14463 # same distribution terms that you use for the rest of that program.
14464 #
14465 # GNU Libtool is distributed in the hope that it will be useful,
14466 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14467 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14468 # GNU General Public License for more details.
14469 #
14470 # You should have received a copy of the GNU General Public License
14471 # along with GNU Libtool; see the file COPYING. If not, a copy
14472 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14473 # obtained by writing to the Free Software Foundation, Inc.,
14474 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14475
14476
14477 # The names of the tagged configurations supported by this script.
14478 available_tags=""
14479
14480 # ### BEGIN LIBTOOL CONFIG
14481
14482 # Which release of libtool.m4 was used?
14483 macro_version=$macro_version
14484 macro_revision=$macro_revision
14485
14486 # Whether or not to build shared libraries.
14487 build_libtool_libs=$enable_shared
14488
14489 # Whether or not to build static libraries.
14490 build_old_libs=$enable_static
14491
14492 # What type of objects to build.
14493 pic_mode=$pic_mode
14494
14495 # Whether or not to optimize for fast installation.
14496 fast_install=$enable_fast_install
14497
14498 # Shell to use when invoking shell scripts.
14499 SHELL=$lt_SHELL
14500
14501 # An echo program that protects backslashes.
14502 ECHO=$lt_ECHO
14503
14504 # The host system.
14505 host_alias=$host_alias
14506 host=$host
14507 host_os=$host_os
14508
14509 # The build system.
14510 build_alias=$build_alias
14511 build=$build
14512 build_os=$build_os
14513
14514 # A sed program that does not truncate output.
14515 SED=$lt_SED
14516
14517 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14518 Xsed="\$SED -e 1s/^X//"
14519
14520 # A grep program that handles long lines.
14521 GREP=$lt_GREP
14522
14523 # An ERE matcher.
14524 EGREP=$lt_EGREP
14525
14526 # A literal string matcher.
14527 FGREP=$lt_FGREP
14528
14529 # A BSD- or MS-compatible name lister.
14530 NM=$lt_NM
14531
14532 # Whether we need soft or hard links.
14533 LN_S=$lt_LN_S
14534
14535 # What is the maximum length of a command?
14536 max_cmd_len=$max_cmd_len
14537
14538 # Object file suffix (normally "o").
14539 objext=$ac_objext
14540
14541 # Executable file suffix (normally "").
14542 exeext=$exeext
14543
14544 # whether the shell understands "unset".
14545 lt_unset=$lt_unset
14546
14547 # turn spaces into newlines.
14548 SP2NL=$lt_lt_SP2NL
14549
14550 # turn newlines into spaces.
14551 NL2SP=$lt_lt_NL2SP
14552
14553 # An object symbol dumper.
14554 OBJDUMP=$lt_OBJDUMP
14555
14556 # Method to check whether dependent libraries are shared objects.
14557 deplibs_check_method=$lt_deplibs_check_method
14558
14559 # Command to use when deplibs_check_method == "file_magic".
14560 file_magic_cmd=$lt_file_magic_cmd
14561
14562 # The archiver.
14563 AR=$lt_AR
14564 AR_FLAGS=$lt_AR_FLAGS
14565
14566 # A symbol stripping program.
14567 STRIP=$lt_STRIP
14568
14569 # Commands used to install an old-style archive.
14570 RANLIB=$lt_RANLIB
14571 old_postinstall_cmds=$lt_old_postinstall_cmds
14572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14573
14574 # Whether to use a lock for old archive extraction.
14575 lock_old_archive_extraction=$lock_old_archive_extraction
14576
14577 # A C compiler.
14578 LTCC=$lt_CC
14579
14580 # LTCC compiler flags.
14581 LTCFLAGS=$lt_CFLAGS
14582
14583 # Take the output of nm and produce a listing of raw symbols and C names.
14584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14585
14586 # Transform the output of nm in a proper C declaration.
14587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14588
14589 # Transform the output of nm in a C name address pair.
14590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14591
14592 # Transform the output of nm in a C name address pair when lib prefix is needed.
14593 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14594
14595 # The name of the directory that contains temporary libtool files.
14596 objdir=$objdir
14597
14598 # Used to examine libraries when file_magic_cmd begins with "file".
14599 MAGIC_CMD=$MAGIC_CMD
14600
14601 # Must we lock files when doing compilation?
14602 need_locks=$lt_need_locks
14603
14604 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14605 DSYMUTIL=$lt_DSYMUTIL
14606
14607 # Tool to change global to local symbols on Mac OS X.
14608 NMEDIT=$lt_NMEDIT
14609
14610 # Tool to manipulate fat objects and archives on Mac OS X.
14611 LIPO=$lt_LIPO
14612
14613 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14614 OTOOL=$lt_OTOOL
14615
14616 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14617 OTOOL64=$lt_OTOOL64
14618
14619 # Old archive suffix (normally "a").
14620 libext=$libext
14621
14622 # Shared library suffix (normally ".so").
14623 shrext_cmds=$lt_shrext_cmds
14624
14625 # The commands to extract the exported symbol list from a shared archive.
14626 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14627
14628 # Variables whose values should be saved in libtool wrapper scripts and
14629 # restored at link time.
14630 variables_saved_for_relink=$lt_variables_saved_for_relink
14631
14632 # Do we need the "lib" prefix for modules?
14633 need_lib_prefix=$need_lib_prefix
14634
14635 # Do we need a version for libraries?
14636 need_version=$need_version
14637
14638 # Library versioning type.
14639 version_type=$version_type
14640
14641 # Shared library runtime path variable.
14642 runpath_var=$runpath_var
14643
14644 # Shared library path variable.
14645 shlibpath_var=$shlibpath_var
14646
14647 # Is shlibpath searched before the hard-coded library search path?
14648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14649
14650 # Format of library name prefix.
14651 libname_spec=$lt_libname_spec
14652
14653 # List of archive names. First name is the real one, the rest are links.
14654 # The last name is the one that the linker finds with -lNAME
14655 library_names_spec=$lt_library_names_spec
14656
14657 # The coded name of the library, if different from the real name.
14658 soname_spec=$lt_soname_spec
14659
14660 # Permission mode override for installation of shared libraries.
14661 install_override_mode=$lt_install_override_mode
14662
14663 # Command to use after installation of a shared archive.
14664 postinstall_cmds=$lt_postinstall_cmds
14665
14666 # Command to use after uninstallation of a shared archive.
14667 postuninstall_cmds=$lt_postuninstall_cmds
14668
14669 # Commands used to finish a libtool library installation in a directory.
14670 finish_cmds=$lt_finish_cmds
14671
14672 # As "finish_cmds", except a single script fragment to be evaled but
14673 # not shown.
14674 finish_eval=$lt_finish_eval
14675
14676 # Whether we should hardcode library paths into libraries.
14677 hardcode_into_libs=$hardcode_into_libs
14678
14679 # Compile-time system search path for libraries.
14680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14681
14682 # Run-time system search path for libraries.
14683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14684
14685 # Whether dlopen is supported.
14686 dlopen_support=$enable_dlopen
14687
14688 # Whether dlopen of programs is supported.
14689 dlopen_self=$enable_dlopen_self
14690
14691 # Whether dlopen of statically linked programs is supported.
14692 dlopen_self_static=$enable_dlopen_self_static
14693
14694 # Commands to strip libraries.
14695 old_striplib=$lt_old_striplib
14696 striplib=$lt_striplib
14697
14698
14699 # The linker used to build libraries.
14700 LD=$lt_LD
14701
14702 # How to create reloadable object files.
14703 reload_flag=$lt_reload_flag
14704 reload_cmds=$lt_reload_cmds
14705
14706 # Commands used to build an old-style archive.
14707 old_archive_cmds=$lt_old_archive_cmds
14708
14709 # A language specific compiler.
14710 CC=$lt_compiler
14711
14712 # Is the compiler the GNU compiler?
14713 with_gcc=$GCC
14714
14715 # Compiler flag to turn off builtin functions.
14716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14717
14718 # How to pass a linker flag through the compiler.
14719 wl=$lt_lt_prog_compiler_wl
14720
14721 # Additional compiler flags for building library objects.
14722 pic_flag=$lt_lt_prog_compiler_pic
14723
14724 # Compiler flag to prevent dynamic linking.
14725 link_static_flag=$lt_lt_prog_compiler_static
14726
14727 # Does compiler simultaneously support -c and -o options?
14728 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14729
14730 # Whether or not to add -lc for building shared libraries.
14731 build_libtool_need_lc=$archive_cmds_need_lc
14732
14733 # Whether or not to disallow shared libs when runtime libs are static.
14734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14735
14736 # Compiler flag to allow reflexive dlopens.
14737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14738
14739 # Compiler flag to generate shared objects directly from archives.
14740 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14741
14742 # Whether the compiler copes with passing no objects directly.
14743 compiler_needs_object=$lt_compiler_needs_object
14744
14745 # Create an old-style archive from a shared archive.
14746 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14747
14748 # Create a temporary old-style archive to link instead of a shared archive.
14749 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14750
14751 # Commands used to build a shared archive.
14752 archive_cmds=$lt_archive_cmds
14753 archive_expsym_cmds=$lt_archive_expsym_cmds
14754
14755 # Commands used to build a loadable module if different from building
14756 # a shared archive.
14757 module_cmds=$lt_module_cmds
14758 module_expsym_cmds=$lt_module_expsym_cmds
14759
14760 # Whether we are building with GNU ld or not.
14761 with_gnu_ld=$lt_with_gnu_ld
14762
14763 # Flag that allows shared libraries with undefined symbols to be built.
14764 allow_undefined_flag=$lt_allow_undefined_flag
14765
14766 # Flag that enforces no undefined symbols.
14767 no_undefined_flag=$lt_no_undefined_flag
14768
14769 # Flag to hardcode \$libdir into a binary during linking.
14770 # This must work even if \$libdir does not exist
14771 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14772
14773 # If ld is used when linking, flag to hardcode \$libdir into a binary
14774 # during linking. This must work even if \$libdir does not exist.
14775 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14776
14777 # Whether we need a single "-rpath" flag with a separated argument.
14778 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14779
14780 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14781 # DIR into the resulting binary.
14782 hardcode_direct=$hardcode_direct
14783
14784 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14785 # DIR into the resulting binary and the resulting library dependency is
14786 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14787 # library is relocated.
14788 hardcode_direct_absolute=$hardcode_direct_absolute
14789
14790 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14791 # into the resulting binary.
14792 hardcode_minus_L=$hardcode_minus_L
14793
14794 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14795 # into the resulting binary.
14796 hardcode_shlibpath_var=$hardcode_shlibpath_var
14797
14798 # Set to "yes" if building a shared library automatically hardcodes DIR
14799 # into the library and all subsequent libraries and executables linked
14800 # against it.
14801 hardcode_automatic=$hardcode_automatic
14802
14803 # Set to yes if linker adds runtime paths of dependent libraries
14804 # to runtime path list.
14805 inherit_rpath=$inherit_rpath
14806
14807 # Whether libtool must link a program against all its dependency libraries.
14808 link_all_deplibs=$link_all_deplibs
14809
14810 # Fix the shell variable \$srcfile for the compiler.
14811 fix_srcfile_path=$lt_fix_srcfile_path
14812
14813 # Set to "yes" if exported symbols are required.
14814 always_export_symbols=$always_export_symbols
14815
14816 # The commands to list exported symbols.
14817 export_symbols_cmds=$lt_export_symbols_cmds
14818
14819 # Symbols that should not be listed in the preloaded symbols.
14820 exclude_expsyms=$lt_exclude_expsyms
14821
14822 # Symbols that must always be exported.
14823 include_expsyms=$lt_include_expsyms
14824
14825 # Commands necessary for linking programs (against libraries) with templates.
14826 prelink_cmds=$lt_prelink_cmds
14827
14828 # Specify filename containing input files.
14829 file_list_spec=$lt_file_list_spec
14830
14831 # How to hardcode a shared library path into an executable.
14832 hardcode_action=$hardcode_action
14833
14834 # ### END LIBTOOL CONFIG
14835
14836 _LT_EOF
14837
14838 case $host_os in
14839 aix3*)
14840 cat <<\_LT_EOF >> "$cfgfile"
14841 # AIX sometimes has problems with the GCC collect2 program. For some
14842 # reason, if we set the COLLECT_NAMES environment variable, the problems
14843 # vanish in a puff of smoke.
14844 if test "X${COLLECT_NAMES+set}" != Xset; then
14845 COLLECT_NAMES=
14846 export COLLECT_NAMES
14847 fi
14848 _LT_EOF
14849 ;;
14850 esac
14851
14852
14853 ltmain="$ac_aux_dir/ltmain.sh"
14854
14855
14856 # We use sed instead of cat because bash on DJGPP gets confused if
14857 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14858 # text mode, it properly converts lines to CR/LF. This bash problem
14859 # is reportedly fixed, but why not run on old versions too?
14860 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14861 || (rm -f "$cfgfile"; exit 1)
14862
14863 case $xsi_shell in
14864 yes)
14865 cat << \_LT_EOF >> "$cfgfile"
14866
14867 # func_dirname file append nondir_replacement
14868 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14869 # otherwise set result to NONDIR_REPLACEMENT.
14870 func_dirname ()
14871 {
14872 case ${1} in
14873 */*) func_dirname_result="${1%/*}${2}" ;;
14874 * ) func_dirname_result="${3}" ;;
14875 esac
14876 }
14877
14878 # func_basename file
14879 func_basename ()
14880 {
14881 func_basename_result="${1##*/}"
14882 }
14883
14884 # func_dirname_and_basename file append nondir_replacement
14885 # perform func_basename and func_dirname in a single function
14886 # call:
14887 # dirname: Compute the dirname of FILE. If nonempty,
14888 # add APPEND to the result, otherwise set result
14889 # to NONDIR_REPLACEMENT.
14890 # value returned in "$func_dirname_result"
14891 # basename: Compute filename of FILE.
14892 # value retuned in "$func_basename_result"
14893 # Implementation must be kept synchronized with func_dirname
14894 # and func_basename. For efficiency, we do not delegate to
14895 # those functions but instead duplicate the functionality here.
14896 func_dirname_and_basename ()
14897 {
14898 case ${1} in
14899 */*) func_dirname_result="${1%/*}${2}" ;;
14900 * ) func_dirname_result="${3}" ;;
14901 esac
14902 func_basename_result="${1##*/}"
14903 }
14904
14905 # func_stripname prefix suffix name
14906 # strip PREFIX and SUFFIX off of NAME.
14907 # PREFIX and SUFFIX must not contain globbing or regex special
14908 # characters, hashes, percent signs, but SUFFIX may contain a leading
14909 # dot (in which case that matches only a dot).
14910 func_stripname ()
14911 {
14912 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14913 # positional parameters, so assign one to ordinary parameter first.
14914 func_stripname_result=${3}
14915 func_stripname_result=${func_stripname_result#"${1}"}
14916 func_stripname_result=${func_stripname_result%"${2}"}
14917 }
14918
14919 # func_opt_split
14920 func_opt_split ()
14921 {
14922 func_opt_split_opt=${1%%=*}
14923 func_opt_split_arg=${1#*=}
14924 }
14925
14926 # func_lo2o object
14927 func_lo2o ()
14928 {
14929 case ${1} in
14930 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14931 *) func_lo2o_result=${1} ;;
14932 esac
14933 }
14934
14935 # func_xform libobj-or-source
14936 func_xform ()
14937 {
14938 func_xform_result=${1%.*}.lo
14939 }
14940
14941 # func_arith arithmetic-term...
14942 func_arith ()
14943 {
14944 func_arith_result=$(( $* ))
14945 }
14946
14947 # func_len string
14948 # STRING may not start with a hyphen.
14949 func_len ()
14950 {
14951 func_len_result=${#1}
14952 }
14953
14954 _LT_EOF
14955 ;;
14956 *) # Bourne compatible functions.
14957 cat << \_LT_EOF >> "$cfgfile"
14958
14959 # func_dirname file append nondir_replacement
14960 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14961 # otherwise set result to NONDIR_REPLACEMENT.
14962 func_dirname ()
14963 {
14964 # Extract subdirectory from the argument.
14965 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14966 if test "X$func_dirname_result" = "X${1}"; then
14967 func_dirname_result="${3}"
14968 else
14969 func_dirname_result="$func_dirname_result${2}"
14970 fi
14971 }
14972
14973 # func_basename file
14974 func_basename ()
14975 {
14976 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14977 }
14978
14979
14980 # func_stripname prefix suffix name
14981 # strip PREFIX and SUFFIX off of NAME.
14982 # PREFIX and SUFFIX must not contain globbing or regex special
14983 # characters, hashes, percent signs, but SUFFIX may contain a leading
14984 # dot (in which case that matches only a dot).
14985 # func_strip_suffix prefix name
14986 func_stripname ()
14987 {
14988 case ${2} in
14989 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14990 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14991 esac
14992 }
14993
14994 # sed scripts:
14995 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14996 my_sed_long_arg='1s/^-[^=]*=//'
14997
14998 # func_opt_split
14999 func_opt_split ()
15000 {
15001 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15002 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15003 }
15004
15005 # func_lo2o object
15006 func_lo2o ()
15007 {
15008 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15009 }
15010
15011 # func_xform libobj-or-source
15012 func_xform ()
15013 {
15014 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15015 }
15016
15017 # func_arith arithmetic-term...
15018 func_arith ()
15019 {
15020 func_arith_result=`expr "$@"`
15021 }
15022
15023 # func_len string
15024 # STRING may not start with a hyphen.
15025 func_len ()
15026 {
15027 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15028 }
15029
15030 _LT_EOF
15031 esac
15032
15033 case $lt_shell_append in
15034 yes)
15035 cat << \_LT_EOF >> "$cfgfile"
15036
15037 # func_append var value
15038 # Append VALUE to the end of shell variable VAR.
15039 func_append ()
15040 {
15041 eval "$1+=\$2"
15042 }
15043 _LT_EOF
15044 ;;
15045 *)
15046 cat << \_LT_EOF >> "$cfgfile"
15047
15048 # func_append var value
15049 # Append VALUE to the end of shell variable VAR.
15050 func_append ()
15051 {
15052 eval "$1=\$$1\$2"
15053 }
15054
15055 _LT_EOF
15056 ;;
15057 esac
15058
15059
15060 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15061 || (rm -f "$cfgfile"; exit 1)
15062
15063 mv -f "$cfgfile" "$ofile" ||
15064 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15065 chmod +x "$ofile"
15066
15067 ;;
15068
15069 esac
15070 done # for ac_tag
15071
15072
15073 as_fn_exit 0
15074 _ACEOF
15075 ac_clean_files=$ac_clean_files_save
15076
15077 test $ac_write_fail = 0 ||
15078 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15079
15080
15081 # configure is writing to config.log, and then calls config.status.
15082 # config.status does its own redirection, appending to config.log.
15083 # Unfortunately, on DOS this fails, as config.log is still kept open
15084 # by configure, so config.status won't be able to write to it; its
15085 # output is simply discarded. So we exec the FD to /dev/null,
15086 # effectively closing config.log, so it can be properly (re)opened and
15087 # appended to by config.status. When coming back to configure, we
15088 # need to make the FD available again.
15089 if test "$no_create" != yes; then
15090 ac_cs_success=:
15091 ac_config_status_args=
15092 test "$silent" = yes &&
15093 ac_config_status_args="$ac_config_status_args --quiet"
15094 exec 5>/dev/null
15095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15096 exec 5>>config.log
15097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15098 # would make configure fail if this is the last instruction.
15099 $ac_cs_success || as_fn_exit 1
15100 fi
15101 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15103 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15104 fi
15105
15106