tizen 2.3.1 release
[framework/graphics/freetype.git] / builds / unix / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for FreeType 2.5.4.
4 #
5 # Report bugs to <freetype@nongnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: freetype@nongnu.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='FreeType'
592 PACKAGE_TARNAME='freetype'
593 PACKAGE_VERSION='2.5.4'
594 PACKAGE_STRING='FreeType 2.5.4'
595 PACKAGE_BUGREPORT='freetype@nongnu.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="ftconfig.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_subst_vars='LTLIBOBJS
637 LIBOBJS
638 build_libtool_libs
639 wl
640 hardcode_libdir_flag_spec
641 LIBSSTATIC_CONFIG
642 LIBS_PRIVATE
643 REQUIRES_PRIVATE
644 ftmac_c
645 HARFBUZZ_LIBS
646 HARFBUZZ_CFLAGS
647 LIBPNG_LIBS
648 LIBPNG_CFLAGS
649 BZIP2_LIBS
650 BZIP2_CFLAGS
651 ZLIB_LIBS
652 ZLIB_CFLAGS
653 XX_ANSIFLAGS
654 XX_CFLAGS
655 FTSYS_SRC
656 INSTALL_DATA
657 INSTALL_SCRIPT
658 INSTALL_PROGRAM
659 RMDIR
660 EXEEXT_BUILD
661 CC_BUILD
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 AWK
669 RANLIB
670 STRIP
671 ac_ct_AR
672 AR
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 LIBTOOL
683 OBJDUMP
684 DLLTOOL
685 AS
686 PKG_CONFIG_LIBDIR
687 PKG_CONFIG_PATH
688 PKG_CONFIG
689 CPP
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 ft_version
706 version_info
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_URL
738 PACKAGE_BUGREPORT
739 PACKAGE_STRING
740 PACKAGE_VERSION
741 PACKAGE_TARNAME
742 PACKAGE_NAME
743 PATH_SEPARATOR
744 SHELL'
745 ac_subst_files=''
746 ac_user_opts='
747 enable_option_checking
748 enable_shared
749 enable_static
750 with_pic
751 enable_fast_install
752 with_gnu_ld
753 with_sysroot
754 enable_libtool_lock
755 enable_biarch_config
756 enable_mmap
757 with_zlib
758 with_bzip2
759 with_png
760 with_harfbuzz
761 with_old_mac_fonts
762 with_fsspec
763 with_fsref
764 with_quickdraw_toolbox
765 with_quickdraw_carbon
766 with_ats
767 '
768       ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP
777 PKG_CONFIG
778 PKG_CONFIG_PATH
779 PKG_CONFIG_LIBDIR
780 ZLIB_CFLAGS
781 ZLIB_LIBS
782 BZIP2_CFLAGS
783 BZIP2_LIBS
784 LIBPNG_CFLAGS
785 LIBPNG_LIBS
786 HARFBUZZ_CFLAGS
787 HARFBUZZ_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   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259   as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$as_myself" : 'X\(//\)[^/]' \| \
1269          X"$as_myself" : 'X\(//\)$' \| \
1270          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303         pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306   srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_env_${ac_var}_value=\$${ac_var}
1317   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325   # Omit some internal or obsolete options to make the list less imposing.
1326   # This message is too long to be a string in the A/UX 3.1 sh.
1327   cat <<_ACEOF
1328 \`configure' configures FreeType 2.5.4 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE.  See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338   -h, --help              display this help and exit
1339       --help=short        display options specific to this package
1340       --help=recursive    display the short help of all the included packages
1341   -V, --version           display version information and exit
1342   -q, --quiet, --silent   do not print \`checking ...' messages
1343       --cache-file=FILE   cache test results in FILE [disabled]
1344   -C, --config-cache      alias for \`--cache-file=config.cache'
1345   -n, --no-create         do not create output files
1346       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349   --prefix=PREFIX         install architecture-independent files in PREFIX
1350                           [$ac_default_prefix]
1351   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1352                           [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362   --bindir=DIR            user executables [EPREFIX/bin]
1363   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1364   --libexecdir=DIR        program executables [EPREFIX/libexec]
1365   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1366   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1367   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1368   --libdir=DIR            object code libraries [EPREFIX/lib]
1369   --includedir=DIR        C header files [PREFIX/include]
1370   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1371   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1372   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1373   --infodir=DIR           info documentation [DATAROOTDIR/info]
1374   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1375   --mandir=DIR            man documentation [DATAROOTDIR/man]
1376   --docdir=DIR            documentation root [DATAROOTDIR/doc/freetype]
1377   --htmldir=DIR           html documentation [DOCDIR]
1378   --dvidir=DIR            dvi documentation [DOCDIR]
1379   --pdfdir=DIR            pdf documentation [DOCDIR]
1380   --psdir=DIR             ps documentation [DOCDIR]
1381 _ACEOF
1382
1383   cat <<\_ACEOF
1384
1385 System types:
1386   --build=BUILD     configure for building on BUILD [guessed]
1387   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392   case $ac_init_help in
1393      short | recursive ) echo "Configuration of FreeType 2.5.4:";;
1394    esac
1395   cat <<\_ACEOF
1396
1397 Optional Features:
1398   --disable-option-checking  ignore unrecognized --enable/--with options
1399   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401   --enable-shared[=PKGS]  build shared libraries [default=yes]
1402   --enable-static[=PKGS]  build static libraries [default=yes]
1403   --enable-fast-install[=PKGS]
1404                           optimize for fast installation [default=yes]
1405   --disable-libtool-lock  avoid locking (might break parallel builds)
1406   --enable-biarch-config  install biarch ftconfig.h to support multiple
1407                           architectures by single file
1408   --disable-mmap          do not check mmap() and do not use
1409
1410 Optional Packages:
1411   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1414                           both]
1415   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1416   --with-sysroot=DIR Search for dependent libraries within DIR
1417                         (or the compiler's sysroot if not specified).
1418   --with-zlib=[yes|no|auto]
1419                           use system zlib instead of internal library
1420                           [default=auto]
1421   --with-bzip2=[yes|no|auto]
1422                           support bzip2 compressed fonts [default=auto]
1423   --with-png=[yes|no|auto]
1424                           support png compressed OpenType embedded bitmaps
1425                           [default=auto]
1426   --with-harfbuzz=[yes|no|auto]
1427                           improve auto-hinting of OpenType fonts
1428                           [default=auto]
1429   --with-old-mac-fonts    allow Mac resource-based fonts to be used
1430   --with-fsspec           use obsolete FSSpec API of MacOS, if available
1431                           (default=yes)
1432   --with-fsref            use Carbon FSRef API of MacOS, if available
1433                           (default=yes)
1434   --with-quickdraw-toolbox
1435                           use MacOS QuickDraw in ToolBox, if available
1436                           (default=yes)
1437   --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1438                           (default=yes)
1439   --with-ats              use AppleTypeService, if available (default=yes)
1440
1441 Some influential environment variables:
1442   CC          C compiler command
1443   CFLAGS      C compiler flags
1444   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1445               nonstandard directory <lib dir>
1446   LIBS        libraries to pass to the linker, e.g. -l<library>
1447   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448               you have headers in a nonstandard directory <include dir>
1449   CPP         C preprocessor
1450   PKG_CONFIG  path to pkg-config utility
1451   PKG_CONFIG_PATH
1452               directories to add to pkg-config's search path
1453   PKG_CONFIG_LIBDIR
1454               path overriding pkg-config's built-in search path
1455   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1456   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1457   BZIP2_CFLAGS
1458               C compiler flags for BZIP2, overriding pkg-config
1459   BZIP2_LIBS  linker flags for BZIP2, overriding pkg-config
1460   LIBPNG_CFLAGS
1461               C compiler flags for LIBPNG, overriding pkg-config
1462   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1463   HARFBUZZ_CFLAGS
1464               C compiler flags for HARFBUZZ, overriding pkg-config
1465   HARFBUZZ_LIBS
1466               linker flags for HARFBUZZ, overriding pkg-config
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <freetype@nongnu.org>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477   # If there are subdirs, report their specific --help.
1478   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479     test -d "$ac_dir" ||
1480       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481       continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 FreeType configure 2.5.4
1535 generated by GNU Autoconf 2.69
1536
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541   exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext
1555   if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_compile") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_c_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest.$ac_objext; then :
1574   ac_retval=0
1575 else
1576   $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579         ac_retval=1
1580 fi
1581   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582   as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_cpp ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 case "(($ac_try" in
1594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595   *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600   ac_status=$?
1601   if test -s conftest.err; then
1602     grep -v '^ *+' conftest.err >conftest.er1
1603     cat conftest.er1 >&5
1604     mv -f conftest.er1 conftest.err
1605   fi
1606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607   test $ac_status = 0; } > conftest.i && {
1608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609          test ! -s conftest.err
1610        }; then :
1611   ac_retval=0
1612 else
1613   $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616     ac_retval=1
1617 fi
1618   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619   as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_cpp
1622
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_link ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   rm -f conftest.$ac_objext conftest$ac_exeext
1630   if { { ac_try="$ac_link"
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_link") 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; } && {
1646          test -z "$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        } && test -s conftest$ac_exeext && {
1649          test "$cross_compiling" = yes ||
1650          test -x conftest$ac_exeext
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657         ac_retval=1
1658 fi
1659   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661   # interfere with the next link command; also delete a directory that is
1662   # left behind by Apple's compiler.  We do this before executing the actions.
1663   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665   as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_link
1668
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1674 {
1675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679   $as_echo_n "(cached) " >&6
1680 else
1681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h.  */
1683 $4
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687   eval "$3=yes"
1688 else
1689   eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_try_run LINENO
1701 # ----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703 # that executables *can* be run.
1704 ac_fn_c_try_run ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   if { { ac_try="$ac_link"
1708 case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_link") 2>&5
1715   ac_status=$?
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718   { { case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_try") 2>&5
1725   ac_status=$?
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; }; }; then :
1728   ac_retval=0
1729 else
1730   $as_echo "$as_me: program exited with status $ac_status" >&5
1731        $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734        ac_retval=$ac_status
1735 fi
1736   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738   as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_run
1741
1742 # ac_fn_c_check_func LINENO FUNC VAR
1743 # ----------------------------------
1744 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1745 ac_fn_c_check_func ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751   $as_echo_n "(cached) " >&6
1752 else
1753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h.  */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1757 #define $2 innocuous_$2
1758
1759 /* System header to define __stub macros and hopefully few prototypes,
1760     which can conflict with char $2 (); below.
1761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762     <limits.h> exists even on freestanding compilers.  */
1763
1764 #ifdef __STDC__
1765 # include <limits.h>
1766 #else
1767 # include <assert.h>
1768 #endif
1769
1770 #undef $2
1771
1772 /* Override any GCC internal prototype to avoid an error.
1773    Use char because int might match the return type of a GCC
1774    builtin and then its argument prototype would still apply.  */
1775 #ifdef __cplusplus
1776 extern "C"
1777 #endif
1778 char $2 ();
1779 /* The GNU C library defines this for functions which it implements
1780     to always fail with ENOSYS.  Some functions are actually named
1781     something starting with __ and the normal name is an alias.  */
1782 #if defined __stub_$2 || defined __stub___$2
1783 choke me
1784 #endif
1785
1786 int
1787 main ()
1788 {
1789 return $2 ();
1790   ;
1791   return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_link "$LINENO"; then :
1795   eval "$3=yes"
1796 else
1797   eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext \
1800     conftest$ac_exeext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_func
1808
1809 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1812 # the include files in INCLUDES and setting the cache variable VAR
1813 # accordingly.
1814 ac_fn_c_check_header_mongrel ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   if eval \${$3+:} false; then :
1818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821   $as_echo_n "(cached) " >&6
1822 fi
1823 eval ac_res=\$$3
1824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 else
1827   # Is the header compilable?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1829 $as_echo_n "checking $2 usability... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h.  */
1832 $4
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836   ac_header_compiler=yes
1837 else
1838   ac_header_compiler=no
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1842 $as_echo "$ac_header_compiler" >&6; }
1843
1844 # Is the header present?
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1846 $as_echo_n "checking $2 presence... " >&6; }
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h.  */
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_cpp "$LINENO"; then :
1852   ac_header_preproc=yes
1853 else
1854   ac_header_preproc=no
1855 fi
1856 rm -f conftest.err conftest.i conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1858 $as_echo "$ac_header_preproc" >&6; }
1859
1860 # So?  What about this header?
1861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1862   yes:no: )
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1864 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867     ;;
1868   no:yes:* )
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1870 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1872 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1874 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1876 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 ( $as_echo "## ---------------------------------- ##
1880 ## Report this to freetype@nongnu.org ##
1881 ## ---------------------------------- ##"
1882      ) | sed "s/^/$as_me: WARNING:     /" >&2
1883     ;;
1884 esac
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   eval "$3=\$ac_header_compiler"
1891 fi
1892 eval ac_res=\$$3
1893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898 } # ac_fn_c_check_header_mongrel
1899
1900 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1901 # --------------------------------------------
1902 # Tries to find the compile-time value of EXPR in a program that includes
1903 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1904 # computed
1905 ac_fn_c_compute_int ()
1906 {
1907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908   if test "$cross_compiling" = yes; then
1909     # Depending upon the size, compute the lo and hi bounds.
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 $4
1913 int
1914 main ()
1915 {
1916 static int test_array [1 - 2 * !(($2) >= 0)];
1917 test_array [0] = 0;
1918 return test_array [0];
1919
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925   ac_lo=0 ac_mid=0
1926   while :; do
1927     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h.  */
1929 $4
1930 int
1931 main ()
1932 {
1933 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1934 test_array [0] = 0;
1935 return test_array [0];
1936
1937   ;
1938   return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942   ac_hi=$ac_mid; break
1943 else
1944   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1945                         if test $ac_lo -le $ac_mid; then
1946                           ac_lo= ac_hi=
1947                           break
1948                         fi
1949                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952   done
1953 else
1954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h.  */
1956 $4
1957 int
1958 main ()
1959 {
1960 static int test_array [1 - 2 * !(($2) < 0)];
1961 test_array [0] = 0;
1962 return test_array [0];
1963
1964   ;
1965   return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969   ac_hi=-1 ac_mid=-1
1970   while :; do
1971     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h.  */
1973 $4
1974 int
1975 main ()
1976 {
1977 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1978 test_array [0] = 0;
1979 return test_array [0];
1980
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986   ac_lo=$ac_mid; break
1987 else
1988   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1989                         if test $ac_mid -le $ac_hi; then
1990                           ac_lo= ac_hi=
1991                           break
1992                         fi
1993                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996   done
1997 else
1998   ac_lo= ac_hi=
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 # Binary search between lo and hi bounds.
2004 while test "x$ac_lo" != "x$ac_hi"; do
2005   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h.  */
2008 $4
2009 int
2010 main ()
2011 {
2012 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2013 test_array [0] = 0;
2014 return test_array [0];
2015
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021   ac_hi=$ac_mid
2022 else
2023   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 done
2027 case $ac_lo in #((
2028 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2029 '') ac_retval=1 ;;
2030 esac
2031   else
2032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h.  */
2034 $4
2035 static long int longval () { return $2; }
2036 static unsigned long int ulongval () { return $2; }
2037 #include <stdio.h>
2038 #include <stdlib.h>
2039 int
2040 main ()
2041 {
2042
2043   FILE *f = fopen ("conftest.val", "w");
2044   if (! f)
2045     return 1;
2046   if (($2) < 0)
2047     {
2048       long int i = longval ();
2049       if (i != ($2))
2050         return 1;
2051       fprintf (f, "%ld", i);
2052     }
2053   else
2054     {
2055       unsigned long int i = ulongval ();
2056       if (i != ($2))
2057         return 1;
2058       fprintf (f, "%lu", i);
2059     }
2060   /* Do not output a trailing newline, as this causes \r\n confusion
2061      on some platforms.  */
2062   return ferror (f) || fclose (f) != 0;
2063
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_run "$LINENO"; then :
2069   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2070 else
2071   ac_retval=1
2072 fi
2073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2074   conftest.$ac_objext conftest.beam conftest.$ac_ext
2075 rm -f conftest.val
2076
2077   fi
2078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079   as_fn_set_status $ac_retval
2080
2081 } # ac_fn_c_compute_int
2082
2083 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2084 # ---------------------------------------------
2085 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2086 # accordingly.
2087 ac_fn_c_check_decl ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   as_decl_name=`echo $2|sed 's/ *(.*//'`
2091   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2093 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2094 if eval \${$3+:} false; then :
2095   $as_echo_n "(cached) " >&6
2096 else
2097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h.  */
2099 $4
2100 int
2101 main ()
2102 {
2103 #ifndef $as_decl_name
2104 #ifdef __cplusplus
2105   (void) $as_decl_use;
2106 #else
2107   (void) $as_decl_name;
2108 #endif
2109 #endif
2110
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116   eval "$3=yes"
2117 else
2118   eval "$3=no"
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 fi
2122 eval ac_res=\$$3
2123                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126
2127 } # ac_fn_c_check_decl
2128 cat >config.log <<_ACEOF
2129 This file contains any messages produced by compilers while
2130 running configure, to aid debugging if configure makes a mistake.
2131
2132 It was created by FreeType $as_me 2.5.4, which was
2133 generated by GNU Autoconf 2.69.  Invocation command line was
2134
2135   $ $0 $@
2136
2137 _ACEOF
2138 exec 5>>config.log
2139 {
2140 cat <<_ASUNAME
2141 ## --------- ##
2142 ## Platform. ##
2143 ## --------- ##
2144
2145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2150
2151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2153
2154 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2155 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2158 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2159 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2160 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2161
2162 _ASUNAME
2163
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167   IFS=$as_save_IFS
2168   test -z "$as_dir" && as_dir=.
2169     $as_echo "PATH: $as_dir"
2170   done
2171 IFS=$as_save_IFS
2172
2173 } >&5
2174
2175 cat >&5 <<_ACEOF
2176
2177
2178 ## ----------- ##
2179 ## Core tests. ##
2180 ## ----------- ##
2181
2182 _ACEOF
2183
2184
2185 # Keep a trace of the command line.
2186 # Strip out --no-create and --no-recursion so they do not pile up.
2187 # Strip out --silent because we don't want to record it for future runs.
2188 # Also quote any args containing shell meta-characters.
2189 # Make two passes to allow for proper duplicate-argument suppression.
2190 ac_configure_args=
2191 ac_configure_args0=
2192 ac_configure_args1=
2193 ac_must_keep_next=false
2194 for ac_pass in 1 2
2195 do
2196   for ac_arg
2197   do
2198     case $ac_arg in
2199     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2200     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2201     | -silent | --silent | --silen | --sile | --sil)
2202       continue ;;
2203     *\'*)
2204       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2205     esac
2206     case $ac_pass in
2207     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2208     2)
2209       as_fn_append ac_configure_args1 " '$ac_arg'"
2210       if test $ac_must_keep_next = true; then
2211         ac_must_keep_next=false # Got value, back to normal.
2212       else
2213         case $ac_arg in
2214           *=* | --config-cache | -C | -disable-* | --disable-* \
2215           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2216           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2217           | -with-* | --with-* | -without-* | --without-* | --x)
2218             case "$ac_configure_args0 " in
2219               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2220             esac
2221             ;;
2222           -* ) ac_must_keep_next=true ;;
2223         esac
2224       fi
2225       as_fn_append ac_configure_args " '$ac_arg'"
2226       ;;
2227     esac
2228   done
2229 done
2230 { ac_configure_args0=; unset ac_configure_args0;}
2231 { ac_configure_args1=; unset ac_configure_args1;}
2232
2233 # When interrupted or exit'd, cleanup temporary files, and complete
2234 # config.log.  We remove comments because anyway the quotes in there
2235 # would cause problems or look ugly.
2236 # WARNING: Use '\'' to represent an apostrophe within the trap.
2237 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2238 trap 'exit_status=$?
2239   # Save into config.log some information that might help in debugging.
2240   {
2241     echo
2242
2243     $as_echo "## ---------------- ##
2244 ## Cache variables. ##
2245 ## ---------------- ##"
2246     echo
2247     # The following way of writing the cache mishandles newlines in values,
2248 (
2249   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2250     eval ac_val=\$$ac_var
2251     case $ac_val in #(
2252     *${as_nl}*)
2253       case $ac_var in #(
2254       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2255 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2256       esac
2257       case $ac_var in #(
2258       _ | IFS | as_nl) ;; #(
2259       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2260       *) { eval $ac_var=; unset $ac_var;} ;;
2261       esac ;;
2262     esac
2263   done
2264   (set) 2>&1 |
2265     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2266     *${as_nl}ac_space=\ *)
2267       sed -n \
2268         "s/'\''/'\''\\\\'\'''\''/g;
2269           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2270       ;; #(
2271     *)
2272       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2273       ;;
2274     esac |
2275     sort
2276 )
2277     echo
2278
2279     $as_echo "## ----------------- ##
2280 ## Output variables. ##
2281 ## ----------------- ##"
2282     echo
2283     for ac_var in $ac_subst_vars
2284     do
2285       eval ac_val=\$$ac_var
2286       case $ac_val in
2287       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288       esac
2289       $as_echo "$ac_var='\''$ac_val'\''"
2290     done | sort
2291     echo
2292
2293     if test -n "$ac_subst_files"; then
2294       $as_echo "## ------------------- ##
2295 ## File substitutions. ##
2296 ## ------------------- ##"
2297       echo
2298       for ac_var in $ac_subst_files
2299       do
2300         eval ac_val=\$$ac_var
2301         case $ac_val in
2302         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303         esac
2304         $as_echo "$ac_var='\''$ac_val'\''"
2305       done | sort
2306       echo
2307     fi
2308
2309     if test -s confdefs.h; then
2310       $as_echo "## ----------- ##
2311 ## confdefs.h. ##
2312 ## ----------- ##"
2313       echo
2314       cat confdefs.h
2315       echo
2316     fi
2317     test "$ac_signal" != 0 &&
2318       $as_echo "$as_me: caught signal $ac_signal"
2319     $as_echo "$as_me: exit $exit_status"
2320   } >&5
2321   rm -f core *.core core.conftest.* &&
2322     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2323     exit $exit_status
2324 ' 0
2325 for ac_signal in 1 2 13 15; do
2326   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2327 done
2328 ac_signal=0
2329
2330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2331 rm -f -r conftest* confdefs.h
2332
2333 $as_echo "/* confdefs.h */" > confdefs.h
2334
2335 # Predefined preprocessor variables.
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_NAME "$PACKAGE_NAME"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_STRING "$PACKAGE_STRING"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2355 _ACEOF
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_URL "$PACKAGE_URL"
2359 _ACEOF
2360
2361
2362 # Let the site file select an alternate cache file if it wants to.
2363 # Prefer an explicitly selected file to automatically selected ones.
2364 ac_site_file1=NONE
2365 ac_site_file2=NONE
2366 if test -n "$CONFIG_SITE"; then
2367   # We do not want a PATH search for config.site.
2368   case $CONFIG_SITE in #((
2369     -*)  ac_site_file1=./$CONFIG_SITE;;
2370     */*) ac_site_file1=$CONFIG_SITE;;
2371     *)   ac_site_file1=./$CONFIG_SITE;;
2372   esac
2373 elif test "x$prefix" != xNONE; then
2374   ac_site_file1=$prefix/share/config.site
2375   ac_site_file2=$prefix/etc/config.site
2376 else
2377   ac_site_file1=$ac_default_prefix/share/config.site
2378   ac_site_file2=$ac_default_prefix/etc/config.site
2379 fi
2380 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2381 do
2382   test "x$ac_site_file" = xNONE && continue
2383   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2384     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2385 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2386     sed 's/^/| /' "$ac_site_file" >&5
2387     . "$ac_site_file" \
2388       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 as_fn_error $? "failed to load site script $ac_site_file
2391 See \`config.log' for more details" "$LINENO" 5; }
2392   fi
2393 done
2394
2395 if test -r "$cache_file"; then
2396   # Some versions of bash will fail to source /dev/null (special files
2397   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2398   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2400 $as_echo "$as_me: loading cache $cache_file" >&6;}
2401     case $cache_file in
2402       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2403       *)                      . "./$cache_file";;
2404     esac
2405   fi
2406 else
2407   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2408 $as_echo "$as_me: creating cache $cache_file" >&6;}
2409   >$cache_file
2410 fi
2411
2412 as_fn_append ac_header_list " stdlib.h"
2413 as_fn_append ac_header_list " unistd.h"
2414 as_fn_append ac_header_list " sys/param.h"
2415 # Check that the precious variables saved in the cache have kept the same
2416 # value.
2417 ac_cache_corrupted=false
2418 for ac_var in $ac_precious_vars; do
2419   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2420   eval ac_new_set=\$ac_env_${ac_var}_set
2421   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2422   eval ac_new_val=\$ac_env_${ac_var}_value
2423   case $ac_old_set,$ac_new_set in
2424     set,)
2425       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2426 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2427       ac_cache_corrupted=: ;;
2428     ,set)
2429       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2431       ac_cache_corrupted=: ;;
2432     ,);;
2433     *)
2434       if test "x$ac_old_val" != "x$ac_new_val"; then
2435         # differences in whitespace do not lead to failure.
2436         ac_old_val_w=`echo x $ac_old_val`
2437         ac_new_val_w=`echo x $ac_new_val`
2438         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2439           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2440 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2441           ac_cache_corrupted=:
2442         else
2443           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2444 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2445           eval $ac_var=\$ac_old_val
2446         fi
2447         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2448 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2449         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2450 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2451       fi;;
2452   esac
2453   # Pass precious variables to config.status.
2454   if test "$ac_new_set" = set; then
2455     case $ac_new_val in
2456     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2457     *) ac_arg=$ac_var=$ac_new_val ;;
2458     esac
2459     case " $ac_configure_args " in
2460       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2461       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2462     esac
2463   fi
2464 done
2465 if $ac_cache_corrupted; then
2466   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2469 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2470   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2471 fi
2472 ## -------------------- ##
2473 ## Main body of script. ##
2474 ## -------------------- ##
2475
2476 ac_ext=c
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481
2482
2483
2484
2485
2486 # Don't forget to update docs/VERSION.DLL!
2487
2488 version_info='17:3:11'
2489
2490 ft_version=`echo $version_info | tr : .`
2491
2492
2493
2494 # checks for system type
2495
2496 ac_aux_dir=
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498   if test -f "$ac_dir/install-sh"; then
2499     ac_aux_dir=$ac_dir
2500     ac_install_sh="$ac_aux_dir/install-sh -c"
2501     break
2502   elif test -f "$ac_dir/install.sh"; then
2503     ac_aux_dir=$ac_dir
2504     ac_install_sh="$ac_aux_dir/install.sh -c"
2505     break
2506   elif test -f "$ac_dir/shtool"; then
2507     ac_aux_dir=$ac_dir
2508     ac_install_sh="$ac_aux_dir/shtool install -c"
2509     break
2510   fi
2511 done
2512 if test -z "$ac_aux_dir"; then
2513   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2514 fi
2515
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2521 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2522 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2523
2524
2525 # Make sure we can run config.sub.
2526 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2527   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2528
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530 $as_echo_n "checking build system type... " >&6; }
2531 if ${ac_cv_build+:} false; then :
2532   $as_echo_n "(cached) " >&6
2533 else
2534   ac_build_alias=$build_alias
2535 test "x$ac_build_alias" = x &&
2536   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2537 test "x$ac_build_alias" = x &&
2538   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2539 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2540   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2541
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544 $as_echo "$ac_cv_build" >&6; }
2545 case $ac_cv_build in
2546 *-*-*) ;;
2547 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2548 esac
2549 build=$ac_cv_build
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_build
2552 shift
2553 build_cpu=$1
2554 build_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 build_os=$*
2559 IFS=$ac_save_IFS
2560 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2561
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564 $as_echo_n "checking host system type... " >&6; }
2565 if ${ac_cv_host+:} false; then :
2566   $as_echo_n "(cached) " >&6
2567 else
2568   if test "x$host_alias" = x; then
2569   ac_cv_host=$ac_cv_build
2570 else
2571   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2572     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2573 fi
2574
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577 $as_echo "$ac_cv_host" >&6; }
2578 case $ac_cv_host in
2579 *-*-*) ;;
2580 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2581 esac
2582 host=$ac_cv_host
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_host
2585 shift
2586 host_cpu=$1
2587 host_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 host_os=$*
2592 IFS=$ac_save_IFS
2593 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2594
2595
2596
2597
2598 # checks for programs
2599
2600 ac_ext=c
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 if test -n "$ac_tool_prefix"; then
2606   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_CC+:} false; then :
2611   $as_echo_n "(cached) " >&6
2612 else
2613   if test -n "$CC"; then
2614   ac_cv_prog_CC="$CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619   IFS=$as_save_IFS
2620   test -z "$as_dir" && as_dir=.
2621     for ac_exec_ext in '' $ac_executable_extensions; do
2622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625     break 2
2626   fi
2627 done
2628   done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 CC=$ac_cv_prog_CC
2634 if test -n "$CC"; then
2635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636 $as_echo "$CC" >&6; }
2637 else
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642
2643 fi
2644 if test -z "$ac_cv_prog_CC"; then
2645   ac_ct_CC=$CC
2646   # Extract the first word of "gcc", so it can be a program name with args.
2647 set dummy gcc; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2651   $as_echo_n "(cached) " >&6
2652 else
2653   if test -n "$ac_ct_CC"; then
2654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661     for ac_exec_ext in '' $ac_executable_extensions; do
2662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663     ac_cv_prog_ac_ct_CC="gcc"
2664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668   done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2676 $as_echo "$ac_ct_CC" >&6; }
2677 else
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682   if test "x$ac_ct_CC" = x; then
2683     CC=""
2684   else
2685     case $cross_compiling:$ac_tool_warned in
2686 yes:)
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691     CC=$ac_ct_CC
2692   fi
2693 else
2694   CC="$ac_cv_prog_CC"
2695 fi
2696
2697 if test -z "$CC"; then
2698           if test -n "$ac_tool_prefix"; then
2699     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}cc; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_CC+:} false; then :
2704   $as_echo_n "(cached) " >&6
2705 else
2706   if test -n "$CC"; then
2707   ac_cv_prog_CC="$CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712   IFS=$as_save_IFS
2713   test -z "$as_dir" && as_dir=.
2714     for ac_exec_ext in '' $ac_executable_extensions; do
2715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716     ac_cv_prog_CC="${ac_tool_prefix}cc"
2717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718     break 2
2719   fi
2720 done
2721   done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729 $as_echo "$CC" >&6; }
2730 else
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735
2736   fi
2737 fi
2738 if test -z "$CC"; then
2739   # Extract the first word of "cc", so it can be a program name with args.
2740 set dummy cc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_CC+:} false; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   if test -n "$CC"; then
2747   ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749   ac_prog_rejected=no
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753   IFS=$as_save_IFS
2754   test -z "$as_dir" && as_dir=.
2755     for ac_exec_ext in '' $ac_executable_extensions; do
2756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2758        ac_prog_rejected=yes
2759        continue
2760      fi
2761     ac_cv_prog_CC="cc"
2762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763     break 2
2764   fi
2765 done
2766   done
2767 IFS=$as_save_IFS
2768
2769 if test $ac_prog_rejected = yes; then
2770   # We found a bogon in the path, so make sure we never use it.
2771   set dummy $ac_cv_prog_CC
2772   shift
2773   if test $# != 0; then
2774     # We chose a different compiler from the bogus one.
2775     # However, it has the same basename, so the bogon will be chosen
2776     # first if we set CC to just the basename; use the full file name.
2777     shift
2778     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2779   fi
2780 fi
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2787 else
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 fi
2794 if test -z "$CC"; then
2795   if test -n "$ac_tool_prefix"; then
2796   for ac_prog in cl.exe
2797   do
2798     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_CC+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   if test -n "$CC"; then
2806   ac_cv_prog_CC="$CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813     for ac_exec_ext in '' $ac_executable_extensions; do
2814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820   done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2828 $as_echo "$CC" >&6; }
2829 else
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835     test -n "$CC" && break
2836   done
2837 fi
2838 if test -z "$CC"; then
2839   ac_ct_CC=$CC
2840   for ac_prog in cl.exe
2841 do
2842   # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   if test -n "$ac_ct_CC"; then
2850   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857     for ac_exec_ext in '' $ac_executable_extensions; do
2858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859     ac_cv_prog_ac_ct_CC="$ac_prog"
2860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864   done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2872 $as_echo "$ac_ct_CC" >&6; }
2873 else
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879   test -n "$ac_ct_CC" && break
2880 done
2881
2882   if test "x$ac_ct_CC" = x; then
2883     CC=""
2884   else
2885     case $cross_compiling:$ac_tool_warned in
2886 yes:)
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2889 ac_tool_warned=yes ;;
2890 esac
2891     CC=$ac_ct_CC
2892   fi
2893 fi
2894
2895 fi
2896
2897
2898 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 as_fn_error $? "no acceptable C compiler found in \$PATH
2901 See \`config.log' for more details" "$LINENO" 5; }
2902
2903 # Provide some information about the compiler.
2904 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2905 set X $ac_compile
2906 ac_compiler=$2
2907 for ac_option in --version -v -V -qversion; do
2908   { { ac_try="$ac_compiler $ac_option >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2916   ac_status=$?
2917   if test -s conftest.err; then
2918     sed '10a\
2919 ... rest of stderr output deleted ...
2920          10q' conftest.err >conftest.er1
2921     cat conftest.er1 >&5
2922   fi
2923   rm -f conftest.er1 conftest.err
2924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925   test $ac_status = 0; }
2926 done
2927
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h.  */
2930
2931 int
2932 main ()
2933 {
2934
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 ac_clean_files_save=$ac_clean_files
2940 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2941 # Try to create an executable without -o first, disregard a.out.
2942 # It will help us diagnose broken compilers, and finding out an intuition
2943 # of exeext.
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2945 $as_echo_n "checking whether the C compiler works... " >&6; }
2946 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2947
2948 # The possible output files:
2949 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2950
2951 ac_rmfiles=
2952 for ac_file in $ac_files
2953 do
2954   case $ac_file in
2955     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2956     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2957   esac
2958 done
2959 rm -f $ac_rmfiles
2960
2961 if { { ac_try="$ac_link_default"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968   (eval "$ac_link_default") 2>&5
2969   ac_status=$?
2970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971   test $ac_status = 0; }; then :
2972   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2973 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2974 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2975 # so that the user can short-circuit this test for compilers unknown to
2976 # Autoconf.
2977 for ac_file in $ac_files ''
2978 do
2979   test -f "$ac_file" || continue
2980   case $ac_file in
2981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2982         ;;
2983     [ab].out )
2984         # We found the default executable, but exeext='' is most
2985         # certainly right.
2986         break;;
2987     *.* )
2988         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2989         then :; else
2990            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991         fi
2992         # We set ac_cv_exeext here because the later test for it is not
2993         # safe: cross compilers may not add the suffix if given an `-o'
2994         # argument, so we may need to know it at that point already.
2995         # Even if this section looks crufty: it has the advantage of
2996         # actually working.
2997         break;;
2998     * )
2999         break;;
3000   esac
3001 done
3002 test "$ac_cv_exeext" = no && ac_cv_exeext=
3003
3004 else
3005   ac_file=''
3006 fi
3007 if test -z "$ac_file"; then :
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 $as_echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error 77 "C compiler cannot create executables
3016 See \`config.log' for more details" "$LINENO" 5; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019 $as_echo "yes" >&6; }
3020 fi
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3022 $as_echo_n "checking for C compiler default output file name... " >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3024 $as_echo "$ac_file" >&6; }
3025 ac_exeext=$ac_cv_exeext
3026
3027 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3028 ac_clean_files=$ac_clean_files_save
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3030 $as_echo_n "checking for suffix of executables... " >&6; }
3031 if { { ac_try="$ac_link"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038   (eval "$ac_link") 2>&5
3039   ac_status=$?
3040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041   test $ac_status = 0; }; then :
3042   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3043 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3044 # work properly (i.e., refer to `conftest.exe'), while it won't with
3045 # `rm'.
3046 for ac_file in conftest.exe conftest conftest.*; do
3047   test -f "$ac_file" || continue
3048   case $ac_file in
3049     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3050     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3051           break;;
3052     * ) break;;
3053   esac
3054 done
3055 else
3056   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3059 See \`config.log' for more details" "$LINENO" 5; }
3060 fi
3061 rm -f conftest conftest$ac_cv_exeext
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3063 $as_echo "$ac_cv_exeext" >&6; }
3064
3065 rm -f conftest.$ac_ext
3066 EXEEXT=$ac_cv_exeext
3067 ac_exeext=$EXEEXT
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h.  */
3070 #include <stdio.h>
3071 int
3072 main ()
3073 {
3074 FILE *f = fopen ("conftest.out", "w");
3075  return ferror (f) || fclose (f) != 0;
3076
3077   ;
3078   return 0;
3079 }
3080 _ACEOF
3081 ac_clean_files="$ac_clean_files conftest.out"
3082 # Check that the compiler produces executables we can run.  If not, either
3083 # the compiler is broken, or we cross compile.
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3085 $as_echo_n "checking whether we are cross compiling... " >&6; }
3086 if test "$cross_compiling" != yes; then
3087   { { ac_try="$ac_link"
3088 case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094   (eval "$ac_link") 2>&5
3095   ac_status=$?
3096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097   test $ac_status = 0; }
3098   if { ac_try='./conftest$ac_cv_exeext'
3099   { { case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108   test $ac_status = 0; }; }; then
3109     cross_compiling=no
3110   else
3111     if test "$cross_compiling" = maybe; then
3112         cross_compiling=yes
3113     else
3114         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error $? "cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details" "$LINENO" 5; }
3119     fi
3120   fi
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3123 $as_echo "$cross_compiling" >&6; }
3124
3125 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3126 ac_clean_files=$ac_clean_files_save
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3128 $as_echo_n "checking for suffix of object files... " >&6; }
3129 if ${ac_cv_objext+:} false; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.o conftest.obj
3144 if { { ac_try="$ac_compile"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151   (eval "$ac_compile") 2>&5
3152   ac_status=$?
3153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154   test $ac_status = 0; }; then :
3155   for ac_file in conftest.o conftest.obj conftest.*; do
3156   test -f "$ac_file" || continue;
3157   case $ac_file in
3158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3159     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3160        break;;
3161   esac
3162 done
3163 else
3164   $as_echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error $? "cannot compute suffix of object files: cannot compile
3170 See \`config.log' for more details" "$LINENO" 5; }
3171 fi
3172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3175 $as_echo "$ac_cv_objext" >&6; }
3176 OBJEXT=$ac_cv_objext
3177 ac_objext=$OBJEXT
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3179 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3180 if ${ac_cv_c_compiler_gnu+:} false; then :
3181   $as_echo_n "(cached) " >&6
3182 else
3183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h.  */
3185
3186 int
3187 main ()
3188 {
3189 #ifndef __GNUC__
3190        choke me
3191 #endif
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 if ac_fn_c_try_compile "$LINENO"; then :
3198   ac_compiler_gnu=yes
3199 else
3200   ac_compiler_gnu=no
3201 fi
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3204
3205 fi
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3207 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3208 if test $ac_compiler_gnu = yes; then
3209   GCC=yes
3210 else
3211   GCC=
3212 fi
3213 ac_test_CFLAGS=${CFLAGS+set}
3214 ac_save_CFLAGS=$CFLAGS
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3216 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3217 if ${ac_cv_prog_cc_g+:} false; then :
3218   $as_echo_n "(cached) " >&6
3219 else
3220   ac_save_c_werror_flag=$ac_c_werror_flag
3221    ac_c_werror_flag=yes
3222    ac_cv_prog_cc_g=no
3223    CFLAGS="-g"
3224    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h.  */
3226
3227 int
3228 main ()
3229 {
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 if ac_fn_c_try_compile "$LINENO"; then :
3236   ac_cv_prog_cc_g=yes
3237 else
3238   CFLAGS=""
3239       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h.  */
3241
3242 int
3243 main ()
3244 {
3245
3246   ;
3247   return 0;
3248 }
3249 _ACEOF
3250 if ac_fn_c_try_compile "$LINENO"; then :
3251
3252 else
3253   ac_c_werror_flag=$ac_save_c_werror_flag
3254          CFLAGS="-g"
3255          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h.  */
3257
3258 int
3259 main ()
3260 {
3261
3262   ;
3263   return 0;
3264 }
3265 _ACEOF
3266 if ac_fn_c_try_compile "$LINENO"; then :
3267   ac_cv_prog_cc_g=yes
3268 fi
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 fi
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 fi
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274    ac_c_werror_flag=$ac_save_c_werror_flag
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3277 $as_echo "$ac_cv_prog_cc_g" >&6; }
3278 if test "$ac_test_CFLAGS" = set; then
3279   CFLAGS=$ac_save_CFLAGS
3280 elif test $ac_cv_prog_cc_g = yes; then
3281   if test "$GCC" = yes; then
3282     CFLAGS="-g -O2"
3283   else
3284     CFLAGS="-g"
3285   fi
3286 else
3287   if test "$GCC" = yes; then
3288     CFLAGS="-O2"
3289   else
3290     CFLAGS=
3291   fi
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3294 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3295 if ${ac_cv_prog_cc_c89+:} false; then :
3296   $as_echo_n "(cached) " >&6
3297 else
3298   ac_cv_prog_cc_c89=no
3299 ac_save_CC=$CC
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h.  */
3302 #include <stdarg.h>
3303 #include <stdio.h>
3304 struct stat;
3305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3306 struct buf { int x; };
3307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3308 static char *e (p, i)
3309      char **p;
3310      int i;
3311 {
3312   return p[i];
3313 }
3314 static char *f (char * (*g) (char **, int), char **p, ...)
3315 {
3316   char *s;
3317   va_list v;
3318   va_start (v,p);
3319   s = g (p, va_arg (v,int));
3320   va_end (v);
3321   return s;
3322 }
3323
3324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3325    function prototypes and stuff, but not '\xHH' hex character constants.
3326    These don't provoke an error unfortunately, instead are silently treated
3327    as 'x'.  The following induces an error, until -std is added to get
3328    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3329    array size at least.  It's necessary to write '\x00'==0 to get something
3330    that's true only with -std.  */
3331 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3332
3333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3334    inside strings and character constants.  */
3335 #define FOO(x) 'x'
3336 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3337
3338 int test (int i, double x);
3339 struct s1 {int (*f) (int a);};
3340 struct s2 {int (*f) (double a);};
3341 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3342 int argc;
3343 char **argv;
3344 int
3345 main ()
3346 {
3347 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3353         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3354 do
3355   CC="$ac_save_CC $ac_arg"
3356   if ac_fn_c_try_compile "$LINENO"; then :
3357   ac_cv_prog_cc_c89=$ac_arg
3358 fi
3359 rm -f core conftest.err conftest.$ac_objext
3360   test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 done
3362 rm -f conftest.$ac_ext
3363 CC=$ac_save_CC
3364
3365 fi
3366 # AC_CACHE_VAL
3367 case "x$ac_cv_prog_cc_c89" in
3368   x)
3369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3370 $as_echo "none needed" >&6; } ;;
3371   xno)
3372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3373 $as_echo "unsupported" >&6; } ;;
3374   *)
3375     CC="$CC $ac_cv_prog_cc_c89"
3376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3377 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3378 esac
3379 if test "x$ac_cv_prog_cc_c89" != xno; then :
3380
3381 fi
3382
3383 ac_ext=c
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3395 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3396 # On Suns, sometimes $CPP names a directory.
3397 if test -n "$CPP" && test -d "$CPP"; then
3398   CPP=
3399 fi
3400 if test -z "$CPP"; then
3401   if ${ac_cv_prog_CPP+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404       # Double quotes because CPP needs to be expanded
3405     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3406     do
3407       ac_preproc_ok=false
3408 for ac_c_preproc_warn_flag in '' yes
3409 do
3410   # Use a header file that comes with gcc, so configuring glibc
3411   # with a fresh cross-compiler works.
3412   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413   # <limits.h> exists even on freestanding compilers.
3414   # On the NeXT, cc -E runs the code through the compiler's parser,
3415   # not just through cpp. "Syntax error" is here to catch this case.
3416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h.  */
3418 #ifdef __STDC__
3419 # include <limits.h>
3420 #else
3421 # include <assert.h>
3422 #endif
3423                      Syntax error
3424 _ACEOF
3425 if ac_fn_c_try_cpp "$LINENO"; then :
3426
3427 else
3428   # Broken: fails on valid input.
3429 continue
3430 fi
3431 rm -f conftest.err conftest.i conftest.$ac_ext
3432
3433   # OK, works on sane cases.  Now check whether nonexistent headers
3434   # can be detected and how.
3435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h.  */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if ac_fn_c_try_cpp "$LINENO"; then :
3440   # Broken: success on invalid input.
3441 continue
3442 else
3443   # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3446 fi
3447 rm -f conftest.err conftest.i conftest.$ac_ext
3448
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.i conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then :
3453   break
3454 fi
3455
3456     done
3457     ac_cv_prog_CPP=$CPP
3458
3459 fi
3460   CPP=$ac_cv_prog_CPP
3461 else
3462   ac_cv_prog_CPP=$CPP
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3465 $as_echo "$CPP" >&6; }
3466 ac_preproc_ok=false
3467 for ac_c_preproc_warn_flag in '' yes
3468 do
3469   # Use a header file that comes with gcc, so configuring glibc
3470   # with a fresh cross-compiler works.
3471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472   # <limits.h> exists even on freestanding compilers.
3473   # On the NeXT, cc -E runs the code through the compiler's parser,
3474   # not just through cpp. "Syntax error" is here to catch this case.
3475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h.  */
3477 #ifdef __STDC__
3478 # include <limits.h>
3479 #else
3480 # include <assert.h>
3481 #endif
3482                      Syntax error
3483 _ACEOF
3484 if ac_fn_c_try_cpp "$LINENO"; then :
3485
3486 else
3487   # Broken: fails on valid input.
3488 continue
3489 fi
3490 rm -f conftest.err conftest.i conftest.$ac_ext
3491
3492   # OK, works on sane cases.  Now check whether nonexistent headers
3493   # can be detected and how.
3494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h.  */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3499   # Broken: success on invalid input.
3500 continue
3501 else
3502   # Passes both tests.
3503 ac_preproc_ok=:
3504 break
3505 fi
3506 rm -f conftest.err conftest.i conftest.$ac_ext
3507
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.i conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then :
3512
3513 else
3514   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details" "$LINENO" 5; }
3518 fi
3519
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3536         if test -n "$ac_tool_prefix"; then
3537   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3542   $as_echo_n "(cached) " >&6
3543 else
3544   case $PKG_CONFIG in
3545   [\\/]* | ?:[\\/]*)
3546   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3547   ;;
3548   *)
3549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554     for ac_exec_ext in '' $ac_executable_extensions; do
3555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561   done
3562 IFS=$as_save_IFS
3563
3564   ;;
3565 esac
3566 fi
3567 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3568 if test -n "$PKG_CONFIG"; then
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3570 $as_echo "$PKG_CONFIG" >&6; }
3571 else
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 fi
3575
3576
3577 fi
3578 if test -z "$ac_cv_path_PKG_CONFIG"; then
3579   ac_pt_PKG_CONFIG=$PKG_CONFIG
3580   # Extract the first word of "pkg-config", so it can be a program name with args.
3581 set dummy pkg-config; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3585   $as_echo_n "(cached) " >&6
3586 else
3587   case $ac_pt_PKG_CONFIG in
3588   [\\/]* | ?:[\\/]*)
3589   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3590   ;;
3591   *)
3592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597     for ac_exec_ext in '' $ac_executable_extensions; do
3598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604   done
3605 IFS=$as_save_IFS
3606
3607   ;;
3608 esac
3609 fi
3610 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3611 if test -n "$ac_pt_PKG_CONFIG"; then
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3613 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3614 else
3615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619   if test "x$ac_pt_PKG_CONFIG" = x; then
3620     PKG_CONFIG=""
3621   else
3622     case $cross_compiling:$ac_tool_warned in
3623 yes:)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628     PKG_CONFIG=$ac_pt_PKG_CONFIG
3629   fi
3630 else
3631   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3632 fi
3633
3634 fi
3635 if test -n "$PKG_CONFIG"; then
3636         _pkg_min_version=0.24
3637         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3638 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3639         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3640                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641 $as_echo "yes" >&6; }
3642         else
3643                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645                 PKG_CONFIG=""
3646         fi
3647 fi
3648
3649 case `pwd` in
3650   *\ * | *\     *)
3651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3652 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3653 esac
3654
3655
3656
3657 macro_version='2.4.2'
3658 macro_revision='1.3337'
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672 ltmain="$ac_aux_dir/ltmain.sh"
3673
3674 # Backslashify metacharacters that are still active within
3675 # double-quoted strings.
3676 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3677
3678 # Same as above, but do not quote variable references.
3679 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3680
3681 # Sed substitution to delay expansion of an escaped shell variable in a
3682 # double_quote_subst'ed string.
3683 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3684
3685 # Sed substitution to delay expansion of an escaped single quote.
3686 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3687
3688 # Sed substitution to avoid accidental globbing in evaled expressions
3689 no_glob_subst='s/\*/\\\*/g'
3690
3691 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3692 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3693 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3694
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3696 $as_echo_n "checking how to print strings... " >&6; }
3697 # Test print first, because it will be a builtin if present.
3698 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3699    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3700   ECHO='print -r --'
3701 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3702   ECHO='printf %s\n'
3703 else
3704   # Use this function as a fallback that always works.
3705   func_fallback_echo ()
3706   {
3707     eval 'cat <<_LTECHO_EOF
3708 $1
3709 _LTECHO_EOF'
3710   }
3711   ECHO='func_fallback_echo'
3712 fi
3713
3714 # func_echo_all arg...
3715 # Invoke $ECHO with all args, space-separated.
3716 func_echo_all ()
3717 {
3718     $ECHO ""
3719 }
3720
3721 case "$ECHO" in
3722   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3723 $as_echo "printf" >&6; } ;;
3724   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3725 $as_echo "print -r" >&6; } ;;
3726   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3727 $as_echo "cat" >&6; } ;;
3728 esac
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3744 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3745 if ${ac_cv_path_SED+:} false; then :
3746   $as_echo_n "(cached) " >&6
3747 else
3748             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3749      for ac_i in 1 2 3 4 5 6 7; do
3750        ac_script="$ac_script$as_nl$ac_script"
3751      done
3752      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3753      { ac_script=; unset ac_script;}
3754      if test -z "$SED"; then
3755   ac_path_SED_found=false
3756   # Loop through the user's path and test for each of PROGNAME-LIST
3757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762     for ac_prog in sed gsed; do
3763     for ac_exec_ext in '' $ac_executable_extensions; do
3764       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3765       as_fn_executable_p "$ac_path_SED" || continue
3766 # Check for GNU ac_path_SED and select it if it is found.
3767   # Check for GNU $ac_path_SED
3768 case `"$ac_path_SED" --version 2>&1` in
3769 *GNU*)
3770   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3771 *)
3772   ac_count=0
3773   $as_echo_n 0123456789 >"conftest.in"
3774   while :
3775   do
3776     cat "conftest.in" "conftest.in" >"conftest.tmp"
3777     mv "conftest.tmp" "conftest.in"
3778     cp "conftest.in" "conftest.nl"
3779     $as_echo '' >> "conftest.nl"
3780     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3781     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3782     as_fn_arith $ac_count + 1 && ac_count=$as_val
3783     if test $ac_count -gt ${ac_path_SED_max-0}; then
3784       # Best one so far, save it but keep looking for a better one
3785       ac_cv_path_SED="$ac_path_SED"
3786       ac_path_SED_max=$ac_count
3787     fi
3788     # 10*(2^10) chars as input seems more than enough
3789     test $ac_count -gt 10 && break
3790   done
3791   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3792 esac
3793
3794       $ac_path_SED_found && break 3
3795     done
3796   done
3797   done
3798 IFS=$as_save_IFS
3799   if test -z "$ac_cv_path_SED"; then
3800     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3801   fi
3802 else
3803   ac_cv_path_SED=$SED
3804 fi
3805
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3808 $as_echo "$ac_cv_path_SED" >&6; }
3809  SED="$ac_cv_path_SED"
3810   rm -f conftest.sed
3811
3812 test -z "$SED" && SED=sed
3813 Xsed="$SED -e 1s/^X//"
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3826 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3827 if ${ac_cv_path_GREP+:} false; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   if test -z "$GREP"; then
3831   ac_path_GREP_found=false
3832   # Loop through the user's path and test for each of PROGNAME-LIST
3833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838     for ac_prog in grep ggrep; do
3839     for ac_exec_ext in '' $ac_executable_extensions; do
3840       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3841       as_fn_executable_p "$ac_path_GREP" || continue
3842 # Check for GNU ac_path_GREP and select it if it is found.
3843   # Check for GNU $ac_path_GREP
3844 case `"$ac_path_GREP" --version 2>&1` in
3845 *GNU*)
3846   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3847 *)
3848   ac_count=0
3849   $as_echo_n 0123456789 >"conftest.in"
3850   while :
3851   do
3852     cat "conftest.in" "conftest.in" >"conftest.tmp"
3853     mv "conftest.tmp" "conftest.in"
3854     cp "conftest.in" "conftest.nl"
3855     $as_echo 'GREP' >> "conftest.nl"
3856     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858     as_fn_arith $ac_count + 1 && ac_count=$as_val
3859     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3860       # Best one so far, save it but keep looking for a better one
3861       ac_cv_path_GREP="$ac_path_GREP"
3862       ac_path_GREP_max=$ac_count
3863     fi
3864     # 10*(2^10) chars as input seems more than enough
3865     test $ac_count -gt 10 && break
3866   done
3867   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 esac
3869
3870       $ac_path_GREP_found && break 3
3871     done
3872   done
3873   done
3874 IFS=$as_save_IFS
3875   if test -z "$ac_cv_path_GREP"; then
3876     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3877   fi
3878 else
3879   ac_cv_path_GREP=$GREP
3880 fi
3881
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3884 $as_echo "$ac_cv_path_GREP" >&6; }
3885  GREP="$ac_cv_path_GREP"
3886
3887
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3889 $as_echo_n "checking for egrep... " >&6; }
3890 if ${ac_cv_path_EGREP+:} false; then :
3891   $as_echo_n "(cached) " >&6
3892 else
3893   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3894    then ac_cv_path_EGREP="$GREP -E"
3895    else
3896      if test -z "$EGREP"; then
3897   ac_path_EGREP_found=false
3898   # Loop through the user's path and test for each of PROGNAME-LIST
3899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904     for ac_prog in egrep; do
3905     for ac_exec_ext in '' $ac_executable_extensions; do
3906       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3907       as_fn_executable_p "$ac_path_EGREP" || continue
3908 # Check for GNU ac_path_EGREP and select it if it is found.
3909   # Check for GNU $ac_path_EGREP
3910 case `"$ac_path_EGREP" --version 2>&1` in
3911 *GNU*)
3912   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3913 *)
3914   ac_count=0
3915   $as_echo_n 0123456789 >"conftest.in"
3916   while :
3917   do
3918     cat "conftest.in" "conftest.in" >"conftest.tmp"
3919     mv "conftest.tmp" "conftest.in"
3920     cp "conftest.in" "conftest.nl"
3921     $as_echo 'EGREP' >> "conftest.nl"
3922     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3923     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3924     as_fn_arith $ac_count + 1 && ac_count=$as_val
3925     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3926       # Best one so far, save it but keep looking for a better one
3927       ac_cv_path_EGREP="$ac_path_EGREP"
3928       ac_path_EGREP_max=$ac_count
3929     fi
3930     # 10*(2^10) chars as input seems more than enough
3931     test $ac_count -gt 10 && break
3932   done
3933   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3934 esac
3935
3936       $ac_path_EGREP_found && break 3
3937     done
3938   done
3939   done
3940 IFS=$as_save_IFS
3941   if test -z "$ac_cv_path_EGREP"; then
3942     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3943   fi
3944 else
3945   ac_cv_path_EGREP=$EGREP
3946 fi
3947
3948    fi
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3951 $as_echo "$ac_cv_path_EGREP" >&6; }
3952  EGREP="$ac_cv_path_EGREP"
3953
3954
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3956 $as_echo_n "checking for fgrep... " >&6; }
3957 if ${ac_cv_path_FGREP+:} false; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3961    then ac_cv_path_FGREP="$GREP -F"
3962    else
3963      if test -z "$FGREP"; then
3964   ac_path_FGREP_found=false
3965   # Loop through the user's path and test for each of PROGNAME-LIST
3966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3968 do
3969   IFS=$as_save_IFS
3970   test -z "$as_dir" && as_dir=.
3971     for ac_prog in fgrep; do
3972     for ac_exec_ext in '' $ac_executable_extensions; do
3973       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3974       as_fn_executable_p "$ac_path_FGREP" || continue
3975 # Check for GNU ac_path_FGREP and select it if it is found.
3976   # Check for GNU $ac_path_FGREP
3977 case `"$ac_path_FGREP" --version 2>&1` in
3978 *GNU*)
3979   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3980 *)
3981   ac_count=0
3982   $as_echo_n 0123456789 >"conftest.in"
3983   while :
3984   do
3985     cat "conftest.in" "conftest.in" >"conftest.tmp"
3986     mv "conftest.tmp" "conftest.in"
3987     cp "conftest.in" "conftest.nl"
3988     $as_echo 'FGREP' >> "conftest.nl"
3989     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3990     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3991     as_fn_arith $ac_count + 1 && ac_count=$as_val
3992     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3993       # Best one so far, save it but keep looking for a better one
3994       ac_cv_path_FGREP="$ac_path_FGREP"
3995       ac_path_FGREP_max=$ac_count
3996     fi
3997     # 10*(2^10) chars as input seems more than enough
3998     test $ac_count -gt 10 && break
3999   done
4000   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4001 esac
4002
4003       $ac_path_FGREP_found && break 3
4004     done
4005   done
4006   done
4007 IFS=$as_save_IFS
4008   if test -z "$ac_cv_path_FGREP"; then
4009     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4010   fi
4011 else
4012   ac_cv_path_FGREP=$FGREP
4013 fi
4014
4015    fi
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4018 $as_echo "$ac_cv_path_FGREP" >&6; }
4019  FGREP="$ac_cv_path_FGREP"
4020
4021
4022 test -z "$GREP" && GREP=grep
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042 # Check whether --with-gnu-ld was given.
4043 if test "${with_gnu_ld+set}" = set; then :
4044   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4045 else
4046   with_gnu_ld=no
4047 fi
4048
4049 ac_prog=ld
4050 if test "$GCC" = yes; then
4051   # Check if gcc -print-prog-name=ld gives a path.
4052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4053 $as_echo_n "checking for ld used by $CC... " >&6; }
4054   case $host in
4055   *-*-mingw*)
4056     # gcc leaves a trailing carriage return which upsets mingw
4057     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4058   *)
4059     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4060   esac
4061   case $ac_prog in
4062     # Accept absolute paths.
4063     [\\/]* | ?:[\\/]*)
4064       re_direlt='/[^/][^/]*/\.\./'
4065       # Canonicalize the pathname of ld
4066       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4067       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4068         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4069       done
4070       test -z "$LD" && LD="$ac_prog"
4071       ;;
4072   "")
4073     # If it fails, then pretend we aren't using GCC.
4074     ac_prog=ld
4075     ;;
4076   *)
4077     # If it is relative, then search for the first ld in PATH.
4078     with_gnu_ld=unknown
4079     ;;
4080   esac
4081 elif test "$with_gnu_ld" = yes; then
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4083 $as_echo_n "checking for GNU ld... " >&6; }
4084 else
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4086 $as_echo_n "checking for non-GNU ld... " >&6; }
4087 fi
4088 if ${lt_cv_path_LD+:} false; then :
4089   $as_echo_n "(cached) " >&6
4090 else
4091   if test -z "$LD"; then
4092   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4093   for ac_dir in $PATH; do
4094     IFS="$lt_save_ifs"
4095     test -z "$ac_dir" && ac_dir=.
4096     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4097       lt_cv_path_LD="$ac_dir/$ac_prog"
4098       # Check to see if the program is GNU ld.  I'd rather use --version,
4099       # but apparently some variants of GNU ld only accept -v.
4100       # Break only if it was the GNU/non-GNU ld that we prefer.
4101       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4102       *GNU* | *'with BFD'*)
4103         test "$with_gnu_ld" != no && break
4104         ;;
4105       *)
4106         test "$with_gnu_ld" != yes && break
4107         ;;
4108       esac
4109     fi
4110   done
4111   IFS="$lt_save_ifs"
4112 else
4113   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4114 fi
4115 fi
4116
4117 LD="$lt_cv_path_LD"
4118 if test -n "$LD"; then
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4120 $as_echo "$LD" >&6; }
4121 else
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124 fi
4125 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4127 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4128 if ${lt_cv_prog_gnu_ld+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4132 case `$LD -v 2>&1 </dev/null` in
4133 *GNU* | *'with BFD'*)
4134   lt_cv_prog_gnu_ld=yes
4135   ;;
4136 *)
4137   lt_cv_prog_gnu_ld=no
4138   ;;
4139 esac
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4142 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4143 with_gnu_ld=$lt_cv_prog_gnu_ld
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4154 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4155 if ${lt_cv_path_NM+:} false; then :
4156   $as_echo_n "(cached) " >&6
4157 else
4158   if test -n "$NM"; then
4159   # Let the user override the test.
4160   lt_cv_path_NM="$NM"
4161 else
4162   lt_nm_to_check="${ac_tool_prefix}nm"
4163   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4164     lt_nm_to_check="$lt_nm_to_check nm"
4165   fi
4166   for lt_tmp_nm in $lt_nm_to_check; do
4167     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4168     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4169       IFS="$lt_save_ifs"
4170       test -z "$ac_dir" && ac_dir=.
4171       tmp_nm="$ac_dir/$lt_tmp_nm"
4172       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4173         # Check to see if the nm accepts a BSD-compat flag.
4174         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4175         #   nm: unknown option "B" ignored
4176         # Tru64's nm complains that /dev/null is an invalid object file
4177         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4178         */dev/null* | *'Invalid file or object type'*)
4179           lt_cv_path_NM="$tmp_nm -B"
4180           break
4181           ;;
4182         *)
4183           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4184           */dev/null*)
4185             lt_cv_path_NM="$tmp_nm -p"
4186             break
4187             ;;
4188           *)
4189             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4190             continue # so that we can try to find one that supports BSD flags
4191             ;;
4192           esac
4193           ;;
4194         esac
4195       fi
4196     done
4197     IFS="$lt_save_ifs"
4198   done
4199   : ${lt_cv_path_NM=no}
4200 fi
4201 fi
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4203 $as_echo "$lt_cv_path_NM" >&6; }
4204 if test "$lt_cv_path_NM" != "no"; then
4205   NM="$lt_cv_path_NM"
4206 else
4207   # Didn't find any BSD compatible name lister, look for dumpbin.
4208   if test -n "$DUMPBIN"; then :
4209     # Let the user override the test.
4210   else
4211     if test -n "$ac_tool_prefix"; then
4212   for ac_prog in dumpbin "link -dump"
4213   do
4214     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if ${ac_cv_prog_DUMPBIN+:} false; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   if test -n "$DUMPBIN"; then
4222   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229     for ac_exec_ext in '' $ac_executable_extensions; do
4230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236   done
4237 IFS=$as_save_IFS
4238
4239 fi
4240 fi
4241 DUMPBIN=$ac_cv_prog_DUMPBIN
4242 if test -n "$DUMPBIN"; then
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4244 $as_echo "$DUMPBIN" >&6; }
4245 else
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 fi
4249
4250
4251     test -n "$DUMPBIN" && break
4252   done
4253 fi
4254 if test -z "$DUMPBIN"; then
4255   ac_ct_DUMPBIN=$DUMPBIN
4256   for ac_prog in dumpbin "link -dump"
4257 do
4258   # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4263   $as_echo_n "(cached) " >&6
4264 else
4265   if test -n "$ac_ct_DUMPBIN"; then
4266   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273     for ac_exec_ext in '' $ac_executable_extensions; do
4274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280   done
4281 IFS=$as_save_IFS
4282
4283 fi
4284 fi
4285 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4286 if test -n "$ac_ct_DUMPBIN"; then
4287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4288 $as_echo "$ac_ct_DUMPBIN" >&6; }
4289 else
4290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4292 fi
4293
4294
4295   test -n "$ac_ct_DUMPBIN" && break
4296 done
4297
4298   if test "x$ac_ct_DUMPBIN" = x; then
4299     DUMPBIN=":"
4300   else
4301     case $cross_compiling:$ac_tool_warned in
4302 yes:)
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4306 esac
4307     DUMPBIN=$ac_ct_DUMPBIN
4308   fi
4309 fi
4310
4311     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4312     *COFF*)
4313       DUMPBIN="$DUMPBIN -symbols"
4314       ;;
4315     *)
4316       DUMPBIN=:
4317       ;;
4318     esac
4319   fi
4320
4321   if test "$DUMPBIN" != ":"; then
4322     NM="$DUMPBIN"
4323   fi
4324 fi
4325 test -z "$NM" && NM=nm
4326
4327
4328
4329
4330
4331
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4333 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4334 if ${lt_cv_nm_interface+:} false; then :
4335   $as_echo_n "(cached) " >&6
4336 else
4337   lt_cv_nm_interface="BSD nm"
4338   echo "int some_variable = 0;" > conftest.$ac_ext
4339   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4340   (eval "$ac_compile" 2>conftest.err)
4341   cat conftest.err >&5
4342   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4343   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4344   cat conftest.err >&5
4345   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4346   cat conftest.out >&5
4347   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4348     lt_cv_nm_interface="MS dumpbin"
4349   fi
4350   rm -f conftest*
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4353 $as_echo "$lt_cv_nm_interface" >&6; }
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4356 $as_echo_n "checking whether ln -s works... " >&6; }
4357 LN_S=$as_ln_s
4358 if test "$LN_S" = "ln -s"; then
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4360 $as_echo "yes" >&6; }
4361 else
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4363 $as_echo "no, using $LN_S" >&6; }
4364 fi
4365
4366 # find the maximum length of command line arguments
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4368 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4369 if ${lt_cv_sys_max_cmd_len+:} false; then :
4370   $as_echo_n "(cached) " >&6
4371 else
4372     i=0
4373   teststring="ABCD"
4374
4375   case $build_os in
4376   msdosdjgpp*)
4377     # On DJGPP, this test can blow up pretty badly due to problems in libc
4378     # (any single argument exceeding 2000 bytes causes a buffer overrun
4379     # during glob expansion).  Even if it were fixed, the result of this
4380     # check would be larger than it should be.
4381     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4382     ;;
4383
4384   gnu*)
4385     # Under GNU Hurd, this test is not required because there is
4386     # no limit to the length of command line arguments.
4387     # Libtool will interpret -1 as no limit whatsoever
4388     lt_cv_sys_max_cmd_len=-1;
4389     ;;
4390
4391   cygwin* | mingw* | cegcc*)
4392     # On Win9x/ME, this test blows up -- it succeeds, but takes
4393     # about 5 minutes as the teststring grows exponentially.
4394     # Worse, since 9x/ME are not pre-emptively multitasking,
4395     # you end up with a "frozen" computer, even though with patience
4396     # the test eventually succeeds (with a max line length of 256k).
4397     # Instead, let's just punt: use the minimum linelength reported by
4398     # all of the supported platforms: 8192 (on NT/2K/XP).
4399     lt_cv_sys_max_cmd_len=8192;
4400     ;;
4401
4402   mint*)
4403     # On MiNT this can take a long time and run out of memory.
4404     lt_cv_sys_max_cmd_len=8192;
4405     ;;
4406
4407   amigaos*)
4408     # On AmigaOS with pdksh, this test takes hours, literally.
4409     # So we just punt and use a minimum line length of 8192.
4410     lt_cv_sys_max_cmd_len=8192;
4411     ;;
4412
4413   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4414     # This has been around since 386BSD, at least.  Likely further.
4415     if test -x /sbin/sysctl; then
4416       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4417     elif test -x /usr/sbin/sysctl; then
4418       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4419     else
4420       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4421     fi
4422     # And add a safety zone
4423     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4424     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4425     ;;
4426
4427   interix*)
4428     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4429     lt_cv_sys_max_cmd_len=196608
4430     ;;
4431
4432   os2*)
4433     # The test takes a long time on OS/2.
4434     lt_cv_sys_max_cmd_len=8192
4435     ;;
4436
4437   osf*)
4438     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4439     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4440     # nice to cause kernel panics so lets avoid the loop below.
4441     # First set a reasonable default.
4442     lt_cv_sys_max_cmd_len=16384
4443     #
4444     if test -x /sbin/sysconfig; then
4445       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4446         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4447       esac
4448     fi
4449     ;;
4450   sco3.2v5*)
4451     lt_cv_sys_max_cmd_len=102400
4452     ;;
4453   sysv5* | sco5v6* | sysv4.2uw2*)
4454     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4455     if test -n "$kargmax"; then
4456       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4457     else
4458       lt_cv_sys_max_cmd_len=32768
4459     fi
4460     ;;
4461   *)
4462     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4463     if test -n "$lt_cv_sys_max_cmd_len" && \
4464         test undefined != "$lt_cv_sys_max_cmd_len"; then
4465       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4466       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4467     else
4468       # Make teststring a little bigger before we do anything with it.
4469       # a 1K string should be a reasonable start.
4470       for i in 1 2 3 4 5 6 7 8 ; do
4471         teststring=$teststring$teststring
4472       done
4473       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4474       # If test is not a shell built-in, we'll probably end up computing a
4475       # maximum length that is only half of the actual maximum length, but
4476       # we can't tell.
4477       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4478                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4479               test $i != 17 # 1/2 MB should be enough
4480       do
4481         i=`expr $i + 1`
4482         teststring=$teststring$teststring
4483       done
4484       # Only check the string length outside the loop.
4485       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4486       teststring=
4487       # Add a significant safety factor because C++ compilers can tack on
4488       # massive amounts of additional arguments before passing them to the
4489       # linker.  It appears as though 1/2 is a usable value.
4490       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4491     fi
4492     ;;
4493   esac
4494
4495 fi
4496
4497 if test -n $lt_cv_sys_max_cmd_len ; then
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4499 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4500 else
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4502 $as_echo "none" >&6; }
4503 fi
4504 max_cmd_len=$lt_cv_sys_max_cmd_len
4505
4506
4507
4508
4509
4510
4511 : ${CP="cp -f"}
4512 : ${MV="mv -f"}
4513 : ${RM="rm -f"}
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4516 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4517 # Try some XSI features
4518 xsi_shell=no
4519 ( _lt_dummy="a/b/c"
4520   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4521       = c,a/b,b/c, \
4522     && eval 'test $(( 1 + 1 )) -eq 2 \
4523     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4524   && xsi_shell=yes
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4526 $as_echo "$xsi_shell" >&6; }
4527
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4530 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4531 lt_shell_append=no
4532 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4533     >/dev/null 2>&1 \
4534   && lt_shell_append=yes
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4536 $as_echo "$lt_shell_append" >&6; }
4537
4538
4539 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4540   lt_unset=unset
4541 else
4542   lt_unset=false
4543 fi
4544
4545
4546
4547
4548
4549 # test EBCDIC or ASCII
4550 case `echo X|tr X '\101'` in
4551  A) # ASCII based system
4552     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4553   lt_SP2NL='tr \040 \012'
4554   lt_NL2SP='tr \015\012 \040\040'
4555   ;;
4556  *) # EBCDIC based system
4557   lt_SP2NL='tr \100 \n'
4558   lt_NL2SP='tr \r\n \100\100'
4559   ;;
4560 esac
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4571 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4572 if ${lt_cv_to_host_file_cmd+:} false; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   case $host in
4576   *-*-mingw* )
4577     case $build in
4578       *-*-mingw* ) # actually msys
4579         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4580         ;;
4581       *-*-cygwin* )
4582         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4583         ;;
4584       * ) # otherwise, assume *nix
4585         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4586         ;;
4587     esac
4588     ;;
4589   *-*-cygwin* )
4590     case $build in
4591       *-*-mingw* ) # actually msys
4592         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4593         ;;
4594       *-*-cygwin* )
4595         lt_cv_to_host_file_cmd=func_convert_file_noop
4596         ;;
4597       * ) # otherwise, assume *nix
4598         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4599         ;;
4600     esac
4601     ;;
4602   * ) # unhandled hosts (and "normal" native builds)
4603     lt_cv_to_host_file_cmd=func_convert_file_noop
4604     ;;
4605 esac
4606
4607 fi
4608
4609 to_host_file_cmd=$lt_cv_to_host_file_cmd
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4611 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4612
4613
4614
4615
4616
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4618 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4619 if ${lt_cv_to_tool_file_cmd+:} false; then :
4620   $as_echo_n "(cached) " >&6
4621 else
4622   #assume ordinary cross tools, or native build.
4623 lt_cv_to_tool_file_cmd=func_convert_file_noop
4624 case $host in
4625   *-*-mingw* )
4626     case $build in
4627       *-*-mingw* ) # actually msys
4628         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4629         ;;
4630     esac
4631     ;;
4632 esac
4633
4634 fi
4635
4636 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4638 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4639
4640
4641
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4645 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4646 if ${lt_cv_ld_reload_flag+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   lt_cv_ld_reload_flag='-r'
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4652 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4653 reload_flag=$lt_cv_ld_reload_flag
4654 case $reload_flag in
4655 "" | " "*) ;;
4656 *) reload_flag=" $reload_flag" ;;
4657 esac
4658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4659 case $host_os in
4660   cygwin* | mingw* | pw32* | cegcc*)
4661     if test "$GCC" != yes; then
4662       reload_cmds=false
4663     fi
4664     ;;
4665   darwin*)
4666     if test "$GCC" = yes; then
4667       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4668     else
4669       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4670     fi
4671     ;;
4672 esac
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 if test -n "$ac_tool_prefix"; then
4683   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_OBJDUMP+:} false; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   if test -n "$OBJDUMP"; then
4691   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705   done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 OBJDUMP=$ac_cv_prog_OBJDUMP
4711 if test -n "$OBJDUMP"; then
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4713 $as_echo "$OBJDUMP" >&6; }
4714 else
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719
4720 fi
4721 if test -z "$ac_cv_prog_OBJDUMP"; then
4722   ac_ct_OBJDUMP=$OBJDUMP
4723   # Extract the first word of "objdump", so it can be a program name with args.
4724 set dummy objdump; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   if test -n "$ac_ct_OBJDUMP"; then
4731   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738     for ac_exec_ext in '' $ac_executable_extensions; do
4739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742     break 2
4743   fi
4744 done
4745   done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4751 if test -n "$ac_ct_OBJDUMP"; then
4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4753 $as_echo "$ac_ct_OBJDUMP" >&6; }
4754 else
4755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4757 fi
4758
4759   if test "x$ac_ct_OBJDUMP" = x; then
4760     OBJDUMP="false"
4761   else
4762     case $cross_compiling:$ac_tool_warned in
4763 yes:)
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 ac_tool_warned=yes ;;
4767 esac
4768     OBJDUMP=$ac_ct_OBJDUMP
4769   fi
4770 else
4771   OBJDUMP="$ac_cv_prog_OBJDUMP"
4772 fi
4773
4774 test -z "$OBJDUMP" && OBJDUMP=objdump
4775
4776
4777
4778
4779
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4782 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4783 if ${lt_cv_deplibs_check_method+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   lt_cv_file_magic_cmd='$MAGIC_CMD'
4787 lt_cv_file_magic_test_file=
4788 lt_cv_deplibs_check_method='unknown'
4789 # Need to set the preceding variable on all platforms that support
4790 # interlibrary dependencies.
4791 # 'none' -- dependencies not supported.
4792 # `unknown' -- same as none, but documents that we really don't know.
4793 # 'pass_all' -- all dependencies passed with no checks.
4794 # 'test_compile' -- check by making test program.
4795 # 'file_magic [[regex]]' -- check by looking for files in library path
4796 # which responds to the $file_magic_cmd with a given extended regex.
4797 # If you have `file' or equivalent on your system and you're not sure
4798 # whether `pass_all' will *always* work, you probably want this one.
4799
4800 case $host_os in
4801 aix[4-9]*)
4802   lt_cv_deplibs_check_method=pass_all
4803   ;;
4804
4805 beos*)
4806   lt_cv_deplibs_check_method=pass_all
4807   ;;
4808
4809 bsdi[45]*)
4810   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4811   lt_cv_file_magic_cmd='/usr/bin/file -L'
4812   lt_cv_file_magic_test_file=/shlib/libc.so
4813   ;;
4814
4815 cygwin*)
4816   # func_win32_libid is a shell function defined in ltmain.sh
4817   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4818   lt_cv_file_magic_cmd='func_win32_libid'
4819   ;;
4820
4821 mingw* | pw32*)
4822   # Base MSYS/MinGW do not provide the 'file' command needed by
4823   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4824   # unless we find 'file', for example because we are cross-compiling.
4825   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4826   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4827     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828     lt_cv_file_magic_cmd='func_win32_libid'
4829   else
4830     # Keep this pattern in sync with the one in func_win32_libid.
4831     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4832     lt_cv_file_magic_cmd='$OBJDUMP -f'
4833   fi
4834   ;;
4835
4836 cegcc*)
4837   # use the weaker test based on 'objdump'. See mingw*.
4838   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4839   lt_cv_file_magic_cmd='$OBJDUMP -f'
4840   ;;
4841
4842 darwin* | rhapsody*)
4843   lt_cv_deplibs_check_method=pass_all
4844   ;;
4845
4846 freebsd* | dragonfly*)
4847   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4848     case $host_cpu in
4849     i*86 )
4850       # Not sure whether the presence of OpenBSD here was a mistake.
4851       # Let's accept both of them until this is cleared up.
4852       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4853       lt_cv_file_magic_cmd=/usr/bin/file
4854       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4855       ;;
4856     esac
4857   else
4858     lt_cv_deplibs_check_method=pass_all
4859   fi
4860   ;;
4861
4862 haiku*)
4863   lt_cv_deplibs_check_method=pass_all
4864   ;;
4865
4866 hpux10.20* | hpux11*)
4867   lt_cv_file_magic_cmd=/usr/bin/file
4868   case $host_cpu in
4869   ia64*)
4870     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4871     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4872     ;;
4873   hppa*64*)
4874     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]'
4875     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4876     ;;
4877   *)
4878     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4879     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4880     ;;
4881   esac
4882   ;;
4883
4884 interix[3-9]*)
4885   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4886   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4887   ;;
4888
4889 irix5* | irix6* | nonstopux*)
4890   case $LD in
4891   *-32|*"-32 ") libmagic=32-bit;;
4892   *-n32|*"-n32 ") libmagic=N32;;
4893   *-64|*"-64 ") libmagic=64-bit;;
4894   *) libmagic=never-match;;
4895   esac
4896   lt_cv_deplibs_check_method=pass_all
4897   ;;
4898
4899 # This must be glibc/ELF.
4900 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4901   lt_cv_deplibs_check_method=pass_all
4902   ;;
4903
4904 netbsd* | netbsdelf*-gnu)
4905   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4906     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4907   else
4908     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4909   fi
4910   ;;
4911
4912 newos6*)
4913   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4914   lt_cv_file_magic_cmd=/usr/bin/file
4915   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4916   ;;
4917
4918 *nto* | *qnx*)
4919   lt_cv_deplibs_check_method=pass_all
4920   ;;
4921
4922 openbsd*)
4923   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4924     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4925   else
4926     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4927   fi
4928   ;;
4929
4930 osf3* | osf4* | osf5*)
4931   lt_cv_deplibs_check_method=pass_all
4932   ;;
4933
4934 rdos*)
4935   lt_cv_deplibs_check_method=pass_all
4936   ;;
4937
4938 solaris*)
4939   lt_cv_deplibs_check_method=pass_all
4940   ;;
4941
4942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4943   lt_cv_deplibs_check_method=pass_all
4944   ;;
4945
4946 sysv4 | sysv4.3*)
4947   case $host_vendor in
4948   motorola)
4949     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]'
4950     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4951     ;;
4952   ncr)
4953     lt_cv_deplibs_check_method=pass_all
4954     ;;
4955   sequent)
4956     lt_cv_file_magic_cmd='/bin/file'
4957     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4958     ;;
4959   sni)
4960     lt_cv_file_magic_cmd='/bin/file'
4961     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4962     lt_cv_file_magic_test_file=/lib/libc.so
4963     ;;
4964   siemens)
4965     lt_cv_deplibs_check_method=pass_all
4966     ;;
4967   pc)
4968     lt_cv_deplibs_check_method=pass_all
4969     ;;
4970   esac
4971   ;;
4972
4973 tpf*)
4974   lt_cv_deplibs_check_method=pass_all
4975   ;;
4976 esac
4977
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4980 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4981
4982 file_magic_glob=
4983 want_nocaseglob=no
4984 if test "$build" = "$host"; then
4985   case $host_os in
4986   mingw* | pw32*)
4987     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4988       want_nocaseglob=yes
4989     else
4990       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4991     fi
4992     ;;
4993   esac
4994 fi
4995
4996 file_magic_cmd=$lt_cv_file_magic_cmd
4997 deplibs_check_method=$lt_cv_deplibs_check_method
4998 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 if test -n "$ac_tool_prefix"; then
5022   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_prog_DLLTOOL+:} false; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   if test -n "$DLLTOOL"; then
5030   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037     for ac_exec_ext in '' $ac_executable_extensions; do
5038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044   done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 DLLTOOL=$ac_cv_prog_DLLTOOL
5050 if test -n "$DLLTOOL"; then
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5052 $as_echo "$DLLTOOL" >&6; }
5053 else
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059 fi
5060 if test -z "$ac_cv_prog_DLLTOOL"; then
5061   ac_ct_DLLTOOL=$DLLTOOL
5062   # Extract the first word of "dlltool", so it can be a program name with args.
5063 set dummy dlltool; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5067   $as_echo_n "(cached) " >&6
5068 else
5069   if test -n "$ac_ct_DLLTOOL"; then
5070   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077     for ac_exec_ext in '' $ac_executable_extensions; do
5078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084   done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5090 if test -n "$ac_ct_DLLTOOL"; then
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5092 $as_echo "$ac_ct_DLLTOOL" >&6; }
5093 else
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098   if test "x$ac_ct_DLLTOOL" = x; then
5099     DLLTOOL="false"
5100   else
5101     case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105 ac_tool_warned=yes ;;
5106 esac
5107     DLLTOOL=$ac_ct_DLLTOOL
5108   fi
5109 else
5110   DLLTOOL="$ac_cv_prog_DLLTOOL"
5111 fi
5112
5113 test -z "$DLLTOOL" && DLLTOOL=dlltool
5114
5115
5116
5117
5118
5119
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5122 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5123 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   lt_cv_sharedlib_from_linklib_cmd='unknown'
5127
5128 case $host_os in
5129 cygwin* | mingw* | pw32* | cegcc*)
5130   # two different shell functions defined in ltmain.sh
5131   # decide which to use based on capabilities of $DLLTOOL
5132   case `$DLLTOOL --help 2>&1` in
5133   *--identify-strict*)
5134     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5135     ;;
5136   *)
5137     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5138     ;;
5139   esac
5140   ;;
5141 *)
5142   # fallback: assume linklib IS sharedlib
5143   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5144   ;;
5145 esac
5146
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5149 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5150 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5151 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5152
5153
5154
5155
5156
5157
5158
5159
5160 if test -n "$ac_tool_prefix"; then
5161   for ac_prog in ar
5162   do
5163     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_AR+:} false; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   if test -n "$AR"; then
5171   ac_cv_prog_AR="$AR" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178     for ac_exec_ext in '' $ac_executable_extensions; do
5179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183   fi
5184 done
5185   done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 AR=$ac_cv_prog_AR
5191 if test -n "$AR"; then
5192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5193 $as_echo "$AR" >&6; }
5194 else
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200     test -n "$AR" && break
5201   done
5202 fi
5203 if test -z "$AR"; then
5204   ac_ct_AR=$AR
5205   for ac_prog in ar
5206 do
5207   # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   if test -n "$ac_ct_AR"; then
5215   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222     for ac_exec_ext in '' $ac_executable_extensions; do
5223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_prog_ac_ct_AR="$ac_prog"
5225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229   done
5230 IFS=$as_save_IFS
5231
5232 fi
5233 fi
5234 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5235 if test -n "$ac_ct_AR"; then
5236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5237 $as_echo "$ac_ct_AR" >&6; }
5238 else
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5241 fi
5242
5243
5244   test -n "$ac_ct_AR" && break
5245 done
5246
5247   if test "x$ac_ct_AR" = x; then
5248     AR="false"
5249   else
5250     case $cross_compiling:$ac_tool_warned in
5251 yes:)
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256     AR=$ac_ct_AR
5257   fi
5258 fi
5259
5260 : ${AR=ar}
5261 : ${AR_FLAGS=cru}
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5274 $as_echo_n "checking for archiver @FILE support... " >&6; }
5275 if ${lt_cv_ar_at_file+:} false; then :
5276   $as_echo_n "(cached) " >&6
5277 else
5278   lt_cv_ar_at_file=no
5279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h.  */
5281
5282 int
5283 main ()
5284 {
5285
5286   ;
5287   return 0;
5288 }
5289 _ACEOF
5290 if ac_fn_c_try_compile "$LINENO"; then :
5291   echo conftest.$ac_objext > conftest.lst
5292       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5293       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5294   (eval $lt_ar_try) 2>&5
5295   ac_status=$?
5296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5297   test $ac_status = 0; }
5298       if test "$ac_status" -eq 0; then
5299         # Ensure the archiver fails upon bogus file names.
5300         rm -f conftest.$ac_objext libconftest.a
5301         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5302   (eval $lt_ar_try) 2>&5
5303   ac_status=$?
5304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5305   test $ac_status = 0; }
5306         if test "$ac_status" -ne 0; then
5307           lt_cv_ar_at_file=@
5308         fi
5309       fi
5310       rm -f conftest.* libconftest.a
5311
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5317 $as_echo "$lt_cv_ar_at_file" >&6; }
5318
5319 if test "x$lt_cv_ar_at_file" = xno; then
5320   archiver_list_spec=
5321 else
5322   archiver_list_spec=$lt_cv_ar_at_file
5323 fi
5324
5325
5326
5327
5328
5329
5330
5331 if test -n "$ac_tool_prefix"; then
5332   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5333 set dummy ${ac_tool_prefix}strip; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_STRIP+:} false; then :
5337   $as_echo_n "(cached) " >&6
5338 else
5339   if test -n "$STRIP"; then
5340   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345   IFS=$as_save_IFS
5346   test -z "$as_dir" && as_dir=.
5347     for ac_exec_ext in '' $ac_executable_extensions; do
5348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351     break 2
5352   fi
5353 done
5354   done
5355 IFS=$as_save_IFS
5356
5357 fi
5358 fi
5359 STRIP=$ac_cv_prog_STRIP
5360 if test -n "$STRIP"; then
5361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5362 $as_echo "$STRIP" >&6; }
5363 else
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5366 fi
5367
5368
5369 fi
5370 if test -z "$ac_cv_prog_STRIP"; then
5371   ac_ct_STRIP=$STRIP
5372   # Extract the first word of "strip", so it can be a program name with args.
5373 set dummy strip; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5377   $as_echo_n "(cached) " >&6
5378 else
5379   if test -n "$ac_ct_STRIP"; then
5380   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385   IFS=$as_save_IFS
5386   test -z "$as_dir" && as_dir=.
5387     for ac_exec_ext in '' $ac_executable_extensions; do
5388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389     ac_cv_prog_ac_ct_STRIP="strip"
5390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391     break 2
5392   fi
5393 done
5394   done
5395 IFS=$as_save_IFS
5396
5397 fi
5398 fi
5399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5400 if test -n "$ac_ct_STRIP"; then
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5402 $as_echo "$ac_ct_STRIP" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408   if test "x$ac_ct_STRIP" = x; then
5409     STRIP=":"
5410   else
5411     case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5416 esac
5417     STRIP=$ac_ct_STRIP
5418   fi
5419 else
5420   STRIP="$ac_cv_prog_STRIP"
5421 fi
5422
5423 test -z "$STRIP" && STRIP=:
5424
5425
5426
5427
5428
5429
5430 if test -n "$ac_tool_prefix"; then
5431   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_RANLIB+:} false; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   if test -n "$RANLIB"; then
5439   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446     for ac_exec_ext in '' $ac_executable_extensions; do
5447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453   done
5454 IFS=$as_save_IFS
5455
5456 fi
5457 fi
5458 RANLIB=$ac_cv_prog_RANLIB
5459 if test -n "$RANLIB"; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5461 $as_echo "$RANLIB" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466
5467
5468 fi
5469 if test -z "$ac_cv_prog_RANLIB"; then
5470   ac_ct_RANLIB=$RANLIB
5471   # Extract the first word of "ranlib", so it can be a program name with args.
5472 set dummy ranlib; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   if test -n "$ac_ct_RANLIB"; then
5479   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484   IFS=$as_save_IFS
5485   test -z "$as_dir" && as_dir=.
5486     for ac_exec_ext in '' $ac_executable_extensions; do
5487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488     ac_cv_prog_ac_ct_RANLIB="ranlib"
5489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490     break 2
5491   fi
5492 done
5493   done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5499 if test -n "$ac_ct_RANLIB"; then
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5501 $as_echo "$ac_ct_RANLIB" >&6; }
5502 else
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507   if test "x$ac_ct_RANLIB" = x; then
5508     RANLIB=":"
5509   else
5510     case $cross_compiling:$ac_tool_warned in
5511 yes:)
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5514 ac_tool_warned=yes ;;
5515 esac
5516     RANLIB=$ac_ct_RANLIB
5517   fi
5518 else
5519   RANLIB="$ac_cv_prog_RANLIB"
5520 fi
5521
5522 test -z "$RANLIB" && RANLIB=:
5523
5524
5525
5526
5527
5528
5529 # Determine commands to create old-style static archives.
5530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5531 old_postinstall_cmds='chmod 644 $oldlib'
5532 old_postuninstall_cmds=
5533
5534 if test -n "$RANLIB"; then
5535   case $host_os in
5536   openbsd*)
5537     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5538     ;;
5539   *)
5540     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5541     ;;
5542   esac
5543   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5544 fi
5545
5546 case $host_os in
5547   darwin*)
5548     lock_old_archive_extraction=yes ;;
5549   *)
5550     lock_old_archive_extraction=no ;;
5551 esac
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 for ac_prog in gawk mawk nawk awk
5574 do
5575   # Extract the first word of "$ac_prog", so it can be a program name with args.
5576 set dummy $ac_prog; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_AWK+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   if test -n "$AWK"; then
5583   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592     ac_cv_prog_AWK="$ac_prog"
5593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 AWK=$ac_cv_prog_AWK
5603 if test -n "$AWK"; then
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5605 $as_echo "$AWK" >&6; }
5606 else
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611
5612   test -n "$AWK" && break
5613 done
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 # If no C compiler was specified, use CC.
5634 LTCC=${LTCC-"$CC"}
5635
5636 # If no C compiler flags were specified, use CFLAGS.
5637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5638
5639 # Allow CC to be a program name with arguments.
5640 compiler=$CC
5641
5642
5643 # Check for command to grab the raw symbol name followed by C symbol from nm.
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5645 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5646 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5647   $as_echo_n "(cached) " >&6
5648 else
5649
5650 # These are sane defaults that work on at least a few old systems.
5651 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5652
5653 # Character class describing NM global symbol codes.
5654 symcode='[BCDEGRST]'
5655
5656 # Regexp to match symbols that can be accessed directly from C.
5657 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5658
5659 # Define system-specific variables.
5660 case $host_os in
5661 aix*)
5662   symcode='[BCDT]'
5663   ;;
5664 cygwin* | mingw* | pw32* | cegcc*)
5665   symcode='[ABCDGISTW]'
5666   ;;
5667 hpux*)
5668   if test "$host_cpu" = ia64; then
5669     symcode='[ABCDEGRST]'
5670   fi
5671   ;;
5672 irix* | nonstopux*)
5673   symcode='[BCDEGRST]'
5674   ;;
5675 osf*)
5676   symcode='[BCDEGQRST]'
5677   ;;
5678 solaris*)
5679   symcode='[BDRT]'
5680   ;;
5681 sco3.2v5*)
5682   symcode='[DT]'
5683   ;;
5684 sysv4.2uw2*)
5685   symcode='[DT]'
5686   ;;
5687 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5688   symcode='[ABDT]'
5689   ;;
5690 sysv4)
5691   symcode='[DFNSTU]'
5692   ;;
5693 esac
5694
5695 # If we're using GNU nm, then use its standard symbol codes.
5696 case `$NM -V 2>&1` in
5697 *GNU* | *'with BFD'*)
5698   symcode='[ABCDGIRSTW]' ;;
5699 esac
5700
5701 # Transform an extracted symbol line into a proper C declaration.
5702 # Some systems (esp. on ia64) link data and code symbols differently,
5703 # so use this general approach.
5704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5705
5706 # Transform an extracted symbol line into symbol name and symbol address
5707 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5708 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'"
5709
5710 # Handle CRLF in mingw tool chain
5711 opt_cr=
5712 case $build_os in
5713 mingw*)
5714   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5715   ;;
5716 esac
5717
5718 # Try without a prefix underscore, then with it.
5719 for ac_symprfx in "" "_"; do
5720
5721   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5722   symxfrm="\\1 $ac_symprfx\\2 \\2"
5723
5724   # Write the raw and C identifiers.
5725   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5726     # Fake it for dumpbin and say T for any non-static function
5727     # and D for any global variable.
5728     # Also find C++ and __fastcall symbols from MSVC++,
5729     # which start with @ or ?.
5730     lt_cv_sys_global_symbol_pipe="$AWK '"\
5731 "     {last_section=section; section=\$ 3};"\
5732 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5733 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5734 "     \$ 0!~/External *\|/{next};"\
5735 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5736 "     {if(hide[section]) next};"\
5737 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5738 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5739 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5740 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5741 "     ' prfx=^$ac_symprfx"
5742   else
5743     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5744   fi
5745   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5746
5747   # Check to see that the pipe works correctly.
5748   pipe_works=no
5749
5750   rm -f conftest*
5751   cat > conftest.$ac_ext <<_LT_EOF
5752 #ifdef __cplusplus
5753 extern "C" {
5754 #endif
5755 char nm_test_var;
5756 void nm_test_func(void);
5757 void nm_test_func(void){}
5758 #ifdef __cplusplus
5759 }
5760 #endif
5761 int main(){nm_test_var='a';nm_test_func();return(0);}
5762 _LT_EOF
5763
5764   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5765   (eval $ac_compile) 2>&5
5766   ac_status=$?
5767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5768   test $ac_status = 0; }; then
5769     # Now try to grab the symbols.
5770     nlist=conftest.nm
5771     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5772   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5773   ac_status=$?
5774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775   test $ac_status = 0; } && test -s "$nlist"; then
5776       # Try sorting and uniquifying the output.
5777       if sort "$nlist" | uniq > "$nlist"T; then
5778         mv -f "$nlist"T "$nlist"
5779       else
5780         rm -f "$nlist"T
5781       fi
5782
5783       # Make sure that we snagged all the symbols we need.
5784       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5785         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5786           cat <<_LT_EOF > conftest.$ac_ext
5787 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5788 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5789 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5790    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5791 # define LT_DLSYM_CONST
5792 #elif defined(__osf__)
5793 /* This system does not cope well with relocations in const data.  */
5794 # define LT_DLSYM_CONST
5795 #else
5796 # define LT_DLSYM_CONST const
5797 #endif
5798
5799 #ifdef __cplusplus
5800 extern "C" {
5801 #endif
5802
5803 _LT_EOF
5804           # Now generate the symbol file.
5805           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5806
5807           cat <<_LT_EOF >> conftest.$ac_ext
5808
5809 /* The mapping between symbol names and symbols.  */
5810 LT_DLSYM_CONST struct {
5811   const char *name;
5812   void       *address;
5813 }
5814 lt__PROGRAM__LTX_preloaded_symbols[] =
5815 {
5816   { "@PROGRAM@", (void *) 0 },
5817 _LT_EOF
5818           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5819           cat <<\_LT_EOF >> conftest.$ac_ext
5820   {0, (void *) 0}
5821 };
5822
5823 /* This works around a problem in FreeBSD linker */
5824 #ifdef FREEBSD_WORKAROUND
5825 static const void *lt_preloaded_setup() {
5826   return lt__PROGRAM__LTX_preloaded_symbols;
5827 }
5828 #endif
5829
5830 #ifdef __cplusplus
5831 }
5832 #endif
5833 _LT_EOF
5834           # Now try linking the two files.
5835           mv conftest.$ac_objext conftstm.$ac_objext
5836           lt_globsym_save_LIBS=$LIBS
5837           lt_globsym_save_CFLAGS=$CFLAGS
5838           LIBS="conftstm.$ac_objext"
5839           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5840           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5841   (eval $ac_link) 2>&5
5842   ac_status=$?
5843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5845             pipe_works=yes
5846           fi
5847           LIBS=$lt_globsym_save_LIBS
5848           CFLAGS=$lt_globsym_save_CFLAGS
5849         else
5850           echo "cannot find nm_test_func in $nlist" >&5
5851         fi
5852       else
5853         echo "cannot find nm_test_var in $nlist" >&5
5854       fi
5855     else
5856       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5857     fi
5858   else
5859     echo "$progname: failed program was:" >&5
5860     cat conftest.$ac_ext >&5
5861   fi
5862   rm -rf conftest* conftst*
5863
5864   # Do not use the global_symbol_pipe unless it works.
5865   if test "$pipe_works" = yes; then
5866     break
5867   else
5868     lt_cv_sys_global_symbol_pipe=
5869   fi
5870 done
5871
5872 fi
5873
5874 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5875   lt_cv_sys_global_symbol_to_cdecl=
5876 fi
5877 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5879 $as_echo "failed" >&6; }
5880 else
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5882 $as_echo "ok" >&6; }
5883 fi
5884
5885 # Response file support.
5886 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5887   nm_file_list_spec='@'
5888 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5889   nm_file_list_spec='@'
5890 fi
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5919 $as_echo_n "checking for sysroot... " >&6; }
5920
5921 # Check whether --with-sysroot was given.
5922 if test "${with_sysroot+set}" = set; then :
5923   withval=$with_sysroot;
5924 else
5925   with_sysroot=no
5926 fi
5927
5928
5929 lt_sysroot=
5930 case ${with_sysroot} in #(
5931  yes)
5932    if test "$GCC" = yes; then
5933      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5934    fi
5935    ;; #(
5936  /*)
5937    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5938    ;; #(
5939  no|'')
5940    ;; #(
5941  *)
5942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5943 $as_echo "${with_sysroot}" >&6; }
5944    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5945    ;;
5946 esac
5947
5948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5949 $as_echo "${lt_sysroot:-no}" >&6; }
5950
5951
5952
5953
5954
5955 # Check whether --enable-libtool-lock was given.
5956 if test "${enable_libtool_lock+set}" = set; then :
5957   enableval=$enable_libtool_lock;
5958 fi
5959
5960 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5961
5962 # Some flags need to be propagated to the compiler or linker for good
5963 # libtool support.
5964 case $host in
5965 ia64-*-hpux*)
5966   # Find out which ABI we are using.
5967   echo 'int i;' > conftest.$ac_ext
5968   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5969   (eval $ac_compile) 2>&5
5970   ac_status=$?
5971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972   test $ac_status = 0; }; then
5973     case `/usr/bin/file conftest.$ac_objext` in
5974       *ELF-32*)
5975         HPUX_IA64_MODE="32"
5976         ;;
5977       *ELF-64*)
5978         HPUX_IA64_MODE="64"
5979         ;;
5980     esac
5981   fi
5982   rm -rf conftest*
5983   ;;
5984 *-*-irix6*)
5985   # Find out which ABI we are using.
5986   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5987   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5988   (eval $ac_compile) 2>&5
5989   ac_status=$?
5990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991   test $ac_status = 0; }; then
5992     if test "$lt_cv_prog_gnu_ld" = yes; then
5993       case `/usr/bin/file conftest.$ac_objext` in
5994         *32-bit*)
5995           LD="${LD-ld} -melf32bsmip"
5996           ;;
5997         *N32*)
5998           LD="${LD-ld} -melf32bmipn32"
5999           ;;
6000         *64-bit*)
6001           LD="${LD-ld} -melf64bmip"
6002         ;;
6003       esac
6004     else
6005       case `/usr/bin/file conftest.$ac_objext` in
6006         *32-bit*)
6007           LD="${LD-ld} -32"
6008           ;;
6009         *N32*)
6010           LD="${LD-ld} -n32"
6011           ;;
6012         *64-bit*)
6013           LD="${LD-ld} -64"
6014           ;;
6015       esac
6016     fi
6017   fi
6018   rm -rf conftest*
6019   ;;
6020
6021 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6022 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6023   # Find out which ABI we are using.
6024   echo 'int i;' > conftest.$ac_ext
6025   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6026   (eval $ac_compile) 2>&5
6027   ac_status=$?
6028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029   test $ac_status = 0; }; then
6030     case `/usr/bin/file conftest.o` in
6031       *32-bit*)
6032         case $host in
6033           x86_64-*kfreebsd*-gnu)
6034             LD="${LD-ld} -m elf_i386_fbsd"
6035             ;;
6036           x86_64-*linux*)
6037             case `/usr/bin/file conftest.o` in
6038               *x86-64*)
6039                 LD="${LD-ld} -m elf32_x86_64"
6040                 ;;
6041               *)
6042                 LD="${LD-ld} -m elf_i386"
6043                 ;;
6044             esac
6045             ;;
6046           powerpc64le-*)
6047             LD="${LD-ld} -m elf32lppclinux"
6048             ;;
6049           powerpc64-*)
6050             LD="${LD-ld} -m elf32ppclinux"
6051             ;;
6052           s390x-*linux*)
6053             LD="${LD-ld} -m elf_s390"
6054             ;;
6055           sparc64-*linux*)
6056             LD="${LD-ld} -m elf32_sparc"
6057             ;;
6058         esac
6059         ;;
6060       *64-bit*)
6061         case $host in
6062           x86_64-*kfreebsd*-gnu)
6063             LD="${LD-ld} -m elf_x86_64_fbsd"
6064             ;;
6065           x86_64-*linux*)
6066             LD="${LD-ld} -m elf_x86_64"
6067             ;;
6068           powerpcle-*)
6069             LD="${LD-ld} -m elf64lppc"
6070             ;;
6071           powerpc-*)
6072             LD="${LD-ld} -m elf64ppc"
6073             ;;
6074           s390*-*linux*|s390*-*tpf*)
6075             LD="${LD-ld} -m elf64_s390"
6076             ;;
6077           sparc*-*linux*)
6078             LD="${LD-ld} -m elf64_sparc"
6079             ;;
6080         esac
6081         ;;
6082     esac
6083   fi
6084   rm -rf conftest*
6085   ;;
6086
6087 *-*-sco3.2v5*)
6088   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6089   SAVE_CFLAGS="$CFLAGS"
6090   CFLAGS="$CFLAGS -belf"
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6092 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6093 if ${lt_cv_cc_needs_belf+:} false; then :
6094   $as_echo_n "(cached) " >&6
6095 else
6096   ac_ext=c
6097 ac_cpp='$CPP $CPPFLAGS'
6098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6101
6102      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h.  */
6104
6105 int
6106 main ()
6107 {
6108
6109   ;
6110   return 0;
6111 }
6112 _ACEOF
6113 if ac_fn_c_try_link "$LINENO"; then :
6114   lt_cv_cc_needs_belf=yes
6115 else
6116   lt_cv_cc_needs_belf=no
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext \
6119     conftest$ac_exeext conftest.$ac_ext
6120      ac_ext=c
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6125
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6128 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6129   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6130     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6131     CFLAGS="$SAVE_CFLAGS"
6132   fi
6133   ;;
6134 *-*solaris*)
6135   # Find out which ABI we are using.
6136   echo 'int i;' > conftest.$ac_ext
6137   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6138   (eval $ac_compile) 2>&5
6139   ac_status=$?
6140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141   test $ac_status = 0; }; then
6142     case `/usr/bin/file conftest.o` in
6143     *64-bit*)
6144       case $lt_cv_prog_gnu_ld in
6145       yes*)
6146         case $host in
6147         i?86-*-solaris*)
6148           LD="${LD-ld} -m elf_x86_64"
6149           ;;
6150         sparc*-*-solaris*)
6151           LD="${LD-ld} -m elf64_sparc"
6152           ;;
6153         esac
6154         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6155         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6156           LD="${LD-ld}_sol2"
6157         fi
6158         ;;
6159       *)
6160         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6161           LD="${LD-ld} -64"
6162         fi
6163         ;;
6164       esac
6165       ;;
6166     esac
6167   fi
6168   rm -rf conftest*
6169   ;;
6170 esac
6171
6172 need_locks="$enable_libtool_lock"
6173
6174 if test -n "$ac_tool_prefix"; then
6175   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6176 set dummy ${ac_tool_prefix}mt; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   if test -n "$MANIFEST_TOOL"; then
6183   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190     for ac_exec_ext in '' $ac_executable_extensions; do
6191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197   done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6203 if test -n "$MANIFEST_TOOL"; then
6204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6205 $as_echo "$MANIFEST_TOOL" >&6; }
6206 else
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209 fi
6210
6211
6212 fi
6213 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6214   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6215   # Extract the first word of "mt", so it can be a program name with args.
6216 set dummy mt; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6220   $as_echo_n "(cached) " >&6
6221 else
6222   if test -n "$ac_ct_MANIFEST_TOOL"; then
6223   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230     for ac_exec_ext in '' $ac_executable_extensions; do
6231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234     break 2
6235   fi
6236 done
6237   done
6238 IFS=$as_save_IFS
6239
6240 fi
6241 fi
6242 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6243 if test -n "$ac_ct_MANIFEST_TOOL"; then
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6245 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6246 else
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6249 fi
6250
6251   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6252     MANIFEST_TOOL=":"
6253   else
6254     case $cross_compiling:$ac_tool_warned in
6255 yes:)
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6258 ac_tool_warned=yes ;;
6259 esac
6260     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6261   fi
6262 else
6263   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6264 fi
6265
6266 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6268 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6269 if ${lt_cv_path_mainfest_tool+:} false; then :
6270   $as_echo_n "(cached) " >&6
6271 else
6272   lt_cv_path_mainfest_tool=no
6273   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6274   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6275   cat conftest.err >&5
6276   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6277     lt_cv_path_mainfest_tool=yes
6278   fi
6279   rm -f conftest*
6280 fi
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6282 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6283 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6284   MANIFEST_TOOL=:
6285 fi
6286
6287
6288
6289
6290
6291
6292   case $host_os in
6293     rhapsody* | darwin*)
6294     if test -n "$ac_tool_prefix"; then
6295   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6300   $as_echo_n "(cached) " >&6
6301 else
6302   if test -n "$DSYMUTIL"; then
6303   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310     for ac_exec_ext in '' $ac_executable_extensions; do
6311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317   done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6323 if test -n "$DSYMUTIL"; then
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6325 $as_echo "$DSYMUTIL" >&6; }
6326 else
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331
6332 fi
6333 if test -z "$ac_cv_prog_DSYMUTIL"; then
6334   ac_ct_DSYMUTIL=$DSYMUTIL
6335   # Extract the first word of "dsymutil", so it can be a program name with args.
6336 set dummy dsymutil; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   if test -n "$ac_ct_DSYMUTIL"; then
6343   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_exec_ext in '' $ac_executable_extensions; do
6351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357   done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6363 if test -n "$ac_ct_DSYMUTIL"; then
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6365 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6366 else
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371   if test "x$ac_ct_DSYMUTIL" = x; then
6372     DSYMUTIL=":"
6373   else
6374     case $cross_compiling:$ac_tool_warned in
6375 yes:)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6379 esac
6380     DSYMUTIL=$ac_ct_DSYMUTIL
6381   fi
6382 else
6383   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6384 fi
6385
6386     if test -n "$ac_tool_prefix"; then
6387   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6388 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_NMEDIT+:} false; then :
6392   $as_echo_n "(cached) " >&6
6393 else
6394   if test -n "$NMEDIT"; then
6395   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402     for ac_exec_ext in '' $ac_executable_extensions; do
6403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409   done
6410 IFS=$as_save_IFS
6411
6412 fi
6413 fi
6414 NMEDIT=$ac_cv_prog_NMEDIT
6415 if test -n "$NMEDIT"; then
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6417 $as_echo "$NMEDIT" >&6; }
6418 else
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422
6423
6424 fi
6425 if test -z "$ac_cv_prog_NMEDIT"; then
6426   ac_ct_NMEDIT=$NMEDIT
6427   # Extract the first word of "nmedit", so it can be a program name with args.
6428 set dummy nmedit; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   if test -n "$ac_ct_NMEDIT"; then
6435   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442     for ac_exec_ext in '' $ac_executable_extensions; do
6443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449   done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6455 if test -n "$ac_ct_NMEDIT"; then
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6457 $as_echo "$ac_ct_NMEDIT" >&6; }
6458 else
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463   if test "x$ac_ct_NMEDIT" = x; then
6464     NMEDIT=":"
6465   else
6466     case $cross_compiling:$ac_tool_warned in
6467 yes:)
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470 ac_tool_warned=yes ;;
6471 esac
6472     NMEDIT=$ac_ct_NMEDIT
6473   fi
6474 else
6475   NMEDIT="$ac_cv_prog_NMEDIT"
6476 fi
6477
6478     if test -n "$ac_tool_prefix"; then
6479   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if ${ac_cv_prog_LIPO+:} false; then :
6484   $as_echo_n "(cached) " >&6
6485 else
6486   if test -n "$LIPO"; then
6487   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494     for ac_exec_ext in '' $ac_executable_extensions; do
6495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501   done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 LIPO=$ac_cv_prog_LIPO
6507 if test -n "$LIPO"; then
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6509 $as_echo "$LIPO" >&6; }
6510 else
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515
6516 fi
6517 if test -z "$ac_cv_prog_LIPO"; then
6518   ac_ct_LIPO=$LIPO
6519   # Extract the first word of "lipo", so it can be a program name with args.
6520 set dummy lipo; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6524   $as_echo_n "(cached) " >&6
6525 else
6526   if test -n "$ac_ct_LIPO"; then
6527   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534     for ac_exec_ext in '' $ac_executable_extensions; do
6535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536     ac_cv_prog_ac_ct_LIPO="lipo"
6537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541   done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6547 if test -n "$ac_ct_LIPO"; then
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6549 $as_echo "$ac_ct_LIPO" >&6; }
6550 else
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6553 fi
6554
6555   if test "x$ac_ct_LIPO" = x; then
6556     LIPO=":"
6557   else
6558     case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564     LIPO=$ac_ct_LIPO
6565   fi
6566 else
6567   LIPO="$ac_cv_prog_LIPO"
6568 fi
6569
6570     if test -n "$ac_tool_prefix"; then
6571   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}otool; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_OTOOL+:} false; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578   if test -n "$OTOOL"; then
6579   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586     for ac_exec_ext in '' $ac_executable_extensions; do
6587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593   done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 OTOOL=$ac_cv_prog_OTOOL
6599 if test -n "$OTOOL"; then
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6601 $as_echo "$OTOOL" >&6; }
6602 else
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if test -z "$ac_cv_prog_OTOOL"; then
6610   ac_ct_OTOOL=$OTOOL
6611   # Extract the first word of "otool", so it can be a program name with args.
6612 set dummy otool; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6616   $as_echo_n "(cached) " >&6
6617 else
6618   if test -n "$ac_ct_OTOOL"; then
6619   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626     for ac_exec_ext in '' $ac_executable_extensions; do
6627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628     ac_cv_prog_ac_ct_OTOOL="otool"
6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633   done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6639 if test -n "$ac_ct_OTOOL"; then
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6641 $as_echo "$ac_ct_OTOOL" >&6; }
6642 else
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646
6647   if test "x$ac_ct_OTOOL" = x; then
6648     OTOOL=":"
6649   else
6650     case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656     OTOOL=$ac_ct_OTOOL
6657   fi
6658 else
6659   OTOOL="$ac_cv_prog_OTOOL"
6660 fi
6661
6662     if test -n "$ac_tool_prefix"; then
6663   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6664 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_OTOOL64+:} false; then :
6668   $as_echo_n "(cached) " >&6
6669 else
6670   if test -n "$OTOOL64"; then
6671   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678     for ac_exec_ext in '' $ac_executable_extensions; do
6679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685   done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 OTOOL64=$ac_cv_prog_OTOOL64
6691 if test -n "$OTOOL64"; then
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6693 $as_echo "$OTOOL64" >&6; }
6694 else
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699
6700 fi
6701 if test -z "$ac_cv_prog_OTOOL64"; then
6702   ac_ct_OTOOL64=$OTOOL64
6703   # Extract the first word of "otool64", so it can be a program name with args.
6704 set dummy otool64; ac_word=$2
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 $as_echo_n "checking for $ac_word... " >&6; }
6707 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6708   $as_echo_n "(cached) " >&6
6709 else
6710   if test -n "$ac_ct_OTOOL64"; then
6711   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716   IFS=$as_save_IFS
6717   test -z "$as_dir" && as_dir=.
6718     for ac_exec_ext in '' $ac_executable_extensions; do
6719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720     ac_cv_prog_ac_ct_OTOOL64="otool64"
6721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722     break 2
6723   fi
6724 done
6725   done
6726 IFS=$as_save_IFS
6727
6728 fi
6729 fi
6730 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6731 if test -n "$ac_ct_OTOOL64"; then
6732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6733 $as_echo "$ac_ct_OTOOL64" >&6; }
6734 else
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6737 fi
6738
6739   if test "x$ac_ct_OTOOL64" = x; then
6740     OTOOL64=":"
6741   else
6742     case $cross_compiling:$ac_tool_warned in
6743 yes:)
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746 ac_tool_warned=yes ;;
6747 esac
6748     OTOOL64=$ac_ct_OTOOL64
6749   fi
6750 else
6751   OTOOL64="$ac_cv_prog_OTOOL64"
6752 fi
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6781 $as_echo_n "checking for -single_module linker flag... " >&6; }
6782 if ${lt_cv_apple_cc_single_mod+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   lt_cv_apple_cc_single_mod=no
6786       if test -z "${LT_MULTI_MODULE}"; then
6787         # By default we will add the -single_module flag. You can override
6788         # by either setting the environment variable LT_MULTI_MODULE
6789         # non-empty at configure time, or by adding -multi_module to the
6790         # link flags.
6791         rm -rf libconftest.dylib*
6792         echo "int foo(void){return 1;}" > conftest.c
6793         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6794 -dynamiclib -Wl,-single_module conftest.c" >&5
6795         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6796           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6797         _lt_result=$?
6798         # If there is a non-empty error log, and "single_module"
6799         # appears in it, assume the flag caused a linker warning
6800         if test -s conftest.err && $GREP single_module conftest.err; then
6801           cat conftest.err >&5
6802         # Otherwise, if the output was created with a 0 exit code from
6803         # the compiler, it worked.
6804         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6805           lt_cv_apple_cc_single_mod=yes
6806         else
6807           cat conftest.err >&5
6808         fi
6809         rm -rf libconftest.dylib*
6810         rm -f conftest.*
6811       fi
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6814 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6815
6816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6817 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6818 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   lt_cv_ld_exported_symbols_list=no
6822       save_LDFLAGS=$LDFLAGS
6823       echo "_main" > conftest.sym
6824       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6825       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h.  */
6827
6828 int
6829 main ()
6830 {
6831
6832   ;
6833   return 0;
6834 }
6835 _ACEOF
6836 if ac_fn_c_try_link "$LINENO"; then :
6837   lt_cv_ld_exported_symbols_list=yes
6838 else
6839   lt_cv_ld_exported_symbols_list=no
6840 fi
6841 rm -f core conftest.err conftest.$ac_objext \
6842     conftest$ac_exeext conftest.$ac_ext
6843         LDFLAGS="$save_LDFLAGS"
6844
6845 fi
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6847 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6848
6849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6850 $as_echo_n "checking for -force_load linker flag... " >&6; }
6851 if ${lt_cv_ld_force_load+:} false; then :
6852   $as_echo_n "(cached) " >&6
6853 else
6854   lt_cv_ld_force_load=no
6855       cat > conftest.c << _LT_EOF
6856 int forced_loaded() { return 2;}
6857 _LT_EOF
6858       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6859       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6860       echo "$AR cru libconftest.a conftest.o" >&5
6861       $AR cru libconftest.a conftest.o 2>&5
6862       echo "$RANLIB libconftest.a" >&5
6863       $RANLIB libconftest.a 2>&5
6864       cat > conftest.c << _LT_EOF
6865 int main() { return 0;}
6866 _LT_EOF
6867       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6868       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6869       _lt_result=$?
6870       if test -s conftest.err && $GREP force_load conftest.err; then
6871         cat conftest.err >&5
6872       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6873         lt_cv_ld_force_load=yes
6874       else
6875         cat conftest.err >&5
6876       fi
6877         rm -f conftest.err libconftest.a conftest conftest.c
6878         rm -rf conftest.dSYM
6879
6880 fi
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6882 $as_echo "$lt_cv_ld_force_load" >&6; }
6883     case $host_os in
6884     rhapsody* | darwin1.[012])
6885       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6886     darwin1.*)
6887       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6888     darwin*) # darwin 5.x on
6889       # if running on 10.5 or later, the deployment target defaults
6890       # to the OS version, if on x86, and 10.4, the deployment
6891       # target defaults to 10.4. Don't you love it?
6892       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6893         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6894           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6895         10.[012]*)
6896           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6897         10.*)
6898           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6899       esac
6900     ;;
6901   esac
6902     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6903       _lt_dar_single_mod='$single_module'
6904     fi
6905     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6906       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6907     else
6908       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6909     fi
6910     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6911       _lt_dsymutil='~$DSYMUTIL $lib || :'
6912     else
6913       _lt_dsymutil=
6914     fi
6915     ;;
6916   esac
6917
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6920 $as_echo_n "checking for ANSI C header files... " >&6; }
6921 if ${ac_cv_header_stdc+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h.  */
6926 #include <stdlib.h>
6927 #include <stdarg.h>
6928 #include <string.h>
6929 #include <float.h>
6930
6931 int
6932 main ()
6933 {
6934
6935   ;
6936   return 0;
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940   ac_cv_header_stdc=yes
6941 else
6942   ac_cv_header_stdc=no
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945
6946 if test $ac_cv_header_stdc = yes; then
6947   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h.  */
6950 #include <string.h>
6951
6952 _ACEOF
6953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6954   $EGREP "memchr" >/dev/null 2>&1; then :
6955
6956 else
6957   ac_cv_header_stdc=no
6958 fi
6959 rm -f conftest*
6960
6961 fi
6962
6963 if test $ac_cv_header_stdc = yes; then
6964   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h.  */
6967 #include <stdlib.h>
6968
6969 _ACEOF
6970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971   $EGREP "free" >/dev/null 2>&1; then :
6972
6973 else
6974   ac_cv_header_stdc=no
6975 fi
6976 rm -f conftest*
6977
6978 fi
6979
6980 if test $ac_cv_header_stdc = yes; then
6981   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6982   if test "$cross_compiling" = yes; then :
6983   :
6984 else
6985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h.  */
6987 #include <ctype.h>
6988 #include <stdlib.h>
6989 #if ((' ' & 0x0FF) == 0x020)
6990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6992 #else
6993 # define ISLOWER(c) \
6994                    (('a' <= (c) && (c) <= 'i') \
6995                      || ('j' <= (c) && (c) <= 'r') \
6996                      || ('s' <= (c) && (c) <= 'z'))
6997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6998 #endif
6999
7000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7001 int
7002 main ()
7003 {
7004   int i;
7005   for (i = 0; i < 256; i++)
7006     if (XOR (islower (i), ISLOWER (i))
7007         || toupper (i) != TOUPPER (i))
7008       return 2;
7009   return 0;
7010 }
7011 _ACEOF
7012 if ac_fn_c_try_run "$LINENO"; then :
7013
7014 else
7015   ac_cv_header_stdc=no
7016 fi
7017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7018   conftest.$ac_objext conftest.beam conftest.$ac_ext
7019 fi
7020
7021 fi
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7024 $as_echo "$ac_cv_header_stdc" >&6; }
7025 if test $ac_cv_header_stdc = yes; then
7026
7027 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7028
7029 fi
7030
7031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7033                   inttypes.h stdint.h unistd.h
7034 do :
7035   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7036 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7037 "
7038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7039   cat >>confdefs.h <<_ACEOF
7040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7041 _ACEOF
7042
7043 fi
7044
7045 done
7046
7047
7048 for ac_header in dlfcn.h
7049 do :
7050   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7051 "
7052 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7053   cat >>confdefs.h <<_ACEOF
7054 #define HAVE_DLFCN_H 1
7055 _ACEOF
7056
7057 fi
7058
7059 done
7060
7061
7062
7063
7064
7065 # Set options
7066 enable_win32_dll=yes
7067
7068 case $host in
7069 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7070   if test -n "$ac_tool_prefix"; then
7071   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}as; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_AS+:} false; then :
7076   $as_echo_n "(cached) " >&6
7077 else
7078   if test -n "$AS"; then
7079   ac_cv_prog_AS="$AS" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086     for ac_exec_ext in '' $ac_executable_extensions; do
7087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088     ac_cv_prog_AS="${ac_tool_prefix}as"
7089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093   done
7094 IFS=$as_save_IFS
7095
7096 fi
7097 fi
7098 AS=$ac_cv_prog_AS
7099 if test -n "$AS"; then
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7101 $as_echo "$AS" >&6; }
7102 else
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7105 fi
7106
7107
7108 fi
7109 if test -z "$ac_cv_prog_AS"; then
7110   ac_ct_AS=$AS
7111   # Extract the first word of "as", so it can be a program name with args.
7112 set dummy as; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118   if test -n "$ac_ct_AS"; then
7119   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124   IFS=$as_save_IFS
7125   test -z "$as_dir" && as_dir=.
7126     for ac_exec_ext in '' $ac_executable_extensions; do
7127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128     ac_cv_prog_ac_ct_AS="as"
7129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130     break 2
7131   fi
7132 done
7133   done
7134 IFS=$as_save_IFS
7135
7136 fi
7137 fi
7138 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7139 if test -n "$ac_ct_AS"; then
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7141 $as_echo "$ac_ct_AS" >&6; }
7142 else
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146
7147   if test "x$ac_ct_AS" = x; then
7148     AS="false"
7149   else
7150     case $cross_compiling:$ac_tool_warned in
7151 yes:)
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7154 ac_tool_warned=yes ;;
7155 esac
7156     AS=$ac_ct_AS
7157   fi
7158 else
7159   AS="$ac_cv_prog_AS"
7160 fi
7161
7162   if test -n "$ac_tool_prefix"; then
7163   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_DLLTOOL+:} false; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170   if test -n "$DLLTOOL"; then
7171   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178     for ac_exec_ext in '' $ac_executable_extensions; do
7179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185   done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 DLLTOOL=$ac_cv_prog_DLLTOOL
7191 if test -n "$DLLTOOL"; then
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7193 $as_echo "$DLLTOOL" >&6; }
7194 else
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 fi
7198
7199
7200 fi
7201 if test -z "$ac_cv_prog_DLLTOOL"; then
7202   ac_ct_DLLTOOL=$DLLTOOL
7203   # Extract the first word of "dlltool", so it can be a program name with args.
7204 set dummy dlltool; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   if test -n "$ac_ct_DLLTOOL"; then
7211   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218     for ac_exec_ext in '' $ac_executable_extensions; do
7219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225   done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7231 if test -n "$ac_ct_DLLTOOL"; then
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7233 $as_echo "$ac_ct_DLLTOOL" >&6; }
7234 else
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239   if test "x$ac_ct_DLLTOOL" = x; then
7240     DLLTOOL="false"
7241   else
7242     case $cross_compiling:$ac_tool_warned in
7243 yes:)
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7246 ac_tool_warned=yes ;;
7247 esac
7248     DLLTOOL=$ac_ct_DLLTOOL
7249   fi
7250 else
7251   DLLTOOL="$ac_cv_prog_DLLTOOL"
7252 fi
7253
7254   if test -n "$ac_tool_prefix"; then
7255   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if ${ac_cv_prog_OBJDUMP+:} false; then :
7260   $as_echo_n "(cached) " >&6
7261 else
7262   if test -n "$OBJDUMP"; then
7263   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270     for ac_exec_ext in '' $ac_executable_extensions; do
7271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277   done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 OBJDUMP=$ac_cv_prog_OBJDUMP
7283 if test -n "$OBJDUMP"; then
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7285 $as_echo "$OBJDUMP" >&6; }
7286 else
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7289 fi
7290
7291
7292 fi
7293 if test -z "$ac_cv_prog_OBJDUMP"; then
7294   ac_ct_OBJDUMP=$OBJDUMP
7295   # Extract the first word of "objdump", so it can be a program name with args.
7296 set dummy objdump; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 $as_echo_n "checking for $ac_word... " >&6; }
7299 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   if test -n "$ac_ct_OBJDUMP"; then
7303   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310     for ac_exec_ext in '' $ac_executable_extensions; do
7311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317   done
7318 IFS=$as_save_IFS
7319
7320 fi
7321 fi
7322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7323 if test -n "$ac_ct_OBJDUMP"; then
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7325 $as_echo "$ac_ct_OBJDUMP" >&6; }
7326 else
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7329 fi
7330
7331   if test "x$ac_ct_OBJDUMP" = x; then
7332     OBJDUMP="false"
7333   else
7334     case $cross_compiling:$ac_tool_warned in
7335 yes:)
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338 ac_tool_warned=yes ;;
7339 esac
7340     OBJDUMP=$ac_ct_OBJDUMP
7341   fi
7342 else
7343   OBJDUMP="$ac_cv_prog_OBJDUMP"
7344 fi
7345
7346   ;;
7347 esac
7348
7349 test -z "$AS" && AS=as
7350
7351
7352
7353
7354
7355 test -z "$DLLTOOL" && DLLTOOL=dlltool
7356
7357
7358
7359
7360
7361 test -z "$OBJDUMP" && OBJDUMP=objdump
7362
7363
7364
7365
7366
7367
7368
7369         enable_dlopen=no
7370
7371
7372
7373             # Check whether --enable-shared was given.
7374 if test "${enable_shared+set}" = set; then :
7375   enableval=$enable_shared; p=${PACKAGE-default}
7376     case $enableval in
7377     yes) enable_shared=yes ;;
7378     no) enable_shared=no ;;
7379     *)
7380       enable_shared=no
7381       # Look at the argument we got.  We use all the common list separators.
7382       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7383       for pkg in $enableval; do
7384         IFS="$lt_save_ifs"
7385         if test "X$pkg" = "X$p"; then
7386           enable_shared=yes
7387         fi
7388       done
7389       IFS="$lt_save_ifs"
7390       ;;
7391     esac
7392 else
7393   enable_shared=yes
7394 fi
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404   # Check whether --enable-static was given.
7405 if test "${enable_static+set}" = set; then :
7406   enableval=$enable_static; p=${PACKAGE-default}
7407     case $enableval in
7408     yes) enable_static=yes ;;
7409     no) enable_static=no ;;
7410     *)
7411      enable_static=no
7412       # Look at the argument we got.  We use all the common list separators.
7413       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414       for pkg in $enableval; do
7415         IFS="$lt_save_ifs"
7416         if test "X$pkg" = "X$p"; then
7417           enable_static=yes
7418         fi
7419       done
7420       IFS="$lt_save_ifs"
7421       ;;
7422     esac
7423 else
7424   enable_static=yes
7425 fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436 # Check whether --with-pic was given.
7437 if test "${with_pic+set}" = set; then :
7438   withval=$with_pic; lt_p=${PACKAGE-default}
7439     case $withval in
7440     yes|no) pic_mode=$withval ;;
7441     *)
7442       pic_mode=default
7443       # Look at the argument we got.  We use all the common list separators.
7444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7445       for lt_pkg in $withval; do
7446         IFS="$lt_save_ifs"
7447         if test "X$lt_pkg" = "X$lt_p"; then
7448           pic_mode=yes
7449         fi
7450       done
7451       IFS="$lt_save_ifs"
7452       ;;
7453     esac
7454 else
7455   pic_mode=default
7456 fi
7457
7458
7459 test -z "$pic_mode" && pic_mode=default
7460
7461
7462
7463
7464
7465
7466
7467   # Check whether --enable-fast-install was given.
7468 if test "${enable_fast_install+set}" = set; then :
7469   enableval=$enable_fast_install; p=${PACKAGE-default}
7470     case $enableval in
7471     yes) enable_fast_install=yes ;;
7472     no) enable_fast_install=no ;;
7473     *)
7474       enable_fast_install=no
7475       # Look at the argument we got.  We use all the common list separators.
7476       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7477       for pkg in $enableval; do
7478         IFS="$lt_save_ifs"
7479         if test "X$pkg" = "X$p"; then
7480           enable_fast_install=yes
7481         fi
7482       done
7483       IFS="$lt_save_ifs"
7484       ;;
7485     esac
7486 else
7487   enable_fast_install=yes
7488 fi
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500 # This can be used to rebuild libtool when needed
7501 LIBTOOL_DEPS="$ltmain"
7502
7503 # Always use our own libtool.
7504 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535 test -z "$LN_S" && LN_S="ln -s"
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550 if test -n "${ZSH_VERSION+set}" ; then
7551    setopt NO_GLOB_SUBST
7552 fi
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7555 $as_echo_n "checking for objdir... " >&6; }
7556 if ${lt_cv_objdir+:} false; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559   rm -f .libs 2>/dev/null
7560 mkdir .libs 2>/dev/null
7561 if test -d .libs; then
7562   lt_cv_objdir=.libs
7563 else
7564   # MS-DOS does not allow filenames that begin with a dot.
7565   lt_cv_objdir=_libs
7566 fi
7567 rmdir .libs 2>/dev/null
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7570 $as_echo "$lt_cv_objdir" >&6; }
7571 objdir=$lt_cv_objdir
7572
7573
7574
7575
7576
7577 cat >>confdefs.h <<_ACEOF
7578 #define LT_OBJDIR "$lt_cv_objdir/"
7579 _ACEOF
7580
7581
7582
7583
7584 case $host_os in
7585 aix3*)
7586   # AIX sometimes has problems with the GCC collect2 program.  For some
7587   # reason, if we set the COLLECT_NAMES environment variable, the problems
7588   # vanish in a puff of smoke.
7589   if test "X${COLLECT_NAMES+set}" != Xset; then
7590     COLLECT_NAMES=
7591     export COLLECT_NAMES
7592   fi
7593   ;;
7594 esac
7595
7596 # Global variables:
7597 ofile=libtool
7598 can_build_shared=yes
7599
7600 # All known linkers require a `.a' archive for static linking (except MSVC,
7601 # which needs '.lib').
7602 libext=a
7603
7604 with_gnu_ld="$lt_cv_prog_gnu_ld"
7605
7606 old_CC="$CC"
7607 old_CFLAGS="$CFLAGS"
7608
7609 # Set sane defaults for various variables
7610 test -z "$CC" && CC=cc
7611 test -z "$LTCC" && LTCC=$CC
7612 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7613 test -z "$LD" && LD=ld
7614 test -z "$ac_objext" && ac_objext=o
7615
7616 for cc_temp in $compiler""; do
7617   case $cc_temp in
7618     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7619     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7620     \-*) ;;
7621     *) break;;
7622   esac
7623 done
7624 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7625
7626
7627 # Only perform the check for file, if the check method requires it
7628 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7629 case $deplibs_check_method in
7630 file_magic*)
7631   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7633 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7634 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   case $MAGIC_CMD in
7638 [\\/*] |  ?:[\\/]*)
7639   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7640   ;;
7641 *)
7642   lt_save_MAGIC_CMD="$MAGIC_CMD"
7643   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7644   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7645   for ac_dir in $ac_dummy; do
7646     IFS="$lt_save_ifs"
7647     test -z "$ac_dir" && ac_dir=.
7648     if test -f $ac_dir/${ac_tool_prefix}file; then
7649       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7650       if test -n "$file_magic_test_file"; then
7651         case $deplibs_check_method in
7652         "file_magic "*)
7653           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7654           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7655           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7656             $EGREP "$file_magic_regex" > /dev/null; then
7657             :
7658           else
7659             cat <<_LT_EOF 1>&2
7660
7661 *** Warning: the command libtool uses to detect shared libraries,
7662 *** $file_magic_cmd, produces output that libtool cannot recognize.
7663 *** The result is that libtool may fail to recognize shared libraries
7664 *** as such.  This will affect the creation of libtool libraries that
7665 *** depend on shared libraries, but programs linked with such libtool
7666 *** libraries will work regardless of this problem.  Nevertheless, you
7667 *** may want to report the problem to your system manager and/or to
7668 *** bug-libtool@gnu.org
7669
7670 _LT_EOF
7671           fi ;;
7672         esac
7673       fi
7674       break
7675     fi
7676   done
7677   IFS="$lt_save_ifs"
7678   MAGIC_CMD="$lt_save_MAGIC_CMD"
7679   ;;
7680 esac
7681 fi
7682
7683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684 if test -n "$MAGIC_CMD"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7686 $as_echo "$MAGIC_CMD" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692
7693
7694
7695
7696 if test -z "$lt_cv_path_MAGIC_CMD"; then
7697   if test -n "$ac_tool_prefix"; then
7698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7699 $as_echo_n "checking for file... " >&6; }
7700 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703   case $MAGIC_CMD in
7704 [\\/*] |  ?:[\\/]*)
7705   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7706   ;;
7707 *)
7708   lt_save_MAGIC_CMD="$MAGIC_CMD"
7709   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7710   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7711   for ac_dir in $ac_dummy; do
7712     IFS="$lt_save_ifs"
7713     test -z "$ac_dir" && ac_dir=.
7714     if test -f $ac_dir/file; then
7715       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7716       if test -n "$file_magic_test_file"; then
7717         case $deplibs_check_method in
7718         "file_magic "*)
7719           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7720           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7721           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7722             $EGREP "$file_magic_regex" > /dev/null; then
7723             :
7724           else
7725             cat <<_LT_EOF 1>&2
7726
7727 *** Warning: the command libtool uses to detect shared libraries,
7728 *** $file_magic_cmd, produces output that libtool cannot recognize.
7729 *** The result is that libtool may fail to recognize shared libraries
7730 *** as such.  This will affect the creation of libtool libraries that
7731 *** depend on shared libraries, but programs linked with such libtool
7732 *** libraries will work regardless of this problem.  Nevertheless, you
7733 *** may want to report the problem to your system manager and/or to
7734 *** bug-libtool@gnu.org
7735
7736 _LT_EOF
7737           fi ;;
7738         esac
7739       fi
7740       break
7741     fi
7742   done
7743   IFS="$lt_save_ifs"
7744   MAGIC_CMD="$lt_save_MAGIC_CMD"
7745   ;;
7746 esac
7747 fi
7748
7749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7750 if test -n "$MAGIC_CMD"; then
7751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7752 $as_echo "$MAGIC_CMD" >&6; }
7753 else
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7756 fi
7757
7758
7759   else
7760     MAGIC_CMD=:
7761   fi
7762 fi
7763
7764   fi
7765   ;;
7766 esac
7767
7768 # Use C for the default configuration in the libtool script
7769
7770 lt_save_CC="$CC"
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776
7777
7778 # Source file extension for C test sources.
7779 ac_ext=c
7780
7781 # Object file extension for compiled C test sources.
7782 objext=o
7783 objext=$objext
7784
7785 # Code to be used in simple compile tests
7786 lt_simple_compile_test_code="int some_variable = 0;"
7787
7788 # Code to be used in simple link tests
7789 lt_simple_link_test_code='int main(){return(0);}'
7790
7791
7792
7793
7794
7795
7796
7797 # If no C compiler was specified, use CC.
7798 LTCC=${LTCC-"$CC"}
7799
7800 # If no C compiler flags were specified, use CFLAGS.
7801 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7802
7803 # Allow CC to be a program name with arguments.
7804 compiler=$CC
7805
7806 # Save the default compiler, since it gets overwritten when the other
7807 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7808 compiler_DEFAULT=$CC
7809
7810 # save warnings/boilerplate of simple test code
7811 ac_outfile=conftest.$ac_objext
7812 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7814 _lt_compiler_boilerplate=`cat conftest.err`
7815 $RM conftest*
7816
7817 ac_outfile=conftest.$ac_objext
7818 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7820 _lt_linker_boilerplate=`cat conftest.err`
7821 $RM -r conftest*
7822
7823
7824 if test -n "$compiler"; then
7825
7826 lt_prog_compiler_no_builtin_flag=
7827
7828 if test "$GCC" = yes; then
7829   case $cc_basename in
7830   nvcc*)
7831     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7832   *)
7833     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7834   esac
7835
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7837 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7838 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   lt_cv_prog_compiler_rtti_exceptions=no
7842    ac_outfile=conftest.$ac_objext
7843    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7844    lt_compiler_flag="-fno-rtti -fno-exceptions"
7845    # Insert the option either (1) after the last *FLAGS variable, or
7846    # (2) before a word containing "conftest.", or (3) at the end.
7847    # Note that $ac_compile itself does not contain backslashes and begins
7848    # with a dollar sign (not a hyphen), so the echo should work correctly.
7849    # The option is referenced via a variable to avoid confusing sed.
7850    lt_compile=`echo "$ac_compile" | $SED \
7851    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7852    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7853    -e 's:$: $lt_compiler_flag:'`
7854    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7855    (eval "$lt_compile" 2>conftest.err)
7856    ac_status=$?
7857    cat conftest.err >&5
7858    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859    if (exit $ac_status) && test -s "$ac_outfile"; then
7860      # The compiler can only warn and ignore the option if not recognized
7861      # So say no if there are warnings other than the usual output.
7862      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7863      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7864      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7865        lt_cv_prog_compiler_rtti_exceptions=yes
7866      fi
7867    fi
7868    $RM conftest*
7869
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7872 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7873
7874 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7875     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7876 else
7877     :
7878 fi
7879
7880 fi
7881
7882
7883
7884
7885
7886
7887   lt_prog_compiler_wl=
7888 lt_prog_compiler_pic=
7889 lt_prog_compiler_static=
7890
7891
7892   if test "$GCC" = yes; then
7893     lt_prog_compiler_wl='-Wl,'
7894     lt_prog_compiler_static='-static'
7895
7896     case $host_os in
7897       aix*)
7898       # All AIX code is PIC.
7899       if test "$host_cpu" = ia64; then
7900         # AIX 5 now supports IA64 processor
7901         lt_prog_compiler_static='-Bstatic'
7902       fi
7903       ;;
7904
7905     amigaos*)
7906       case $host_cpu in
7907       powerpc)
7908             # see comment about AmigaOS4 .so support
7909             lt_prog_compiler_pic='-fPIC'
7910         ;;
7911       m68k)
7912             # FIXME: we need at least 68020 code to build shared libraries, but
7913             # adding the `-m68020' flag to GCC prevents building anything better,
7914             # like `-m68040'.
7915             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7916         ;;
7917       esac
7918       ;;
7919
7920     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7921       # PIC is the default for these OSes.
7922       ;;
7923
7924     mingw* | cygwin* | pw32* | os2* | cegcc*)
7925       # This hack is so that the source file can tell whether it is being
7926       # built for inclusion in a dll (and should export symbols for example).
7927       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7928       # (--disable-auto-import) libraries
7929       lt_prog_compiler_pic='-DDLL_EXPORT'
7930       ;;
7931
7932     darwin* | rhapsody*)
7933       # PIC is the default on this platform
7934       # Common symbols not allowed in MH_DYLIB files
7935       lt_prog_compiler_pic='-fno-common'
7936       ;;
7937
7938     haiku*)
7939       # PIC is the default for Haiku.
7940       # The "-static" flag exists, but is broken.
7941       lt_prog_compiler_static=
7942       ;;
7943
7944     hpux*)
7945       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7946       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7947       # sets the default TLS model and affects inlining.
7948       case $host_cpu in
7949       hppa*64*)
7950         # +Z the default
7951         ;;
7952       *)
7953         lt_prog_compiler_pic='-fPIC'
7954         ;;
7955       esac
7956       ;;
7957
7958     interix[3-9]*)
7959       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7960       # Instead, we relocate shared libraries at runtime.
7961       ;;
7962
7963     msdosdjgpp*)
7964       # Just because we use GCC doesn't mean we suddenly get shared libraries
7965       # on systems that don't support them.
7966       lt_prog_compiler_can_build_shared=no
7967       enable_shared=no
7968       ;;
7969
7970     *nto* | *qnx*)
7971       # QNX uses GNU C++, but need to define -shared option too, otherwise
7972       # it will coredump.
7973       lt_prog_compiler_pic='-fPIC -shared'
7974       ;;
7975
7976     sysv4*MP*)
7977       if test -d /usr/nec; then
7978         lt_prog_compiler_pic=-Kconform_pic
7979       fi
7980       ;;
7981
7982     *)
7983       lt_prog_compiler_pic='-fPIC'
7984       ;;
7985     esac
7986
7987     case $cc_basename in
7988     nvcc*) # Cuda Compiler Driver 2.2
7989       lt_prog_compiler_wl='-Xlinker '
7990       if test -n "$lt_prog_compiler_pic"; then
7991         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7992       fi
7993       ;;
7994     esac
7995   else
7996     # PORTME Check for flag to pass linker flags through the system compiler.
7997     case $host_os in
7998     aix*)
7999       lt_prog_compiler_wl='-Wl,'
8000       if test "$host_cpu" = ia64; then
8001         # AIX 5 now supports IA64 processor
8002         lt_prog_compiler_static='-Bstatic'
8003       else
8004         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8005       fi
8006       ;;
8007
8008     mingw* | cygwin* | pw32* | os2* | cegcc*)
8009       # This hack is so that the source file can tell whether it is being
8010       # built for inclusion in a dll (and should export symbols for example).
8011       lt_prog_compiler_pic='-DDLL_EXPORT'
8012       ;;
8013
8014     hpux9* | hpux10* | hpux11*)
8015       lt_prog_compiler_wl='-Wl,'
8016       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8017       # not for PA HP-UX.
8018       case $host_cpu in
8019       hppa*64*|ia64*)
8020         # +Z the default
8021         ;;
8022       *)
8023         lt_prog_compiler_pic='+Z'
8024         ;;
8025       esac
8026       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8027       lt_prog_compiler_static='${wl}-a ${wl}archive'
8028       ;;
8029
8030     irix5* | irix6* | nonstopux*)
8031       lt_prog_compiler_wl='-Wl,'
8032       # PIC (with -KPIC) is the default.
8033       lt_prog_compiler_static='-non_shared'
8034       ;;
8035
8036     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8037       case $cc_basename in
8038       # old Intel for x86_64 which still supported -KPIC.
8039       ecc*)
8040         lt_prog_compiler_wl='-Wl,'
8041         lt_prog_compiler_pic='-KPIC'
8042         lt_prog_compiler_static='-static'
8043         ;;
8044       # icc used to be incompatible with GCC.
8045       # ICC 10 doesn't accept -KPIC any more.
8046       icc* | ifort*)
8047         lt_prog_compiler_wl='-Wl,'
8048         lt_prog_compiler_pic='-fPIC'
8049         lt_prog_compiler_static='-static'
8050         ;;
8051       # Lahey Fortran 8.1.
8052       lf95*)
8053         lt_prog_compiler_wl='-Wl,'
8054         lt_prog_compiler_pic='--shared'
8055         lt_prog_compiler_static='--static'
8056         ;;
8057       nagfor*)
8058         # NAG Fortran compiler
8059         lt_prog_compiler_wl='-Wl,-Wl,,'
8060         lt_prog_compiler_pic='-PIC'
8061         lt_prog_compiler_static='-Bstatic'
8062         ;;
8063       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8064         # Portland Group compilers (*not* the Pentium gcc compiler,
8065         # which looks to be a dead project)
8066         lt_prog_compiler_wl='-Wl,'
8067         lt_prog_compiler_pic='-fpic'
8068         lt_prog_compiler_static='-Bstatic'
8069         ;;
8070       ccc*)
8071         lt_prog_compiler_wl='-Wl,'
8072         # All Alpha code is PIC.
8073         lt_prog_compiler_static='-non_shared'
8074         ;;
8075       xl* | bgxl* | bgf* | mpixl*)
8076         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8077         lt_prog_compiler_wl='-Wl,'
8078         lt_prog_compiler_pic='-qpic'
8079         lt_prog_compiler_static='-qstaticlink'
8080         ;;
8081       *)
8082         case `$CC -V 2>&1 | sed 5q` in
8083         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8084           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8085           lt_prog_compiler_pic='-KPIC'
8086           lt_prog_compiler_static='-Bstatic'
8087           lt_prog_compiler_wl=''
8088           ;;
8089         *Sun\ F* | *Sun*Fortran*)
8090           lt_prog_compiler_pic='-KPIC'
8091           lt_prog_compiler_static='-Bstatic'
8092           lt_prog_compiler_wl='-Qoption ld '
8093           ;;
8094         *Sun\ C*)
8095           # Sun C 5.9
8096           lt_prog_compiler_pic='-KPIC'
8097           lt_prog_compiler_static='-Bstatic'
8098           lt_prog_compiler_wl='-Wl,'
8099           ;;
8100         *Intel*\ [CF]*Compiler*)
8101           lt_prog_compiler_wl='-Wl,'
8102           lt_prog_compiler_pic='-fPIC'
8103           lt_prog_compiler_static='-static'
8104           ;;
8105         *Portland\ Group*)
8106           lt_prog_compiler_wl='-Wl,'
8107           lt_prog_compiler_pic='-fpic'
8108           lt_prog_compiler_static='-Bstatic'
8109           ;;
8110         esac
8111         ;;
8112       esac
8113       ;;
8114
8115     newsos6)
8116       lt_prog_compiler_pic='-KPIC'
8117       lt_prog_compiler_static='-Bstatic'
8118       ;;
8119
8120     *nto* | *qnx*)
8121       # QNX uses GNU C++, but need to define -shared option too, otherwise
8122       # it will coredump.
8123       lt_prog_compiler_pic='-fPIC -shared'
8124       ;;
8125
8126     osf3* | osf4* | osf5*)
8127       lt_prog_compiler_wl='-Wl,'
8128       # All OSF/1 code is PIC.
8129       lt_prog_compiler_static='-non_shared'
8130       ;;
8131
8132     rdos*)
8133       lt_prog_compiler_static='-non_shared'
8134       ;;
8135
8136     solaris*)
8137       lt_prog_compiler_pic='-KPIC'
8138       lt_prog_compiler_static='-Bstatic'
8139       case $cc_basename in
8140       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8141         lt_prog_compiler_wl='-Qoption ld ';;
8142       *)
8143         lt_prog_compiler_wl='-Wl,';;
8144       esac
8145       ;;
8146
8147     sunos4*)
8148       lt_prog_compiler_wl='-Qoption ld '
8149       lt_prog_compiler_pic='-PIC'
8150       lt_prog_compiler_static='-Bstatic'
8151       ;;
8152
8153     sysv4 | sysv4.2uw2* | sysv4.3*)
8154       lt_prog_compiler_wl='-Wl,'
8155       lt_prog_compiler_pic='-KPIC'
8156       lt_prog_compiler_static='-Bstatic'
8157       ;;
8158
8159     sysv4*MP*)
8160       if test -d /usr/nec ;then
8161         lt_prog_compiler_pic='-Kconform_pic'
8162         lt_prog_compiler_static='-Bstatic'
8163       fi
8164       ;;
8165
8166     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8167       lt_prog_compiler_wl='-Wl,'
8168       lt_prog_compiler_pic='-KPIC'
8169       lt_prog_compiler_static='-Bstatic'
8170       ;;
8171
8172     unicos*)
8173       lt_prog_compiler_wl='-Wl,'
8174       lt_prog_compiler_can_build_shared=no
8175       ;;
8176
8177     uts4*)
8178       lt_prog_compiler_pic='-pic'
8179       lt_prog_compiler_static='-Bstatic'
8180       ;;
8181
8182     *)
8183       lt_prog_compiler_can_build_shared=no
8184       ;;
8185     esac
8186   fi
8187
8188 case $host_os in
8189   # For platforms which do not support PIC, -DPIC is meaningless:
8190   *djgpp*)
8191     lt_prog_compiler_pic=
8192     ;;
8193   *)
8194     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8195     ;;
8196 esac
8197
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8199 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8200 if ${lt_cv_prog_compiler_pic+:} false; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8206 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8207 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8208
8209 #
8210 # Check to make sure the PIC flag actually works.
8211 #
8212 if test -n "$lt_prog_compiler_pic"; then
8213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8214 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8215 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   lt_cv_prog_compiler_pic_works=no
8219    ac_outfile=conftest.$ac_objext
8220    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8221    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8222    # Insert the option either (1) after the last *FLAGS variable, or
8223    # (2) before a word containing "conftest.", or (3) at the end.
8224    # Note that $ac_compile itself does not contain backslashes and begins
8225    # with a dollar sign (not a hyphen), so the echo should work correctly.
8226    # The option is referenced via a variable to avoid confusing sed.
8227    lt_compile=`echo "$ac_compile" | $SED \
8228    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8229    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8230    -e 's:$: $lt_compiler_flag:'`
8231    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8232    (eval "$lt_compile" 2>conftest.err)
8233    ac_status=$?
8234    cat conftest.err >&5
8235    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236    if (exit $ac_status) && test -s "$ac_outfile"; then
8237      # The compiler can only warn and ignore the option if not recognized
8238      # So say no if there are warnings other than the usual output.
8239      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8240      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8241      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8242        lt_cv_prog_compiler_pic_works=yes
8243      fi
8244    fi
8245    $RM conftest*
8246
8247 fi
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8249 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8250
8251 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8252     case $lt_prog_compiler_pic in
8253      "" | " "*) ;;
8254      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8255      esac
8256 else
8257     lt_prog_compiler_pic=
8258      lt_prog_compiler_can_build_shared=no
8259 fi
8260
8261 fi
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273 #
8274 # Check to make sure the static flag actually works.
8275 #
8276 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8278 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8279 if ${lt_cv_prog_compiler_static_works+:} false; then :
8280   $as_echo_n "(cached) " >&6
8281 else
8282   lt_cv_prog_compiler_static_works=no
8283    save_LDFLAGS="$LDFLAGS"
8284    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8285    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8286    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8287      # The linker can only warn and ignore the option if not recognized
8288      # So say no if there are warnings
8289      if test -s conftest.err; then
8290        # Append any errors to the config.log.
8291        cat conftest.err 1>&5
8292        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8293        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8294        if diff conftest.exp conftest.er2 >/dev/null; then
8295          lt_cv_prog_compiler_static_works=yes
8296        fi
8297      else
8298        lt_cv_prog_compiler_static_works=yes
8299      fi
8300    fi
8301    $RM -r conftest*
8302    LDFLAGS="$save_LDFLAGS"
8303
8304 fi
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8306 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8307
8308 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8309     :
8310 else
8311     lt_prog_compiler_static=
8312 fi
8313
8314
8315
8316
8317
8318
8319
8320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322 if ${lt_cv_prog_compiler_c_o+:} false; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   lt_cv_prog_compiler_c_o=no
8326    $RM -r conftest 2>/dev/null
8327    mkdir conftest
8328    cd conftest
8329    mkdir out
8330    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331
8332    lt_compiler_flag="-o out/conftest2.$ac_objext"
8333    # Insert the option either (1) after the last *FLAGS variable, or
8334    # (2) before a word containing "conftest.", or (3) at the end.
8335    # Note that $ac_compile itself does not contain backslashes and begins
8336    # with a dollar sign (not a hyphen), so the echo should work correctly.
8337    lt_compile=`echo "$ac_compile" | $SED \
8338    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340    -e 's:$: $lt_compiler_flag:'`
8341    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8342    (eval "$lt_compile" 2>out/conftest.err)
8343    ac_status=$?
8344    cat out/conftest.err >&5
8345    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8347    then
8348      # The compiler can only warn and ignore the option if not recognized
8349      # So say no if there are warnings
8350      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8351      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8352      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8353        lt_cv_prog_compiler_c_o=yes
8354      fi
8355    fi
8356    chmod u+w . 2>&5
8357    $RM conftest*
8358    # SGI C++ compiler will create directory out/ii_files/ for
8359    # template instantiation
8360    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8361    $RM out/* && rmdir out
8362    cd ..
8363    $RM -r conftest
8364    $RM conftest*
8365
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8369
8370
8371
8372
8373
8374
8375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8377 if ${lt_cv_prog_compiler_c_o+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   lt_cv_prog_compiler_c_o=no
8381    $RM -r conftest 2>/dev/null
8382    mkdir conftest
8383    cd conftest
8384    mkdir out
8385    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8386
8387    lt_compiler_flag="-o out/conftest2.$ac_objext"
8388    # Insert the option either (1) after the last *FLAGS variable, or
8389    # (2) before a word containing "conftest.", or (3) at the end.
8390    # Note that $ac_compile itself does not contain backslashes and begins
8391    # with a dollar sign (not a hyphen), so the echo should work correctly.
8392    lt_compile=`echo "$ac_compile" | $SED \
8393    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8394    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8395    -e 's:$: $lt_compiler_flag:'`
8396    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8397    (eval "$lt_compile" 2>out/conftest.err)
8398    ac_status=$?
8399    cat out/conftest.err >&5
8400    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8402    then
8403      # The compiler can only warn and ignore the option if not recognized
8404      # So say no if there are warnings
8405      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8406      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8407      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8408        lt_cv_prog_compiler_c_o=yes
8409      fi
8410    fi
8411    chmod u+w . 2>&5
8412    $RM conftest*
8413    # SGI C++ compiler will create directory out/ii_files/ for
8414    # template instantiation
8415    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8416    $RM out/* && rmdir out
8417    cd ..
8418    $RM -r conftest
8419    $RM conftest*
8420
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8423 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8424
8425
8426
8427
8428 hard_links="nottested"
8429 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8430   # do not overwrite the value of need_locks provided by the user
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8432 $as_echo_n "checking if we can lock with hard links... " >&6; }
8433   hard_links=yes
8434   $RM conftest*
8435   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8436   touch conftest.a
8437   ln conftest.a conftest.b 2>&5 || hard_links=no
8438   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8440 $as_echo "$hard_links" >&6; }
8441   if test "$hard_links" = no; then
8442     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8443 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8444     need_locks=warn
8445   fi
8446 else
8447   need_locks=no
8448 fi
8449
8450
8451
8452
8453
8454
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8456 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8457
8458   runpath_var=
8459   allow_undefined_flag=
8460   always_export_symbols=no
8461   archive_cmds=
8462   archive_expsym_cmds=
8463   compiler_needs_object=no
8464   enable_shared_with_static_runtimes=no
8465   export_dynamic_flag_spec=
8466   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8467   hardcode_automatic=no
8468   hardcode_direct=no
8469   hardcode_direct_absolute=no
8470   hardcode_libdir_flag_spec=
8471   hardcode_libdir_separator=
8472   hardcode_minus_L=no
8473   hardcode_shlibpath_var=unsupported
8474   inherit_rpath=no
8475   link_all_deplibs=unknown
8476   module_cmds=
8477   module_expsym_cmds=
8478   old_archive_from_new_cmds=
8479   old_archive_from_expsyms_cmds=
8480   thread_safe_flag_spec=
8481   whole_archive_flag_spec=
8482   # include_expsyms should be a list of space-separated symbols to be *always*
8483   # included in the symbol list
8484   include_expsyms=
8485   # exclude_expsyms can be an extended regexp of symbols to exclude
8486   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8487   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8488   # as well as any symbol that contains `d'.
8489   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8490   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8491   # platforms (ab)use it in PIC code, but their linkers get confused if
8492   # the symbol is explicitly referenced.  Since portable code cannot
8493   # rely on this symbol name, it's probably fine to never include it in
8494   # preloaded symbol tables.
8495   # Exclude shared library initialization/finalization symbols.
8496   extract_expsyms_cmds=
8497
8498   case $host_os in
8499   cygwin* | mingw* | pw32* | cegcc*)
8500     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8501     # When not using gcc, we currently assume that we are using
8502     # Microsoft Visual C++.
8503     if test "$GCC" != yes; then
8504       with_gnu_ld=no
8505     fi
8506     ;;
8507   interix*)
8508     # we just hope/assume this is gcc and not c89 (= MSVC++)
8509     with_gnu_ld=yes
8510     ;;
8511   openbsd*)
8512     with_gnu_ld=no
8513     ;;
8514   linux* | k*bsd*-gnu | gnu*)
8515     link_all_deplibs=no
8516     ;;
8517   esac
8518
8519   ld_shlibs=yes
8520
8521   # On some targets, GNU ld is compatible enough with the native linker
8522   # that we're better off using the native interface for both.
8523   lt_use_gnu_ld_interface=no
8524   if test "$with_gnu_ld" = yes; then
8525     case $host_os in
8526       aix*)
8527         # The AIX port of GNU ld has always aspired to compatibility
8528         # with the native linker.  However, as the warning in the GNU ld
8529         # block says, versions before 2.19.5* couldn't really create working
8530         # shared libraries, regardless of the interface used.
8531         case `$LD -v 2>&1` in
8532           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8533           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8534           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8535           *)
8536             lt_use_gnu_ld_interface=yes
8537             ;;
8538         esac
8539         ;;
8540       *)
8541         lt_use_gnu_ld_interface=yes
8542         ;;
8543     esac
8544   fi
8545
8546   if test "$lt_use_gnu_ld_interface" = yes; then
8547     # If archive_cmds runs LD, not CC, wlarc should be empty
8548     wlarc='${wl}'
8549
8550     # Set some defaults for GNU ld with shared library support. These
8551     # are reset later if shared libraries are not supported. Putting them
8552     # here allows them to be overridden if necessary.
8553     runpath_var=LD_RUN_PATH
8554     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555     export_dynamic_flag_spec='${wl}--export-dynamic'
8556     # ancient GNU ld didn't support --whole-archive et. al.
8557     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8558       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8559     else
8560       whole_archive_flag_spec=
8561     fi
8562     supports_anon_versioning=no
8563     case `$LD -v 2>&1` in
8564       *GNU\ gold*) supports_anon_versioning=yes ;;
8565       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8566       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8567       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8568       *\ 2.11.*) ;; # other 2.11 versions
8569       *) supports_anon_versioning=yes ;;
8570     esac
8571
8572     # See if GNU ld supports shared libraries.
8573     case $host_os in
8574     aix[3-9]*)
8575       # On AIX/PPC, the GNU linker is very broken
8576       if test "$host_cpu" != ia64; then
8577         ld_shlibs=no
8578         cat <<_LT_EOF 1>&2
8579
8580 *** Warning: the GNU linker, at least up to release 2.19, is reported
8581 *** to be unable to reliably create shared libraries on AIX.
8582 *** Therefore, libtool is disabling shared libraries support.  If you
8583 *** really care for shared libraries, you may want to install binutils
8584 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8585 *** You will then need to restart the configuration process.
8586
8587 _LT_EOF
8588       fi
8589       ;;
8590
8591     amigaos*)
8592       case $host_cpu in
8593       powerpc)
8594             # see comment about AmigaOS4 .so support
8595             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596             archive_expsym_cmds=''
8597         ;;
8598       m68k)
8599             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)'
8600             hardcode_libdir_flag_spec='-L$libdir'
8601             hardcode_minus_L=yes
8602         ;;
8603       esac
8604       ;;
8605
8606     beos*)
8607       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8608         allow_undefined_flag=unsupported
8609         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8610         # support --undefined.  This deserves some investigation.  FIXME
8611         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612       else
8613         ld_shlibs=no
8614       fi
8615       ;;
8616
8617     cygwin* | mingw* | pw32* | cegcc*)
8618       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8619       # as there is no search path for DLLs.
8620       hardcode_libdir_flag_spec='-L$libdir'
8621       export_dynamic_flag_spec='${wl}--export-all-symbols'
8622       allow_undefined_flag=unsupported
8623       always_export_symbols=no
8624       enable_shared_with_static_runtimes=yes
8625       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8626       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8627
8628       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8629         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8630         # If the export-symbols file already is a .def file (1st line
8631         # is EXPORTS), use it as is; otherwise, prepend...
8632         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8633           cp $export_symbols $output_objdir/$soname.def;
8634         else
8635           echo EXPORTS > $output_objdir/$soname.def;
8636           cat $export_symbols >> $output_objdir/$soname.def;
8637         fi~
8638         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8639       else
8640         ld_shlibs=no
8641       fi
8642       ;;
8643
8644     haiku*)
8645       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646       link_all_deplibs=yes
8647       ;;
8648
8649     interix[3-9]*)
8650       hardcode_direct=no
8651       hardcode_shlibpath_var=no
8652       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8653       export_dynamic_flag_spec='${wl}-E'
8654       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8655       # Instead, shared libraries are loaded at an image base (0x10000000 by
8656       # default) and relocated if they conflict, which is a slow very memory
8657       # consuming and fragmenting process.  To avoid this, we pick a random,
8658       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8659       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8660       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8661       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'
8662       ;;
8663
8664     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8665       tmp_diet=no
8666       if test "$host_os" = linux-dietlibc; then
8667         case $cc_basename in
8668           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8669         esac
8670       fi
8671       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8672          && test "$tmp_diet" = no
8673       then
8674         tmp_addflag=' $pic_flag'
8675         tmp_sharedflag='-shared'
8676         case $cc_basename,$host_cpu in
8677         pgcc*)                          # Portland Group C compiler
8678           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'
8679           tmp_addflag=' $pic_flag'
8680           ;;
8681         pgf77* | pgf90* | pgf95* | pgfortran*)
8682                                         # Portland Group f77 and f90 compilers
8683           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'
8684           tmp_addflag=' $pic_flag -Mnomain' ;;
8685         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8686           tmp_addflag=' -i_dynamic' ;;
8687         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8688           tmp_addflag=' -i_dynamic -nofor_main' ;;
8689         ifc* | ifort*)                  # Intel Fortran compiler
8690           tmp_addflag=' -nofor_main' ;;
8691         lf95*)                          # Lahey Fortran 8.1
8692           whole_archive_flag_spec=
8693           tmp_sharedflag='--shared' ;;
8694         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8695           tmp_sharedflag='-qmkshrobj'
8696           tmp_addflag= ;;
8697         nvcc*)  # Cuda Compiler Driver 2.2
8698           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'
8699           compiler_needs_object=yes
8700           ;;
8701         esac
8702         case `$CC -V 2>&1 | sed 5q` in
8703         *Sun\ C*)                       # Sun C 5.9
8704           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'
8705           compiler_needs_object=yes
8706           tmp_sharedflag='-G' ;;
8707         *Sun\ F*)                       # Sun Fortran 8.3
8708           tmp_sharedflag='-G' ;;
8709         esac
8710         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711
8712         if test "x$supports_anon_versioning" = xyes; then
8713           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8714             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8715             echo "local: *; };" >> $output_objdir/$libname.ver~
8716             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8717         fi
8718
8719         case $cc_basename in
8720         xlf* | bgf* | bgxlf* | mpixlf*)
8721           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8722           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8723           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8724           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8725           if test "x$supports_anon_versioning" = xyes; then
8726             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8727               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8728               echo "local: *; };" >> $output_objdir/$libname.ver~
8729               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8730           fi
8731           ;;
8732         esac
8733       else
8734         ld_shlibs=no
8735       fi
8736       ;;
8737
8738     netbsd* | netbsdelf*-gnu)
8739       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8740         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8741         wlarc=
8742       else
8743         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8745       fi
8746       ;;
8747
8748     solaris*)
8749       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8750         ld_shlibs=no
8751         cat <<_LT_EOF 1>&2
8752
8753 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8754 *** create shared libraries on Solaris systems.  Therefore, libtool
8755 *** is disabling shared libraries support.  We urge you to upgrade GNU
8756 *** binutils to release 2.9.1 or newer.  Another option is to modify
8757 *** your PATH or compiler configuration so that the native linker is
8758 *** used, and then restart.
8759
8760 _LT_EOF
8761       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8762         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764       else
8765         ld_shlibs=no
8766       fi
8767       ;;
8768
8769     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8770       case `$LD -v 2>&1` in
8771         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8772         ld_shlibs=no
8773         cat <<_LT_EOF 1>&2
8774
8775 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8776 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8777 *** is disabling shared libraries support.  We urge you to upgrade GNU
8778 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8779 *** your PATH or compiler configuration so that the native linker is
8780 *** used, and then restart.
8781
8782 _LT_EOF
8783         ;;
8784         *)
8785           # For security reasons, it is highly recommended that you always
8786           # use absolute paths for naming shared libraries, and exclude the
8787           # DT_RUNPATH tag from executables and libraries.  But doing so
8788           # requires that you compile everything twice, which is a pain.
8789           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8790             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8792             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8793           else
8794             ld_shlibs=no
8795           fi
8796         ;;
8797       esac
8798       ;;
8799
8800     sunos4*)
8801       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8802       wlarc=
8803       hardcode_direct=yes
8804       hardcode_shlibpath_var=no
8805       ;;
8806
8807     *)
8808       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8809         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8811       else
8812         ld_shlibs=no
8813       fi
8814       ;;
8815     esac
8816
8817     if test "$ld_shlibs" = no; then
8818       runpath_var=
8819       hardcode_libdir_flag_spec=
8820       export_dynamic_flag_spec=
8821       whole_archive_flag_spec=
8822     fi
8823   else
8824     # PORTME fill in a description of your system's linker (not GNU ld)
8825     case $host_os in
8826     aix3*)
8827       allow_undefined_flag=unsupported
8828       always_export_symbols=yes
8829       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'
8830       # Note: this linker hardcodes the directories in LIBPATH if there
8831       # are no directories specified by -L.
8832       hardcode_minus_L=yes
8833       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8834         # Neither direct hardcoding nor static linking is supported with a
8835         # broken collect2.
8836         hardcode_direct=unsupported
8837       fi
8838       ;;
8839
8840     aix[4-9]*)
8841       if test "$host_cpu" = ia64; then
8842         # On IA64, the linker does run time linking by default, so we don't
8843         # have to do anything special.
8844         aix_use_runtimelinking=no
8845         exp_sym_flag='-Bexport'
8846         no_entry_flag=""
8847       else
8848         # If we're using GNU nm, then we don't want the "-C" option.
8849         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8850         # Also, AIX nm treats weak defined symbols like other global
8851         # defined symbols, whereas GNU nm marks them as "W".
8852         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8853           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'
8854         else
8855           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'
8856         fi
8857         aix_use_runtimelinking=no
8858
8859         # Test if we are trying to use run time linking or normal
8860         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8861         # need to do runtime linking.
8862         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8863           for ld_flag in $LDFLAGS; do
8864           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8865             aix_use_runtimelinking=yes
8866             break
8867           fi
8868           done
8869           ;;
8870         esac
8871
8872         exp_sym_flag='-bexport'
8873         no_entry_flag='-bnoentry'
8874       fi
8875
8876       # When large executables or shared objects are built, AIX ld can
8877       # have problems creating the table of contents.  If linking a library
8878       # or program results in "error TOC overflow" add -mminimal-toc to
8879       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8880       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8881
8882       archive_cmds=''
8883       hardcode_direct=yes
8884       hardcode_direct_absolute=yes
8885       hardcode_libdir_separator=':'
8886       link_all_deplibs=yes
8887       file_list_spec='${wl}-f,'
8888
8889       if test "$GCC" = yes; then
8890         case $host_os in aix4.[012]|aix4.[012].*)
8891         # We only want to do this on AIX 4.2 and lower, the check
8892         # below for broken collect2 doesn't work under 4.3+
8893           collect2name=`${CC} -print-prog-name=collect2`
8894           if test -f "$collect2name" &&
8895            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8896           then
8897           # We have reworked collect2
8898           :
8899           else
8900           # We have old collect2
8901           hardcode_direct=unsupported
8902           # It fails to find uninstalled libraries when the uninstalled
8903           # path is not listed in the libpath.  Setting hardcode_minus_L
8904           # to unsupported forces relinking
8905           hardcode_minus_L=yes
8906           hardcode_libdir_flag_spec='-L$libdir'
8907           hardcode_libdir_separator=
8908           fi
8909           ;;
8910         esac
8911         shared_flag='-shared'
8912         if test "$aix_use_runtimelinking" = yes; then
8913           shared_flag="$shared_flag "'${wl}-G'
8914         fi
8915         link_all_deplibs=no
8916       else
8917         # not using gcc
8918         if test "$host_cpu" = ia64; then
8919         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8920         # chokes on -Wl,-G. The following line is correct:
8921           shared_flag='-G'
8922         else
8923           if test "$aix_use_runtimelinking" = yes; then
8924             shared_flag='${wl}-G'
8925           else
8926             shared_flag='${wl}-bM:SRE'
8927           fi
8928         fi
8929       fi
8930
8931       export_dynamic_flag_spec='${wl}-bexpall'
8932       # It seems that -bexpall does not export symbols beginning with
8933       # underscore (_), so it is better to generate a list of symbols to export.
8934       always_export_symbols=yes
8935       if test "$aix_use_runtimelinking" = yes; then
8936         # Warning - without using the other runtime loading flags (-brtl),
8937         # -berok will link without error, but may produce a broken library.
8938         allow_undefined_flag='-berok'
8939         # Determine the default libpath from the value encoded in an
8940         # empty executable.
8941         if test "${lt_cv_aix_libpath+set}" = set; then
8942   aix_libpath=$lt_cv_aix_libpath
8943 else
8944   if ${lt_cv_aix_libpath_+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h.  */
8949
8950 int
8951 main ()
8952 {
8953
8954   ;
8955   return 0;
8956 }
8957 _ACEOF
8958 if ac_fn_c_try_link "$LINENO"; then :
8959
8960   lt_aix_libpath_sed='
8961       /Import File Strings/,/^$/ {
8962           /^0/ {
8963               s/^0  *\([^ ]*\) *$/\1/
8964               p
8965           }
8966       }'
8967   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8968   # Check for a 64-bit object if we didn't find anything.
8969   if test -z "$lt_cv_aix_libpath_"; then
8970     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8971   fi
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext \
8974     conftest$ac_exeext conftest.$ac_ext
8975   if test -z "$lt_cv_aix_libpath_"; then
8976     lt_cv_aix_libpath_="/usr/lib:/lib"
8977   fi
8978
8979 fi
8980
8981   aix_libpath=$lt_cv_aix_libpath_
8982 fi
8983
8984         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8985         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"
8986       else
8987         if test "$host_cpu" = ia64; then
8988           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8989           allow_undefined_flag="-z nodefs"
8990           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"
8991         else
8992          # Determine the default libpath from the value encoded in an
8993          # empty executable.
8994          if test "${lt_cv_aix_libpath+set}" = set; then
8995   aix_libpath=$lt_cv_aix_libpath
8996 else
8997   if ${lt_cv_aix_libpath_+:} false; then :
8998   $as_echo_n "(cached) " >&6
8999 else
9000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h.  */
9002
9003 int
9004 main ()
9005 {
9006
9007   ;
9008   return 0;
9009 }
9010 _ACEOF
9011 if ac_fn_c_try_link "$LINENO"; then :
9012
9013   lt_aix_libpath_sed='
9014       /Import File Strings/,/^$/ {
9015           /^0/ {
9016               s/^0  *\([^ ]*\) *$/\1/
9017               p
9018           }
9019       }'
9020   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9021   # Check for a 64-bit object if we didn't find anything.
9022   if test -z "$lt_cv_aix_libpath_"; then
9023     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9024   fi
9025 fi
9026 rm -f core conftest.err conftest.$ac_objext \
9027     conftest$ac_exeext conftest.$ac_ext
9028   if test -z "$lt_cv_aix_libpath_"; then
9029     lt_cv_aix_libpath_="/usr/lib:/lib"
9030   fi
9031
9032 fi
9033
9034   aix_libpath=$lt_cv_aix_libpath_
9035 fi
9036
9037          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9038           # Warning - without using the other run time loading flags,
9039           # -berok will link without error, but may produce a broken library.
9040           no_undefined_flag=' ${wl}-bernotok'
9041           allow_undefined_flag=' ${wl}-berok'
9042           if test "$with_gnu_ld" = yes; then
9043             # We only use this code for GNU lds that support --whole-archive.
9044             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9045           else
9046             # Exported symbols can be pulled into shared objects from archives
9047             whole_archive_flag_spec='$convenience'
9048           fi
9049           archive_cmds_need_lc=yes
9050           # This is similar to how AIX traditionally builds its shared libraries.
9051           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'
9052         fi
9053       fi
9054       ;;
9055
9056     amigaos*)
9057       case $host_cpu in
9058       powerpc)
9059             # see comment about AmigaOS4 .so support
9060             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061             archive_expsym_cmds=''
9062         ;;
9063       m68k)
9064             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)'
9065             hardcode_libdir_flag_spec='-L$libdir'
9066             hardcode_minus_L=yes
9067         ;;
9068       esac
9069       ;;
9070
9071     bsdi[45]*)
9072       export_dynamic_flag_spec=-rdynamic
9073       ;;
9074
9075     cygwin* | mingw* | pw32* | cegcc*)
9076       # When not using gcc, we currently assume that we are using
9077       # Microsoft Visual C++.
9078       # hardcode_libdir_flag_spec is actually meaningless, as there is
9079       # no search path for DLLs.
9080       case $cc_basename in
9081       cl*)
9082         # Native MSVC
9083         hardcode_libdir_flag_spec=' '
9084         allow_undefined_flag=unsupported
9085         always_export_symbols=yes
9086         file_list_spec='@'
9087         # Tell ltmain to make .lib files, not .a files.
9088         libext=lib
9089         # Tell ltmain to make .dll files, not .so files.
9090         shrext_cmds=".dll"
9091         # FIXME: Setting linknames here is a bad hack.
9092         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9093         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9094             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9095           else
9096             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9097           fi~
9098           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9099           linknames='
9100         # The linker will not automatically build a static lib if we build a DLL.
9101         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9102         enable_shared_with_static_runtimes=yes
9103         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9104         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9105         # Don't use ranlib
9106         old_postinstall_cmds='chmod 644 $oldlib'
9107         postlink_cmds='lt_outputfile="@OUTPUT@"~
9108           lt_tool_outputfile="@TOOL_OUTPUT@"~
9109           case $lt_outputfile in
9110             *.exe|*.EXE) ;;
9111             *)
9112               lt_outputfile="$lt_outputfile.exe"
9113               lt_tool_outputfile="$lt_tool_outputfile.exe"
9114               ;;
9115           esac~
9116           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9117             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9118             $RM "$lt_outputfile.manifest";
9119           fi'
9120         ;;
9121       *)
9122         # Assume MSVC wrapper
9123         hardcode_libdir_flag_spec=' '
9124         allow_undefined_flag=unsupported
9125         # Tell ltmain to make .lib files, not .a files.
9126         libext=lib
9127         # Tell ltmain to make .dll files, not .so files.
9128         shrext_cmds=".dll"
9129         # FIXME: Setting linknames here is a bad hack.
9130         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9131         # The linker will automatically build a .lib file if we build a DLL.
9132         old_archive_from_new_cmds='true'
9133         # FIXME: Should let the user specify the lib program.
9134         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9135         enable_shared_with_static_runtimes=yes
9136         ;;
9137       esac
9138       ;;
9139
9140     darwin* | rhapsody*)
9141
9142
9143   archive_cmds_need_lc=no
9144   hardcode_direct=no
9145   hardcode_automatic=yes
9146   hardcode_shlibpath_var=unsupported
9147   if test "$lt_cv_ld_force_load" = "yes"; then
9148     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\"`'
9149
9150   else
9151     whole_archive_flag_spec=''
9152   fi
9153   link_all_deplibs=yes
9154   allow_undefined_flag="$_lt_dar_allow_undefined"
9155   case $cc_basename in
9156      ifort*) _lt_dar_can_shared=yes ;;
9157      *) _lt_dar_can_shared=$GCC ;;
9158   esac
9159   if test "$_lt_dar_can_shared" = "yes"; then
9160     output_verbose_link_cmd=func_echo_all
9161     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9162     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9163     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}"
9164     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}"
9165
9166   else
9167   ld_shlibs=no
9168   fi
9169
9170       ;;
9171
9172     dgux*)
9173       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174       hardcode_libdir_flag_spec='-L$libdir'
9175       hardcode_shlibpath_var=no
9176       ;;
9177
9178     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9179     # support.  Future versions do this automatically, but an explicit c++rt0.o
9180     # does not break anything, and helps significantly (at the cost of a little
9181     # extra space).
9182     freebsd2.2*)
9183       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9184       hardcode_libdir_flag_spec='-R$libdir'
9185       hardcode_direct=yes
9186       hardcode_shlibpath_var=no
9187       ;;
9188
9189     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9190     freebsd2.*)
9191       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192       hardcode_direct=yes
9193       hardcode_minus_L=yes
9194       hardcode_shlibpath_var=no
9195       ;;
9196
9197     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9198     freebsd* | dragonfly*)
9199       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200       hardcode_libdir_flag_spec='-R$libdir'
9201       hardcode_direct=yes
9202       hardcode_shlibpath_var=no
9203       ;;
9204
9205     hpux9*)
9206       if test "$GCC" = yes; then
9207         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9208       else
9209         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'
9210       fi
9211       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9212       hardcode_libdir_separator=:
9213       hardcode_direct=yes
9214
9215       # hardcode_minus_L: Not really in the search PATH,
9216       # but as the default location of the library.
9217       hardcode_minus_L=yes
9218       export_dynamic_flag_spec='${wl}-E'
9219       ;;
9220
9221     hpux10*)
9222       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9223         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9224       else
9225         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9226       fi
9227       if test "$with_gnu_ld" = no; then
9228         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229         hardcode_libdir_separator=:
9230         hardcode_direct=yes
9231         hardcode_direct_absolute=yes
9232         export_dynamic_flag_spec='${wl}-E'
9233         # hardcode_minus_L: Not really in the search PATH,
9234         # but as the default location of the library.
9235         hardcode_minus_L=yes
9236       fi
9237       ;;
9238
9239     hpux11*)
9240       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9241         case $host_cpu in
9242         hppa*64*)
9243           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9244           ;;
9245         ia64*)
9246           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9247           ;;
9248         *)
9249           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9250           ;;
9251         esac
9252       else
9253         case $host_cpu in
9254         hppa*64*)
9255           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9256           ;;
9257         ia64*)
9258           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9259           ;;
9260         *)
9261
9262           # Older versions of the 11.00 compiler do not understand -b yet
9263           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9264           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9265 $as_echo_n "checking if $CC understands -b... " >&6; }
9266 if ${lt_cv_prog_compiler__b+:} false; then :
9267   $as_echo_n "(cached) " >&6
9268 else
9269   lt_cv_prog_compiler__b=no
9270    save_LDFLAGS="$LDFLAGS"
9271    LDFLAGS="$LDFLAGS -b"
9272    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9273    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9274      # The linker can only warn and ignore the option if not recognized
9275      # So say no if there are warnings
9276      if test -s conftest.err; then
9277        # Append any errors to the config.log.
9278        cat conftest.err 1>&5
9279        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9280        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9281        if diff conftest.exp conftest.er2 >/dev/null; then
9282          lt_cv_prog_compiler__b=yes
9283        fi
9284      else
9285        lt_cv_prog_compiler__b=yes
9286      fi
9287    fi
9288    $RM -r conftest*
9289    LDFLAGS="$save_LDFLAGS"
9290
9291 fi
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9293 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9294
9295 if test x"$lt_cv_prog_compiler__b" = xyes; then
9296     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9297 else
9298     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9299 fi
9300
9301           ;;
9302         esac
9303       fi
9304       if test "$with_gnu_ld" = no; then
9305         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9306         hardcode_libdir_separator=:
9307
9308         case $host_cpu in
9309         hppa*64*|ia64*)
9310           hardcode_direct=no
9311           hardcode_shlibpath_var=no
9312           ;;
9313         *)
9314           hardcode_direct=yes
9315           hardcode_direct_absolute=yes
9316           export_dynamic_flag_spec='${wl}-E'
9317
9318           # hardcode_minus_L: Not really in the search PATH,
9319           # but as the default location of the library.
9320           hardcode_minus_L=yes
9321           ;;
9322         esac
9323       fi
9324       ;;
9325
9326     irix5* | irix6* | nonstopux*)
9327       if test "$GCC" = yes; then
9328         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9329         # Try to use the -exported_symbol ld option, if it does not
9330         # work, assume that -exports_file does not work either and
9331         # implicitly export all symbols.
9332         # This should be the same for all languages, so no per-tag cache variable.
9333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9334 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9335 if ${lt_cv_irix_exported_symbol+:} false; then :
9336   $as_echo_n "(cached) " >&6
9337 else
9338   save_LDFLAGS="$LDFLAGS"
9339            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9340            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h.  */
9342 int foo (void) { return 0; }
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9345   lt_cv_irix_exported_symbol=yes
9346 else
9347   lt_cv_irix_exported_symbol=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext \
9350     conftest$ac_exeext conftest.$ac_ext
9351            LDFLAGS="$save_LDFLAGS"
9352 fi
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9354 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9355         if test "$lt_cv_irix_exported_symbol" = yes; then
9356           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9357         fi
9358       else
9359         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'
9360         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'
9361       fi
9362       archive_cmds_need_lc='no'
9363       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9364       hardcode_libdir_separator=:
9365       inherit_rpath=yes
9366       link_all_deplibs=yes
9367       ;;
9368
9369     netbsd* | netbsdelf*-gnu)
9370       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9371         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9372       else
9373         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9374       fi
9375       hardcode_libdir_flag_spec='-R$libdir'
9376       hardcode_direct=yes
9377       hardcode_shlibpath_var=no
9378       ;;
9379
9380     newsos6)
9381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382       hardcode_direct=yes
9383       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384       hardcode_libdir_separator=:
9385       hardcode_shlibpath_var=no
9386       ;;
9387
9388     *nto* | *qnx*)
9389       ;;
9390
9391     openbsd*)
9392       if test -f /usr/libexec/ld.so; then
9393         hardcode_direct=yes
9394         hardcode_shlibpath_var=no
9395         hardcode_direct_absolute=yes
9396         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9397           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9398           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9399           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9400           export_dynamic_flag_spec='${wl}-E'
9401         else
9402           case $host_os in
9403            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9404              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9405              hardcode_libdir_flag_spec='-R$libdir'
9406              ;;
9407            *)
9408              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9409              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9410              ;;
9411           esac
9412         fi
9413       else
9414         ld_shlibs=no
9415       fi
9416       ;;
9417
9418     os2*)
9419       hardcode_libdir_flag_spec='-L$libdir'
9420       hardcode_minus_L=yes
9421       allow_undefined_flag=unsupported
9422       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'
9423       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9424       ;;
9425
9426     osf3*)
9427       if test "$GCC" = yes; then
9428         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9429         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'
9430       else
9431         allow_undefined_flag=' -expect_unresolved \*'
9432         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'
9433       fi
9434       archive_cmds_need_lc='no'
9435       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9436       hardcode_libdir_separator=:
9437       ;;
9438
9439     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9440       if test "$GCC" = yes; then
9441         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9442         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9443         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9444       else
9445         allow_undefined_flag=' -expect_unresolved \*'
9446         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'
9447         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~
9448         $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'
9449
9450         # Both c and cxx compiler support -rpath directly
9451         hardcode_libdir_flag_spec='-rpath $libdir'
9452       fi
9453       archive_cmds_need_lc='no'
9454       hardcode_libdir_separator=:
9455       ;;
9456
9457     solaris*)
9458       no_undefined_flag=' -z defs'
9459       if test "$GCC" = yes; then
9460         wlarc='${wl}'
9461         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9462         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9463           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9464       else
9465         case `$CC -V 2>&1` in
9466         *"Compilers 5.0"*)
9467           wlarc=''
9468           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9470           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9471           ;;
9472         *)
9473           wlarc='${wl}'
9474           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9475           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9476           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9477           ;;
9478         esac
9479       fi
9480       hardcode_libdir_flag_spec='-R$libdir'
9481       hardcode_shlibpath_var=no
9482       case $host_os in
9483       solaris2.[0-5] | solaris2.[0-5].*) ;;
9484       *)
9485         # The compiler driver will combine and reorder linker options,
9486         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9487         # but is careful enough not to reorder.
9488         # Supported since Solaris 2.6 (maybe 2.5.1?)
9489         if test "$GCC" = yes; then
9490           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9491         else
9492           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9493         fi
9494         ;;
9495       esac
9496       link_all_deplibs=yes
9497       ;;
9498
9499     sunos4*)
9500       if test "x$host_vendor" = xsequent; then
9501         # Use $CC to link under sequent, because it throws in some extra .o
9502         # files that make .init and .fini sections work.
9503         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9504       else
9505         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9506       fi
9507       hardcode_libdir_flag_spec='-L$libdir'
9508       hardcode_direct=yes
9509       hardcode_minus_L=yes
9510       hardcode_shlibpath_var=no
9511       ;;
9512
9513     sysv4)
9514       case $host_vendor in
9515         sni)
9516           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517           hardcode_direct=yes # is this really true???
9518         ;;
9519         siemens)
9520           ## LD is ld it makes a PLAMLIB
9521           ## CC just makes a GrossModule.
9522           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9523           reload_cmds='$CC -r -o $output$reload_objs'
9524           hardcode_direct=no
9525         ;;
9526         motorola)
9527           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9529         ;;
9530       esac
9531       runpath_var='LD_RUN_PATH'
9532       hardcode_shlibpath_var=no
9533       ;;
9534
9535     sysv4.3*)
9536       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9537       hardcode_shlibpath_var=no
9538       export_dynamic_flag_spec='-Bexport'
9539       ;;
9540
9541     sysv4*MP*)
9542       if test -d /usr/nec; then
9543         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544         hardcode_shlibpath_var=no
9545         runpath_var=LD_RUN_PATH
9546         hardcode_runpath_var=yes
9547         ld_shlibs=yes
9548       fi
9549       ;;
9550
9551     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9552       no_undefined_flag='${wl}-z,text'
9553       archive_cmds_need_lc=no
9554       hardcode_shlibpath_var=no
9555       runpath_var='LD_RUN_PATH'
9556
9557       if test "$GCC" = yes; then
9558         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9560       else
9561         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563       fi
9564       ;;
9565
9566     sysv5* | sco3.2v5* | sco5v6*)
9567       # Note: We can NOT use -z defs as we might desire, because we do not
9568       # link with -lc, and that would cause any symbols used from libc to
9569       # always be unresolved, which means just about no library would
9570       # ever link correctly.  If we're not using GNU ld we use -z text
9571       # though, which does catch some bad symbols but isn't as heavy-handed
9572       # as -z defs.
9573       no_undefined_flag='${wl}-z,text'
9574       allow_undefined_flag='${wl}-z,nodefs'
9575       archive_cmds_need_lc=no
9576       hardcode_shlibpath_var=no
9577       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9578       hardcode_libdir_separator=':'
9579       link_all_deplibs=yes
9580       export_dynamic_flag_spec='${wl}-Bexport'
9581       runpath_var='LD_RUN_PATH'
9582
9583       if test "$GCC" = yes; then
9584         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9586       else
9587         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9588         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589       fi
9590       ;;
9591
9592     uts4*)
9593       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9594       hardcode_libdir_flag_spec='-L$libdir'
9595       hardcode_shlibpath_var=no
9596       ;;
9597
9598     *)
9599       ld_shlibs=no
9600       ;;
9601     esac
9602
9603     if test x$host_vendor = xsni; then
9604       case $host in
9605       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9606         export_dynamic_flag_spec='${wl}-Blargedynsym'
9607         ;;
9608       esac
9609     fi
9610   fi
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9613 $as_echo "$ld_shlibs" >&6; }
9614 test "$ld_shlibs" = no && can_build_shared=no
9615
9616 with_gnu_ld=$with_gnu_ld
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632 #
9633 # Do we need to explicitly link libc?
9634 #
9635 case "x$archive_cmds_need_lc" in
9636 x|xyes)
9637   # Assume -lc should be added
9638   archive_cmds_need_lc=yes
9639
9640   if test "$enable_shared" = yes && test "$GCC" = yes; then
9641     case $archive_cmds in
9642     *'~'*)
9643       # FIXME: we may have to deal with multi-command sequences.
9644       ;;
9645     '$CC '*)
9646       # Test whether the compiler implicitly links with -lc since on some
9647       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9648       # to ld, don't add -lc before -lgcc.
9649       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9650 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9651 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9652   $as_echo_n "(cached) " >&6
9653 else
9654   $RM conftest*
9655         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9656
9657         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9658   (eval $ac_compile) 2>&5
9659   ac_status=$?
9660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9661   test $ac_status = 0; } 2>conftest.err; then
9662           soname=conftest
9663           lib=conftest
9664           libobjs=conftest.$ac_objext
9665           deplibs=
9666           wl=$lt_prog_compiler_wl
9667           pic_flag=$lt_prog_compiler_pic
9668           compiler_flags=-v
9669           linker_flags=-v
9670           verstring=
9671           output_objdir=.
9672           libname=conftest
9673           lt_save_allow_undefined_flag=$allow_undefined_flag
9674           allow_undefined_flag=
9675           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9676   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9677   ac_status=$?
9678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9679   test $ac_status = 0; }
9680           then
9681             lt_cv_archive_cmds_need_lc=no
9682           else
9683             lt_cv_archive_cmds_need_lc=yes
9684           fi
9685           allow_undefined_flag=$lt_save_allow_undefined_flag
9686         else
9687           cat conftest.err 1>&5
9688         fi
9689         $RM conftest*
9690
9691 fi
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9693 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9694       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9695       ;;
9696     esac
9697   fi
9698   ;;
9699 esac
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9853 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9854
9855 if test "$GCC" = yes; then
9856   case $host_os in
9857     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9858     *) lt_awk_arg="/^libraries:/" ;;
9859   esac
9860   case $host_os in
9861     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9862     *) lt_sed_strip_eq="s,=/,/,g" ;;
9863   esac
9864   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9865   case $lt_search_path_spec in
9866   *\;*)
9867     # if the path contains ";" then we assume it to be the separator
9868     # otherwise default to the standard path separator (i.e. ":") - it is
9869     # assumed that no part of a normal pathname contains ";" but that should
9870     # okay in the real world where ";" in dirpaths is itself problematic.
9871     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9872     ;;
9873   *)
9874     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9875     ;;
9876   esac
9877   # Ok, now we have the path, separated by spaces, we can step through it
9878   # and add multilib dir if necessary.
9879   lt_tmp_lt_search_path_spec=
9880   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9881   for lt_sys_path in $lt_search_path_spec; do
9882     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9883       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9884     else
9885       test -d "$lt_sys_path" && \
9886         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9887     fi
9888   done
9889   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9890 BEGIN {RS=" "; FS="/|\n";} {
9891   lt_foo="";
9892   lt_count=0;
9893   for (lt_i = NF; lt_i > 0; lt_i--) {
9894     if ($lt_i != "" && $lt_i != ".") {
9895       if ($lt_i == "..") {
9896         lt_count++;
9897       } else {
9898         if (lt_count == 0) {
9899           lt_foo="/" $lt_i lt_foo;
9900         } else {
9901           lt_count--;
9902         }
9903       }
9904     }
9905   }
9906   if (lt_foo != "") { lt_freq[lt_foo]++; }
9907   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9908 }'`
9909   # AWK program above erroneously prepends '/' to C:/dos/paths
9910   # for these hosts.
9911   case $host_os in
9912     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9913       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9914   esac
9915   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9916 else
9917   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9918 fi
9919 library_names_spec=
9920 libname_spec='lib$name'
9921 soname_spec=
9922 shrext_cmds=".so"
9923 postinstall_cmds=
9924 postuninstall_cmds=
9925 finish_cmds=
9926 finish_eval=
9927 shlibpath_var=
9928 shlibpath_overrides_runpath=unknown
9929 version_type=none
9930 dynamic_linker="$host_os ld.so"
9931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9932 need_lib_prefix=unknown
9933 hardcode_into_libs=no
9934
9935 # when you set need_version to no, make sure it does not cause -set_version
9936 # flags to be left without arguments
9937 need_version=unknown
9938
9939 case $host_os in
9940 aix3*)
9941   version_type=linux # correct to gnu/linux during the next big refactor
9942   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9943   shlibpath_var=LIBPATH
9944
9945   # AIX 3 has no versioning support, so we append a major version to the name.
9946   soname_spec='${libname}${release}${shared_ext}$major'
9947   ;;
9948
9949 aix[4-9]*)
9950   version_type=linux # correct to gnu/linux during the next big refactor
9951   need_lib_prefix=no
9952   need_version=no
9953   hardcode_into_libs=yes
9954   if test "$host_cpu" = ia64; then
9955     # AIX 5 supports IA64
9956     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9957     shlibpath_var=LD_LIBRARY_PATH
9958   else
9959     # With GCC up to 2.95.x, collect2 would create an import file
9960     # for dependence libraries.  The import file would start with
9961     # the line `#! .'.  This would cause the generated library to
9962     # depend on `.', always an invalid library.  This was fixed in
9963     # development snapshots of GCC prior to 3.0.
9964     case $host_os in
9965       aix4 | aix4.[01] | aix4.[01].*)
9966       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9967            echo ' yes '
9968            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9969         :
9970       else
9971         can_build_shared=no
9972       fi
9973       ;;
9974     esac
9975     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9976     # soname into executable. Probably we can add versioning support to
9977     # collect2, so additional links can be useful in future.
9978     if test "$aix_use_runtimelinking" = yes; then
9979       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9980       # instead of lib<name>.a to let people know that these are not
9981       # typical AIX shared libraries.
9982       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983     else
9984       # We preserve .a as extension for shared libraries through AIX4.2
9985       # and later when we are not doing run time linking.
9986       library_names_spec='${libname}${release}.a $libname.a'
9987       soname_spec='${libname}${release}${shared_ext}$major'
9988     fi
9989     shlibpath_var=LIBPATH
9990   fi
9991   ;;
9992
9993 amigaos*)
9994   case $host_cpu in
9995   powerpc)
9996     # Since July 2007 AmigaOS4 officially supports .so libraries.
9997     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999     ;;
10000   m68k)
10001     library_names_spec='$libname.ixlibrary $libname.a'
10002     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10003     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'
10004     ;;
10005   esac
10006   ;;
10007
10008 beos*)
10009   library_names_spec='${libname}${shared_ext}'
10010   dynamic_linker="$host_os ld.so"
10011   shlibpath_var=LIBRARY_PATH
10012   ;;
10013
10014 bsdi[45]*)
10015   version_type=linux # correct to gnu/linux during the next big refactor
10016   need_version=no
10017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018   soname_spec='${libname}${release}${shared_ext}$major'
10019   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10020   shlibpath_var=LD_LIBRARY_PATH
10021   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10022   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10023   # the default ld.so.conf also contains /usr/contrib/lib and
10024   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10025   # libtool to hard-code these into programs
10026   ;;
10027
10028 cygwin* | mingw* | pw32* | cegcc*)
10029   version_type=windows
10030   shrext_cmds=".dll"
10031   need_version=no
10032   need_lib_prefix=no
10033
10034   case $GCC,$cc_basename in
10035   yes,*)
10036     # gcc
10037     library_names_spec='$libname.dll.a'
10038     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10039     postinstall_cmds='base_file=`basename \${file}`~
10040       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10041       dldir=$destdir/`dirname \$dlpath`~
10042       test -d \$dldir || mkdir -p \$dldir~
10043       $install_prog $dir/$dlname \$dldir/$dlname~
10044       chmod a+x \$dldir/$dlname~
10045       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10046         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10047       fi'
10048     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10049       dlpath=$dir/\$dldll~
10050        $RM \$dlpath'
10051     shlibpath_overrides_runpath=yes
10052
10053     case $host_os in
10054     cygwin*)
10055       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10056       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10057
10058       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10059       ;;
10060     mingw* | cegcc*)
10061       # MinGW DLLs use traditional 'lib' prefix
10062       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10063       ;;
10064     pw32*)
10065       # pw32 DLLs use 'pw' prefix rather than 'lib'
10066       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10067       ;;
10068     esac
10069     dynamic_linker='Win32 ld.exe'
10070     ;;
10071
10072   *,cl*)
10073     # Native MSVC
10074     libname_spec='$name'
10075     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10076     library_names_spec='${libname}.dll.lib'
10077
10078     case $build_os in
10079     mingw*)
10080       sys_lib_search_path_spec=
10081       lt_save_ifs=$IFS
10082       IFS=';'
10083       for lt_path in $LIB
10084       do
10085         IFS=$lt_save_ifs
10086         # Let DOS variable expansion print the short 8.3 style file name.
10087         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10088         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10089       done
10090       IFS=$lt_save_ifs
10091       # Convert to MSYS style.
10092       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10093       ;;
10094     cygwin*)
10095       # Convert to unix form, then to dos form, then back to unix form
10096       # but this time dos style (no spaces!) so that the unix form looks
10097       # like /cygdrive/c/PROGRA~1:/cygdr...
10098       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10099       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10100       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10101       ;;
10102     *)
10103       sys_lib_search_path_spec="$LIB"
10104       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10105         # It is most probably a Windows format PATH.
10106         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10107       else
10108         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10109       fi
10110       # FIXME: find the short name or the path components, as spaces are
10111       # common. (e.g. "Program Files" -> "PROGRA~1")
10112       ;;
10113     esac
10114
10115     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10116     postinstall_cmds='base_file=`basename \${file}`~
10117       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10118       dldir=$destdir/`dirname \$dlpath`~
10119       test -d \$dldir || mkdir -p \$dldir~
10120       $install_prog $dir/$dlname \$dldir/$dlname'
10121     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10122       dlpath=$dir/\$dldll~
10123        $RM \$dlpath'
10124     shlibpath_overrides_runpath=yes
10125     dynamic_linker='Win32 link.exe'
10126     ;;
10127
10128   *)
10129     # Assume MSVC wrapper
10130     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10131     dynamic_linker='Win32 ld.exe'
10132     ;;
10133   esac
10134   # FIXME: first we should search . and the directory the executable is in
10135   shlibpath_var=PATH
10136   ;;
10137
10138 darwin* | rhapsody*)
10139   dynamic_linker="$host_os dyld"
10140   version_type=darwin
10141   need_lib_prefix=no
10142   need_version=no
10143   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10144   soname_spec='${libname}${release}${major}$shared_ext'
10145   shlibpath_overrides_runpath=yes
10146   shlibpath_var=DYLD_LIBRARY_PATH
10147   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10148
10149   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10150   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10151   ;;
10152
10153 dgux*)
10154   version_type=linux # correct to gnu/linux during the next big refactor
10155   need_lib_prefix=no
10156   need_version=no
10157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10158   soname_spec='${libname}${release}${shared_ext}$major'
10159   shlibpath_var=LD_LIBRARY_PATH
10160   ;;
10161
10162 freebsd* | dragonfly*)
10163   # DragonFly does not have aout.  When/if they implement a new
10164   # versioning mechanism, adjust this.
10165   if test -x /usr/bin/objformat; then
10166     objformat=`/usr/bin/objformat`
10167   else
10168     case $host_os in
10169     freebsd[23].*) objformat=aout ;;
10170     *) objformat=elf ;;
10171     esac
10172   fi
10173   version_type=freebsd-$objformat
10174   case $version_type in
10175     freebsd-elf*)
10176       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10177       need_version=no
10178       need_lib_prefix=no
10179       ;;
10180     freebsd-*)
10181       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10182       need_version=yes
10183       ;;
10184   esac
10185   shlibpath_var=LD_LIBRARY_PATH
10186   case $host_os in
10187   freebsd2.*)
10188     shlibpath_overrides_runpath=yes
10189     ;;
10190   freebsd3.[01]* | freebsdelf3.[01]*)
10191     shlibpath_overrides_runpath=yes
10192     hardcode_into_libs=yes
10193     ;;
10194   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10195   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10196     shlibpath_overrides_runpath=no
10197     hardcode_into_libs=yes
10198     ;;
10199   *) # from 4.6 on, and DragonFly
10200     shlibpath_overrides_runpath=yes
10201     hardcode_into_libs=yes
10202     ;;
10203   esac
10204   ;;
10205
10206 haiku*)
10207   version_type=linux # correct to gnu/linux during the next big refactor
10208   need_lib_prefix=no
10209   need_version=no
10210   dynamic_linker="$host_os runtime_loader"
10211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10212   soname_spec='${libname}${release}${shared_ext}$major'
10213   shlibpath_var=LIBRARY_PATH
10214   shlibpath_overrides_runpath=yes
10215   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10216   hardcode_into_libs=yes
10217   ;;
10218
10219 hpux9* | hpux10* | hpux11*)
10220   # Give a soname corresponding to the major version so that dld.sl refuses to
10221   # link against other versions.
10222   version_type=sunos
10223   need_lib_prefix=no
10224   need_version=no
10225   case $host_cpu in
10226   ia64*)
10227     shrext_cmds='.so'
10228     hardcode_into_libs=yes
10229     dynamic_linker="$host_os dld.so"
10230     shlibpath_var=LD_LIBRARY_PATH
10231     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233     soname_spec='${libname}${release}${shared_ext}$major'
10234     if test "X$HPUX_IA64_MODE" = X32; then
10235       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10236     else
10237       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10238     fi
10239     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10240     ;;
10241   hppa*64*)
10242     shrext_cmds='.sl'
10243     hardcode_into_libs=yes
10244     dynamic_linker="$host_os dld.sl"
10245     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10246     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248     soname_spec='${libname}${release}${shared_ext}$major'
10249     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10250     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10251     ;;
10252   *)
10253     shrext_cmds='.sl'
10254     dynamic_linker="$host_os dld.sl"
10255     shlibpath_var=SHLIB_PATH
10256     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258     soname_spec='${libname}${release}${shared_ext}$major'
10259     ;;
10260   esac
10261   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10262   postinstall_cmds='chmod 555 $lib'
10263   # or fails outright, so override atomically:
10264   install_override_mode=555
10265   ;;
10266
10267 interix[3-9]*)
10268   version_type=linux # correct to gnu/linux during the next big refactor
10269   need_lib_prefix=no
10270   need_version=no
10271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10272   soname_spec='${libname}${release}${shared_ext}$major'
10273   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10274   shlibpath_var=LD_LIBRARY_PATH
10275   shlibpath_overrides_runpath=no
10276   hardcode_into_libs=yes
10277   ;;
10278
10279 irix5* | irix6* | nonstopux*)
10280   case $host_os in
10281     nonstopux*) version_type=nonstopux ;;
10282     *)
10283         if test "$lt_cv_prog_gnu_ld" = yes; then
10284                 version_type=linux # correct to gnu/linux during the next big refactor
10285         else
10286                 version_type=irix
10287         fi ;;
10288   esac
10289   need_lib_prefix=no
10290   need_version=no
10291   soname_spec='${libname}${release}${shared_ext}$major'
10292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10293   case $host_os in
10294   irix5* | nonstopux*)
10295     libsuff= shlibsuff=
10296     ;;
10297   *)
10298     case $LD in # libtool.m4 will add one of these switches to LD
10299     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10300       libsuff= shlibsuff= libmagic=32-bit;;
10301     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10302       libsuff=32 shlibsuff=N32 libmagic=N32;;
10303     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10304       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10305     *) libsuff= shlibsuff= libmagic=never-match;;
10306     esac
10307     ;;
10308   esac
10309   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10310   shlibpath_overrides_runpath=no
10311   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10312   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10313   hardcode_into_libs=yes
10314   ;;
10315
10316 # No shared lib support for Linux oldld, aout, or coff.
10317 linux*oldld* | linux*aout* | linux*coff*)
10318   dynamic_linker=no
10319   ;;
10320
10321 # This must be glibc/ELF.
10322 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10323   version_type=linux # correct to gnu/linux during the next big refactor
10324   need_lib_prefix=no
10325   need_version=no
10326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327   soname_spec='${libname}${release}${shared_ext}$major'
10328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10329   shlibpath_var=LD_LIBRARY_PATH
10330   shlibpath_overrides_runpath=no
10331
10332   # Some binutils ld are patched to set DT_RUNPATH
10333   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10334   $as_echo_n "(cached) " >&6
10335 else
10336   lt_cv_shlibpath_overrides_runpath=no
10337     save_LDFLAGS=$LDFLAGS
10338     save_libdir=$libdir
10339     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10340          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h.  */
10343
10344 int
10345 main ()
10346 {
10347
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"; then :
10353   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10354   lt_cv_shlibpath_overrides_runpath=yes
10355 fi
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext \
10358     conftest$ac_exeext conftest.$ac_ext
10359     LDFLAGS=$save_LDFLAGS
10360     libdir=$save_libdir
10361
10362 fi
10363
10364   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10365
10366   # This implies no fast_install, which is unacceptable.
10367   # Some rework will be needed to allow for fast_install
10368   # before this can be enabled.
10369   hardcode_into_libs=yes
10370
10371   # Append ld.so.conf contents to the search path
10372   if test -f /etc/ld.so.conf; then
10373     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' ' '`
10374     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10375   fi
10376
10377   # We used to test for /lib/ld.so.1 and disable shared libraries on
10378   # powerpc, because MkLinux only supported shared libraries with the
10379   # GNU dynamic linker.  Since this was broken with cross compilers,
10380   # most powerpc-linux boxes support dynamic linking these days and
10381   # people can always --disable-shared, the test was removed, and we
10382   # assume the GNU/Linux dynamic linker is in use.
10383   dynamic_linker='GNU/Linux ld.so'
10384   ;;
10385
10386 netbsdelf*-gnu)
10387   version_type=linux
10388   need_lib_prefix=no
10389   need_version=no
10390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10391   soname_spec='${libname}${release}${shared_ext}$major'
10392   shlibpath_var=LD_LIBRARY_PATH
10393   shlibpath_overrides_runpath=no
10394   hardcode_into_libs=yes
10395   dynamic_linker='NetBSD ld.elf_so'
10396   ;;
10397
10398 netbsd*)
10399   version_type=sunos
10400   need_lib_prefix=no
10401   need_version=no
10402   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10404     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10405     dynamic_linker='NetBSD (a.out) ld.so'
10406   else
10407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10408     soname_spec='${libname}${release}${shared_ext}$major'
10409     dynamic_linker='NetBSD ld.elf_so'
10410   fi
10411   shlibpath_var=LD_LIBRARY_PATH
10412   shlibpath_overrides_runpath=yes
10413   hardcode_into_libs=yes
10414   ;;
10415
10416 newsos6)
10417   version_type=linux # correct to gnu/linux during the next big refactor
10418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419   shlibpath_var=LD_LIBRARY_PATH
10420   shlibpath_overrides_runpath=yes
10421   ;;
10422
10423 *nto* | *qnx*)
10424   version_type=qnx
10425   need_lib_prefix=no
10426   need_version=no
10427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428   soname_spec='${libname}${release}${shared_ext}$major'
10429   shlibpath_var=LD_LIBRARY_PATH
10430   shlibpath_overrides_runpath=no
10431   hardcode_into_libs=yes
10432   dynamic_linker='ldqnx.so'
10433   ;;
10434
10435 openbsd*)
10436   version_type=sunos
10437   sys_lib_dlsearch_path_spec="/usr/lib"
10438   need_lib_prefix=no
10439   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10440   case $host_os in
10441     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10442     *)                          need_version=no  ;;
10443   esac
10444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10445   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10446   shlibpath_var=LD_LIBRARY_PATH
10447   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10448     case $host_os in
10449       openbsd2.[89] | openbsd2.[89].*)
10450         shlibpath_overrides_runpath=no
10451         ;;
10452       *)
10453         shlibpath_overrides_runpath=yes
10454         ;;
10455       esac
10456   else
10457     shlibpath_overrides_runpath=yes
10458   fi
10459   ;;
10460
10461 os2*)
10462   libname_spec='$name'
10463   shrext_cmds=".dll"
10464   need_lib_prefix=no
10465   library_names_spec='$libname${shared_ext} $libname.a'
10466   dynamic_linker='OS/2 ld.exe'
10467   shlibpath_var=LIBPATH
10468   ;;
10469
10470 osf3* | osf4* | osf5*)
10471   version_type=osf
10472   need_lib_prefix=no
10473   need_version=no
10474   soname_spec='${libname}${release}${shared_ext}$major'
10475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476   shlibpath_var=LD_LIBRARY_PATH
10477   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10478   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10479   ;;
10480
10481 rdos*)
10482   dynamic_linker=no
10483   ;;
10484
10485 solaris*)
10486   version_type=linux # correct to gnu/linux during the next big refactor
10487   need_lib_prefix=no
10488   need_version=no
10489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490   soname_spec='${libname}${release}${shared_ext}$major'
10491   shlibpath_var=LD_LIBRARY_PATH
10492   shlibpath_overrides_runpath=yes
10493   hardcode_into_libs=yes
10494   # ldd complains unless libraries are executable
10495   postinstall_cmds='chmod +x $lib'
10496   ;;
10497
10498 sunos4*)
10499   version_type=sunos
10500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10501   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10502   shlibpath_var=LD_LIBRARY_PATH
10503   shlibpath_overrides_runpath=yes
10504   if test "$with_gnu_ld" = yes; then
10505     need_lib_prefix=no
10506   fi
10507   need_version=yes
10508   ;;
10509
10510 sysv4 | sysv4.3*)
10511   version_type=linux # correct to gnu/linux during the next big refactor
10512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513   soname_spec='${libname}${release}${shared_ext}$major'
10514   shlibpath_var=LD_LIBRARY_PATH
10515   case $host_vendor in
10516     sni)
10517       shlibpath_overrides_runpath=no
10518       need_lib_prefix=no
10519       runpath_var=LD_RUN_PATH
10520       ;;
10521     siemens)
10522       need_lib_prefix=no
10523       ;;
10524     motorola)
10525       need_lib_prefix=no
10526       need_version=no
10527       shlibpath_overrides_runpath=no
10528       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10529       ;;
10530   esac
10531   ;;
10532
10533 sysv4*MP*)
10534   if test -d /usr/nec ;then
10535     version_type=linux # correct to gnu/linux during the next big refactor
10536     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10537     soname_spec='$libname${shared_ext}.$major'
10538     shlibpath_var=LD_LIBRARY_PATH
10539   fi
10540   ;;
10541
10542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10543   version_type=freebsd-elf
10544   need_lib_prefix=no
10545   need_version=no
10546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10547   soname_spec='${libname}${release}${shared_ext}$major'
10548   shlibpath_var=LD_LIBRARY_PATH
10549   shlibpath_overrides_runpath=yes
10550   hardcode_into_libs=yes
10551   if test "$with_gnu_ld" = yes; then
10552     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10553   else
10554     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10555     case $host_os in
10556       sco3.2v5*)
10557         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10558         ;;
10559     esac
10560   fi
10561   sys_lib_dlsearch_path_spec='/usr/lib'
10562   ;;
10563
10564 tpf*)
10565   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10566   version_type=linux # correct to gnu/linux during the next big refactor
10567   need_lib_prefix=no
10568   need_version=no
10569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570   shlibpath_var=LD_LIBRARY_PATH
10571   shlibpath_overrides_runpath=no
10572   hardcode_into_libs=yes
10573   ;;
10574
10575 uts4*)
10576   version_type=linux # correct to gnu/linux during the next big refactor
10577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578   soname_spec='${libname}${release}${shared_ext}$major'
10579   shlibpath_var=LD_LIBRARY_PATH
10580   ;;
10581
10582 *)
10583   dynamic_linker=no
10584   ;;
10585 esac
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10587 $as_echo "$dynamic_linker" >&6; }
10588 test "$dynamic_linker" = no && can_build_shared=no
10589
10590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10591 if test "$GCC" = yes; then
10592   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10593 fi
10594
10595 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10596   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10597 fi
10598 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10599   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10600 fi
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10695 hardcode_action=
10696 if test -n "$hardcode_libdir_flag_spec" ||
10697    test -n "$runpath_var" ||
10698    test "X$hardcode_automatic" = "Xyes" ; then
10699
10700   # We can hardcode non-existent directories.
10701   if test "$hardcode_direct" != no &&
10702      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10703      # have to relink, otherwise we might link with an installed library
10704      # when we should be linking with a yet-to-be-installed one
10705      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10706      test "$hardcode_minus_L" != no; then
10707     # Linking always hardcodes the temporary library directory.
10708     hardcode_action=relink
10709   else
10710     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10711     hardcode_action=immediate
10712   fi
10713 else
10714   # We cannot hardcode anything, or else we can only hardcode existing
10715   # directories.
10716   hardcode_action=unsupported
10717 fi
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10719 $as_echo "$hardcode_action" >&6; }
10720
10721 if test "$hardcode_action" = relink ||
10722    test "$inherit_rpath" = yes; then
10723   # Fast installation is not supported
10724   enable_fast_install=no
10725 elif test "$shlibpath_overrides_runpath" = yes ||
10726      test "$enable_shared" = no; then
10727   # Fast installation is not necessary
10728   enable_fast_install=needless
10729 fi
10730
10731
10732
10733
10734
10735
10736   if test "x$enable_dlopen" != xyes; then
10737   enable_dlopen=unknown
10738   enable_dlopen_self=unknown
10739   enable_dlopen_self_static=unknown
10740 else
10741   lt_cv_dlopen=no
10742   lt_cv_dlopen_libs=
10743
10744   case $host_os in
10745   beos*)
10746     lt_cv_dlopen="load_add_on"
10747     lt_cv_dlopen_libs=
10748     lt_cv_dlopen_self=yes
10749     ;;
10750
10751   mingw* | pw32* | cegcc*)
10752     lt_cv_dlopen="LoadLibrary"
10753     lt_cv_dlopen_libs=
10754     ;;
10755
10756   cygwin*)
10757     lt_cv_dlopen="dlopen"
10758     lt_cv_dlopen_libs=
10759     ;;
10760
10761   darwin*)
10762   # if libdl is installed we need to link against it
10763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10764 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10765 if ${ac_cv_lib_dl_dlopen+:} false; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768   ac_check_lib_save_LIBS=$LIBS
10769 LIBS="-ldl  $LIBS"
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h.  */
10772
10773 /* Override any GCC internal prototype to avoid an error.
10774    Use char because int might match the return type of a GCC
10775    builtin and then its argument prototype would still apply.  */
10776 #ifdef __cplusplus
10777 extern "C"
10778 #endif
10779 char dlopen ();
10780 int
10781 main ()
10782 {
10783 return dlopen ();
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 if ac_fn_c_try_link "$LINENO"; then :
10789   ac_cv_lib_dl_dlopen=yes
10790 else
10791   ac_cv_lib_dl_dlopen=no
10792 fi
10793 rm -f core conftest.err conftest.$ac_objext \
10794     conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10796 fi
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10798 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10799 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10800   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10801 else
10802
10803     lt_cv_dlopen="dyld"
10804     lt_cv_dlopen_libs=
10805     lt_cv_dlopen_self=yes
10806
10807 fi
10808
10809     ;;
10810
10811   *)
10812     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10813 if test "x$ac_cv_func_shl_load" = xyes; then :
10814   lt_cv_dlopen="shl_load"
10815 else
10816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10817 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10818 if ${ac_cv_lib_dld_shl_load+:} false; then :
10819   $as_echo_n "(cached) " >&6
10820 else
10821   ac_check_lib_save_LIBS=$LIBS
10822 LIBS="-ldld  $LIBS"
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h.  */
10825
10826 /* Override any GCC internal prototype to avoid an error.
10827    Use char because int might match the return type of a GCC
10828    builtin and then its argument prototype would still apply.  */
10829 #ifdef __cplusplus
10830 extern "C"
10831 #endif
10832 char shl_load ();
10833 int
10834 main ()
10835 {
10836 return shl_load ();
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 if ac_fn_c_try_link "$LINENO"; then :
10842   ac_cv_lib_dld_shl_load=yes
10843 else
10844   ac_cv_lib_dld_shl_load=no
10845 fi
10846 rm -f core conftest.err conftest.$ac_objext \
10847     conftest$ac_exeext conftest.$ac_ext
10848 LIBS=$ac_check_lib_save_LIBS
10849 fi
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10851 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10852 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10853   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10854 else
10855   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10856 if test "x$ac_cv_func_dlopen" = xyes; then :
10857   lt_cv_dlopen="dlopen"
10858 else
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10860 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10861 if ${ac_cv_lib_dl_dlopen+:} false; then :
10862   $as_echo_n "(cached) " >&6
10863 else
10864   ac_check_lib_save_LIBS=$LIBS
10865 LIBS="-ldl  $LIBS"
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h.  */
10868
10869 /* Override any GCC internal prototype to avoid an error.
10870    Use char because int might match the return type of a GCC
10871    builtin and then its argument prototype would still apply.  */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 char dlopen ();
10876 int
10877 main ()
10878 {
10879 return dlopen ();
10880   ;
10881   return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"; then :
10885   ac_cv_lib_dl_dlopen=yes
10886 else
10887   ac_cv_lib_dl_dlopen=no
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext \
10890     conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10892 fi
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10894 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10895 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10899 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10900 if ${ac_cv_lib_svld_dlopen+:} false; then :
10901   $as_echo_n "(cached) " >&6
10902 else
10903   ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lsvld  $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h.  */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909    Use char because int might match the return type of a GCC
10910    builtin and then its argument prototype would still apply.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char dlopen ();
10915 int
10916 main ()
10917 {
10918 return dlopen ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924   ac_cv_lib_svld_dlopen=yes
10925 else
10926   ac_cv_lib_svld_dlopen=no
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext \
10929     conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10933 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10934 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10935   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10936 else
10937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10938 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10939 if ${ac_cv_lib_dld_dld_link+:} false; then :
10940   $as_echo_n "(cached) " >&6
10941 else
10942   ac_check_lib_save_LIBS=$LIBS
10943 LIBS="-ldld  $LIBS"
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h.  */
10946
10947 /* Override any GCC internal prototype to avoid an error.
10948    Use char because int might match the return type of a GCC
10949    builtin and then its argument prototype would still apply.  */
10950 #ifdef __cplusplus
10951 extern "C"
10952 #endif
10953 char dld_link ();
10954 int
10955 main ()
10956 {
10957 return dld_link ();
10958   ;
10959   return 0;
10960 }
10961 _ACEOF
10962 if ac_fn_c_try_link "$LINENO"; then :
10963   ac_cv_lib_dld_dld_link=yes
10964 else
10965   ac_cv_lib_dld_dld_link=no
10966 fi
10967 rm -f core conftest.err conftest.$ac_objext \
10968     conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10970 fi
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10972 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10973 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10974   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10975 fi
10976
10977
10978 fi
10979
10980
10981 fi
10982
10983
10984 fi
10985
10986
10987 fi
10988
10989
10990 fi
10991
10992     ;;
10993   esac
10994
10995   if test "x$lt_cv_dlopen" != xno; then
10996     enable_dlopen=yes
10997   else
10998     enable_dlopen=no
10999   fi
11000
11001   case $lt_cv_dlopen in
11002   dlopen)
11003     save_CPPFLAGS="$CPPFLAGS"
11004     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11005
11006     save_LDFLAGS="$LDFLAGS"
11007     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11008
11009     save_LIBS="$LIBS"
11010     LIBS="$lt_cv_dlopen_libs $LIBS"
11011
11012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11013 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11014 if ${lt_cv_dlopen_self+:} false; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017           if test "$cross_compiling" = yes; then :
11018   lt_cv_dlopen_self=cross
11019 else
11020   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11021   lt_status=$lt_dlunknown
11022   cat > conftest.$ac_ext <<_LT_EOF
11023 #line $LINENO "configure"
11024 #include "confdefs.h"
11025
11026 #if HAVE_DLFCN_H
11027 #include <dlfcn.h>
11028 #endif
11029
11030 #include <stdio.h>
11031
11032 #ifdef RTLD_GLOBAL
11033 #  define LT_DLGLOBAL           RTLD_GLOBAL
11034 #else
11035 #  ifdef DL_GLOBAL
11036 #    define LT_DLGLOBAL         DL_GLOBAL
11037 #  else
11038 #    define LT_DLGLOBAL         0
11039 #  endif
11040 #endif
11041
11042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11043    find out it does not work in some platform. */
11044 #ifndef LT_DLLAZY_OR_NOW
11045 #  ifdef RTLD_LAZY
11046 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11047 #  else
11048 #    ifdef DL_LAZY
11049 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11050 #    else
11051 #      ifdef RTLD_NOW
11052 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11053 #      else
11054 #        ifdef DL_NOW
11055 #          define LT_DLLAZY_OR_NOW      DL_NOW
11056 #        else
11057 #          define LT_DLLAZY_OR_NOW      0
11058 #        endif
11059 #      endif
11060 #    endif
11061 #  endif
11062 #endif
11063
11064 /* When -fvisbility=hidden is used, assume the code has been annotated
11065    correspondingly for the symbols needed.  */
11066 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11067 int fnord () __attribute__((visibility("default")));
11068 #endif
11069
11070 int fnord () { return 42; }
11071 int main ()
11072 {
11073   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11074   int status = $lt_dlunknown;
11075
11076   if (self)
11077     {
11078       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11079       else
11080         {
11081           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11082           else puts (dlerror ());
11083         }
11084       /* dlclose (self); */
11085     }
11086   else
11087     puts (dlerror ());
11088
11089   return status;
11090 }
11091 _LT_EOF
11092   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11093   (eval $ac_link) 2>&5
11094   ac_status=$?
11095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11097     (./conftest; exit; ) >&5 2>/dev/null
11098     lt_status=$?
11099     case x$lt_status in
11100       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11101       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11102       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11103     esac
11104   else :
11105     # compilation failed
11106     lt_cv_dlopen_self=no
11107   fi
11108 fi
11109 rm -fr conftest*
11110
11111
11112 fi
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11114 $as_echo "$lt_cv_dlopen_self" >&6; }
11115
11116     if test "x$lt_cv_dlopen_self" = xyes; then
11117       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11118       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11119 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11120 if ${lt_cv_dlopen_self_static+:} false; then :
11121   $as_echo_n "(cached) " >&6
11122 else
11123           if test "$cross_compiling" = yes; then :
11124   lt_cv_dlopen_self_static=cross
11125 else
11126   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11127   lt_status=$lt_dlunknown
11128   cat > conftest.$ac_ext <<_LT_EOF
11129 #line $LINENO "configure"
11130 #include "confdefs.h"
11131
11132 #if HAVE_DLFCN_H
11133 #include <dlfcn.h>
11134 #endif
11135
11136 #include <stdio.h>
11137
11138 #ifdef RTLD_GLOBAL
11139 #  define LT_DLGLOBAL           RTLD_GLOBAL
11140 #else
11141 #  ifdef DL_GLOBAL
11142 #    define LT_DLGLOBAL         DL_GLOBAL
11143 #  else
11144 #    define LT_DLGLOBAL         0
11145 #  endif
11146 #endif
11147
11148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11149    find out it does not work in some platform. */
11150 #ifndef LT_DLLAZY_OR_NOW
11151 #  ifdef RTLD_LAZY
11152 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11153 #  else
11154 #    ifdef DL_LAZY
11155 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11156 #    else
11157 #      ifdef RTLD_NOW
11158 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11159 #      else
11160 #        ifdef DL_NOW
11161 #          define LT_DLLAZY_OR_NOW      DL_NOW
11162 #        else
11163 #          define LT_DLLAZY_OR_NOW      0
11164 #        endif
11165 #      endif
11166 #    endif
11167 #  endif
11168 #endif
11169
11170 /* When -fvisbility=hidden is used, assume the code has been annotated
11171    correspondingly for the symbols needed.  */
11172 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11173 int fnord () __attribute__((visibility("default")));
11174 #endif
11175
11176 int fnord () { return 42; }
11177 int main ()
11178 {
11179   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11180   int status = $lt_dlunknown;
11181
11182   if (self)
11183     {
11184       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11185       else
11186         {
11187           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11188           else puts (dlerror ());
11189         }
11190       /* dlclose (self); */
11191     }
11192   else
11193     puts (dlerror ());
11194
11195   return status;
11196 }
11197 _LT_EOF
11198   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11199   (eval $ac_link) 2>&5
11200   ac_status=$?
11201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11202   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11203     (./conftest; exit; ) >&5 2>/dev/null
11204     lt_status=$?
11205     case x$lt_status in
11206       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11207       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11208       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11209     esac
11210   else :
11211     # compilation failed
11212     lt_cv_dlopen_self_static=no
11213   fi
11214 fi
11215 rm -fr conftest*
11216
11217
11218 fi
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11220 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11221     fi
11222
11223     CPPFLAGS="$save_CPPFLAGS"
11224     LDFLAGS="$save_LDFLAGS"
11225     LIBS="$save_LIBS"
11226     ;;
11227   esac
11228
11229   case $lt_cv_dlopen_self in
11230   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11231   *) enable_dlopen_self=unknown ;;
11232   esac
11233
11234   case $lt_cv_dlopen_self_static in
11235   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11236   *) enable_dlopen_self_static=unknown ;;
11237   esac
11238 fi
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256 striplib=
11257 old_striplib=
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11259 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11260 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11261   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11262   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264 $as_echo "yes" >&6; }
11265 else
11266 # FIXME - insert some real tests, host_os isn't really good enough
11267   case $host_os in
11268   darwin*)
11269     if test -n "$STRIP" ; then
11270       striplib="$STRIP -x"
11271       old_striplib="$STRIP -S"
11272       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11273 $as_echo "yes" >&6; }
11274     else
11275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11277     fi
11278     ;;
11279   *)
11280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11282     ;;
11283   esac
11284 fi
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297   # Report which library types will actually be built
11298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11299 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11301 $as_echo "$can_build_shared" >&6; }
11302
11303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11304 $as_echo_n "checking whether to build shared libraries... " >&6; }
11305   test "$can_build_shared" = "no" && enable_shared=no
11306
11307   # On AIX, shared libraries and static libraries use the same namespace, and
11308   # are all built from PIC.
11309   case $host_os in
11310   aix3*)
11311     test "$enable_shared" = yes && enable_static=no
11312     if test -n "$RANLIB"; then
11313       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11314       postinstall_cmds='$RANLIB $lib'
11315     fi
11316     ;;
11317
11318   aix[4-9]*)
11319     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11320       test "$enable_shared" = yes && enable_static=no
11321     fi
11322     ;;
11323   esac
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11325 $as_echo "$enable_shared" >&6; }
11326
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11328 $as_echo_n "checking whether to build static libraries... " >&6; }
11329   # Make sure either enable_shared or enable_static is yes.
11330   test "$enable_shared" = yes || enable_static=yes
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11332 $as_echo "$enable_static" >&6; }
11333
11334
11335
11336
11337 fi
11338 ac_ext=c
11339 ac_cpp='$CPP $CPPFLAGS'
11340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11343
11344 CC="$lt_save_CC"
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360         ac_config_commands="$ac_config_commands libtool"
11361
11362
11363
11364
11365 # Only expand once:
11366
11367
11368
11369
11370 # checks for native programs to generate building tool
11371
11372 if test ${cross_compiling} = yes; then
11373   # Extract the first word of "${build}-gcc", so it can be a program name with args.
11374 set dummy ${build}-gcc; ac_word=$2
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376 $as_echo_n "checking for $ac_word... " >&6; }
11377 if ${ac_cv_prog_CC_BUILD+:} false; then :
11378   $as_echo_n "(cached) " >&6
11379 else
11380   if test -n "$CC_BUILD"; then
11381   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
11382 else
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386   IFS=$as_save_IFS
11387   test -z "$as_dir" && as_dir=.
11388     for ac_exec_ext in '' $ac_executable_extensions; do
11389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390     ac_cv_prog_CC_BUILD="${build}-gcc"
11391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392     break 2
11393   fi
11394 done
11395   done
11396 IFS=$as_save_IFS
11397
11398 fi
11399 fi
11400 CC_BUILD=$ac_cv_prog_CC_BUILD
11401 if test -n "$CC_BUILD"; then
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
11403 $as_echo "$CC_BUILD" >&6; }
11404 else
11405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 fi
11408
11409
11410   test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
11411 set dummy gcc; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if ${ac_cv_prog_CC_BUILD+:} false; then :
11415   $as_echo_n "(cached) " >&6
11416 else
11417   if test -n "$CC_BUILD"; then
11418   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
11419 else
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11422 do
11423   IFS=$as_save_IFS
11424   test -z "$as_dir" && as_dir=.
11425     for ac_exec_ext in '' $ac_executable_extensions; do
11426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427     ac_cv_prog_CC_BUILD="gcc"
11428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429     break 2
11430   fi
11431 done
11432   done
11433 IFS=$as_save_IFS
11434
11435 fi
11436 fi
11437 CC_BUILD=$ac_cv_prog_CC_BUILD
11438 if test -n "$CC_BUILD"; then
11439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
11440 $as_echo "$CC_BUILD" >&6; }
11441 else
11442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11444 fi
11445
11446
11447   test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
11448 set dummy cc; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_prog_CC_BUILD+:} false; then :
11452   $as_echo_n "(cached) " >&6
11453 else
11454   if test -n "$CC_BUILD"; then
11455   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
11456 else
11457   ac_prog_rejected=no
11458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH
11460 do
11461   IFS=$as_save_IFS
11462   test -z "$as_dir" && as_dir=.
11463     for ac_exec_ext in '' $ac_executable_extensions; do
11464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11465     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11466        ac_prog_rejected=yes
11467        continue
11468      fi
11469     ac_cv_prog_CC_BUILD="cc"
11470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471     break 2
11472   fi
11473 done
11474   done
11475 IFS=$as_save_IFS
11476
11477 if test $ac_prog_rejected = yes; then
11478   # We found a bogon in the path, so make sure we never use it.
11479   set dummy $ac_cv_prog_CC_BUILD
11480   shift
11481   if test $# != 0; then
11482     # We chose a different compiler from the bogus one.
11483     # However, it has the same basename, so the bogon will be chosen
11484     # first if we set CC_BUILD to just the basename; use the full file name.
11485     shift
11486     ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
11487   fi
11488 fi
11489 fi
11490 fi
11491 CC_BUILD=$ac_cv_prog_CC_BUILD
11492 if test -n "$CC_BUILD"; then
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
11494 $as_echo "$CC_BUILD" >&6; }
11495 else
11496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11498 fi
11499
11500
11501   test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
11502
11503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
11504 $as_echo_n "checking for suffix of native executables... " >&6; }
11505   rm -f a.* b.* a_out.exe conftest.*
11506   echo > conftest.c "int main() { return 0;}"
11507   ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
11508   rm -f conftest.c
11509   if test -x a.out -o -x b.out -o -x conftest; then
11510     EXEEXT_BUILD=""
11511   elif test -x a_out.exe -o -x conftest.exe; then
11512     EXEEXT_BUILD=".exe"
11513   elif test -x conftest.*; then
11514     EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
11515   fi
11516   rm -f a.* b.* a_out.exe conftest.*
11517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
11518 $as_echo "$EXEEXT_BUILD" >&6; }
11519 else
11520   CC_BUILD=${CC}
11521   EXEEXT_BUILD=${EXEEXT}
11522 fi
11523
11524
11525
11526
11527
11528 # auxiliary programs
11529
11530 # Extract the first word of "rmdir", so it can be a program name with args.
11531 set dummy rmdir; ac_word=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if ${ac_cv_prog_RMDIR+:} false; then :
11535   $as_echo_n "(cached) " >&6
11536 else
11537   if test -n "$RMDIR"; then
11538   ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
11539 else
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11542 do
11543   IFS=$as_save_IFS
11544   test -z "$as_dir" && as_dir=.
11545     for ac_exec_ext in '' $ac_executable_extensions; do
11546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11547     ac_cv_prog_RMDIR="rmdir"
11548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11549     break 2
11550   fi
11551 done
11552   done
11553 IFS=$as_save_IFS
11554
11555 fi
11556 fi
11557 RMDIR=$ac_cv_prog_RMDIR
11558 if test -n "$RMDIR"; then
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
11560 $as_echo "$RMDIR" >&6; }
11561 else
11562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 fi
11565
11566
11567
11568
11569 # Since this file will be finally moved to another directory we make
11570 # the path of the install script absolute.  This small code snippet has
11571 # been taken from automake's `ylwrap' script.
11572
11573 # Find a good install program.  We prefer a C program (faster),
11574 # so one script is as good as another.  But avoid the broken or
11575 # incompatible versions:
11576 # SysV /etc/install, /usr/sbin/install
11577 # SunOS /usr/etc/install
11578 # IRIX /sbin/install
11579 # AIX /bin/install
11580 # AmigaOS /C/install, which installs bootblocks on floppy discs
11581 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11584 # OS/2's system install, which has a completely different semantic
11585 # ./install, which can be erroneously created by make from ./install.sh.
11586 # Reject install programs that cannot install multiple files.
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11588 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11589 if test -z "$INSTALL"; then
11590 if ${ac_cv_path_install+:} false; then :
11591   $as_echo_n "(cached) " >&6
11592 else
11593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11595 do
11596   IFS=$as_save_IFS
11597   test -z "$as_dir" && as_dir=.
11598     # Account for people who put trailing slashes in PATH elements.
11599 case $as_dir/ in #((
11600   ./ | .// | /[cC]/* | \
11601   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11602   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11603   /usr/ucb/* ) ;;
11604   *)
11605     # OSF1 and SCO ODT 3.0 have their own names for install.
11606     # Don't use installbsd from OSF since it installs stuff as root
11607     # by default.
11608     for ac_prog in ginstall scoinst install; do
11609       for ac_exec_ext in '' $ac_executable_extensions; do
11610         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11611           if test $ac_prog = install &&
11612             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11613             # AIX install.  It has an incompatible calling convention.
11614             :
11615           elif test $ac_prog = install &&
11616             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11617             # program-specific install script used by HP pwplus--don't use.
11618             :
11619           else
11620             rm -rf conftest.one conftest.two conftest.dir
11621             echo one > conftest.one
11622             echo two > conftest.two
11623             mkdir conftest.dir
11624             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11625               test -s conftest.one && test -s conftest.two &&
11626               test -s conftest.dir/conftest.one &&
11627               test -s conftest.dir/conftest.two
11628             then
11629               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11630               break 3
11631             fi
11632           fi
11633         fi
11634       done
11635     done
11636     ;;
11637 esac
11638
11639   done
11640 IFS=$as_save_IFS
11641
11642 rm -rf conftest.one conftest.two conftest.dir
11643
11644 fi
11645   if test "${ac_cv_path_install+set}" = set; then
11646     INSTALL=$ac_cv_path_install
11647   else
11648     # As a last resort, use the slow shell script.  Don't cache a
11649     # value for INSTALL within a source directory, because that will
11650     # break other packages using the cache if that directory is
11651     # removed, or if the value is a relative name.
11652     INSTALL=$ac_install_sh
11653   fi
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11656 $as_echo "$INSTALL" >&6; }
11657
11658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11659 # It thinks the first close brace ends the variable substitution.
11660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11661
11662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11663
11664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11665
11666 case "$INSTALL" in
11667 /*)
11668   ;;
11669 */*)
11670   INSTALL="`pwd`/$INSTALL"
11671   ;;
11672 esac
11673
11674
11675 # checks for header files
11676
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11678 $as_echo_n "checking for ANSI C header files... " >&6; }
11679 if ${ac_cv_header_stdc+:} false; then :
11680   $as_echo_n "(cached) " >&6
11681 else
11682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h.  */
11684 #include <stdlib.h>
11685 #include <stdarg.h>
11686 #include <string.h>
11687 #include <float.h>
11688
11689 int
11690 main ()
11691 {
11692
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 if ac_fn_c_try_compile "$LINENO"; then :
11698   ac_cv_header_stdc=yes
11699 else
11700   ac_cv_header_stdc=no
11701 fi
11702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11703
11704 if test $ac_cv_header_stdc = yes; then
11705   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h.  */
11708 #include <string.h>
11709
11710 _ACEOF
11711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11712   $EGREP "memchr" >/dev/null 2>&1; then :
11713
11714 else
11715   ac_cv_header_stdc=no
11716 fi
11717 rm -f conftest*
11718
11719 fi
11720
11721 if test $ac_cv_header_stdc = yes; then
11722   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h.  */
11725 #include <stdlib.h>
11726
11727 _ACEOF
11728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11729   $EGREP "free" >/dev/null 2>&1; then :
11730
11731 else
11732   ac_cv_header_stdc=no
11733 fi
11734 rm -f conftest*
11735
11736 fi
11737
11738 if test $ac_cv_header_stdc = yes; then
11739   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11740   if test "$cross_compiling" = yes; then :
11741   :
11742 else
11743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h.  */
11745 #include <ctype.h>
11746 #include <stdlib.h>
11747 #if ((' ' & 0x0FF) == 0x020)
11748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11750 #else
11751 # define ISLOWER(c) \
11752                    (('a' <= (c) && (c) <= 'i') \
11753                      || ('j' <= (c) && (c) <= 'r') \
11754                      || ('s' <= (c) && (c) <= 'z'))
11755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11756 #endif
11757
11758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11759 int
11760 main ()
11761 {
11762   int i;
11763   for (i = 0; i < 256; i++)
11764     if (XOR (islower (i), ISLOWER (i))
11765         || toupper (i) != TOUPPER (i))
11766       return 2;
11767   return 0;
11768 }
11769 _ACEOF
11770 if ac_fn_c_try_run "$LINENO"; then :
11771
11772 else
11773   ac_cv_header_stdc=no
11774 fi
11775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11776   conftest.$ac_objext conftest.beam conftest.$ac_ext
11777 fi
11778
11779 fi
11780 fi
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11782 $as_echo "$ac_cv_header_stdc" >&6; }
11783 if test $ac_cv_header_stdc = yes; then
11784
11785 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11786
11787 fi
11788
11789 for ac_header in fcntl.h unistd.h
11790 do :
11791   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11794   cat >>confdefs.h <<_ACEOF
11795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11796 _ACEOF
11797
11798 fi
11799
11800 done
11801
11802
11803
11804 # checks for typedefs, structures, and compiler characteristics
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11807 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11808 if ${ac_cv_c_const+:} false; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h.  */
11813
11814 int
11815 main ()
11816 {
11817
11818 #ifndef __cplusplus
11819   /* Ultrix mips cc rejects this sort of thing.  */
11820   typedef int charset[2];
11821   const charset cs = { 0, 0 };
11822   /* SunOS 4.1.1 cc rejects this.  */
11823   char const *const *pcpcc;
11824   char **ppc;
11825   /* NEC SVR4.0.2 mips cc rejects this.  */
11826   struct point {int x, y;};
11827   static struct point const zero = {0,0};
11828   /* AIX XL C 1.02.0.0 rejects this.
11829      It does not let you subtract one const X* pointer from another in
11830      an arm of an if-expression whose if-part is not a constant
11831      expression */
11832   const char *g = "string";
11833   pcpcc = &g + (g ? g-g : 0);
11834   /* HPUX 7.0 cc rejects these. */
11835   ++pcpcc;
11836   ppc = (char**) pcpcc;
11837   pcpcc = (char const *const *) ppc;
11838   { /* SCO 3.2v4 cc rejects this sort of thing.  */
11839     char tx;
11840     char *t = &tx;
11841     char const *s = 0 ? (char *) 0 : (char const *) 0;
11842
11843     *t++ = 0;
11844     if (s) return 0;
11845   }
11846   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11847     int x[] = {25, 17};
11848     const int *foo = &x[0];
11849     ++foo;
11850   }
11851   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11852     typedef const int *iptr;
11853     iptr p = 0;
11854     ++p;
11855   }
11856   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11857        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11858     struct s { int j; const int *ap[3]; } bx;
11859     struct s *b = &bx; b->j = 5;
11860   }
11861   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11862     const int foo = 10;
11863     if (!foo) return 0;
11864   }
11865   return !cs[0] && !zero.x;
11866 #endif
11867
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 if ac_fn_c_try_compile "$LINENO"; then :
11873   ac_cv_c_const=yes
11874 else
11875   ac_cv_c_const=no
11876 fi
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 fi
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11880 $as_echo "$ac_cv_c_const" >&6; }
11881 if test $ac_cv_c_const = no; then
11882
11883 $as_echo "#define const /**/" >>confdefs.h
11884
11885 fi
11886
11887 # The cast to long int works around a bug in the HP C Compiler
11888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11890 # This bug is HP SR number 8606223364.
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11892 $as_echo_n "checking size of int... " >&6; }
11893 if ${ac_cv_sizeof_int+:} false; then :
11894   $as_echo_n "(cached) " >&6
11895 else
11896   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
11897
11898 else
11899   if test "$ac_cv_type_int" = yes; then
11900      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11902 as_fn_error 77 "cannot compute sizeof (int)
11903 See \`config.log' for more details" "$LINENO" 5; }
11904    else
11905      ac_cv_sizeof_int=0
11906    fi
11907 fi
11908
11909 fi
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11911 $as_echo "$ac_cv_sizeof_int" >&6; }
11912
11913
11914
11915 cat >>confdefs.h <<_ACEOF
11916 #define SIZEOF_INT $ac_cv_sizeof_int
11917 _ACEOF
11918
11919
11920 # The cast to long int works around a bug in the HP C Compiler
11921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11923 # This bug is HP SR number 8606223364.
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11925 $as_echo_n "checking size of long... " >&6; }
11926 if ${ac_cv_sizeof_long+:} false; then :
11927   $as_echo_n "(cached) " >&6
11928 else
11929   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
11930
11931 else
11932   if test "$ac_cv_type_long" = yes; then
11933      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11935 as_fn_error 77 "cannot compute sizeof (long)
11936 See \`config.log' for more details" "$LINENO" 5; }
11937    else
11938      ac_cv_sizeof_long=0
11939    fi
11940 fi
11941
11942 fi
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11944 $as_echo "$ac_cv_sizeof_long" >&6; }
11945
11946
11947
11948 cat >>confdefs.h <<_ACEOF
11949 #define SIZEOF_LONG $ac_cv_sizeof_long
11950 _ACEOF
11951
11952
11953
11954
11955 # check whether cpp computation of size of int and long in ftconfig.in works
11956
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpp computation of bit length in ftconfig.in works" >&5
11958 $as_echo_n "checking whether cpp computation of bit length in ftconfig.in works... " >&6; }
11959 orig_CPPFLAGS="${CPPFLAGS}"
11960 CPPFLAGS="-I${srcdir} -I. ${CPPFLAGS}"
11961
11962 ac_clean_files=
11963 for f in ft2build.h ftoption.h ftstdlib.h; do
11964   if test ! -f $f; then
11965     ac_clean_files="$ac_clean_files $f"
11966     touch $f
11967   fi
11968 done
11969
11970 cat > conftest.c <<\_ACEOF
11971 #include <limits.h>
11972 #define FT_CONFIG_OPTIONS_H "ftoption.h"
11973 #define FT_CONFIG_STANDARD_LIBRARY_H "ftstdlib.h"
11974 #define FT_UINT_MAX  UINT_MAX
11975 #define FT_ULONG_MAX ULONG_MAX
11976 #include "ftconfig.in"
11977 _ACEOF
11978 echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
11979 echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
11980 echo >> conftest.c "#endif"
11981 echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
11982 echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
11983 echo >> conftest.c "#endif"
11984
11985 ${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
11986 eval `cat conftest.sh`
11987 rm -f conftest.* $ac_clean_files
11988
11989 if test x != "x${ac_cpp_ft_sizeof_int}" \
11990    -a x != x"${ac_cpp_ft_sizeof_long}"; then
11991   unset ft_use_autoconf_sizeof_types
11992 else
11993   ft_use_autoconf_sizeof_types=yes
11994 fi
11995
11996 # Check whether --enable-biarch-config was given.
11997 if test "${enable_biarch_config+set}" = set; then :
11998   enableval=$enable_biarch_config;
11999 fi
12000
12001
12002 case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
12003   :yes:yes:)
12004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
12005 $as_echo "broken but use it" >&6; }
12006     unset ft_use_autoconf_sizeof_types
12007     ;;
12008   ::no:)
12009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
12010 $as_echo "works but ignore it" >&6; }
12011     ft_use_autoconf_sizeof_types=yes
12012     ;;
12013   ::yes: | :::)
12014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12015 $as_echo "yes" >&6; }
12016     unset ft_use_autoconf_sizeof_types
12017     ;;
12018   *)
12019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12021     ft_use_autoconf_sizeof_types=yes
12022     ;;
12023 esac
12024
12025 if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
12026
12027 $as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES /**/" >>confdefs.h
12028
12029 fi
12030
12031 CPPFLAGS="${orig_CPPFLAGS}"
12032
12033
12034 # checks for library functions
12035
12036 # Here we check whether we can use our mmap file component.
12037
12038 # Check whether --enable-mmap was given.
12039 if test "${enable_mmap+set}" = set; then :
12040   enableval=$enable_mmap; enable_mmap="no"
12041 else
12042   enable_mmap="yes"
12043 fi
12044
12045 if test "x${enable_mmap}" != "xno"; then
12046
12047
12048
12049   for ac_header in $ac_header_list
12050 do :
12051   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12052 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12053 "
12054 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12055   cat >>confdefs.h <<_ACEOF
12056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12057 _ACEOF
12058
12059 fi
12060
12061 done
12062
12063
12064
12065
12066
12067
12068
12069
12070 for ac_func in getpagesize
12071 do :
12072   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12073 if test "x$ac_cv_func_getpagesize" = xyes; then :
12074   cat >>confdefs.h <<_ACEOF
12075 #define HAVE_GETPAGESIZE 1
12076 _ACEOF
12077
12078 fi
12079 done
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12082 $as_echo_n "checking for working mmap... " >&6; }
12083 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12084   $as_echo_n "(cached) " >&6
12085 else
12086   if test "$cross_compiling" = yes; then :
12087   ac_cv_func_mmap_fixed_mapped=no
12088 else
12089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h.  */
12091 $ac_includes_default
12092 /* malloc might have been renamed as rpl_malloc. */
12093 #undef malloc
12094
12095 /* Thanks to Mike Haertel and Jim Avera for this test.
12096    Here is a matrix of mmap possibilities:
12097         mmap private not fixed
12098         mmap private fixed at somewhere currently unmapped
12099         mmap private fixed at somewhere already mapped
12100         mmap shared not fixed
12101         mmap shared fixed at somewhere currently unmapped
12102         mmap shared fixed at somewhere already mapped
12103    For private mappings, we should verify that changes cannot be read()
12104    back from the file, nor mmap's back from the file at a different
12105    address.  (There have been systems where private was not correctly
12106    implemented like the infamous i386 svr4.0, and systems where the
12107    VM page cache was not coherent with the file system buffer cache
12108    like early versions of FreeBSD and possibly contemporary NetBSD.)
12109    For shared mappings, we should conversely verify that changes get
12110    propagated back to all the places they're supposed to be.
12111
12112    Grep wants private fixed already mapped.
12113    The main things grep needs to know about mmap are:
12114    * does it exist and is it safe to write into the mmap'd area
12115    * how to use it (BSD variants)  */
12116
12117 #include <fcntl.h>
12118 #include <sys/mman.h>
12119
12120 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12121 char *malloc ();
12122 #endif
12123
12124 /* This mess was copied from the GNU getpagesize.h.  */
12125 #ifndef HAVE_GETPAGESIZE
12126 # ifdef _SC_PAGESIZE
12127 #  define getpagesize() sysconf(_SC_PAGESIZE)
12128 # else /* no _SC_PAGESIZE */
12129 #  ifdef HAVE_SYS_PARAM_H
12130 #   include <sys/param.h>
12131 #   ifdef EXEC_PAGESIZE
12132 #    define getpagesize() EXEC_PAGESIZE
12133 #   else /* no EXEC_PAGESIZE */
12134 #    ifdef NBPG
12135 #     define getpagesize() NBPG * CLSIZE
12136 #     ifndef CLSIZE
12137 #      define CLSIZE 1
12138 #     endif /* no CLSIZE */
12139 #    else /* no NBPG */
12140 #     ifdef NBPC
12141 #      define getpagesize() NBPC
12142 #     else /* no NBPC */
12143 #      ifdef PAGESIZE
12144 #       define getpagesize() PAGESIZE
12145 #      endif /* PAGESIZE */
12146 #     endif /* no NBPC */
12147 #    endif /* no NBPG */
12148 #   endif /* no EXEC_PAGESIZE */
12149 #  else /* no HAVE_SYS_PARAM_H */
12150 #   define getpagesize() 8192   /* punt totally */
12151 #  endif /* no HAVE_SYS_PARAM_H */
12152 # endif /* no _SC_PAGESIZE */
12153
12154 #endif /* no HAVE_GETPAGESIZE */
12155
12156 int
12157 main ()
12158 {
12159   char *data, *data2, *data3;
12160   const char *cdata2;
12161   int i, pagesize;
12162   int fd, fd2;
12163
12164   pagesize = getpagesize ();
12165
12166   /* First, make a file with some known garbage in it. */
12167   data = (char *) malloc (pagesize);
12168   if (!data)
12169     return 1;
12170   for (i = 0; i < pagesize; ++i)
12171     *(data + i) = rand ();
12172   umask (0);
12173   fd = creat ("conftest.mmap", 0600);
12174   if (fd < 0)
12175     return 2;
12176   if (write (fd, data, pagesize) != pagesize)
12177     return 3;
12178   close (fd);
12179
12180   /* Next, check that the tail of a page is zero-filled.  File must have
12181      non-zero length, otherwise we risk SIGBUS for entire page.  */
12182   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12183   if (fd2 < 0)
12184     return 4;
12185   cdata2 = "";
12186   if (write (fd2, cdata2, 1) != 1)
12187     return 5;
12188   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12189   if (data2 == MAP_FAILED)
12190     return 6;
12191   for (i = 0; i < pagesize; ++i)
12192     if (*(data2 + i))
12193       return 7;
12194   close (fd2);
12195   if (munmap (data2, pagesize))
12196     return 8;
12197
12198   /* Next, try to mmap the file at a fixed address which already has
12199      something else allocated at it.  If we can, also make sure that
12200      we see the same garbage.  */
12201   fd = open ("conftest.mmap", O_RDWR);
12202   if (fd < 0)
12203     return 9;
12204   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12205                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12206     return 10;
12207   for (i = 0; i < pagesize; ++i)
12208     if (*(data + i) != *(data2 + i))
12209       return 11;
12210
12211   /* Finally, make sure that changes to the mapped area do not
12212      percolate back to the file as seen by read().  (This is a bug on
12213      some variants of i386 svr4.0.)  */
12214   for (i = 0; i < pagesize; ++i)
12215     *(data2 + i) = *(data2 + i) + 1;
12216   data3 = (char *) malloc (pagesize);
12217   if (!data3)
12218     return 12;
12219   if (read (fd, data3, pagesize) != pagesize)
12220     return 13;
12221   for (i = 0; i < pagesize; ++i)
12222     if (*(data + i) != *(data3 + i))
12223       return 14;
12224   close (fd);
12225   return 0;
12226 }
12227 _ACEOF
12228 if ac_fn_c_try_run "$LINENO"; then :
12229   ac_cv_func_mmap_fixed_mapped=yes
12230 else
12231   ac_cv_func_mmap_fixed_mapped=no
12232 fi
12233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12234   conftest.$ac_objext conftest.beam conftest.$ac_ext
12235 fi
12236
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12239 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12240 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12241
12242 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12243
12244 fi
12245 rm -f conftest.mmap conftest.txt
12246
12247 fi
12248 if test "x${enable_mmap}" = "xno" \
12249    -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
12250   FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
12251 else
12252   FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
12253
12254   ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
12255
12256 #ifdef HAVE_UNISTD_H
12257 #include <unistd.h>
12258 #endif
12259 #include <sys/mman.h>
12260
12261
12262 "
12263 if test "x$ac_cv_have_decl_munmap" = xyes; then :
12264   ac_have_decl=1
12265 else
12266   ac_have_decl=0
12267 fi
12268
12269 cat >>confdefs.h <<_ACEOF
12270 #define HAVE_DECL_MUNMAP $ac_have_decl
12271 _ACEOF
12272
12273
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
12275 $as_echo_n "checking for munmap's first parameter type... " >&6; }
12276    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278
12279
12280
12281 #include <unistd.h>
12282 #include <sys/mman.h>
12283 int munmap(void *, size_t);
12284
12285
12286
12287 _ACEOF
12288 if ac_fn_c_try_compile "$LINENO"; then :
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
12290 $as_echo "void *" >&6; }
12291
12292 $as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
12293
12294 else
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
12296 $as_echo "char *" >&6; }
12297 fi
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299
12300 fi
12301
12302
12303 for ac_func in memcpy memmove
12304 do :
12305   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12306 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12307 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12308   cat >>confdefs.h <<_ACEOF
12309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12310 _ACEOF
12311
12312 fi
12313 done
12314
12315
12316
12317 # get compiler flags right
12318 #
12319 #   We try to make the compiler work for C89-strict source.  Even if the
12320 #   C compiler is gcc and C89 flags are available, some system headers
12321 #   (e.g., Android Bionic libc) are broken in C89 mode.  We have to check
12322 #   whether the compilation finishes successfully.
12323 #
12324 #   Due to bugs in mingwrt 4.0.3 we don't use `-ansi' for MinGW.
12325 #
12326 #   To avoid zillions of
12327 #
12328 #     ISO C90 does not support 'long long'
12329 #
12330 #   warnings, we disable `-pedantic' for gcc version < 4.6.
12331 #
12332 if test "x$GCC" = xyes; then
12333   XX_CFLAGS="-Wall"
12334   case "$host" in
12335   *-*-mingw*)
12336     XX_ANSIFLAGS="-pedantic"
12337     ;;
12338   *)
12339     GCC_VERSION=`$CC -dumpversion`
12340     GCC_MAJOR=`echo "$GCC_VERSION" | sed 's/\([^.][^.]*\).*/\1/'`
12341     GCC_MINOR=`echo "$GCC_VERSION" | sed 's/[^.][^.]*.\([^.][^.]*\).*/\1/'`
12342
12343     XX_PEDANTIC=-pedantic
12344     if test $GCC_MAJOR -lt 4; then
12345       XX_PEDANTIC=
12346     else
12347       if test $GCC_MAJOR -eq 4 -a $GCC_MINOR -lt 6; then
12348         XX_PEDANTIC=
12349       fi
12350     fi
12351
12352     XX_ANSIFLAGS=""
12353     for a in $XX_PEDANTIC -ansi
12354     do
12355       { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc compiler flag ${a} to assure ANSI C works correctly" >&5
12356 $as_echo_n "checking gcc compiler flag ${a} to assure ANSI C works correctly... " >&6; }
12357       orig_CFLAGS="${CFLAGS}"
12358       CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
12359       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h.  */
12361
12362
12363
12364 #include <stdio.h>
12365
12366
12367 int
12368 main ()
12369 {
12370
12371
12372             {
12373               puts( "" );
12374               return 0;
12375             }
12376
12377
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, add it to XX_ANSIFLAGS" >&5
12384 $as_echo "ok, add it to XX_ANSIFLAGS" >&6; }
12385          XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
12386
12387 else
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12390 fi
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392       CFLAGS="${orig_CFLAGS}"
12393     done
12394     ;;
12395   esac
12396 else
12397   case "$host" in
12398   *-dec-osf*)
12399     CFLAGS=
12400     XX_CFLAGS="-std1 -g3"
12401     XX_ANSIFLAGS=
12402     ;;
12403   *)
12404     XX_CFLAGS=
12405     XX_ANSIFLAGS=
12406     ;;
12407   esac
12408 fi
12409
12410
12411
12412
12413 # All library tests below try `pkg-config' first.  If that fails, a function
12414 # from the library is tested in the traditional autoconf way (zlib, bzip2),
12415 # or a config script is called (libpng).
12416 #
12417 # The `xxx_reqpriv' variables are for the `Requires.private' field in
12418 # `freetype2.pc'.  The `xxx_libpriv' variables are for the `Libs.private'
12419 # field in `freetype2.pc' if pkg-config doesn't find a proper .pc file.
12420 #
12421 # The `xxx_libstaticconf' variables are for the `freetype-config' script.
12422 #
12423 # Note that a call to PKG_CHECK_MODULES(XXX, ...) sets and creates the
12424 # output variables `XXX_CFLAGS' and `XXX_LIBS'.  In case one or both are set
12425 # for a library by the user, no entry for this library is added to
12426 # `Requires.private'.  Instead, it gets added to `Libs.private'
12427
12428
12429 # check for system zlib
12430
12431
12432 # Check whether --with-zlib was given.
12433 if test "${with_zlib+set}" = set; then :
12434   withval=$with_zlib;
12435 else
12436   with_zlib=auto
12437 fi
12438
12439
12440 have_zlib=no
12441 if test x"$with_zlib" = xyes -o x"$with_zlib" = xauto; then
12442   zlib_pkg="zlib"
12443   have_zlib_pkg=no
12444
12445   if test x"$ZLIB_CFLAGS" = x -a x"$ZLIB_LIBS" = x; then
12446     if test -n "$PKG_CONFIG" && \
12447     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
12448   ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
12449   ac_status=$?
12450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12451   test $ac_status = 0; }; then
12452   have_zlib_pkg=yes
12453 fi
12454   fi
12455
12456 pkg_failed=no
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
12458 $as_echo_n "checking for ZLIB... " >&6; }
12459
12460 if test -n "$ZLIB_CFLAGS"; then
12461     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
12462  elif test -n "$PKG_CONFIG"; then
12463     if test -n "$PKG_CONFIG" && \
12464     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
12465   ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
12466   ac_status=$?
12467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12468   test $ac_status = 0; }; then
12469   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "$zlib_pkg" 2>/dev/null`
12470                       test "x$?" != "x0" && pkg_failed=yes
12471 else
12472   pkg_failed=yes
12473 fi
12474  else
12475     pkg_failed=untried
12476 fi
12477 if test -n "$ZLIB_LIBS"; then
12478     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
12479  elif test -n "$PKG_CONFIG"; then
12480     if test -n "$PKG_CONFIG" && \
12481     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
12482   ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
12483   ac_status=$?
12484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12485   test $ac_status = 0; }; then
12486   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "$zlib_pkg" 2>/dev/null`
12487                       test "x$?" != "x0" && pkg_failed=yes
12488 else
12489   pkg_failed=yes
12490 fi
12491  else
12492     pkg_failed=untried
12493 fi
12494
12495
12496
12497 if test $pkg_failed = yes; then
12498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500
12501 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12502         _pkg_short_errors_supported=yes
12503 else
12504         _pkg_short_errors_supported=no
12505 fi
12506         if test $_pkg_short_errors_supported = yes; then
12507                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$zlib_pkg" 2>&1`
12508         else
12509                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$zlib_pkg" 2>&1`
12510         fi
12511         # Put the nasty error message in config.log where it belongs
12512         echo "$ZLIB_PKG_ERRORS" >&5
12513
12514         :
12515 elif test $pkg_failed = untried; then
12516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518         :
12519 else
12520         ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
12521         ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
12522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12523 $as_echo "yes" >&6; }
12524         have_zlib="yes (pkg-config)"
12525 fi
12526
12527   if test $have_zlib_pkg = yes; then
12528     # we have zlib.pc
12529     zlib_reqpriv="$zlib_pkg"
12530     zlib_libpriv=
12531     zlib_libstaticconf=`$PKG_CONFIG --static --libs "$zlib_pkg"`
12532   else
12533     zlib_reqpriv=
12534
12535     if test "$have_zlib" != no; then
12536       # ZLIB_CFLAGS and ZLIB_LIBS are set by the user
12537       zlib_libpriv="$ZLIB_LIBS"
12538       zlib_libstaticconf="$ZLIB_LIBS"
12539       have_zlib="yes (ZLIB_CFLAGS and ZLIB_LIBS)"
12540     else
12541       # fall back to standard autoconf test
12542       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
12543 $as_echo_n "checking for gzsetparams in -lz... " >&6; }
12544 if ${ac_cv_lib_z_gzsetparams+:} false; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   ac_check_lib_save_LIBS=$LIBS
12548 LIBS="-lz  $LIBS"
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h.  */
12551
12552 /* Override any GCC internal prototype to avoid an error.
12553    Use char because int might match the return type of a GCC
12554    builtin and then its argument prototype would still apply.  */
12555 #ifdef __cplusplus
12556 extern "C"
12557 #endif
12558 char gzsetparams ();
12559 int
12560 main ()
12561 {
12562 return gzsetparams ();
12563   ;
12564   return 0;
12565 }
12566 _ACEOF
12567 if ac_fn_c_try_link "$LINENO"; then :
12568   ac_cv_lib_z_gzsetparams=yes
12569 else
12570   ac_cv_lib_z_gzsetparams=no
12571 fi
12572 rm -f core conftest.err conftest.$ac_objext \
12573     conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12575 fi
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
12577 $as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
12578 if test "x$ac_cv_lib_z_gzsetparams" = xyes; then :
12579   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12580 if test "x$ac_cv_header_zlib_h" = xyes; then :
12581   have_zlib="yes (autoconf test)"
12582                                      zlib_libpriv="-lz"
12583                                      zlib_libstaticconf="$zlib_libpriv"
12584                                      ZLIB_LIBS="$zlib_libpriv"
12585 fi
12586
12587
12588 fi
12589
12590     fi
12591   fi
12592 fi
12593
12594 if test x"$with_zlib" = xyes -a "$have_zlib" = no; then
12595   as_fn_error $? "external zlib support requested but library not found" "$LINENO" 5
12596 fi
12597
12598
12599 # check for system libbz2
12600
12601
12602 # Check whether --with-bzip2 was given.
12603 if test "${with_bzip2+set}" = set; then :
12604   withval=$with_bzip2;
12605 else
12606   with_bzip2=auto
12607 fi
12608
12609
12610 have_bzip2=no
12611 if test x"$with_bzip2" = xyes -o x"$with_bzip2" = xauto; then
12612   bzip2_pkg="bzip2"
12613   have_bzip2_pkg=no
12614
12615   if test x"$BZIP2_CFLAGS" = x -a x"$BZIP2_LIBS" = x; then
12616     if test -n "$PKG_CONFIG" && \
12617     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
12618   ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
12619   ac_status=$?
12620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621   test $ac_status = 0; }; then
12622   have_bzip2_pkg=yes
12623 fi
12624   fi
12625
12626 pkg_failed=no
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
12628 $as_echo_n "checking for BZIP2... " >&6; }
12629
12630 if test -n "$BZIP2_CFLAGS"; then
12631     pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
12632  elif test -n "$PKG_CONFIG"; then
12633     if test -n "$PKG_CONFIG" && \
12634     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
12635   ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
12636   ac_status=$?
12637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12638   test $ac_status = 0; }; then
12639   pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "$bzip2_pkg" 2>/dev/null`
12640                       test "x$?" != "x0" && pkg_failed=yes
12641 else
12642   pkg_failed=yes
12643 fi
12644  else
12645     pkg_failed=untried
12646 fi
12647 if test -n "$BZIP2_LIBS"; then
12648     pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
12649  elif test -n "$PKG_CONFIG"; then
12650     if test -n "$PKG_CONFIG" && \
12651     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
12652   ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
12653   ac_status=$?
12654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655   test $ac_status = 0; }; then
12656   pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "$bzip2_pkg" 2>/dev/null`
12657                       test "x$?" != "x0" && pkg_failed=yes
12658 else
12659   pkg_failed=yes
12660 fi
12661  else
12662     pkg_failed=untried
12663 fi
12664
12665
12666
12667 if test $pkg_failed = yes; then
12668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12670
12671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12672         _pkg_short_errors_supported=yes
12673 else
12674         _pkg_short_errors_supported=no
12675 fi
12676         if test $_pkg_short_errors_supported = yes; then
12677                 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
12678         else
12679                 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
12680         fi
12681         # Put the nasty error message in config.log where it belongs
12682         echo "$BZIP2_PKG_ERRORS" >&5
12683
12684         :
12685 elif test $pkg_failed = untried; then
12686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12688         :
12689 else
12690         BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
12691         BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
12692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12693 $as_echo "yes" >&6; }
12694         have_bzip2="yes (pkg-config)"
12695 fi
12696
12697   if test $have_bzip2_pkg = yes; then
12698     # we have bzip2.pc
12699     bzip2_reqpriv="$bzip2_pkg"
12700     bzip2_libpriv=
12701     bzip2_libstaticconf=`$PKG_CONFIG --static --libs "$bzip2_pkg"`
12702   else
12703     bzip2_reqpriv=
12704
12705     if test "$have_bzip2" != no; then
12706       # BZIP2_CFLAGS and BZIP2_LIBS are set by the user
12707       bzip2_libpriv="$BZIP2_LIBS"
12708       bzip2_libstaticconf="$BZIP2_LIBS"
12709       have_bzip2="yes (BZIP2_CFLAGS and BZIP2_LIBS)"
12710     else
12711       # fall back to standard autoconf test
12712       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
12713 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
12714 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
12715   $as_echo_n "(cached) " >&6
12716 else
12717   ac_check_lib_save_LIBS=$LIBS
12718 LIBS="-lbz2  $LIBS"
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h.  */
12721
12722 /* Override any GCC internal prototype to avoid an error.
12723    Use char because int might match the return type of a GCC
12724    builtin and then its argument prototype would still apply.  */
12725 #ifdef __cplusplus
12726 extern "C"
12727 #endif
12728 char BZ2_bzDecompress ();
12729 int
12730 main ()
12731 {
12732 return BZ2_bzDecompress ();
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 if ac_fn_c_try_link "$LINENO"; then :
12738   ac_cv_lib_bz2_BZ2_bzDecompress=yes
12739 else
12740   ac_cv_lib_bz2_BZ2_bzDecompress=no
12741 fi
12742 rm -f core conftest.err conftest.$ac_objext \
12743     conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
12747 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
12748 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
12749   ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
12750 if test "x$ac_cv_header_bzlib_h" = xyes; then :
12751   have_bzip2="yes (autoconf test)"
12752                                      bzip2_libpriv="-lbz2"
12753                                      bzip2_libstaticconf="$bzip2_libpriv"
12754                                      BZIP2_LIBS="$bzip2_libpriv"
12755 fi
12756
12757
12758 fi
12759
12760     fi
12761   fi
12762 fi
12763
12764 if test x"$with_bzip2" = xyes -a "$have_bzip2" = no; then
12765   as_fn_error $? "bzip2 support requested but library not found" "$LINENO" 5
12766 fi
12767
12768
12769 # check for system libpng
12770
12771
12772 # Check whether --with-png was given.
12773 if test "${with_png+set}" = set; then :
12774   withval=$with_png;
12775 else
12776   with_png=auto
12777 fi
12778
12779
12780 have_libpng=no
12781 if test x"$with_png" = xyes -o x"$with_png" = xauto; then
12782   libpng_pkg="libpng"
12783   have_libpng_pkg=no
12784
12785   if test x"$LIBPNG_CFLAGS" = x -a x"$LIBPNG_LIBS" = x; then
12786     if test -n "$PKG_CONFIG" && \
12787     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
12788   ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
12789   ac_status=$?
12790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12791   test $ac_status = 0; }; then
12792   have_libpng_pkg=yes
12793 fi
12794   fi
12795
12796 pkg_failed=no
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
12798 $as_echo_n "checking for LIBPNG... " >&6; }
12799
12800 if test -n "$LIBPNG_CFLAGS"; then
12801     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
12802  elif test -n "$PKG_CONFIG"; then
12803     if test -n "$PKG_CONFIG" && \
12804     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
12805   ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
12806   ac_status=$?
12807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12808   test $ac_status = 0; }; then
12809   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "$libpng_pkg" 2>/dev/null`
12810                       test "x$?" != "x0" && pkg_failed=yes
12811 else
12812   pkg_failed=yes
12813 fi
12814  else
12815     pkg_failed=untried
12816 fi
12817 if test -n "$LIBPNG_LIBS"; then
12818     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
12819  elif test -n "$PKG_CONFIG"; then
12820     if test -n "$PKG_CONFIG" && \
12821     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
12822   ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
12823   ac_status=$?
12824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12825   test $ac_status = 0; }; then
12826   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "$libpng_pkg" 2>/dev/null`
12827                       test "x$?" != "x0" && pkg_failed=yes
12828 else
12829   pkg_failed=yes
12830 fi
12831  else
12832     pkg_failed=untried
12833 fi
12834
12835
12836
12837 if test $pkg_failed = yes; then
12838         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12840
12841 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12842         _pkg_short_errors_supported=yes
12843 else
12844         _pkg_short_errors_supported=no
12845 fi
12846         if test $_pkg_short_errors_supported = yes; then
12847                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$libpng_pkg" 2>&1`
12848         else
12849                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$libpng_pkg" 2>&1`
12850         fi
12851         # Put the nasty error message in config.log where it belongs
12852         echo "$LIBPNG_PKG_ERRORS" >&5
12853
12854         :
12855 elif test $pkg_failed = untried; then
12856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12858         :
12859 else
12860         LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
12861         LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
12862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12863 $as_echo "yes" >&6; }
12864         have_libpng="yes (pkg-config)"
12865 fi
12866
12867   if test $have_libpng_pkg = yes; then
12868     # we have libpng.pc
12869     libpng_reqpriv="$libpng_pkg"
12870     libpng_libpriv=
12871     libpng_libstaticconf=`$PKG_CONFIG --static --libs "$libpng_pkg"`
12872   else
12873     libpng_reqpriv=
12874
12875     if test "$have_libpng" != no; then
12876       # LIBPNG_CFLAGS and LIBPNG_LIBS are set by the user
12877       libpng_libpriv="$LIBPNG_LIBS"
12878       libpng_libstaticconf="$LIBPNG_LIBS"
12879       have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
12880     else
12881       # fall back to config script.
12882       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
12883 $as_echo_n "checking for libpng-config... " >&6; }
12884       if which libpng-config > /dev/null 2>&1; then
12885         LIBPNG_CFLAGS=`libpng-config --cflags`
12886         LIBPNG_LIBS=`libpng-config --ldflags`
12887         libpng_libpriv=`libpng-config --static --ldflags`
12888         libpng_libstaticconf="$libpng_libpriv"
12889         have_libpng="yes (libpng-config)"
12890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12891 $as_echo "yes" >&6; }
12892       else
12893         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12895       fi
12896     fi
12897   fi
12898 fi
12899
12900 if test x"$with_png" = xyes -a "$have_libpng" = no; then
12901   as_fn_error $? "libpng support requested but library not found" "$LINENO" 5
12902 fi
12903
12904
12905 # check for system libharfbuzz
12906
12907
12908 # Check whether --with-harfbuzz was given.
12909 if test "${with_harfbuzz+set}" = set; then :
12910   withval=$with_harfbuzz;
12911 else
12912   with_harfbuzz=auto
12913 fi
12914
12915
12916 have_harfbuzz=no
12917 if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
12918   harfbuzz_pkg="harfbuzz >= 0.9.19"
12919   have_harfbuzz_pkg=no
12920
12921   if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
12922     if test -n "$PKG_CONFIG" && \
12923     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
12924   ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
12925   ac_status=$?
12926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12927   test $ac_status = 0; }; then
12928   have_harfbuzz_pkg=yes
12929 fi
12930   fi
12931
12932 pkg_failed=no
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
12934 $as_echo_n "checking for HARFBUZZ... " >&6; }
12935
12936 if test -n "$HARFBUZZ_CFLAGS"; then
12937     pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
12938  elif test -n "$PKG_CONFIG"; then
12939     if test -n "$PKG_CONFIG" && \
12940     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
12941   ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
12942   ac_status=$?
12943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12944   test $ac_status = 0; }; then
12945   pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "$harfbuzz_pkg" 2>/dev/null`
12946                       test "x$?" != "x0" && pkg_failed=yes
12947 else
12948   pkg_failed=yes
12949 fi
12950  else
12951     pkg_failed=untried
12952 fi
12953 if test -n "$HARFBUZZ_LIBS"; then
12954     pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
12955  elif test -n "$PKG_CONFIG"; then
12956     if test -n "$PKG_CONFIG" && \
12957     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
12958   ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
12959   ac_status=$?
12960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12961   test $ac_status = 0; }; then
12962   pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "$harfbuzz_pkg" 2>/dev/null`
12963                       test "x$?" != "x0" && pkg_failed=yes
12964 else
12965   pkg_failed=yes
12966 fi
12967  else
12968     pkg_failed=untried
12969 fi
12970
12971
12972
12973 if test $pkg_failed = yes; then
12974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976
12977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12978         _pkg_short_errors_supported=yes
12979 else
12980         _pkg_short_errors_supported=no
12981 fi
12982         if test $_pkg_short_errors_supported = yes; then
12983                 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
12984         else
12985                 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
12986         fi
12987         # Put the nasty error message in config.log where it belongs
12988         echo "$HARFBUZZ_PKG_ERRORS" >&5
12989
12990         :
12991 elif test $pkg_failed = untried; then
12992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12994         :
12995 else
12996         HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
12997         HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
12998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12999 $as_echo "yes" >&6; }
13000         have_harfbuzz="yes (pkg-config)"
13001 fi
13002
13003   if test $have_harfbuzz_pkg = yes; then
13004     # we have harfbuzz.pc
13005     harfbuzz_reqpriv="$harfbuzz_pkg"
13006     harfbuzz_libpriv=
13007     harfbuzz_libstaticconf=`$PKG_CONFIG --static --libs "$harfbuzz_pkg"`
13008   else
13009     harfbuzz_reqpriv=
13010
13011     if test "$have_harfbuzz" != no; then
13012       # HARFBUZZ_CFLAGS and HARFBUZZ_LIBS are set by the user
13013       harfbuzz_libpriv="$HARFBUZZ_LIBS"
13014       harfbuzz_libstaticconf="$HARFBUZZ_LIBS"
13015       have_harfbuzz="yes (HARFBUZZ_CFLAGS and HARFBUZZ_LIBS)"
13016     else
13017       # since HarfBuzz is quite a new library we don't fall back to a
13018       # different test; additionally, it has too many dependencies
13019       :
13020     fi
13021   fi
13022 fi
13023
13024 if test x"$with_harfbuzz" = xyes -a "$have_harfbuzz" = no; then
13025   as_fn_error $? "harfbuzz support requested but library not found" "$LINENO" 5
13026 fi
13027
13028
13029 # Some options handling SDKs/archs in CFLAGS should be copied
13030 # to LDFLAGS. Apple TechNote 2137 recommends to include these
13031 # options in CFLAGS but not in LDFLAGS.
13032
13033 save_config_args=$*
13034 set dummy ${CFLAGS}
13035 i=1
13036 while test $i -le $#
13037 do
13038   c=$1
13039
13040   case "${c}" in
13041   -isysroot|-arch) # options taking 1 argument
13042     a=$2
13043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
13044 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
13045     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
13046     then
13047       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13048 $as_echo "yes" >&6; }
13049     else
13050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
13051 $as_echo "no, copy to LDFLAGS" >&6; }
13052       LDFLAGS="${LDFLAGS} ${c} ${a}"
13053     fi
13054     shift 1
13055     ;;
13056   -m32|-m64|-march=*|-mcpu=*) # options taking no argument
13057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
13058 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
13059     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
13060     then
13061       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13063     else
13064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
13065 $as_echo "no, copy to LDFLAGS" >&6; }
13066       LDFLAGS="${LDFLAGS} ${c}"
13067     fi
13068     ;;
13069   # *)
13070   #   AC_MSG_RESULT([${c} is not copied to LDFLAGS])
13071   #   ;;
13072   esac
13073
13074   shift 1
13075 done
13076 set ${save_config_args}
13077
13078
13079 # Whether to use Mac OS resource-based fonts.
13080
13081 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
13082
13083
13084 # Check whether --with-old-mac-fonts was given.
13085 if test "${with_old_mac_fonts+set}" = set; then :
13086   withval=$with_old_mac_fonts;
13087 fi
13088
13089 if test x$with_old_mac_fonts = xyes; then
13090   orig_LDFLAGS="${LDFLAGS}"
13091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
13092 $as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
13093   ft2_extra_libs="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
13094   LDFLAGS="$LDFLAGS $ft2_extra_libs"
13095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h.  */
13097
13098
13099
13100 #if defined(__GNUC__) && defined(__APPLE_CC__)
13101 # include <CoreServices/CoreServices.h>
13102 # include <ApplicationServices/ApplicationServices.h>
13103 #else
13104 # include <ConditionalMacros.h>
13105 # include <Files.h>
13106 #endif
13107
13108
13109 int
13110 main ()
13111 {
13112
13113
13114         short res = 0;
13115
13116
13117         UseResFile( res );
13118
13119
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 if ac_fn_c_try_link "$LINENO"; then :
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13126 $as_echo "ok" >&6; }
13127      ftmac_c='ftmac.c'
13128      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
13129 $as_echo_n "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
13130      orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
13131      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
13132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h.  */
13134
13135
13136
13137 #if defined(__GNUC__) && defined(__APPLE_CC__)
13138 # include <CoreServices/CoreServices.h>
13139 # include <ApplicationServices/ApplicationServices.h>
13140 #else
13141 # include <ConditionalMacros.h>
13142 # include <Files.h>
13143 #endif
13144
13145
13146 int
13147 main ()
13148 {
13149
13150
13151            /* OSHostByteOrder() is typed as OS_INLINE */
13152            int32_t  os_byte_order = OSHostByteOrder();
13153
13154
13155            if ( OSBigEndian != os_byte_order )
13156              return 1;
13157
13158
13159   ;
13160   return 0;
13161 }
13162 _ACEOF
13163 if ac_fn_c_try_compile "$LINENO"; then :
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13165 $as_echo "ok" >&6; }
13166         CFLAGS="$orig_CFLAGS"
13167         CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
13168
13169 else
13170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
13171 $as_echo "no, ANSI incompatible" >&6; }
13172         CFLAGS="$orig_CFLAGS"
13173
13174 fi
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176      { $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
13177 $as_echo_n "checking type ResourceIndex... " >&6; }
13178      orig_CFLAGS="$CFLAGS"
13179      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
13180      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h.  */
13182
13183
13184
13185 #if defined(__GNUC__) && defined(__APPLE_CC__)
13186 # include <CoreServices/CoreServices.h>
13187 # include <ApplicationServices/ApplicationServices.h>
13188 #else
13189 # include <ConditionalMacros.h>
13190 # include <Files.h>
13191 # include <Resources.h>
13192 #endif
13193
13194
13195 int
13196 main ()
13197 {
13198
13199
13200            ResourceIndex i = 0;
13201            return i;
13202
13203
13204   ;
13205   return 0;
13206 }
13207 _ACEOF
13208 if ac_fn_c_try_compile "$LINENO"; then :
13209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13210 $as_echo "ok" >&6; }
13211         CFLAGS="$orig_CFLAGS"
13212         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
13213
13214 else
13215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217         CFLAGS="$orig_CFLAGS"
13218         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
13219
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 else
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13224 $as_echo "not found" >&6; }
13225      ft2_extra_libs=""
13226      LDFLAGS="${orig_LDFLAGS}"
13227      CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
13228 fi
13229 rm -f core conftest.err conftest.$ac_objext \
13230     conftest$ac_exeext conftest.$ac_ext
13231 else
13232   case x$host_os in
13233   xdarwin*)
13234         CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
13235     ;;
13236   *)
13237     ;;
13238   esac
13239 fi
13240
13241
13242 # Whether to use FileManager, which is deprecated since Mac OS X 10.4.
13243
13244
13245 # Check whether --with-fsspec was given.
13246 if test "${with_fsspec+set}" = set; then :
13247   withval=$with_fsspec;
13248 fi
13249
13250 if test x$with_fsspec = xno; then
13251   CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
13252 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
13253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
13254 $as_echo_n "checking FSSpec-based FileManager... " >&6; }
13255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h.  */
13257
13258
13259
13260 #if defined(__GNUC__) && defined(__APPLE_CC__)
13261 # include <CoreServices/CoreServices.h>
13262 # include <ApplicationServices/ApplicationServices.h>
13263 #else
13264 # include <ConditionalMacros.h>
13265 # include <Files.h>
13266 #endif
13267
13268
13269 int
13270 main ()
13271 {
13272
13273
13274         FCBPBPtr          paramBlock;
13275         short             vRefNum;
13276         long              dirID;
13277         ConstStr255Param  fileName;
13278         FSSpec*           spec;
13279
13280
13281         /* FSSpec functions: deprecated since Mac OS X 10.4 */
13282         PBGetFCBInfoSync( paramBlock );
13283         FSMakeFSSpec( vRefNum, dirID, fileName, spec );
13284
13285
13286   ;
13287   return 0;
13288 }
13289 _ACEOF
13290 if ac_fn_c_try_link "$LINENO"; then :
13291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13292 $as_echo "ok" >&6; }
13293      CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
13294 else
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13296 $as_echo "not found" >&6; }
13297      CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
13298 fi
13299 rm -f core conftest.err conftest.$ac_objext \
13300     conftest$ac_exeext conftest.$ac_ext
13301 fi
13302
13303
13304 # Whether to use FileManager in Carbon since MacOS 9.x.
13305
13306
13307 # Check whether --with-fsref was given.
13308 if test "${with_fsref+set}" = set; then :
13309   withval=$with_fsref;
13310 fi
13311
13312 if test x$with_fsref = xno; then
13313   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13314 *** WARNING
13315     FreeType2 built without FSRef API cannot load
13316     data-fork fonts on MacOS, except of XXX.dfont.
13317     " >&5
13318 $as_echo "$as_me: WARNING:
13319 *** WARNING
13320     FreeType2 built without FSRef API cannot load
13321     data-fork fonts on MacOS, except of XXX.dfont.
13322     " >&2;}
13323   CFLAGS="$CFLAGS -DHAVE_FSREF=0"
13324 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
13325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
13326 $as_echo_n "checking FSRef-based FileManager... " >&6; }
13327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h.  */
13329
13330
13331
13332 #if defined(__GNUC__) && defined(__APPLE_CC__)
13333 # include <CoreServices/CoreServices.h>
13334 # include <ApplicationServices/ApplicationServices.h>
13335 #else
13336 # include <ConditionalMacros.h>
13337 # include <Files.h>
13338 #endif
13339
13340
13341 int
13342 main ()
13343 {
13344
13345
13346         short                vRefNum;
13347         long                 dirID;
13348         ConstStr255Param     fileName;
13349
13350         Boolean*             isDirectory;
13351         UInt8*               path;
13352         SInt16               desiredRefNum;
13353         SInt16*              iterator;
13354         SInt16*              actualRefNum;
13355         HFSUniStr255*        outForkName;
13356         FSVolumeRefNum       volume;
13357         FSCatalogInfoBitmap  whichInfo;
13358         FSCatalogInfo*       catalogInfo;
13359         FSForkInfo*          forkInfo;
13360         FSRef*               ref;
13361
13362 #if HAVE_FSSPEC
13363         FSSpec*              spec;
13364 #endif
13365
13366         /* FSRef functions: no need to check? */
13367         FSGetForkCBInfo( desiredRefNum, volume, iterator,
13368                          actualRefNum, forkInfo, ref,
13369                          outForkName );
13370         FSPathMakeRef( path, ref, isDirectory );
13371
13372 #if HAVE_FSSPEC
13373         FSpMakeFSRef ( spec, ref );
13374         FSGetCatalogInfo( ref, whichInfo, catalogInfo,
13375                           outForkName, spec, ref );
13376 #endif
13377
13378   ;
13379   return 0;
13380 }
13381 _ACEOF
13382 if ac_fn_c_try_link "$LINENO"; then :
13383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13384 $as_echo "ok" >&6; }
13385      CFLAGS="$CFLAGS -DHAVE_FSREF=1"
13386 else
13387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13388 $as_echo "not found" >&6; }
13389      CFLAGS="$CFLAGS -DHAVE_FSREF=0"
13390 fi
13391 rm -f core conftest.err conftest.$ac_objext \
13392     conftest$ac_exeext conftest.$ac_ext
13393 fi
13394
13395
13396 # Whether to use QuickDraw API in ToolBox, which is deprecated since
13397 # Mac OS X 10.4.
13398
13399
13400 # Check whether --with-quickdraw-toolbox was given.
13401 if test "${with_quickdraw_toolbox+set}" = set; then :
13402   withval=$with_quickdraw_toolbox;
13403 fi
13404
13405 if test x$with_quickdraw_toolbox = xno; then
13406   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
13407 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
13408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
13409 $as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
13410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h.  */
13412
13413
13414
13415 #if defined(__GNUC__) && defined(__APPLE_CC__)
13416 # include <CoreServices/CoreServices.h>
13417 # include <ApplicationServices/ApplicationServices.h>
13418 #else
13419 # include <ConditionalMacros.h>
13420 # include <Fonts.h>
13421 #endif
13422
13423
13424 int
13425 main ()
13426 {
13427
13428
13429         Str255     familyName;
13430         SInt16     familyID   = 0;
13431         FMInput*   fmIn       = NULL;
13432         FMOutput*  fmOut      = NULL;
13433
13434
13435         GetFontName( familyID, familyName );
13436         GetFNum( familyName, &familyID );
13437         fmOut = FMSwapFont( fmIn );
13438
13439
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 if ac_fn_c_try_link "$LINENO"; then :
13445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13446 $as_echo "ok" >&6; }
13447      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
13448 else
13449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13450 $as_echo "not found" >&6; }
13451      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
13452 fi
13453 rm -f core conftest.err conftest.$ac_objext \
13454     conftest$ac_exeext conftest.$ac_ext
13455 fi
13456
13457
13458 # Whether to use QuickDraw API in Carbon, which is deprecated since
13459 # Mac OS X 10.4.
13460
13461
13462 # Check whether --with-quickdraw-carbon was given.
13463 if test "${with_quickdraw_carbon+set}" = set; then :
13464   withval=$with_quickdraw_carbon;
13465 fi
13466
13467 if test x$with_quickdraw_carbon = xno; then
13468   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
13469 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
13471 $as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
13472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h.  */
13474
13475
13476
13477 #if defined(__GNUC__) && defined(__APPLE_CC__)
13478 # include <CoreServices/CoreServices.h>
13479 # include <ApplicationServices/ApplicationServices.h>
13480 #else
13481 # include <ConditionalMacros.h>
13482 # include <Fonts.h>
13483 #endif
13484
13485
13486 int
13487 main ()
13488 {
13489
13490
13491         FMFontFamilyIterator          famIter;
13492         FMFontFamily                  family;
13493         Str255                        famNameStr;
13494         FMFontFamilyInstanceIterator  instIter;
13495         FMFontStyle                   style;
13496         FMFontSize                    size;
13497         FMFont                        font;
13498         FSSpec*                       pathSpec;
13499
13500
13501         FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
13502                                     &famIter );
13503         FMGetNextFontFamily( &famIter, &family );
13504         FMGetFontFamilyName( family, famNameStr );
13505         FMCreateFontFamilyInstanceIterator( family, &instIter );
13506         FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
13507         FMDisposeFontFamilyInstanceIterator( &instIter );
13508         FMDisposeFontFamilyIterator( &famIter );
13509         FMGetFontContainer( font, pathSpec );
13510
13511
13512   ;
13513   return 0;
13514 }
13515 _ACEOF
13516 if ac_fn_c_try_link "$LINENO"; then :
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13518 $as_echo "ok" >&6; }
13519      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
13520 else
13521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13522 $as_echo "not found" >&6; }
13523      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext \
13526     conftest$ac_exeext conftest.$ac_ext
13527 fi
13528
13529
13530 # Whether to use AppleTypeService since Mac OS X.
13531
13532
13533 # Check whether --with-ats was given.
13534 if test "${with_ats+set}" = set; then :
13535   withval=$with_ats;
13536 fi
13537
13538 if test x$with_ats = xno; then
13539   CFLAGS="$CFLAGS -DHAVE_ATS=0"
13540 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
13542 $as_echo_n "checking AppleTypeService functions... " >&6; }
13543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h.  */
13545
13546
13547
13548 #if defined(__GNUC__) && defined(__APPLE_CC__)
13549 # include <CoreServices/CoreServices.h>
13550 # include <ApplicationServices/ApplicationServices.h>
13551 #else
13552 # include <ConditionalMacros.h>
13553 # include <Files.h>
13554 #endif
13555
13556
13557 int
13558 main ()
13559 {
13560
13561
13562         FSSpec*  pathSpec;
13563
13564
13565         ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
13566 #if HAVE_FSSPEC
13567         ATSFontGetFileSpecification( 0, pathSpec );
13568 #endif
13569
13570
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 if ac_fn_c_try_link "$LINENO"; then :
13576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13577 $as_echo "ok" >&6; }
13578      CFLAGS="$CFLAGS -DHAVE_ATS=1"
13579 else
13580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13581 $as_echo "not found" >&6; }
13582      CFLAGS="$CFLAGS -DHAVE_ATS=0"
13583 fi
13584 rm -f core conftest.err conftest.$ac_objext \
13585     conftest$ac_exeext conftest.$ac_ext
13586 fi
13587
13588 case "$CFLAGS" in
13589   *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
13590     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13591 *** WARNING
13592     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
13593     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
13594     " >&5
13595 $as_echo "$as_me: WARNING:
13596 *** WARNING
13597     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
13598     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
13599     " >&2;}
13600     CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
13601     ;;
13602   *)
13603     ;;
13604 esac
13605
13606
13607 # entries in Requires.private are separated by commas;
13608 REQUIRES_PRIVATE="$zlib_reqpriv,     \
13609                   $bzip2_reqpriv,    \
13610                   $libpng_reqpriv,   \
13611                   $harfbuzz_reqpriv"
13612 # beautify
13613 REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVATE" \
13614                   | sed -e 's/^  *//'      \
13615                         -e 's/  *$//'      \
13616                         -e 's/, */,/g'     \
13617                         -e 's/,,*/,/g'     \
13618                         -e 's/^,*//'       \
13619                         -e 's/,*$//'       \
13620                         -e 's/,/, /g'`
13621
13622 LIBS_PRIVATE="$zlib_libpriv     \
13623               $bzip2_libpriv    \
13624               $libpng_libpriv   \
13625               $harfbuzz_libpriv \
13626               $ft2_extra_libs"
13627 # beautify
13628 LIBS_PRIVATE=`echo "$LIBS_PRIVATE"  \
13629               | sed -e 's/^  *//'   \
13630                     -e 's/  *$//'   \
13631                     -e 's/  */ /g'`
13632
13633 LIBSSTATIC_CONFIG="-lfreetype              \
13634                    $zlib_libstaticconf     \
13635                    $bzip2_libstaticconf    \
13636                    $libpng_libstaticconf   \
13637                    $harfbuzz_libstaticconf \
13638                    $ft2_extra_libs"
13639 # remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
13640 # on if necessary; also beautify
13641 LIBSSTATIC_CONFIG=`echo "$LIBSSTATIC_CONFIG"          \
13642                    | sed -e 's|-L */usr/lib64/* | |g' \
13643                          -e 's|-L */usr/lib/* | |g'   \
13644                          -e 's/^  *//'                \
13645                          -e 's/  *$//'                \
13646                          -e 's/  */ /g'`
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659 # changing LDFLAGS value should only be done after
13660 # lt_cv_prog_compiler_static_works test
13661
13662 if test "$have_zlib" != no; then
13663   CFLAGS="$CFLAGS $ZLIB_CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
13664   LDFLAGS="$LDFLAGS $ZLIB_LIBS"
13665 fi
13666
13667 if test "$have_bzip2" != no; then
13668   CFLAGS="$CFLAGS $BZIP2_CFLAGS -DFT_CONFIG_OPTION_USE_BZIP2"
13669   LDFLAGS="$LDFLAGS $BZIP2_LIBS"
13670 fi
13671 if test "$have_libpng" != no; then
13672   CFLAGS="$CFLAGS $LIBPNG_CFLAGS -DFT_CONFIG_OPTION_USE_PNG"
13673   LDFLAGS="$LDFLAGS $LIBPNG_LIBS"
13674 fi
13675 if test "$have_harfbuzz" != no; then
13676   CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS -DFT_CONFIG_OPTION_USE_HARFBUZZ"
13677   LDFLAGS="$LDFLAGS $HARFBUZZ_LIBS"
13678 fi
13679
13680
13681
13682
13683 # configuration file -- stay in 8.3 limit
13684 #
13685 # since #undef doesn't survive in configuration header files we replace
13686 # `/undef' with `#undef' after creating the output file
13687
13688 ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
13689
13690
13691 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
13692 # and `builds/unix/unix-cc.mk' that will be used by the build system
13693 #
13694 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
13695
13696
13697 # re-generate the Jamfile to use libtool now
13698 #
13699 # AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
13700
13701 cat >confcache <<\_ACEOF
13702 # This file is a shell script that caches the results of configure
13703 # tests run on this system so they can be shared between configure
13704 # scripts and configure runs, see configure's option --config-cache.
13705 # It is not useful on other systems.  If it contains results you don't
13706 # want to keep, you may remove or edit it.
13707 #
13708 # config.status only pays attention to the cache file if you give it
13709 # the --recheck option to rerun configure.
13710 #
13711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13713 # following values.
13714
13715 _ACEOF
13716
13717 # The following way of writing the cache mishandles newlines in values,
13718 # but we know of no workaround that is simple, portable, and efficient.
13719 # So, we kill variables containing newlines.
13720 # Ultrix sh set writes to stderr and can't be redirected directly,
13721 # and sets the high bit in the cache file unless we assign to the vars.
13722 (
13723   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13724     eval ac_val=\$$ac_var
13725     case $ac_val in #(
13726     *${as_nl}*)
13727       case $ac_var in #(
13728       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13730       esac
13731       case $ac_var in #(
13732       _ | IFS | as_nl) ;; #(
13733       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13734       *) { eval $ac_var=; unset $ac_var;} ;;
13735       esac ;;
13736     esac
13737   done
13738
13739   (set) 2>&1 |
13740     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13741     *${as_nl}ac_space=\ *)
13742       # `set' does not quote correctly, so add quotes: double-quote
13743       # substitution turns \\\\ into \\, and sed turns \\ into \.
13744       sed -n \
13745         "s/'/'\\\\''/g;
13746           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13747       ;; #(
13748     *)
13749       # `set' quotes correctly as required by POSIX, so do not add quotes.
13750       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13751       ;;
13752     esac |
13753     sort
13754 ) |
13755   sed '
13756      /^ac_cv_env_/b end
13757      t clear
13758      :clear
13759      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13760      t end
13761      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13762      :end' >>confcache
13763 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13764   if test -w "$cache_file"; then
13765     if test "x$cache_file" != "x/dev/null"; then
13766       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13767 $as_echo "$as_me: updating cache $cache_file" >&6;}
13768       if test ! -f "$cache_file" || test -h "$cache_file"; then
13769         cat confcache >"$cache_file"
13770       else
13771         case $cache_file in #(
13772         */* | ?:*)
13773           mv -f confcache "$cache_file"$$ &&
13774           mv -f "$cache_file"$$ "$cache_file" ;; #(
13775         *)
13776           mv -f confcache "$cache_file" ;;
13777         esac
13778       fi
13779     fi
13780   else
13781     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13782 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13783   fi
13784 fi
13785 rm -f confcache
13786
13787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13788 # Let make expand exec_prefix.
13789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13790
13791 DEFS=-DHAVE_CONFIG_H
13792
13793 ac_libobjs=
13794 ac_ltlibobjs=
13795 U=
13796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13797   # 1. Remove the extension, and $U if already installed.
13798   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13799   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13800   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13801   #    will be set to the directory where LIBOBJS objects are built.
13802   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13803   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13804 done
13805 LIBOBJS=$ac_libobjs
13806
13807 LTLIBOBJS=$ac_ltlibobjs
13808
13809
13810
13811 : "${CONFIG_STATUS=./config.status}"
13812 ac_write_fail=0
13813 ac_clean_files_save=$ac_clean_files
13814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13816 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13817 as_write_fail=0
13818 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13819 #! $SHELL
13820 # Generated by $as_me.
13821 # Run this file to recreate the current configuration.
13822 # Compiler output produced by configure, useful for debugging
13823 # configure, is in config.log if it exists.
13824
13825 debug=false
13826 ac_cs_recheck=false
13827 ac_cs_silent=false
13828
13829 SHELL=\${CONFIG_SHELL-$SHELL}
13830 export SHELL
13831 _ASEOF
13832 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13833 ## -------------------- ##
13834 ## M4sh Initialization. ##
13835 ## -------------------- ##
13836
13837 # Be more Bourne compatible
13838 DUALCASE=1; export DUALCASE # for MKS sh
13839 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13840   emulate sh
13841   NULLCMD=:
13842   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13843   # is contrary to our usage.  Disable this feature.
13844   alias -g '${1+"$@"}'='"$@"'
13845   setopt NO_GLOB_SUBST
13846 else
13847   case `(set -o) 2>/dev/null` in #(
13848   *posix*) :
13849     set -o posix ;; #(
13850   *) :
13851      ;;
13852 esac
13853 fi
13854
13855
13856 as_nl='
13857 '
13858 export as_nl
13859 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13860 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13863 # Prefer a ksh shell builtin over an external printf program on Solaris,
13864 # but without wasting forks for bash or zsh.
13865 if test -z "$BASH_VERSION$ZSH_VERSION" \
13866     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13867   as_echo='print -r --'
13868   as_echo_n='print -rn --'
13869 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13870   as_echo='printf %s\n'
13871   as_echo_n='printf %s'
13872 else
13873   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13874     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13875     as_echo_n='/usr/ucb/echo -n'
13876   else
13877     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13878     as_echo_n_body='eval
13879       arg=$1;
13880       case $arg in #(
13881       *"$as_nl"*)
13882         expr "X$arg" : "X\\(.*\\)$as_nl";
13883         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13884       esac;
13885       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13886     '
13887     export as_echo_n_body
13888     as_echo_n='sh -c $as_echo_n_body as_echo'
13889   fi
13890   export as_echo_body
13891   as_echo='sh -c $as_echo_body as_echo'
13892 fi
13893
13894 # The user is always right.
13895 if test "${PATH_SEPARATOR+set}" != set; then
13896   PATH_SEPARATOR=:
13897   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13898     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13899       PATH_SEPARATOR=';'
13900   }
13901 fi
13902
13903
13904 # IFS
13905 # We need space, tab and new line, in precisely that order.  Quoting is
13906 # there to prevent editors from complaining about space-tab.
13907 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13908 # splitting by setting IFS to empty value.)
13909 IFS=" ""        $as_nl"
13910
13911 # Find who we are.  Look in the path if we contain no directory separator.
13912 as_myself=
13913 case $0 in #((
13914   *[\\/]* ) as_myself=$0 ;;
13915   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13916 for as_dir in $PATH
13917 do
13918   IFS=$as_save_IFS
13919   test -z "$as_dir" && as_dir=.
13920     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13921   done
13922 IFS=$as_save_IFS
13923
13924      ;;
13925 esac
13926 # We did not find ourselves, most probably we were run as `sh COMMAND'
13927 # in which case we are not to be found in the path.
13928 if test "x$as_myself" = x; then
13929   as_myself=$0
13930 fi
13931 if test ! -f "$as_myself"; then
13932   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13933   exit 1
13934 fi
13935
13936 # Unset variables that we do not need and which cause bugs (e.g. in
13937 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13938 # suppresses any "Segmentation fault" message there.  '((' could
13939 # trigger a bug in pdksh 5.2.14.
13940 for as_var in BASH_ENV ENV MAIL MAILPATH
13941 do eval test x\${$as_var+set} = xset \
13942   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13943 done
13944 PS1='$ '
13945 PS2='> '
13946 PS4='+ '
13947
13948 # NLS nuisances.
13949 LC_ALL=C
13950 export LC_ALL
13951 LANGUAGE=C
13952 export LANGUAGE
13953
13954 # CDPATH.
13955 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13956
13957
13958 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13959 # ----------------------------------------
13960 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13961 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13962 # script with STATUS, using 1 if that was 0.
13963 as_fn_error ()
13964 {
13965   as_status=$1; test $as_status -eq 0 && as_status=1
13966   if test "$4"; then
13967     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13968     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13969   fi
13970   $as_echo "$as_me: error: $2" >&2
13971   as_fn_exit $as_status
13972 } # as_fn_error
13973
13974
13975 # as_fn_set_status STATUS
13976 # -----------------------
13977 # Set $? to STATUS, without forking.
13978 as_fn_set_status ()
13979 {
13980   return $1
13981 } # as_fn_set_status
13982
13983 # as_fn_exit STATUS
13984 # -----------------
13985 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13986 as_fn_exit ()
13987 {
13988   set +e
13989   as_fn_set_status $1
13990   exit $1
13991 } # as_fn_exit
13992
13993 # as_fn_unset VAR
13994 # ---------------
13995 # Portably unset VAR.
13996 as_fn_unset ()
13997 {
13998   { eval $1=; unset $1;}
13999 }
14000 as_unset=as_fn_unset
14001 # as_fn_append VAR VALUE
14002 # ----------------------
14003 # Append the text in VALUE to the end of the definition contained in VAR. Take
14004 # advantage of any shell optimizations that allow amortized linear growth over
14005 # repeated appends, instead of the typical quadratic growth present in naive
14006 # implementations.
14007 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14008   eval 'as_fn_append ()
14009   {
14010     eval $1+=\$2
14011   }'
14012 else
14013   as_fn_append ()
14014   {
14015     eval $1=\$$1\$2
14016   }
14017 fi # as_fn_append
14018
14019 # as_fn_arith ARG...
14020 # ------------------
14021 # Perform arithmetic evaluation on the ARGs, and store the result in the
14022 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14023 # must be portable across $(()) and expr.
14024 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14025   eval 'as_fn_arith ()
14026   {
14027     as_val=$(( $* ))
14028   }'
14029 else
14030   as_fn_arith ()
14031   {
14032     as_val=`expr "$@" || test $? -eq 1`
14033   }
14034 fi # as_fn_arith
14035
14036
14037 if expr a : '\(a\)' >/dev/null 2>&1 &&
14038    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14039   as_expr=expr
14040 else
14041   as_expr=false
14042 fi
14043
14044 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14045   as_basename=basename
14046 else
14047   as_basename=false
14048 fi
14049
14050 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14051   as_dirname=dirname
14052 else
14053   as_dirname=false
14054 fi
14055
14056 as_me=`$as_basename -- "$0" ||
14057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14058          X"$0" : 'X\(//\)$' \| \
14059          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14060 $as_echo X/"$0" |
14061     sed '/^.*\/\([^/][^/]*\)\/*$/{
14062             s//\1/
14063             q
14064           }
14065           /^X\/\(\/\/\)$/{
14066             s//\1/
14067             q
14068           }
14069           /^X\/\(\/\).*/{
14070             s//\1/
14071             q
14072           }
14073           s/.*/./; q'`
14074
14075 # Avoid depending upon Character Ranges.
14076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14079 as_cr_digits='0123456789'
14080 as_cr_alnum=$as_cr_Letters$as_cr_digits
14081
14082 ECHO_C= ECHO_N= ECHO_T=
14083 case `echo -n x` in #(((((
14084 -n*)
14085   case `echo 'xy\c'` in
14086   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14087   xy)  ECHO_C='\c';;
14088   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14089        ECHO_T=' ';;
14090   esac;;
14091 *)
14092   ECHO_N='-n';;
14093 esac
14094
14095 rm -f conf$$ conf$$.exe conf$$.file
14096 if test -d conf$$.dir; then
14097   rm -f conf$$.dir/conf$$.file
14098 else
14099   rm -f conf$$.dir
14100   mkdir conf$$.dir 2>/dev/null
14101 fi
14102 if (echo >conf$$.file) 2>/dev/null; then
14103   if ln -s conf$$.file conf$$ 2>/dev/null; then
14104     as_ln_s='ln -s'
14105     # ... but there are two gotchas:
14106     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14107     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14108     # In both cases, we have to default to `cp -pR'.
14109     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14110       as_ln_s='cp -pR'
14111   elif ln conf$$.file conf$$ 2>/dev/null; then
14112     as_ln_s=ln
14113   else
14114     as_ln_s='cp -pR'
14115   fi
14116 else
14117   as_ln_s='cp -pR'
14118 fi
14119 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14120 rmdir conf$$.dir 2>/dev/null
14121
14122
14123 # as_fn_mkdir_p
14124 # -------------
14125 # Create "$as_dir" as a directory, including parents if necessary.
14126 as_fn_mkdir_p ()
14127 {
14128
14129   case $as_dir in #(
14130   -*) as_dir=./$as_dir;;
14131   esac
14132   test -d "$as_dir" || eval $as_mkdir_p || {
14133     as_dirs=
14134     while :; do
14135       case $as_dir in #(
14136       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14137       *) as_qdir=$as_dir;;
14138       esac
14139       as_dirs="'$as_qdir' $as_dirs"
14140       as_dir=`$as_dirname -- "$as_dir" ||
14141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14142          X"$as_dir" : 'X\(//\)[^/]' \| \
14143          X"$as_dir" : 'X\(//\)$' \| \
14144          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14145 $as_echo X"$as_dir" |
14146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14147             s//\1/
14148             q
14149           }
14150           /^X\(\/\/\)[^/].*/{
14151             s//\1/
14152             q
14153           }
14154           /^X\(\/\/\)$/{
14155             s//\1/
14156             q
14157           }
14158           /^X\(\/\).*/{
14159             s//\1/
14160             q
14161           }
14162           s/.*/./; q'`
14163       test -d "$as_dir" && break
14164     done
14165     test -z "$as_dirs" || eval "mkdir $as_dirs"
14166   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14167
14168
14169 } # as_fn_mkdir_p
14170 if mkdir -p . 2>/dev/null; then
14171   as_mkdir_p='mkdir -p "$as_dir"'
14172 else
14173   test -d ./-p && rmdir ./-p
14174   as_mkdir_p=false
14175 fi
14176
14177
14178 # as_fn_executable_p FILE
14179 # -----------------------
14180 # Test if FILE is an executable regular file.
14181 as_fn_executable_p ()
14182 {
14183   test -f "$1" && test -x "$1"
14184 } # as_fn_executable_p
14185 as_test_x='test -x'
14186 as_executable_p=as_fn_executable_p
14187
14188 # Sed expression to map a string onto a valid CPP name.
14189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14190
14191 # Sed expression to map a string onto a valid variable name.
14192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14193
14194
14195 exec 6>&1
14196 ## ----------------------------------- ##
14197 ## Main body of $CONFIG_STATUS script. ##
14198 ## ----------------------------------- ##
14199 _ASEOF
14200 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14201
14202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14203 # Save the log message, to keep $0 and so on meaningful, and to
14204 # report actual input values of CONFIG_FILES etc. instead of their
14205 # values after options handling.
14206 ac_log="
14207 This file was extended by FreeType $as_me 2.5.4, which was
14208 generated by GNU Autoconf 2.69.  Invocation command line was
14209
14210   CONFIG_FILES    = $CONFIG_FILES
14211   CONFIG_HEADERS  = $CONFIG_HEADERS
14212   CONFIG_LINKS    = $CONFIG_LINKS
14213   CONFIG_COMMANDS = $CONFIG_COMMANDS
14214   $ $0 $@
14215
14216 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14217 "
14218
14219 _ACEOF
14220
14221 case $ac_config_files in *"
14222 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14223 esac
14224
14225 case $ac_config_headers in *"
14226 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14227 esac
14228
14229
14230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14231 # Files that config.status was made for.
14232 config_files="$ac_config_files"
14233 config_headers="$ac_config_headers"
14234 config_commands="$ac_config_commands"
14235
14236 _ACEOF
14237
14238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14239 ac_cs_usage="\
14240 \`$as_me' instantiates files and other configuration actions
14241 from templates according to the current configuration.  Unless the files
14242 and actions are specified as TAGs, all are instantiated by default.
14243
14244 Usage: $0 [OPTION]... [TAG]...
14245
14246   -h, --help       print this help, then exit
14247   -V, --version    print version number and configuration settings, then exit
14248       --config     print configuration, then exit
14249   -q, --quiet, --silent
14250                    do not print progress messages
14251   -d, --debug      don't remove temporary files
14252       --recheck    update $as_me by reconfiguring in the same conditions
14253       --file=FILE[:TEMPLATE]
14254                    instantiate the configuration file FILE
14255       --header=FILE[:TEMPLATE]
14256                    instantiate the configuration header FILE
14257
14258 Configuration files:
14259 $config_files
14260
14261 Configuration headers:
14262 $config_headers
14263
14264 Configuration commands:
14265 $config_commands
14266
14267 Report bugs to <freetype@nongnu.org>."
14268
14269 _ACEOF
14270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14271 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14272 ac_cs_version="\\
14273 FreeType config.status 2.5.4
14274 configured by $0, generated by GNU Autoconf 2.69,
14275   with options \\"\$ac_cs_config\\"
14276
14277 Copyright (C) 2012 Free Software Foundation, Inc.
14278 This config.status script is free software; the Free Software Foundation
14279 gives unlimited permission to copy, distribute and modify it."
14280
14281 ac_pwd='$ac_pwd'
14282 srcdir='$srcdir'
14283 INSTALL='$INSTALL'
14284 AWK='$AWK'
14285 test -n "\$AWK" || AWK=awk
14286 _ACEOF
14287
14288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14289 # The default lists apply if the user does not specify any file.
14290 ac_need_defaults=:
14291 while test $# != 0
14292 do
14293   case $1 in
14294   --*=?*)
14295     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14296     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14297     ac_shift=:
14298     ;;
14299   --*=)
14300     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14301     ac_optarg=
14302     ac_shift=:
14303     ;;
14304   *)
14305     ac_option=$1
14306     ac_optarg=$2
14307     ac_shift=shift
14308     ;;
14309   esac
14310
14311   case $ac_option in
14312   # Handling of the options.
14313   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14314     ac_cs_recheck=: ;;
14315   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14316     $as_echo "$ac_cs_version"; exit ;;
14317   --config | --confi | --conf | --con | --co | --c )
14318     $as_echo "$ac_cs_config"; exit ;;
14319   --debug | --debu | --deb | --de | --d | -d )
14320     debug=: ;;
14321   --file | --fil | --fi | --f )
14322     $ac_shift
14323     case $ac_optarg in
14324     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14325     '') as_fn_error $? "missing file argument" ;;
14326     esac
14327     as_fn_append CONFIG_FILES " '$ac_optarg'"
14328     ac_need_defaults=false;;
14329   --header | --heade | --head | --hea )
14330     $ac_shift
14331     case $ac_optarg in
14332     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14333     esac
14334     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14335     ac_need_defaults=false;;
14336   --he | --h)
14337     # Conflict between --help and --header
14338     as_fn_error $? "ambiguous option: \`$1'
14339 Try \`$0 --help' for more information.";;
14340   --help | --hel | -h )
14341     $as_echo "$ac_cs_usage"; exit ;;
14342   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14343   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14344     ac_cs_silent=: ;;
14345
14346   # This is an error.
14347   -*) as_fn_error $? "unrecognized option: \`$1'
14348 Try \`$0 --help' for more information." ;;
14349
14350   *) as_fn_append ac_config_targets " $1"
14351      ac_need_defaults=false ;;
14352
14353   esac
14354   shift
14355 done
14356
14357 ac_configure_extra_args=
14358
14359 if $ac_cs_silent; then
14360   exec 6>/dev/null
14361   ac_configure_extra_args="$ac_configure_extra_args --silent"
14362 fi
14363
14364 _ACEOF
14365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14366 if \$ac_cs_recheck; then
14367   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14368   shift
14369   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14370   CONFIG_SHELL='$SHELL'
14371   export CONFIG_SHELL
14372   exec "\$@"
14373 fi
14374
14375 _ACEOF
14376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14377 exec 5>>config.log
14378 {
14379   echo
14380   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14381 ## Running $as_me. ##
14382 _ASBOX
14383   $as_echo "$ac_log"
14384 } >&5
14385
14386 _ACEOF
14387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14388 #
14389 # INIT-COMMANDS
14390 #
14391
14392
14393 # The HP-UX ksh and POSIX shell print the target directory to stdout
14394 # if CDPATH is set.
14395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14396
14397 sed_quote_subst='$sed_quote_subst'
14398 double_quote_subst='$double_quote_subst'
14399 delay_variable_subst='$delay_variable_subst'
14400 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14401 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14402 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14403 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14404 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14405 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14406 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14407 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14408 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14409 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14410 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14411 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14412 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14413 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14414 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14415 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14416 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14417 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14418 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14419 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14420 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14421 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14422 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14423 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14424 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14425 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14426 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14427 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14428 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14429 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14430 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14431 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14432 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14433 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14434 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14435 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14436 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14437 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14438 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14439 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14440 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14441 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14442 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14443 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14444 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14445 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14446 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14447 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14448 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14449 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14450 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14451 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14452 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14453 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14454 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14455 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14456 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14457 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"`'
14458 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14459 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14460 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14461 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14462 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14463 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14464 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14465 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14466 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14467 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14468 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14469 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14470 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14471 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14472 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14473 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14474 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14475 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14476 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14477 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14478 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14479 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14480 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14481 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14482 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14483 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14484 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14485 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14486 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14487 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14488 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14489 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14490 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14491 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14492 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14493 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14494 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14495 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14496 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14497 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14498 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14499 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14500 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14501 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14502 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14503 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14504 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14505 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14506 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14507 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14508 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14509 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14510 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14511 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14512 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14513 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14514 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14515 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14516 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14517 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14518 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14519 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14520 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14521 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14522 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14523 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14524 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14525 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14526 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14527 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14528 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14529 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14530 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14531
14532 LTCC='$LTCC'
14533 LTCFLAGS='$LTCFLAGS'
14534 compiler='$compiler_DEFAULT'
14535
14536 # A function that is used when there is no print builtin or printf.
14537 func_fallback_echo ()
14538 {
14539   eval 'cat <<_LTECHO_EOF
14540 \$1
14541 _LTECHO_EOF'
14542 }
14543
14544 # Quote evaled strings.
14545 for var in AS \
14546 DLLTOOL \
14547 OBJDUMP \
14548 SHELL \
14549 ECHO \
14550 PATH_SEPARATOR \
14551 SED \
14552 GREP \
14553 EGREP \
14554 FGREP \
14555 LD \
14556 NM \
14557 LN_S \
14558 lt_SP2NL \
14559 lt_NL2SP \
14560 reload_flag \
14561 deplibs_check_method \
14562 file_magic_cmd \
14563 file_magic_glob \
14564 want_nocaseglob \
14565 sharedlib_from_linklib_cmd \
14566 AR \
14567 AR_FLAGS \
14568 archiver_list_spec \
14569 STRIP \
14570 RANLIB \
14571 CC \
14572 CFLAGS \
14573 compiler \
14574 lt_cv_sys_global_symbol_pipe \
14575 lt_cv_sys_global_symbol_to_cdecl \
14576 lt_cv_sys_global_symbol_to_c_name_address \
14577 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14578 nm_file_list_spec \
14579 lt_prog_compiler_no_builtin_flag \
14580 lt_prog_compiler_pic \
14581 lt_prog_compiler_wl \
14582 lt_prog_compiler_static \
14583 lt_cv_prog_compiler_c_o \
14584 need_locks \
14585 MANIFEST_TOOL \
14586 DSYMUTIL \
14587 NMEDIT \
14588 LIPO \
14589 OTOOL \
14590 OTOOL64 \
14591 shrext_cmds \
14592 export_dynamic_flag_spec \
14593 whole_archive_flag_spec \
14594 compiler_needs_object \
14595 with_gnu_ld \
14596 allow_undefined_flag \
14597 no_undefined_flag \
14598 hardcode_libdir_flag_spec \
14599 hardcode_libdir_separator \
14600 exclude_expsyms \
14601 include_expsyms \
14602 file_list_spec \
14603 variables_saved_for_relink \
14604 libname_spec \
14605 library_names_spec \
14606 soname_spec \
14607 install_override_mode \
14608 finish_eval \
14609 old_striplib \
14610 striplib; do
14611     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14612     *[\\\\\\\`\\"\\\$]*)
14613       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14614       ;;
14615     *)
14616       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14617       ;;
14618     esac
14619 done
14620
14621 # Double-quote double-evaled strings.
14622 for var in reload_cmds \
14623 old_postinstall_cmds \
14624 old_postuninstall_cmds \
14625 old_archive_cmds \
14626 extract_expsyms_cmds \
14627 old_archive_from_new_cmds \
14628 old_archive_from_expsyms_cmds \
14629 archive_cmds \
14630 archive_expsym_cmds \
14631 module_cmds \
14632 module_expsym_cmds \
14633 export_symbols_cmds \
14634 prelink_cmds \
14635 postlink_cmds \
14636 postinstall_cmds \
14637 postuninstall_cmds \
14638 finish_cmds \
14639 sys_lib_search_path_spec \
14640 sys_lib_dlsearch_path_spec; do
14641     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14642     *[\\\\\\\`\\"\\\$]*)
14643       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14644       ;;
14645     *)
14646       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14647       ;;
14648     esac
14649 done
14650
14651 ac_aux_dir='$ac_aux_dir'
14652 xsi_shell='$xsi_shell'
14653 lt_shell_append='$lt_shell_append'
14654
14655 # See if we are running on zsh, and set the options which allow our
14656 # commands through without removal of \ escapes INIT.
14657 if test -n "\${ZSH_VERSION+set}" ; then
14658    setopt NO_GLOB_SUBST
14659 fi
14660
14661
14662     PACKAGE='$PACKAGE'
14663     VERSION='$VERSION'
14664     TIMESTAMP='$TIMESTAMP'
14665     RM='$RM'
14666     ofile='$ofile'
14667
14668
14669
14670
14671 _ACEOF
14672
14673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14674
14675 # Handling of arguments.
14676 for ac_config_target in $ac_config_targets
14677 do
14678   case $ac_config_target in
14679     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14680     "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
14681     "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
14682     "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
14683
14684   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14685   esac
14686 done
14687
14688
14689 # If the user did not use the arguments to specify the items to instantiate,
14690 # then the envvar interface is used.  Set only those that are not.
14691 # We use the long form for the default assignment because of an extremely
14692 # bizarre bug on SunOS 4.1.3.
14693 if $ac_need_defaults; then
14694   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14695   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14696   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14697 fi
14698
14699 # Have a temporary directory for convenience.  Make it in the build tree
14700 # simply because there is no reason against having it here, and in addition,
14701 # creating and moving files from /tmp can sometimes cause problems.
14702 # Hook for its removal unless debugging.
14703 # Note that there is a small window in which the directory will not be cleaned:
14704 # after its creation but before its name has been assigned to `$tmp'.
14705 $debug ||
14706 {
14707   tmp= ac_tmp=
14708   trap 'exit_status=$?
14709   : "${ac_tmp:=$tmp}"
14710   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14711 ' 0
14712   trap 'as_fn_exit 1' 1 2 13 15
14713 }
14714 # Create a (secure) tmp directory for tmp files.
14715
14716 {
14717   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14718   test -d "$tmp"
14719 }  ||
14720 {
14721   tmp=./conf$$-$RANDOM
14722   (umask 077 && mkdir "$tmp")
14723 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14724 ac_tmp=$tmp
14725
14726 # Set up the scripts for CONFIG_FILES section.
14727 # No need to generate them if there are no CONFIG_FILES.
14728 # This happens for instance with `./config.status config.h'.
14729 if test -n "$CONFIG_FILES"; then
14730
14731
14732 ac_cr=`echo X | tr X '\015'`
14733 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14734 # But we know of no other shell where ac_cr would be empty at this
14735 # point, so we can use a bashism as a fallback.
14736 if test "x$ac_cr" = x; then
14737   eval ac_cr=\$\'\\r\'
14738 fi
14739 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14740 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14741   ac_cs_awk_cr='\\r'
14742 else
14743   ac_cs_awk_cr=$ac_cr
14744 fi
14745
14746 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14747 _ACEOF
14748
14749
14750 {
14751   echo "cat >conf$$subs.awk <<_ACEOF" &&
14752   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14753   echo "_ACEOF"
14754 } >conf$$subs.sh ||
14755   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14756 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14757 ac_delim='%!_!# '
14758 for ac_last_try in false false false false false :; do
14759   . ./conf$$subs.sh ||
14760     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14761
14762   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14763   if test $ac_delim_n = $ac_delim_num; then
14764     break
14765   elif $ac_last_try; then
14766     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14767   else
14768     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14769   fi
14770 done
14771 rm -f conf$$subs.sh
14772
14773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14774 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14775 _ACEOF
14776 sed -n '
14777 h
14778 s/^/S["/; s/!.*/"]=/
14779 p
14780 g
14781 s/^[^!]*!//
14782 :repl
14783 t repl
14784 s/'"$ac_delim"'$//
14785 t delim
14786 :nl
14787 h
14788 s/\(.\{148\}\)..*/\1/
14789 t more1
14790 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14791 p
14792 n
14793 b repl
14794 :more1
14795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14796 p
14797 g
14798 s/.\{148\}//
14799 t nl
14800 :delim
14801 h
14802 s/\(.\{148\}\)..*/\1/
14803 t more2
14804 s/["\\]/\\&/g; s/^/"/; s/$/"/
14805 p
14806 b
14807 :more2
14808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14809 p
14810 g
14811 s/.\{148\}//
14812 t delim
14813 ' <conf$$subs.awk | sed '
14814 /^[^""]/{
14815   N
14816   s/\n//
14817 }
14818 ' >>$CONFIG_STATUS || ac_write_fail=1
14819 rm -f conf$$subs.awk
14820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14821 _ACAWK
14822 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14823   for (key in S) S_is_set[key] = 1
14824   FS = "\a"
14825
14826 }
14827 {
14828   line = $ 0
14829   nfields = split(line, field, "@")
14830   substed = 0
14831   len = length(field[1])
14832   for (i = 2; i < nfields; i++) {
14833     key = field[i]
14834     keylen = length(key)
14835     if (S_is_set[key]) {
14836       value = S[key]
14837       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14838       len += length(value) + length(field[++i])
14839       substed = 1
14840     } else
14841       len += 1 + keylen
14842   }
14843
14844   print line
14845 }
14846
14847 _ACAWK
14848 _ACEOF
14849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14850 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14851   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14852 else
14853   cat
14854 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14855   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14856 _ACEOF
14857
14858 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14859 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14860 # trailing colons and then remove the whole line if VPATH becomes empty
14861 # (actually we leave an empty line to preserve line numbers).
14862 if test "x$srcdir" = x.; then
14863   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14864 h
14865 s///
14866 s/^/:/
14867 s/[      ]*$/:/
14868 s/:\$(srcdir):/:/g
14869 s/:\${srcdir}:/:/g
14870 s/:@srcdir@:/:/g
14871 s/^:*//
14872 s/:*$//
14873 x
14874 s/\(=[   ]*\).*/\1/
14875 G
14876 s/\n//
14877 s/^[^=]*=[       ]*$//
14878 }'
14879 fi
14880
14881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14882 fi # test -n "$CONFIG_FILES"
14883
14884 # Set up the scripts for CONFIG_HEADERS section.
14885 # No need to generate them if there are no CONFIG_HEADERS.
14886 # This happens for instance with `./config.status Makefile'.
14887 if test -n "$CONFIG_HEADERS"; then
14888 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14889 BEGIN {
14890 _ACEOF
14891
14892 # Transform confdefs.h into an awk script `defines.awk', embedded as
14893 # here-document in config.status, that substitutes the proper values into
14894 # config.h.in to produce config.h.
14895
14896 # Create a delimiter string that does not exist in confdefs.h, to ease
14897 # handling of long lines.
14898 ac_delim='%!_!# '
14899 for ac_last_try in false false :; do
14900   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14901   if test -z "$ac_tt"; then
14902     break
14903   elif $ac_last_try; then
14904     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14905   else
14906     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14907   fi
14908 done
14909
14910 # For the awk script, D is an array of macro values keyed by name,
14911 # likewise P contains macro parameters if any.  Preserve backslash
14912 # newline sequences.
14913
14914 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14915 sed -n '
14916 s/.\{148\}/&'"$ac_delim"'/g
14917 t rset
14918 :rset
14919 s/^[     ]*#[    ]*define[       ][      ]*/ /
14920 t def
14921 d
14922 :def
14923 s/\\$//
14924 t bsnl
14925 s/["\\]/\\&/g
14926 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14927 D["\1"]=" \3"/p
14928 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14929 d
14930 :bsnl
14931 s/["\\]/\\&/g
14932 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14933 D["\1"]=" \3\\\\\\n"\\/p
14934 t cont
14935 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14936 t cont
14937 d
14938 :cont
14939 n
14940 s/.\{148\}/&'"$ac_delim"'/g
14941 t clear
14942 :clear
14943 s/\\$//
14944 t bsnlc
14945 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14946 d
14947 :bsnlc
14948 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14949 b cont
14950 ' <confdefs.h | sed '
14951 s/'"$ac_delim"'/"\\\
14952 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14953
14954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14955   for (key in D) D_is_set[key] = 1
14956   FS = "\a"
14957 }
14958 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14959   line = \$ 0
14960   split(line, arg, " ")
14961   if (arg[1] == "#") {
14962     defundef = arg[2]
14963     mac1 = arg[3]
14964   } else {
14965     defundef = substr(arg[1], 2)
14966     mac1 = arg[2]
14967   }
14968   split(mac1, mac2, "(") #)
14969   macro = mac2[1]
14970   prefix = substr(line, 1, index(line, defundef) - 1)
14971   if (D_is_set[macro]) {
14972     # Preserve the white space surrounding the "#".
14973     print prefix "define", macro P[macro] D[macro]
14974     next
14975   } else {
14976     # Replace #undef with comments.  This is necessary, for example,
14977     # in the case of _POSIX_SOURCE, which is predefined and required
14978     # on some systems where configure will not decide to define it.
14979     if (defundef == "undef") {
14980       print "/*", prefix defundef, macro, "*/"
14981       next
14982     }
14983   }
14984 }
14985 { print }
14986 _ACAWK
14987 _ACEOF
14988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14990 fi # test -n "$CONFIG_HEADERS"
14991
14992
14993 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14994 shift
14995 for ac_tag
14996 do
14997   case $ac_tag in
14998   :[FHLC]) ac_mode=$ac_tag; continue;;
14999   esac
15000   case $ac_mode$ac_tag in
15001   :[FHL]*:*);;
15002   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15003   :[FH]-) ac_tag=-:-;;
15004   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15005   esac
15006   ac_save_IFS=$IFS
15007   IFS=:
15008   set x $ac_tag
15009   IFS=$ac_save_IFS
15010   shift
15011   ac_file=$1
15012   shift
15013
15014   case $ac_mode in
15015   :L) ac_source=$1;;
15016   :[FH])
15017     ac_file_inputs=
15018     for ac_f
15019     do
15020       case $ac_f in
15021       -) ac_f="$ac_tmp/stdin";;
15022       *) # Look for the file first in the build tree, then in the source tree
15023          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15024          # because $ac_f cannot contain `:'.
15025          test -f "$ac_f" ||
15026            case $ac_f in
15027            [\\/$]*) false;;
15028            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15029            esac ||
15030            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15031       esac
15032       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15033       as_fn_append ac_file_inputs " '$ac_f'"
15034     done
15035
15036     # Let's still pretend it is `configure' which instantiates (i.e., don't
15037     # use $as_me), people would be surprised to read:
15038     #    /* config.h.  Generated by config.status.  */
15039     configure_input='Generated from '`
15040           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15041         `' by configure.'
15042     if test x"$ac_file" != x-; then
15043       configure_input="$ac_file.  $configure_input"
15044       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15045 $as_echo "$as_me: creating $ac_file" >&6;}
15046     fi
15047     # Neutralize special characters interpreted by sed in replacement strings.
15048     case $configure_input in #(
15049     *\&* | *\|* | *\\* )
15050        ac_sed_conf_input=`$as_echo "$configure_input" |
15051        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15052     *) ac_sed_conf_input=$configure_input;;
15053     esac
15054
15055     case $ac_tag in
15056     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15057       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15058     esac
15059     ;;
15060   esac
15061
15062   ac_dir=`$as_dirname -- "$ac_file" ||
15063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15064          X"$ac_file" : 'X\(//\)[^/]' \| \
15065          X"$ac_file" : 'X\(//\)$' \| \
15066          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15067 $as_echo X"$ac_file" |
15068     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15069             s//\1/
15070             q
15071           }
15072           /^X\(\/\/\)[^/].*/{
15073             s//\1/
15074             q
15075           }
15076           /^X\(\/\/\)$/{
15077             s//\1/
15078             q
15079           }
15080           /^X\(\/\).*/{
15081             s//\1/
15082             q
15083           }
15084           s/.*/./; q'`
15085   as_dir="$ac_dir"; as_fn_mkdir_p
15086   ac_builddir=.
15087
15088 case "$ac_dir" in
15089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15090 *)
15091   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15092   # A ".." for each directory in $ac_dir_suffix.
15093   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15094   case $ac_top_builddir_sub in
15095   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15096   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15097   esac ;;
15098 esac
15099 ac_abs_top_builddir=$ac_pwd
15100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15101 # for backward compatibility:
15102 ac_top_builddir=$ac_top_build_prefix
15103
15104 case $srcdir in
15105   .)  # We are building in place.
15106     ac_srcdir=.
15107     ac_top_srcdir=$ac_top_builddir_sub
15108     ac_abs_top_srcdir=$ac_pwd ;;
15109   [\\/]* | ?:[\\/]* )  # Absolute name.
15110     ac_srcdir=$srcdir$ac_dir_suffix;
15111     ac_top_srcdir=$srcdir
15112     ac_abs_top_srcdir=$srcdir ;;
15113   *) # Relative name.
15114     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15115     ac_top_srcdir=$ac_top_build_prefix$srcdir
15116     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15117 esac
15118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15119
15120
15121   case $ac_mode in
15122   :F)
15123   #
15124   # CONFIG_FILE
15125   #
15126
15127   case $INSTALL in
15128   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15129   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15130   esac
15131 _ACEOF
15132
15133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15134 # If the template does not know about datarootdir, expand it.
15135 # FIXME: This hack should be removed a few years after 2.60.
15136 ac_datarootdir_hack=; ac_datarootdir_seen=
15137 ac_sed_dataroot='
15138 /datarootdir/ {
15139   p
15140   q
15141 }
15142 /@datadir@/p
15143 /@docdir@/p
15144 /@infodir@/p
15145 /@localedir@/p
15146 /@mandir@/p'
15147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15148 *datarootdir*) ac_datarootdir_seen=yes;;
15149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15150   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15152 _ACEOF
15153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15154   ac_datarootdir_hack='
15155   s&@datadir@&$datadir&g
15156   s&@docdir@&$docdir&g
15157   s&@infodir@&$infodir&g
15158   s&@localedir@&$localedir&g
15159   s&@mandir@&$mandir&g
15160   s&\\\${datarootdir}&$datarootdir&g' ;;
15161 esac
15162 _ACEOF
15163
15164 # Neutralize VPATH when `$srcdir' = `.'.
15165 # Shell code in configure.ac might set extrasub.
15166 # FIXME: do we really want to maintain this feature?
15167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168 ac_sed_extra="$ac_vpsub
15169 $extrasub
15170 _ACEOF
15171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15172 :t
15173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15174 s|@configure_input@|$ac_sed_conf_input|;t t
15175 s&@top_builddir@&$ac_top_builddir_sub&;t t
15176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15177 s&@srcdir@&$ac_srcdir&;t t
15178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15179 s&@top_srcdir@&$ac_top_srcdir&;t t
15180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15181 s&@builddir@&$ac_builddir&;t t
15182 s&@abs_builddir@&$ac_abs_builddir&;t t
15183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15184 s&@INSTALL@&$ac_INSTALL&;t t
15185 $ac_datarootdir_hack
15186 "
15187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15188   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15189
15190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15191   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15192   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15193       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15194   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15195 which seems to be undefined.  Please make sure it is defined" >&5
15196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15197 which seems to be undefined.  Please make sure it is defined" >&2;}
15198
15199   rm -f "$ac_tmp/stdin"
15200   case $ac_file in
15201   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15202   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15203   esac \
15204   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15205  ;;
15206   :H)
15207   #
15208   # CONFIG_HEADER
15209   #
15210   if test x"$ac_file" != x-; then
15211     {
15212       $as_echo "/* $configure_input  */" \
15213       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15214     } >"$ac_tmp/config.h" \
15215       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15216     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15217       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15218 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15219     else
15220       rm -f "$ac_file"
15221       mv "$ac_tmp/config.h" "$ac_file" \
15222         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15223     fi
15224   else
15225     $as_echo "/* $configure_input  */" \
15226       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15227       || as_fn_error $? "could not create -" "$LINENO" 5
15228   fi
15229  ;;
15230
15231   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15232 $as_echo "$as_me: executing $ac_file commands" >&6;}
15233  ;;
15234   esac
15235
15236
15237   case $ac_file$ac_mode in
15238     "libtool":C)
15239
15240     # See if we are running on zsh, and set the options which allow our
15241     # commands through without removal of \ escapes.
15242     if test -n "${ZSH_VERSION+set}" ; then
15243       setopt NO_GLOB_SUBST
15244     fi
15245
15246     cfgfile="${ofile}T"
15247     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15248     $RM "$cfgfile"
15249
15250     cat <<_LT_EOF >> "$cfgfile"
15251 #! $SHELL
15252
15253 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15254 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15256 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15257 #
15258 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15259 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15260 #                 Foundation, Inc.
15261 #   Written by Gordon Matzigkeit, 1996
15262 #
15263 #   This file is part of GNU Libtool.
15264 #
15265 # GNU Libtool is free software; you can redistribute it and/or
15266 # modify it under the terms of the GNU General Public License as
15267 # published by the Free Software Foundation; either version 2 of
15268 # the License, or (at your option) any later version.
15269 #
15270 # As a special exception to the GNU General Public License,
15271 # if you distribute this file as part of a program or library that
15272 # is built using GNU Libtool, you may include this file under the
15273 # same distribution terms that you use for the rest of that program.
15274 #
15275 # GNU Libtool is distributed in the hope that it will be useful,
15276 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15278 # GNU General Public License for more details.
15279 #
15280 # You should have received a copy of the GNU General Public License
15281 # along with GNU Libtool; see the file COPYING.  If not, a copy
15282 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15283 # obtained by writing to the Free Software Foundation, Inc.,
15284 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15285
15286
15287 # The names of the tagged configurations supported by this script.
15288 available_tags=""
15289
15290 # ### BEGIN LIBTOOL CONFIG
15291
15292 # Which release of libtool.m4 was used?
15293 macro_version=$macro_version
15294 macro_revision=$macro_revision
15295
15296 # Assembler program.
15297 AS=$lt_AS
15298
15299 # DLL creation program.
15300 DLLTOOL=$lt_DLLTOOL
15301
15302 # Object dumper program.
15303 OBJDUMP=$lt_OBJDUMP
15304
15305 # Whether or not to build shared libraries.
15306 build_libtool_libs=$enable_shared
15307
15308 # Whether or not to build static libraries.
15309 build_old_libs=$enable_static
15310
15311 # What type of objects to build.
15312 pic_mode=$pic_mode
15313
15314 # Whether or not to optimize for fast installation.
15315 fast_install=$enable_fast_install
15316
15317 # Shell to use when invoking shell scripts.
15318 SHELL=$lt_SHELL
15319
15320 # An echo program that protects backslashes.
15321 ECHO=$lt_ECHO
15322
15323 # The PATH separator for the build system.
15324 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15325
15326 # The host system.
15327 host_alias=$host_alias
15328 host=$host
15329 host_os=$host_os
15330
15331 # The build system.
15332 build_alias=$build_alias
15333 build=$build
15334 build_os=$build_os
15335
15336 # A sed program that does not truncate output.
15337 SED=$lt_SED
15338
15339 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15340 Xsed="\$SED -e 1s/^X//"
15341
15342 # A grep program that handles long lines.
15343 GREP=$lt_GREP
15344
15345 # An ERE matcher.
15346 EGREP=$lt_EGREP
15347
15348 # A literal string matcher.
15349 FGREP=$lt_FGREP
15350
15351 # A BSD- or MS-compatible name lister.
15352 NM=$lt_NM
15353
15354 # Whether we need soft or hard links.
15355 LN_S=$lt_LN_S
15356
15357 # What is the maximum length of a command?
15358 max_cmd_len=$max_cmd_len
15359
15360 # Object file suffix (normally "o").
15361 objext=$ac_objext
15362
15363 # Executable file suffix (normally "").
15364 exeext=$exeext
15365
15366 # whether the shell understands "unset".
15367 lt_unset=$lt_unset
15368
15369 # turn spaces into newlines.
15370 SP2NL=$lt_lt_SP2NL
15371
15372 # turn newlines into spaces.
15373 NL2SP=$lt_lt_NL2SP
15374
15375 # convert \$build file names to \$host format.
15376 to_host_file_cmd=$lt_cv_to_host_file_cmd
15377
15378 # convert \$build files to toolchain format.
15379 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15380
15381 # Method to check whether dependent libraries are shared objects.
15382 deplibs_check_method=$lt_deplibs_check_method
15383
15384 # Command to use when deplibs_check_method = "file_magic".
15385 file_magic_cmd=$lt_file_magic_cmd
15386
15387 # How to find potential files when deplibs_check_method = "file_magic".
15388 file_magic_glob=$lt_file_magic_glob
15389
15390 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15391 want_nocaseglob=$lt_want_nocaseglob
15392
15393 # Command to associate shared and link libraries.
15394 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15395
15396 # The archiver.
15397 AR=$lt_AR
15398
15399 # Flags to create an archive.
15400 AR_FLAGS=$lt_AR_FLAGS
15401
15402 # How to feed a file listing to the archiver.
15403 archiver_list_spec=$lt_archiver_list_spec
15404
15405 # A symbol stripping program.
15406 STRIP=$lt_STRIP
15407
15408 # Commands used to install an old-style archive.
15409 RANLIB=$lt_RANLIB
15410 old_postinstall_cmds=$lt_old_postinstall_cmds
15411 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15412
15413 # Whether to use a lock for old archive extraction.
15414 lock_old_archive_extraction=$lock_old_archive_extraction
15415
15416 # A C compiler.
15417 LTCC=$lt_CC
15418
15419 # LTCC compiler flags.
15420 LTCFLAGS=$lt_CFLAGS
15421
15422 # Take the output of nm and produce a listing of raw symbols and C names.
15423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15424
15425 # Transform the output of nm in a proper C declaration.
15426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15427
15428 # Transform the output of nm in a C name address pair.
15429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15430
15431 # Transform the output of nm in a C name address pair when lib prefix is needed.
15432 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15433
15434 # Specify filename containing input files for \$NM.
15435 nm_file_list_spec=$lt_nm_file_list_spec
15436
15437 # The root where to search for dependent libraries,and in which our libraries should be installed.
15438 lt_sysroot=$lt_sysroot
15439
15440 # The name of the directory that contains temporary libtool files.
15441 objdir=$objdir
15442
15443 # Used to examine libraries when file_magic_cmd begins with "file".
15444 MAGIC_CMD=$MAGIC_CMD
15445
15446 # Must we lock files when doing compilation?
15447 need_locks=$lt_need_locks
15448
15449 # Manifest tool.
15450 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15451
15452 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15453 DSYMUTIL=$lt_DSYMUTIL
15454
15455 # Tool to change global to local symbols on Mac OS X.
15456 NMEDIT=$lt_NMEDIT
15457
15458 # Tool to manipulate fat objects and archives on Mac OS X.
15459 LIPO=$lt_LIPO
15460
15461 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15462 OTOOL=$lt_OTOOL
15463
15464 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15465 OTOOL64=$lt_OTOOL64
15466
15467 # Old archive suffix (normally "a").
15468 libext=$libext
15469
15470 # Shared library suffix (normally ".so").
15471 shrext_cmds=$lt_shrext_cmds
15472
15473 # The commands to extract the exported symbol list from a shared archive.
15474 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15475
15476 # Variables whose values should be saved in libtool wrapper scripts and
15477 # restored at link time.
15478 variables_saved_for_relink=$lt_variables_saved_for_relink
15479
15480 # Do we need the "lib" prefix for modules?
15481 need_lib_prefix=$need_lib_prefix
15482
15483 # Do we need a version for libraries?
15484 need_version=$need_version
15485
15486 # Library versioning type.
15487 version_type=$version_type
15488
15489 # Shared library runtime path variable.
15490 runpath_var=$runpath_var
15491
15492 # Shared library path variable.
15493 shlibpath_var=$shlibpath_var
15494
15495 # Is shlibpath searched before the hard-coded library search path?
15496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15497
15498 # Format of library name prefix.
15499 libname_spec=$lt_libname_spec
15500
15501 # List of archive names.  First name is the real one, the rest are links.
15502 # The last name is the one that the linker finds with -lNAME
15503 library_names_spec=$lt_library_names_spec
15504
15505 # The coded name of the library, if different from the real name.
15506 soname_spec=$lt_soname_spec
15507
15508 # Permission mode override for installation of shared libraries.
15509 install_override_mode=$lt_install_override_mode
15510
15511 # Command to use after installation of a shared archive.
15512 postinstall_cmds=$lt_postinstall_cmds
15513
15514 # Command to use after uninstallation of a shared archive.
15515 postuninstall_cmds=$lt_postuninstall_cmds
15516
15517 # Commands used to finish a libtool library installation in a directory.
15518 finish_cmds=$lt_finish_cmds
15519
15520 # As "finish_cmds", except a single script fragment to be evaled but
15521 # not shown.
15522 finish_eval=$lt_finish_eval
15523
15524 # Whether we should hardcode library paths into libraries.
15525 hardcode_into_libs=$hardcode_into_libs
15526
15527 # Compile-time system search path for libraries.
15528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15529
15530 # Run-time system search path for libraries.
15531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15532
15533 # Whether dlopen is supported.
15534 dlopen_support=$enable_dlopen
15535
15536 # Whether dlopen of programs is supported.
15537 dlopen_self=$enable_dlopen_self
15538
15539 # Whether dlopen of statically linked programs is supported.
15540 dlopen_self_static=$enable_dlopen_self_static
15541
15542 # Commands to strip libraries.
15543 old_striplib=$lt_old_striplib
15544 striplib=$lt_striplib
15545
15546
15547 # The linker used to build libraries.
15548 LD=$lt_LD
15549
15550 # How to create reloadable object files.
15551 reload_flag=$lt_reload_flag
15552 reload_cmds=$lt_reload_cmds
15553
15554 # Commands used to build an old-style archive.
15555 old_archive_cmds=$lt_old_archive_cmds
15556
15557 # A language specific compiler.
15558 CC=$lt_compiler
15559
15560 # Is the compiler the GNU compiler?
15561 with_gcc=$GCC
15562
15563 # Compiler flag to turn off builtin functions.
15564 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15565
15566 # Additional compiler flags for building library objects.
15567 pic_flag=$lt_lt_prog_compiler_pic
15568
15569 # How to pass a linker flag through the compiler.
15570 wl=$lt_lt_prog_compiler_wl
15571
15572 # Compiler flag to prevent dynamic linking.
15573 link_static_flag=$lt_lt_prog_compiler_static
15574
15575 # Does compiler simultaneously support -c and -o options?
15576 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15577
15578 # Whether or not to add -lc for building shared libraries.
15579 build_libtool_need_lc=$archive_cmds_need_lc
15580
15581 # Whether or not to disallow shared libs when runtime libs are static.
15582 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15583
15584 # Compiler flag to allow reflexive dlopens.
15585 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15586
15587 # Compiler flag to generate shared objects directly from archives.
15588 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15589
15590 # Whether the compiler copes with passing no objects directly.
15591 compiler_needs_object=$lt_compiler_needs_object
15592
15593 # Create an old-style archive from a shared archive.
15594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15595
15596 # Create a temporary old-style archive to link instead of a shared archive.
15597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15598
15599 # Commands used to build a shared archive.
15600 archive_cmds=$lt_archive_cmds
15601 archive_expsym_cmds=$lt_archive_expsym_cmds
15602
15603 # Commands used to build a loadable module if different from building
15604 # a shared archive.
15605 module_cmds=$lt_module_cmds
15606 module_expsym_cmds=$lt_module_expsym_cmds
15607
15608 # Whether we are building with GNU ld or not.
15609 with_gnu_ld=$lt_with_gnu_ld
15610
15611 # Flag that allows shared libraries with undefined symbols to be built.
15612 allow_undefined_flag=$lt_allow_undefined_flag
15613
15614 # Flag that enforces no undefined symbols.
15615 no_undefined_flag=$lt_no_undefined_flag
15616
15617 # Flag to hardcode \$libdir into a binary during linking.
15618 # This must work even if \$libdir does not exist
15619 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15620
15621 # Whether we need a single "-rpath" flag with a separated argument.
15622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15623
15624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15625 # DIR into the resulting binary.
15626 hardcode_direct=$hardcode_direct
15627
15628 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15629 # DIR into the resulting binary and the resulting library dependency is
15630 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15631 # library is relocated.
15632 hardcode_direct_absolute=$hardcode_direct_absolute
15633
15634 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15635 # into the resulting binary.
15636 hardcode_minus_L=$hardcode_minus_L
15637
15638 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15639 # into the resulting binary.
15640 hardcode_shlibpath_var=$hardcode_shlibpath_var
15641
15642 # Set to "yes" if building a shared library automatically hardcodes DIR
15643 # into the library and all subsequent libraries and executables linked
15644 # against it.
15645 hardcode_automatic=$hardcode_automatic
15646
15647 # Set to yes if linker adds runtime paths of dependent libraries
15648 # to runtime path list.
15649 inherit_rpath=$inherit_rpath
15650
15651 # Whether libtool must link a program against all its dependency libraries.
15652 link_all_deplibs=$link_all_deplibs
15653
15654 # Set to "yes" if exported symbols are required.
15655 always_export_symbols=$always_export_symbols
15656
15657 # The commands to list exported symbols.
15658 export_symbols_cmds=$lt_export_symbols_cmds
15659
15660 # Symbols that should not be listed in the preloaded symbols.
15661 exclude_expsyms=$lt_exclude_expsyms
15662
15663 # Symbols that must always be exported.
15664 include_expsyms=$lt_include_expsyms
15665
15666 # Commands necessary for linking programs (against libraries) with templates.
15667 prelink_cmds=$lt_prelink_cmds
15668
15669 # Commands necessary for finishing linking programs.
15670 postlink_cmds=$lt_postlink_cmds
15671
15672 # Specify filename containing input files.
15673 file_list_spec=$lt_file_list_spec
15674
15675 # How to hardcode a shared library path into an executable.
15676 hardcode_action=$hardcode_action
15677
15678 # ### END LIBTOOL CONFIG
15679
15680 _LT_EOF
15681
15682   case $host_os in
15683   aix3*)
15684     cat <<\_LT_EOF >> "$cfgfile"
15685 # AIX sometimes has problems with the GCC collect2 program.  For some
15686 # reason, if we set the COLLECT_NAMES environment variable, the problems
15687 # vanish in a puff of smoke.
15688 if test "X${COLLECT_NAMES+set}" != Xset; then
15689   COLLECT_NAMES=
15690   export COLLECT_NAMES
15691 fi
15692 _LT_EOF
15693     ;;
15694   esac
15695
15696
15697 ltmain="$ac_aux_dir/ltmain.sh"
15698
15699
15700   # We use sed instead of cat because bash on DJGPP gets confused if
15701   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15702   # text mode, it properly converts lines to CR/LF.  This bash problem
15703   # is reportedly fixed, but why not run on old versions too?
15704   sed '$q' "$ltmain" >> "$cfgfile" \
15705      || (rm -f "$cfgfile"; exit 1)
15706
15707   if test x"$xsi_shell" = xyes; then
15708   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15709 func_dirname ()\
15710 {\
15711 \    case ${1} in\
15712 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15713 \      *  ) func_dirname_result="${3}" ;;\
15714 \    esac\
15715 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15716   && mv -f "$cfgfile.tmp" "$cfgfile" \
15717     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15718 test 0 -eq $? || _lt_function_replace_fail=:
15719
15720
15721   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15722 func_basename ()\
15723 {\
15724 \    func_basename_result="${1##*/}"\
15725 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15726   && mv -f "$cfgfile.tmp" "$cfgfile" \
15727     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15728 test 0 -eq $? || _lt_function_replace_fail=:
15729
15730
15731   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15732 func_dirname_and_basename ()\
15733 {\
15734 \    case ${1} in\
15735 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15736 \      *  ) func_dirname_result="${3}" ;;\
15737 \    esac\
15738 \    func_basename_result="${1##*/}"\
15739 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15740   && mv -f "$cfgfile.tmp" "$cfgfile" \
15741     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15742 test 0 -eq $? || _lt_function_replace_fail=:
15743
15744
15745   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15746 func_stripname ()\
15747 {\
15748 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15749 \    # positional parameters, so assign one to ordinary parameter first.\
15750 \    func_stripname_result=${3}\
15751 \    func_stripname_result=${func_stripname_result#"${1}"}\
15752 \    func_stripname_result=${func_stripname_result%"${2}"}\
15753 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15754   && mv -f "$cfgfile.tmp" "$cfgfile" \
15755     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15756 test 0 -eq $? || _lt_function_replace_fail=:
15757
15758
15759   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15760 func_split_long_opt ()\
15761 {\
15762 \    func_split_long_opt_name=${1%%=*}\
15763 \    func_split_long_opt_arg=${1#*=}\
15764 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15765   && mv -f "$cfgfile.tmp" "$cfgfile" \
15766     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15767 test 0 -eq $? || _lt_function_replace_fail=:
15768
15769
15770   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15771 func_split_short_opt ()\
15772 {\
15773 \    func_split_short_opt_arg=${1#??}\
15774 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15775 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15776   && mv -f "$cfgfile.tmp" "$cfgfile" \
15777     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15778 test 0 -eq $? || _lt_function_replace_fail=:
15779
15780
15781   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15782 func_lo2o ()\
15783 {\
15784 \    case ${1} in\
15785 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15786 \      *)    func_lo2o_result=${1} ;;\
15787 \    esac\
15788 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15789   && mv -f "$cfgfile.tmp" "$cfgfile" \
15790     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15791 test 0 -eq $? || _lt_function_replace_fail=:
15792
15793
15794   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15795 func_xform ()\
15796 {\
15797     func_xform_result=${1%.*}.lo\
15798 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15799   && mv -f "$cfgfile.tmp" "$cfgfile" \
15800     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15801 test 0 -eq $? || _lt_function_replace_fail=:
15802
15803
15804   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15805 func_arith ()\
15806 {\
15807     func_arith_result=$(( $* ))\
15808 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15809   && mv -f "$cfgfile.tmp" "$cfgfile" \
15810     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15811 test 0 -eq $? || _lt_function_replace_fail=:
15812
15813
15814   sed -e '/^func_len ()$/,/^} # func_len /c\
15815 func_len ()\
15816 {\
15817     func_len_result=${#1}\
15818 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15819   && mv -f "$cfgfile.tmp" "$cfgfile" \
15820     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15821 test 0 -eq $? || _lt_function_replace_fail=:
15822
15823 fi
15824
15825 if test x"$lt_shell_append" = xyes; then
15826   sed -e '/^func_append ()$/,/^} # func_append /c\
15827 func_append ()\
15828 {\
15829     eval "${1}+=\\${2}"\
15830 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15831   && mv -f "$cfgfile.tmp" "$cfgfile" \
15832     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15833 test 0 -eq $? || _lt_function_replace_fail=:
15834
15835
15836   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15837 func_append_quoted ()\
15838 {\
15839 \    func_quote_for_eval "${2}"\
15840 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15841 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15842   && mv -f "$cfgfile.tmp" "$cfgfile" \
15843     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15844 test 0 -eq $? || _lt_function_replace_fail=:
15845
15846
15847   # Save a `func_append' function call where possible by direct use of '+='
15848   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15849     && mv -f "$cfgfile.tmp" "$cfgfile" \
15850       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15851   test 0 -eq $? || _lt_function_replace_fail=:
15852 else
15853   # Save a `func_append' function call even when '+=' is not available
15854   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15855     && mv -f "$cfgfile.tmp" "$cfgfile" \
15856       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15857   test 0 -eq $? || _lt_function_replace_fail=:
15858 fi
15859
15860 if test x"$_lt_function_replace_fail" = x":"; then
15861   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15862 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15863 fi
15864
15865
15866    mv -f "$cfgfile" "$ofile" ||
15867     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15868   chmod +x "$ofile"
15869
15870  ;;
15871     "ftconfig.h":H) mv ftconfig.h ftconfig.tmp
15872    sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
15873    rm ftconfig.tmp ;;
15874
15875   esac
15876 done # for ac_tag
15877
15878
15879 as_fn_exit 0
15880 _ACEOF
15881 ac_clean_files=$ac_clean_files_save
15882
15883 test $ac_write_fail = 0 ||
15884   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15885
15886
15887 # configure is writing to config.log, and then calls config.status.
15888 # config.status does its own redirection, appending to config.log.
15889 # Unfortunately, on DOS this fails, as config.log is still kept open
15890 # by configure, so config.status won't be able to write to it; its
15891 # output is simply discarded.  So we exec the FD to /dev/null,
15892 # effectively closing config.log, so it can be properly (re)opened and
15893 # appended to by config.status.  When coming back to configure, we
15894 # need to make the FD available again.
15895 if test "$no_create" != yes; then
15896   ac_cs_success=:
15897   ac_config_status_args=
15898   test "$silent" = yes &&
15899     ac_config_status_args="$ac_config_status_args --quiet"
15900   exec 5>/dev/null
15901   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15902   exec 5>>config.log
15903   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15904   # would make configure fail if this is the last instruction.
15905   $ac_cs_success || as_fn_exit 1
15906 fi
15907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15908   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15910 fi
15911
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}:
15914
15915 Library configuration:
15916   external zlib: $have_zlib
15917   bzip2:         $have_bzip2
15918   libpng:        $have_libpng
15919   harfbuzz:      $have_harfbuzz
15920 " >&5
15921 $as_echo "$as_me:
15922
15923 Library configuration:
15924   external zlib: $have_zlib
15925   bzip2:         $have_bzip2
15926   libpng:        $have_libpng
15927   harfbuzz:      $have_harfbuzz
15928 " >&6;}
15929
15930 # end of configure.raw