Merge branch 'upstream' into tizen
[platform/upstream/fontconfig.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for fontconfig 2.14.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     PATH=/empty FPATH=/empty; export PATH FPATH
192     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284   fi
285   exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303   { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313   return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321   set +e
322   as_fn_set_status $1
323   exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330   return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340   case $as_dir in #(
341   -*) as_dir=./$as_dir;;
342   esac
343   test -d "$as_dir" || eval $as_mkdir_p || {
344     as_dirs=
345     while :; do
346       case $as_dir in #(
347       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348       *) as_qdir=$as_dir;;
349       esac
350       as_dirs="'$as_qdir' $as_dirs"
351       as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353          X"$as_dir" : 'X\(//\)[^/]' \| \
354          X"$as_dir" : 'X\(//\)$' \| \
355          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358             s//\1/
359             q
360           }
361           /^X\(\/\/\)[^/].*/{
362             s//\1/
363             q
364           }
365           /^X\(\/\/\)$/{
366             s//\1/
367             q
368           }
369           /^X\(\/\).*/{
370             s//\1/
371             q
372           }
373           s/.*/./; q'`
374       test -d "$as_dir" && break
375     done
376     test -z "$as_dirs" || eval "mkdir $as_dirs"
377   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387   test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397   eval 'as_fn_append ()
398   {
399     eval $1+=\$2
400   }'
401 else $as_nop
402   as_fn_append ()
403   {
404     eval $1=\$$1\$2
405   }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415   eval 'as_fn_arith ()
416   {
417     as_val=$(( $* ))
418   }'
419 else $as_nop
420   as_fn_arith ()
421   {
422     as_val=`expr "$@" || test $? -eq 1`
423   }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431   return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442   as_status=$1; test $as_status -eq 0 && as_status=1
443   if test "$4"; then
444     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446   fi
447   printf "%s\n" "$as_me: error: $2" >&2
448   as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452    test "X`expr 00001 : '.*\(...\)'`" = X001; then
453   as_expr=expr
454 else
455   as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459   as_basename=basename
460 else
461   as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472          X"$0" : 'X\(//\)$' \| \
473          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475     sed '/^.*\/\([^/][^/]*\)\/*$/{
476             s//\1/
477             q
478           }
479           /^X\/\(\/\/\)$/{
480             s//\1/
481             q
482           }
483           /^X\/\(\/\).*/{
484             s//\1/
485             q
486           }
487           s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497   as_lineno_1=$LINENO as_lineno_1a=$LINENO
498   as_lineno_2=$LINENO as_lineno_2a=$LINENO
499   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502   sed -n '
503     p
504     /[$]LINENO/=
505   ' <$as_myself |
506     sed '
507       s/[$]LINENO.*/&-/
508       t lineno
509       b
510       :lineno
511       N
512       :loop
513       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514       t loop
515       s/-\n.*//
516     ' >$as_me.lineno &&
517   chmod +x "$as_me.lineno" ||
518     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521   # already done that, so ensure we don't try to do so again and fall
522   # in an infinite loop.  This has already happened in practice.
523   _as_can_reexec=no; export _as_can_reexec
524   # Don't try to exec as it changes $[0], causing all sort of problems
525   # (the dirname of $[0] is not the place where we might find the
526   # original and so on.  Autoconf is especially sensitive to this).
527   . "./$as_me.lineno"
528   # Exit status is that of the last command.
529   exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539   case `echo 'xy\c'` in
540   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
541   xy)  ECHO_C='\c';;
542   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543        ECHO_T=' ';;
544   esac;;
545 *)
546   ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n.  New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558   rm -f conf$$.dir/conf$$.file
559 else
560   rm -f conf$$.dir
561   mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564   if ln -s conf$$.file conf$$ 2>/dev/null; then
565     as_ln_s='ln -s'
566     # ... but there are two gotchas:
567     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569     # In both cases, we have to default to `cp -pR'.
570     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571       as_ln_s='cp -pR'
572   elif ln conf$$.file conf$$ 2>/dev/null; then
573     as_ln_s=ln
574   else
575     as_ln_s='cp -pR'
576   fi
577 else
578   as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584   as_mkdir_p='mkdir -p "$as_dir"'
585 else
586   test -d ./-p && rmdir ./-p
587   as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='fontconfig'
624 PACKAGE_TARNAME='fontconfig'
625 PACKAGE_VERSION='2.14.2'
626 PACKAGE_STRING='fontconfig 2.14.2'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new'
628 PACKAGE_URL=''
629
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 gt_needs=
663 ac_func_c_list=
664 ac_subst_vars='am__EXEEXT_FALSE
665 am__EXEEXT_TRUE
666 LTLIBOBJS
667 LIBOBJS
668 PKGCONFIG_REQUIRES_PRIVATELY
669 PKGCONFIG_REQUIRES
670 ENABLE_CACHE_BUILD_FALSE
671 ENABLE_CACHE_BUILD_TRUE
672 DOCMAN3
673 ENABLE_DOCS_FALSE
674 ENABLE_DOCS_TRUE
675 USEDOCBOOK_FALSE
676 USEDOCBOOK_TRUE
677 HASDOCBOOK
678 HAVE_PTHREAD_FALSE
679 HAVE_PTHREAD_TRUE
680 PTHREAD_CFLAGS
681 PTHREAD_LIBS
682 PTHREAD_CC
683 ax_pthread_config
684 XMLDIR
685 CONFIGDIR
686 BASECONFIGDIR
687 TEMPLATEDIR
688 FC_FONTDATE
689 FC_CACHEDIR
690 fc_cachedir
691 FC_FONTPATH
692 FC_ADD_FONTS
693 FC_DEFAULT_FONTS
694 PREFERRED_HINTING
695 PREFERRED_SUB_PIXEL_RENDERING
696 ENABLE_JSONC_FALSE
697 ENABLE_JSONC_TRUE
698 JSONC_LIBS
699 JSONC_CFLAGS
700 LIBXML2_LIBS
701 LIBXML2_CFLAGS
702 PKG_EXPAT_LIBS
703 PKG_EXPAT_CFLAGS
704 HAVE_XMLPARSE_H
705 EXPAT_LIBS
706 EXPAT_CFLAGS
707 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
708 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
709 FREETYPE_LIBS
710 FREETYPE_CFLAGS
711 ICONV_LIBS
712 ICONV_CFLAGS
713 ENABLE_SHARED_FALSE
714 ENABLE_SHARED_TRUE
715 CROSS_COMPILING_FALSE
716 CROSS_COMPILING_TRUE
717 EXEEXT_FOR_BUILD
718 CC_FOR_BUILD
719 WARN_CFLAGS
720 MS_LIB_AVAILABLE_FALSE
721 MS_LIB_AVAILABLE_TRUE
722 ms_librarian
723 POSUB
724 LTLIBINTL
725 LIBINTL
726 INTLLIBS
727 LTLIBICONV
728 LIBICONV
729 INTL_MACOSX_LIBS
730 CPP
731 XGETTEXT_EXTRA_OPTIONS
732 MSGMERGE
733 XGETTEXT_015
734 XGETTEXT
735 GMSGFMT_015
736 MSGFMT_015
737 GMSGFMT
738 MSGFMT
739 GETTEXT_MACRO_VERSION
740 USE_NLS
741 GETTEXT_PACKAGE
742 OS_DARWIN_FALSE
743 OS_DARWIN_TRUE
744 OS_WIN32_FALSE
745 OS_WIN32_TRUE
746 LIBT_CURRENT_MINUS_AGE
747 LIBT_VERSION_INFO
748 LIBT_REVISION
749 LIBT_CURRENT
750 LT_SYS_LIBRARY_PATH
751 OTOOL64
752 OTOOL
753 LIPO
754 NMEDIT
755 DSYMUTIL
756 MANIFEST_TOOL
757 RANLIB
758 ac_ct_AR
759 AR
760 FILECMD
761 NM
762 ac_ct_DUMPBIN
763 DUMPBIN
764 LD
765 FGREP
766 EGREP
767 GREP
768 SED
769 host_os
770 host_vendor
771 host_cpu
772 host
773 build_os
774 build_vendor
775 build_cpu
776 build
777 LIBTOOL
778 OBJDUMP
779 DLLTOOL
780 AS
781 RM
782 pkgpyexecdir
783 pyexecdir
784 pkgpythondir
785 pythondir
786 PYTHON_EXEC_PREFIX
787 PYTHON_PREFIX
788 PYTHON_PLATFORM
789 PYTHON_VERSION
790 PYTHON
791 GPERF
792 GIT
793 pkgconfigdir
794 PKG_CONFIG_LIBDIR
795 PKG_CONFIG_PATH
796 PKG_CONFIG
797 LN_S
798 am__fastdepCC_FALSE
799 am__fastdepCC_TRUE
800 CCDEPMODE
801 am__nodep
802 AMDEPBACKSLASH
803 AMDEP_FALSE
804 AMDEP_TRUE
805 am__include
806 DEPDIR
807 OBJEXT
808 EXEEXT
809 ac_ct_CC
810 CPPFLAGS
811 LDFLAGS
812 CFLAGS
813 CC
814 AM_BACKSLASH
815 AM_DEFAULT_VERBOSITY
816 AM_DEFAULT_V
817 AM_V
818 CSCOPE
819 ETAGS
820 CTAGS
821 am__untar
822 am__tar
823 AMTAR
824 am__leading_dot
825 SET_MAKE
826 AWK
827 mkdir_p
828 MKDIR_P
829 INSTALL_STRIP_PROGRAM
830 STRIP
831 install_sh
832 MAKEINFO
833 AUTOHEADER
834 AUTOMAKE
835 AUTOCONF
836 ACLOCAL
837 VERSION
838 PACKAGE
839 CYGPATH_W
840 am__isrc
841 INSTALL_DATA
842 INSTALL_SCRIPT
843 INSTALL_PROGRAM
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 runstatedir
864 localstatedir
865 sharedstatedir
866 sysconfdir
867 datadir
868 datarootdir
869 libexecdir
870 sbindir
871 bindir
872 program_transform_name
873 prefix
874 exec_prefix
875 PACKAGE_URL
876 PACKAGE_BUGREPORT
877 PACKAGE_STRING
878 PACKAGE_VERSION
879 PACKAGE_TARNAME
880 PACKAGE_NAME
881 PATH_SEPARATOR
882 SHELL
883 am__quote'
884 ac_subst_files=''
885 ac_user_opts='
886 enable_option_checking
887 enable_silent_rules
888 enable_dependency_tracking
889 enable_largefile
890 with_pkgconfigdir
891 with_python_sys_prefix
892 with_python_prefix
893 with_python_exec_prefix
894 enable_static
895 enable_shared
896 with_pic
897 enable_fast_install
898 with_aix_soname
899 with_gnu_ld
900 with_sysroot
901 enable_libtool_lock
902 enable_nls
903 enable_rpath
904 with_libiconv_prefix
905 with_libintl_prefix
906 with_arch
907 enable_iconv
908 with_libiconv
909 with_libiconv_includes
910 with_libiconv_lib
911 with_expat
912 with_expat_includes
913 with_expat_lib
914 enable_libxml2
915 with_default_sub_pixel_rendering
916 with_default_hinting
917 with_default_fonts
918 with_add_fonts
919 with_cache_dir
920 with_templatedir
921 with_baseconfigdir
922 with_configdir
923 with_xmldir
924 enable_docbook
925 enable_docs
926 enable_cache_build
927 '
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 PKG_CONFIG
937 PKG_CONFIG_PATH
938 PKG_CONFIG_LIBDIR
939 PYTHON
940 LT_SYS_LIBRARY_PATH
941 CPP
942 CC_FOR_BUILD
943 FREETYPE_CFLAGS
944 FREETYPE_LIBS
945 EXPAT_CFLAGS
946 EXPAT_LIBS
947 LIBXML2_CFLAGS
948 LIBXML2_LIBS
949 JSONC_CFLAGS
950 JSONC_LIBS'
951
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 ac_unrecognized_opts=
957 ac_unrecognized_sep=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
974
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 runstatedir='${localstatedir}/run'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1001
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
1006   # If the previous option needs an argument, assign it.
1007   if test -n "$ac_prev"; then
1008     eval $ac_prev=\$ac_option
1009     ac_prev=
1010     continue
1011   fi
1012
1013   case $ac_option in
1014   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015   *=)   ac_optarg= ;;
1016   *)    ac_optarg=yes ;;
1017   esac
1018
1019   case $ac_dashdash$ac_option in
1020   --)
1021     ac_dashdash=yes ;;
1022
1023   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024     ac_prev=bindir ;;
1025   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026     bindir=$ac_optarg ;;
1027
1028   -build | --build | --buil | --bui | --bu)
1029     ac_prev=build_alias ;;
1030   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031     build_alias=$ac_optarg ;;
1032
1033   -cache-file | --cache-file | --cache-fil | --cache-fi \
1034   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035     ac_prev=cache_file ;;
1036   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038     cache_file=$ac_optarg ;;
1039
1040   --config-cache | -C)
1041     cache_file=config.cache ;;
1042
1043   -datadir | --datadir | --datadi | --datad)
1044     ac_prev=datadir ;;
1045   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046     datadir=$ac_optarg ;;
1047
1048   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049   | --dataroo | --dataro | --datar)
1050     ac_prev=datarootdir ;;
1051   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053     datarootdir=$ac_optarg ;;
1054
1055   -disable-* | --disable-*)
1056     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1060     ac_useropt_orig=$ac_useropt
1061     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1062     case $ac_user_opts in
1063       *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067          ac_unrecognized_sep=', ';;
1068     esac
1069     eval enable_$ac_useropt=no ;;
1070
1071   -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075
1076   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080
1081   -enable-* | --enable-*)
1082     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1086     ac_useropt_orig=$ac_useropt
1087     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089       *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093          ac_unrecognized_sep=', ';;
1094     esac
1095     eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099   | --exec | --exe | --ex)
1100     ac_prev=exec_prefix ;;
1101   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103   | --exec=* | --exe=* | --ex=*)
1104     exec_prefix=$ac_optarg ;;
1105
1106   -gas | --gas | --ga | --g)
1107     # Obsolete; use --with-gas.
1108     with_gas=yes ;;
1109
1110   -help | --help | --hel | --he | -h)
1111     ac_init_help=long ;;
1112   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113     ac_init_help=recursive ;;
1114   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115     ac_init_help=short ;;
1116
1117   -host | --host | --hos | --ho)
1118     ac_prev=host_alias ;;
1119   -host=* | --host=* | --hos=* | --ho=*)
1120     host_alias=$ac_optarg ;;
1121
1122   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123     ac_prev=htmldir ;;
1124   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125   | --ht=*)
1126     htmldir=$ac_optarg ;;
1127
1128   -includedir | --includedir | --includedi | --included | --include \
1129   | --includ | --inclu | --incl | --inc)
1130     ac_prev=includedir ;;
1131   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132   | --includ=* | --inclu=* | --incl=* | --inc=*)
1133     includedir=$ac_optarg ;;
1134
1135   -infodir | --infodir | --infodi | --infod | --info | --inf)
1136     ac_prev=infodir ;;
1137   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138     infodir=$ac_optarg ;;
1139
1140   -libdir | --libdir | --libdi | --libd)
1141     ac_prev=libdir ;;
1142   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143     libdir=$ac_optarg ;;
1144
1145   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146   | --libexe | --libex | --libe)
1147     ac_prev=libexecdir ;;
1148   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149   | --libexe=* | --libex=* | --libe=*)
1150     libexecdir=$ac_optarg ;;
1151
1152   -localedir | --localedir | --localedi | --localed | --locale)
1153     ac_prev=localedir ;;
1154   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155     localedir=$ac_optarg ;;
1156
1157   -localstatedir | --localstatedir | --localstatedi | --localstated \
1158   | --localstate | --localstat | --localsta | --localst | --locals)
1159     ac_prev=localstatedir ;;
1160   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162     localstatedir=$ac_optarg ;;
1163
1164   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165     ac_prev=mandir ;;
1166   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167     mandir=$ac_optarg ;;
1168
1169   -nfp | --nfp | --nf)
1170     # Obsolete; use --without-fp.
1171     with_fp=no ;;
1172
1173   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174   | --no-cr | --no-c | -n)
1175     no_create=yes ;;
1176
1177   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179     no_recursion=yes ;;
1180
1181   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183   | --oldin | --oldi | --old | --ol | --o)
1184     ac_prev=oldincludedir ;;
1185   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188     oldincludedir=$ac_optarg ;;
1189
1190   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191     ac_prev=prefix ;;
1192   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193     prefix=$ac_optarg ;;
1194
1195   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196   | --program-pre | --program-pr | --program-p)
1197     ac_prev=program_prefix ;;
1198   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200     program_prefix=$ac_optarg ;;
1201
1202   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203   | --program-suf | --program-su | --program-s)
1204     ac_prev=program_suffix ;;
1205   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207     program_suffix=$ac_optarg ;;
1208
1209   -program-transform-name | --program-transform-name \
1210   | --program-transform-nam | --program-transform-na \
1211   | --program-transform-n | --program-transform- \
1212   | --program-transform | --program-transfor \
1213   | --program-transfo | --program-transf \
1214   | --program-trans | --program-tran \
1215   | --progr-tra | --program-tr | --program-t)
1216     ac_prev=program_transform_name ;;
1217   -program-transform-name=* | --program-transform-name=* \
1218   | --program-transform-nam=* | --program-transform-na=* \
1219   | --program-transform-n=* | --program-transform-=* \
1220   | --program-transform=* | --program-transfor=* \
1221   | --program-transfo=* | --program-transf=* \
1222   | --program-trans=* | --program-tran=* \
1223   | --progr-tra=* | --program-tr=* | --program-t=*)
1224     program_transform_name=$ac_optarg ;;
1225
1226   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227     ac_prev=pdfdir ;;
1228   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229     pdfdir=$ac_optarg ;;
1230
1231   -psdir | --psdir | --psdi | --psd | --ps)
1232     ac_prev=psdir ;;
1233   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234     psdir=$ac_optarg ;;
1235
1236   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237   | -silent | --silent | --silen | --sile | --sil)
1238     silent=yes ;;
1239
1240   -runstatedir | --runstatedir | --runstatedi | --runstated \
1241   | --runstate | --runstat | --runsta | --runst | --runs \
1242   | --run | --ru | --r)
1243     ac_prev=runstatedir ;;
1244   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1245   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1246   | --run=* | --ru=* | --r=*)
1247     runstatedir=$ac_optarg ;;
1248
1249   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250     ac_prev=sbindir ;;
1251   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252   | --sbi=* | --sb=*)
1253     sbindir=$ac_optarg ;;
1254
1255   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257   | --sharedst | --shareds | --shared | --share | --shar \
1258   | --sha | --sh)
1259     ac_prev=sharedstatedir ;;
1260   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263   | --sha=* | --sh=*)
1264     sharedstatedir=$ac_optarg ;;
1265
1266   -site | --site | --sit)
1267     ac_prev=site ;;
1268   -site=* | --site=* | --sit=*)
1269     site=$ac_optarg ;;
1270
1271   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272     ac_prev=srcdir ;;
1273   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274     srcdir=$ac_optarg ;;
1275
1276   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277   | --syscon | --sysco | --sysc | --sys | --sy)
1278     ac_prev=sysconfdir ;;
1279   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281     sysconfdir=$ac_optarg ;;
1282
1283   -target | --target | --targe | --targ | --tar | --ta | --t)
1284     ac_prev=target_alias ;;
1285   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286     target_alias=$ac_optarg ;;
1287
1288   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289     verbose=yes ;;
1290
1291   -version | --version | --versio | --versi | --vers | -V)
1292     ac_init_version=: ;;
1293
1294   -with-* | --with-*)
1295     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296     # Reject names that are not valid shell variable names.
1297     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298       as_fn_error $? "invalid package name: \`$ac_useropt'"
1299     ac_useropt_orig=$ac_useropt
1300     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1301     case $ac_user_opts in
1302       *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306          ac_unrecognized_sep=', ';;
1307     esac
1308     eval with_$ac_useropt=\$ac_optarg ;;
1309
1310   -without-* | --without-*)
1311     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312     # Reject names that are not valid shell variable names.
1313     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314       as_fn_error $? "invalid package name: \`$ac_useropt'"
1315     ac_useropt_orig=$ac_useropt
1316     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1317     case $ac_user_opts in
1318       *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322          ac_unrecognized_sep=', ';;
1323     esac
1324     eval with_$ac_useropt=no ;;
1325
1326   --x)
1327     # Obsolete; use --with-x.
1328     with_x=yes ;;
1329
1330   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331   | --x-incl | --x-inc | --x-in | --x-i)
1332     ac_prev=x_includes ;;
1333   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335     x_includes=$ac_optarg ;;
1336
1337   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339     ac_prev=x_libraries ;;
1340   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342     x_libraries=$ac_optarg ;;
1343
1344   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information"
1346     ;;
1347
1348   *=*)
1349     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350     # Reject names that are not valid shell variable names.
1351     case $ac_envvar in #(
1352       '' | [0-9]* | *[!_$as_cr_alnum]* )
1353       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1354     esac
1355     eval $ac_envvar=\$ac_optarg
1356     export $ac_envvar ;;
1357
1358   *)
1359     # FIXME: should be removed in autoconf 3.0.
1360     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1361     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1363     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1364     ;;
1365
1366   esac
1367 done
1368
1369 if test -n "$ac_prev"; then
1370   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371   as_fn_error $? "missing argument to $ac_option"
1372 fi
1373
1374 if test -n "$ac_unrecognized_opts"; then
1375   case $enable_option_checking in
1376     no) ;;
1377     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1378     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379   esac
1380 fi
1381
1382 # Check all directory arguments for consistency.
1383 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384                 datadir sysconfdir sharedstatedir localstatedir includedir \
1385                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386                 libdir localedir mandir runstatedir
1387 do
1388   eval ac_val=\$$ac_var
1389   # Remove trailing slashes.
1390   case $ac_val in
1391     */ )
1392       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393       eval $ac_var=\$ac_val;;
1394   esac
1395   # Be sure to have absolute directory names.
1396   case $ac_val in
1397     [\\/$]* | ?:[\\/]* )  continue;;
1398     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399   esac
1400   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1401 done
1402
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1406 build=$build_alias
1407 host=$host_alias
1408 target=$target_alias
1409
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412   if test "x$build_alias" = x; then
1413     cross_compiling=maybe
1414   elif test "x$build_alias" != "x$host_alias"; then
1415     cross_compiling=yes
1416   fi
1417 fi
1418
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422 test "$silent" = yes && exec 6>/dev/null
1423
1424
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428   as_fn_error $? "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430   as_fn_error $? "pwd does not report name of working directory"
1431
1432
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435   ac_srcdir_defaulted=yes
1436   # Try the directory containing this script, then the parent directory.
1437   ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439          X"$as_myself" : 'X\(//\)[^/]' \| \
1440          X"$as_myself" : 'X\(//\)$' \| \
1441          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 printf "%s\n" X"$as_myself" |
1443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444             s//\1/
1445             q
1446           }
1447           /^X\(\/\/\)[^/].*/{
1448             s//\1/
1449             q
1450           }
1451           /^X\(\/\/\)$/{
1452             s//\1/
1453             q
1454           }
1455           /^X\(\/\).*/{
1456             s//\1/
1457             q
1458           }
1459           s/.*/./; q'`
1460   srcdir=$ac_confdir
1461   if test ! -r "$srcdir/$ac_unique_file"; then
1462     srcdir=..
1463   fi
1464 else
1465   ac_srcdir_defaulted=no
1466 fi
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1470 fi
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1474         pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477   srcdir=.
1478 fi
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487   eval ac_env_${ac_var}_value=\$${ac_var}
1488   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1491
1492 #
1493 # Report the --help message.
1494 #
1495 if test "$ac_init_help" = "long"; then
1496   # Omit some internal or obsolete options to make the list less imposing.
1497   # This message is too long to be a string in the A/UX 3.1 sh.
1498   cat <<_ACEOF
1499 \`configure' configures fontconfig 2.14.2 to adapt to many kinds of systems.
1500
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE.  See below for descriptions of some of the useful variables.
1505
1506 Defaults for the options are specified in brackets.
1507
1508 Configuration:
1509   -h, --help              display this help and exit
1510       --help=short        display options specific to this package
1511       --help=recursive    display the short help of all the included packages
1512   -V, --version           display version information and exit
1513   -q, --quiet, --silent   do not print \`checking ...' messages
1514       --cache-file=FILE   cache test results in FILE [disabled]
1515   -C, --config-cache      alias for \`--cache-file=config.cache'
1516   -n, --no-create         do not create output files
1517       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1518
1519 Installation directories:
1520   --prefix=PREFIX         install architecture-independent files in PREFIX
1521                           [$ac_default_prefix]
1522   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1523                           [PREFIX]
1524
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1529
1530 For better control, use the options below.
1531
1532 Fine tuning of the installation directories:
1533   --bindir=DIR            user executables [EPREFIX/bin]
1534   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1535   --libexecdir=DIR        program executables [EPREFIX/libexec]
1536   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1537   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1538   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1539   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1540   --libdir=DIR            object code libraries [EPREFIX/lib]
1541   --includedir=DIR        C header files [PREFIX/include]
1542   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1543   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1544   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1545   --infodir=DIR           info documentation [DATAROOTDIR/info]
1546   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1547   --mandir=DIR            man documentation [DATAROOTDIR/man]
1548   --docdir=DIR            documentation root [DATAROOTDIR/doc/fontconfig]
1549   --htmldir=DIR           html documentation [DOCDIR]
1550   --dvidir=DIR            dvi documentation [DOCDIR]
1551   --pdfdir=DIR            pdf documentation [DOCDIR]
1552   --psdir=DIR             ps documentation [DOCDIR]
1553 _ACEOF
1554
1555   cat <<\_ACEOF
1556
1557 Program names:
1558   --program-prefix=PREFIX            prepend PREFIX to installed program names
1559   --program-suffix=SUFFIX            append SUFFIX to installed program names
1560   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1561
1562 System types:
1563   --build=BUILD     configure for building on BUILD [guessed]
1564   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1565 _ACEOF
1566 fi
1567
1568 if test -n "$ac_init_help"; then
1569   case $ac_init_help in
1570      short | recursive ) echo "Configuration of fontconfig 2.14.2:";;
1571    esac
1572   cat <<\_ACEOF
1573
1574 Optional Features:
1575   --disable-option-checking  ignore unrecognized --enable/--with options
1576   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1577   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1578   --enable-silent-rules   less verbose build output (undo: "make V=1")
1579   --disable-silent-rules  verbose build output (undo: "make V=0")
1580   --enable-dependency-tracking
1581                           do not reject slow dependency extractors
1582   --disable-dependency-tracking
1583                           speeds up one-time build
1584   --disable-largefile     omit support for large files
1585   --enable-static[=PKGS]  build static libraries [default=no]
1586   --enable-shared[=PKGS]  build shared libraries [default=yes]
1587   --enable-fast-install[=PKGS]
1588                           optimize for fast installation [default=yes]
1589   --disable-libtool-lock  avoid locking (might break parallel builds)
1590   --disable-nls           do not use Native Language Support
1591   --disable-rpath         do not hardcode runtime library paths
1592   --enable-iconv          Use iconv to support non-Unicode SFNT name
1593   --enable-libxml2        Use libxml2 instead of Expat
1594   --disable-docbook       Disable building docs with docbook2html (default:
1595                           no)
1596   --disable-docs          Don't build and install documentation
1597   --disable-cache-build   Don't run fc-cache during the build
1598
1599 Optional Packages:
1600   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1601   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1602   --with-pkgconfigdir     pkg-config installation directory
1603                           ['${libdir}/pkgconfig']
1604   --with-python-sys-prefix
1605                           use Python's sys.prefix and sys.exec_prefix values
1606   --with-python_prefix    override the default PYTHON_PREFIX
1607   --with-python_exec_prefix
1608                           override the default PYTHON_EXEC_PREFIX
1609   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1610                           both]
1611   --with-aix-soname=aix|svr4|both
1612                           shared library versioning (aka "SONAME") variant to
1613                           provide on AIX, [default=aix].
1614   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1615   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1616                           compiler's sysroot if not specified).
1617   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1618   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1619   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1620   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1621   --without-libintl-prefix     don't search for libintl in includedir and libdir
1622   --with-arch=ARCH        Force architecture to ARCH
1623   --with-libiconv=DIR     Use libiconv in DIR
1624   --with-libiconv-includes=DIR
1625                           Use libiconv includes in DIR
1626   --with-libiconv-lib=DIR Use libiconv library in DIR
1627   --with-expat=DIR        Use Expat in DIR
1628   --with-expat-includes=DIR
1629                           Use Expat includes in DIR
1630   --with-expat-lib=DIR
1631   --with-default-sub-pixel-rendering=NAME
1632                           Enable your preferred sub-pixel rendering
1633                           configuration (none/bgr/rgb/vbgr/vrgb)
1634                           [default=none]
1635   --with-default-hinting=NAME
1636                           Enable your preferred hinting configuration
1637                           (none/slight/medium/full) [default=slight]
1638   --with-default-fonts=DIR1,DIR2,...
1639                           Use fonts from DIR1,DIR2,... when config is busted
1640   --with-add-fonts=DIR1,DIR2,...
1641                           Find additional fonts in DIR1,DIR2,...
1642   --with-cache-dir=DIR    Use DIR to store cache files
1643                           [default=LOCALSTATEDIR/cache/fontconfig]
1644   --with-templatedir=DIR  Use DIR to store the configuration template files
1645                           [default=DATADIR/fontconfig/conf.avail]
1646   --with-baseconfigdir=DIR
1647                           Use DIR to store the base configuration files
1648                           [default=SYSCONFDIR/fonts]
1649   --with-configdir=DIR    Use DIR to store active configuration files
1650                           [default=BASECONFIGDIR/conf.d]
1651   --with-xmldir=DIR       Use DIR to store XML schema files
1652                           [default=DATADIR/xml/fontconfig]
1653
1654 Some influential environment variables:
1655   CC          C compiler command
1656   CFLAGS      C compiler flags
1657   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1658               nonstandard directory <lib dir>
1659   LIBS        libraries to pass to the linker, e.g. -l<library>
1660   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661               you have headers in a nonstandard directory <include dir>
1662   PKG_CONFIG  path to pkg-config utility
1663   PKG_CONFIG_PATH
1664               directories to add to pkg-config's search path
1665   PKG_CONFIG_LIBDIR
1666               path overriding pkg-config's built-in search path
1667   PYTHON      the Python interpreter
1668   LT_SYS_LIBRARY_PATH
1669               User-defined run-time library search path.
1670   CPP         C preprocessor
1671   CC_FOR_BUILD
1672               build system C compiler
1673   FREETYPE_CFLAGS
1674               C compiler flags for FREETYPE, overriding pkg-config
1675   FREETYPE_LIBS
1676               linker flags for FREETYPE, overriding pkg-config
1677   EXPAT_CFLAGS
1678               C compiler flags for EXPAT, overriding pkg-config
1679   EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1680   LIBXML2_CFLAGS
1681               C compiler flags for LIBXML2, overriding pkg-config
1682   LIBXML2_LIBS
1683               linker flags for LIBXML2, overriding pkg-config
1684   JSONC_CFLAGS
1685               C compiler flags for JSONC, overriding pkg-config
1686   JSONC_LIBS  linker flags for JSONC, overriding pkg-config
1687
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1690
1691 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
1692 _ACEOF
1693 ac_status=$?
1694 fi
1695
1696 if test "$ac_init_help" = "recursive"; then
1697   # If there are subdirs, report their specific --help.
1698   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699     test -d "$ac_dir" ||
1700       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701       continue
1702     ac_builddir=.
1703
1704 case "$ac_dir" in
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *)
1707   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1708   # A ".." for each directory in $ac_dir_suffix.
1709   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710   case $ac_top_builddir_sub in
1711   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713   esac ;;
1714 esac
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1719
1720 case $srcdir in
1721   .)  # We are building in place.
1722     ac_srcdir=.
1723     ac_top_srcdir=$ac_top_builddir_sub
1724     ac_abs_top_srcdir=$ac_pwd ;;
1725   [\\/]* | ?:[\\/]* )  # Absolute name.
1726     ac_srcdir=$srcdir$ac_dir_suffix;
1727     ac_top_srcdir=$srcdir
1728     ac_abs_top_srcdir=$srcdir ;;
1729   *) # Relative name.
1730     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731     ac_top_srcdir=$ac_top_build_prefix$srcdir
1732     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733 esac
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736     cd "$ac_dir" || { ac_status=$?; continue; }
1737     # Check for configure.gnu first; this name is used for a wrapper for
1738     # Metaconfig's "Configure" on case-insensitive file systems.
1739     if test -f "$ac_srcdir/configure.gnu"; then
1740       echo &&
1741       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742     elif test -f "$ac_srcdir/configure"; then
1743       echo &&
1744       $SHELL "$ac_srcdir/configure" --help=recursive
1745     else
1746       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747     fi || ac_status=$?
1748     cd "$ac_pwd" || { ac_status=$?; break; }
1749   done
1750 fi
1751
1752 test -n "$ac_init_help" && exit $ac_status
1753 if $ac_init_version; then
1754   cat <<\_ACEOF
1755 fontconfig configure 2.14.2
1756 generated by GNU Autoconf 2.71
1757
1758 Copyright (C) 2021 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1761 _ACEOF
1762   exit
1763 fi
1764
1765 ## ------------------------ ##
1766 ## Autoconf initialization. ##
1767 ## ------------------------ ##
1768
1769 # ac_fn_c_try_compile LINENO
1770 # --------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_compile ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   rm -f conftest.$ac_objext conftest.beam
1776   if { { ac_try="$ac_compile"
1777 case "(($ac_try" in
1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779   *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 printf "%s\n" "$ac_try_echo"; } >&5
1783   (eval "$ac_compile") 2>conftest.err
1784   ac_status=$?
1785   if test -s conftest.err; then
1786     grep -v '^ *+' conftest.err >conftest.er1
1787     cat conftest.er1 >&5
1788     mv -f conftest.er1 conftest.err
1789   fi
1790   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791   test $ac_status = 0; } && {
1792          test -z "$ac_c_werror_flag" ||
1793          test ! -s conftest.err
1794        } && test -s conftest.$ac_objext
1795 then :
1796   ac_retval=0
1797 else $as_nop
1798   printf "%s\n" "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801         ac_retval=1
1802 fi
1803   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804   as_fn_set_status $ac_retval
1805
1806 } # ac_fn_c_try_compile
1807
1808 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1809 # -------------------------------------------------------
1810 # Tests whether HEADER exists and can be compiled using the include files in
1811 # INCLUDES, setting the cache variable VAR accordingly.
1812 ac_fn_c_check_header_compile ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 printf %s "checking for $2... " >&6; }
1817 if eval test \${$3+y}
1818 then :
1819   printf %s "(cached) " >&6
1820 else $as_nop
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"
1827 then :
1828   eval "$3=yes"
1829 else $as_nop
1830   eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 printf "%s\n" "$ac_res" >&6; }
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_header_compile
1840
1841 # ac_fn_c_try_link LINENO
1842 # -----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_link ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1848   if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 printf "%s\n" "$ac_try_echo"; } >&5
1855   (eval "$ac_link") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } && {
1864          test -z "$ac_c_werror_flag" ||
1865          test ! -s conftest.err
1866        } && test -s conftest$ac_exeext && {
1867          test "$cross_compiling" = yes ||
1868          test -x conftest$ac_exeext
1869        }
1870 then :
1871   ac_retval=0
1872 else $as_nop
1873   printf "%s\n" "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876         ac_retval=1
1877 fi
1878   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880   # interfere with the next link command; also delete a directory that is
1881   # left behind by Apple's compiler.  We do this before executing the actions.
1882   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884   as_fn_set_status $ac_retval
1885
1886 } # ac_fn_c_try_link
1887
1888 # ac_fn_c_check_func LINENO FUNC VAR
1889 # ----------------------------------
1890 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1891 ac_fn_c_check_func ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 printf %s "checking for $2... " >&6; }
1896 if eval test \${$3+y}
1897 then :
1898   printf %s "(cached) " >&6
1899 else $as_nop
1900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1904 #define $2 innocuous_$2
1905
1906 /* System header to define __stub macros and hopefully few prototypes,
1907    which can conflict with char $2 (); below.  */
1908
1909 #include <limits.h>
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913    Use char because int might match the return type of a GCC
1914    builtin and then its argument prototype would still apply.  */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920     to always fail with ENOSYS.  Some functions are actually named
1921     something starting with __ and the normal name is an alias.  */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main (void)
1928 {
1929 return $2 ();
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"
1935 then :
1936   eval "$3=yes"
1937 else $as_nop
1938   eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1941     conftest$ac_exeext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 printf "%s\n" "$ac_res" >&6; }
1946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_func
1949
1950 # ac_fn_c_try_cpp LINENO
1951 # ----------------------
1952 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_c_try_cpp ()
1954 {
1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956   if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 case "(($ac_try" in
1958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959   *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 printf "%s\n" "$ac_try_echo"; } >&5
1963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964   ac_status=$?
1965   if test -s conftest.err; then
1966     grep -v '^ *+' conftest.err >conftest.er1
1967     cat conftest.er1 >&5
1968     mv -f conftest.er1 conftest.err
1969   fi
1970   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971   test $ac_status = 0; } > conftest.i && {
1972          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1973          test ! -s conftest.err
1974        }
1975 then :
1976   ac_retval=0
1977 else $as_nop
1978   printf "%s\n" "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981     ac_retval=1
1982 fi
1983   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984   as_fn_set_status $ac_retval
1985
1986 } # ac_fn_c_try_cpp
1987
1988 # ac_fn_c_try_run LINENO
1989 # ----------------------
1990 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1991 # executables *can* be run.
1992 ac_fn_c_try_run ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   if { { ac_try="$ac_link"
1996 case "(($ac_try" in
1997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998   *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 printf "%s\n" "$ac_try_echo"; } >&5
2002   (eval "$ac_link") 2>&5
2003   ac_status=$?
2004   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2006   { { case "(($ac_try" in
2007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008   *) ac_try_echo=$ac_try;;
2009 esac
2010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011 printf "%s\n" "$ac_try_echo"; } >&5
2012   (eval "$ac_try") 2>&5
2013   ac_status=$?
2014   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015   test $ac_status = 0; }; }
2016 then :
2017   ac_retval=0
2018 else $as_nop
2019   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2020        printf "%s\n" "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023        ac_retval=$ac_status
2024 fi
2025   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027   as_fn_set_status $ac_retval
2028
2029 } # ac_fn_c_try_run
2030
2031 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2032 # ------------------------------------------------------------------
2033 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2034 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2035 ac_fn_check_decl ()
2036 {
2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038   as_decl_name=`echo $2|sed 's/ *(.*//'`
2039   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2040 printf %s "checking whether $as_decl_name is declared... " >&6; }
2041 if eval test \${$3+y}
2042 then :
2043   printf %s "(cached) " >&6
2044 else $as_nop
2045   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2046   eval ac_save_FLAGS=\$$6
2047   as_fn_append $6 " $5"
2048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h.  */
2050 $4
2051 int
2052 main (void)
2053 {
2054 #ifndef $as_decl_name
2055 #ifdef __cplusplus
2056   (void) $as_decl_use;
2057 #else
2058   (void) $as_decl_name;
2059 #endif
2060 #endif
2061
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"
2067 then :
2068   eval "$3=yes"
2069 else $as_nop
2070   eval "$3=no"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2073   eval $6=\$ac_save_FLAGS
2074
2075 fi
2076 eval ac_res=\$$3
2077                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 printf "%s\n" "$ac_res" >&6; }
2079   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_check_decl
2082
2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084 # -------------------------------------------
2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
2086 # variable VAR accordingly.
2087 ac_fn_c_check_type ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 printf %s "checking for $2... " >&6; }
2092 if eval test \${$3+y}
2093 then :
2094   printf %s "(cached) " >&6
2095 else $as_nop
2096   eval "$3=no"
2097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h.  */
2099 $4
2100 int
2101 main (void)
2102 {
2103 if (sizeof ($2))
2104          return 0;
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"
2110 then :
2111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h.  */
2113 $4
2114 int
2115 main (void)
2116 {
2117 if (sizeof (($2)))
2118             return 0;
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"
2124 then :
2125
2126 else $as_nop
2127   eval "$3=yes"
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2132 fi
2133 eval ac_res=\$$3
2134                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 printf "%s\n" "$ac_res" >&6; }
2136   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138 } # ac_fn_c_check_type
2139
2140 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2141 # --------------------------------------------
2142 # Tries to find the compile-time value of EXPR in a program that includes
2143 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2144 # computed
2145 ac_fn_c_compute_int ()
2146 {
2147   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148   if test "$cross_compiling" = yes; then
2149     # Depending upon the size, compute the lo and hi bounds.
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 int
2154 main (void)
2155 {
2156 static int test_array [1 - 2 * !(($2) >= 0)];
2157 test_array [0] = 0;
2158 return test_array [0];
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"
2165 then :
2166   ac_lo=0 ac_mid=0
2167   while :; do
2168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h.  */
2170 $4
2171 int
2172 main (void)
2173 {
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0;
2176 return test_array [0];
2177
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"
2183 then :
2184   ac_hi=$ac_mid; break
2185 else $as_nop
2186   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2187                         if test $ac_lo -le $ac_mid; then
2188                           ac_lo= ac_hi=
2189                           break
2190                         fi
2191                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2194   done
2195 else $as_nop
2196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 int
2200 main (void)
2201 {
2202 static int test_array [1 - 2 * !(($2) < 0)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"
2211 then :
2212   ac_hi=-1 ac_mid=-1
2213   while :; do
2214     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h.  */
2216 $4
2217 int
2218 main (void)
2219 {
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221 test_array [0] = 0;
2222 return test_array [0];
2223
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"
2229 then :
2230   ac_lo=$ac_mid; break
2231 else $as_nop
2232   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2233                         if test $ac_mid -le $ac_hi; then
2234                           ac_lo= ac_hi=
2235                           break
2236                         fi
2237                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2240   done
2241 else $as_nop
2242   ac_lo= ac_hi=
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2247 # Binary search between lo and hi bounds.
2248 while test "x$ac_lo" != "x$ac_hi"; do
2249   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h.  */
2252 $4
2253 int
2254 main (void)
2255 {
2256 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2257 test_array [0] = 0;
2258 return test_array [0];
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"
2265 then :
2266   ac_hi=$ac_mid
2267 else $as_nop
2268   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2271 done
2272 case $ac_lo in #((
2273 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274 '') ac_retval=1 ;;
2275 esac
2276   else
2277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h.  */
2279 $4
2280 static long int longval (void) { return $2; }
2281 static unsigned long int ulongval (void) { return $2; }
2282 #include <stdio.h>
2283 #include <stdlib.h>
2284 int
2285 main (void)
2286 {
2287
2288   FILE *f = fopen ("conftest.val", "w");
2289   if (! f)
2290     return 1;
2291   if (($2) < 0)
2292     {
2293       long int i = longval ();
2294       if (i != ($2))
2295         return 1;
2296       fprintf (f, "%ld", i);
2297     }
2298   else
2299     {
2300       unsigned long int i = ulongval ();
2301       if (i != ($2))
2302         return 1;
2303       fprintf (f, "%lu", i);
2304     }
2305   /* Do not output a trailing newline, as this causes \r\n confusion
2306      on some platforms.  */
2307   return ferror (f) || fclose (f) != 0;
2308
2309   ;
2310   return 0;
2311 }
2312 _ACEOF
2313 if ac_fn_c_try_run "$LINENO"
2314 then :
2315   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2316 else $as_nop
2317   ac_retval=1
2318 fi
2319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2320   conftest.$ac_objext conftest.beam conftest.$ac_ext
2321 rm -f conftest.val
2322
2323   fi
2324   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2325   as_fn_set_status $ac_retval
2326
2327 } # ac_fn_c_compute_int
2328
2329 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2330 # ----------------------------------------------------
2331 # Tries to find if the field MEMBER exists in type AGGR, after including
2332 # INCLUDES, setting cache variable VAR accordingly.
2333 ac_fn_c_check_member ()
2334 {
2335   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2337 printf %s "checking for $2.$3... " >&6; }
2338 if eval test \${$4+y}
2339 then :
2340   printf %s "(cached) " >&6
2341 else $as_nop
2342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h.  */
2344 $5
2345 int
2346 main (void)
2347 {
2348 static $2 ac_aggr;
2349 if (ac_aggr.$3)
2350 return 0;
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 if ac_fn_c_try_compile "$LINENO"
2356 then :
2357   eval "$4=yes"
2358 else $as_nop
2359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h.  */
2361 $5
2362 int
2363 main (void)
2364 {
2365 static $2 ac_aggr;
2366 if (sizeof ac_aggr.$3)
2367 return 0;
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"
2373 then :
2374   eval "$4=yes"
2375 else $as_nop
2376   eval "$4=no"
2377 fi
2378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2379 fi
2380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2381 fi
2382 eval ac_res=\$$4
2383                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 printf "%s\n" "$ac_res" >&6; }
2385   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386
2387 } # ac_fn_c_check_member
2388 ac_configure_args_raw=
2389 for ac_arg
2390 do
2391   case $ac_arg in
2392   *\'*)
2393     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2394   esac
2395   as_fn_append ac_configure_args_raw " '$ac_arg'"
2396 done
2397
2398 case $ac_configure_args_raw in
2399   *$as_nl*)
2400     ac_safe_unquote= ;;
2401   *)
2402     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2403     ac_unsafe_a="$ac_unsafe_z#~"
2404     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2405     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2406 esac
2407
2408 cat >config.log <<_ACEOF
2409 This file contains any messages produced by compilers while
2410 running configure, to aid debugging if configure makes a mistake.
2411
2412 It was created by fontconfig $as_me 2.14.2, which was
2413 generated by GNU Autoconf 2.71.  Invocation command line was
2414
2415   $ $0$ac_configure_args_raw
2416
2417 _ACEOF
2418 exec 5>>config.log
2419 {
2420 cat <<_ASUNAME
2421 ## --------- ##
2422 ## Platform. ##
2423 ## --------- ##
2424
2425 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2430
2431 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2433
2434 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2435 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2436 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2438 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2439 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2440 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2441
2442 _ASUNAME
2443
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   case $as_dir in #(((
2449     '') as_dir=./ ;;
2450     */) ;;
2451     *) as_dir=$as_dir/ ;;
2452   esac
2453     printf "%s\n" "PATH: $as_dir"
2454   done
2455 IFS=$as_save_IFS
2456
2457 } >&5
2458
2459 cat >&5 <<_ACEOF
2460
2461
2462 ## ----------- ##
2463 ## Core tests. ##
2464 ## ----------- ##
2465
2466 _ACEOF
2467
2468
2469 # Keep a trace of the command line.
2470 # Strip out --no-create and --no-recursion so they do not pile up.
2471 # Strip out --silent because we don't want to record it for future runs.
2472 # Also quote any args containing shell meta-characters.
2473 # Make two passes to allow for proper duplicate-argument suppression.
2474 ac_configure_args=
2475 ac_configure_args0=
2476 ac_configure_args1=
2477 ac_must_keep_next=false
2478 for ac_pass in 1 2
2479 do
2480   for ac_arg
2481   do
2482     case $ac_arg in
2483     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2484     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2485     | -silent | --silent | --silen | --sile | --sil)
2486       continue ;;
2487     *\'*)
2488       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2489     esac
2490     case $ac_pass in
2491     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2492     2)
2493       as_fn_append ac_configure_args1 " '$ac_arg'"
2494       if test $ac_must_keep_next = true; then
2495         ac_must_keep_next=false # Got value, back to normal.
2496       else
2497         case $ac_arg in
2498           *=* | --config-cache | -C | -disable-* | --disable-* \
2499           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2500           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2501           | -with-* | --with-* | -without-* | --without-* | --x)
2502             case "$ac_configure_args0 " in
2503               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2504             esac
2505             ;;
2506           -* ) ac_must_keep_next=true ;;
2507         esac
2508       fi
2509       as_fn_append ac_configure_args " '$ac_arg'"
2510       ;;
2511     esac
2512   done
2513 done
2514 { ac_configure_args0=; unset ac_configure_args0;}
2515 { ac_configure_args1=; unset ac_configure_args1;}
2516
2517 # When interrupted or exit'd, cleanup temporary files, and complete
2518 # config.log.  We remove comments because anyway the quotes in there
2519 # would cause problems or look ugly.
2520 # WARNING: Use '\'' to represent an apostrophe within the trap.
2521 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2522 trap 'exit_status=$?
2523   # Sanitize IFS.
2524   IFS=" ""      $as_nl"
2525   # Save into config.log some information that might help in debugging.
2526   {
2527     echo
2528
2529     printf "%s\n" "## ---------------- ##
2530 ## Cache variables. ##
2531 ## ---------------- ##"
2532     echo
2533     # The following way of writing the cache mishandles newlines in values,
2534 (
2535   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2536     eval ac_val=\$$ac_var
2537     case $ac_val in #(
2538     *${as_nl}*)
2539       case $ac_var in #(
2540       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2541 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2542       esac
2543       case $ac_var in #(
2544       _ | IFS | as_nl) ;; #(
2545       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2546       *) { eval $ac_var=; unset $ac_var;} ;;
2547       esac ;;
2548     esac
2549   done
2550   (set) 2>&1 |
2551     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2552     *${as_nl}ac_space=\ *)
2553       sed -n \
2554         "s/'\''/'\''\\\\'\'''\''/g;
2555           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2556       ;; #(
2557     *)
2558       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2559       ;;
2560     esac |
2561     sort
2562 )
2563     echo
2564
2565     printf "%s\n" "## ----------------- ##
2566 ## Output variables. ##
2567 ## ----------------- ##"
2568     echo
2569     for ac_var in $ac_subst_vars
2570     do
2571       eval ac_val=\$$ac_var
2572       case $ac_val in
2573       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574       esac
2575       printf "%s\n" "$ac_var='\''$ac_val'\''"
2576     done | sort
2577     echo
2578
2579     if test -n "$ac_subst_files"; then
2580       printf "%s\n" "## ------------------- ##
2581 ## File substitutions. ##
2582 ## ------------------- ##"
2583       echo
2584       for ac_var in $ac_subst_files
2585       do
2586         eval ac_val=\$$ac_var
2587         case $ac_val in
2588         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2589         esac
2590         printf "%s\n" "$ac_var='\''$ac_val'\''"
2591       done | sort
2592       echo
2593     fi
2594
2595     if test -s confdefs.h; then
2596       printf "%s\n" "## ----------- ##
2597 ## confdefs.h. ##
2598 ## ----------- ##"
2599       echo
2600       cat confdefs.h
2601       echo
2602     fi
2603     test "$ac_signal" != 0 &&
2604       printf "%s\n" "$as_me: caught signal $ac_signal"
2605     printf "%s\n" "$as_me: exit $exit_status"
2606   } >&5
2607   rm -f core *.core core.conftest.* &&
2608     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2609     exit $exit_status
2610 ' 0
2611 for ac_signal in 1 2 13 15; do
2612   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2613 done
2614 ac_signal=0
2615
2616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2617 rm -f -r conftest* confdefs.h
2618
2619 printf "%s\n" "/* confdefs.h */" > confdefs.h
2620
2621 # Predefined preprocessor variables.
2622
2623 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2624
2625 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2626
2627 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2628
2629 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2630
2631 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2632
2633 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2634
2635
2636 # Let the site file select an alternate cache file if it wants to.
2637 # Prefer an explicitly selected file to automatically selected ones.
2638 if test -n "$CONFIG_SITE"; then
2639   ac_site_files="$CONFIG_SITE"
2640 elif test "x$prefix" != xNONE; then
2641   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2642 else
2643   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2644 fi
2645
2646 for ac_site_file in $ac_site_files
2647 do
2648   case $ac_site_file in #(
2649   */*) :
2650      ;; #(
2651   *) :
2652     ac_site_file=./$ac_site_file ;;
2653 esac
2654   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2655     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2656 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2657     sed 's/^/| /' "$ac_site_file" >&5
2658     . "$ac_site_file" \
2659       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2661 as_fn_error $? "failed to load site script $ac_site_file
2662 See \`config.log' for more details" "$LINENO" 5; }
2663   fi
2664 done
2665
2666 if test -r "$cache_file"; then
2667   # Some versions of bash will fail to source /dev/null (special files
2668   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2669   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2670     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2671 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2672     case $cache_file in
2673       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2674       *)                      . "./$cache_file";;
2675     esac
2676   fi
2677 else
2678   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2679 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2680   >$cache_file
2681 fi
2682
2683 # Test code for whether the C compiler supports C89 (global declarations)
2684 ac_c_conftest_c89_globals='
2685 /* Does the compiler advertise C89 conformance?
2686    Do not test the value of __STDC__, because some compilers set it to 0
2687    while being otherwise adequately conformant. */
2688 #if !defined __STDC__
2689 # error "Compiler does not advertise C89 conformance"
2690 #endif
2691
2692 #include <stddef.h>
2693 #include <stdarg.h>
2694 struct stat;
2695 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2696 struct buf { int x; };
2697 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2698 static char *e (p, i)
2699      char **p;
2700      int i;
2701 {
2702   return p[i];
2703 }
2704 static char *f (char * (*g) (char **, int), char **p, ...)
2705 {
2706   char *s;
2707   va_list v;
2708   va_start (v,p);
2709   s = g (p, va_arg (v,int));
2710   va_end (v);
2711   return s;
2712 }
2713
2714 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2715    function prototypes and stuff, but not \xHH hex character constants.
2716    These do not provoke an error unfortunately, instead are silently treated
2717    as an "x".  The following induces an error, until -std is added to get
2718    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2719    array size at least.  It is necessary to write \x00 == 0 to get something
2720    that is true only with -std.  */
2721 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2722
2723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2724    inside strings and character constants.  */
2725 #define FOO(x) '\''x'\''
2726 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2727
2728 int test (int i, double x);
2729 struct s1 {int (*f) (int a);};
2730 struct s2 {int (*f) (double a);};
2731 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2732                int, int);'
2733
2734 # Test code for whether the C compiler supports C89 (body of main).
2735 ac_c_conftest_c89_main='
2736 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2737 '
2738
2739 # Test code for whether the C compiler supports C99 (global declarations)
2740 ac_c_conftest_c99_globals='
2741 // Does the compiler advertise C99 conformance?
2742 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2743 # error "Compiler does not advertise C99 conformance"
2744 #endif
2745
2746 #include <stdbool.h>
2747 extern int puts (const char *);
2748 extern int printf (const char *, ...);
2749 extern int dprintf (int, const char *, ...);
2750 extern void *malloc (size_t);
2751
2752 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2753 // dprintf is used instead of fprintf to avoid needing to declare
2754 // FILE and stderr.
2755 #define debug(...) dprintf (2, __VA_ARGS__)
2756 #define showlist(...) puts (#__VA_ARGS__)
2757 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2758 static void
2759 test_varargs_macros (void)
2760 {
2761   int x = 1234;
2762   int y = 5678;
2763   debug ("Flag");
2764   debug ("X = %d\n", x);
2765   showlist (The first, second, and third items.);
2766   report (x>y, "x is %d but y is %d", x, y);
2767 }
2768
2769 // Check long long types.
2770 #define BIG64 18446744073709551615ull
2771 #define BIG32 4294967295ul
2772 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2773 #if !BIG_OK
2774   #error "your preprocessor is broken"
2775 #endif
2776 #if BIG_OK
2777 #else
2778   #error "your preprocessor is broken"
2779 #endif
2780 static long long int bignum = -9223372036854775807LL;
2781 static unsigned long long int ubignum = BIG64;
2782
2783 struct incomplete_array
2784 {
2785   int datasize;
2786   double data[];
2787 };
2788
2789 struct named_init {
2790   int number;
2791   const wchar_t *name;
2792   double average;
2793 };
2794
2795 typedef const char *ccp;
2796
2797 static inline int
2798 test_restrict (ccp restrict text)
2799 {
2800   // See if C++-style comments work.
2801   // Iterate through items via the restricted pointer.
2802   // Also check for declarations in for loops.
2803   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2804     continue;
2805   return 0;
2806 }
2807
2808 // Check varargs and va_copy.
2809 static bool
2810 test_varargs (const char *format, ...)
2811 {
2812   va_list args;
2813   va_start (args, format);
2814   va_list args_copy;
2815   va_copy (args_copy, args);
2816
2817   const char *str = "";
2818   int number = 0;
2819   float fnumber = 0;
2820
2821   while (*format)
2822     {
2823       switch (*format++)
2824         {
2825         case '\''s'\'': // string
2826           str = va_arg (args_copy, const char *);
2827           break;
2828         case '\''d'\'': // int
2829           number = va_arg (args_copy, int);
2830           break;
2831         case '\''f'\'': // float
2832           fnumber = va_arg (args_copy, double);
2833           break;
2834         default:
2835           break;
2836         }
2837     }
2838   va_end (args_copy);
2839   va_end (args);
2840
2841   return *str && number && fnumber;
2842 }
2843 '
2844
2845 # Test code for whether the C compiler supports C99 (body of main).
2846 ac_c_conftest_c99_main='
2847   // Check bool.
2848   _Bool success = false;
2849   success |= (argc != 0);
2850
2851   // Check restrict.
2852   if (test_restrict ("String literal") == 0)
2853     success = true;
2854   char *restrict newvar = "Another string";
2855
2856   // Check varargs.
2857   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2858   test_varargs_macros ();
2859
2860   // Check flexible array members.
2861   struct incomplete_array *ia =
2862     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2863   ia->datasize = 10;
2864   for (int i = 0; i < ia->datasize; ++i)
2865     ia->data[i] = i * 1.234;
2866
2867   // Check named initializers.
2868   struct named_init ni = {
2869     .number = 34,
2870     .name = L"Test wide string",
2871     .average = 543.34343,
2872   };
2873
2874   ni.number = 58;
2875
2876   int dynamic_array[ni.number];
2877   dynamic_array[0] = argv[0][0];
2878   dynamic_array[ni.number - 1] = 543;
2879
2880   // work around unused variable warnings
2881   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2882          || dynamic_array[ni.number - 1] != 543);
2883 '
2884
2885 # Test code for whether the C compiler supports C11 (global declarations)
2886 ac_c_conftest_c11_globals='
2887 // Does the compiler advertise C11 conformance?
2888 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2889 # error "Compiler does not advertise C11 conformance"
2890 #endif
2891
2892 // Check _Alignas.
2893 char _Alignas (double) aligned_as_double;
2894 char _Alignas (0) no_special_alignment;
2895 extern char aligned_as_int;
2896 char _Alignas (0) _Alignas (int) aligned_as_int;
2897
2898 // Check _Alignof.
2899 enum
2900 {
2901   int_alignment = _Alignof (int),
2902   int_array_alignment = _Alignof (int[100]),
2903   char_alignment = _Alignof (char)
2904 };
2905 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2906
2907 // Check _Noreturn.
2908 int _Noreturn does_not_return (void) { for (;;) continue; }
2909
2910 // Check _Static_assert.
2911 struct test_static_assert
2912 {
2913   int x;
2914   _Static_assert (sizeof (int) <= sizeof (long int),
2915                   "_Static_assert does not work in struct");
2916   long int y;
2917 };
2918
2919 // Check UTF-8 literals.
2920 #define u8 syntax error!
2921 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2922
2923 // Check duplicate typedefs.
2924 typedef long *long_ptr;
2925 typedef long int *long_ptr;
2926 typedef long_ptr long_ptr;
2927
2928 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2929 struct anonymous
2930 {
2931   union {
2932     struct { int i; int j; };
2933     struct { int k; long int l; } w;
2934   };
2935   int m;
2936 } v1;
2937 '
2938
2939 # Test code for whether the C compiler supports C11 (body of main).
2940 ac_c_conftest_c11_main='
2941   _Static_assert ((offsetof (struct anonymous, i)
2942                    == offsetof (struct anonymous, w.k)),
2943                   "Anonymous union alignment botch");
2944   v1.i = 2;
2945   v1.w.k = 5;
2946   ok |= v1.i != 5;
2947 '
2948
2949 # Test code for whether the C compiler supports C11 (complete).
2950 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2951 ${ac_c_conftest_c99_globals}
2952 ${ac_c_conftest_c11_globals}
2953
2954 int
2955 main (int argc, char **argv)
2956 {
2957   int ok = 0;
2958   ${ac_c_conftest_c89_main}
2959   ${ac_c_conftest_c99_main}
2960   ${ac_c_conftest_c11_main}
2961   return ok;
2962 }
2963 "
2964
2965 # Test code for whether the C compiler supports C99 (complete).
2966 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2967 ${ac_c_conftest_c99_globals}
2968
2969 int
2970 main (int argc, char **argv)
2971 {
2972   int ok = 0;
2973   ${ac_c_conftest_c89_main}
2974   ${ac_c_conftest_c99_main}
2975   return ok;
2976 }
2977 "
2978
2979 # Test code for whether the C compiler supports C89 (complete).
2980 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2981
2982 int
2983 main (int argc, char **argv)
2984 {
2985   int ok = 0;
2986   ${ac_c_conftest_c89_main}
2987   return ok;
2988 }
2989 "
2990
2991 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2992 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2993 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2994 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2995 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2996 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2997 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2998 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2999 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3000 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3001 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3002 gt_needs="$gt_needs "
3003 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3004 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3005 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3006
3007 # Auxiliary files required by this configure script.
3008 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
3009
3010 # Locations in which to look for auxiliary files.
3011 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3012
3013 # Search for a directory containing all of the required auxiliary files,
3014 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3015 # If we don't find one directory that contains all the files we need,
3016 # we report the set of missing files from the *first* directory in
3017 # $ac_aux_dir_candidates and give up.
3018 ac_missing_aux_files=""
3019 ac_first_candidate=:
3020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 as_found=false
3023 for as_dir in $ac_aux_dir_candidates
3024 do
3025   IFS=$as_save_IFS
3026   case $as_dir in #(((
3027     '') as_dir=./ ;;
3028     */) ;;
3029     *) as_dir=$as_dir/ ;;
3030   esac
3031   as_found=:
3032
3033   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3034   ac_aux_dir_found=yes
3035   ac_install_sh=
3036   for ac_aux in $ac_aux_files
3037   do
3038     # As a special case, if "install-sh" is required, that requirement
3039     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3040     # and $ac_install_sh is set appropriately for whichever one is found.
3041     if test x"$ac_aux" = x"install-sh"
3042     then
3043       if test -f "${as_dir}install-sh"; then
3044         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3045         ac_install_sh="${as_dir}install-sh -c"
3046       elif test -f "${as_dir}install.sh"; then
3047         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3048         ac_install_sh="${as_dir}install.sh -c"
3049       elif test -f "${as_dir}shtool"; then
3050         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3051         ac_install_sh="${as_dir}shtool install -c"
3052       else
3053         ac_aux_dir_found=no
3054         if $ac_first_candidate; then
3055           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3056         else
3057           break
3058         fi
3059       fi
3060     else
3061       if test -f "${as_dir}${ac_aux}"; then
3062         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3063       else
3064         ac_aux_dir_found=no
3065         if $ac_first_candidate; then
3066           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3067         else
3068           break
3069         fi
3070       fi
3071     fi
3072   done
3073   if test "$ac_aux_dir_found" = yes; then
3074     ac_aux_dir="$as_dir"
3075     break
3076   fi
3077   ac_first_candidate=false
3078
3079   as_found=false
3080 done
3081 IFS=$as_save_IFS
3082 if $as_found
3083 then :
3084
3085 else $as_nop
3086   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3087 fi
3088
3089
3090 # These three variables are undocumented and unsupported,
3091 # and are intended to be withdrawn in a future Autoconf release.
3092 # They can cause serious problems if a builder's source tree is in a directory
3093 # whose full name contains unusual characters.
3094 if test -f "${ac_aux_dir}config.guess"; then
3095   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3096 fi
3097 if test -f "${ac_aux_dir}config.sub"; then
3098   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3099 fi
3100 if test -f "$ac_aux_dir/configure"; then
3101   ac_configure="$SHELL ${ac_aux_dir}configure"
3102 fi
3103
3104 # Check that the precious variables saved in the cache have kept the same
3105 # value.
3106 ac_cache_corrupted=false
3107 for ac_var in $ac_precious_vars; do
3108   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3109   eval ac_new_set=\$ac_env_${ac_var}_set
3110   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3111   eval ac_new_val=\$ac_env_${ac_var}_value
3112   case $ac_old_set,$ac_new_set in
3113     set,)
3114       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3115 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3116       ac_cache_corrupted=: ;;
3117     ,set)
3118       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3119 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3120       ac_cache_corrupted=: ;;
3121     ,);;
3122     *)
3123       if test "x$ac_old_val" != "x$ac_new_val"; then
3124         # differences in whitespace do not lead to failure.
3125         ac_old_val_w=`echo x $ac_old_val`
3126         ac_new_val_w=`echo x $ac_new_val`
3127         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3128           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3129 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3130           ac_cache_corrupted=:
3131         else
3132           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3133 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3134           eval $ac_var=\$ac_old_val
3135         fi
3136         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3137 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3138         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3139 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3140       fi;;
3141   esac
3142   # Pass precious variables to config.status.
3143   if test "$ac_new_set" = set; then
3144     case $ac_new_val in
3145     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3146     *) ac_arg=$ac_var=$ac_new_val ;;
3147     esac
3148     case " $ac_configure_args " in
3149       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3150       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3151     esac
3152   fi
3153 done
3154 if $ac_cache_corrupted; then
3155   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3157   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3158 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3159   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3160             and start over" "$LINENO" 5
3161 fi
3162 ## -------------------- ##
3163 ## Main body of script. ##
3164 ## -------------------- ##
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173 am__api_version='1.16'
3174
3175
3176
3177   # Find a good install program.  We prefer a C program (faster),
3178 # so one script is as good as another.  But avoid the broken or
3179 # incompatible versions:
3180 # SysV /etc/install, /usr/sbin/install
3181 # SunOS /usr/etc/install
3182 # IRIX /sbin/install
3183 # AIX /bin/install
3184 # AmigaOS /C/install, which installs bootblocks on floppy discs
3185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3188 # OS/2's system install, which has a completely different semantic
3189 # ./install, which can be erroneously created by make from ./install.sh.
3190 # Reject install programs that cannot install multiple files.
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3192 printf %s "checking for a BSD-compatible install... " >&6; }
3193 if test -z "$INSTALL"; then
3194 if test ${ac_cv_path_install+y}
3195 then :
3196   printf %s "(cached) " >&6
3197 else $as_nop
3198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   case $as_dir in #(((
3203     '') as_dir=./ ;;
3204     */) ;;
3205     *) as_dir=$as_dir/ ;;
3206   esac
3207     # Account for fact that we put trailing slashes in our PATH walk.
3208 case $as_dir in #((
3209   ./ | /[cC]/* | \
3210   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3211   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3212   /usr/ucb/* ) ;;
3213   *)
3214     # OSF1 and SCO ODT 3.0 have their own names for install.
3215     # Don't use installbsd from OSF since it installs stuff as root
3216     # by default.
3217     for ac_prog in ginstall scoinst install; do
3218       for ac_exec_ext in '' $ac_executable_extensions; do
3219         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3220           if test $ac_prog = install &&
3221             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3222             # AIX install.  It has an incompatible calling convention.
3223             :
3224           elif test $ac_prog = install &&
3225             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3226             # program-specific install script used by HP pwplus--don't use.
3227             :
3228           else
3229             rm -rf conftest.one conftest.two conftest.dir
3230             echo one > conftest.one
3231             echo two > conftest.two
3232             mkdir conftest.dir
3233             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3234               test -s conftest.one && test -s conftest.two &&
3235               test -s conftest.dir/conftest.one &&
3236               test -s conftest.dir/conftest.two
3237             then
3238               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3239               break 3
3240             fi
3241           fi
3242         fi
3243       done
3244     done
3245     ;;
3246 esac
3247
3248   done
3249 IFS=$as_save_IFS
3250
3251 rm -rf conftest.one conftest.two conftest.dir
3252
3253 fi
3254   if test ${ac_cv_path_install+y}; then
3255     INSTALL=$ac_cv_path_install
3256   else
3257     # As a last resort, use the slow shell script.  Don't cache a
3258     # value for INSTALL within a source directory, because that will
3259     # break other packages using the cache if that directory is
3260     # removed, or if the value is a relative name.
3261     INSTALL=$ac_install_sh
3262   fi
3263 fi
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3265 printf "%s\n" "$INSTALL" >&6; }
3266
3267 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3268 # It thinks the first close brace ends the variable substitution.
3269 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3270
3271 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3272
3273 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3274
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3276 printf %s "checking whether build environment is sane... " >&6; }
3277 # Reject unsafe characters in $srcdir or the absolute working directory
3278 # name.  Accept space and tab only in the latter.
3279 am_lf='
3280 '
3281 case `pwd` in
3282   *[\\\"\#\$\&\'\`$am_lf]*)
3283     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3284 esac
3285 case $srcdir in
3286   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3287     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3288 esac
3289
3290 # Do 'set' in a subshell so we don't clobber the current shell's
3291 # arguments.  Must try -L first in case configure is actually a
3292 # symlink; some systems play weird games with the mod time of symlinks
3293 # (eg FreeBSD returns the mod time of the symlink's containing
3294 # directory).
3295 if (
3296    am_has_slept=no
3297    for am_try in 1 2; do
3298      echo "timestamp, slept: $am_has_slept" > conftest.file
3299      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3300      if test "$*" = "X"; then
3301         # -L didn't work.
3302         set X `ls -t "$srcdir/configure" conftest.file`
3303      fi
3304      if test "$*" != "X $srcdir/configure conftest.file" \
3305         && test "$*" != "X conftest.file $srcdir/configure"; then
3306
3307         # If neither matched, then we have a broken ls.  This can happen
3308         # if, for instance, CONFIG_SHELL is bash and it inherits a
3309         # broken ls alias from the environment.  This has actually
3310         # happened.  Such a system could not be considered "sane".
3311         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3312   alias in your environment" "$LINENO" 5
3313      fi
3314      if test "$2" = conftest.file || test $am_try -eq 2; then
3315        break
3316      fi
3317      # Just in case.
3318      sleep 1
3319      am_has_slept=yes
3320    done
3321    test "$2" = conftest.file
3322    )
3323 then
3324    # Ok.
3325    :
3326 else
3327    as_fn_error $? "newly created file is older than distributed files!
3328 Check your system clock" "$LINENO" 5
3329 fi
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 printf "%s\n" "yes" >&6; }
3332 # If we didn't sleep, we still need to ensure time stamps of config.status and
3333 # generated files are strictly newer.
3334 am_sleep_pid=
3335 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3336   ( sleep 1 ) &
3337   am_sleep_pid=$!
3338 fi
3339
3340 rm -f conftest.file
3341
3342 test "$program_prefix" != NONE &&
3343   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3344 # Use a double $ so make ignores it.
3345 test "$program_suffix" != NONE &&
3346   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3347 # Double any \ or $.
3348 # By default was `s,x,x', remove it if useless.
3349 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3350 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3351
3352
3353 # Expand $ac_aux_dir to an absolute path.
3354 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3355
3356
3357   if test x"${MISSING+set}" != xset; then
3358   MISSING="\${SHELL} '$am_aux_dir/missing'"
3359 fi
3360 # Use eval to expand $SHELL
3361 if eval "$MISSING --is-lightweight"; then
3362   am_missing_run="$MISSING "
3363 else
3364   am_missing_run=
3365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3366 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3367 fi
3368
3369 if test x"${install_sh+set}" != xset; then
3370   case $am_aux_dir in
3371   *\ * | *\     *)
3372     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3373   *)
3374     install_sh="\${SHELL} $am_aux_dir/install-sh"
3375   esac
3376 fi
3377
3378 # Installed binaries are usually stripped using 'strip' when the user
3379 # run "make install-strip".  However 'strip' might not be the right
3380 # tool to use in cross-compilation environments, therefore Automake
3381 # will honor the 'STRIP' environment variable to overrule this program.
3382 if test "$cross_compiling" != no; then
3383   if test -n "$ac_tool_prefix"; then
3384   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}strip; ac_word=$2
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 printf %s "checking for $ac_word... " >&6; }
3388 if test ${ac_cv_prog_STRIP+y}
3389 then :
3390   printf %s "(cached) " >&6
3391 else $as_nop
3392   if test -n "$STRIP"; then
3393   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   case $as_dir in #(((
3400     '') as_dir=./ ;;
3401     */) ;;
3402     *) as_dir=$as_dir/ ;;
3403   esac
3404     for ac_exec_ext in '' $ac_executable_extensions; do
3405   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3406     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3407     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411   done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 STRIP=$ac_cv_prog_STRIP
3417 if test -n "$STRIP"; then
3418   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3419 printf "%s\n" "$STRIP" >&6; }
3420 else
3421   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 printf "%s\n" "no" >&6; }
3423 fi
3424
3425
3426 fi
3427 if test -z "$ac_cv_prog_STRIP"; then
3428   ac_ct_STRIP=$STRIP
3429   # Extract the first word of "strip", so it can be a program name with args.
3430 set dummy strip; ac_word=$2
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 printf %s "checking for $ac_word... " >&6; }
3433 if test ${ac_cv_prog_ac_ct_STRIP+y}
3434 then :
3435   printf %s "(cached) " >&6
3436 else $as_nop
3437   if test -n "$ac_ct_STRIP"; then
3438   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   case $as_dir in #(((
3445     '') as_dir=./ ;;
3446     */) ;;
3447     *) as_dir=$as_dir/ ;;
3448   esac
3449     for ac_exec_ext in '' $ac_executable_extensions; do
3450   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3451     ac_cv_prog_ac_ct_STRIP="strip"
3452     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3453     break 2
3454   fi
3455 done
3456   done
3457 IFS=$as_save_IFS
3458
3459 fi
3460 fi
3461 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3462 if test -n "$ac_ct_STRIP"; then
3463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3464 printf "%s\n" "$ac_ct_STRIP" >&6; }
3465 else
3466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 printf "%s\n" "no" >&6; }
3468 fi
3469
3470   if test "x$ac_ct_STRIP" = x; then
3471     STRIP=":"
3472   else
3473     case $cross_compiling:$ac_tool_warned in
3474 yes:)
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3476 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3477 ac_tool_warned=yes ;;
3478 esac
3479     STRIP=$ac_ct_STRIP
3480   fi
3481 else
3482   STRIP="$ac_cv_prog_STRIP"
3483 fi
3484
3485 fi
3486 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3487
3488
3489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3490 printf %s "checking for a race-free mkdir -p... " >&6; }
3491 if test -z "$MKDIR_P"; then
3492   if test ${ac_cv_path_mkdir+y}
3493 then :
3494   printf %s "(cached) " >&6
3495 else $as_nop
3496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3498 do
3499   IFS=$as_save_IFS
3500   case $as_dir in #(((
3501     '') as_dir=./ ;;
3502     */) ;;
3503     *) as_dir=$as_dir/ ;;
3504   esac
3505     for ac_prog in mkdir gmkdir; do
3506          for ac_exec_ext in '' $ac_executable_extensions; do
3507            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3508            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3509              'mkdir ('*'coreutils) '* | \
3510              'BusyBox '* | \
3511              'mkdir (fileutils) '4.1*)
3512                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3513                break 3;;
3514            esac
3515          done
3516        done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521
3522   test -d ./--version && rmdir ./--version
3523   if test ${ac_cv_path_mkdir+y}; then
3524     MKDIR_P="$ac_cv_path_mkdir -p"
3525   else
3526     # As a last resort, use the slow shell script.  Don't cache a
3527     # value for MKDIR_P within a source directory, because that will
3528     # break other packages using the cache if that directory is
3529     # removed, or if the value is a relative name.
3530     MKDIR_P="$ac_install_sh -d"
3531   fi
3532 fi
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3534 printf "%s\n" "$MKDIR_P" >&6; }
3535
3536 for ac_prog in gawk mawk nawk awk
3537 do
3538   # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 printf %s "checking for $ac_word... " >&6; }
3542 if test ${ac_cv_prog_AWK+y}
3543 then :
3544   printf %s "(cached) " >&6
3545 else $as_nop
3546   if test -n "$AWK"; then
3547   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   case $as_dir in #(((
3554     '') as_dir=./ ;;
3555     */) ;;
3556     *) as_dir=$as_dir/ ;;
3557   esac
3558     for ac_exec_ext in '' $ac_executable_extensions; do
3559   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3560     ac_cv_prog_AWK="$ac_prog"
3561     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3562     break 2
3563   fi
3564 done
3565   done
3566 IFS=$as_save_IFS
3567
3568 fi
3569 fi
3570 AWK=$ac_cv_prog_AWK
3571 if test -n "$AWK"; then
3572   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3573 printf "%s\n" "$AWK" >&6; }
3574 else
3575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 printf "%s\n" "no" >&6; }
3577 fi
3578
3579
3580   test -n "$AWK" && break
3581 done
3582
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3584 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3585 set x ${MAKE-make}
3586 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3587 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3588 then :
3589   printf %s "(cached) " >&6
3590 else $as_nop
3591   cat >conftest.make <<\_ACEOF
3592 SHELL = /bin/sh
3593 all:
3594         @echo '@@@%%%=$(MAKE)=@@@%%%'
3595 _ACEOF
3596 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3597 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3598   *@@@%%%=?*=@@@%%%*)
3599     eval ac_cv_prog_make_${ac_make}_set=yes;;
3600   *)
3601     eval ac_cv_prog_make_${ac_make}_set=no;;
3602 esac
3603 rm -f conftest.make
3604 fi
3605 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 printf "%s\n" "yes" >&6; }
3608   SET_MAKE=
3609 else
3610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 printf "%s\n" "no" >&6; }
3612   SET_MAKE="MAKE=${MAKE-make}"
3613 fi
3614
3615 rm -rf .tst 2>/dev/null
3616 mkdir .tst 2>/dev/null
3617 if test -d .tst; then
3618   am__leading_dot=.
3619 else
3620   am__leading_dot=_
3621 fi
3622 rmdir .tst 2>/dev/null
3623
3624 # Check whether --enable-silent-rules was given.
3625 if test ${enable_silent_rules+y}
3626 then :
3627   enableval=$enable_silent_rules;
3628 fi
3629
3630 case $enable_silent_rules in # (((
3631   yes) AM_DEFAULT_VERBOSITY=0;;
3632    no) AM_DEFAULT_VERBOSITY=1;;
3633     *) AM_DEFAULT_VERBOSITY=1;;
3634 esac
3635 am_make=${MAKE-make}
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3637 printf %s "checking whether $am_make supports nested variables... " >&6; }
3638 if test ${am_cv_make_support_nested_variables+y}
3639 then :
3640   printf %s "(cached) " >&6
3641 else $as_nop
3642   if printf "%s\n" 'TRUE=$(BAR$(V))
3643 BAR0=false
3644 BAR1=true
3645 V=1
3646 am__doit:
3647         @$(TRUE)
3648 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3649   am_cv_make_support_nested_variables=yes
3650 else
3651   am_cv_make_support_nested_variables=no
3652 fi
3653 fi
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3655 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3656 if test $am_cv_make_support_nested_variables = yes; then
3657     AM_V='$(V)'
3658   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3659 else
3660   AM_V=$AM_DEFAULT_VERBOSITY
3661   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3662 fi
3663 AM_BACKSLASH='\'
3664
3665 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3666   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3667   # is not polluted with repeated "-I."
3668   am__isrc=' -I$(srcdir)'
3669   # test to see if srcdir already configured
3670   if test -f $srcdir/config.status; then
3671     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3672   fi
3673 fi
3674
3675 # test whether we have cygpath
3676 if test -z "$CYGPATH_W"; then
3677   if (cygpath --version) >/dev/null 2>/dev/null; then
3678     CYGPATH_W='cygpath -w'
3679   else
3680     CYGPATH_W=echo
3681   fi
3682 fi
3683
3684
3685 # Define the identity of the package.
3686  PACKAGE='fontconfig'
3687  VERSION='2.14.2'
3688
3689
3690 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3691
3692
3693 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3694
3695 # Some tools Automake needs.
3696
3697 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3698
3699
3700 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3701
3702
3703 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3704
3705
3706 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3707
3708
3709 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3710
3711 # For better backward compatibility.  To be removed once Automake 1.9.x
3712 # dies out for good.  For more background, see:
3713 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3714 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3715 mkdir_p='$(MKDIR_P)'
3716
3717 # We need awk for the "check" target (and possibly the TAP driver).  The
3718 # system "awk" is bad on some platforms.
3719 # Always define AMTAR for backward compatibility.  Yes, it's still used
3720 # in the wild :-(  We should find a proper way to deprecate it ...
3721 AMTAR='$${TAR-tar}'
3722
3723
3724 # We'll loop over all known methods to create a tar archive until one works.
3725 _am_tools='gnutar  pax cpio none'
3726
3727 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3728
3729
3730
3731
3732
3733 # Variables for tags utilities; see am/tags.am
3734 if test -z "$CTAGS"; then
3735   CTAGS=ctags
3736 fi
3737
3738 if test -z "$ETAGS"; then
3739   ETAGS=etags
3740 fi
3741
3742 if test -z "$CSCOPE"; then
3743   CSCOPE=cscope
3744 fi
3745
3746
3747
3748 # POSIX will say in a future version that running "rm -f" with no argument
3749 # is OK; and we want to be able to make that assumption in our Makefile
3750 # recipes.  So use an aggressive probe to check that the usage we want is
3751 # actually supported "in the wild" to an acceptable degree.
3752 # See automake bug#10828.
3753 # To make any issue more visible, cause the running configure to be aborted
3754 # by default if the 'rm' program in use doesn't match our expectations; the
3755 # user can still override this though.
3756 if rm -f && rm -fr && rm -rf; then : OK; else
3757   cat >&2 <<'END'
3758 Oops!
3759
3760 Your 'rm' program seems unable to run without file operands specified
3761 on the command line, even when the '-f' option is present.  This is contrary
3762 to the behaviour of most rm programs out there, and not conforming with
3763 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3764
3765 Please tell bug-automake@gnu.org about your system, including the value
3766 of your $PATH and any error possibly output before this message.  This
3767 can help us improve future automake versions.
3768
3769 END
3770   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3771     echo 'Configuration will proceed anyway, since you have set the' >&2
3772     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3773     echo >&2
3774   else
3775     cat >&2 <<'END'
3776 Aborting the configuration process, to ensure you take notice of the issue.
3777
3778 You can download and install GNU coreutils to get an 'rm' implementation
3779 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3780
3781 If you want to complete the configuration process using your problematic
3782 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3783 to "yes", and re-run configure.
3784
3785 END
3786     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3787   fi
3788 fi
3789
3790 # Check whether --enable-silent-rules was given.
3791 if test ${enable_silent_rules+y}
3792 then :
3793   enableval=$enable_silent_rules;
3794 fi
3795
3796 case $enable_silent_rules in # (((
3797   yes) AM_DEFAULT_VERBOSITY=0;;
3798    no) AM_DEFAULT_VERBOSITY=1;;
3799     *) AM_DEFAULT_VERBOSITY=0;;
3800 esac
3801 am_make=${MAKE-make}
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3803 printf %s "checking whether $am_make supports nested variables... " >&6; }
3804 if test ${am_cv_make_support_nested_variables+y}
3805 then :
3806   printf %s "(cached) " >&6
3807 else $as_nop
3808   if printf "%s\n" 'TRUE=$(BAR$(V))
3809 BAR0=false
3810 BAR1=true
3811 V=1
3812 am__doit:
3813         @$(TRUE)
3814 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3815   am_cv_make_support_nested_variables=yes
3816 else
3817   am_cv_make_support_nested_variables=no
3818 fi
3819 fi
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3821 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3822 if test $am_cv_make_support_nested_variables = yes; then
3823     AM_V='$(V)'
3824   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3825 else
3826   AM_V=$AM_DEFAULT_VERBOSITY
3827   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3828 fi
3829 AM_BACKSLASH='\'
3830
3831
3832
3833 ac_config_headers="$ac_config_headers config.h"
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 if test -n "$ac_tool_prefix"; then
3852   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 printf %s "checking for $ac_word... " >&6; }
3856 if test ${ac_cv_prog_CC+y}
3857 then :
3858   printf %s "(cached) " >&6
3859 else $as_nop
3860   if test -n "$CC"; then
3861   ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   case $as_dir in #(((
3868     '') as_dir=./ ;;
3869     */) ;;
3870     *) as_dir=$as_dir/ ;;
3871   esac
3872     for ac_exec_ext in '' $ac_executable_extensions; do
3873   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3874     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3875     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3876     break 2
3877   fi
3878 done
3879   done
3880 IFS=$as_save_IFS
3881
3882 fi
3883 fi
3884 CC=$ac_cv_prog_CC
3885 if test -n "$CC"; then
3886   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887 printf "%s\n" "$CC" >&6; }
3888 else
3889   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 printf "%s\n" "no" >&6; }
3891 fi
3892
3893
3894 fi
3895 if test -z "$ac_cv_prog_CC"; then
3896   ac_ct_CC=$CC
3897   # Extract the first word of "gcc", so it can be a program name with args.
3898 set dummy gcc; ac_word=$2
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 printf %s "checking for $ac_word... " >&6; }
3901 if test ${ac_cv_prog_ac_ct_CC+y}
3902 then :
3903   printf %s "(cached) " >&6
3904 else $as_nop
3905   if test -n "$ac_ct_CC"; then
3906   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   case $as_dir in #(((
3913     '') as_dir=./ ;;
3914     */) ;;
3915     *) as_dir=$as_dir/ ;;
3916   esac
3917     for ac_exec_ext in '' $ac_executable_extensions; do
3918   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3919     ac_cv_prog_ac_ct_CC="gcc"
3920     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3921     break 2
3922   fi
3923 done
3924   done
3925 IFS=$as_save_IFS
3926
3927 fi
3928 fi
3929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3930 if test -n "$ac_ct_CC"; then
3931   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3932 printf "%s\n" "$ac_ct_CC" >&6; }
3933 else
3934   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 printf "%s\n" "no" >&6; }
3936 fi
3937
3938   if test "x$ac_ct_CC" = x; then
3939     CC=""
3940   else
3941     case $cross_compiling:$ac_tool_warned in
3942 yes:)
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945 ac_tool_warned=yes ;;
3946 esac
3947     CC=$ac_ct_CC
3948   fi
3949 else
3950   CC="$ac_cv_prog_CC"
3951 fi
3952
3953 if test -z "$CC"; then
3954           if test -n "$ac_tool_prefix"; then
3955     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}cc; ac_word=$2
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 printf %s "checking for $ac_word... " >&6; }
3959 if test ${ac_cv_prog_CC+y}
3960 then :
3961   printf %s "(cached) " >&6
3962 else $as_nop
3963   if test -n "$CC"; then
3964   ac_cv_prog_CC="$CC" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969   IFS=$as_save_IFS
3970   case $as_dir in #(((
3971     '') as_dir=./ ;;
3972     */) ;;
3973     *) as_dir=$as_dir/ ;;
3974   esac
3975     for ac_exec_ext in '' $ac_executable_extensions; do
3976   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3977     ac_cv_prog_CC="${ac_tool_prefix}cc"
3978     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3979     break 2
3980   fi
3981 done
3982   done
3983 IFS=$as_save_IFS
3984
3985 fi
3986 fi
3987 CC=$ac_cv_prog_CC
3988 if test -n "$CC"; then
3989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990 printf "%s\n" "$CC" >&6; }
3991 else
3992   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 printf "%s\n" "no" >&6; }
3994 fi
3995
3996
3997   fi
3998 fi
3999 if test -z "$CC"; then
4000   # Extract the first word of "cc", so it can be a program name with args.
4001 set dummy cc; ac_word=$2
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 printf %s "checking for $ac_word... " >&6; }
4004 if test ${ac_cv_prog_CC+y}
4005 then :
4006   printf %s "(cached) " >&6
4007 else $as_nop
4008   if test -n "$CC"; then
4009   ac_cv_prog_CC="$CC" # Let the user override the test.
4010 else
4011   ac_prog_rejected=no
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   case $as_dir in #(((
4017     '') as_dir=./ ;;
4018     */) ;;
4019     *) as_dir=$as_dir/ ;;
4020   esac
4021     for ac_exec_ext in '' $ac_executable_extensions; do
4022   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4023     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4024        ac_prog_rejected=yes
4025        continue
4026      fi
4027     ac_cv_prog_CC="cc"
4028     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4029     break 2
4030   fi
4031 done
4032   done
4033 IFS=$as_save_IFS
4034
4035 if test $ac_prog_rejected = yes; then
4036   # We found a bogon in the path, so make sure we never use it.
4037   set dummy $ac_cv_prog_CC
4038   shift
4039   if test $# != 0; then
4040     # We chose a different compiler from the bogus one.
4041     # However, it has the same basename, so the bogon will be chosen
4042     # first if we set CC to just the basename; use the full file name.
4043     shift
4044     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4045   fi
4046 fi
4047 fi
4048 fi
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052 printf "%s\n" "$CC" >&6; }
4053 else
4054   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 printf "%s\n" "no" >&6; }
4056 fi
4057
4058
4059 fi
4060 if test -z "$CC"; then
4061   if test -n "$ac_tool_prefix"; then
4062   for ac_prog in cl.exe
4063   do
4064     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067 printf %s "checking for $ac_word... " >&6; }
4068 if test ${ac_cv_prog_CC+y}
4069 then :
4070   printf %s "(cached) " >&6
4071 else $as_nop
4072   if test -n "$CC"; then
4073   ac_cv_prog_CC="$CC" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   case $as_dir in #(((
4080     '') as_dir=./ ;;
4081     */) ;;
4082     *) as_dir=$as_dir/ ;;
4083   esac
4084     for ac_exec_ext in '' $ac_executable_extensions; do
4085   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4086     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4087     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4088     break 2
4089   fi
4090 done
4091   done
4092 IFS=$as_save_IFS
4093
4094 fi
4095 fi
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 printf "%s\n" "$CC" >&6; }
4100 else
4101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4103 fi
4104
4105
4106     test -n "$CC" && break
4107   done
4108 fi
4109 if test -z "$CC"; then
4110   ac_ct_CC=$CC
4111   for ac_prog in cl.exe
4112 do
4113   # Extract the first word of "$ac_prog", so it can be a program name with args.
4114 set dummy $ac_prog; ac_word=$2
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 printf %s "checking for $ac_word... " >&6; }
4117 if test ${ac_cv_prog_ac_ct_CC+y}
4118 then :
4119   printf %s "(cached) " >&6
4120 else $as_nop
4121   if test -n "$ac_ct_CC"; then
4122   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127   IFS=$as_save_IFS
4128   case $as_dir in #(((
4129     '') as_dir=./ ;;
4130     */) ;;
4131     *) as_dir=$as_dir/ ;;
4132   esac
4133     for ac_exec_ext in '' $ac_executable_extensions; do
4134   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4135     ac_cv_prog_ac_ct_CC="$ac_prog"
4136     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4137     break 2
4138   fi
4139 done
4140   done
4141 IFS=$as_save_IFS
4142
4143 fi
4144 fi
4145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146 if test -n "$ac_ct_CC"; then
4147   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148 printf "%s\n" "$ac_ct_CC" >&6; }
4149 else
4150   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 printf "%s\n" "no" >&6; }
4152 fi
4153
4154
4155   test -n "$ac_ct_CC" && break
4156 done
4157
4158   if test "x$ac_ct_CC" = x; then
4159     CC=""
4160   else
4161     case $cross_compiling:$ac_tool_warned in
4162 yes:)
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4164 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165 ac_tool_warned=yes ;;
4166 esac
4167     CC=$ac_ct_CC
4168   fi
4169 fi
4170
4171 fi
4172 if test -z "$CC"; then
4173   if test -n "$ac_tool_prefix"; then
4174   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4175 set dummy ${ac_tool_prefix}clang; ac_word=$2
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 printf %s "checking for $ac_word... " >&6; }
4178 if test ${ac_cv_prog_CC+y}
4179 then :
4180   printf %s "(cached) " >&6
4181 else $as_nop
4182   if test -n "$CC"; then
4183   ac_cv_prog_CC="$CC" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   case $as_dir in #(((
4190     '') as_dir=./ ;;
4191     */) ;;
4192     *) as_dir=$as_dir/ ;;
4193   esac
4194     for ac_exec_ext in '' $ac_executable_extensions; do
4195   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4196     ac_cv_prog_CC="${ac_tool_prefix}clang"
4197     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4198     break 2
4199   fi
4200 done
4201   done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 CC=$ac_cv_prog_CC
4207 if test -n "$CC"; then
4208   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209 printf "%s\n" "$CC" >&6; }
4210 else
4211   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 printf "%s\n" "no" >&6; }
4213 fi
4214
4215
4216 fi
4217 if test -z "$ac_cv_prog_CC"; then
4218   ac_ct_CC=$CC
4219   # Extract the first word of "clang", so it can be a program name with args.
4220 set dummy clang; ac_word=$2
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 printf %s "checking for $ac_word... " >&6; }
4223 if test ${ac_cv_prog_ac_ct_CC+y}
4224 then :
4225   printf %s "(cached) " >&6
4226 else $as_nop
4227   if test -n "$ac_ct_CC"; then
4228   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   case $as_dir in #(((
4235     '') as_dir=./ ;;
4236     */) ;;
4237     *) as_dir=$as_dir/ ;;
4238   esac
4239     for ac_exec_ext in '' $ac_executable_extensions; do
4240   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4241     ac_cv_prog_ac_ct_CC="clang"
4242     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4243     break 2
4244   fi
4245 done
4246   done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252 if test -n "$ac_ct_CC"; then
4253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254 printf "%s\n" "$ac_ct_CC" >&6; }
4255 else
4256   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 printf "%s\n" "no" >&6; }
4258 fi
4259
4260   if test "x$ac_ct_CC" = x; then
4261     CC=""
4262   else
4263     case $cross_compiling:$ac_tool_warned in
4264 yes:)
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4268 esac
4269     CC=$ac_ct_CC
4270   fi
4271 else
4272   CC="$ac_cv_prog_CC"
4273 fi
4274
4275 fi
4276
4277
4278 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $? "no acceptable C compiler found in \$PATH
4281 See \`config.log' for more details" "$LINENO" 5; }
4282
4283 # Provide some information about the compiler.
4284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4285 set X $ac_compile
4286 ac_compiler=$2
4287 for ac_option in --version -v -V -qversion -version; do
4288   { { ac_try="$ac_compiler $ac_option >&5"
4289 case "(($ac_try" in
4290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291   *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 printf "%s\n" "$ac_try_echo"; } >&5
4295   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4296   ac_status=$?
4297   if test -s conftest.err; then
4298     sed '10a\
4299 ... rest of stderr output deleted ...
4300          10q' conftest.err >conftest.er1
4301     cat conftest.er1 >&5
4302   fi
4303   rm -f conftest.er1 conftest.err
4304   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305   test $ac_status = 0; }
4306 done
4307
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h.  */
4310
4311 int
4312 main (void)
4313 {
4314
4315   ;
4316   return 0;
4317 }
4318 _ACEOF
4319 ac_clean_files_save=$ac_clean_files
4320 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4321 # Try to create an executable without -o first, disregard a.out.
4322 # It will help us diagnose broken compilers, and finding out an intuition
4323 # of exeext.
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4325 printf %s "checking whether the C compiler works... " >&6; }
4326 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4327
4328 # The possible output files:
4329 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4330
4331 ac_rmfiles=
4332 for ac_file in $ac_files
4333 do
4334   case $ac_file in
4335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4337   esac
4338 done
4339 rm -f $ac_rmfiles
4340
4341 if { { ac_try="$ac_link_default"
4342 case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 printf "%s\n" "$ac_try_echo"; } >&5
4348   (eval "$ac_link_default") 2>&5
4349   ac_status=$?
4350   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351   test $ac_status = 0; }
4352 then :
4353   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4354 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4355 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4356 # so that the user can short-circuit this test for compilers unknown to
4357 # Autoconf.
4358 for ac_file in $ac_files ''
4359 do
4360   test -f "$ac_file" || continue
4361   case $ac_file in
4362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4363         ;;
4364     [ab].out )
4365         # We found the default executable, but exeext='' is most
4366         # certainly right.
4367         break;;
4368     *.* )
4369         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4370         then :; else
4371            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4372         fi
4373         # We set ac_cv_exeext here because the later test for it is not
4374         # safe: cross compilers may not add the suffix if given an `-o'
4375         # argument, so we may need to know it at that point already.
4376         # Even if this section looks crufty: it has the advantage of
4377         # actually working.
4378         break;;
4379     * )
4380         break;;
4381   esac
4382 done
4383 test "$ac_cv_exeext" = no && ac_cv_exeext=
4384
4385 else $as_nop
4386   ac_file=''
4387 fi
4388 if test -z "$ac_file"
4389 then :
4390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 printf "%s\n" "no" >&6; }
4392 printf "%s\n" "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4397 as_fn_error 77 "C compiler cannot create executables
4398 See \`config.log' for more details" "$LINENO" 5; }
4399 else $as_nop
4400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4401 printf "%s\n" "yes" >&6; }
4402 fi
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4404 printf %s "checking for C compiler default output file name... " >&6; }
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4406 printf "%s\n" "$ac_file" >&6; }
4407 ac_exeext=$ac_cv_exeext
4408
4409 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4410 ac_clean_files=$ac_clean_files_save
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4412 printf %s "checking for suffix of executables... " >&6; }
4413 if { { ac_try="$ac_link"
4414 case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 printf "%s\n" "$ac_try_echo"; } >&5
4420   (eval "$ac_link") 2>&5
4421   ac_status=$?
4422   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423   test $ac_status = 0; }
4424 then :
4425   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4426 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4427 # work properly (i.e., refer to `conftest.exe'), while it won't with
4428 # `rm'.
4429 for ac_file in conftest.exe conftest conftest.*; do
4430   test -f "$ac_file" || continue
4431   case $ac_file in
4432     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4433     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4434           break;;
4435     * ) break;;
4436   esac
4437 done
4438 else $as_nop
4439   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4441 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4442 See \`config.log' for more details" "$LINENO" 5; }
4443 fi
4444 rm -f conftest conftest$ac_cv_exeext
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4446 printf "%s\n" "$ac_cv_exeext" >&6; }
4447
4448 rm -f conftest.$ac_ext
4449 EXEEXT=$ac_cv_exeext
4450 ac_exeext=$EXEEXT
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453 #include <stdio.h>
4454 int
4455 main (void)
4456 {
4457 FILE *f = fopen ("conftest.out", "w");
4458  return ferror (f) || fclose (f) != 0;
4459
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 ac_clean_files="$ac_clean_files conftest.out"
4465 # Check that the compiler produces executables we can run.  If not, either
4466 # the compiler is broken, or we cross compile.
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4468 printf %s "checking whether we are cross compiling... " >&6; }
4469 if test "$cross_compiling" != yes; then
4470   { { ac_try="$ac_link"
4471 case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4476 printf "%s\n" "$ac_try_echo"; } >&5
4477   (eval "$ac_link") 2>&5
4478   ac_status=$?
4479   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480   test $ac_status = 0; }
4481   if { ac_try='./conftest$ac_cv_exeext'
4482   { { case "(($ac_try" in
4483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484   *) ac_try_echo=$ac_try;;
4485 esac
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 printf "%s\n" "$ac_try_echo"; } >&5
4488   (eval "$ac_try") 2>&5
4489   ac_status=$?
4490   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491   test $ac_status = 0; }; }; then
4492     cross_compiling=no
4493   else
4494     if test "$cross_compiling" = maybe; then
4495         cross_compiling=yes
4496     else
4497         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4499 as_fn_error 77 "cannot run C compiled programs.
4500 If you meant to cross compile, use \`--host'.
4501 See \`config.log' for more details" "$LINENO" 5; }
4502     fi
4503   fi
4504 fi
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4506 printf "%s\n" "$cross_compiling" >&6; }
4507
4508 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4509 ac_clean_files=$ac_clean_files_save
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4511 printf %s "checking for suffix of object files... " >&6; }
4512 if test ${ac_cv_objext+y}
4513 then :
4514   printf %s "(cached) " >&6
4515 else $as_nop
4516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h.  */
4518
4519 int
4520 main (void)
4521 {
4522
4523   ;
4524   return 0;
4525 }
4526 _ACEOF
4527 rm -f conftest.o conftest.obj
4528 if { { ac_try="$ac_compile"
4529 case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 printf "%s\n" "$ac_try_echo"; } >&5
4535   (eval "$ac_compile") 2>&5
4536   ac_status=$?
4537   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538   test $ac_status = 0; }
4539 then :
4540   for ac_file in conftest.o conftest.obj conftest.*; do
4541   test -f "$ac_file" || continue;
4542   case $ac_file in
4543     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4544     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4545        break;;
4546   esac
4547 done
4548 else $as_nop
4549   printf "%s\n" "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4554 as_fn_error $? "cannot compute suffix of object files: cannot compile
4555 See \`config.log' for more details" "$LINENO" 5; }
4556 fi
4557 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4558 fi
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4560 printf "%s\n" "$ac_cv_objext" >&6; }
4561 OBJEXT=$ac_cv_objext
4562 ac_objext=$OBJEXT
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4564 printf %s "checking whether the compiler supports GNU C... " >&6; }
4565 if test ${ac_cv_c_compiler_gnu+y}
4566 then :
4567   printf %s "(cached) " >&6
4568 else $as_nop
4569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h.  */
4571
4572 int
4573 main (void)
4574 {
4575 #ifndef __GNUC__
4576        choke me
4577 #endif
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_c_try_compile "$LINENO"
4584 then :
4585   ac_compiler_gnu=yes
4586 else $as_nop
4587   ac_compiler_gnu=no
4588 fi
4589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4591
4592 fi
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4594 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596
4597 if test $ac_compiler_gnu = yes; then
4598   GCC=yes
4599 else
4600   GCC=
4601 fi
4602 ac_test_CFLAGS=${CFLAGS+y}
4603 ac_save_CFLAGS=$CFLAGS
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4605 printf %s "checking whether $CC accepts -g... " >&6; }
4606 if test ${ac_cv_prog_cc_g+y}
4607 then :
4608   printf %s "(cached) " >&6
4609 else $as_nop
4610   ac_save_c_werror_flag=$ac_c_werror_flag
4611    ac_c_werror_flag=yes
4612    ac_cv_prog_cc_g=no
4613    CFLAGS="-g"
4614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h.  */
4616
4617 int
4618 main (void)
4619 {
4620
4621   ;
4622   return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"
4626 then :
4627   ac_cv_prog_cc_g=yes
4628 else $as_nop
4629   CFLAGS=""
4630       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h.  */
4632
4633 int
4634 main (void)
4635 {
4636
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"
4642 then :
4643
4644 else $as_nop
4645   ac_c_werror_flag=$ac_save_c_werror_flag
4646          CFLAGS="-g"
4647          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h.  */
4649
4650 int
4651 main (void)
4652 {
4653
4654   ;
4655   return 0;
4656 }
4657 _ACEOF
4658 if ac_fn_c_try_compile "$LINENO"
4659 then :
4660   ac_cv_prog_cc_g=yes
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4663 fi
4664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4667    ac_c_werror_flag=$ac_save_c_werror_flag
4668 fi
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4670 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4671 if test $ac_test_CFLAGS; then
4672   CFLAGS=$ac_save_CFLAGS
4673 elif test $ac_cv_prog_cc_g = yes; then
4674   if test "$GCC" = yes; then
4675     CFLAGS="-g -O2"
4676   else
4677     CFLAGS="-g"
4678   fi
4679 else
4680   if test "$GCC" = yes; then
4681     CFLAGS="-O2"
4682   else
4683     CFLAGS=
4684   fi
4685 fi
4686 ac_prog_cc_stdc=no
4687 if test x$ac_prog_cc_stdc = xno
4688 then :
4689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4690 printf %s "checking for $CC option to enable C11 features... " >&6; }
4691 if test ${ac_cv_prog_cc_c11+y}
4692 then :
4693   printf %s "(cached) " >&6
4694 else $as_nop
4695   ac_cv_prog_cc_c11=no
4696 ac_save_CC=$CC
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h.  */
4699 $ac_c_conftest_c11_program
4700 _ACEOF
4701 for ac_arg in '' -std=gnu11
4702 do
4703   CC="$ac_save_CC $ac_arg"
4704   if ac_fn_c_try_compile "$LINENO"
4705 then :
4706   ac_cv_prog_cc_c11=$ac_arg
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext conftest.beam
4709   test "x$ac_cv_prog_cc_c11" != "xno" && break
4710 done
4711 rm -f conftest.$ac_ext
4712 CC=$ac_save_CC
4713 fi
4714
4715 if test "x$ac_cv_prog_cc_c11" = xno
4716 then :
4717   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4718 printf "%s\n" "unsupported" >&6; }
4719 else $as_nop
4720   if test "x$ac_cv_prog_cc_c11" = x
4721 then :
4722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4723 printf "%s\n" "none needed" >&6; }
4724 else $as_nop
4725   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4726 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4727      CC="$CC $ac_cv_prog_cc_c11"
4728 fi
4729   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4730   ac_prog_cc_stdc=c11
4731 fi
4732 fi
4733 if test x$ac_prog_cc_stdc = xno
4734 then :
4735   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4736 printf %s "checking for $CC option to enable C99 features... " >&6; }
4737 if test ${ac_cv_prog_cc_c99+y}
4738 then :
4739   printf %s "(cached) " >&6
4740 else $as_nop
4741   ac_cv_prog_cc_c99=no
4742 ac_save_CC=$CC
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745 $ac_c_conftest_c99_program
4746 _ACEOF
4747 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4748 do
4749   CC="$ac_save_CC $ac_arg"
4750   if ac_fn_c_try_compile "$LINENO"
4751 then :
4752   ac_cv_prog_cc_c99=$ac_arg
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.beam
4755   test "x$ac_cv_prog_cc_c99" != "xno" && break
4756 done
4757 rm -f conftest.$ac_ext
4758 CC=$ac_save_CC
4759 fi
4760
4761 if test "x$ac_cv_prog_cc_c99" = xno
4762 then :
4763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4764 printf "%s\n" "unsupported" >&6; }
4765 else $as_nop
4766   if test "x$ac_cv_prog_cc_c99" = x
4767 then :
4768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4769 printf "%s\n" "none needed" >&6; }
4770 else $as_nop
4771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4772 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4773      CC="$CC $ac_cv_prog_cc_c99"
4774 fi
4775   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4776   ac_prog_cc_stdc=c99
4777 fi
4778 fi
4779 if test x$ac_prog_cc_stdc = xno
4780 then :
4781   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4782 printf %s "checking for $CC option to enable C89 features... " >&6; }
4783 if test ${ac_cv_prog_cc_c89+y}
4784 then :
4785   printf %s "(cached) " >&6
4786 else $as_nop
4787   ac_cv_prog_cc_c89=no
4788 ac_save_CC=$CC
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h.  */
4791 $ac_c_conftest_c89_program
4792 _ACEOF
4793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4794 do
4795   CC="$ac_save_CC $ac_arg"
4796   if ac_fn_c_try_compile "$LINENO"
4797 then :
4798   ac_cv_prog_cc_c89=$ac_arg
4799 fi
4800 rm -f core conftest.err conftest.$ac_objext conftest.beam
4801   test "x$ac_cv_prog_cc_c89" != "xno" && break
4802 done
4803 rm -f conftest.$ac_ext
4804 CC=$ac_save_CC
4805 fi
4806
4807 if test "x$ac_cv_prog_cc_c89" = xno
4808 then :
4809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4810 printf "%s\n" "unsupported" >&6; }
4811 else $as_nop
4812   if test "x$ac_cv_prog_cc_c89" = x
4813 then :
4814   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4815 printf "%s\n" "none needed" >&6; }
4816 else $as_nop
4817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4818 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4819      CC="$CC $ac_cv_prog_cc_c89"
4820 fi
4821   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4822   ac_prog_cc_stdc=c89
4823 fi
4824 fi
4825
4826 ac_ext=c
4827 ac_cpp='$CPP $CPPFLAGS'
4828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4831
4832
4833   ac_ext=c
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4839 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4840 if test ${am_cv_prog_cc_c_o+y}
4841 then :
4842   printf %s "(cached) " >&6
4843 else $as_nop
4844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h.  */
4846
4847 int
4848 main (void)
4849 {
4850
4851   ;
4852   return 0;
4853 }
4854 _ACEOF
4855   # Make sure it works both with $CC and with simple cc.
4856   # Following AC_PROG_CC_C_O, we do the test twice because some
4857   # compilers refuse to overwrite an existing .o file with -o,
4858   # though they will create one.
4859   am_cv_prog_cc_c_o=yes
4860   for am_i in 1 2; do
4861     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4862    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4863    ac_status=$?
4864    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865    (exit $ac_status); } \
4866          && test -f conftest2.$ac_objext; then
4867       : OK
4868     else
4869       am_cv_prog_cc_c_o=no
4870       break
4871     fi
4872   done
4873   rm -f core conftest*
4874   unset am_i
4875 fi
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4877 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4878 if test "$am_cv_prog_cc_c_o" != yes; then
4879    # Losing compiler, so override with the script.
4880    # FIXME: It is wrong to rewrite CC.
4881    # But if we don't then we get into trouble of one sort or another.
4882    # A longer-term fix would be to have automake use am__CC in this case,
4883    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4884    CC="$am_aux_dir/compile $CC"
4885 fi
4886 ac_ext=c
4887 ac_cpp='$CPP $CPPFLAGS'
4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891
4892 DEPDIR="${am__leading_dot}deps"
4893
4894 ac_config_commands="$ac_config_commands depfiles"
4895
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4897 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4898 cat > confinc.mk << 'END'
4899 am__doit:
4900         @echo this is the am__doit target >confinc.out
4901 .PHONY: am__doit
4902 END
4903 am__include="#"
4904 am__quote=
4905 # BSD make does it like this.
4906 echo '.include "confinc.mk" # ignored' > confmf.BSD
4907 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4908 echo 'include confinc.mk # ignored' > confmf.GNU
4909 _am_result=no
4910 for s in GNU BSD; do
4911   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4912    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4913    ac_status=$?
4914    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915    (exit $ac_status); }
4916   case $?:`cat confinc.out 2>/dev/null` in #(
4917   '0:this is the am__doit target') :
4918     case $s in #(
4919   BSD) :
4920     am__include='.include' am__quote='"' ;; #(
4921   *) :
4922     am__include='include' am__quote='' ;;
4923 esac ;; #(
4924   *) :
4925      ;;
4926 esac
4927   if test "$am__include" != "#"; then
4928     _am_result="yes ($s style)"
4929     break
4930   fi
4931 done
4932 rm -f confinc.* confmf.*
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4934 printf "%s\n" "${_am_result}" >&6; }
4935
4936 # Check whether --enable-dependency-tracking was given.
4937 if test ${enable_dependency_tracking+y}
4938 then :
4939   enableval=$enable_dependency_tracking;
4940 fi
4941
4942 if test "x$enable_dependency_tracking" != xno; then
4943   am_depcomp="$ac_aux_dir/depcomp"
4944   AMDEPBACKSLASH='\'
4945   am__nodep='_no'
4946 fi
4947  if test "x$enable_dependency_tracking" != xno; then
4948   AMDEP_TRUE=
4949   AMDEP_FALSE='#'
4950 else
4951   AMDEP_TRUE='#'
4952   AMDEP_FALSE=
4953 fi
4954
4955
4956
4957 depcc="$CC"   am_compiler_list=
4958
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4960 printf %s "checking dependency style of $depcc... " >&6; }
4961 if test ${am_cv_CC_dependencies_compiler_type+y}
4962 then :
4963   printf %s "(cached) " >&6
4964 else $as_nop
4965   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4966   # We make a subdir and do the tests there.  Otherwise we can end up
4967   # making bogus files that we don't know about and never remove.  For
4968   # instance it was reported that on HP-UX the gcc test will end up
4969   # making a dummy file named 'D' -- because '-MD' means "put the output
4970   # in D".
4971   rm -rf conftest.dir
4972   mkdir conftest.dir
4973   # Copy depcomp to subdir because otherwise we won't find it if we're
4974   # using a relative directory.
4975   cp "$am_depcomp" conftest.dir
4976   cd conftest.dir
4977   # We will build objects and dependencies in a subdirectory because
4978   # it helps to detect inapplicable dependency modes.  For instance
4979   # both Tru64's cc and ICC support -MD to output dependencies as a
4980   # side effect of compilation, but ICC will put the dependencies in
4981   # the current directory while Tru64 will put them in the object
4982   # directory.
4983   mkdir sub
4984
4985   am_cv_CC_dependencies_compiler_type=none
4986   if test "$am_compiler_list" = ""; then
4987      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4988   fi
4989   am__universal=false
4990   case " $depcc " in #(
4991      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4992      esac
4993
4994   for depmode in $am_compiler_list; do
4995     # Setup a source with many dependencies, because some compilers
4996     # like to wrap large dependency lists on column 80 (with \), and
4997     # we should not choose a depcomp mode which is confused by this.
4998     #
4999     # We need to recreate these files for each test, as the compiler may
5000     # overwrite some of them when testing with obscure command lines.
5001     # This happens at least with the AIX C compiler.
5002     : > sub/conftest.c
5003     for i in 1 2 3 4 5 6; do
5004       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5005       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5006       # Solaris 10 /bin/sh.
5007       echo '/* dummy */' > sub/conftst$i.h
5008     done
5009     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5010
5011     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5012     # mode.  It turns out that the SunPro C++ compiler does not properly
5013     # handle '-M -o', and we need to detect this.  Also, some Intel
5014     # versions had trouble with output in subdirs.
5015     am__obj=sub/conftest.${OBJEXT-o}
5016     am__minus_obj="-o $am__obj"
5017     case $depmode in
5018     gcc)
5019       # This depmode causes a compiler race in universal mode.
5020       test "$am__universal" = false || continue
5021       ;;
5022     nosideeffect)
5023       # After this tag, mechanisms are not by side-effect, so they'll
5024       # only be used when explicitly requested.
5025       if test "x$enable_dependency_tracking" = xyes; then
5026         continue
5027       else
5028         break
5029       fi
5030       ;;
5031     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5032       # This compiler won't grok '-c -o', but also, the minuso test has
5033       # not run yet.  These depmodes are late enough in the game, and
5034       # so weak that their functioning should not be impacted.
5035       am__obj=conftest.${OBJEXT-o}
5036       am__minus_obj=
5037       ;;
5038     none) break ;;
5039     esac
5040     if depmode=$depmode \
5041        source=sub/conftest.c object=$am__obj \
5042        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5043        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5044          >/dev/null 2>conftest.err &&
5045        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5046        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5047        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5048        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5049       # icc doesn't choke on unknown options, it will just issue warnings
5050       # or remarks (even with -Werror).  So we grep stderr for any message
5051       # that says an option was ignored or not supported.
5052       # When given -MP, icc 7.0 and 7.1 complain thusly:
5053       #   icc: Command line warning: ignoring option '-M'; no argument required
5054       # The diagnosis changed in icc 8.0:
5055       #   icc: Command line remark: option '-MP' not supported
5056       if (grep 'ignoring option' conftest.err ||
5057           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5058         am_cv_CC_dependencies_compiler_type=$depmode
5059         break
5060       fi
5061     fi
5062   done
5063
5064   cd ..
5065   rm -rf conftest.dir
5066 else
5067   am_cv_CC_dependencies_compiler_type=none
5068 fi
5069
5070 fi
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5072 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5073 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5074
5075  if
5076   test "x$enable_dependency_tracking" != xno \
5077   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5078   am__fastdepCC_TRUE=
5079   am__fastdepCC_FALSE='#'
5080 else
5081   am__fastdepCC_TRUE='#'
5082   am__fastdepCC_FALSE=
5083 fi
5084
5085
5086
5087 ac_header= ac_cache=
5088 for ac_item in $ac_header_c_list
5089 do
5090   if test $ac_cache; then
5091     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5092     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5093       printf "%s\n" "#define $ac_item 1" >> confdefs.h
5094     fi
5095     ac_header= ac_cache=
5096   elif test $ac_header; then
5097     ac_cache=$ac_item
5098   else
5099     ac_header=$ac_item
5100   fi
5101 done
5102
5103
5104
5105
5106
5107
5108
5109
5110 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5111 then :
5112
5113 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5114
5115 fi
5116
5117
5118
5119
5120
5121
5122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5123 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5124 if test ${ac_cv_safe_to_define___extensions__+y}
5125 then :
5126   printf %s "(cached) " >&6
5127 else $as_nop
5128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h.  */
5130
5131 #         define __EXTENSIONS__ 1
5132           $ac_includes_default
5133 int
5134 main (void)
5135 {
5136
5137   ;
5138   return 0;
5139 }
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"
5142 then :
5143   ac_cv_safe_to_define___extensions__=yes
5144 else $as_nop
5145   ac_cv_safe_to_define___extensions__=no
5146 fi
5147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5148 fi
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5150 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5151
5152   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5153 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5154 if test ${ac_cv_should_define__xopen_source+y}
5155 then :
5156   printf %s "(cached) " >&6
5157 else $as_nop
5158   ac_cv_should_define__xopen_source=no
5159     if test $ac_cv_header_wchar_h = yes
5160 then :
5161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h.  */
5163
5164           #include <wchar.h>
5165           mbstate_t x;
5166 int
5167 main (void)
5168 {
5169
5170   ;
5171   return 0;
5172 }
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"
5175 then :
5176
5177 else $as_nop
5178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h.  */
5180
5181             #define _XOPEN_SOURCE 500
5182             #include <wchar.h>
5183             mbstate_t x;
5184 int
5185 main (void)
5186 {
5187
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"
5193 then :
5194   ac_cv_should_define__xopen_source=yes
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5199 fi
5200 fi
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5202 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5203
5204   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5205
5206   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5207
5208   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5209
5210   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5211
5212   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5213
5214   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5215
5216   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5217
5218   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5219
5220   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5221
5222   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5223
5224   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5225
5226   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5227
5228   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5229
5230   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5231
5232   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5233
5234   if test $ac_cv_header_minix_config_h = yes
5235 then :
5236   MINIX=yes
5237     printf "%s\n" "#define _MINIX 1" >>confdefs.h
5238
5239     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5240
5241     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5242
5243 else $as_nop
5244   MINIX=
5245 fi
5246   if test $ac_cv_safe_to_define___extensions__ = yes
5247 then :
5248   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5249
5250 fi
5251   if test $ac_cv_should_define__xopen_source = yes
5252 then :
5253   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5254
5255 fi
5256
5257 # Check whether --enable-largefile was given.
5258 if test ${enable_largefile+y}
5259 then :
5260   enableval=$enable_largefile;
5261 fi
5262
5263 if test "$enable_largefile" != no; then
5264
5265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5266 printf %s "checking for special C compiler options needed for large files... " >&6; }
5267 if test ${ac_cv_sys_largefile_CC+y}
5268 then :
5269   printf %s "(cached) " >&6
5270 else $as_nop
5271   ac_cv_sys_largefile_CC=no
5272      if test "$GCC" != yes; then
5273        ac_save_CC=$CC
5274        while :; do
5275          # IRIX 6.2 and later do not support large files by default,
5276          # so use the C compiler's -n32 option if that helps.
5277          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h.  */
5279 #include <sys/types.h>
5280  /* Check that off_t can represent 2**63 - 1 correctly.
5281     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5282     since some C++ compilers masquerading as C compilers
5283     incorrectly reject 9223372036854775807.  */
5284 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5285   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5286                        && LARGE_OFF_T % 2147483647 == 1)
5287                       ? 1 : -1];
5288 int
5289 main (void)
5290 {
5291
5292   ;
5293   return 0;
5294 }
5295 _ACEOF
5296          if ac_fn_c_try_compile "$LINENO"
5297 then :
5298   break
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.beam
5301          CC="$CC -n32"
5302          if ac_fn_c_try_compile "$LINENO"
5303 then :
5304   ac_cv_sys_largefile_CC=' -n32'; break
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.beam
5307          break
5308        done
5309        CC=$ac_save_CC
5310        rm -f conftest.$ac_ext
5311     fi
5312 fi
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5314 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5315   if test "$ac_cv_sys_largefile_CC" != no; then
5316     CC=$CC$ac_cv_sys_largefile_CC
5317   fi
5318
5319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5320 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5321 if test ${ac_cv_sys_file_offset_bits+y}
5322 then :
5323   printf %s "(cached) " >&6
5324 else $as_nop
5325   while :; do
5326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h.  */
5328 #include <sys/types.h>
5329  /* Check that off_t can represent 2**63 - 1 correctly.
5330     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5331     since some C++ compilers masquerading as C compilers
5332     incorrectly reject 9223372036854775807.  */
5333 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5334   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5335                        && LARGE_OFF_T % 2147483647 == 1)
5336                       ? 1 : -1];
5337 int
5338 main (void)
5339 {
5340
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"
5346 then :
5347   ac_cv_sys_file_offset_bits=no; break
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h.  */
5352 #define _FILE_OFFSET_BITS 64
5353 #include <sys/types.h>
5354  /* Check that off_t can represent 2**63 - 1 correctly.
5355     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5356     since some C++ compilers masquerading as C compilers
5357     incorrectly reject 9223372036854775807.  */
5358 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5359   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5360                        && LARGE_OFF_T % 2147483647 == 1)
5361                       ? 1 : -1];
5362 int
5363 main (void)
5364 {
5365
5366   ;
5367   return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"
5371 then :
5372   ac_cv_sys_file_offset_bits=64; break
5373 fi
5374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5375   ac_cv_sys_file_offset_bits=unknown
5376   break
5377 done
5378 fi
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5380 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5381 case $ac_cv_sys_file_offset_bits in #(
5382   no | unknown) ;;
5383   *)
5384 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5385 ;;
5386 esac
5387 rm -rf conftest*
5388   if test $ac_cv_sys_file_offset_bits = unknown; then
5389     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5390 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5391 if test ${ac_cv_sys_large_files+y}
5392 then :
5393   printf %s "(cached) " >&6
5394 else $as_nop
5395   while :; do
5396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h.  */
5398 #include <sys/types.h>
5399  /* Check that off_t can represent 2**63 - 1 correctly.
5400     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5401     since some C++ compilers masquerading as C compilers
5402     incorrectly reject 9223372036854775807.  */
5403 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5404   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5405                        && LARGE_OFF_T % 2147483647 == 1)
5406                       ? 1 : -1];
5407 int
5408 main (void)
5409 {
5410
5411   ;
5412   return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"
5416 then :
5417   ac_cv_sys_large_files=no; break
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h.  */
5422 #define _LARGE_FILES 1
5423 #include <sys/types.h>
5424  /* Check that off_t can represent 2**63 - 1 correctly.
5425     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5426     since some C++ compilers masquerading as C compilers
5427     incorrectly reject 9223372036854775807.  */
5428 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5429   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5430                        && LARGE_OFF_T % 2147483647 == 1)
5431                       ? 1 : -1];
5432 int
5433 main (void)
5434 {
5435
5436   ;
5437   return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_compile "$LINENO"
5441 then :
5442   ac_cv_sys_large_files=1; break
5443 fi
5444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5445   ac_cv_sys_large_files=unknown
5446   break
5447 done
5448 fi
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5450 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5451 case $ac_cv_sys_large_files in #(
5452   no | unknown) ;;
5453   *)
5454 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5455 ;;
5456 esac
5457 rm -rf conftest*
5458   fi
5459 fi
5460
5461
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5463 printf %s "checking whether ln -s works... " >&6; }
5464 LN_S=$as_ln_s
5465 if test "$LN_S" = "ln -s"; then
5466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467 printf "%s\n" "yes" >&6; }
5468 else
5469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5470 printf "%s\n" "no, using $LN_S" >&6; }
5471 fi
5472
5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5474 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5475 set x ${MAKE-make}
5476 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5477 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5478 then :
5479   printf %s "(cached) " >&6
5480 else $as_nop
5481   cat >conftest.make <<\_ACEOF
5482 SHELL = /bin/sh
5483 all:
5484         @echo '@@@%%%=$(MAKE)=@@@%%%'
5485 _ACEOF
5486 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5487 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5488   *@@@%%%=?*=@@@%%%*)
5489     eval ac_cv_prog_make_${ac_make}_set=yes;;
5490   *)
5491     eval ac_cv_prog_make_${ac_make}_set=no;;
5492 esac
5493 rm -f conftest.make
5494 fi
5495 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5496   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5497 printf "%s\n" "yes" >&6; }
5498   SET_MAKE=
5499 else
5500   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 printf "%s\n" "no" >&6; }
5502   SET_MAKE="MAKE=${MAKE-make}"
5503 fi
5504
5505
5506
5507
5508
5509
5510
5511
5512 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5513         if test -n "$ac_tool_prefix"; then
5514   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 printf %s "checking for $ac_word... " >&6; }
5518 if test ${ac_cv_path_PKG_CONFIG+y}
5519 then :
5520   printf %s "(cached) " >&6
5521 else $as_nop
5522   case $PKG_CONFIG in
5523   [\\/]* | ?:[\\/]*)
5524   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5525   ;;
5526   *)
5527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   case $as_dir in #(((
5532     '') as_dir=./ ;;
5533     */) ;;
5534     *) as_dir=$as_dir/ ;;
5535   esac
5536     for ac_exec_ext in '' $ac_executable_extensions; do
5537   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5538     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5539     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543   done
5544 IFS=$as_save_IFS
5545
5546   ;;
5547 esac
5548 fi
5549 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5550 if test -n "$PKG_CONFIG"; then
5551   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5552 printf "%s\n" "$PKG_CONFIG" >&6; }
5553 else
5554   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 printf "%s\n" "no" >&6; }
5556 fi
5557
5558
5559 fi
5560 if test -z "$ac_cv_path_PKG_CONFIG"; then
5561   ac_pt_PKG_CONFIG=$PKG_CONFIG
5562   # Extract the first word of "pkg-config", so it can be a program name with args.
5563 set dummy pkg-config; ac_word=$2
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 printf %s "checking for $ac_word... " >&6; }
5566 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5567 then :
5568   printf %s "(cached) " >&6
5569 else $as_nop
5570   case $ac_pt_PKG_CONFIG in
5571   [\\/]* | ?:[\\/]*)
5572   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5573   ;;
5574   *)
5575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578   IFS=$as_save_IFS
5579   case $as_dir in #(((
5580     '') as_dir=./ ;;
5581     */) ;;
5582     *) as_dir=$as_dir/ ;;
5583   esac
5584     for ac_exec_ext in '' $ac_executable_extensions; do
5585   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5586     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5587     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5588     break 2
5589   fi
5590 done
5591   done
5592 IFS=$as_save_IFS
5593
5594   ;;
5595 esac
5596 fi
5597 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5598 if test -n "$ac_pt_PKG_CONFIG"; then
5599   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5600 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5601 else
5602   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 printf "%s\n" "no" >&6; }
5604 fi
5605
5606   if test "x$ac_pt_PKG_CONFIG" = x; then
5607     PKG_CONFIG=""
5608   else
5609     case $cross_compiling:$ac_tool_warned in
5610 yes:)
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613 ac_tool_warned=yes ;;
5614 esac
5615     PKG_CONFIG=$ac_pt_PKG_CONFIG
5616   fi
5617 else
5618   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5619 fi
5620
5621 fi
5622 if test -n "$PKG_CONFIG"; then
5623         _pkg_min_version=0.9.0
5624         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5625 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5626         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5627                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5628 printf "%s\n" "yes" >&6; }
5629         else
5630                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 printf "%s\n" "no" >&6; }
5632                 PKG_CONFIG=""
5633         fi
5634 fi
5635
5636
5637
5638 # Check whether --with-pkgconfigdir was given.
5639 if test ${with_pkgconfigdir+y}
5640 then :
5641   withval=$with_pkgconfigdir;
5642 else $as_nop
5643   with_pkgconfigdir='${libdir}/pkgconfig'
5644 fi
5645
5646 pkgconfigdir=$with_pkgconfigdir
5647
5648
5649
5650
5651
5652
5653 GIT=${GIT-"${am_missing_run}git"}
5654
5655
5656 GPERF=${GPERF-"${am_missing_run}gperf"}
5657
5658
5659
5660
5661
5662
5663
5664         if test -n "$PYTHON"; then
5665       # If the user set $PYTHON, use it and don't search something else.
5666       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
5667 printf %s "checking whether $PYTHON version is >= 3... " >&6; }
5668       prog="import sys
5669 # split strings by '.' and convert to numeric.  Append some zeros
5670 # because we need at least 4 digits for the hex conversion.
5671 # map returns an iterator in Python 3.0 and a list in 2.x
5672 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5673 minverhex = 0
5674 # xrange is not present in Python 3.0 and range returns an iterator
5675 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5676 sys.exit(sys.hexversion < minverhex)"
5677   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5678    ($PYTHON -c "$prog") >&5 2>&5
5679    ac_status=$?
5680    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681    (exit $ac_status); }
5682 then :
5683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684 printf "%s\n" "yes" >&6; }
5685 else $as_nop
5686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 printf "%s\n" "no" >&6; }
5688                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5689 fi
5690       am_display_PYTHON=$PYTHON
5691     else
5692       # Otherwise, try each interpreter until we find one that satisfies
5693       # VERSION.
5694       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
5695 printf %s "checking for a Python interpreter with version >= 3... " >&6; }
5696 if test ${am_cv_pathless_PYTHON+y}
5697 then :
5698   printf %s "(cached) " >&6
5699 else $as_nop
5700
5701         for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
5702           test "$am_cv_pathless_PYTHON" = none && break
5703           prog="import sys
5704 # split strings by '.' and convert to numeric.  Append some zeros
5705 # because we need at least 4 digits for the hex conversion.
5706 # map returns an iterator in Python 3.0 and a list in 2.x
5707 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5708 minverhex = 0
5709 # xrange is not present in Python 3.0 and range returns an iterator
5710 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5711 sys.exit(sys.hexversion < minverhex)"
5712   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5713    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5714    ac_status=$?
5715    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716    (exit $ac_status); }
5717 then :
5718   break
5719 fi
5720         done
5721 fi
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5723 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5724       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5725       if test "$am_cv_pathless_PYTHON" = none; then
5726         PYTHON=:
5727       else
5728         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5729 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 printf %s "checking for $ac_word... " >&6; }
5732 if test ${ac_cv_path_PYTHON+y}
5733 then :
5734   printf %s "(cached) " >&6
5735 else $as_nop
5736   case $PYTHON in
5737   [\\/]* | ?:[\\/]*)
5738   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5739   ;;
5740   *)
5741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   case $as_dir in #(((
5746     '') as_dir=./ ;;
5747     */) ;;
5748     *) as_dir=$as_dir/ ;;
5749   esac
5750     for ac_exec_ext in '' $ac_executable_extensions; do
5751   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5752     ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5753     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5754     break 2
5755   fi
5756 done
5757   done
5758 IFS=$as_save_IFS
5759
5760   ;;
5761 esac
5762 fi
5763 PYTHON=$ac_cv_path_PYTHON
5764 if test -n "$PYTHON"; then
5765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5766 printf "%s\n" "$PYTHON" >&6; }
5767 else
5768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 printf "%s\n" "no" >&6; }
5770 fi
5771
5772
5773       fi
5774       am_display_PYTHON=$am_cv_pathless_PYTHON
5775     fi
5776
5777
5778   if test "$PYTHON" = :; then
5779         as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5780   else
5781
5782               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5783 printf %s "checking for $am_display_PYTHON version... " >&6; }
5784 if test ${am_cv_python_version+y}
5785 then :
5786   printf %s "(cached) " >&6
5787 else $as_nop
5788   am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
5789 fi
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5791 printf "%s\n" "$am_cv_python_version" >&6; }
5792   PYTHON_VERSION=$am_cv_python_version
5793
5794
5795         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5796 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5797 if test ${am_cv_python_platform+y}
5798 then :
5799   printf %s "(cached) " >&6
5800 else $as_nop
5801   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5802 fi
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5804 printf "%s\n" "$am_cv_python_platform" >&6; }
5805   PYTHON_PLATFORM=$am_cv_python_platform
5806
5807
5808                             if test "x$prefix" = xNONE; then
5809     am__usable_prefix=$ac_default_prefix
5810   else
5811     am__usable_prefix=$prefix
5812   fi
5813
5814   # Allow user to request using sys.* values from Python,
5815   # instead of the GNU $prefix values.
5816
5817 # Check whether --with-python-sys-prefix was given.
5818 if test ${with_python_sys_prefix+y}
5819 then :
5820   withval=$with_python_sys_prefix; am_use_python_sys=:
5821 else $as_nop
5822   am_use_python_sys=false
5823 fi
5824
5825
5826   # Allow user to override whatever the default Python prefix is.
5827
5828 # Check whether --with-python_prefix was given.
5829 if test ${with_python_prefix+y}
5830 then :
5831   withval=$with_python_prefix; am_python_prefix_subst=$withval
5832    am_cv_python_prefix=$withval
5833    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
5834 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
5835    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5836 printf "%s\n" "$am_cv_python_prefix" >&6; }
5837 else $as_nop
5838
5839    if $am_use_python_sys; then
5840      # using python sys.prefix value, not GNU
5841      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
5842 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
5843 if test ${am_cv_python_prefix+y}
5844 then :
5845   printf %s "(cached) " >&6
5846 else $as_nop
5847   am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
5848 fi
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5850 printf "%s\n" "$am_cv_python_prefix" >&6; }
5851
5852                case $am_cv_python_prefix in
5853      $am__usable_prefix*)
5854        am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
5855        am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
5856        ;;
5857      *)
5858        am_python_prefix_subst=$am_cv_python_prefix
5859        ;;
5860      esac
5861    else # using GNU prefix value, not python sys.prefix
5862      am_python_prefix_subst='${prefix}'
5863      am_python_prefix=$am_python_prefix_subst
5864      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
5865 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
5866      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
5867 printf "%s\n" "$am_python_prefix" >&6; }
5868    fi
5869 fi
5870
5871   # Substituting python_prefix_subst value.
5872   PYTHON_PREFIX=$am_python_prefix_subst
5873
5874
5875   # emacs-page Now do it all over again for Python exec_prefix, but with yet
5876   # another conditional: fall back to regular prefix if that was specified.
5877
5878 # Check whether --with-python_exec_prefix was given.
5879 if test ${with_python_exec_prefix+y}
5880 then :
5881   withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
5882    am_cv_python_exec_prefix=$withval
5883    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
5884 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
5885    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5886 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5887 else $as_nop
5888
5889    # no explicit --with-python_exec_prefix, but if
5890    # --with-python_prefix was given, use its value for python_exec_prefix too.
5891    if test -n "$with_python_prefix"
5892 then :
5893   am_python_exec_prefix_subst=$with_python_prefix
5894     am_cv_python_exec_prefix=$with_python_prefix
5895     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
5896 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
5897     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5898 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5899 else $as_nop
5900
5901     # Set am__usable_exec_prefix whether using GNU or Python values,
5902     # since we use that variable for pyexecdir.
5903     if test "x$exec_prefix" = xNONE; then
5904       am__usable_exec_prefix=$am__usable_prefix
5905     else
5906       am__usable_exec_prefix=$exec_prefix
5907     fi
5908     #
5909     if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
5910       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
5911 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
5912 if test ${am_cv_python_exec_prefix+y}
5913 then :
5914   printf %s "(cached) " >&6
5915 else $as_nop
5916   am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
5917 fi
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5919 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5920                         case $am_cv_python_exec_prefix in
5921       $am__usable_exec_prefix*)
5922         am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
5923         am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
5924         ;;
5925       *)
5926         am_python_exec_prefix_subst=$am_cv_python_exec_prefix
5927         ;;
5928      esac
5929    else # using GNU $exec_prefix, not python sys.exec_prefix
5930      am_python_exec_prefix_subst='${exec_prefix}'
5931      am_python_exec_prefix=$am_python_exec_prefix_subst
5932      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
5933 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
5934      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
5935 printf "%s\n" "$am_python_exec_prefix" >&6; }
5936    fi
5937 fi
5938 fi
5939
5940   # Substituting python_exec_prefix_subst.
5941   PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5942
5943
5944   # Factor out some code duplication into this shell variable.
5945   am_python_setup_sysconfig="\
5946 import sys
5947 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5948 # with python 3.x.  See automake bug#10227.
5949 try:
5950     import sysconfig
5951 except ImportError:
5952     can_use_sysconfig = 0
5953 else:
5954     can_use_sysconfig = 1
5955 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5956 # <https://github.com/pypa/virtualenv/issues/118>
5957 try:
5958     from platform import python_implementation
5959     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5960         can_use_sysconfig = 0
5961 except ImportError:
5962     pass"
5963
5964
5965               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
5966 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
5967 if test ${am_cv_python_pythondir+y}
5968 then :
5969   printf %s "(cached) " >&6
5970 else $as_nop
5971   if test "x$am_cv_python_prefix" = x; then
5972      am_py_prefix=$am__usable_prefix
5973    else
5974      am_py_prefix=$am_cv_python_prefix
5975    fi
5976    am_cv_python_pythondir=`$PYTHON -c "
5977 $am_python_setup_sysconfig
5978 if can_use_sysconfig:
5979   sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5980 else:
5981   from distutils import sysconfig
5982   sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5983 sys.stdout.write(sitedir)"`
5984    #
5985    case $am_cv_python_pythondir in
5986    $am_py_prefix*)
5987      am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5988      am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
5989      ;;
5990    *)
5991      case $am_py_prefix in
5992        /usr|/System*) ;;
5993        *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
5994           ;;
5995      esac
5996      ;;
5997    esac
5998
5999 fi
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6001 printf "%s\n" "$am_cv_python_pythondir" >&6; }
6002   pythondir=$am_cv_python_pythondir
6003
6004
6005           pkgpythondir=\${pythondir}/$PACKAGE
6006
6007
6008           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
6009 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
6010 if test ${am_cv_python_pyexecdir+y}
6011 then :
6012   printf %s "(cached) " >&6
6013 else $as_nop
6014   if test "x$am_cv_python_exec_prefix" = x; then
6015      am_py_exec_prefix=$am__usable_exec_prefix
6016    else
6017      am_py_exec_prefix=$am_cv_python_exec_prefix
6018    fi
6019    am_cv_python_pyexecdir=`$PYTHON -c "
6020 $am_python_setup_sysconfig
6021 if can_use_sysconfig:
6022   sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
6023 else:
6024   from distutils import sysconfig
6025   sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
6026 sys.stdout.write(sitedir)"`
6027    #
6028    case $am_cv_python_pyexecdir in
6029    $am_py_exec_prefix*)
6030      am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6031      am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
6032      ;;
6033    *)
6034      case $am_py_exec_prefix in
6035        /usr|/System*) ;;
6036        *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
6037           ;;
6038      esac
6039      ;;
6040    esac
6041
6042 fi
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6044 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
6045   pyexecdir=$am_cv_python_pyexecdir
6046
6047
6048       pkgpyexecdir=\${pyexecdir}/$PACKAGE
6049
6050
6051
6052   fi
6053
6054
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
6056 printf %s "checking for RM macro... " >&6; }
6057 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
6058 if test "x$_predefined_rm" = "x"; then
6059         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
6060 printf "%s\n" "no predefined RM" >&6; }
6061         # Extract the first word of "rm", so it can be a program name with args.
6062 set dummy rm; ac_word=$2
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 printf %s "checking for $ac_word... " >&6; }
6065 if test ${ac_cv_prog_RM+y}
6066 then :
6067   printf %s "(cached) " >&6
6068 else $as_nop
6069   if test -n "$RM"; then
6070   ac_cv_prog_RM="$RM" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075   IFS=$as_save_IFS
6076   case $as_dir in #(((
6077     '') as_dir=./ ;;
6078     */) ;;
6079     *) as_dir=$as_dir/ ;;
6080   esac
6081     for ac_exec_ext in '' $ac_executable_extensions; do
6082   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6083     ac_cv_prog_RM="rm -f"
6084     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088   done
6089 IFS=$as_save_IFS
6090
6091 fi
6092 fi
6093 RM=$ac_cv_prog_RM
6094 if test -n "$RM"; then
6095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6096 printf "%s\n" "$RM" >&6; }
6097 else
6098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 printf "%s\n" "no" >&6; }
6100 fi
6101
6102
6103 else
6104         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
6105 printf "%s\n" "$_predefined_rm" >&6; }
6106 fi
6107
6108
6109 case `pwd` in
6110   *\ * | *\     *)
6111     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6112 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6113 esac
6114
6115
6116
6117 macro_version='2.4.7'
6118 macro_revision='2.4.7'
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133 ltmain=$ac_aux_dir/ltmain.sh
6134
6135
6136
6137   # Make sure we can run config.sub.
6138 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6139   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6140
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6142 printf %s "checking build system type... " >&6; }
6143 if test ${ac_cv_build+y}
6144 then :
6145   printf %s "(cached) " >&6
6146 else $as_nop
6147   ac_build_alias=$build_alias
6148 test "x$ac_build_alias" = x &&
6149   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6150 test "x$ac_build_alias" = x &&
6151   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6152 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6153   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6154
6155 fi
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6157 printf "%s\n" "$ac_cv_build" >&6; }
6158 case $ac_cv_build in
6159 *-*-*) ;;
6160 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6161 esac
6162 build=$ac_cv_build
6163 ac_save_IFS=$IFS; IFS='-'
6164 set x $ac_cv_build
6165 shift
6166 build_cpu=$1
6167 build_vendor=$2
6168 shift; shift
6169 # Remember, the first character of IFS is used to create $*,
6170 # except with old shells:
6171 build_os=$*
6172 IFS=$ac_save_IFS
6173 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6174
6175
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6177 printf %s "checking host system type... " >&6; }
6178 if test ${ac_cv_host+y}
6179 then :
6180   printf %s "(cached) " >&6
6181 else $as_nop
6182   if test "x$host_alias" = x; then
6183   ac_cv_host=$ac_cv_build
6184 else
6185   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6186     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6187 fi
6188
6189 fi
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6191 printf "%s\n" "$ac_cv_host" >&6; }
6192 case $ac_cv_host in
6193 *-*-*) ;;
6194 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6195 esac
6196 host=$ac_cv_host
6197 ac_save_IFS=$IFS; IFS='-'
6198 set x $ac_cv_host
6199 shift
6200 host_cpu=$1
6201 host_vendor=$2
6202 shift; shift
6203 # Remember, the first character of IFS is used to create $*,
6204 # except with old shells:
6205 host_os=$*
6206 IFS=$ac_save_IFS
6207 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6208
6209
6210 # Backslashify metacharacters that are still active within
6211 # double-quoted strings.
6212 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6213
6214 # Same as above, but do not quote variable references.
6215 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6216
6217 # Sed substitution to delay expansion of an escaped shell variable in a
6218 # double_quote_subst'ed string.
6219 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6220
6221 # Sed substitution to delay expansion of an escaped single quote.
6222 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6223
6224 # Sed substitution to avoid accidental globbing in evaled expressions
6225 no_glob_subst='s/\*/\\\*/g'
6226
6227 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6228 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6229 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6230
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6232 printf %s "checking how to print strings... " >&6; }
6233 # Test print first, because it will be a builtin if present.
6234 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6235    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6236   ECHO='print -r --'
6237 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6238   ECHO='printf %s\n'
6239 else
6240   # Use this function as a fallback that always works.
6241   func_fallback_echo ()
6242   {
6243     eval 'cat <<_LTECHO_EOF
6244 $1
6245 _LTECHO_EOF'
6246   }
6247   ECHO='func_fallback_echo'
6248 fi
6249
6250 # func_echo_all arg...
6251 # Invoke $ECHO with all args, space-separated.
6252 func_echo_all ()
6253 {
6254     $ECHO ""
6255 }
6256
6257 case $ECHO in
6258   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6259 printf "%s\n" "printf" >&6; } ;;
6260   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6261 printf "%s\n" "print -r" >&6; } ;;
6262   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6263 printf "%s\n" "cat" >&6; } ;;
6264 esac
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6280 printf %s "checking for a sed that does not truncate output... " >&6; }
6281 if test ${ac_cv_path_SED+y}
6282 then :
6283   printf %s "(cached) " >&6
6284 else $as_nop
6285             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6286      for ac_i in 1 2 3 4 5 6 7; do
6287        ac_script="$ac_script$as_nl$ac_script"
6288      done
6289      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6290      { ac_script=; unset ac_script;}
6291      if test -z "$SED"; then
6292   ac_path_SED_found=false
6293   # Loop through the user's path and test for each of PROGNAME-LIST
6294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   case $as_dir in #(((
6299     '') as_dir=./ ;;
6300     */) ;;
6301     *) as_dir=$as_dir/ ;;
6302   esac
6303     for ac_prog in sed gsed
6304    do
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6307       as_fn_executable_p "$ac_path_SED" || continue
6308 # Check for GNU ac_path_SED and select it if it is found.
6309   # Check for GNU $ac_path_SED
6310 case `"$ac_path_SED" --version 2>&1` in
6311 *GNU*)
6312   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6313 *)
6314   ac_count=0
6315   printf %s 0123456789 >"conftest.in"
6316   while :
6317   do
6318     cat "conftest.in" "conftest.in" >"conftest.tmp"
6319     mv "conftest.tmp" "conftest.in"
6320     cp "conftest.in" "conftest.nl"
6321     printf "%s\n" '' >> "conftest.nl"
6322     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6323     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6324     as_fn_arith $ac_count + 1 && ac_count=$as_val
6325     if test $ac_count -gt ${ac_path_SED_max-0}; then
6326       # Best one so far, save it but keep looking for a better one
6327       ac_cv_path_SED="$ac_path_SED"
6328       ac_path_SED_max=$ac_count
6329     fi
6330     # 10*(2^10) chars as input seems more than enough
6331     test $ac_count -gt 10 && break
6332   done
6333   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6334 esac
6335
6336       $ac_path_SED_found && break 3
6337     done
6338   done
6339   done
6340 IFS=$as_save_IFS
6341   if test -z "$ac_cv_path_SED"; then
6342     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6343   fi
6344 else
6345   ac_cv_path_SED=$SED
6346 fi
6347
6348 fi
6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6350 printf "%s\n" "$ac_cv_path_SED" >&6; }
6351  SED="$ac_cv_path_SED"
6352   rm -f conftest.sed
6353
6354 test -z "$SED" && SED=sed
6355 Xsed="$SED -e 1s/^X//"
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6368 printf %s "checking for grep that handles long lines and -e... " >&6; }
6369 if test ${ac_cv_path_GREP+y}
6370 then :
6371   printf %s "(cached) " >&6
6372 else $as_nop
6373   if test -z "$GREP"; then
6374   ac_path_GREP_found=false
6375   # Loop through the user's path and test for each of PROGNAME-LIST
6376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6378 do
6379   IFS=$as_save_IFS
6380   case $as_dir in #(((
6381     '') as_dir=./ ;;
6382     */) ;;
6383     *) as_dir=$as_dir/ ;;
6384   esac
6385     for ac_prog in grep ggrep
6386    do
6387     for ac_exec_ext in '' $ac_executable_extensions; do
6388       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6389       as_fn_executable_p "$ac_path_GREP" || continue
6390 # Check for GNU ac_path_GREP and select it if it is found.
6391   # Check for GNU $ac_path_GREP
6392 case `"$ac_path_GREP" --version 2>&1` in
6393 *GNU*)
6394   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6395 *)
6396   ac_count=0
6397   printf %s 0123456789 >"conftest.in"
6398   while :
6399   do
6400     cat "conftest.in" "conftest.in" >"conftest.tmp"
6401     mv "conftest.tmp" "conftest.in"
6402     cp "conftest.in" "conftest.nl"
6403     printf "%s\n" 'GREP' >> "conftest.nl"
6404     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6405     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6406     as_fn_arith $ac_count + 1 && ac_count=$as_val
6407     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6408       # Best one so far, save it but keep looking for a better one
6409       ac_cv_path_GREP="$ac_path_GREP"
6410       ac_path_GREP_max=$ac_count
6411     fi
6412     # 10*(2^10) chars as input seems more than enough
6413     test $ac_count -gt 10 && break
6414   done
6415   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6416 esac
6417
6418       $ac_path_GREP_found && break 3
6419     done
6420   done
6421   done
6422 IFS=$as_save_IFS
6423   if test -z "$ac_cv_path_GREP"; then
6424     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6425   fi
6426 else
6427   ac_cv_path_GREP=$GREP
6428 fi
6429
6430 fi
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6432 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6433  GREP="$ac_cv_path_GREP"
6434
6435
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6437 printf %s "checking for egrep... " >&6; }
6438 if test ${ac_cv_path_EGREP+y}
6439 then :
6440   printf %s "(cached) " >&6
6441 else $as_nop
6442   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6443    then ac_cv_path_EGREP="$GREP -E"
6444    else
6445      if test -z "$EGREP"; then
6446   ac_path_EGREP_found=false
6447   # Loop through the user's path and test for each of PROGNAME-LIST
6448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6450 do
6451   IFS=$as_save_IFS
6452   case $as_dir in #(((
6453     '') as_dir=./ ;;
6454     */) ;;
6455     *) as_dir=$as_dir/ ;;
6456   esac
6457     for ac_prog in egrep
6458    do
6459     for ac_exec_ext in '' $ac_executable_extensions; do
6460       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6461       as_fn_executable_p "$ac_path_EGREP" || continue
6462 # Check for GNU ac_path_EGREP and select it if it is found.
6463   # Check for GNU $ac_path_EGREP
6464 case `"$ac_path_EGREP" --version 2>&1` in
6465 *GNU*)
6466   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6467 *)
6468   ac_count=0
6469   printf %s 0123456789 >"conftest.in"
6470   while :
6471   do
6472     cat "conftest.in" "conftest.in" >"conftest.tmp"
6473     mv "conftest.tmp" "conftest.in"
6474     cp "conftest.in" "conftest.nl"
6475     printf "%s\n" 'EGREP' >> "conftest.nl"
6476     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6477     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6478     as_fn_arith $ac_count + 1 && ac_count=$as_val
6479     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6480       # Best one so far, save it but keep looking for a better one
6481       ac_cv_path_EGREP="$ac_path_EGREP"
6482       ac_path_EGREP_max=$ac_count
6483     fi
6484     # 10*(2^10) chars as input seems more than enough
6485     test $ac_count -gt 10 && break
6486   done
6487   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6488 esac
6489
6490       $ac_path_EGREP_found && break 3
6491     done
6492   done
6493   done
6494 IFS=$as_save_IFS
6495   if test -z "$ac_cv_path_EGREP"; then
6496     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6497   fi
6498 else
6499   ac_cv_path_EGREP=$EGREP
6500 fi
6501
6502    fi
6503 fi
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6505 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6506  EGREP="$ac_cv_path_EGREP"
6507
6508
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6510 printf %s "checking for fgrep... " >&6; }
6511 if test ${ac_cv_path_FGREP+y}
6512 then :
6513   printf %s "(cached) " >&6
6514 else $as_nop
6515   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6516    then ac_cv_path_FGREP="$GREP -F"
6517    else
6518      if test -z "$FGREP"; then
6519   ac_path_FGREP_found=false
6520   # Loop through the user's path and test for each of PROGNAME-LIST
6521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6523 do
6524   IFS=$as_save_IFS
6525   case $as_dir in #(((
6526     '') as_dir=./ ;;
6527     */) ;;
6528     *) as_dir=$as_dir/ ;;
6529   esac
6530     for ac_prog in fgrep
6531    do
6532     for ac_exec_ext in '' $ac_executable_extensions; do
6533       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6534       as_fn_executable_p "$ac_path_FGREP" || continue
6535 # Check for GNU ac_path_FGREP and select it if it is found.
6536   # Check for GNU $ac_path_FGREP
6537 case `"$ac_path_FGREP" --version 2>&1` in
6538 *GNU*)
6539   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6540 *)
6541   ac_count=0
6542   printf %s 0123456789 >"conftest.in"
6543   while :
6544   do
6545     cat "conftest.in" "conftest.in" >"conftest.tmp"
6546     mv "conftest.tmp" "conftest.in"
6547     cp "conftest.in" "conftest.nl"
6548     printf "%s\n" 'FGREP' >> "conftest.nl"
6549     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6550     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6551     as_fn_arith $ac_count + 1 && ac_count=$as_val
6552     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6553       # Best one so far, save it but keep looking for a better one
6554       ac_cv_path_FGREP="$ac_path_FGREP"
6555       ac_path_FGREP_max=$ac_count
6556     fi
6557     # 10*(2^10) chars as input seems more than enough
6558     test $ac_count -gt 10 && break
6559   done
6560   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6561 esac
6562
6563       $ac_path_FGREP_found && break 3
6564     done
6565   done
6566   done
6567 IFS=$as_save_IFS
6568   if test -z "$ac_cv_path_FGREP"; then
6569     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6570   fi
6571 else
6572   ac_cv_path_FGREP=$FGREP
6573 fi
6574
6575    fi
6576 fi
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6578 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6579  FGREP="$ac_cv_path_FGREP"
6580
6581
6582 test -z "$GREP" && GREP=grep
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602 # Check whether --with-gnu-ld was given.
6603 if test ${with_gnu_ld+y}
6604 then :
6605   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6606 else $as_nop
6607   with_gnu_ld=no
6608 fi
6609
6610 ac_prog=ld
6611 if test yes = "$GCC"; then
6612   # Check if gcc -print-prog-name=ld gives a path.
6613   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6614 printf %s "checking for ld used by $CC... " >&6; }
6615   case $host in
6616   *-*-mingw*)
6617     # gcc leaves a trailing carriage return, which upsets mingw
6618     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6619   *)
6620     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6621   esac
6622   case $ac_prog in
6623     # Accept absolute paths.
6624     [\\/]* | ?:[\\/]*)
6625       re_direlt='/[^/][^/]*/\.\./'
6626       # Canonicalize the pathname of ld
6627       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6628       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6629         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6630       done
6631       test -z "$LD" && LD=$ac_prog
6632       ;;
6633   "")
6634     # If it fails, then pretend we aren't using GCC.
6635     ac_prog=ld
6636     ;;
6637   *)
6638     # If it is relative, then search for the first ld in PATH.
6639     with_gnu_ld=unknown
6640     ;;
6641   esac
6642 elif test yes = "$with_gnu_ld"; then
6643   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6644 printf %s "checking for GNU ld... " >&6; }
6645 else
6646   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6647 printf %s "checking for non-GNU ld... " >&6; }
6648 fi
6649 if test ${lt_cv_path_LD+y}
6650 then :
6651   printf %s "(cached) " >&6
6652 else $as_nop
6653   if test -z "$LD"; then
6654   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6655   for ac_dir in $PATH; do
6656     IFS=$lt_save_ifs
6657     test -z "$ac_dir" && ac_dir=.
6658     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6659       lt_cv_path_LD=$ac_dir/$ac_prog
6660       # Check to see if the program is GNU ld.  I'd rather use --version,
6661       # but apparently some variants of GNU ld only accept -v.
6662       # Break only if it was the GNU/non-GNU ld that we prefer.
6663       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6664       *GNU* | *'with BFD'*)
6665         test no != "$with_gnu_ld" && break
6666         ;;
6667       *)
6668         test yes != "$with_gnu_ld" && break
6669         ;;
6670       esac
6671     fi
6672   done
6673   IFS=$lt_save_ifs
6674 else
6675   lt_cv_path_LD=$LD # Let the user override the test with a path.
6676 fi
6677 fi
6678
6679 LD=$lt_cv_path_LD
6680 if test -n "$LD"; then
6681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6682 printf "%s\n" "$LD" >&6; }
6683 else
6684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 printf "%s\n" "no" >&6; }
6686 fi
6687 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6689 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6690 if test ${lt_cv_prog_gnu_ld+y}
6691 then :
6692   printf %s "(cached) " >&6
6693 else $as_nop
6694   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6695 case `$LD -v 2>&1 </dev/null` in
6696 *GNU* | *'with BFD'*)
6697   lt_cv_prog_gnu_ld=yes
6698   ;;
6699 *)
6700   lt_cv_prog_gnu_ld=no
6701   ;;
6702 esac
6703 fi
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6705 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6706 with_gnu_ld=$lt_cv_prog_gnu_ld
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6717 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6718 if test ${lt_cv_path_NM+y}
6719 then :
6720   printf %s "(cached) " >&6
6721 else $as_nop
6722   if test -n "$NM"; then
6723   # Let the user override the test.
6724   lt_cv_path_NM=$NM
6725 else
6726   lt_nm_to_check=${ac_tool_prefix}nm
6727   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6728     lt_nm_to_check="$lt_nm_to_check nm"
6729   fi
6730   for lt_tmp_nm in $lt_nm_to_check; do
6731     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6732     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6733       IFS=$lt_save_ifs
6734       test -z "$ac_dir" && ac_dir=.
6735       tmp_nm=$ac_dir/$lt_tmp_nm
6736       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6737         # Check to see if the nm accepts a BSD-compat flag.
6738         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6739         #   nm: unknown option "B" ignored
6740         # Tru64's nm complains that /dev/null is an invalid object file
6741         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6742         case $build_os in
6743         mingw*) lt_bad_file=conftest.nm/nofile ;;
6744         *) lt_bad_file=/dev/null ;;
6745         esac
6746         case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6747         *$lt_bad_file* | *'Invalid file or object type'*)
6748           lt_cv_path_NM="$tmp_nm -B"
6749           break 2
6750           ;;
6751         *)
6752           case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6753           */dev/null*)
6754             lt_cv_path_NM="$tmp_nm -p"
6755             break 2
6756             ;;
6757           *)
6758             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6759             continue # so that we can try to find one that supports BSD flags
6760             ;;
6761           esac
6762           ;;
6763         esac
6764       fi
6765     done
6766     IFS=$lt_save_ifs
6767   done
6768   : ${lt_cv_path_NM=no}
6769 fi
6770 fi
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6772 printf "%s\n" "$lt_cv_path_NM" >&6; }
6773 if test no != "$lt_cv_path_NM"; then
6774   NM=$lt_cv_path_NM
6775 else
6776   # Didn't find any BSD compatible name lister, look for dumpbin.
6777   if test -n "$DUMPBIN"; then :
6778     # Let the user override the test.
6779   else
6780     if test -n "$ac_tool_prefix"; then
6781   for ac_prog in dumpbin "link -dump"
6782   do
6783     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 printf %s "checking for $ac_word... " >&6; }
6787 if test ${ac_cv_prog_DUMPBIN+y}
6788 then :
6789   printf %s "(cached) " >&6
6790 else $as_nop
6791   if test -n "$DUMPBIN"; then
6792   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   case $as_dir in #(((
6799     '') as_dir=./ ;;
6800     */) ;;
6801     *) as_dir=$as_dir/ ;;
6802   esac
6803     for ac_exec_ext in '' $ac_executable_extensions; do
6804   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6805     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6806     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6807     break 2
6808   fi
6809 done
6810   done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 DUMPBIN=$ac_cv_prog_DUMPBIN
6816 if test -n "$DUMPBIN"; then
6817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6818 printf "%s\n" "$DUMPBIN" >&6; }
6819 else
6820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 printf "%s\n" "no" >&6; }
6822 fi
6823
6824
6825     test -n "$DUMPBIN" && break
6826   done
6827 fi
6828 if test -z "$DUMPBIN"; then
6829   ac_ct_DUMPBIN=$DUMPBIN
6830   for ac_prog in dumpbin "link -dump"
6831 do
6832   # Extract the first word of "$ac_prog", so it can be a program name with args.
6833 set dummy $ac_prog; ac_word=$2
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 printf %s "checking for $ac_word... " >&6; }
6836 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6837 then :
6838   printf %s "(cached) " >&6
6839 else $as_nop
6840   if test -n "$ac_ct_DUMPBIN"; then
6841   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   case $as_dir in #(((
6848     '') as_dir=./ ;;
6849     */) ;;
6850     *) as_dir=$as_dir/ ;;
6851   esac
6852     for ac_exec_ext in '' $ac_executable_extensions; do
6853   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6854     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6855     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859   done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6865 if test -n "$ac_ct_DUMPBIN"; then
6866   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6867 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6868 else
6869   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 printf "%s\n" "no" >&6; }
6871 fi
6872
6873
6874   test -n "$ac_ct_DUMPBIN" && break
6875 done
6876
6877   if test "x$ac_ct_DUMPBIN" = x; then
6878     DUMPBIN=":"
6879   else
6880     case $cross_compiling:$ac_tool_warned in
6881 yes:)
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6885 esac
6886     DUMPBIN=$ac_ct_DUMPBIN
6887   fi
6888 fi
6889
6890     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6891     *COFF*)
6892       DUMPBIN="$DUMPBIN -symbols -headers"
6893       ;;
6894     *)
6895       DUMPBIN=:
6896       ;;
6897     esac
6898   fi
6899
6900   if test : != "$DUMPBIN"; then
6901     NM=$DUMPBIN
6902   fi
6903 fi
6904 test -z "$NM" && NM=nm
6905
6906
6907
6908
6909
6910
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6912 printf %s "checking the name lister ($NM) interface... " >&6; }
6913 if test ${lt_cv_nm_interface+y}
6914 then :
6915   printf %s "(cached) " >&6
6916 else $as_nop
6917   lt_cv_nm_interface="BSD nm"
6918   echo "int some_variable = 0;" > conftest.$ac_ext
6919   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6920   (eval "$ac_compile" 2>conftest.err)
6921   cat conftest.err >&5
6922   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6923   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6924   cat conftest.err >&5
6925   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6926   cat conftest.out >&5
6927   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6928     lt_cv_nm_interface="MS dumpbin"
6929   fi
6930   rm -f conftest*
6931 fi
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6933 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6934
6935 # find the maximum length of command line arguments
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6937 printf %s "checking the maximum length of command line arguments... " >&6; }
6938 if test ${lt_cv_sys_max_cmd_len+y}
6939 then :
6940   printf %s "(cached) " >&6
6941 else $as_nop
6942     i=0
6943   teststring=ABCD
6944
6945   case $build_os in
6946   msdosdjgpp*)
6947     # On DJGPP, this test can blow up pretty badly due to problems in libc
6948     # (any single argument exceeding 2000 bytes causes a buffer overrun
6949     # during glob expansion).  Even if it were fixed, the result of this
6950     # check would be larger than it should be.
6951     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6952     ;;
6953
6954   gnu*)
6955     # Under GNU Hurd, this test is not required because there is
6956     # no limit to the length of command line arguments.
6957     # Libtool will interpret -1 as no limit whatsoever
6958     lt_cv_sys_max_cmd_len=-1;
6959     ;;
6960
6961   cygwin* | mingw* | cegcc*)
6962     # On Win9x/ME, this test blows up -- it succeeds, but takes
6963     # about 5 minutes as the teststring grows exponentially.
6964     # Worse, since 9x/ME are not pre-emptively multitasking,
6965     # you end up with a "frozen" computer, even though with patience
6966     # the test eventually succeeds (with a max line length of 256k).
6967     # Instead, let's just punt: use the minimum linelength reported by
6968     # all of the supported platforms: 8192 (on NT/2K/XP).
6969     lt_cv_sys_max_cmd_len=8192;
6970     ;;
6971
6972   mint*)
6973     # On MiNT this can take a long time and run out of memory.
6974     lt_cv_sys_max_cmd_len=8192;
6975     ;;
6976
6977   amigaos*)
6978     # On AmigaOS with pdksh, this test takes hours, literally.
6979     # So we just punt and use a minimum line length of 8192.
6980     lt_cv_sys_max_cmd_len=8192;
6981     ;;
6982
6983   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6984     # This has been around since 386BSD, at least.  Likely further.
6985     if test -x /sbin/sysctl; then
6986       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6987     elif test -x /usr/sbin/sysctl; then
6988       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6989     else
6990       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6991     fi
6992     # And add a safety zone
6993     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6994     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6995     ;;
6996
6997   interix*)
6998     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6999     lt_cv_sys_max_cmd_len=196608
7000     ;;
7001
7002   os2*)
7003     # The test takes a long time on OS/2.
7004     lt_cv_sys_max_cmd_len=8192
7005     ;;
7006
7007   osf*)
7008     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7009     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7010     # nice to cause kernel panics so lets avoid the loop below.
7011     # First set a reasonable default.
7012     lt_cv_sys_max_cmd_len=16384
7013     #
7014     if test -x /sbin/sysconfig; then
7015       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7016         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7017       esac
7018     fi
7019     ;;
7020   sco3.2v5*)
7021     lt_cv_sys_max_cmd_len=102400
7022     ;;
7023   sysv5* | sco5v6* | sysv4.2uw2*)
7024     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7025     if test -n "$kargmax"; then
7026       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
7027     else
7028       lt_cv_sys_max_cmd_len=32768
7029     fi
7030     ;;
7031   *)
7032     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7033     if test -n "$lt_cv_sys_max_cmd_len" && \
7034        test undefined != "$lt_cv_sys_max_cmd_len"; then
7035       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7036       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7037     else
7038       # Make teststring a little bigger before we do anything with it.
7039       # a 1K string should be a reasonable start.
7040       for i in 1 2 3 4 5 6 7 8; do
7041         teststring=$teststring$teststring
7042       done
7043       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7044       # If test is not a shell built-in, we'll probably end up computing a
7045       # maximum length that is only half of the actual maximum length, but
7046       # we can't tell.
7047       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7048                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7049               test 17 != "$i" # 1/2 MB should be enough
7050       do
7051         i=`expr $i + 1`
7052         teststring=$teststring$teststring
7053       done
7054       # Only check the string length outside the loop.
7055       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7056       teststring=
7057       # Add a significant safety factor because C++ compilers can tack on
7058       # massive amounts of additional arguments before passing them to the
7059       # linker.  It appears as though 1/2 is a usable value.
7060       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7061     fi
7062     ;;
7063   esac
7064
7065 fi
7066
7067 if test -n "$lt_cv_sys_max_cmd_len"; then
7068   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7069 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7070 else
7071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7072 printf "%s\n" "none" >&6; }
7073 fi
7074 max_cmd_len=$lt_cv_sys_max_cmd_len
7075
7076
7077
7078
7079
7080
7081 : ${CP="cp -f"}
7082 : ${MV="mv -f"}
7083 : ${RM="rm -f"}
7084
7085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7086   lt_unset=unset
7087 else
7088   lt_unset=false
7089 fi
7090
7091
7092
7093
7094
7095 # test EBCDIC or ASCII
7096 case `echo X|tr X '\101'` in
7097  A) # ASCII based system
7098     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7099   lt_SP2NL='tr \040 \012'
7100   lt_NL2SP='tr \015\012 \040\040'
7101   ;;
7102  *) # EBCDIC based system
7103   lt_SP2NL='tr \100 \n'
7104   lt_NL2SP='tr \r\n \100\100'
7105   ;;
7106 esac
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7117 printf %s "checking how to convert $build file names to $host format... " >&6; }
7118 if test ${lt_cv_to_host_file_cmd+y}
7119 then :
7120   printf %s "(cached) " >&6
7121 else $as_nop
7122   case $host in
7123   *-*-mingw* )
7124     case $build in
7125       *-*-mingw* ) # actually msys
7126         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7127         ;;
7128       *-*-cygwin* )
7129         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7130         ;;
7131       * ) # otherwise, assume *nix
7132         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7133         ;;
7134     esac
7135     ;;
7136   *-*-cygwin* )
7137     case $build in
7138       *-*-mingw* ) # actually msys
7139         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7140         ;;
7141       *-*-cygwin* )
7142         lt_cv_to_host_file_cmd=func_convert_file_noop
7143         ;;
7144       * ) # otherwise, assume *nix
7145         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7146         ;;
7147     esac
7148     ;;
7149   * ) # unhandled hosts (and "normal" native builds)
7150     lt_cv_to_host_file_cmd=func_convert_file_noop
7151     ;;
7152 esac
7153
7154 fi
7155
7156 to_host_file_cmd=$lt_cv_to_host_file_cmd
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7158 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7159
7160
7161
7162
7163
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7165 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7166 if test ${lt_cv_to_tool_file_cmd+y}
7167 then :
7168   printf %s "(cached) " >&6
7169 else $as_nop
7170   #assume ordinary cross tools, or native build.
7171 lt_cv_to_tool_file_cmd=func_convert_file_noop
7172 case $host in
7173   *-*-mingw* )
7174     case $build in
7175       *-*-mingw* ) # actually msys
7176         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7177         ;;
7178     esac
7179     ;;
7180 esac
7181
7182 fi
7183
7184 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7186 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7187
7188
7189
7190
7191
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7193 printf %s "checking for $LD option to reload object files... " >&6; }
7194 if test ${lt_cv_ld_reload_flag+y}
7195 then :
7196   printf %s "(cached) " >&6
7197 else $as_nop
7198   lt_cv_ld_reload_flag='-r'
7199 fi
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7201 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7202 reload_flag=$lt_cv_ld_reload_flag
7203 case $reload_flag in
7204 "" | " "*) ;;
7205 *) reload_flag=" $reload_flag" ;;
7206 esac
7207 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7208 case $host_os in
7209   cygwin* | mingw* | pw32* | cegcc*)
7210     if test yes != "$GCC"; then
7211       reload_cmds=false
7212     fi
7213     ;;
7214   darwin*)
7215     if test yes = "$GCC"; then
7216       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7217     else
7218       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7219     fi
7220     ;;
7221 esac
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231 if test -n "$ac_tool_prefix"; then
7232   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}file; ac_word=$2
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 printf %s "checking for $ac_word... " >&6; }
7236 if test ${ac_cv_prog_FILECMD+y}
7237 then :
7238   printf %s "(cached) " >&6
7239 else $as_nop
7240   if test -n "$FILECMD"; then
7241   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   case $as_dir in #(((
7248     '') as_dir=./ ;;
7249     */) ;;
7250     *) as_dir=$as_dir/ ;;
7251   esac
7252     for ac_exec_ext in '' $ac_executable_extensions; do
7253   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7254     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7255     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259   done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 FILECMD=$ac_cv_prog_FILECMD
7265 if test -n "$FILECMD"; then
7266   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7267 printf "%s\n" "$FILECMD" >&6; }
7268 else
7269   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 printf "%s\n" "no" >&6; }
7271 fi
7272
7273
7274 fi
7275 if test -z "$ac_cv_prog_FILECMD"; then
7276   ac_ct_FILECMD=$FILECMD
7277   # Extract the first word of "file", so it can be a program name with args.
7278 set dummy file; ac_word=$2
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 printf %s "checking for $ac_word... " >&6; }
7281 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7282 then :
7283   printf %s "(cached) " >&6
7284 else $as_nop
7285   if test -n "$ac_ct_FILECMD"; then
7286   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   case $as_dir in #(((
7293     '') as_dir=./ ;;
7294     */) ;;
7295     *) as_dir=$as_dir/ ;;
7296   esac
7297     for ac_exec_ext in '' $ac_executable_extensions; do
7298   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7299     ac_cv_prog_ac_ct_FILECMD="file"
7300     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304   done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7310 if test -n "$ac_ct_FILECMD"; then
7311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7312 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7313 else
7314   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 printf "%s\n" "no" >&6; }
7316 fi
7317
7318   if test "x$ac_ct_FILECMD" = x; then
7319     FILECMD=":"
7320   else
7321     case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327     FILECMD=$ac_ct_FILECMD
7328   fi
7329 else
7330   FILECMD="$ac_cv_prog_FILECMD"
7331 fi
7332
7333
7334
7335
7336
7337
7338
7339 if test -n "$ac_tool_prefix"; then
7340   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 printf %s "checking for $ac_word... " >&6; }
7344 if test ${ac_cv_prog_OBJDUMP+y}
7345 then :
7346   printf %s "(cached) " >&6
7347 else $as_nop
7348   if test -n "$OBJDUMP"; then
7349   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   case $as_dir in #(((
7356     '') as_dir=./ ;;
7357     */) ;;
7358     *) as_dir=$as_dir/ ;;
7359   esac
7360     for ac_exec_ext in '' $ac_executable_extensions; do
7361   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7362     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7363     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367   done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 OBJDUMP=$ac_cv_prog_OBJDUMP
7373 if test -n "$OBJDUMP"; then
7374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7375 printf "%s\n" "$OBJDUMP" >&6; }
7376 else
7377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 printf "%s\n" "no" >&6; }
7379 fi
7380
7381
7382 fi
7383 if test -z "$ac_cv_prog_OBJDUMP"; then
7384   ac_ct_OBJDUMP=$OBJDUMP
7385   # Extract the first word of "objdump", so it can be a program name with args.
7386 set dummy objdump; ac_word=$2
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 printf %s "checking for $ac_word... " >&6; }
7389 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7390 then :
7391   printf %s "(cached) " >&6
7392 else $as_nop
7393   if test -n "$ac_ct_OBJDUMP"; then
7394   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   case $as_dir in #(((
7401     '') as_dir=./ ;;
7402     */) ;;
7403     *) as_dir=$as_dir/ ;;
7404   esac
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7407     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7408     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7418 if test -n "$ac_ct_OBJDUMP"; then
7419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7420 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7421 else
7422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 printf "%s\n" "no" >&6; }
7424 fi
7425
7426   if test "x$ac_ct_OBJDUMP" = x; then
7427     OBJDUMP="false"
7428   else
7429     case $cross_compiling:$ac_tool_warned in
7430 yes:)
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7434 esac
7435     OBJDUMP=$ac_ct_OBJDUMP
7436   fi
7437 else
7438   OBJDUMP="$ac_cv_prog_OBJDUMP"
7439 fi
7440
7441 test -z "$OBJDUMP" && OBJDUMP=objdump
7442
7443
7444
7445
7446
7447
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7449 printf %s "checking how to recognize dependent libraries... " >&6; }
7450 if test ${lt_cv_deplibs_check_method+y}
7451 then :
7452   printf %s "(cached) " >&6
7453 else $as_nop
7454   lt_cv_file_magic_cmd='$MAGIC_CMD'
7455 lt_cv_file_magic_test_file=
7456 lt_cv_deplibs_check_method='unknown'
7457 # Need to set the preceding variable on all platforms that support
7458 # interlibrary dependencies.
7459 # 'none' -- dependencies not supported.
7460 # 'unknown' -- same as none, but documents that we really don't know.
7461 # 'pass_all' -- all dependencies passed with no checks.
7462 # 'test_compile' -- check by making test program.
7463 # 'file_magic [[regex]]' -- check by looking for files in library path
7464 # that responds to the $file_magic_cmd with a given extended regex.
7465 # If you have 'file' or equivalent on your system and you're not sure
7466 # whether 'pass_all' will *always* work, you probably want this one.
7467
7468 case $host_os in
7469 aix[4-9]*)
7470   lt_cv_deplibs_check_method=pass_all
7471   ;;
7472
7473 beos*)
7474   lt_cv_deplibs_check_method=pass_all
7475   ;;
7476
7477 bsdi[45]*)
7478   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7479   lt_cv_file_magic_cmd='$FILECMD -L'
7480   lt_cv_file_magic_test_file=/shlib/libc.so
7481   ;;
7482
7483 cygwin*)
7484   # func_win32_libid is a shell function defined in ltmain.sh
7485   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7486   lt_cv_file_magic_cmd='func_win32_libid'
7487   ;;
7488
7489 mingw* | pw32*)
7490   # Base MSYS/MinGW do not provide the 'file' command needed by
7491   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7492   # unless we find 'file', for example because we are cross-compiling.
7493   if ( file / ) >/dev/null 2>&1; then
7494     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7495     lt_cv_file_magic_cmd='func_win32_libid'
7496   else
7497     # Keep this pattern in sync with the one in func_win32_libid.
7498     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7499     lt_cv_file_magic_cmd='$OBJDUMP -f'
7500   fi
7501   ;;
7502
7503 cegcc*)
7504   # use the weaker test based on 'objdump'. See mingw*.
7505   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7506   lt_cv_file_magic_cmd='$OBJDUMP -f'
7507   ;;
7508
7509 darwin* | rhapsody*)
7510   lt_cv_deplibs_check_method=pass_all
7511   ;;
7512
7513 freebsd* | dragonfly* | midnightbsd*)
7514   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7515     case $host_cpu in
7516     i*86 )
7517       # Not sure whether the presence of OpenBSD here was a mistake.
7518       # Let's accept both of them until this is cleared up.
7519       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7520       lt_cv_file_magic_cmd=$FILECMD
7521       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7522       ;;
7523     esac
7524   else
7525     lt_cv_deplibs_check_method=pass_all
7526   fi
7527   ;;
7528
7529 haiku*)
7530   lt_cv_deplibs_check_method=pass_all
7531   ;;
7532
7533 hpux10.20* | hpux11*)
7534   lt_cv_file_magic_cmd=$FILECMD
7535   case $host_cpu in
7536   ia64*)
7537     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7538     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7539     ;;
7540   hppa*64*)
7541     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]'
7542     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7543     ;;
7544   *)
7545     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7546     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7547     ;;
7548   esac
7549   ;;
7550
7551 interix[3-9]*)
7552   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7553   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7554   ;;
7555
7556 irix5* | irix6* | nonstopux*)
7557   case $LD in
7558   *-32|*"-32 ") libmagic=32-bit;;
7559   *-n32|*"-n32 ") libmagic=N32;;
7560   *-64|*"-64 ") libmagic=64-bit;;
7561   *) libmagic=never-match;;
7562   esac
7563   lt_cv_deplibs_check_method=pass_all
7564   ;;
7565
7566 # This must be glibc/ELF.
7567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7568   lt_cv_deplibs_check_method=pass_all
7569   ;;
7570
7571 netbsd*)
7572   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7573     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7574   else
7575     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7576   fi
7577   ;;
7578
7579 newos6*)
7580   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7581   lt_cv_file_magic_cmd=$FILECMD
7582   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7583   ;;
7584
7585 *nto* | *qnx*)
7586   lt_cv_deplibs_check_method=pass_all
7587   ;;
7588
7589 openbsd* | bitrig*)
7590   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7591     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7592   else
7593     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7594   fi
7595   ;;
7596
7597 osf3* | osf4* | osf5*)
7598   lt_cv_deplibs_check_method=pass_all
7599   ;;
7600
7601 rdos*)
7602   lt_cv_deplibs_check_method=pass_all
7603   ;;
7604
7605 solaris*)
7606   lt_cv_deplibs_check_method=pass_all
7607   ;;
7608
7609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7610   lt_cv_deplibs_check_method=pass_all
7611   ;;
7612
7613 sysv4 | sysv4.3*)
7614   case $host_vendor in
7615   motorola)
7616     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]'
7617     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7618     ;;
7619   ncr)
7620     lt_cv_deplibs_check_method=pass_all
7621     ;;
7622   sequent)
7623     lt_cv_file_magic_cmd='/bin/file'
7624     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7625     ;;
7626   sni)
7627     lt_cv_file_magic_cmd='/bin/file'
7628     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7629     lt_cv_file_magic_test_file=/lib/libc.so
7630     ;;
7631   siemens)
7632     lt_cv_deplibs_check_method=pass_all
7633     ;;
7634   pc)
7635     lt_cv_deplibs_check_method=pass_all
7636     ;;
7637   esac
7638   ;;
7639
7640 tpf*)
7641   lt_cv_deplibs_check_method=pass_all
7642   ;;
7643 os2*)
7644   lt_cv_deplibs_check_method=pass_all
7645   ;;
7646 esac
7647
7648 fi
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7650 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7651
7652 file_magic_glob=
7653 want_nocaseglob=no
7654 if test "$build" = "$host"; then
7655   case $host_os in
7656   mingw* | pw32*)
7657     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7658       want_nocaseglob=yes
7659     else
7660       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7661     fi
7662     ;;
7663   esac
7664 fi
7665
7666 file_magic_cmd=$lt_cv_file_magic_cmd
7667 deplibs_check_method=$lt_cv_deplibs_check_method
7668 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691 if test -n "$ac_tool_prefix"; then
7692   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 printf %s "checking for $ac_word... " >&6; }
7696 if test ${ac_cv_prog_DLLTOOL+y}
7697 then :
7698   printf %s "(cached) " >&6
7699 else $as_nop
7700   if test -n "$DLLTOOL"; then
7701   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706   IFS=$as_save_IFS
7707   case $as_dir in #(((
7708     '') as_dir=./ ;;
7709     */) ;;
7710     *) as_dir=$as_dir/ ;;
7711   esac
7712     for ac_exec_ext in '' $ac_executable_extensions; do
7713   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7714     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7715     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7716     break 2
7717   fi
7718 done
7719   done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 DLLTOOL=$ac_cv_prog_DLLTOOL
7725 if test -n "$DLLTOOL"; then
7726   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7727 printf "%s\n" "$DLLTOOL" >&6; }
7728 else
7729   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 printf "%s\n" "no" >&6; }
7731 fi
7732
7733
7734 fi
7735 if test -z "$ac_cv_prog_DLLTOOL"; then
7736   ac_ct_DLLTOOL=$DLLTOOL
7737   # Extract the first word of "dlltool", so it can be a program name with args.
7738 set dummy dlltool; ac_word=$2
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 printf %s "checking for $ac_word... " >&6; }
7741 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7742 then :
7743   printf %s "(cached) " >&6
7744 else $as_nop
7745   if test -n "$ac_ct_DLLTOOL"; then
7746   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   case $as_dir in #(((
7753     '') as_dir=./ ;;
7754     */) ;;
7755     *) as_dir=$as_dir/ ;;
7756   esac
7757     for ac_exec_ext in '' $ac_executable_extensions; do
7758   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7759     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7760     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7761     break 2
7762   fi
7763 done
7764   done
7765 IFS=$as_save_IFS
7766
7767 fi
7768 fi
7769 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7770 if test -n "$ac_ct_DLLTOOL"; then
7771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7772 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7773 else
7774   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 printf "%s\n" "no" >&6; }
7776 fi
7777
7778   if test "x$ac_ct_DLLTOOL" = x; then
7779     DLLTOOL="false"
7780   else
7781     case $cross_compiling:$ac_tool_warned in
7782 yes:)
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7784 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7785 ac_tool_warned=yes ;;
7786 esac
7787     DLLTOOL=$ac_ct_DLLTOOL
7788   fi
7789 else
7790   DLLTOOL="$ac_cv_prog_DLLTOOL"
7791 fi
7792
7793 test -z "$DLLTOOL" && DLLTOOL=dlltool
7794
7795
7796
7797
7798
7799
7800
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7802 printf %s "checking how to associate runtime and link libraries... " >&6; }
7803 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7804 then :
7805   printf %s "(cached) " >&6
7806 else $as_nop
7807   lt_cv_sharedlib_from_linklib_cmd='unknown'
7808
7809 case $host_os in
7810 cygwin* | mingw* | pw32* | cegcc*)
7811   # two different shell functions defined in ltmain.sh;
7812   # decide which one to use based on capabilities of $DLLTOOL
7813   case `$DLLTOOL --help 2>&1` in
7814   *--identify-strict*)
7815     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7816     ;;
7817   *)
7818     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7819     ;;
7820   esac
7821   ;;
7822 *)
7823   # fallback: assume linklib IS sharedlib
7824   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7825   ;;
7826 esac
7827
7828 fi
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7830 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7831 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7832 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7833
7834
7835
7836
7837
7838
7839
7840 if test -n "$ac_tool_prefix"; then
7841   for ac_prog in ar
7842   do
7843     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 printf %s "checking for $ac_word... " >&6; }
7847 if test ${ac_cv_prog_AR+y}
7848 then :
7849   printf %s "(cached) " >&6
7850 else $as_nop
7851   if test -n "$AR"; then
7852   ac_cv_prog_AR="$AR" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857   IFS=$as_save_IFS
7858   case $as_dir in #(((
7859     '') as_dir=./ ;;
7860     */) ;;
7861     *) as_dir=$as_dir/ ;;
7862   esac
7863     for ac_exec_ext in '' $ac_executable_extensions; do
7864   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7865     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7866     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870   done
7871 IFS=$as_save_IFS
7872
7873 fi
7874 fi
7875 AR=$ac_cv_prog_AR
7876 if test -n "$AR"; then
7877   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7878 printf "%s\n" "$AR" >&6; }
7879 else
7880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 printf "%s\n" "no" >&6; }
7882 fi
7883
7884
7885     test -n "$AR" && break
7886   done
7887 fi
7888 if test -z "$AR"; then
7889   ac_ct_AR=$AR
7890   for ac_prog in ar
7891 do
7892   # Extract the first word of "$ac_prog", so it can be a program name with args.
7893 set dummy $ac_prog; ac_word=$2
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 printf %s "checking for $ac_word... " >&6; }
7896 if test ${ac_cv_prog_ac_ct_AR+y}
7897 then :
7898   printf %s "(cached) " >&6
7899 else $as_nop
7900   if test -n "$ac_ct_AR"; then
7901   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906   IFS=$as_save_IFS
7907   case $as_dir in #(((
7908     '') as_dir=./ ;;
7909     */) ;;
7910     *) as_dir=$as_dir/ ;;
7911   esac
7912     for ac_exec_ext in '' $ac_executable_extensions; do
7913   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7914     ac_cv_prog_ac_ct_AR="$ac_prog"
7915     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919   done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7925 if test -n "$ac_ct_AR"; then
7926   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7927 printf "%s\n" "$ac_ct_AR" >&6; }
7928 else
7929   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 printf "%s\n" "no" >&6; }
7931 fi
7932
7933
7934   test -n "$ac_ct_AR" && break
7935 done
7936
7937   if test "x$ac_ct_AR" = x; then
7938     AR="false"
7939   else
7940     case $cross_compiling:$ac_tool_warned in
7941 yes:)
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944 ac_tool_warned=yes ;;
7945 esac
7946     AR=$ac_ct_AR
7947   fi
7948 fi
7949
7950 : ${AR=ar}
7951
7952
7953
7954
7955
7956
7957 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7958 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7959 # higher priority because thats what people were doing historically (setting
7960 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7961 # variable obsoleted/removed.
7962
7963 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7964 lt_ar_flags=$AR_FLAGS
7965
7966
7967
7968
7969
7970
7971 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7972 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7973
7974
7975
7976
7977
7978
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7980 printf %s "checking for archiver @FILE support... " >&6; }
7981 if test ${lt_cv_ar_at_file+y}
7982 then :
7983   printf %s "(cached) " >&6
7984 else $as_nop
7985   lt_cv_ar_at_file=no
7986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h.  */
7988
7989 int
7990 main (void)
7991 {
7992
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 if ac_fn_c_try_compile "$LINENO"
7998 then :
7999   echo conftest.$ac_objext > conftest.lst
8000       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8001       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8002   (eval $lt_ar_try) 2>&5
8003   ac_status=$?
8004   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8005   test $ac_status = 0; }
8006       if test 0 -eq "$ac_status"; then
8007         # Ensure the archiver fails upon bogus file names.
8008         rm -f conftest.$ac_objext libconftest.a
8009         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8010   (eval $lt_ar_try) 2>&5
8011   ac_status=$?
8012   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8013   test $ac_status = 0; }
8014         if test 0 -ne "$ac_status"; then
8015           lt_cv_ar_at_file=@
8016         fi
8017       fi
8018       rm -f conftest.* libconftest.a
8019
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8022
8023 fi
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8025 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8026
8027 if test no = "$lt_cv_ar_at_file"; then
8028   archiver_list_spec=
8029 else
8030   archiver_list_spec=$lt_cv_ar_at_file
8031 fi
8032
8033
8034
8035
8036
8037
8038
8039 if test -n "$ac_tool_prefix"; then
8040   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}strip; ac_word=$2
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 printf %s "checking for $ac_word... " >&6; }
8044 if test ${ac_cv_prog_STRIP+y}
8045 then :
8046   printf %s "(cached) " >&6
8047 else $as_nop
8048   if test -n "$STRIP"; then
8049   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054   IFS=$as_save_IFS
8055   case $as_dir in #(((
8056     '') as_dir=./ ;;
8057     */) ;;
8058     *) as_dir=$as_dir/ ;;
8059   esac
8060     for ac_exec_ext in '' $ac_executable_extensions; do
8061   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8062     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8063     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8064     break 2
8065   fi
8066 done
8067   done
8068 IFS=$as_save_IFS
8069
8070 fi
8071 fi
8072 STRIP=$ac_cv_prog_STRIP
8073 if test -n "$STRIP"; then
8074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8075 printf "%s\n" "$STRIP" >&6; }
8076 else
8077   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 printf "%s\n" "no" >&6; }
8079 fi
8080
8081
8082 fi
8083 if test -z "$ac_cv_prog_STRIP"; then
8084   ac_ct_STRIP=$STRIP
8085   # Extract the first word of "strip", so it can be a program name with args.
8086 set dummy strip; ac_word=$2
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 printf %s "checking for $ac_word... " >&6; }
8089 if test ${ac_cv_prog_ac_ct_STRIP+y}
8090 then :
8091   printf %s "(cached) " >&6
8092 else $as_nop
8093   if test -n "$ac_ct_STRIP"; then
8094   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099   IFS=$as_save_IFS
8100   case $as_dir in #(((
8101     '') as_dir=./ ;;
8102     */) ;;
8103     *) as_dir=$as_dir/ ;;
8104   esac
8105     for ac_exec_ext in '' $ac_executable_extensions; do
8106   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8107     ac_cv_prog_ac_ct_STRIP="strip"
8108     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8109     break 2
8110   fi
8111 done
8112   done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8118 if test -n "$ac_ct_STRIP"; then
8119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8120 printf "%s\n" "$ac_ct_STRIP" >&6; }
8121 else
8122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 printf "%s\n" "no" >&6; }
8124 fi
8125
8126   if test "x$ac_ct_STRIP" = x; then
8127     STRIP=":"
8128   else
8129     case $cross_compiling:$ac_tool_warned in
8130 yes:)
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8133 ac_tool_warned=yes ;;
8134 esac
8135     STRIP=$ac_ct_STRIP
8136   fi
8137 else
8138   STRIP="$ac_cv_prog_STRIP"
8139 fi
8140
8141 test -z "$STRIP" && STRIP=:
8142
8143
8144
8145
8146
8147
8148 if test -n "$ac_tool_prefix"; then
8149   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 printf %s "checking for $ac_word... " >&6; }
8153 if test ${ac_cv_prog_RANLIB+y}
8154 then :
8155   printf %s "(cached) " >&6
8156 else $as_nop
8157   if test -n "$RANLIB"; then
8158   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8159 else
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 for as_dir in $PATH
8162 do
8163   IFS=$as_save_IFS
8164   case $as_dir in #(((
8165     '') as_dir=./ ;;
8166     */) ;;
8167     *) as_dir=$as_dir/ ;;
8168   esac
8169     for ac_exec_ext in '' $ac_executable_extensions; do
8170   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8171     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8172     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8173     break 2
8174   fi
8175 done
8176   done
8177 IFS=$as_save_IFS
8178
8179 fi
8180 fi
8181 RANLIB=$ac_cv_prog_RANLIB
8182 if test -n "$RANLIB"; then
8183   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8184 printf "%s\n" "$RANLIB" >&6; }
8185 else
8186   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 printf "%s\n" "no" >&6; }
8188 fi
8189
8190
8191 fi
8192 if test -z "$ac_cv_prog_RANLIB"; then
8193   ac_ct_RANLIB=$RANLIB
8194   # Extract the first word of "ranlib", so it can be a program name with args.
8195 set dummy ranlib; ac_word=$2
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 printf %s "checking for $ac_word... " >&6; }
8198 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8199 then :
8200   printf %s "(cached) " >&6
8201 else $as_nop
8202   if test -n "$ac_ct_RANLIB"; then
8203   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208   IFS=$as_save_IFS
8209   case $as_dir in #(((
8210     '') as_dir=./ ;;
8211     */) ;;
8212     *) as_dir=$as_dir/ ;;
8213   esac
8214     for ac_exec_ext in '' $ac_executable_extensions; do
8215   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8216     ac_cv_prog_ac_ct_RANLIB="ranlib"
8217     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8218     break 2
8219   fi
8220 done
8221   done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8227 if test -n "$ac_ct_RANLIB"; then
8228   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8229 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8230 else
8231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 printf "%s\n" "no" >&6; }
8233 fi
8234
8235   if test "x$ac_ct_RANLIB" = x; then
8236     RANLIB=":"
8237   else
8238     case $cross_compiling:$ac_tool_warned in
8239 yes:)
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8242 ac_tool_warned=yes ;;
8243 esac
8244     RANLIB=$ac_ct_RANLIB
8245   fi
8246 else
8247   RANLIB="$ac_cv_prog_RANLIB"
8248 fi
8249
8250 test -z "$RANLIB" && RANLIB=:
8251
8252
8253
8254
8255
8256
8257 # Determine commands to create old-style static archives.
8258 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8259 old_postinstall_cmds='chmod 644 $oldlib'
8260 old_postuninstall_cmds=
8261
8262 if test -n "$RANLIB"; then
8263   case $host_os in
8264   bitrig* | openbsd*)
8265     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8266     ;;
8267   *)
8268     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8269     ;;
8270   esac
8271   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8272 fi
8273
8274 case $host_os in
8275   darwin*)
8276     lock_old_archive_extraction=yes ;;
8277   *)
8278     lock_old_archive_extraction=no ;;
8279 esac
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319 # If no C compiler was specified, use CC.
8320 LTCC=${LTCC-"$CC"}
8321
8322 # If no C compiler flags were specified, use CFLAGS.
8323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8324
8325 # Allow CC to be a program name with arguments.
8326 compiler=$CC
8327
8328
8329 # Check for command to grab the raw symbol name followed by C symbol from nm.
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8331 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8332 if test ${lt_cv_sys_global_symbol_pipe+y}
8333 then :
8334   printf %s "(cached) " >&6
8335 else $as_nop
8336
8337 # These are sane defaults that work on at least a few old systems.
8338 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8339
8340 # Character class describing NM global symbol codes.
8341 symcode='[BCDEGRST]'
8342
8343 # Regexp to match symbols that can be accessed directly from C.
8344 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8345
8346 # Define system-specific variables.
8347 case $host_os in
8348 aix*)
8349   symcode='[BCDT]'
8350   ;;
8351 cygwin* | mingw* | pw32* | cegcc*)
8352   symcode='[ABCDGISTW]'
8353   ;;
8354 hpux*)
8355   if test ia64 = "$host_cpu"; then
8356     symcode='[ABCDEGRST]'
8357   fi
8358   ;;
8359 irix* | nonstopux*)
8360   symcode='[BCDEGRST]'
8361   ;;
8362 osf*)
8363   symcode='[BCDEGQRST]'
8364   ;;
8365 solaris*)
8366   symcode='[BDRT]'
8367   ;;
8368 sco3.2v5*)
8369   symcode='[DT]'
8370   ;;
8371 sysv4.2uw2*)
8372   symcode='[DT]'
8373   ;;
8374 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8375   symcode='[ABDT]'
8376   ;;
8377 sysv4)
8378   symcode='[DFNSTU]'
8379   ;;
8380 esac
8381
8382 # If we're using GNU nm, then use its standard symbol codes.
8383 case `$NM -V 2>&1` in
8384 *GNU* | *'with BFD'*)
8385   symcode='[ABCDGIRSTW]' ;;
8386 esac
8387
8388 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8389   # Gets list of data symbols to import.
8390   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8391   # Adjust the below global symbol transforms to fixup imported variables.
8392   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8393   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8394   lt_c_name_lib_hook="\
8395   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8396   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8397 else
8398   # Disable hooks by default.
8399   lt_cv_sys_global_symbol_to_import=
8400   lt_cdecl_hook=
8401   lt_c_name_hook=
8402   lt_c_name_lib_hook=
8403 fi
8404
8405 # Transform an extracted symbol line into a proper C declaration.
8406 # Some systems (esp. on ia64) link data and code symbols differently,
8407 # so use this general approach.
8408 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8409 $lt_cdecl_hook\
8410 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8411 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8412
8413 # Transform an extracted symbol line into symbol name and symbol address
8414 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8415 $lt_c_name_hook\
8416 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8417 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8418
8419 # Transform an extracted symbol line into symbol name with lib prefix and
8420 # symbol address.
8421 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8422 $lt_c_name_lib_hook\
8423 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8424 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8425 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8426
8427 # Handle CRLF in mingw tool chain
8428 opt_cr=
8429 case $build_os in
8430 mingw*)
8431   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8432   ;;
8433 esac
8434
8435 # Try without a prefix underscore, then with it.
8436 for ac_symprfx in "" "_"; do
8437
8438   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8439   symxfrm="\\1 $ac_symprfx\\2 \\2"
8440
8441   # Write the raw and C identifiers.
8442   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8443     # Fake it for dumpbin and say T for any non-static function,
8444     # D for any global variable and I for any imported variable.
8445     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8446     # which start with @ or ?.
8447     lt_cv_sys_global_symbol_pipe="$AWK '"\
8448 "     {last_section=section; section=\$ 3};"\
8449 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8450 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8451 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8452 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8453 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8454 "     \$ 0!~/External *\|/{next};"\
8455 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8456 "     {if(hide[section]) next};"\
8457 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8458 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8459 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8460 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8461 "     ' prfx=^$ac_symprfx"
8462   else
8463     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8464   fi
8465   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8466
8467   # Check to see that the pipe works correctly.
8468   pipe_works=no
8469
8470   rm -f conftest*
8471   cat > conftest.$ac_ext <<_LT_EOF
8472 #ifdef __cplusplus
8473 extern "C" {
8474 #endif
8475 char nm_test_var;
8476 void nm_test_func(void);
8477 void nm_test_func(void){}
8478 #ifdef __cplusplus
8479 }
8480 #endif
8481 int main(){nm_test_var='a';nm_test_func();return(0);}
8482 _LT_EOF
8483
8484   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8485   (eval $ac_compile) 2>&5
8486   ac_status=$?
8487   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8488   test $ac_status = 0; }; then
8489     # Now try to grab the symbols.
8490     nlist=conftest.nm
8491     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8492   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8493   ac_status=$?
8494   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8495   test $ac_status = 0; } && test -s "$nlist"; then
8496       # Try sorting and uniquifying the output.
8497       if sort "$nlist" | uniq > "$nlist"T; then
8498         mv -f "$nlist"T "$nlist"
8499       else
8500         rm -f "$nlist"T
8501       fi
8502
8503       # Make sure that we snagged all the symbols we need.
8504       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8505         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8506           cat <<_LT_EOF > conftest.$ac_ext
8507 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8508 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8509 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8510    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8511 # define LT_DLSYM_CONST
8512 #elif defined __osf__
8513 /* This system does not cope well with relocations in const data.  */
8514 # define LT_DLSYM_CONST
8515 #else
8516 # define LT_DLSYM_CONST const
8517 #endif
8518
8519 #ifdef __cplusplus
8520 extern "C" {
8521 #endif
8522
8523 _LT_EOF
8524           # Now generate the symbol file.
8525           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8526
8527           cat <<_LT_EOF >> conftest.$ac_ext
8528
8529 /* The mapping between symbol names and symbols.  */
8530 LT_DLSYM_CONST struct {
8531   const char *name;
8532   void       *address;
8533 }
8534 lt__PROGRAM__LTX_preloaded_symbols[] =
8535 {
8536   { "@PROGRAM@", (void *) 0 },
8537 _LT_EOF
8538           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8539           cat <<\_LT_EOF >> conftest.$ac_ext
8540   {0, (void *) 0}
8541 };
8542
8543 /* This works around a problem in FreeBSD linker */
8544 #ifdef FREEBSD_WORKAROUND
8545 static const void *lt_preloaded_setup() {
8546   return lt__PROGRAM__LTX_preloaded_symbols;
8547 }
8548 #endif
8549
8550 #ifdef __cplusplus
8551 }
8552 #endif
8553 _LT_EOF
8554           # Now try linking the two files.
8555           mv conftest.$ac_objext conftstm.$ac_objext
8556           lt_globsym_save_LIBS=$LIBS
8557           lt_globsym_save_CFLAGS=$CFLAGS
8558           LIBS=conftstm.$ac_objext
8559           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8560           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8561   (eval $ac_link) 2>&5
8562   ac_status=$?
8563   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8564   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8565             pipe_works=yes
8566           fi
8567           LIBS=$lt_globsym_save_LIBS
8568           CFLAGS=$lt_globsym_save_CFLAGS
8569         else
8570           echo "cannot find nm_test_func in $nlist" >&5
8571         fi
8572       else
8573         echo "cannot find nm_test_var in $nlist" >&5
8574       fi
8575     else
8576       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8577     fi
8578   else
8579     echo "$progname: failed program was:" >&5
8580     cat conftest.$ac_ext >&5
8581   fi
8582   rm -rf conftest* conftst*
8583
8584   # Do not use the global_symbol_pipe unless it works.
8585   if test yes = "$pipe_works"; then
8586     break
8587   else
8588     lt_cv_sys_global_symbol_pipe=
8589   fi
8590 done
8591
8592 fi
8593
8594 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8595   lt_cv_sys_global_symbol_to_cdecl=
8596 fi
8597 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8598   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8599 printf "%s\n" "failed" >&6; }
8600 else
8601   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8602 printf "%s\n" "ok" >&6; }
8603 fi
8604
8605 # Response file support.
8606 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8607   nm_file_list_spec='@'
8608 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8609   nm_file_list_spec='@'
8610 fi
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8649 printf %s "checking for sysroot... " >&6; }
8650
8651 # Check whether --with-sysroot was given.
8652 if test ${with_sysroot+y}
8653 then :
8654   withval=$with_sysroot;
8655 else $as_nop
8656   with_sysroot=no
8657 fi
8658
8659
8660 lt_sysroot=
8661 case $with_sysroot in #(
8662  yes)
8663    if test yes = "$GCC"; then
8664      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8665    fi
8666    ;; #(
8667  /*)
8668    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8669    ;; #(
8670  no|'')
8671    ;; #(
8672  *)
8673    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8674 printf "%s\n" "$with_sysroot" >&6; }
8675    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8676    ;;
8677 esac
8678
8679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8680 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8681
8682
8683
8684
8685
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8687 printf %s "checking for a working dd... " >&6; }
8688 if test ${ac_cv_path_lt_DD+y}
8689 then :
8690   printf %s "(cached) " >&6
8691 else $as_nop
8692   printf 0123456789abcdef0123456789abcdef >conftest.i
8693 cat conftest.i conftest.i >conftest2.i
8694 : ${lt_DD:=$DD}
8695 if test -z "$lt_DD"; then
8696   ac_path_lt_DD_found=false
8697   # Loop through the user's path and test for each of PROGNAME-LIST
8698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701   IFS=$as_save_IFS
8702   case $as_dir in #(((
8703     '') as_dir=./ ;;
8704     */) ;;
8705     *) as_dir=$as_dir/ ;;
8706   esac
8707     for ac_prog in dd
8708    do
8709     for ac_exec_ext in '' $ac_executable_extensions; do
8710       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8711       as_fn_executable_p "$ac_path_lt_DD" || continue
8712 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8713   cmp -s conftest.i conftest.out \
8714   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8715 fi
8716       $ac_path_lt_DD_found && break 3
8717     done
8718   done
8719   done
8720 IFS=$as_save_IFS
8721   if test -z "$ac_cv_path_lt_DD"; then
8722     :
8723   fi
8724 else
8725   ac_cv_path_lt_DD=$lt_DD
8726 fi
8727
8728 rm -f conftest.i conftest2.i conftest.out
8729 fi
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8731 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8732
8733
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8735 printf %s "checking how to truncate binary pipes... " >&6; }
8736 if test ${lt_cv_truncate_bin+y}
8737 then :
8738   printf %s "(cached) " >&6
8739 else $as_nop
8740   printf 0123456789abcdef0123456789abcdef >conftest.i
8741 cat conftest.i conftest.i >conftest2.i
8742 lt_cv_truncate_bin=
8743 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8744   cmp -s conftest.i conftest.out \
8745   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8746 fi
8747 rm -f conftest.i conftest2.i conftest.out
8748 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8749 fi
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8751 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8752
8753
8754
8755
8756
8757
8758
8759 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8760 func_cc_basename ()
8761 {
8762     for cc_temp in $*""; do
8763       case $cc_temp in
8764         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8765         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8766         \-*) ;;
8767         *) break;;
8768       esac
8769     done
8770     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8771 }
8772
8773 # Check whether --enable-libtool-lock was given.
8774 if test ${enable_libtool_lock+y}
8775 then :
8776   enableval=$enable_libtool_lock;
8777 fi
8778
8779 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8780
8781 # Some flags need to be propagated to the compiler or linker for good
8782 # libtool support.
8783 case $host in
8784 ia64-*-hpux*)
8785   # Find out what ABI is being produced by ac_compile, and set mode
8786   # options accordingly.
8787   echo 'int i;' > conftest.$ac_ext
8788   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8789   (eval $ac_compile) 2>&5
8790   ac_status=$?
8791   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8792   test $ac_status = 0; }; then
8793     case `$FILECMD conftest.$ac_objext` in
8794       *ELF-32*)
8795         HPUX_IA64_MODE=32
8796         ;;
8797       *ELF-64*)
8798         HPUX_IA64_MODE=64
8799         ;;
8800     esac
8801   fi
8802   rm -rf conftest*
8803   ;;
8804 *-*-irix6*)
8805   # Find out what ABI is being produced by ac_compile, and set linker
8806   # options accordingly.
8807   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8808   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8809   (eval $ac_compile) 2>&5
8810   ac_status=$?
8811   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8812   test $ac_status = 0; }; then
8813     if test yes = "$lt_cv_prog_gnu_ld"; then
8814       case `$FILECMD conftest.$ac_objext` in
8815         *32-bit*)
8816           LD="${LD-ld} -melf32bsmip"
8817           ;;
8818         *N32*)
8819           LD="${LD-ld} -melf32bmipn32"
8820           ;;
8821         *64-bit*)
8822           LD="${LD-ld} -melf64bmip"
8823         ;;
8824       esac
8825     else
8826       case `$FILECMD conftest.$ac_objext` in
8827         *32-bit*)
8828           LD="${LD-ld} -32"
8829           ;;
8830         *N32*)
8831           LD="${LD-ld} -n32"
8832           ;;
8833         *64-bit*)
8834           LD="${LD-ld} -64"
8835           ;;
8836       esac
8837     fi
8838   fi
8839   rm -rf conftest*
8840   ;;
8841
8842 mips64*-*linux*)
8843   # Find out what ABI is being produced by ac_compile, and set linker
8844   # options accordingly.
8845   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8846   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8847   (eval $ac_compile) 2>&5
8848   ac_status=$?
8849   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8850   test $ac_status = 0; }; then
8851     emul=elf
8852     case `$FILECMD conftest.$ac_objext` in
8853       *32-bit*)
8854         emul="${emul}32"
8855         ;;
8856       *64-bit*)
8857         emul="${emul}64"
8858         ;;
8859     esac
8860     case `$FILECMD conftest.$ac_objext` in
8861       *MSB*)
8862         emul="${emul}btsmip"
8863         ;;
8864       *LSB*)
8865         emul="${emul}ltsmip"
8866         ;;
8867     esac
8868     case `$FILECMD conftest.$ac_objext` in
8869       *N32*)
8870         emul="${emul}n32"
8871         ;;
8872     esac
8873     LD="${LD-ld} -m $emul"
8874   fi
8875   rm -rf conftest*
8876   ;;
8877
8878 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8879 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8880   # Find out what ABI is being produced by ac_compile, and set linker
8881   # options accordingly.  Note that the listed cases only cover the
8882   # situations where additional linker options are needed (such as when
8883   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8884   # vice versa); the common cases where no linker options are needed do
8885   # not appear in the list.
8886   echo 'int i;' > conftest.$ac_ext
8887   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8888   (eval $ac_compile) 2>&5
8889   ac_status=$?
8890   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8891   test $ac_status = 0; }; then
8892     case `$FILECMD conftest.o` in
8893       *32-bit*)
8894         case $host in
8895           x86_64-*kfreebsd*-gnu)
8896             LD="${LD-ld} -m elf_i386_fbsd"
8897             ;;
8898           x86_64-*linux*)
8899             case `$FILECMD conftest.o` in
8900               *x86-64*)
8901                 LD="${LD-ld} -m elf32_x86_64"
8902                 ;;
8903               *)
8904                 LD="${LD-ld} -m elf_i386"
8905                 ;;
8906             esac
8907             ;;
8908           powerpc64le-*linux*)
8909             LD="${LD-ld} -m elf32lppclinux"
8910             ;;
8911           powerpc64-*linux*)
8912             LD="${LD-ld} -m elf32ppclinux"
8913             ;;
8914           s390x-*linux*)
8915             LD="${LD-ld} -m elf_s390"
8916             ;;
8917           sparc64-*linux*)
8918             LD="${LD-ld} -m elf32_sparc"
8919             ;;
8920         esac
8921         ;;
8922       *64-bit*)
8923         case $host in
8924           x86_64-*kfreebsd*-gnu)
8925             LD="${LD-ld} -m elf_x86_64_fbsd"
8926             ;;
8927           x86_64-*linux*)
8928             LD="${LD-ld} -m elf_x86_64"
8929             ;;
8930           powerpcle-*linux*)
8931             LD="${LD-ld} -m elf64lppc"
8932             ;;
8933           powerpc-*linux*)
8934             LD="${LD-ld} -m elf64ppc"
8935             ;;
8936           s390*-*linux*|s390*-*tpf*)
8937             LD="${LD-ld} -m elf64_s390"
8938             ;;
8939           sparc*-*linux*)
8940             LD="${LD-ld} -m elf64_sparc"
8941             ;;
8942         esac
8943         ;;
8944     esac
8945   fi
8946   rm -rf conftest*
8947   ;;
8948
8949 *-*-sco3.2v5*)
8950   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8951   SAVE_CFLAGS=$CFLAGS
8952   CFLAGS="$CFLAGS -belf"
8953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8954 printf %s "checking whether the C compiler needs -belf... " >&6; }
8955 if test ${lt_cv_cc_needs_belf+y}
8956 then :
8957   printf %s "(cached) " >&6
8958 else $as_nop
8959   ac_ext=c
8960 ac_cpp='$CPP $CPPFLAGS'
8961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8964
8965      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h.  */
8967
8968 int
8969 main (void)
8970 {
8971
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 if ac_fn_c_try_link "$LINENO"
8977 then :
8978   lt_cv_cc_needs_belf=yes
8979 else $as_nop
8980   lt_cv_cc_needs_belf=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8983     conftest$ac_exeext conftest.$ac_ext
8984      ac_ext=c
8985 ac_cpp='$CPP $CPPFLAGS'
8986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8989
8990 fi
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8992 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8993   if test yes != "$lt_cv_cc_needs_belf"; then
8994     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8995     CFLAGS=$SAVE_CFLAGS
8996   fi
8997   ;;
8998 *-*solaris*)
8999   # Find out what ABI is being produced by ac_compile, and set linker
9000   # options accordingly.
9001   echo 'int i;' > conftest.$ac_ext
9002   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9003   (eval $ac_compile) 2>&5
9004   ac_status=$?
9005   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9006   test $ac_status = 0; }; then
9007     case `$FILECMD conftest.o` in
9008     *64-bit*)
9009       case $lt_cv_prog_gnu_ld in
9010       yes*)
9011         case $host in
9012         i?86-*-solaris*|x86_64-*-solaris*)
9013           LD="${LD-ld} -m elf_x86_64"
9014           ;;
9015         sparc*-*-solaris*)
9016           LD="${LD-ld} -m elf64_sparc"
9017           ;;
9018         esac
9019         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9020         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9021           LD=${LD-ld}_sol2
9022         fi
9023         ;;
9024       *)
9025         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9026           LD="${LD-ld} -64"
9027         fi
9028         ;;
9029       esac
9030       ;;
9031     esac
9032   fi
9033   rm -rf conftest*
9034   ;;
9035 esac
9036
9037 need_locks=$enable_libtool_lock
9038
9039 if test -n "$ac_tool_prefix"; then
9040   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9041 set dummy ${ac_tool_prefix}mt; ac_word=$2
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 printf %s "checking for $ac_word... " >&6; }
9044 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9045 then :
9046   printf %s "(cached) " >&6
9047 else $as_nop
9048   if test -n "$MANIFEST_TOOL"; then
9049   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9053 do
9054   IFS=$as_save_IFS
9055   case $as_dir in #(((
9056     '') as_dir=./ ;;
9057     */) ;;
9058     *) as_dir=$as_dir/ ;;
9059   esac
9060     for ac_exec_ext in '' $ac_executable_extensions; do
9061   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9062     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9063     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9064     break 2
9065   fi
9066 done
9067   done
9068 IFS=$as_save_IFS
9069
9070 fi
9071 fi
9072 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9073 if test -n "$MANIFEST_TOOL"; then
9074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9075 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9076 else
9077   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 printf "%s\n" "no" >&6; }
9079 fi
9080
9081
9082 fi
9083 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9084   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9085   # Extract the first word of "mt", so it can be a program name with args.
9086 set dummy mt; ac_word=$2
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 printf %s "checking for $ac_word... " >&6; }
9089 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9090 then :
9091   printf %s "(cached) " >&6
9092 else $as_nop
9093   if test -n "$ac_ct_MANIFEST_TOOL"; then
9094   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9095 else
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9098 do
9099   IFS=$as_save_IFS
9100   case $as_dir in #(((
9101     '') as_dir=./ ;;
9102     */) ;;
9103     *) as_dir=$as_dir/ ;;
9104   esac
9105     for ac_exec_ext in '' $ac_executable_extensions; do
9106   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9107     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9108     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9109     break 2
9110   fi
9111 done
9112   done
9113 IFS=$as_save_IFS
9114
9115 fi
9116 fi
9117 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9118 if test -n "$ac_ct_MANIFEST_TOOL"; then
9119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9120 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9121 else
9122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 printf "%s\n" "no" >&6; }
9124 fi
9125
9126   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9127     MANIFEST_TOOL=":"
9128   else
9129     case $cross_compiling:$ac_tool_warned in
9130 yes:)
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9133 ac_tool_warned=yes ;;
9134 esac
9135     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9136   fi
9137 else
9138   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9139 fi
9140
9141 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9143 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9144 if test ${lt_cv_path_mainfest_tool+y}
9145 then :
9146   printf %s "(cached) " >&6
9147 else $as_nop
9148   lt_cv_path_mainfest_tool=no
9149   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9150   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9151   cat conftest.err >&5
9152   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9153     lt_cv_path_mainfest_tool=yes
9154   fi
9155   rm -f conftest*
9156 fi
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9158 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9159 if test yes != "$lt_cv_path_mainfest_tool"; then
9160   MANIFEST_TOOL=:
9161 fi
9162
9163
9164
9165
9166
9167
9168   case $host_os in
9169     rhapsody* | darwin*)
9170     if test -n "$ac_tool_prefix"; then
9171   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9172 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174 printf %s "checking for $ac_word... " >&6; }
9175 if test ${ac_cv_prog_DSYMUTIL+y}
9176 then :
9177   printf %s "(cached) " >&6
9178 else $as_nop
9179   if test -n "$DSYMUTIL"; then
9180   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9181 else
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 for as_dir in $PATH
9184 do
9185   IFS=$as_save_IFS
9186   case $as_dir in #(((
9187     '') as_dir=./ ;;
9188     */) ;;
9189     *) as_dir=$as_dir/ ;;
9190   esac
9191     for ac_exec_ext in '' $ac_executable_extensions; do
9192   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9193     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9194     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9195     break 2
9196   fi
9197 done
9198   done
9199 IFS=$as_save_IFS
9200
9201 fi
9202 fi
9203 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9204 if test -n "$DSYMUTIL"; then
9205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9206 printf "%s\n" "$DSYMUTIL" >&6; }
9207 else
9208   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 printf "%s\n" "no" >&6; }
9210 fi
9211
9212
9213 fi
9214 if test -z "$ac_cv_prog_DSYMUTIL"; then
9215   ac_ct_DSYMUTIL=$DSYMUTIL
9216   # Extract the first word of "dsymutil", so it can be a program name with args.
9217 set dummy dsymutil; ac_word=$2
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 printf %s "checking for $ac_word... " >&6; }
9220 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9221 then :
9222   printf %s "(cached) " >&6
9223 else $as_nop
9224   if test -n "$ac_ct_DSYMUTIL"; then
9225   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9226 else
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 for as_dir in $PATH
9229 do
9230   IFS=$as_save_IFS
9231   case $as_dir in #(((
9232     '') as_dir=./ ;;
9233     */) ;;
9234     *) as_dir=$as_dir/ ;;
9235   esac
9236     for ac_exec_ext in '' $ac_executable_extensions; do
9237   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9238     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9239     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9240     break 2
9241   fi
9242 done
9243   done
9244 IFS=$as_save_IFS
9245
9246 fi
9247 fi
9248 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9249 if test -n "$ac_ct_DSYMUTIL"; then
9250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9251 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9252 else
9253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 printf "%s\n" "no" >&6; }
9255 fi
9256
9257   if test "x$ac_ct_DSYMUTIL" = x; then
9258     DSYMUTIL=":"
9259   else
9260     case $cross_compiling:$ac_tool_warned in
9261 yes:)
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9263 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9264 ac_tool_warned=yes ;;
9265 esac
9266     DSYMUTIL=$ac_ct_DSYMUTIL
9267   fi
9268 else
9269   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9270 fi
9271
9272     if test -n "$ac_tool_prefix"; then
9273   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9274 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9276 printf %s "checking for $ac_word... " >&6; }
9277 if test ${ac_cv_prog_NMEDIT+y}
9278 then :
9279   printf %s "(cached) " >&6
9280 else $as_nop
9281   if test -n "$NMEDIT"; then
9282   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9283 else
9284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285 for as_dir in $PATH
9286 do
9287   IFS=$as_save_IFS
9288   case $as_dir in #(((
9289     '') as_dir=./ ;;
9290     */) ;;
9291     *) as_dir=$as_dir/ ;;
9292   esac
9293     for ac_exec_ext in '' $ac_executable_extensions; do
9294   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9295     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9296     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9297     break 2
9298   fi
9299 done
9300   done
9301 IFS=$as_save_IFS
9302
9303 fi
9304 fi
9305 NMEDIT=$ac_cv_prog_NMEDIT
9306 if test -n "$NMEDIT"; then
9307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9308 printf "%s\n" "$NMEDIT" >&6; }
9309 else
9310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 printf "%s\n" "no" >&6; }
9312 fi
9313
9314
9315 fi
9316 if test -z "$ac_cv_prog_NMEDIT"; then
9317   ac_ct_NMEDIT=$NMEDIT
9318   # Extract the first word of "nmedit", so it can be a program name with args.
9319 set dummy nmedit; ac_word=$2
9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 printf %s "checking for $ac_word... " >&6; }
9322 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9323 then :
9324   printf %s "(cached) " >&6
9325 else $as_nop
9326   if test -n "$ac_ct_NMEDIT"; then
9327   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9328 else
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9331 do
9332   IFS=$as_save_IFS
9333   case $as_dir in #(((
9334     '') as_dir=./ ;;
9335     */) ;;
9336     *) as_dir=$as_dir/ ;;
9337   esac
9338     for ac_exec_ext in '' $ac_executable_extensions; do
9339   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9340     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9341     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9342     break 2
9343   fi
9344 done
9345   done
9346 IFS=$as_save_IFS
9347
9348 fi
9349 fi
9350 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9351 if test -n "$ac_ct_NMEDIT"; then
9352   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9353 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9354 else
9355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 printf "%s\n" "no" >&6; }
9357 fi
9358
9359   if test "x$ac_ct_NMEDIT" = x; then
9360     NMEDIT=":"
9361   else
9362     case $cross_compiling:$ac_tool_warned in
9363 yes:)
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9365 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9366 ac_tool_warned=yes ;;
9367 esac
9368     NMEDIT=$ac_ct_NMEDIT
9369   fi
9370 else
9371   NMEDIT="$ac_cv_prog_NMEDIT"
9372 fi
9373
9374     if test -n "$ac_tool_prefix"; then
9375   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9376 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 printf %s "checking for $ac_word... " >&6; }
9379 if test ${ac_cv_prog_LIPO+y}
9380 then :
9381   printf %s "(cached) " >&6
9382 else $as_nop
9383   if test -n "$LIPO"; then
9384   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9385 else
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 for as_dir in $PATH
9388 do
9389   IFS=$as_save_IFS
9390   case $as_dir in #(((
9391     '') as_dir=./ ;;
9392     */) ;;
9393     *) as_dir=$as_dir/ ;;
9394   esac
9395     for ac_exec_ext in '' $ac_executable_extensions; do
9396   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9397     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9398     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9399     break 2
9400   fi
9401 done
9402   done
9403 IFS=$as_save_IFS
9404
9405 fi
9406 fi
9407 LIPO=$ac_cv_prog_LIPO
9408 if test -n "$LIPO"; then
9409   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9410 printf "%s\n" "$LIPO" >&6; }
9411 else
9412   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 printf "%s\n" "no" >&6; }
9414 fi
9415
9416
9417 fi
9418 if test -z "$ac_cv_prog_LIPO"; then
9419   ac_ct_LIPO=$LIPO
9420   # Extract the first word of "lipo", so it can be a program name with args.
9421 set dummy lipo; ac_word=$2
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 printf %s "checking for $ac_word... " >&6; }
9424 if test ${ac_cv_prog_ac_ct_LIPO+y}
9425 then :
9426   printf %s "(cached) " >&6
9427 else $as_nop
9428   if test -n "$ac_ct_LIPO"; then
9429   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9430 else
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9433 do
9434   IFS=$as_save_IFS
9435   case $as_dir in #(((
9436     '') as_dir=./ ;;
9437     */) ;;
9438     *) as_dir=$as_dir/ ;;
9439   esac
9440     for ac_exec_ext in '' $ac_executable_extensions; do
9441   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9442     ac_cv_prog_ac_ct_LIPO="lipo"
9443     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9444     break 2
9445   fi
9446 done
9447   done
9448 IFS=$as_save_IFS
9449
9450 fi
9451 fi
9452 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9453 if test -n "$ac_ct_LIPO"; then
9454   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9455 printf "%s\n" "$ac_ct_LIPO" >&6; }
9456 else
9457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 printf "%s\n" "no" >&6; }
9459 fi
9460
9461   if test "x$ac_ct_LIPO" = x; then
9462     LIPO=":"
9463   else
9464     case $cross_compiling:$ac_tool_warned in
9465 yes:)
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9467 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9468 ac_tool_warned=yes ;;
9469 esac
9470     LIPO=$ac_ct_LIPO
9471   fi
9472 else
9473   LIPO="$ac_cv_prog_LIPO"
9474 fi
9475
9476     if test -n "$ac_tool_prefix"; then
9477   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9478 set dummy ${ac_tool_prefix}otool; ac_word=$2
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 printf %s "checking for $ac_word... " >&6; }
9481 if test ${ac_cv_prog_OTOOL+y}
9482 then :
9483   printf %s "(cached) " >&6
9484 else $as_nop
9485   if test -n "$OTOOL"; then
9486   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9487 else
9488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 for as_dir in $PATH
9490 do
9491   IFS=$as_save_IFS
9492   case $as_dir in #(((
9493     '') as_dir=./ ;;
9494     */) ;;
9495     *) as_dir=$as_dir/ ;;
9496   esac
9497     for ac_exec_ext in '' $ac_executable_extensions; do
9498   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9499     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9500     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9501     break 2
9502   fi
9503 done
9504   done
9505 IFS=$as_save_IFS
9506
9507 fi
9508 fi
9509 OTOOL=$ac_cv_prog_OTOOL
9510 if test -n "$OTOOL"; then
9511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9512 printf "%s\n" "$OTOOL" >&6; }
9513 else
9514   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 printf "%s\n" "no" >&6; }
9516 fi
9517
9518
9519 fi
9520 if test -z "$ac_cv_prog_OTOOL"; then
9521   ac_ct_OTOOL=$OTOOL
9522   # Extract the first word of "otool", so it can be a program name with args.
9523 set dummy otool; ac_word=$2
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 printf %s "checking for $ac_word... " >&6; }
9526 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9527 then :
9528   printf %s "(cached) " >&6
9529 else $as_nop
9530   if test -n "$ac_ct_OTOOL"; then
9531   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9532 else
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH
9535 do
9536   IFS=$as_save_IFS
9537   case $as_dir in #(((
9538     '') as_dir=./ ;;
9539     */) ;;
9540     *) as_dir=$as_dir/ ;;
9541   esac
9542     for ac_exec_ext in '' $ac_executable_extensions; do
9543   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9544     ac_cv_prog_ac_ct_OTOOL="otool"
9545     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9546     break 2
9547   fi
9548 done
9549   done
9550 IFS=$as_save_IFS
9551
9552 fi
9553 fi
9554 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9555 if test -n "$ac_ct_OTOOL"; then
9556   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9557 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9558 else
9559   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 printf "%s\n" "no" >&6; }
9561 fi
9562
9563   if test "x$ac_ct_OTOOL" = x; then
9564     OTOOL=":"
9565   else
9566     case $cross_compiling:$ac_tool_warned in
9567 yes:)
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9569 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9570 ac_tool_warned=yes ;;
9571 esac
9572     OTOOL=$ac_ct_OTOOL
9573   fi
9574 else
9575   OTOOL="$ac_cv_prog_OTOOL"
9576 fi
9577
9578     if test -n "$ac_tool_prefix"; then
9579   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9580 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 printf %s "checking for $ac_word... " >&6; }
9583 if test ${ac_cv_prog_OTOOL64+y}
9584 then :
9585   printf %s "(cached) " >&6
9586 else $as_nop
9587   if test -n "$OTOOL64"; then
9588   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9589 else
9590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 for as_dir in $PATH
9592 do
9593   IFS=$as_save_IFS
9594   case $as_dir in #(((
9595     '') as_dir=./ ;;
9596     */) ;;
9597     *) as_dir=$as_dir/ ;;
9598   esac
9599     for ac_exec_ext in '' $ac_executable_extensions; do
9600   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9601     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9602     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9603     break 2
9604   fi
9605 done
9606   done
9607 IFS=$as_save_IFS
9608
9609 fi
9610 fi
9611 OTOOL64=$ac_cv_prog_OTOOL64
9612 if test -n "$OTOOL64"; then
9613   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9614 printf "%s\n" "$OTOOL64" >&6; }
9615 else
9616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 printf "%s\n" "no" >&6; }
9618 fi
9619
9620
9621 fi
9622 if test -z "$ac_cv_prog_OTOOL64"; then
9623   ac_ct_OTOOL64=$OTOOL64
9624   # Extract the first word of "otool64", so it can be a program name with args.
9625 set dummy otool64; ac_word=$2
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627 printf %s "checking for $ac_word... " >&6; }
9628 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9629 then :
9630   printf %s "(cached) " >&6
9631 else $as_nop
9632   if test -n "$ac_ct_OTOOL64"; then
9633   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9634 else
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9637 do
9638   IFS=$as_save_IFS
9639   case $as_dir in #(((
9640     '') as_dir=./ ;;
9641     */) ;;
9642     *) as_dir=$as_dir/ ;;
9643   esac
9644     for ac_exec_ext in '' $ac_executable_extensions; do
9645   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9646     ac_cv_prog_ac_ct_OTOOL64="otool64"
9647     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9648     break 2
9649   fi
9650 done
9651   done
9652 IFS=$as_save_IFS
9653
9654 fi
9655 fi
9656 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9657 if test -n "$ac_ct_OTOOL64"; then
9658   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9659 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9660 else
9661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 printf "%s\n" "no" >&6; }
9663 fi
9664
9665   if test "x$ac_ct_OTOOL64" = x; then
9666     OTOOL64=":"
9667   else
9668     case $cross_compiling:$ac_tool_warned in
9669 yes:)
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9671 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9672 ac_tool_warned=yes ;;
9673 esac
9674     OTOOL64=$ac_ct_OTOOL64
9675   fi
9676 else
9677   OTOOL64="$ac_cv_prog_OTOOL64"
9678 fi
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9707 printf %s "checking for -single_module linker flag... " >&6; }
9708 if test ${lt_cv_apple_cc_single_mod+y}
9709 then :
9710   printf %s "(cached) " >&6
9711 else $as_nop
9712   lt_cv_apple_cc_single_mod=no
9713       if test -z "$LT_MULTI_MODULE"; then
9714         # By default we will add the -single_module flag. You can override
9715         # by either setting the environment variable LT_MULTI_MODULE
9716         # non-empty at configure time, or by adding -multi_module to the
9717         # link flags.
9718         rm -rf libconftest.dylib*
9719         echo "int foo(void){return 1;}" > conftest.c
9720         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9721 -dynamiclib -Wl,-single_module conftest.c" >&5
9722         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9723           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9724         _lt_result=$?
9725         # If there is a non-empty error log, and "single_module"
9726         # appears in it, assume the flag caused a linker warning
9727         if test -s conftest.err && $GREP single_module conftest.err; then
9728           cat conftest.err >&5
9729         # Otherwise, if the output was created with a 0 exit code from
9730         # the compiler, it worked.
9731         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9732           lt_cv_apple_cc_single_mod=yes
9733         else
9734           cat conftest.err >&5
9735         fi
9736         rm -rf libconftest.dylib*
9737         rm -f conftest.*
9738       fi
9739 fi
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9741 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9742
9743     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9744 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9745 if test ${lt_cv_ld_exported_symbols_list+y}
9746 then :
9747   printf %s "(cached) " >&6
9748 else $as_nop
9749   lt_cv_ld_exported_symbols_list=no
9750       save_LDFLAGS=$LDFLAGS
9751       echo "_main" > conftest.sym
9752       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9753       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h.  */
9755
9756 int
9757 main (void)
9758 {
9759
9760   ;
9761   return 0;
9762 }
9763 _ACEOF
9764 if ac_fn_c_try_link "$LINENO"
9765 then :
9766   lt_cv_ld_exported_symbols_list=yes
9767 else $as_nop
9768   lt_cv_ld_exported_symbols_list=no
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9771     conftest$ac_exeext conftest.$ac_ext
9772         LDFLAGS=$save_LDFLAGS
9773
9774 fi
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9776 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9777
9778     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9779 printf %s "checking for -force_load linker flag... " >&6; }
9780 if test ${lt_cv_ld_force_load+y}
9781 then :
9782   printf %s "(cached) " >&6
9783 else $as_nop
9784   lt_cv_ld_force_load=no
9785       cat > conftest.c << _LT_EOF
9786 int forced_loaded() { return 2;}
9787 _LT_EOF
9788       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9789       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9790       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9791       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9792       echo "$RANLIB libconftest.a" >&5
9793       $RANLIB libconftest.a 2>&5
9794       cat > conftest.c << _LT_EOF
9795 int main() { return 0;}
9796 _LT_EOF
9797       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9798       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9799       _lt_result=$?
9800       if test -s conftest.err && $GREP force_load conftest.err; then
9801         cat conftest.err >&5
9802       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9803         lt_cv_ld_force_load=yes
9804       else
9805         cat conftest.err >&5
9806       fi
9807         rm -f conftest.err libconftest.a conftest conftest.c
9808         rm -rf conftest.dSYM
9809
9810 fi
9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9812 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9813     case $host_os in
9814     rhapsody* | darwin1.[012])
9815       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9816     darwin1.*)
9817       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9818     darwin*)
9819       case $MACOSX_DEPLOYMENT_TARGET,$host in
9820         10.[012],*|,*powerpc*-darwin[5-8]*)
9821           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9822         *)
9823           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9824       esac
9825     ;;
9826   esac
9827     if test yes = "$lt_cv_apple_cc_single_mod"; then
9828       _lt_dar_single_mod='$single_module'
9829     fi
9830     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9831       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9832     else
9833       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9834     fi
9835     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9836       _lt_dsymutil='~$DSYMUTIL $lib || :'
9837     else
9838       _lt_dsymutil=
9839     fi
9840     ;;
9841   esac
9842
9843 # func_munge_path_list VARIABLE PATH
9844 # -----------------------------------
9845 # VARIABLE is name of variable containing _space_ separated list of
9846 # directories to be munged by the contents of PATH, which is string
9847 # having a format:
9848 # "DIR[:DIR]:"
9849 #       string "DIR[ DIR]" will be prepended to VARIABLE
9850 # ":DIR[:DIR]"
9851 #       string "DIR[ DIR]" will be appended to VARIABLE
9852 # "DIRP[:DIRP]::[DIRA:]DIRA"
9853 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9854 #       "DIRA[ DIRA]" will be appended to VARIABLE
9855 # "DIR[:DIR]"
9856 #       VARIABLE will be replaced by "DIR[ DIR]"
9857 func_munge_path_list ()
9858 {
9859     case x$2 in
9860     x)
9861         ;;
9862     *:)
9863         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9864         ;;
9865     x:*)
9866         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9867         ;;
9868     *::*)
9869         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9870         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9871         ;;
9872     *)
9873         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9874         ;;
9875     esac
9876 }
9877
9878 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9879 "
9880 if test "x$ac_cv_header_dlfcn_h" = xyes
9881 then :
9882   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9883
9884 fi
9885
9886
9887
9888
9889
9890 # Set options
9891 # Check whether --enable-static was given.
9892 if test ${enable_static+y}
9893 then :
9894   enableval=$enable_static; p=${PACKAGE-default}
9895     case $enableval in
9896     yes) enable_static=yes ;;
9897     no) enable_static=no ;;
9898     *)
9899      enable_static=no
9900       # Look at the argument we got.  We use all the common list separators.
9901       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9902       for pkg in $enableval; do
9903         IFS=$lt_save_ifs
9904         if test "X$pkg" = "X$p"; then
9905           enable_static=yes
9906         fi
9907       done
9908       IFS=$lt_save_ifs
9909       ;;
9910     esac
9911 else $as_nop
9912   enable_static=no
9913 fi
9914
9915
9916
9917
9918
9919
9920
9921 enable_win32_dll=yes
9922
9923 case $host in
9924 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9925   if test -n "$ac_tool_prefix"; then
9926   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9927 set dummy ${ac_tool_prefix}as; ac_word=$2
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 printf %s "checking for $ac_word... " >&6; }
9930 if test ${ac_cv_prog_AS+y}
9931 then :
9932   printf %s "(cached) " >&6
9933 else $as_nop
9934   if test -n "$AS"; then
9935   ac_cv_prog_AS="$AS" # Let the user override the test.
9936 else
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938 for as_dir in $PATH
9939 do
9940   IFS=$as_save_IFS
9941   case $as_dir in #(((
9942     '') as_dir=./ ;;
9943     */) ;;
9944     *) as_dir=$as_dir/ ;;
9945   esac
9946     for ac_exec_ext in '' $ac_executable_extensions; do
9947   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9948     ac_cv_prog_AS="${ac_tool_prefix}as"
9949     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9950     break 2
9951   fi
9952 done
9953   done
9954 IFS=$as_save_IFS
9955
9956 fi
9957 fi
9958 AS=$ac_cv_prog_AS
9959 if test -n "$AS"; then
9960   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9961 printf "%s\n" "$AS" >&6; }
9962 else
9963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 printf "%s\n" "no" >&6; }
9965 fi
9966
9967
9968 fi
9969 if test -z "$ac_cv_prog_AS"; then
9970   ac_ct_AS=$AS
9971   # Extract the first word of "as", so it can be a program name with args.
9972 set dummy as; ac_word=$2
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974 printf %s "checking for $ac_word... " >&6; }
9975 if test ${ac_cv_prog_ac_ct_AS+y}
9976 then :
9977   printf %s "(cached) " >&6
9978 else $as_nop
9979   if test -n "$ac_ct_AS"; then
9980   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9981 else
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH
9984 do
9985   IFS=$as_save_IFS
9986   case $as_dir in #(((
9987     '') as_dir=./ ;;
9988     */) ;;
9989     *) as_dir=$as_dir/ ;;
9990   esac
9991     for ac_exec_ext in '' $ac_executable_extensions; do
9992   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9993     ac_cv_prog_ac_ct_AS="as"
9994     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9995     break 2
9996   fi
9997 done
9998   done
9999 IFS=$as_save_IFS
10000
10001 fi
10002 fi
10003 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10004 if test -n "$ac_ct_AS"; then
10005   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10006 printf "%s\n" "$ac_ct_AS" >&6; }
10007 else
10008   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 printf "%s\n" "no" >&6; }
10010 fi
10011
10012   if test "x$ac_ct_AS" = x; then
10013     AS="false"
10014   else
10015     case $cross_compiling:$ac_tool_warned in
10016 yes:)
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10018 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10019 ac_tool_warned=yes ;;
10020 esac
10021     AS=$ac_ct_AS
10022   fi
10023 else
10024   AS="$ac_cv_prog_AS"
10025 fi
10026
10027   if test -n "$ac_tool_prefix"; then
10028   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10029 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 printf %s "checking for $ac_word... " >&6; }
10032 if test ${ac_cv_prog_DLLTOOL+y}
10033 then :
10034   printf %s "(cached) " >&6
10035 else $as_nop
10036   if test -n "$DLLTOOL"; then
10037   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10038 else
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10041 do
10042   IFS=$as_save_IFS
10043   case $as_dir in #(((
10044     '') as_dir=./ ;;
10045     */) ;;
10046     *) as_dir=$as_dir/ ;;
10047   esac
10048     for ac_exec_ext in '' $ac_executable_extensions; do
10049   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10050     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10051     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10052     break 2
10053   fi
10054 done
10055   done
10056 IFS=$as_save_IFS
10057
10058 fi
10059 fi
10060 DLLTOOL=$ac_cv_prog_DLLTOOL
10061 if test -n "$DLLTOOL"; then
10062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10063 printf "%s\n" "$DLLTOOL" >&6; }
10064 else
10065   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 printf "%s\n" "no" >&6; }
10067 fi
10068
10069
10070 fi
10071 if test -z "$ac_cv_prog_DLLTOOL"; then
10072   ac_ct_DLLTOOL=$DLLTOOL
10073   # Extract the first word of "dlltool", so it can be a program name with args.
10074 set dummy dlltool; ac_word=$2
10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 printf %s "checking for $ac_word... " >&6; }
10077 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10078 then :
10079   printf %s "(cached) " >&6
10080 else $as_nop
10081   if test -n "$ac_ct_DLLTOOL"; then
10082   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10083 else
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10086 do
10087   IFS=$as_save_IFS
10088   case $as_dir in #(((
10089     '') as_dir=./ ;;
10090     */) ;;
10091     *) as_dir=$as_dir/ ;;
10092   esac
10093     for ac_exec_ext in '' $ac_executable_extensions; do
10094   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10095     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10096     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10097     break 2
10098   fi
10099 done
10100   done
10101 IFS=$as_save_IFS
10102
10103 fi
10104 fi
10105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10106 if test -n "$ac_ct_DLLTOOL"; then
10107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10108 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10109 else
10110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 printf "%s\n" "no" >&6; }
10112 fi
10113
10114   if test "x$ac_ct_DLLTOOL" = x; then
10115     DLLTOOL="false"
10116   else
10117     case $cross_compiling:$ac_tool_warned in
10118 yes:)
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121 ac_tool_warned=yes ;;
10122 esac
10123     DLLTOOL=$ac_ct_DLLTOOL
10124   fi
10125 else
10126   DLLTOOL="$ac_cv_prog_DLLTOOL"
10127 fi
10128
10129   if test -n "$ac_tool_prefix"; then
10130   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10131 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133 printf %s "checking for $ac_word... " >&6; }
10134 if test ${ac_cv_prog_OBJDUMP+y}
10135 then :
10136   printf %s "(cached) " >&6
10137 else $as_nop
10138   if test -n "$OBJDUMP"; then
10139   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144   IFS=$as_save_IFS
10145   case $as_dir in #(((
10146     '') as_dir=./ ;;
10147     */) ;;
10148     *) as_dir=$as_dir/ ;;
10149   esac
10150     for ac_exec_ext in '' $ac_executable_extensions; do
10151   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10152     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10153     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10154     break 2
10155   fi
10156 done
10157   done
10158 IFS=$as_save_IFS
10159
10160 fi
10161 fi
10162 OBJDUMP=$ac_cv_prog_OBJDUMP
10163 if test -n "$OBJDUMP"; then
10164   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10165 printf "%s\n" "$OBJDUMP" >&6; }
10166 else
10167   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 printf "%s\n" "no" >&6; }
10169 fi
10170
10171
10172 fi
10173 if test -z "$ac_cv_prog_OBJDUMP"; then
10174   ac_ct_OBJDUMP=$OBJDUMP
10175   # Extract the first word of "objdump", so it can be a program name with args.
10176 set dummy objdump; ac_word=$2
10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 printf %s "checking for $ac_word... " >&6; }
10179 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10180 then :
10181   printf %s "(cached) " >&6
10182 else $as_nop
10183   if test -n "$ac_ct_OBJDUMP"; then
10184   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10185 else
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in $PATH
10188 do
10189   IFS=$as_save_IFS
10190   case $as_dir in #(((
10191     '') as_dir=./ ;;
10192     */) ;;
10193     *) as_dir=$as_dir/ ;;
10194   esac
10195     for ac_exec_ext in '' $ac_executable_extensions; do
10196   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10197     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10198     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10199     break 2
10200   fi
10201 done
10202   done
10203 IFS=$as_save_IFS
10204
10205 fi
10206 fi
10207 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10208 if test -n "$ac_ct_OBJDUMP"; then
10209   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10210 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10211 else
10212   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 printf "%s\n" "no" >&6; }
10214 fi
10215
10216   if test "x$ac_ct_OBJDUMP" = x; then
10217     OBJDUMP="false"
10218   else
10219     case $cross_compiling:$ac_tool_warned in
10220 yes:)
10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10223 ac_tool_warned=yes ;;
10224 esac
10225     OBJDUMP=$ac_ct_OBJDUMP
10226   fi
10227 else
10228   OBJDUMP="$ac_cv_prog_OBJDUMP"
10229 fi
10230
10231   ;;
10232 esac
10233
10234 test -z "$AS" && AS=as
10235
10236
10237
10238
10239
10240 test -z "$DLLTOOL" && DLLTOOL=dlltool
10241
10242
10243
10244
10245
10246 test -z "$OBJDUMP" && OBJDUMP=objdump
10247
10248
10249
10250
10251
10252
10253
10254         enable_dlopen=no
10255
10256
10257
10258             # Check whether --enable-shared was given.
10259 if test ${enable_shared+y}
10260 then :
10261   enableval=$enable_shared; p=${PACKAGE-default}
10262     case $enableval in
10263     yes) enable_shared=yes ;;
10264     no) enable_shared=no ;;
10265     *)
10266       enable_shared=no
10267       # Look at the argument we got.  We use all the common list separators.
10268       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10269       for pkg in $enableval; do
10270         IFS=$lt_save_ifs
10271         if test "X$pkg" = "X$p"; then
10272           enable_shared=yes
10273         fi
10274       done
10275       IFS=$lt_save_ifs
10276       ;;
10277     esac
10278 else $as_nop
10279   enable_shared=yes
10280 fi
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292 # Check whether --with-pic was given.
10293 if test ${with_pic+y}
10294 then :
10295   withval=$with_pic; lt_p=${PACKAGE-default}
10296     case $withval in
10297     yes|no) pic_mode=$withval ;;
10298     *)
10299       pic_mode=default
10300       # Look at the argument we got.  We use all the common list separators.
10301       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10302       for lt_pkg in $withval; do
10303         IFS=$lt_save_ifs
10304         if test "X$lt_pkg" = "X$lt_p"; then
10305           pic_mode=yes
10306         fi
10307       done
10308       IFS=$lt_save_ifs
10309       ;;
10310     esac
10311 else $as_nop
10312   pic_mode=default
10313 fi
10314
10315
10316
10317
10318
10319
10320
10321
10322   # Check whether --enable-fast-install was given.
10323 if test ${enable_fast_install+y}
10324 then :
10325   enableval=$enable_fast_install; p=${PACKAGE-default}
10326     case $enableval in
10327     yes) enable_fast_install=yes ;;
10328     no) enable_fast_install=no ;;
10329     *)
10330       enable_fast_install=no
10331       # Look at the argument we got.  We use all the common list separators.
10332       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10333       for pkg in $enableval; do
10334         IFS=$lt_save_ifs
10335         if test "X$pkg" = "X$p"; then
10336           enable_fast_install=yes
10337         fi
10338       done
10339       IFS=$lt_save_ifs
10340       ;;
10341     esac
10342 else $as_nop
10343   enable_fast_install=yes
10344 fi
10345
10346
10347
10348
10349
10350
10351
10352
10353   shared_archive_member_spec=
10354 case $host,$enable_shared in
10355 power*-*-aix[5-9]*,yes)
10356   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10357 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10358
10359 # Check whether --with-aix-soname was given.
10360 if test ${with_aix_soname+y}
10361 then :
10362   withval=$with_aix_soname; case $withval in
10363     aix|svr4|both)
10364       ;;
10365     *)
10366       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10367       ;;
10368     esac
10369     lt_cv_with_aix_soname=$with_aix_soname
10370 else $as_nop
10371   if test ${lt_cv_with_aix_soname+y}
10372 then :
10373   printf %s "(cached) " >&6
10374 else $as_nop
10375   lt_cv_with_aix_soname=aix
10376 fi
10377
10378     with_aix_soname=$lt_cv_with_aix_soname
10379 fi
10380
10381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10382 printf "%s\n" "$with_aix_soname" >&6; }
10383   if test aix != "$with_aix_soname"; then
10384     # For the AIX way of multilib, we name the shared archive member
10385     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10386     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10387     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10388     # the AIX toolchain works better with OBJECT_MODE set (default 32).
10389     if test 64 = "${OBJECT_MODE-32}"; then
10390       shared_archive_member_spec=shr_64
10391     else
10392       shared_archive_member_spec=shr
10393     fi
10394   fi
10395   ;;
10396 *)
10397   with_aix_soname=aix
10398   ;;
10399 esac
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410 # This can be used to rebuild libtool when needed
10411 LIBTOOL_DEPS=$ltmain
10412
10413 # Always use our own libtool.
10414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445 test -z "$LN_S" && LN_S="ln -s"
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460 if test -n "${ZSH_VERSION+set}"; then
10461    setopt NO_GLOB_SUBST
10462 fi
10463
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10465 printf %s "checking for objdir... " >&6; }
10466 if test ${lt_cv_objdir+y}
10467 then :
10468   printf %s "(cached) " >&6
10469 else $as_nop
10470   rm -f .libs 2>/dev/null
10471 mkdir .libs 2>/dev/null
10472 if test -d .libs; then
10473   lt_cv_objdir=.libs
10474 else
10475   # MS-DOS does not allow filenames that begin with a dot.
10476   lt_cv_objdir=_libs
10477 fi
10478 rmdir .libs 2>/dev/null
10479 fi
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10481 printf "%s\n" "$lt_cv_objdir" >&6; }
10482 objdir=$lt_cv_objdir
10483
10484
10485
10486
10487
10488 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10489
10490
10491
10492
10493 case $host_os in
10494 aix3*)
10495   # AIX sometimes has problems with the GCC collect2 program.  For some
10496   # reason, if we set the COLLECT_NAMES environment variable, the problems
10497   # vanish in a puff of smoke.
10498   if test set != "${COLLECT_NAMES+set}"; then
10499     COLLECT_NAMES=
10500     export COLLECT_NAMES
10501   fi
10502   ;;
10503 esac
10504
10505 # Global variables:
10506 ofile=libtool
10507 can_build_shared=yes
10508
10509 # All known linkers require a '.a' archive for static linking (except MSVC and
10510 # ICC, which need '.lib').
10511 libext=a
10512
10513 with_gnu_ld=$lt_cv_prog_gnu_ld
10514
10515 old_CC=$CC
10516 old_CFLAGS=$CFLAGS
10517
10518 # Set sane defaults for various variables
10519 test -z "$CC" && CC=cc
10520 test -z "$LTCC" && LTCC=$CC
10521 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10522 test -z "$LD" && LD=ld
10523 test -z "$ac_objext" && ac_objext=o
10524
10525 func_cc_basename $compiler
10526 cc_basename=$func_cc_basename_result
10527
10528
10529 # Only perform the check for file, if the check method requires it
10530 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10531 case $deplibs_check_method in
10532 file_magic*)
10533   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10534     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10535 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10536 if test ${lt_cv_path_MAGIC_CMD+y}
10537 then :
10538   printf %s "(cached) " >&6
10539 else $as_nop
10540   case $MAGIC_CMD in
10541 [\\/*] |  ?:[\\/]*)
10542   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10543   ;;
10544 *)
10545   lt_save_MAGIC_CMD=$MAGIC_CMD
10546   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10547   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10548   for ac_dir in $ac_dummy; do
10549     IFS=$lt_save_ifs
10550     test -z "$ac_dir" && ac_dir=.
10551     if test -f "$ac_dir/${ac_tool_prefix}file"; then
10552       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10553       if test -n "$file_magic_test_file"; then
10554         case $deplibs_check_method in
10555         "file_magic "*)
10556           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10557           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10558           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10559             $EGREP "$file_magic_regex" > /dev/null; then
10560             :
10561           else
10562             cat <<_LT_EOF 1>&2
10563
10564 *** Warning: the command libtool uses to detect shared libraries,
10565 *** $file_magic_cmd, produces output that libtool cannot recognize.
10566 *** The result is that libtool may fail to recognize shared libraries
10567 *** as such.  This will affect the creation of libtool libraries that
10568 *** depend on shared libraries, but programs linked with such libtool
10569 *** libraries will work regardless of this problem.  Nevertheless, you
10570 *** may want to report the problem to your system manager and/or to
10571 *** bug-libtool@gnu.org
10572
10573 _LT_EOF
10574           fi ;;
10575         esac
10576       fi
10577       break
10578     fi
10579   done
10580   IFS=$lt_save_ifs
10581   MAGIC_CMD=$lt_save_MAGIC_CMD
10582   ;;
10583 esac
10584 fi
10585
10586 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10587 if test -n "$MAGIC_CMD"; then
10588   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10589 printf "%s\n" "$MAGIC_CMD" >&6; }
10590 else
10591   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 printf "%s\n" "no" >&6; }
10593 fi
10594
10595
10596
10597
10598
10599 if test -z "$lt_cv_path_MAGIC_CMD"; then
10600   if test -n "$ac_tool_prefix"; then
10601     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10602 printf %s "checking for file... " >&6; }
10603 if test ${lt_cv_path_MAGIC_CMD+y}
10604 then :
10605   printf %s "(cached) " >&6
10606 else $as_nop
10607   case $MAGIC_CMD in
10608 [\\/*] |  ?:[\\/]*)
10609   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10610   ;;
10611 *)
10612   lt_save_MAGIC_CMD=$MAGIC_CMD
10613   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10614   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10615   for ac_dir in $ac_dummy; do
10616     IFS=$lt_save_ifs
10617     test -z "$ac_dir" && ac_dir=.
10618     if test -f "$ac_dir/file"; then
10619       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10620       if test -n "$file_magic_test_file"; then
10621         case $deplibs_check_method in
10622         "file_magic "*)
10623           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10624           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10625           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10626             $EGREP "$file_magic_regex" > /dev/null; then
10627             :
10628           else
10629             cat <<_LT_EOF 1>&2
10630
10631 *** Warning: the command libtool uses to detect shared libraries,
10632 *** $file_magic_cmd, produces output that libtool cannot recognize.
10633 *** The result is that libtool may fail to recognize shared libraries
10634 *** as such.  This will affect the creation of libtool libraries that
10635 *** depend on shared libraries, but programs linked with such libtool
10636 *** libraries will work regardless of this problem.  Nevertheless, you
10637 *** may want to report the problem to your system manager and/or to
10638 *** bug-libtool@gnu.org
10639
10640 _LT_EOF
10641           fi ;;
10642         esac
10643       fi
10644       break
10645     fi
10646   done
10647   IFS=$lt_save_ifs
10648   MAGIC_CMD=$lt_save_MAGIC_CMD
10649   ;;
10650 esac
10651 fi
10652
10653 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10654 if test -n "$MAGIC_CMD"; then
10655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10656 printf "%s\n" "$MAGIC_CMD" >&6; }
10657 else
10658   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659 printf "%s\n" "no" >&6; }
10660 fi
10661
10662
10663   else
10664     MAGIC_CMD=:
10665   fi
10666 fi
10667
10668   fi
10669   ;;
10670 esac
10671
10672 # Use C for the default configuration in the libtool script
10673
10674 lt_save_CC=$CC
10675 ac_ext=c
10676 ac_cpp='$CPP $CPPFLAGS'
10677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10680
10681
10682 # Source file extension for C test sources.
10683 ac_ext=c
10684
10685 # Object file extension for compiled C test sources.
10686 objext=o
10687 objext=$objext
10688
10689 # Code to be used in simple compile tests
10690 lt_simple_compile_test_code="int some_variable = 0;"
10691
10692 # Code to be used in simple link tests
10693 lt_simple_link_test_code='int main(){return(0);}'
10694
10695
10696
10697
10698
10699
10700
10701 # If no C compiler was specified, use CC.
10702 LTCC=${LTCC-"$CC"}
10703
10704 # If no C compiler flags were specified, use CFLAGS.
10705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10706
10707 # Allow CC to be a program name with arguments.
10708 compiler=$CC
10709
10710 # Save the default compiler, since it gets overwritten when the other
10711 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10712 compiler_DEFAULT=$CC
10713
10714 # save warnings/boilerplate of simple test code
10715 ac_outfile=conftest.$ac_objext
10716 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10717 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10718 _lt_compiler_boilerplate=`cat conftest.err`
10719 $RM conftest*
10720
10721 ac_outfile=conftest.$ac_objext
10722 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10723 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10724 _lt_linker_boilerplate=`cat conftest.err`
10725 $RM -r conftest*
10726
10727
10728 ## CAVEAT EMPTOR:
10729 ## There is no encapsulation within the following macros, do not change
10730 ## the running order or otherwise move them around unless you know exactly
10731 ## what you are doing...
10732 if test -n "$compiler"; then
10733
10734 lt_prog_compiler_no_builtin_flag=
10735
10736 if test yes = "$GCC"; then
10737   case $cc_basename in
10738   nvcc*)
10739     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10740   *)
10741     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10742   esac
10743
10744   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10745 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10746 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10747 then :
10748   printf %s "(cached) " >&6
10749 else $as_nop
10750   lt_cv_prog_compiler_rtti_exceptions=no
10751    ac_outfile=conftest.$ac_objext
10752    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10753    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10754    # Insert the option either (1) after the last *FLAGS variable, or
10755    # (2) before a word containing "conftest.", or (3) at the end.
10756    # Note that $ac_compile itself does not contain backslashes and begins
10757    # with a dollar sign (not a hyphen), so the echo should work correctly.
10758    # The option is referenced via a variable to avoid confusing sed.
10759    lt_compile=`echo "$ac_compile" | $SED \
10760    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10761    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10762    -e 's:$: $lt_compiler_flag:'`
10763    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10764    (eval "$lt_compile" 2>conftest.err)
10765    ac_status=$?
10766    cat conftest.err >&5
10767    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768    if (exit $ac_status) && test -s "$ac_outfile"; then
10769      # The compiler can only warn and ignore the option if not recognized
10770      # So say no if there are warnings other than the usual output.
10771      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10772      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10773      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10774        lt_cv_prog_compiler_rtti_exceptions=yes
10775      fi
10776    fi
10777    $RM conftest*
10778
10779 fi
10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10781 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10782
10783 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10784     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10785 else
10786     :
10787 fi
10788
10789 fi
10790
10791
10792
10793
10794
10795
10796   lt_prog_compiler_wl=
10797 lt_prog_compiler_pic=
10798 lt_prog_compiler_static=
10799
10800
10801   if test yes = "$GCC"; then
10802     lt_prog_compiler_wl='-Wl,'
10803     lt_prog_compiler_static='-static'
10804
10805     case $host_os in
10806       aix*)
10807       # All AIX code is PIC.
10808       if test ia64 = "$host_cpu"; then
10809         # AIX 5 now supports IA64 processor
10810         lt_prog_compiler_static='-Bstatic'
10811       fi
10812       lt_prog_compiler_pic='-fPIC'
10813       ;;
10814
10815     amigaos*)
10816       case $host_cpu in
10817       powerpc)
10818             # see comment about AmigaOS4 .so support
10819             lt_prog_compiler_pic='-fPIC'
10820         ;;
10821       m68k)
10822             # FIXME: we need at least 68020 code to build shared libraries, but
10823             # adding the '-m68020' flag to GCC prevents building anything better,
10824             # like '-m68040'.
10825             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10826         ;;
10827       esac
10828       ;;
10829
10830     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10831       # PIC is the default for these OSes.
10832       ;;
10833
10834     mingw* | cygwin* | pw32* | os2* | cegcc*)
10835       # This hack is so that the source file can tell whether it is being
10836       # built for inclusion in a dll (and should export symbols for example).
10837       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10838       # (--disable-auto-import) libraries
10839       lt_prog_compiler_pic='-DDLL_EXPORT'
10840       case $host_os in
10841       os2*)
10842         lt_prog_compiler_static='$wl-static'
10843         ;;
10844       esac
10845       ;;
10846
10847     darwin* | rhapsody*)
10848       # PIC is the default on this platform
10849       # Common symbols not allowed in MH_DYLIB files
10850       lt_prog_compiler_pic='-fno-common'
10851       ;;
10852
10853     haiku*)
10854       # PIC is the default for Haiku.
10855       # The "-static" flag exists, but is broken.
10856       lt_prog_compiler_static=
10857       ;;
10858
10859     hpux*)
10860       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10861       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10862       # sets the default TLS model and affects inlining.
10863       case $host_cpu in
10864       hppa*64*)
10865         # +Z the default
10866         ;;
10867       *)
10868         lt_prog_compiler_pic='-fPIC'
10869         ;;
10870       esac
10871       ;;
10872
10873     interix[3-9]*)
10874       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10875       # Instead, we relocate shared libraries at runtime.
10876       ;;
10877
10878     msdosdjgpp*)
10879       # Just because we use GCC doesn't mean we suddenly get shared libraries
10880       # on systems that don't support them.
10881       lt_prog_compiler_can_build_shared=no
10882       enable_shared=no
10883       ;;
10884
10885     *nto* | *qnx*)
10886       # QNX uses GNU C++, but need to define -shared option too, otherwise
10887       # it will coredump.
10888       lt_prog_compiler_pic='-fPIC -shared'
10889       ;;
10890
10891     sysv4*MP*)
10892       if test -d /usr/nec; then
10893         lt_prog_compiler_pic=-Kconform_pic
10894       fi
10895       ;;
10896
10897     *)
10898       lt_prog_compiler_pic='-fPIC'
10899       ;;
10900     esac
10901
10902     case $cc_basename in
10903     nvcc*) # Cuda Compiler Driver 2.2
10904       lt_prog_compiler_wl='-Xlinker '
10905       if test -n "$lt_prog_compiler_pic"; then
10906         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10907       fi
10908       ;;
10909     esac
10910   else
10911     # PORTME Check for flag to pass linker flags through the system compiler.
10912     case $host_os in
10913     aix*)
10914       lt_prog_compiler_wl='-Wl,'
10915       if test ia64 = "$host_cpu"; then
10916         # AIX 5 now supports IA64 processor
10917         lt_prog_compiler_static='-Bstatic'
10918       else
10919         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10920       fi
10921       ;;
10922
10923     darwin* | rhapsody*)
10924       # PIC is the default on this platform
10925       # Common symbols not allowed in MH_DYLIB files
10926       lt_prog_compiler_pic='-fno-common'
10927       case $cc_basename in
10928       nagfor*)
10929         # NAG Fortran compiler
10930         lt_prog_compiler_wl='-Wl,-Wl,,'
10931         lt_prog_compiler_pic='-PIC'
10932         lt_prog_compiler_static='-Bstatic'
10933         ;;
10934       esac
10935       ;;
10936
10937     mingw* | cygwin* | pw32* | os2* | cegcc*)
10938       # This hack is so that the source file can tell whether it is being
10939       # built for inclusion in a dll (and should export symbols for example).
10940       lt_prog_compiler_pic='-DDLL_EXPORT'
10941       case $host_os in
10942       os2*)
10943         lt_prog_compiler_static='$wl-static'
10944         ;;
10945       esac
10946       ;;
10947
10948     hpux9* | hpux10* | hpux11*)
10949       lt_prog_compiler_wl='-Wl,'
10950       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10951       # not for PA HP-UX.
10952       case $host_cpu in
10953       hppa*64*|ia64*)
10954         # +Z the default
10955         ;;
10956       *)
10957         lt_prog_compiler_pic='+Z'
10958         ;;
10959       esac
10960       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10961       lt_prog_compiler_static='$wl-a ${wl}archive'
10962       ;;
10963
10964     irix5* | irix6* | nonstopux*)
10965       lt_prog_compiler_wl='-Wl,'
10966       # PIC (with -KPIC) is the default.
10967       lt_prog_compiler_static='-non_shared'
10968       ;;
10969
10970     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10971       case $cc_basename in
10972       # old Intel for x86_64, which still supported -KPIC.
10973       ecc*)
10974         lt_prog_compiler_wl='-Wl,'
10975         lt_prog_compiler_pic='-KPIC'
10976         lt_prog_compiler_static='-static'
10977         ;;
10978       # icc used to be incompatible with GCC.
10979       # ICC 10 doesn't accept -KPIC any more.
10980       icc* | ifort*)
10981         lt_prog_compiler_wl='-Wl,'
10982         lt_prog_compiler_pic='-fPIC'
10983         lt_prog_compiler_static='-static'
10984         ;;
10985       # Lahey Fortran 8.1.
10986       lf95*)
10987         lt_prog_compiler_wl='-Wl,'
10988         lt_prog_compiler_pic='--shared'
10989         lt_prog_compiler_static='--static'
10990         ;;
10991       nagfor*)
10992         # NAG Fortran compiler
10993         lt_prog_compiler_wl='-Wl,-Wl,,'
10994         lt_prog_compiler_pic='-PIC'
10995         lt_prog_compiler_static='-Bstatic'
10996         ;;
10997       tcc*)
10998         # Fabrice Bellard et al's Tiny C Compiler
10999         lt_prog_compiler_wl='-Wl,'
11000         lt_prog_compiler_pic='-fPIC'
11001         lt_prog_compiler_static='-static'
11002         ;;
11003       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11004         # Portland Group compilers (*not* the Pentium gcc compiler,
11005         # which looks to be a dead project)
11006         lt_prog_compiler_wl='-Wl,'
11007         lt_prog_compiler_pic='-fpic'
11008         lt_prog_compiler_static='-Bstatic'
11009         ;;
11010       ccc*)
11011         lt_prog_compiler_wl='-Wl,'
11012         # All Alpha code is PIC.
11013         lt_prog_compiler_static='-non_shared'
11014         ;;
11015       xl* | bgxl* | bgf* | mpixl*)
11016         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11017         lt_prog_compiler_wl='-Wl,'
11018         lt_prog_compiler_pic='-qpic'
11019         lt_prog_compiler_static='-qstaticlink'
11020         ;;
11021       *)
11022         case `$CC -V 2>&1 | $SED 5q` in
11023         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11024           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11025           lt_prog_compiler_pic='-KPIC'
11026           lt_prog_compiler_static='-Bstatic'
11027           lt_prog_compiler_wl=''
11028           ;;
11029         *Sun\ F* | *Sun*Fortran*)
11030           lt_prog_compiler_pic='-KPIC'
11031           lt_prog_compiler_static='-Bstatic'
11032           lt_prog_compiler_wl='-Qoption ld '
11033           ;;
11034         *Sun\ C*)
11035           # Sun C 5.9
11036           lt_prog_compiler_pic='-KPIC'
11037           lt_prog_compiler_static='-Bstatic'
11038           lt_prog_compiler_wl='-Wl,'
11039           ;;
11040         *Intel*\ [CF]*Compiler*)
11041           lt_prog_compiler_wl='-Wl,'
11042           lt_prog_compiler_pic='-fPIC'
11043           lt_prog_compiler_static='-static'
11044           ;;
11045         *Portland\ Group*)
11046           lt_prog_compiler_wl='-Wl,'
11047           lt_prog_compiler_pic='-fpic'
11048           lt_prog_compiler_static='-Bstatic'
11049           ;;
11050         esac
11051         ;;
11052       esac
11053       ;;
11054
11055     newsos6)
11056       lt_prog_compiler_pic='-KPIC'
11057       lt_prog_compiler_static='-Bstatic'
11058       ;;
11059
11060     *nto* | *qnx*)
11061       # QNX uses GNU C++, but need to define -shared option too, otherwise
11062       # it will coredump.
11063       lt_prog_compiler_pic='-fPIC -shared'
11064       ;;
11065
11066     osf3* | osf4* | osf5*)
11067       lt_prog_compiler_wl='-Wl,'
11068       # All OSF/1 code is PIC.
11069       lt_prog_compiler_static='-non_shared'
11070       ;;
11071
11072     rdos*)
11073       lt_prog_compiler_static='-non_shared'
11074       ;;
11075
11076     solaris*)
11077       lt_prog_compiler_pic='-KPIC'
11078       lt_prog_compiler_static='-Bstatic'
11079       case $cc_basename in
11080       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11081         lt_prog_compiler_wl='-Qoption ld ';;
11082       *)
11083         lt_prog_compiler_wl='-Wl,';;
11084       esac
11085       ;;
11086
11087     sunos4*)
11088       lt_prog_compiler_wl='-Qoption ld '
11089       lt_prog_compiler_pic='-PIC'
11090       lt_prog_compiler_static='-Bstatic'
11091       ;;
11092
11093     sysv4 | sysv4.2uw2* | sysv4.3*)
11094       lt_prog_compiler_wl='-Wl,'
11095       lt_prog_compiler_pic='-KPIC'
11096       lt_prog_compiler_static='-Bstatic'
11097       ;;
11098
11099     sysv4*MP*)
11100       if test -d /usr/nec; then
11101         lt_prog_compiler_pic='-Kconform_pic'
11102         lt_prog_compiler_static='-Bstatic'
11103       fi
11104       ;;
11105
11106     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11107       lt_prog_compiler_wl='-Wl,'
11108       lt_prog_compiler_pic='-KPIC'
11109       lt_prog_compiler_static='-Bstatic'
11110       ;;
11111
11112     unicos*)
11113       lt_prog_compiler_wl='-Wl,'
11114       lt_prog_compiler_can_build_shared=no
11115       ;;
11116
11117     uts4*)
11118       lt_prog_compiler_pic='-pic'
11119       lt_prog_compiler_static='-Bstatic'
11120       ;;
11121
11122     *)
11123       lt_prog_compiler_can_build_shared=no
11124       ;;
11125     esac
11126   fi
11127
11128 case $host_os in
11129   # For platforms that do not support PIC, -DPIC is meaningless:
11130   *djgpp*)
11131     lt_prog_compiler_pic=
11132     ;;
11133   *)
11134     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11135     ;;
11136 esac
11137
11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11139 printf %s "checking for $compiler option to produce PIC... " >&6; }
11140 if test ${lt_cv_prog_compiler_pic+y}
11141 then :
11142   printf %s "(cached) " >&6
11143 else $as_nop
11144   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11145 fi
11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11147 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11148 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11149
11150 #
11151 # Check to make sure the PIC flag actually works.
11152 #
11153 if test -n "$lt_prog_compiler_pic"; then
11154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11155 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11156 if test ${lt_cv_prog_compiler_pic_works+y}
11157 then :
11158   printf %s "(cached) " >&6
11159 else $as_nop
11160   lt_cv_prog_compiler_pic_works=no
11161    ac_outfile=conftest.$ac_objext
11162    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11163    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11164    # Insert the option either (1) after the last *FLAGS variable, or
11165    # (2) before a word containing "conftest.", or (3) at the end.
11166    # Note that $ac_compile itself does not contain backslashes and begins
11167    # with a dollar sign (not a hyphen), so the echo should work correctly.
11168    # The option is referenced via a variable to avoid confusing sed.
11169    lt_compile=`echo "$ac_compile" | $SED \
11170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11172    -e 's:$: $lt_compiler_flag:'`
11173    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11174    (eval "$lt_compile" 2>conftest.err)
11175    ac_status=$?
11176    cat conftest.err >&5
11177    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178    if (exit $ac_status) && test -s "$ac_outfile"; then
11179      # The compiler can only warn and ignore the option if not recognized
11180      # So say no if there are warnings other than the usual output.
11181      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11182      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11183      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11184        lt_cv_prog_compiler_pic_works=yes
11185      fi
11186    fi
11187    $RM conftest*
11188
11189 fi
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11191 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11192
11193 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11194     case $lt_prog_compiler_pic in
11195      "" | " "*) ;;
11196      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11197      esac
11198 else
11199     lt_prog_compiler_pic=
11200      lt_prog_compiler_can_build_shared=no
11201 fi
11202
11203 fi
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215 #
11216 # Check to make sure the static flag actually works.
11217 #
11218 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11220 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11221 if test ${lt_cv_prog_compiler_static_works+y}
11222 then :
11223   printf %s "(cached) " >&6
11224 else $as_nop
11225   lt_cv_prog_compiler_static_works=no
11226    save_LDFLAGS=$LDFLAGS
11227    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11228    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11229    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11230      # The linker can only warn and ignore the option if not recognized
11231      # So say no if there are warnings
11232      if test -s conftest.err; then
11233        # Append any errors to the config.log.
11234        cat conftest.err 1>&5
11235        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11236        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11237        if diff conftest.exp conftest.er2 >/dev/null; then
11238          lt_cv_prog_compiler_static_works=yes
11239        fi
11240      else
11241        lt_cv_prog_compiler_static_works=yes
11242      fi
11243    fi
11244    $RM -r conftest*
11245    LDFLAGS=$save_LDFLAGS
11246
11247 fi
11248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11249 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11250
11251 if test yes = "$lt_cv_prog_compiler_static_works"; then
11252     :
11253 else
11254     lt_prog_compiler_static=
11255 fi
11256
11257
11258
11259
11260
11261
11262
11263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11264 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11265 if test ${lt_cv_prog_compiler_c_o+y}
11266 then :
11267   printf %s "(cached) " >&6
11268 else $as_nop
11269   lt_cv_prog_compiler_c_o=no
11270    $RM -r conftest 2>/dev/null
11271    mkdir conftest
11272    cd conftest
11273    mkdir out
11274    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11275
11276    lt_compiler_flag="-o out/conftest2.$ac_objext"
11277    # Insert the option either (1) after the last *FLAGS variable, or
11278    # (2) before a word containing "conftest.", or (3) at the end.
11279    # Note that $ac_compile itself does not contain backslashes and begins
11280    # with a dollar sign (not a hyphen), so the echo should work correctly.
11281    lt_compile=`echo "$ac_compile" | $SED \
11282    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11283    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11284    -e 's:$: $lt_compiler_flag:'`
11285    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11286    (eval "$lt_compile" 2>out/conftest.err)
11287    ac_status=$?
11288    cat out/conftest.err >&5
11289    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11291    then
11292      # The compiler can only warn and ignore the option if not recognized
11293      # So say no if there are warnings
11294      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11295      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11296      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11297        lt_cv_prog_compiler_c_o=yes
11298      fi
11299    fi
11300    chmod u+w . 2>&5
11301    $RM conftest*
11302    # SGI C++ compiler will create directory out/ii_files/ for
11303    # template instantiation
11304    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11305    $RM out/* && rmdir out
11306    cd ..
11307    $RM -r conftest
11308    $RM conftest*
11309
11310 fi
11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11312 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11313
11314
11315
11316
11317
11318
11319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11320 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11321 if test ${lt_cv_prog_compiler_c_o+y}
11322 then :
11323   printf %s "(cached) " >&6
11324 else $as_nop
11325   lt_cv_prog_compiler_c_o=no
11326    $RM -r conftest 2>/dev/null
11327    mkdir conftest
11328    cd conftest
11329    mkdir out
11330    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11331
11332    lt_compiler_flag="-o out/conftest2.$ac_objext"
11333    # Insert the option either (1) after the last *FLAGS variable, or
11334    # (2) before a word containing "conftest.", or (3) at the end.
11335    # Note that $ac_compile itself does not contain backslashes and begins
11336    # with a dollar sign (not a hyphen), so the echo should work correctly.
11337    lt_compile=`echo "$ac_compile" | $SED \
11338    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11339    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11340    -e 's:$: $lt_compiler_flag:'`
11341    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11342    (eval "$lt_compile" 2>out/conftest.err)
11343    ac_status=$?
11344    cat out/conftest.err >&5
11345    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11347    then
11348      # The compiler can only warn and ignore the option if not recognized
11349      # So say no if there are warnings
11350      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11351      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11352      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11353        lt_cv_prog_compiler_c_o=yes
11354      fi
11355    fi
11356    chmod u+w . 2>&5
11357    $RM conftest*
11358    # SGI C++ compiler will create directory out/ii_files/ for
11359    # template instantiation
11360    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11361    $RM out/* && rmdir out
11362    cd ..
11363    $RM -r conftest
11364    $RM conftest*
11365
11366 fi
11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11368 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11369
11370
11371
11372
11373 hard_links=nottested
11374 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11375   # do not overwrite the value of need_locks provided by the user
11376   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11377 printf %s "checking if we can lock with hard links... " >&6; }
11378   hard_links=yes
11379   $RM conftest*
11380   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11381   touch conftest.a
11382   ln conftest.a conftest.b 2>&5 || hard_links=no
11383   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11384   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11385 printf "%s\n" "$hard_links" >&6; }
11386   if test no = "$hard_links"; then
11387     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11388 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11389     need_locks=warn
11390   fi
11391 else
11392   need_locks=no
11393 fi
11394
11395
11396
11397
11398
11399
11400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11401 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11402
11403   runpath_var=
11404   allow_undefined_flag=
11405   always_export_symbols=no
11406   archive_cmds=
11407   archive_expsym_cmds=
11408   compiler_needs_object=no
11409   enable_shared_with_static_runtimes=no
11410   export_dynamic_flag_spec=
11411   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11412   hardcode_automatic=no
11413   hardcode_direct=no
11414   hardcode_direct_absolute=no
11415   hardcode_libdir_flag_spec=
11416   hardcode_libdir_separator=
11417   hardcode_minus_L=no
11418   hardcode_shlibpath_var=unsupported
11419   inherit_rpath=no
11420   link_all_deplibs=unknown
11421   module_cmds=
11422   module_expsym_cmds=
11423   old_archive_from_new_cmds=
11424   old_archive_from_expsyms_cmds=
11425   thread_safe_flag_spec=
11426   whole_archive_flag_spec=
11427   # include_expsyms should be a list of space-separated symbols to be *always*
11428   # included in the symbol list
11429   include_expsyms=
11430   # exclude_expsyms can be an extended regexp of symbols to exclude
11431   # it will be wrapped by ' (' and ')$', so one must not match beginning or
11432   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11433   # as well as any symbol that contains 'd'.
11434   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11435   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11436   # platforms (ab)use it in PIC code, but their linkers get confused if
11437   # the symbol is explicitly referenced.  Since portable code cannot
11438   # rely on this symbol name, it's probably fine to never include it in
11439   # preloaded symbol tables.
11440   # Exclude shared library initialization/finalization symbols.
11441   extract_expsyms_cmds=
11442
11443   case $host_os in
11444   cygwin* | mingw* | pw32* | cegcc*)
11445     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11446     # When not using gcc, we currently assume that we are using
11447     # Microsoft Visual C++ or Intel C++ Compiler.
11448     if test yes != "$GCC"; then
11449       with_gnu_ld=no
11450     fi
11451     ;;
11452   interix*)
11453     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11454     with_gnu_ld=yes
11455     ;;
11456   openbsd* | bitrig*)
11457     with_gnu_ld=no
11458     ;;
11459   esac
11460
11461   ld_shlibs=yes
11462
11463   # On some targets, GNU ld is compatible enough with the native linker
11464   # that we're better off using the native interface for both.
11465   lt_use_gnu_ld_interface=no
11466   if test yes = "$with_gnu_ld"; then
11467     case $host_os in
11468       aix*)
11469         # The AIX port of GNU ld has always aspired to compatibility
11470         # with the native linker.  However, as the warning in the GNU ld
11471         # block says, versions before 2.19.5* couldn't really create working
11472         # shared libraries, regardless of the interface used.
11473         case `$LD -v 2>&1` in
11474           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11475           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11476           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11477           *)
11478             lt_use_gnu_ld_interface=yes
11479             ;;
11480         esac
11481         ;;
11482       *)
11483         lt_use_gnu_ld_interface=yes
11484         ;;
11485     esac
11486   fi
11487
11488   if test yes = "$lt_use_gnu_ld_interface"; then
11489     # If archive_cmds runs LD, not CC, wlarc should be empty
11490     wlarc='$wl'
11491
11492     # Set some defaults for GNU ld with shared library support. These
11493     # are reset later if shared libraries are not supported. Putting them
11494     # here allows them to be overridden if necessary.
11495     runpath_var=LD_RUN_PATH
11496     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11497     export_dynamic_flag_spec='$wl--export-dynamic'
11498     # ancient GNU ld didn't support --whole-archive et. al.
11499     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11500       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11501     else
11502       whole_archive_flag_spec=
11503     fi
11504     supports_anon_versioning=no
11505     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11506       *GNU\ gold*) supports_anon_versioning=yes ;;
11507       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11508       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11509       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11510       *\ 2.11.*) ;; # other 2.11 versions
11511       *) supports_anon_versioning=yes ;;
11512     esac
11513
11514     # See if GNU ld supports shared libraries.
11515     case $host_os in
11516     aix[3-9]*)
11517       # On AIX/PPC, the GNU linker is very broken
11518       if test ia64 != "$host_cpu"; then
11519         ld_shlibs=no
11520         cat <<_LT_EOF 1>&2
11521
11522 *** Warning: the GNU linker, at least up to release 2.19, is reported
11523 *** to be unable to reliably create shared libraries on AIX.
11524 *** Therefore, libtool is disabling shared libraries support.  If you
11525 *** really care for shared libraries, you may want to install binutils
11526 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11527 *** You will then need to restart the configuration process.
11528
11529 _LT_EOF
11530       fi
11531       ;;
11532
11533     amigaos*)
11534       case $host_cpu in
11535       powerpc)
11536             # see comment about AmigaOS4 .so support
11537             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11538             archive_expsym_cmds=''
11539         ;;
11540       m68k)
11541             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)'
11542             hardcode_libdir_flag_spec='-L$libdir'
11543             hardcode_minus_L=yes
11544         ;;
11545       esac
11546       ;;
11547
11548     beos*)
11549       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11550         allow_undefined_flag=unsupported
11551         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11552         # support --undefined.  This deserves some investigation.  FIXME
11553         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11554       else
11555         ld_shlibs=no
11556       fi
11557       ;;
11558
11559     cygwin* | mingw* | pw32* | cegcc*)
11560       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11561       # as there is no search path for DLLs.
11562       hardcode_libdir_flag_spec='-L$libdir'
11563       export_dynamic_flag_spec='$wl--export-all-symbols'
11564       allow_undefined_flag=unsupported
11565       always_export_symbols=no
11566       enable_shared_with_static_runtimes=yes
11567       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'
11568       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11569
11570       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11571         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11572         # If the export-symbols file already is a .def file, use it as
11573         # is; otherwise, prepend EXPORTS...
11574         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11575           cp $export_symbols $output_objdir/$soname.def;
11576         else
11577           echo EXPORTS > $output_objdir/$soname.def;
11578           cat $export_symbols >> $output_objdir/$soname.def;
11579         fi~
11580         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11581       else
11582         ld_shlibs=no
11583       fi
11584       ;;
11585
11586     haiku*)
11587       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11588       link_all_deplibs=yes
11589       ;;
11590
11591     os2*)
11592       hardcode_libdir_flag_spec='-L$libdir'
11593       hardcode_minus_L=yes
11594       allow_undefined_flag=unsupported
11595       shrext_cmds=.dll
11596       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11597         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11598         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11599         $ECHO EXPORTS >> $output_objdir/$libname.def~
11600         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11601         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11602         emximp -o $lib $output_objdir/$libname.def'
11603       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11604         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11605         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11606         $ECHO EXPORTS >> $output_objdir/$libname.def~
11607         prefix_cmds="$SED"~
11608         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11609           prefix_cmds="$prefix_cmds -e 1d";
11610         fi~
11611         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11612         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11613         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11614         emximp -o $lib $output_objdir/$libname.def'
11615       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11616       enable_shared_with_static_runtimes=yes
11617       file_list_spec='@'
11618       ;;
11619
11620     interix[3-9]*)
11621       hardcode_direct=no
11622       hardcode_shlibpath_var=no
11623       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11624       export_dynamic_flag_spec='$wl-E'
11625       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11626       # Instead, shared libraries are loaded at an image base (0x10000000 by
11627       # default) and relocated if they conflict, which is a slow very memory
11628       # consuming and fragmenting process.  To avoid this, we pick a random,
11629       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11630       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11631       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11632       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'
11633       ;;
11634
11635     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11636       tmp_diet=no
11637       if test linux-dietlibc = "$host_os"; then
11638         case $cc_basename in
11639           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11640         esac
11641       fi
11642       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11643          && test no = "$tmp_diet"
11644       then
11645         tmp_addflag=' $pic_flag'
11646         tmp_sharedflag='-shared'
11647         case $cc_basename,$host_cpu in
11648         pgcc*)                          # Portland Group C compiler
11649           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'
11650           tmp_addflag=' $pic_flag'
11651           ;;
11652         pgf77* | pgf90* | pgf95* | pgfortran*)
11653                                         # Portland Group f77 and f90 compilers
11654           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'
11655           tmp_addflag=' $pic_flag -Mnomain' ;;
11656         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11657           tmp_addflag=' -i_dynamic' ;;
11658         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11659           tmp_addflag=' -i_dynamic -nofor_main' ;;
11660         ifc* | ifort*)                  # Intel Fortran compiler
11661           tmp_addflag=' -nofor_main' ;;
11662         lf95*)                          # Lahey Fortran 8.1
11663           whole_archive_flag_spec=
11664           tmp_sharedflag='--shared' ;;
11665         nagfor*)                        # NAGFOR 5.3
11666           tmp_sharedflag='-Wl,-shared' ;;
11667         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11668           tmp_sharedflag='-qmkshrobj'
11669           tmp_addflag= ;;
11670         nvcc*)  # Cuda Compiler Driver 2.2
11671           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'
11672           compiler_needs_object=yes
11673           ;;
11674         esac
11675         case `$CC -V 2>&1 | $SED 5q` in
11676         *Sun\ C*)                       # Sun C 5.9
11677           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'
11678           compiler_needs_object=yes
11679           tmp_sharedflag='-G' ;;
11680         *Sun\ F*)                       # Sun Fortran 8.3
11681           tmp_sharedflag='-G' ;;
11682         esac
11683         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11684
11685         if test yes = "$supports_anon_versioning"; then
11686           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11687             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11688             echo "local: *; };" >> $output_objdir/$libname.ver~
11689             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11690         fi
11691
11692         case $cc_basename in
11693         tcc*)
11694           export_dynamic_flag_spec='-rdynamic'
11695           ;;
11696         xlf* | bgf* | bgxlf* | mpixlf*)
11697           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11698           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11699           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11700           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11701           if test yes = "$supports_anon_versioning"; then
11702             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11703               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11704               echo "local: *; };" >> $output_objdir/$libname.ver~
11705               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11706           fi
11707           ;;
11708         esac
11709       else
11710         ld_shlibs=no
11711       fi
11712       ;;
11713
11714     netbsd*)
11715       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11716         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11717         wlarc=
11718       else
11719         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11720         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11721       fi
11722       ;;
11723
11724     solaris*)
11725       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11726         ld_shlibs=no
11727         cat <<_LT_EOF 1>&2
11728
11729 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11730 *** create shared libraries on Solaris systems.  Therefore, libtool
11731 *** is disabling shared libraries support.  We urge you to upgrade GNU
11732 *** binutils to release 2.9.1 or newer.  Another option is to modify
11733 *** your PATH or compiler configuration so that the native linker is
11734 *** used, and then restart.
11735
11736 _LT_EOF
11737       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11738         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11739         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11740       else
11741         ld_shlibs=no
11742       fi
11743       ;;
11744
11745     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11746       case `$LD -v 2>&1` in
11747         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11748         ld_shlibs=no
11749         cat <<_LT_EOF 1>&2
11750
11751 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11752 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11753 *** is disabling shared libraries support.  We urge you to upgrade GNU
11754 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11755 *** your PATH or compiler configuration so that the native linker is
11756 *** used, and then restart.
11757
11758 _LT_EOF
11759         ;;
11760         *)
11761           # For security reasons, it is highly recommended that you always
11762           # use absolute paths for naming shared libraries, and exclude the
11763           # DT_RUNPATH tag from executables and libraries.  But doing so
11764           # requires that you compile everything twice, which is a pain.
11765           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11766             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11767             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11768             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11769           else
11770             ld_shlibs=no
11771           fi
11772         ;;
11773       esac
11774       ;;
11775
11776     sunos4*)
11777       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11778       wlarc=
11779       hardcode_direct=yes
11780       hardcode_shlibpath_var=no
11781       ;;
11782
11783     *)
11784       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11785         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11786         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11787       else
11788         ld_shlibs=no
11789       fi
11790       ;;
11791     esac
11792
11793     if test no = "$ld_shlibs"; then
11794       runpath_var=
11795       hardcode_libdir_flag_spec=
11796       export_dynamic_flag_spec=
11797       whole_archive_flag_spec=
11798     fi
11799   else
11800     # PORTME fill in a description of your system's linker (not GNU ld)
11801     case $host_os in
11802     aix3*)
11803       allow_undefined_flag=unsupported
11804       always_export_symbols=yes
11805       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'
11806       # Note: this linker hardcodes the directories in LIBPATH if there
11807       # are no directories specified by -L.
11808       hardcode_minus_L=yes
11809       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11810         # Neither direct hardcoding nor static linking is supported with a
11811         # broken collect2.
11812         hardcode_direct=unsupported
11813       fi
11814       ;;
11815
11816     aix[4-9]*)
11817       if test ia64 = "$host_cpu"; then
11818         # On IA64, the linker does run time linking by default, so we don't
11819         # have to do anything special.
11820         aix_use_runtimelinking=no
11821         exp_sym_flag='-Bexport'
11822         no_entry_flag=
11823       else
11824         # If we're using GNU nm, then we don't want the "-C" option.
11825         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11826         # Without the "-l" option, or with the "-B" option, AIX nm treats
11827         # weak defined symbols like other global defined symbols, whereas
11828         # GNU nm marks them as "W".
11829         # While the 'weak' keyword is ignored in the Export File, we need
11830         # it in the Import File for the 'aix-soname' feature, so we have
11831         # to replace the "-B" option with "-P" for AIX nm.
11832         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11833           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11834         else
11835           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11836         fi
11837         aix_use_runtimelinking=no
11838
11839         # Test if we are trying to use run time linking or normal
11840         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11841         # have runtime linking enabled, and use it for executables.
11842         # For shared libraries, we enable/disable runtime linking
11843         # depending on the kind of the shared library created -
11844         # when "with_aix_soname,aix_use_runtimelinking" is:
11845         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11846         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11847         #            lib.a           static archive
11848         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11849         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11850         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11851         #            lib.a(lib.so.V) shared, rtl:no
11852         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11853         #            lib.a           static archive
11854         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11855           for ld_flag in $LDFLAGS; do
11856           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11857             aix_use_runtimelinking=yes
11858             break
11859           fi
11860           done
11861           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11862             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11863             # so we don't have lib.a shared libs to link our executables.
11864             # We have to force runtime linking in this case.
11865             aix_use_runtimelinking=yes
11866             LDFLAGS="$LDFLAGS -Wl,-brtl"
11867           fi
11868           ;;
11869         esac
11870
11871         exp_sym_flag='-bexport'
11872         no_entry_flag='-bnoentry'
11873       fi
11874
11875       # When large executables or shared objects are built, AIX ld can
11876       # have problems creating the table of contents.  If linking a library
11877       # or program results in "error TOC overflow" add -mminimal-toc to
11878       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11879       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11880
11881       archive_cmds=''
11882       hardcode_direct=yes
11883       hardcode_direct_absolute=yes
11884       hardcode_libdir_separator=':'
11885       link_all_deplibs=yes
11886       file_list_spec='$wl-f,'
11887       case $with_aix_soname,$aix_use_runtimelinking in
11888       aix,*) ;; # traditional, no import file
11889       svr4,* | *,yes) # use import file
11890         # The Import File defines what to hardcode.
11891         hardcode_direct=no
11892         hardcode_direct_absolute=no
11893         ;;
11894       esac
11895
11896       if test yes = "$GCC"; then
11897         case $host_os in aix4.[012]|aix4.[012].*)
11898         # We only want to do this on AIX 4.2 and lower, the check
11899         # below for broken collect2 doesn't work under 4.3+
11900           collect2name=`$CC -print-prog-name=collect2`
11901           if test -f "$collect2name" &&
11902            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11903           then
11904           # We have reworked collect2
11905           :
11906           else
11907           # We have old collect2
11908           hardcode_direct=unsupported
11909           # It fails to find uninstalled libraries when the uninstalled
11910           # path is not listed in the libpath.  Setting hardcode_minus_L
11911           # to unsupported forces relinking
11912           hardcode_minus_L=yes
11913           hardcode_libdir_flag_spec='-L$libdir'
11914           hardcode_libdir_separator=
11915           fi
11916           ;;
11917         esac
11918         shared_flag='-shared'
11919         if test yes = "$aix_use_runtimelinking"; then
11920           shared_flag="$shared_flag "'$wl-G'
11921         fi
11922         # Need to ensure runtime linking is disabled for the traditional
11923         # shared library, or the linker may eventually find shared libraries
11924         # /with/ Import File - we do not want to mix them.
11925         shared_flag_aix='-shared'
11926         shared_flag_svr4='-shared $wl-G'
11927       else
11928         # not using gcc
11929         if test ia64 = "$host_cpu"; then
11930         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11931         # chokes on -Wl,-G. The following line is correct:
11932           shared_flag='-G'
11933         else
11934           if test yes = "$aix_use_runtimelinking"; then
11935             shared_flag='$wl-G'
11936           else
11937             shared_flag='$wl-bM:SRE'
11938           fi
11939           shared_flag_aix='$wl-bM:SRE'
11940           shared_flag_svr4='$wl-G'
11941         fi
11942       fi
11943
11944       export_dynamic_flag_spec='$wl-bexpall'
11945       # It seems that -bexpall does not export symbols beginning with
11946       # underscore (_), so it is better to generate a list of symbols to export.
11947       always_export_symbols=yes
11948       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11949         # Warning - without using the other runtime loading flags (-brtl),
11950         # -berok will link without error, but may produce a broken library.
11951         allow_undefined_flag='-berok'
11952         # Determine the default libpath from the value encoded in an
11953         # empty executable.
11954         if test set = "${lt_cv_aix_libpath+set}"; then
11955   aix_libpath=$lt_cv_aix_libpath
11956 else
11957   if test ${lt_cv_aix_libpath_+y}
11958 then :
11959   printf %s "(cached) " >&6
11960 else $as_nop
11961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h.  */
11963
11964 int
11965 main (void)
11966 {
11967
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"
11973 then :
11974
11975   lt_aix_libpath_sed='
11976       /Import File Strings/,/^$/ {
11977           /^0/ {
11978               s/^0  *\([^ ]*\) *$/\1/
11979               p
11980           }
11981       }'
11982   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11983   # Check for a 64-bit object if we didn't find anything.
11984   if test -z "$lt_cv_aix_libpath_"; then
11985     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11986   fi
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11989     conftest$ac_exeext conftest.$ac_ext
11990   if test -z "$lt_cv_aix_libpath_"; then
11991     lt_cv_aix_libpath_=/usr/lib:/lib
11992   fi
11993
11994 fi
11995
11996   aix_libpath=$lt_cv_aix_libpath_
11997 fi
11998
11999         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12000         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12001       else
12002         if test ia64 = "$host_cpu"; then
12003           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12004           allow_undefined_flag="-z nodefs"
12005           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"
12006         else
12007          # Determine the default libpath from the value encoded in an
12008          # empty executable.
12009          if test set = "${lt_cv_aix_libpath+set}"; then
12010   aix_libpath=$lt_cv_aix_libpath
12011 else
12012   if test ${lt_cv_aix_libpath_+y}
12013 then :
12014   printf %s "(cached) " >&6
12015 else $as_nop
12016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h.  */
12018
12019 int
12020 main (void)
12021 {
12022
12023   ;
12024   return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_link "$LINENO"
12028 then :
12029
12030   lt_aix_libpath_sed='
12031       /Import File Strings/,/^$/ {
12032           /^0/ {
12033               s/^0  *\([^ ]*\) *$/\1/
12034               p
12035           }
12036       }'
12037   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12038   # Check for a 64-bit object if we didn't find anything.
12039   if test -z "$lt_cv_aix_libpath_"; then
12040     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12041   fi
12042 fi
12043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12044     conftest$ac_exeext conftest.$ac_ext
12045   if test -z "$lt_cv_aix_libpath_"; then
12046     lt_cv_aix_libpath_=/usr/lib:/lib
12047   fi
12048
12049 fi
12050
12051   aix_libpath=$lt_cv_aix_libpath_
12052 fi
12053
12054          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12055           # Warning - without using the other run time loading flags,
12056           # -berok will link without error, but may produce a broken library.
12057           no_undefined_flag=' $wl-bernotok'
12058           allow_undefined_flag=' $wl-berok'
12059           if test yes = "$with_gnu_ld"; then
12060             # We only use this code for GNU lds that support --whole-archive.
12061             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12062           else
12063             # Exported symbols can be pulled into shared objects from archives
12064             whole_archive_flag_spec='$convenience'
12065           fi
12066           archive_cmds_need_lc=yes
12067           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12068           # -brtl affects multiple linker settings, -berok does not and is overridden later
12069           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12070           if test svr4 != "$with_aix_soname"; then
12071             # This is similar to how AIX traditionally builds its shared libraries.
12072             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12073           fi
12074           if test aix != "$with_aix_soname"; then
12075             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12076           else
12077             # used by -dlpreopen to get the symbols
12078             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12079           fi
12080           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12081         fi
12082       fi
12083       ;;
12084
12085     amigaos*)
12086       case $host_cpu in
12087       powerpc)
12088             # see comment about AmigaOS4 .so support
12089             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12090             archive_expsym_cmds=''
12091         ;;
12092       m68k)
12093             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)'
12094             hardcode_libdir_flag_spec='-L$libdir'
12095             hardcode_minus_L=yes
12096         ;;
12097       esac
12098       ;;
12099
12100     bsdi[45]*)
12101       export_dynamic_flag_spec=-rdynamic
12102       ;;
12103
12104     cygwin* | mingw* | pw32* | cegcc*)
12105       # When not using gcc, we currently assume that we are using
12106       # Microsoft Visual C++ or Intel C++ Compiler.
12107       # hardcode_libdir_flag_spec is actually meaningless, as there is
12108       # no search path for DLLs.
12109       case $cc_basename in
12110       cl* | icl*)
12111         # Native MSVC or ICC
12112         hardcode_libdir_flag_spec=' '
12113         allow_undefined_flag=unsupported
12114         always_export_symbols=yes
12115         file_list_spec='@'
12116         # Tell ltmain to make .lib files, not .a files.
12117         libext=lib
12118         # Tell ltmain to make .dll files, not .so files.
12119         shrext_cmds=.dll
12120         # FIXME: Setting linknames here is a bad hack.
12121         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12122         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12123             cp "$export_symbols" "$output_objdir/$soname.def";
12124             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12125           else
12126             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12127           fi~
12128           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12129           linknames='
12130         # The linker will not automatically build a static lib if we build a DLL.
12131         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12132         enable_shared_with_static_runtimes=yes
12133         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12134         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12135         # Don't use ranlib
12136         old_postinstall_cmds='chmod 644 $oldlib'
12137         postlink_cmds='lt_outputfile="@OUTPUT@"~
12138           lt_tool_outputfile="@TOOL_OUTPUT@"~
12139           case $lt_outputfile in
12140             *.exe|*.EXE) ;;
12141             *)
12142               lt_outputfile=$lt_outputfile.exe
12143               lt_tool_outputfile=$lt_tool_outputfile.exe
12144               ;;
12145           esac~
12146           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12147             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12148             $RM "$lt_outputfile.manifest";
12149           fi'
12150         ;;
12151       *)
12152         # Assume MSVC and ICC wrapper
12153         hardcode_libdir_flag_spec=' '
12154         allow_undefined_flag=unsupported
12155         # Tell ltmain to make .lib files, not .a files.
12156         libext=lib
12157         # Tell ltmain to make .dll files, not .so files.
12158         shrext_cmds=.dll
12159         # FIXME: Setting linknames here is a bad hack.
12160         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12161         # The linker will automatically build a .lib file if we build a DLL.
12162         old_archive_from_new_cmds='true'
12163         # FIXME: Should let the user specify the lib program.
12164         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12165         enable_shared_with_static_runtimes=yes
12166         ;;
12167       esac
12168       ;;
12169
12170     darwin* | rhapsody*)
12171
12172
12173   archive_cmds_need_lc=no
12174   hardcode_direct=no
12175   hardcode_automatic=yes
12176   hardcode_shlibpath_var=unsupported
12177   if test yes = "$lt_cv_ld_force_load"; then
12178     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\"`'
12179
12180   else
12181     whole_archive_flag_spec=''
12182   fi
12183   link_all_deplibs=yes
12184   allow_undefined_flag=$_lt_dar_allow_undefined
12185   case $cc_basename in
12186      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12187      *) _lt_dar_can_shared=$GCC ;;
12188   esac
12189   if test yes = "$_lt_dar_can_shared"; then
12190     output_verbose_link_cmd=func_echo_all
12191     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12192     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12193     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"
12194     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"
12195
12196   else
12197   ld_shlibs=no
12198   fi
12199
12200       ;;
12201
12202     dgux*)
12203       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12204       hardcode_libdir_flag_spec='-L$libdir'
12205       hardcode_shlibpath_var=no
12206       ;;
12207
12208     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12209     # support.  Future versions do this automatically, but an explicit c++rt0.o
12210     # does not break anything, and helps significantly (at the cost of a little
12211     # extra space).
12212     freebsd2.2*)
12213       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12214       hardcode_libdir_flag_spec='-R$libdir'
12215       hardcode_direct=yes
12216       hardcode_shlibpath_var=no
12217       ;;
12218
12219     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12220     freebsd2.*)
12221       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12222       hardcode_direct=yes
12223       hardcode_minus_L=yes
12224       hardcode_shlibpath_var=no
12225       ;;
12226
12227     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12228     freebsd* | dragonfly* | midnightbsd*)
12229       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12230       hardcode_libdir_flag_spec='-R$libdir'
12231       hardcode_direct=yes
12232       hardcode_shlibpath_var=no
12233       ;;
12234
12235     hpux9*)
12236       if test yes = "$GCC"; then
12237         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12238       else
12239         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12240       fi
12241       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12242       hardcode_libdir_separator=:
12243       hardcode_direct=yes
12244
12245       # hardcode_minus_L: Not really in the search PATH,
12246       # but as the default location of the library.
12247       hardcode_minus_L=yes
12248       export_dynamic_flag_spec='$wl-E'
12249       ;;
12250
12251     hpux10*)
12252       if test yes,no = "$GCC,$with_gnu_ld"; then
12253         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12254       else
12255         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12256       fi
12257       if test no = "$with_gnu_ld"; then
12258         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12259         hardcode_libdir_separator=:
12260         hardcode_direct=yes
12261         hardcode_direct_absolute=yes
12262         export_dynamic_flag_spec='$wl-E'
12263         # hardcode_minus_L: Not really in the search PATH,
12264         # but as the default location of the library.
12265         hardcode_minus_L=yes
12266       fi
12267       ;;
12268
12269     hpux11*)
12270       if test yes,no = "$GCC,$with_gnu_ld"; then
12271         case $host_cpu in
12272         hppa*64*)
12273           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12274           ;;
12275         ia64*)
12276           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12277           ;;
12278         *)
12279           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12280           ;;
12281         esac
12282       else
12283         case $host_cpu in
12284         hppa*64*)
12285           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12286           ;;
12287         ia64*)
12288           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12289           ;;
12290         *)
12291
12292           # Older versions of the 11.00 compiler do not understand -b yet
12293           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12294           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12295 printf %s "checking if $CC understands -b... " >&6; }
12296 if test ${lt_cv_prog_compiler__b+y}
12297 then :
12298   printf %s "(cached) " >&6
12299 else $as_nop
12300   lt_cv_prog_compiler__b=no
12301    save_LDFLAGS=$LDFLAGS
12302    LDFLAGS="$LDFLAGS -b"
12303    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12304    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12305      # The linker can only warn and ignore the option if not recognized
12306      # So say no if there are warnings
12307      if test -s conftest.err; then
12308        # Append any errors to the config.log.
12309        cat conftest.err 1>&5
12310        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12311        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12312        if diff conftest.exp conftest.er2 >/dev/null; then
12313          lt_cv_prog_compiler__b=yes
12314        fi
12315      else
12316        lt_cv_prog_compiler__b=yes
12317      fi
12318    fi
12319    $RM -r conftest*
12320    LDFLAGS=$save_LDFLAGS
12321
12322 fi
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12324 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12325
12326 if test yes = "$lt_cv_prog_compiler__b"; then
12327     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12328 else
12329     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12330 fi
12331
12332           ;;
12333         esac
12334       fi
12335       if test no = "$with_gnu_ld"; then
12336         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12337         hardcode_libdir_separator=:
12338
12339         case $host_cpu in
12340         hppa*64*|ia64*)
12341           hardcode_direct=no
12342           hardcode_shlibpath_var=no
12343           ;;
12344         *)
12345           hardcode_direct=yes
12346           hardcode_direct_absolute=yes
12347           export_dynamic_flag_spec='$wl-E'
12348
12349           # hardcode_minus_L: Not really in the search PATH,
12350           # but as the default location of the library.
12351           hardcode_minus_L=yes
12352           ;;
12353         esac
12354       fi
12355       ;;
12356
12357     irix5* | irix6* | nonstopux*)
12358       if test yes = "$GCC"; then
12359         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'
12360         # Try to use the -exported_symbol ld option, if it does not
12361         # work, assume that -exports_file does not work either and
12362         # implicitly export all symbols.
12363         # This should be the same for all languages, so no per-tag cache variable.
12364         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12365 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12366 if test ${lt_cv_irix_exported_symbol+y}
12367 then :
12368   printf %s "(cached) " >&6
12369 else $as_nop
12370   save_LDFLAGS=$LDFLAGS
12371            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12372            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h.  */
12374 int foo (void) { return 0; }
12375 _ACEOF
12376 if ac_fn_c_try_link "$LINENO"
12377 then :
12378   lt_cv_irix_exported_symbol=yes
12379 else $as_nop
12380   lt_cv_irix_exported_symbol=no
12381 fi
12382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12383     conftest$ac_exeext conftest.$ac_ext
12384            LDFLAGS=$save_LDFLAGS
12385 fi
12386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12387 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12388         if test yes = "$lt_cv_irix_exported_symbol"; then
12389           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'
12390         fi
12391       else
12392         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'
12393         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'
12394       fi
12395       archive_cmds_need_lc='no'
12396       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12397       hardcode_libdir_separator=:
12398       inherit_rpath=yes
12399       link_all_deplibs=yes
12400       ;;
12401
12402     linux*)
12403       case $cc_basename in
12404       tcc*)
12405         # Fabrice Bellard et al's Tiny C Compiler
12406         ld_shlibs=yes
12407         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12408         ;;
12409       esac
12410       ;;
12411
12412     netbsd*)
12413       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12414         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12415       else
12416         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12417       fi
12418       hardcode_libdir_flag_spec='-R$libdir'
12419       hardcode_direct=yes
12420       hardcode_shlibpath_var=no
12421       ;;
12422
12423     newsos6)
12424       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12425       hardcode_direct=yes
12426       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12427       hardcode_libdir_separator=:
12428       hardcode_shlibpath_var=no
12429       ;;
12430
12431     *nto* | *qnx*)
12432       ;;
12433
12434     openbsd* | bitrig*)
12435       if test -f /usr/libexec/ld.so; then
12436         hardcode_direct=yes
12437         hardcode_shlibpath_var=no
12438         hardcode_direct_absolute=yes
12439         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12440           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12441           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12442           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12443           export_dynamic_flag_spec='$wl-E'
12444         else
12445           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12446           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12447         fi
12448       else
12449         ld_shlibs=no
12450       fi
12451       ;;
12452
12453     os2*)
12454       hardcode_libdir_flag_spec='-L$libdir'
12455       hardcode_minus_L=yes
12456       allow_undefined_flag=unsupported
12457       shrext_cmds=.dll
12458       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12459         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12460         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12461         $ECHO EXPORTS >> $output_objdir/$libname.def~
12462         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12463         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12464         emximp -o $lib $output_objdir/$libname.def'
12465       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12466         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12467         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12468         $ECHO EXPORTS >> $output_objdir/$libname.def~
12469         prefix_cmds="$SED"~
12470         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12471           prefix_cmds="$prefix_cmds -e 1d";
12472         fi~
12473         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12474         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12475         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12476         emximp -o $lib $output_objdir/$libname.def'
12477       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12478       enable_shared_with_static_runtimes=yes
12479       file_list_spec='@'
12480       ;;
12481
12482     osf3*)
12483       if test yes = "$GCC"; then
12484         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12485         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'
12486       else
12487         allow_undefined_flag=' -expect_unresolved \*'
12488         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'
12489       fi
12490       archive_cmds_need_lc='no'
12491       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12492       hardcode_libdir_separator=:
12493       ;;
12494
12495     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12496       if test yes = "$GCC"; then
12497         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12498         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'
12499         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12500       else
12501         allow_undefined_flag=' -expect_unresolved \*'
12502         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'
12503         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~
12504           $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'
12505
12506         # Both c and cxx compiler support -rpath directly
12507         hardcode_libdir_flag_spec='-rpath $libdir'
12508       fi
12509       archive_cmds_need_lc='no'
12510       hardcode_libdir_separator=:
12511       ;;
12512
12513     solaris*)
12514       no_undefined_flag=' -z defs'
12515       if test yes = "$GCC"; then
12516         wlarc='$wl'
12517         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12518         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12519           $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'
12520       else
12521         case `$CC -V 2>&1` in
12522         *"Compilers 5.0"*)
12523           wlarc=''
12524           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12525           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12526             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12527           ;;
12528         *)
12529           wlarc='$wl'
12530           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12531           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12532             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12533           ;;
12534         esac
12535       fi
12536       hardcode_libdir_flag_spec='-R$libdir'
12537       hardcode_shlibpath_var=no
12538       case $host_os in
12539       solaris2.[0-5] | solaris2.[0-5].*) ;;
12540       *)
12541         # The compiler driver will combine and reorder linker options,
12542         # but understands '-z linker_flag'.  GCC discards it without '$wl',
12543         # but is careful enough not to reorder.
12544         # Supported since Solaris 2.6 (maybe 2.5.1?)
12545         if test yes = "$GCC"; then
12546           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12547         else
12548           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12549         fi
12550         ;;
12551       esac
12552       link_all_deplibs=yes
12553       ;;
12554
12555     sunos4*)
12556       if test sequent = "$host_vendor"; then
12557         # Use $CC to link under sequent, because it throws in some extra .o
12558         # files that make .init and .fini sections work.
12559         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12560       else
12561         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12562       fi
12563       hardcode_libdir_flag_spec='-L$libdir'
12564       hardcode_direct=yes
12565       hardcode_minus_L=yes
12566       hardcode_shlibpath_var=no
12567       ;;
12568
12569     sysv4)
12570       case $host_vendor in
12571         sni)
12572           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12573           hardcode_direct=yes # is this really true???
12574         ;;
12575         siemens)
12576           ## LD is ld it makes a PLAMLIB
12577           ## CC just makes a GrossModule.
12578           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12579           reload_cmds='$CC -r -o $output$reload_objs'
12580           hardcode_direct=no
12581         ;;
12582         motorola)
12583           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12584           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12585         ;;
12586       esac
12587       runpath_var='LD_RUN_PATH'
12588       hardcode_shlibpath_var=no
12589       ;;
12590
12591     sysv4.3*)
12592       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12593       hardcode_shlibpath_var=no
12594       export_dynamic_flag_spec='-Bexport'
12595       ;;
12596
12597     sysv4*MP*)
12598       if test -d /usr/nec; then
12599         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12600         hardcode_shlibpath_var=no
12601         runpath_var=LD_RUN_PATH
12602         hardcode_runpath_var=yes
12603         ld_shlibs=yes
12604       fi
12605       ;;
12606
12607     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12608       no_undefined_flag='$wl-z,text'
12609       archive_cmds_need_lc=no
12610       hardcode_shlibpath_var=no
12611       runpath_var='LD_RUN_PATH'
12612
12613       if test yes = "$GCC"; then
12614         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12616       else
12617         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12618         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12619       fi
12620       ;;
12621
12622     sysv5* | sco3.2v5* | sco5v6*)
12623       # Note: We CANNOT use -z defs as we might desire, because we do not
12624       # link with -lc, and that would cause any symbols used from libc to
12625       # always be unresolved, which means just about no library would
12626       # ever link correctly.  If we're not using GNU ld we use -z text
12627       # though, which does catch some bad symbols but isn't as heavy-handed
12628       # as -z defs.
12629       no_undefined_flag='$wl-z,text'
12630       allow_undefined_flag='$wl-z,nodefs'
12631       archive_cmds_need_lc=no
12632       hardcode_shlibpath_var=no
12633       hardcode_libdir_flag_spec='$wl-R,$libdir'
12634       hardcode_libdir_separator=':'
12635       link_all_deplibs=yes
12636       export_dynamic_flag_spec='$wl-Bexport'
12637       runpath_var='LD_RUN_PATH'
12638
12639       if test yes = "$GCC"; then
12640         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12641         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12642       else
12643         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12644         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12645       fi
12646       ;;
12647
12648     uts4*)
12649       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12650       hardcode_libdir_flag_spec='-L$libdir'
12651       hardcode_shlibpath_var=no
12652       ;;
12653
12654     *)
12655       ld_shlibs=no
12656       ;;
12657     esac
12658
12659     if test sni = "$host_vendor"; then
12660       case $host in
12661       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12662         export_dynamic_flag_spec='$wl-Blargedynsym'
12663         ;;
12664       esac
12665     fi
12666   fi
12667
12668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12669 printf "%s\n" "$ld_shlibs" >&6; }
12670 test no = "$ld_shlibs" && can_build_shared=no
12671
12672 with_gnu_ld=$with_gnu_ld
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688 #
12689 # Do we need to explicitly link libc?
12690 #
12691 case "x$archive_cmds_need_lc" in
12692 x|xyes)
12693   # Assume -lc should be added
12694   archive_cmds_need_lc=yes
12695
12696   if test yes,yes = "$GCC,$enable_shared"; then
12697     case $archive_cmds in
12698     *'~'*)
12699       # FIXME: we may have to deal with multi-command sequences.
12700       ;;
12701     '$CC '*)
12702       # Test whether the compiler implicitly links with -lc since on some
12703       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12704       # to ld, don't add -lc before -lgcc.
12705       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12706 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12707 if test ${lt_cv_archive_cmds_need_lc+y}
12708 then :
12709   printf %s "(cached) " >&6
12710 else $as_nop
12711   $RM conftest*
12712         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12713
12714         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12715   (eval $ac_compile) 2>&5
12716   ac_status=$?
12717   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718   test $ac_status = 0; } 2>conftest.err; then
12719           soname=conftest
12720           lib=conftest
12721           libobjs=conftest.$ac_objext
12722           deplibs=
12723           wl=$lt_prog_compiler_wl
12724           pic_flag=$lt_prog_compiler_pic
12725           compiler_flags=-v
12726           linker_flags=-v
12727           verstring=
12728           output_objdir=.
12729           libname=conftest
12730           lt_save_allow_undefined_flag=$allow_undefined_flag
12731           allow_undefined_flag=
12732           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12733   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12734   ac_status=$?
12735   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12736   test $ac_status = 0; }
12737           then
12738             lt_cv_archive_cmds_need_lc=no
12739           else
12740             lt_cv_archive_cmds_need_lc=yes
12741           fi
12742           allow_undefined_flag=$lt_save_allow_undefined_flag
12743         else
12744           cat conftest.err 1>&5
12745         fi
12746         $RM conftest*
12747
12748 fi
12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12750 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12751       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12752       ;;
12753     esac
12754   fi
12755   ;;
12756 esac
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12910 printf %s "checking dynamic linker characteristics... " >&6; }
12911
12912 if test yes = "$GCC"; then
12913   case $host_os in
12914     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12915     *) lt_awk_arg='/^libraries:/' ;;
12916   esac
12917   case $host_os in
12918     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12919     *) lt_sed_strip_eq='s|=/|/|g' ;;
12920   esac
12921   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12922   case $lt_search_path_spec in
12923   *\;*)
12924     # if the path contains ";" then we assume it to be the separator
12925     # otherwise default to the standard path separator (i.e. ":") - it is
12926     # assumed that no part of a normal pathname contains ";" but that should
12927     # okay in the real world where ";" in dirpaths is itself problematic.
12928     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12929     ;;
12930   *)
12931     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12932     ;;
12933   esac
12934   # Ok, now we have the path, separated by spaces, we can step through it
12935   # and add multilib dir if necessary...
12936   lt_tmp_lt_search_path_spec=
12937   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12938   # ...but if some path component already ends with the multilib dir we assume
12939   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12940   case "$lt_multi_os_dir; $lt_search_path_spec " in
12941   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12942     lt_multi_os_dir=
12943     ;;
12944   esac
12945   for lt_sys_path in $lt_search_path_spec; do
12946     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12947       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12948     elif test -n "$lt_multi_os_dir"; then
12949       test -d "$lt_sys_path" && \
12950         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12951     fi
12952   done
12953   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12954 BEGIN {RS = " "; FS = "/|\n";} {
12955   lt_foo = "";
12956   lt_count = 0;
12957   for (lt_i = NF; lt_i > 0; lt_i--) {
12958     if ($lt_i != "" && $lt_i != ".") {
12959       if ($lt_i == "..") {
12960         lt_count++;
12961       } else {
12962         if (lt_count == 0) {
12963           lt_foo = "/" $lt_i lt_foo;
12964         } else {
12965           lt_count--;
12966         }
12967       }
12968     }
12969   }
12970   if (lt_foo != "") { lt_freq[lt_foo]++; }
12971   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12972 }'`
12973   # AWK program above erroneously prepends '/' to C:/dos/paths
12974   # for these hosts.
12975   case $host_os in
12976     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12977       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12978   esac
12979   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12980 else
12981   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12982 fi
12983 library_names_spec=
12984 libname_spec='lib$name'
12985 soname_spec=
12986 shrext_cmds=.so
12987 postinstall_cmds=
12988 postuninstall_cmds=
12989 finish_cmds=
12990 finish_eval=
12991 shlibpath_var=
12992 shlibpath_overrides_runpath=unknown
12993 version_type=none
12994 dynamic_linker="$host_os ld.so"
12995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12996 need_lib_prefix=unknown
12997 hardcode_into_libs=no
12998
12999 # when you set need_version to no, make sure it does not cause -set_version
13000 # flags to be left without arguments
13001 need_version=unknown
13002
13003
13004
13005 case $host_os in
13006 aix3*)
13007   version_type=linux # correct to gnu/linux during the next big refactor
13008   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13009   shlibpath_var=LIBPATH
13010
13011   # AIX 3 has no versioning support, so we append a major version to the name.
13012   soname_spec='$libname$release$shared_ext$major'
13013   ;;
13014
13015 aix[4-9]*)
13016   version_type=linux # correct to gnu/linux during the next big refactor
13017   need_lib_prefix=no
13018   need_version=no
13019   hardcode_into_libs=yes
13020   if test ia64 = "$host_cpu"; then
13021     # AIX 5 supports IA64
13022     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13023     shlibpath_var=LD_LIBRARY_PATH
13024   else
13025     # With GCC up to 2.95.x, collect2 would create an import file
13026     # for dependence libraries.  The import file would start with
13027     # the line '#! .'.  This would cause the generated library to
13028     # depend on '.', always an invalid library.  This was fixed in
13029     # development snapshots of GCC prior to 3.0.
13030     case $host_os in
13031       aix4 | aix4.[01] | aix4.[01].*)
13032       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13033            echo ' yes '
13034            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13035         :
13036       else
13037         can_build_shared=no
13038       fi
13039       ;;
13040     esac
13041     # Using Import Files as archive members, it is possible to support
13042     # filename-based versioning of shared library archives on AIX. While
13043     # this would work for both with and without runtime linking, it will
13044     # prevent static linking of such archives. So we do filename-based
13045     # shared library versioning with .so extension only, which is used
13046     # when both runtime linking and shared linking is enabled.
13047     # Unfortunately, runtime linking may impact performance, so we do
13048     # not want this to be the default eventually. Also, we use the
13049     # versioned .so libs for executables only if there is the -brtl
13050     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13051     # To allow for filename-based versioning support, we need to create
13052     # libNAME.so.V as an archive file, containing:
13053     # *) an Import File, referring to the versioned filename of the
13054     #    archive as well as the shared archive member, telling the
13055     #    bitwidth (32 or 64) of that shared object, and providing the
13056     #    list of exported symbols of that shared object, eventually
13057     #    decorated with the 'weak' keyword
13058     # *) the shared object with the F_LOADONLY flag set, to really avoid
13059     #    it being seen by the linker.
13060     # At run time we better use the real file rather than another symlink,
13061     # but for link time we create the symlink libNAME.so -> libNAME.so.V
13062
13063     case $with_aix_soname,$aix_use_runtimelinking in
13064     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13065     # soname into executable. Probably we can add versioning support to
13066     # collect2, so additional links can be useful in future.
13067     aix,yes) # traditional libtool
13068       dynamic_linker='AIX unversionable lib.so'
13069       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13070       # instead of lib<name>.a to let people know that these are not
13071       # typical AIX shared libraries.
13072       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13073       ;;
13074     aix,no) # traditional AIX only
13075       dynamic_linker='AIX lib.a(lib.so.V)'
13076       # We preserve .a as extension for shared libraries through AIX4.2
13077       # and later when we are not doing run time linking.
13078       library_names_spec='$libname$release.a $libname.a'
13079       soname_spec='$libname$release$shared_ext$major'
13080       ;;
13081     svr4,*) # full svr4 only
13082       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13083       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13084       # We do not specify a path in Import Files, so LIBPATH fires.
13085       shlibpath_overrides_runpath=yes
13086       ;;
13087     *,yes) # both, prefer svr4
13088       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13089       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13090       # unpreferred sharedlib libNAME.a needs extra handling
13091       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13092       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13093       # We do not specify a path in Import Files, so LIBPATH fires.
13094       shlibpath_overrides_runpath=yes
13095       ;;
13096     *,no) # both, prefer aix
13097       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13098       library_names_spec='$libname$release.a $libname.a'
13099       soname_spec='$libname$release$shared_ext$major'
13100       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13101       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13102       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13103       ;;
13104     esac
13105     shlibpath_var=LIBPATH
13106   fi
13107   ;;
13108
13109 amigaos*)
13110   case $host_cpu in
13111   powerpc)
13112     # Since July 2007 AmigaOS4 officially supports .so libraries.
13113     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13114     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13115     ;;
13116   m68k)
13117     library_names_spec='$libname.ixlibrary $libname.a'
13118     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13119     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13120     ;;
13121   esac
13122   ;;
13123
13124 beos*)
13125   library_names_spec='$libname$shared_ext'
13126   dynamic_linker="$host_os ld.so"
13127   shlibpath_var=LIBRARY_PATH
13128   ;;
13129
13130 bsdi[45]*)
13131   version_type=linux # correct to gnu/linux during the next big refactor
13132   need_version=no
13133   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13134   soname_spec='$libname$release$shared_ext$major'
13135   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13136   shlibpath_var=LD_LIBRARY_PATH
13137   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13138   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13139   # the default ld.so.conf also contains /usr/contrib/lib and
13140   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13141   # libtool to hard-code these into programs
13142   ;;
13143
13144 cygwin* | mingw* | pw32* | cegcc*)
13145   version_type=windows
13146   shrext_cmds=.dll
13147   need_version=no
13148   need_lib_prefix=no
13149
13150   case $GCC,$cc_basename in
13151   yes,*)
13152     # gcc
13153     library_names_spec='$libname.dll.a'
13154     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13155     postinstall_cmds='base_file=`basename \$file`~
13156       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13157       dldir=$destdir/`dirname \$dlpath`~
13158       test -d \$dldir || mkdir -p \$dldir~
13159       $install_prog $dir/$dlname \$dldir/$dlname~
13160       chmod a+x \$dldir/$dlname~
13161       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13162         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13163       fi'
13164     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13165       dlpath=$dir/\$dldll~
13166        $RM \$dlpath'
13167     shlibpath_overrides_runpath=yes
13168
13169     case $host_os in
13170     cygwin*)
13171       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13172       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13173
13174       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13175       ;;
13176     mingw* | cegcc*)
13177       # MinGW DLLs use traditional 'lib' prefix
13178       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13179       ;;
13180     pw32*)
13181       # pw32 DLLs use 'pw' prefix rather than 'lib'
13182       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13183       ;;
13184     esac
13185     dynamic_linker='Win32 ld.exe'
13186     ;;
13187
13188   *,cl* | *,icl*)
13189     # Native MSVC or ICC
13190     libname_spec='$name'
13191     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13192     library_names_spec='$libname.dll.lib'
13193
13194     case $build_os in
13195     mingw*)
13196       sys_lib_search_path_spec=
13197       lt_save_ifs=$IFS
13198       IFS=';'
13199       for lt_path in $LIB
13200       do
13201         IFS=$lt_save_ifs
13202         # Let DOS variable expansion print the short 8.3 style file name.
13203         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13204         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13205       done
13206       IFS=$lt_save_ifs
13207       # Convert to MSYS style.
13208       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13209       ;;
13210     cygwin*)
13211       # Convert to unix form, then to dos form, then back to unix form
13212       # but this time dos style (no spaces!) so that the unix form looks
13213       # like /cygdrive/c/PROGRA~1:/cygdr...
13214       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13215       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13216       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13217       ;;
13218     *)
13219       sys_lib_search_path_spec=$LIB
13220       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13221         # It is most probably a Windows format PATH.
13222         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13223       else
13224         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13225       fi
13226       # FIXME: find the short name or the path components, as spaces are
13227       # common. (e.g. "Program Files" -> "PROGRA~1")
13228       ;;
13229     esac
13230
13231     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13232     postinstall_cmds='base_file=`basename \$file`~
13233       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13234       dldir=$destdir/`dirname \$dlpath`~
13235       test -d \$dldir || mkdir -p \$dldir~
13236       $install_prog $dir/$dlname \$dldir/$dlname'
13237     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13238       dlpath=$dir/\$dldll~
13239        $RM \$dlpath'
13240     shlibpath_overrides_runpath=yes
13241     dynamic_linker='Win32 link.exe'
13242     ;;
13243
13244   *)
13245     # Assume MSVC and ICC wrapper
13246     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13247     dynamic_linker='Win32 ld.exe'
13248     ;;
13249   esac
13250   # FIXME: first we should search . and the directory the executable is in
13251   shlibpath_var=PATH
13252   ;;
13253
13254 darwin* | rhapsody*)
13255   dynamic_linker="$host_os dyld"
13256   version_type=darwin
13257   need_lib_prefix=no
13258   need_version=no
13259   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13260   soname_spec='$libname$release$major$shared_ext'
13261   shlibpath_overrides_runpath=yes
13262   shlibpath_var=DYLD_LIBRARY_PATH
13263   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13264
13265   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13266   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13267   ;;
13268
13269 dgux*)
13270   version_type=linux # correct to gnu/linux during the next big refactor
13271   need_lib_prefix=no
13272   need_version=no
13273   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13274   soname_spec='$libname$release$shared_ext$major'
13275   shlibpath_var=LD_LIBRARY_PATH
13276   ;;
13277
13278 freebsd* | dragonfly* | midnightbsd*)
13279   # DragonFly does not have aout.  When/if they implement a new
13280   # versioning mechanism, adjust this.
13281   if test -x /usr/bin/objformat; then
13282     objformat=`/usr/bin/objformat`
13283   else
13284     case $host_os in
13285     freebsd[23].*) objformat=aout ;;
13286     *) objformat=elf ;;
13287     esac
13288   fi
13289   version_type=freebsd-$objformat
13290   case $version_type in
13291     freebsd-elf*)
13292       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13293       soname_spec='$libname$release$shared_ext$major'
13294       need_version=no
13295       need_lib_prefix=no
13296       ;;
13297     freebsd-*)
13298       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13299       need_version=yes
13300       ;;
13301   esac
13302   shlibpath_var=LD_LIBRARY_PATH
13303   case $host_os in
13304   freebsd2.*)
13305     shlibpath_overrides_runpath=yes
13306     ;;
13307   freebsd3.[01]* | freebsdelf3.[01]*)
13308     shlibpath_overrides_runpath=yes
13309     hardcode_into_libs=yes
13310     ;;
13311   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13312   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13313     shlibpath_overrides_runpath=no
13314     hardcode_into_libs=yes
13315     ;;
13316   *) # from 4.6 on, and DragonFly
13317     shlibpath_overrides_runpath=yes
13318     hardcode_into_libs=yes
13319     ;;
13320   esac
13321   ;;
13322
13323 haiku*)
13324   version_type=linux # correct to gnu/linux during the next big refactor
13325   need_lib_prefix=no
13326   need_version=no
13327   dynamic_linker="$host_os runtime_loader"
13328   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13329   soname_spec='$libname$release$shared_ext$major'
13330   shlibpath_var=LIBRARY_PATH
13331   shlibpath_overrides_runpath=no
13332   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13333   hardcode_into_libs=yes
13334   ;;
13335
13336 hpux9* | hpux10* | hpux11*)
13337   # Give a soname corresponding to the major version so that dld.sl refuses to
13338   # link against other versions.
13339   version_type=sunos
13340   need_lib_prefix=no
13341   need_version=no
13342   case $host_cpu in
13343   ia64*)
13344     shrext_cmds='.so'
13345     hardcode_into_libs=yes
13346     dynamic_linker="$host_os dld.so"
13347     shlibpath_var=LD_LIBRARY_PATH
13348     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13349     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13350     soname_spec='$libname$release$shared_ext$major'
13351     if test 32 = "$HPUX_IA64_MODE"; then
13352       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13353       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13354     else
13355       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13356       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13357     fi
13358     ;;
13359   hppa*64*)
13360     shrext_cmds='.sl'
13361     hardcode_into_libs=yes
13362     dynamic_linker="$host_os dld.sl"
13363     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13364     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13365     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13366     soname_spec='$libname$release$shared_ext$major'
13367     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13368     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13369     ;;
13370   *)
13371     shrext_cmds='.sl'
13372     dynamic_linker="$host_os dld.sl"
13373     shlibpath_var=SHLIB_PATH
13374     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13375     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13376     soname_spec='$libname$release$shared_ext$major'
13377     ;;
13378   esac
13379   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13380   postinstall_cmds='chmod 555 $lib'
13381   # or fails outright, so override atomically:
13382   install_override_mode=555
13383   ;;
13384
13385 interix[3-9]*)
13386   version_type=linux # correct to gnu/linux during the next big refactor
13387   need_lib_prefix=no
13388   need_version=no
13389   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13390   soname_spec='$libname$release$shared_ext$major'
13391   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13392   shlibpath_var=LD_LIBRARY_PATH
13393   shlibpath_overrides_runpath=no
13394   hardcode_into_libs=yes
13395   ;;
13396
13397 irix5* | irix6* | nonstopux*)
13398   case $host_os in
13399     nonstopux*) version_type=nonstopux ;;
13400     *)
13401         if test yes = "$lt_cv_prog_gnu_ld"; then
13402                 version_type=linux # correct to gnu/linux during the next big refactor
13403         else
13404                 version_type=irix
13405         fi ;;
13406   esac
13407   need_lib_prefix=no
13408   need_version=no
13409   soname_spec='$libname$release$shared_ext$major'
13410   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13411   case $host_os in
13412   irix5* | nonstopux*)
13413     libsuff= shlibsuff=
13414     ;;
13415   *)
13416     case $LD in # libtool.m4 will add one of these switches to LD
13417     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13418       libsuff= shlibsuff= libmagic=32-bit;;
13419     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13420       libsuff=32 shlibsuff=N32 libmagic=N32;;
13421     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13422       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13423     *) libsuff= shlibsuff= libmagic=never-match;;
13424     esac
13425     ;;
13426   esac
13427   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13428   shlibpath_overrides_runpath=no
13429   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13430   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13431   hardcode_into_libs=yes
13432   ;;
13433
13434 # No shared lib support for Linux oldld, aout, or coff.
13435 linux*oldld* | linux*aout* | linux*coff*)
13436   dynamic_linker=no
13437   ;;
13438
13439 linux*android*)
13440   version_type=none # Android doesn't support versioned libraries.
13441   need_lib_prefix=no
13442   need_version=no
13443   library_names_spec='$libname$release$shared_ext'
13444   soname_spec='$libname$release$shared_ext'
13445   finish_cmds=
13446   shlibpath_var=LD_LIBRARY_PATH
13447   shlibpath_overrides_runpath=yes
13448
13449   # This implies no fast_install, which is unacceptable.
13450   # Some rework will be needed to allow for fast_install
13451   # before this can be enabled.
13452   hardcode_into_libs=yes
13453
13454   dynamic_linker='Android linker'
13455   # Don't embed -rpath directories since the linker doesn't support them.
13456   hardcode_libdir_flag_spec='-L$libdir'
13457   ;;
13458
13459 # This must be glibc/ELF.
13460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13461   version_type=linux # correct to gnu/linux during the next big refactor
13462   need_lib_prefix=no
13463   need_version=no
13464   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13465   soname_spec='$libname$release$shared_ext$major'
13466   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13467   shlibpath_var=LD_LIBRARY_PATH
13468   shlibpath_overrides_runpath=no
13469
13470   # Some binutils ld are patched to set DT_RUNPATH
13471   if test ${lt_cv_shlibpath_overrides_runpath+y}
13472 then :
13473   printf %s "(cached) " >&6
13474 else $as_nop
13475   lt_cv_shlibpath_overrides_runpath=no
13476     save_LDFLAGS=$LDFLAGS
13477     save_libdir=$libdir
13478     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13479          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h.  */
13482
13483 int
13484 main (void)
13485 {
13486
13487   ;
13488   return 0;
13489 }
13490 _ACEOF
13491 if ac_fn_c_try_link "$LINENO"
13492 then :
13493   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13494 then :
13495   lt_cv_shlibpath_overrides_runpath=yes
13496 fi
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13499     conftest$ac_exeext conftest.$ac_ext
13500     LDFLAGS=$save_LDFLAGS
13501     libdir=$save_libdir
13502
13503 fi
13504
13505   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13506
13507   # This implies no fast_install, which is unacceptable.
13508   # Some rework will be needed to allow for fast_install
13509   # before this can be enabled.
13510   hardcode_into_libs=yes
13511
13512   # Add ABI-specific directories to the system library path.
13513   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13514
13515   # Ideally, we could use ldconfig to report *all* directores which are
13516   # searched for libraries, however this is still not possible.  Aside from not
13517   # being certain /sbin/ldconfig is available, command
13518   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13519   # even though it is searched at run-time.  Try to do the best guess by
13520   # appending ld.so.conf contents (and includes) to the search path.
13521   if test -f /etc/ld.so.conf; then
13522     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' ' '`
13523     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13524   fi
13525
13526   # We used to test for /lib/ld.so.1 and disable shared libraries on
13527   # powerpc, because MkLinux only supported shared libraries with the
13528   # GNU dynamic linker.  Since this was broken with cross compilers,
13529   # most powerpc-linux boxes support dynamic linking these days and
13530   # people can always --disable-shared, the test was removed, and we
13531   # assume the GNU/Linux dynamic linker is in use.
13532   dynamic_linker='GNU/Linux ld.so'
13533   ;;
13534
13535 netbsd*)
13536   version_type=sunos
13537   need_lib_prefix=no
13538   need_version=no
13539   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13540     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13541     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13542     dynamic_linker='NetBSD (a.out) ld.so'
13543   else
13544     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13545     soname_spec='$libname$release$shared_ext$major'
13546     dynamic_linker='NetBSD ld.elf_so'
13547   fi
13548   shlibpath_var=LD_LIBRARY_PATH
13549   shlibpath_overrides_runpath=yes
13550   hardcode_into_libs=yes
13551   ;;
13552
13553 newsos6)
13554   version_type=linux # correct to gnu/linux during the next big refactor
13555   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13556   shlibpath_var=LD_LIBRARY_PATH
13557   shlibpath_overrides_runpath=yes
13558   ;;
13559
13560 *nto* | *qnx*)
13561   version_type=qnx
13562   need_lib_prefix=no
13563   need_version=no
13564   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13565   soname_spec='$libname$release$shared_ext$major'
13566   shlibpath_var=LD_LIBRARY_PATH
13567   shlibpath_overrides_runpath=no
13568   hardcode_into_libs=yes
13569   dynamic_linker='ldqnx.so'
13570   ;;
13571
13572 openbsd* | bitrig*)
13573   version_type=sunos
13574   sys_lib_dlsearch_path_spec=/usr/lib
13575   need_lib_prefix=no
13576   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13577     need_version=no
13578   else
13579     need_version=yes
13580   fi
13581   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13582   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13583   shlibpath_var=LD_LIBRARY_PATH
13584   shlibpath_overrides_runpath=yes
13585   ;;
13586
13587 os2*)
13588   libname_spec='$name'
13589   version_type=windows
13590   shrext_cmds=.dll
13591   need_version=no
13592   need_lib_prefix=no
13593   # OS/2 can only load a DLL with a base name of 8 characters or less.
13594   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13595     v=$($ECHO $release$versuffix | tr -d .-);
13596     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13597     $ECHO $n$v`$shared_ext'
13598   library_names_spec='${libname}_dll.$libext'
13599   dynamic_linker='OS/2 ld.exe'
13600   shlibpath_var=BEGINLIBPATH
13601   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13602   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13603   postinstall_cmds='base_file=`basename \$file`~
13604     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13605     dldir=$destdir/`dirname \$dlpath`~
13606     test -d \$dldir || mkdir -p \$dldir~
13607     $install_prog $dir/$dlname \$dldir/$dlname~
13608     chmod a+x \$dldir/$dlname~
13609     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13610       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13611     fi'
13612   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13613     dlpath=$dir/\$dldll~
13614     $RM \$dlpath'
13615   ;;
13616
13617 osf3* | osf4* | osf5*)
13618   version_type=osf
13619   need_lib_prefix=no
13620   need_version=no
13621   soname_spec='$libname$release$shared_ext$major'
13622   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13623   shlibpath_var=LD_LIBRARY_PATH
13624   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13625   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13626   ;;
13627
13628 rdos*)
13629   dynamic_linker=no
13630   ;;
13631
13632 solaris*)
13633   version_type=linux # correct to gnu/linux during the next big refactor
13634   need_lib_prefix=no
13635   need_version=no
13636   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13637   soname_spec='$libname$release$shared_ext$major'
13638   shlibpath_var=LD_LIBRARY_PATH
13639   shlibpath_overrides_runpath=yes
13640   hardcode_into_libs=yes
13641   # ldd complains unless libraries are executable
13642   postinstall_cmds='chmod +x $lib'
13643   ;;
13644
13645 sunos4*)
13646   version_type=sunos
13647   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13648   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13649   shlibpath_var=LD_LIBRARY_PATH
13650   shlibpath_overrides_runpath=yes
13651   if test yes = "$with_gnu_ld"; then
13652     need_lib_prefix=no
13653   fi
13654   need_version=yes
13655   ;;
13656
13657 sysv4 | sysv4.3*)
13658   version_type=linux # correct to gnu/linux during the next big refactor
13659   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13660   soname_spec='$libname$release$shared_ext$major'
13661   shlibpath_var=LD_LIBRARY_PATH
13662   case $host_vendor in
13663     sni)
13664       shlibpath_overrides_runpath=no
13665       need_lib_prefix=no
13666       runpath_var=LD_RUN_PATH
13667       ;;
13668     siemens)
13669       need_lib_prefix=no
13670       ;;
13671     motorola)
13672       need_lib_prefix=no
13673       need_version=no
13674       shlibpath_overrides_runpath=no
13675       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13676       ;;
13677   esac
13678   ;;
13679
13680 sysv4*MP*)
13681   if test -d /usr/nec; then
13682     version_type=linux # correct to gnu/linux during the next big refactor
13683     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13684     soname_spec='$libname$shared_ext.$major'
13685     shlibpath_var=LD_LIBRARY_PATH
13686   fi
13687   ;;
13688
13689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13690   version_type=sco
13691   need_lib_prefix=no
13692   need_version=no
13693   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13694   soname_spec='$libname$release$shared_ext$major'
13695   shlibpath_var=LD_LIBRARY_PATH
13696   shlibpath_overrides_runpath=yes
13697   hardcode_into_libs=yes
13698   if test yes = "$with_gnu_ld"; then
13699     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13700   else
13701     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13702     case $host_os in
13703       sco3.2v5*)
13704         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13705         ;;
13706     esac
13707   fi
13708   sys_lib_dlsearch_path_spec='/usr/lib'
13709   ;;
13710
13711 tpf*)
13712   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13713   version_type=linux # correct to gnu/linux during the next big refactor
13714   need_lib_prefix=no
13715   need_version=no
13716   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13717   shlibpath_var=LD_LIBRARY_PATH
13718   shlibpath_overrides_runpath=no
13719   hardcode_into_libs=yes
13720   ;;
13721
13722 uts4*)
13723   version_type=linux # correct to gnu/linux during the next big refactor
13724   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13725   soname_spec='$libname$release$shared_ext$major'
13726   shlibpath_var=LD_LIBRARY_PATH
13727   ;;
13728
13729 *)
13730   dynamic_linker=no
13731   ;;
13732 esac
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13734 printf "%s\n" "$dynamic_linker" >&6; }
13735 test no = "$dynamic_linker" && can_build_shared=no
13736
13737 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13738 if test yes = "$GCC"; then
13739   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13740 fi
13741
13742 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13743   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13744 fi
13745
13746 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13747   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13748 fi
13749
13750 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13751 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13752
13753 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13754 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13755
13756 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13757 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13856 printf %s "checking how to hardcode library paths into programs... " >&6; }
13857 hardcode_action=
13858 if test -n "$hardcode_libdir_flag_spec" ||
13859    test -n "$runpath_var" ||
13860    test yes = "$hardcode_automatic"; then
13861
13862   # We can hardcode non-existent directories.
13863   if test no != "$hardcode_direct" &&
13864      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13865      # have to relink, otherwise we might link with an installed library
13866      # when we should be linking with a yet-to-be-installed one
13867      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13868      test no != "$hardcode_minus_L"; then
13869     # Linking always hardcodes the temporary library directory.
13870     hardcode_action=relink
13871   else
13872     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13873     hardcode_action=immediate
13874   fi
13875 else
13876   # We cannot hardcode anything, or else we can only hardcode existing
13877   # directories.
13878   hardcode_action=unsupported
13879 fi
13880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13881 printf "%s\n" "$hardcode_action" >&6; }
13882
13883 if test relink = "$hardcode_action" ||
13884    test yes = "$inherit_rpath"; then
13885   # Fast installation is not supported
13886   enable_fast_install=no
13887 elif test yes = "$shlibpath_overrides_runpath" ||
13888      test no = "$enable_shared"; then
13889   # Fast installation is not necessary
13890   enable_fast_install=needless
13891 fi
13892
13893
13894
13895
13896
13897
13898   if test yes != "$enable_dlopen"; then
13899   enable_dlopen=unknown
13900   enable_dlopen_self=unknown
13901   enable_dlopen_self_static=unknown
13902 else
13903   lt_cv_dlopen=no
13904   lt_cv_dlopen_libs=
13905
13906   case $host_os in
13907   beos*)
13908     lt_cv_dlopen=load_add_on
13909     lt_cv_dlopen_libs=
13910     lt_cv_dlopen_self=yes
13911     ;;
13912
13913   mingw* | pw32* | cegcc*)
13914     lt_cv_dlopen=LoadLibrary
13915     lt_cv_dlopen_libs=
13916     ;;
13917
13918   cygwin*)
13919     lt_cv_dlopen=dlopen
13920     lt_cv_dlopen_libs=
13921     ;;
13922
13923   darwin*)
13924     # if libdl is installed we need to link against it
13925     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13926 printf %s "checking for dlopen in -ldl... " >&6; }
13927 if test ${ac_cv_lib_dl_dlopen+y}
13928 then :
13929   printf %s "(cached) " >&6
13930 else $as_nop
13931   ac_check_lib_save_LIBS=$LIBS
13932 LIBS="-ldl  $LIBS"
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h.  */
13935
13936 /* Override any GCC internal prototype to avoid an error.
13937    Use char because int might match the return type of a GCC
13938    builtin and then its argument prototype would still apply.  */
13939 char dlopen ();
13940 int
13941 main (void)
13942 {
13943 return dlopen ();
13944   ;
13945   return 0;
13946 }
13947 _ACEOF
13948 if ac_fn_c_try_link "$LINENO"
13949 then :
13950   ac_cv_lib_dl_dlopen=yes
13951 else $as_nop
13952   ac_cv_lib_dl_dlopen=no
13953 fi
13954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13955     conftest$ac_exeext conftest.$ac_ext
13956 LIBS=$ac_check_lib_save_LIBS
13957 fi
13958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13959 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13960 if test "x$ac_cv_lib_dl_dlopen" = xyes
13961 then :
13962   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13963 else $as_nop
13964
13965     lt_cv_dlopen=dyld
13966     lt_cv_dlopen_libs=
13967     lt_cv_dlopen_self=yes
13968
13969 fi
13970
13971     ;;
13972
13973   tpf*)
13974     # Don't try to run any link tests for TPF.  We know it's impossible
13975     # because TPF is a cross-compiler, and we know how we open DSOs.
13976     lt_cv_dlopen=dlopen
13977     lt_cv_dlopen_libs=
13978     lt_cv_dlopen_self=no
13979     ;;
13980
13981   *)
13982     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13983 if test "x$ac_cv_func_shl_load" = xyes
13984 then :
13985   lt_cv_dlopen=shl_load
13986 else $as_nop
13987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13988 printf %s "checking for shl_load in -ldld... " >&6; }
13989 if test ${ac_cv_lib_dld_shl_load+y}
13990 then :
13991   printf %s "(cached) " >&6
13992 else $as_nop
13993   ac_check_lib_save_LIBS=$LIBS
13994 LIBS="-ldld  $LIBS"
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h.  */
13997
13998 /* Override any GCC internal prototype to avoid an error.
13999    Use char because int might match the return type of a GCC
14000    builtin and then its argument prototype would still apply.  */
14001 char shl_load ();
14002 int
14003 main (void)
14004 {
14005 return shl_load ();
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 if ac_fn_c_try_link "$LINENO"
14011 then :
14012   ac_cv_lib_dld_shl_load=yes
14013 else $as_nop
14014   ac_cv_lib_dld_shl_load=no
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14017     conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14019 fi
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14021 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14022 if test "x$ac_cv_lib_dld_shl_load" = xyes
14023 then :
14024   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14025 else $as_nop
14026   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14027 if test "x$ac_cv_func_dlopen" = xyes
14028 then :
14029   lt_cv_dlopen=dlopen
14030 else $as_nop
14031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14032 printf %s "checking for dlopen in -ldl... " >&6; }
14033 if test ${ac_cv_lib_dl_dlopen+y}
14034 then :
14035   printf %s "(cached) " >&6
14036 else $as_nop
14037   ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-ldl  $LIBS"
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h.  */
14041
14042 /* Override any GCC internal prototype to avoid an error.
14043    Use char because int might match the return type of a GCC
14044    builtin and then its argument prototype would still apply.  */
14045 char dlopen ();
14046 int
14047 main (void)
14048 {
14049 return dlopen ();
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 if ac_fn_c_try_link "$LINENO"
14055 then :
14056   ac_cv_lib_dl_dlopen=yes
14057 else $as_nop
14058   ac_cv_lib_dl_dlopen=no
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14061     conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14063 fi
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14065 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14066 if test "x$ac_cv_lib_dl_dlopen" = xyes
14067 then :
14068   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14069 else $as_nop
14070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14071 printf %s "checking for dlopen in -lsvld... " >&6; }
14072 if test ${ac_cv_lib_svld_dlopen+y}
14073 then :
14074   printf %s "(cached) " >&6
14075 else $as_nop
14076   ac_check_lib_save_LIBS=$LIBS
14077 LIBS="-lsvld  $LIBS"
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h.  */
14080
14081 /* Override any GCC internal prototype to avoid an error.
14082    Use char because int might match the return type of a GCC
14083    builtin and then its argument prototype would still apply.  */
14084 char dlopen ();
14085 int
14086 main (void)
14087 {
14088 return dlopen ();
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_link "$LINENO"
14094 then :
14095   ac_cv_lib_svld_dlopen=yes
14096 else $as_nop
14097   ac_cv_lib_svld_dlopen=no
14098 fi
14099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14100     conftest$ac_exeext conftest.$ac_ext
14101 LIBS=$ac_check_lib_save_LIBS
14102 fi
14103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14104 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14105 if test "x$ac_cv_lib_svld_dlopen" = xyes
14106 then :
14107   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14108 else $as_nop
14109   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14110 printf %s "checking for dld_link in -ldld... " >&6; }
14111 if test ${ac_cv_lib_dld_dld_link+y}
14112 then :
14113   printf %s "(cached) " >&6
14114 else $as_nop
14115   ac_check_lib_save_LIBS=$LIBS
14116 LIBS="-ldld  $LIBS"
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h.  */
14119
14120 /* Override any GCC internal prototype to avoid an error.
14121    Use char because int might match the return type of a GCC
14122    builtin and then its argument prototype would still apply.  */
14123 char dld_link ();
14124 int
14125 main (void)
14126 {
14127 return dld_link ();
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 if ac_fn_c_try_link "$LINENO"
14133 then :
14134   ac_cv_lib_dld_dld_link=yes
14135 else $as_nop
14136   ac_cv_lib_dld_dld_link=no
14137 fi
14138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14139     conftest$ac_exeext conftest.$ac_ext
14140 LIBS=$ac_check_lib_save_LIBS
14141 fi
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14143 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14144 if test "x$ac_cv_lib_dld_dld_link" = xyes
14145 then :
14146   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14147 fi
14148
14149
14150 fi
14151
14152
14153 fi
14154
14155
14156 fi
14157
14158
14159 fi
14160
14161
14162 fi
14163
14164     ;;
14165   esac
14166
14167   if test no = "$lt_cv_dlopen"; then
14168     enable_dlopen=no
14169   else
14170     enable_dlopen=yes
14171   fi
14172
14173   case $lt_cv_dlopen in
14174   dlopen)
14175     save_CPPFLAGS=$CPPFLAGS
14176     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14177
14178     save_LDFLAGS=$LDFLAGS
14179     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14180
14181     save_LIBS=$LIBS
14182     LIBS="$lt_cv_dlopen_libs $LIBS"
14183
14184     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14185 printf %s "checking whether a program can dlopen itself... " >&6; }
14186 if test ${lt_cv_dlopen_self+y}
14187 then :
14188   printf %s "(cached) " >&6
14189 else $as_nop
14190           if test yes = "$cross_compiling"; then :
14191   lt_cv_dlopen_self=cross
14192 else
14193   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14194   lt_status=$lt_dlunknown
14195   cat > conftest.$ac_ext <<_LT_EOF
14196 #line $LINENO "configure"
14197 #include "confdefs.h"
14198
14199 #if HAVE_DLFCN_H
14200 #include <dlfcn.h>
14201 #endif
14202
14203 #include <stdio.h>
14204
14205 #ifdef RTLD_GLOBAL
14206 #  define LT_DLGLOBAL           RTLD_GLOBAL
14207 #else
14208 #  ifdef DL_GLOBAL
14209 #    define LT_DLGLOBAL         DL_GLOBAL
14210 #  else
14211 #    define LT_DLGLOBAL         0
14212 #  endif
14213 #endif
14214
14215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14216    find out it does not work in some platform. */
14217 #ifndef LT_DLLAZY_OR_NOW
14218 #  ifdef RTLD_LAZY
14219 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14220 #  else
14221 #    ifdef DL_LAZY
14222 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14223 #    else
14224 #      ifdef RTLD_NOW
14225 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14226 #      else
14227 #        ifdef DL_NOW
14228 #          define LT_DLLAZY_OR_NOW      DL_NOW
14229 #        else
14230 #          define LT_DLLAZY_OR_NOW      0
14231 #        endif
14232 #      endif
14233 #    endif
14234 #  endif
14235 #endif
14236
14237 /* When -fvisibility=hidden is used, assume the code has been annotated
14238    correspondingly for the symbols needed.  */
14239 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14240 int fnord () __attribute__((visibility("default")));
14241 #endif
14242
14243 int fnord () { return 42; }
14244 int main ()
14245 {
14246   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14247   int status = $lt_dlunknown;
14248
14249   if (self)
14250     {
14251       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14252       else
14253         {
14254           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14255           else puts (dlerror ());
14256         }
14257       /* dlclose (self); */
14258     }
14259   else
14260     puts (dlerror ());
14261
14262   return status;
14263 }
14264 _LT_EOF
14265   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14266   (eval $ac_link) 2>&5
14267   ac_status=$?
14268   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14269   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14270     (./conftest; exit; ) >&5 2>/dev/null
14271     lt_status=$?
14272     case x$lt_status in
14273       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14274       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14275       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14276     esac
14277   else :
14278     # compilation failed
14279     lt_cv_dlopen_self=no
14280   fi
14281 fi
14282 rm -fr conftest*
14283
14284
14285 fi
14286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14287 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14288
14289     if test yes = "$lt_cv_dlopen_self"; then
14290       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14291       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14292 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14293 if test ${lt_cv_dlopen_self_static+y}
14294 then :
14295   printf %s "(cached) " >&6
14296 else $as_nop
14297           if test yes = "$cross_compiling"; then :
14298   lt_cv_dlopen_self_static=cross
14299 else
14300   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14301   lt_status=$lt_dlunknown
14302   cat > conftest.$ac_ext <<_LT_EOF
14303 #line $LINENO "configure"
14304 #include "confdefs.h"
14305
14306 #if HAVE_DLFCN_H
14307 #include <dlfcn.h>
14308 #endif
14309
14310 #include <stdio.h>
14311
14312 #ifdef RTLD_GLOBAL
14313 #  define LT_DLGLOBAL           RTLD_GLOBAL
14314 #else
14315 #  ifdef DL_GLOBAL
14316 #    define LT_DLGLOBAL         DL_GLOBAL
14317 #  else
14318 #    define LT_DLGLOBAL         0
14319 #  endif
14320 #endif
14321
14322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14323    find out it does not work in some platform. */
14324 #ifndef LT_DLLAZY_OR_NOW
14325 #  ifdef RTLD_LAZY
14326 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14327 #  else
14328 #    ifdef DL_LAZY
14329 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14330 #    else
14331 #      ifdef RTLD_NOW
14332 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14333 #      else
14334 #        ifdef DL_NOW
14335 #          define LT_DLLAZY_OR_NOW      DL_NOW
14336 #        else
14337 #          define LT_DLLAZY_OR_NOW      0
14338 #        endif
14339 #      endif
14340 #    endif
14341 #  endif
14342 #endif
14343
14344 /* When -fvisibility=hidden is used, assume the code has been annotated
14345    correspondingly for the symbols needed.  */
14346 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14347 int fnord () __attribute__((visibility("default")));
14348 #endif
14349
14350 int fnord () { return 42; }
14351 int main ()
14352 {
14353   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14354   int status = $lt_dlunknown;
14355
14356   if (self)
14357     {
14358       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14359       else
14360         {
14361           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14362           else puts (dlerror ());
14363         }
14364       /* dlclose (self); */
14365     }
14366   else
14367     puts (dlerror ());
14368
14369   return status;
14370 }
14371 _LT_EOF
14372   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14373   (eval $ac_link) 2>&5
14374   ac_status=$?
14375   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14376   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14377     (./conftest; exit; ) >&5 2>/dev/null
14378     lt_status=$?
14379     case x$lt_status in
14380       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14381       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14382       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14383     esac
14384   else :
14385     # compilation failed
14386     lt_cv_dlopen_self_static=no
14387   fi
14388 fi
14389 rm -fr conftest*
14390
14391
14392 fi
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14394 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14395     fi
14396
14397     CPPFLAGS=$save_CPPFLAGS
14398     LDFLAGS=$save_LDFLAGS
14399     LIBS=$save_LIBS
14400     ;;
14401   esac
14402
14403   case $lt_cv_dlopen_self in
14404   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14405   *) enable_dlopen_self=unknown ;;
14406   esac
14407
14408   case $lt_cv_dlopen_self_static in
14409   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14410   *) enable_dlopen_self_static=unknown ;;
14411   esac
14412 fi
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430 striplib=
14431 old_striplib=
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14433 printf %s "checking whether stripping libraries is possible... " >&6; }
14434 if test -z "$STRIP"; then
14435   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 printf "%s\n" "no" >&6; }
14437 else
14438   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14439     old_striplib="$STRIP --strip-debug"
14440     striplib="$STRIP --strip-unneeded"
14441     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14442 printf "%s\n" "yes" >&6; }
14443   else
14444     case $host_os in
14445     darwin*)
14446       # FIXME - insert some real tests, host_os isn't really good enough
14447       striplib="$STRIP -x"
14448       old_striplib="$STRIP -S"
14449       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14450 printf "%s\n" "yes" >&6; }
14451       ;;
14452     freebsd*)
14453       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14454         old_striplib="$STRIP --strip-debug"
14455         striplib="$STRIP --strip-unneeded"
14456         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14457 printf "%s\n" "yes" >&6; }
14458       else
14459         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14460 printf "%s\n" "no" >&6; }
14461       fi
14462       ;;
14463     *)
14464       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 printf "%s\n" "no" >&6; }
14466       ;;
14467     esac
14468   fi
14469 fi
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482   # Report what library types will actually be built
14483   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14484 printf %s "checking if libtool supports shared libraries... " >&6; }
14485   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14486 printf "%s\n" "$can_build_shared" >&6; }
14487
14488   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14489 printf %s "checking whether to build shared libraries... " >&6; }
14490   test no = "$can_build_shared" && enable_shared=no
14491
14492   # On AIX, shared libraries and static libraries use the same namespace, and
14493   # are all built from PIC.
14494   case $host_os in
14495   aix3*)
14496     test yes = "$enable_shared" && enable_static=no
14497     if test -n "$RANLIB"; then
14498       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14499       postinstall_cmds='$RANLIB $lib'
14500     fi
14501     ;;
14502
14503   aix[4-9]*)
14504     if test ia64 != "$host_cpu"; then
14505       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14506       yes,aix,yes) ;;                   # shared object as lib.so file only
14507       yes,svr4,*) ;;                    # shared object as lib.so archive member only
14508       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
14509       esac
14510     fi
14511     ;;
14512   esac
14513   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14514 printf "%s\n" "$enable_shared" >&6; }
14515
14516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14517 printf %s "checking whether to build static libraries... " >&6; }
14518   # Make sure either enable_shared or enable_static is yes.
14519   test yes = "$enable_shared" || enable_static=yes
14520   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14521 printf "%s\n" "$enable_static" >&6; }
14522
14523
14524
14525
14526 fi
14527 ac_ext=c
14528 ac_cpp='$CPP $CPPFLAGS'
14529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14532
14533 CC=$lt_save_CC
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549         ac_config_commands="$ac_config_commands libtool"
14550
14551
14552
14553
14554 # Only expand once:
14555
14556
14557
14558
14559 LIBT_CURRENT=13
14560 LIBT_REVISION=0
14561
14562
14563 LIBT_AGE=12
14564
14565 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
14566
14567
14568 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
14569
14570
14571 PKGCONFIG_REQUIRES=
14572 PKGCONFIG_REQUIRES_PRIVATELY=
14573
14574
14575 os_win32=no
14576 os_darwin=no
14577 case "${host_os}" in
14578         cygwin*|mingw*)
14579                 os_win32=yes
14580                 ;;
14581         darwin*)
14582                 os_darwin=yes
14583                 ;;
14584 esac
14585  if test "$os_win32" = "yes"; then
14586   OS_WIN32_TRUE=
14587   OS_WIN32_FALSE='#'
14588 else
14589   OS_WIN32_TRUE='#'
14590   OS_WIN32_FALSE=
14591 fi
14592
14593  if test "$os_darwin" = "yes"; then
14594   OS_DARWIN_TRUE=
14595   OS_DARWIN_FALSE='#'
14596 else
14597   OS_DARWIN_TRUE='#'
14598   OS_DARWIN_FALSE=
14599 fi
14600
14601
14602 GETTEXT_PACKAGE=$PACKAGE
14603
14604
14605 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
14606
14607
14608
14609
14610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14611 printf %s "checking whether NLS is requested... " >&6; }
14612     # Check whether --enable-nls was given.
14613 if test ${enable_nls+y}
14614 then :
14615   enableval=$enable_nls; USE_NLS=$enableval
14616 else $as_nop
14617   USE_NLS=yes
14618 fi
14619
14620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14621 printf "%s\n" "$USE_NLS" >&6; }
14622
14623
14624
14625
14626       GETTEXT_MACRO_VERSION=0.19
14627
14628
14629
14630
14631 # Prepare PATH_SEPARATOR.
14632 # The user is always right.
14633 if test "${PATH_SEPARATOR+set}" != set; then
14634   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14635   # contains only /bin. Note that ksh looks also at the FPATH variable,
14636   # so we have to set that as well for the test.
14637   PATH_SEPARATOR=:
14638   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14639     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14640            || PATH_SEPARATOR=';'
14641        }
14642 fi
14643
14644 # Find out how to test for executable files. Don't use a zero-byte file,
14645 # as systems may use methods other than mode bits to determine executability.
14646 cat >conf$$.file <<_ASEOF
14647 #! /bin/sh
14648 exit 0
14649 _ASEOF
14650 chmod +x conf$$.file
14651 if test -x conf$$.file >/dev/null 2>&1; then
14652   ac_executable_p="test -x"
14653 else
14654   ac_executable_p="test -f"
14655 fi
14656 rm -f conf$$.file
14657
14658 # Extract the first word of "msgfmt", so it can be a program name with args.
14659 set dummy msgfmt; ac_word=$2
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661 printf %s "checking for $ac_word... " >&6; }
14662 if test ${ac_cv_path_MSGFMT+y}
14663 then :
14664   printf %s "(cached) " >&6
14665 else $as_nop
14666   case "$MSGFMT" in
14667   [\\/]* | ?:[\\/]*)
14668     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14669     ;;
14670   *)
14671     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14672     for ac_dir in $PATH; do
14673       IFS="$ac_save_IFS"
14674       test -z "$ac_dir" && ac_dir=.
14675       for ac_exec_ext in '' $ac_executable_extensions; do
14676         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14677           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14678           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14679      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14680             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14681             break 2
14682           fi
14683         fi
14684       done
14685     done
14686     IFS="$ac_save_IFS"
14687   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14688     ;;
14689 esac
14690 fi
14691 MSGFMT="$ac_cv_path_MSGFMT"
14692 if test "$MSGFMT" != ":"; then
14693   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14694 printf "%s\n" "$MSGFMT" >&6; }
14695 else
14696   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 printf "%s\n" "no" >&6; }
14698 fi
14699
14700   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14701 set dummy gmsgfmt; ac_word=$2
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 printf %s "checking for $ac_word... " >&6; }
14704 if test ${ac_cv_path_GMSGFMT+y}
14705 then :
14706   printf %s "(cached) " >&6
14707 else $as_nop
14708   case $GMSGFMT in
14709   [\\/]* | ?:[\\/]*)
14710   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14711   ;;
14712   *)
14713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14715 do
14716   IFS=$as_save_IFS
14717   case $as_dir in #(((
14718     '') as_dir=./ ;;
14719     */) ;;
14720     *) as_dir=$as_dir/ ;;
14721   esac
14722     for ac_exec_ext in '' $ac_executable_extensions; do
14723   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14724     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14725     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14726     break 2
14727   fi
14728 done
14729   done
14730 IFS=$as_save_IFS
14731
14732   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14733   ;;
14734 esac
14735 fi
14736 GMSGFMT=$ac_cv_path_GMSGFMT
14737 if test -n "$GMSGFMT"; then
14738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14739 printf "%s\n" "$GMSGFMT" >&6; }
14740 else
14741   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14742 printf "%s\n" "no" >&6; }
14743 fi
14744
14745
14746
14747     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14748     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14749     *) MSGFMT_015=$MSGFMT ;;
14750   esac
14751
14752   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14753     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14754     *) GMSGFMT_015=$GMSGFMT ;;
14755   esac
14756
14757
14758
14759 # Prepare PATH_SEPARATOR.
14760 # The user is always right.
14761 if test "${PATH_SEPARATOR+set}" != set; then
14762   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14763   # contains only /bin. Note that ksh looks also at the FPATH variable,
14764   # so we have to set that as well for the test.
14765   PATH_SEPARATOR=:
14766   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14767     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14768            || PATH_SEPARATOR=';'
14769        }
14770 fi
14771
14772 # Find out how to test for executable files. Don't use a zero-byte file,
14773 # as systems may use methods other than mode bits to determine executability.
14774 cat >conf$$.file <<_ASEOF
14775 #! /bin/sh
14776 exit 0
14777 _ASEOF
14778 chmod +x conf$$.file
14779 if test -x conf$$.file >/dev/null 2>&1; then
14780   ac_executable_p="test -x"
14781 else
14782   ac_executable_p="test -f"
14783 fi
14784 rm -f conf$$.file
14785
14786 # Extract the first word of "xgettext", so it can be a program name with args.
14787 set dummy xgettext; ac_word=$2
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789 printf %s "checking for $ac_word... " >&6; }
14790 if test ${ac_cv_path_XGETTEXT+y}
14791 then :
14792   printf %s "(cached) " >&6
14793 else $as_nop
14794   case "$XGETTEXT" in
14795   [\\/]* | ?:[\\/]*)
14796     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14797     ;;
14798   *)
14799     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14800     for ac_dir in $PATH; do
14801       IFS="$ac_save_IFS"
14802       test -z "$ac_dir" && ac_dir=.
14803       for ac_exec_ext in '' $ac_executable_extensions; do
14804         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14805           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14806           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14807      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14808             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14809             break 2
14810           fi
14811         fi
14812       done
14813     done
14814     IFS="$ac_save_IFS"
14815   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14816     ;;
14817 esac
14818 fi
14819 XGETTEXT="$ac_cv_path_XGETTEXT"
14820 if test "$XGETTEXT" != ":"; then
14821   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14822 printf "%s\n" "$XGETTEXT" >&6; }
14823 else
14824   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 printf "%s\n" "no" >&6; }
14826 fi
14827
14828     rm -f messages.po
14829
14830     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14831     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14832     *) XGETTEXT_015=$XGETTEXT ;;
14833   esac
14834
14835
14836
14837 # Prepare PATH_SEPARATOR.
14838 # The user is always right.
14839 if test "${PATH_SEPARATOR+set}" != set; then
14840   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14841   # contains only /bin. Note that ksh looks also at the FPATH variable,
14842   # so we have to set that as well for the test.
14843   PATH_SEPARATOR=:
14844   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14845     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14846            || PATH_SEPARATOR=';'
14847        }
14848 fi
14849
14850 # Find out how to test for executable files. Don't use a zero-byte file,
14851 # as systems may use methods other than mode bits to determine executability.
14852 cat >conf$$.file <<_ASEOF
14853 #! /bin/sh
14854 exit 0
14855 _ASEOF
14856 chmod +x conf$$.file
14857 if test -x conf$$.file >/dev/null 2>&1; then
14858   ac_executable_p="test -x"
14859 else
14860   ac_executable_p="test -f"
14861 fi
14862 rm -f conf$$.file
14863
14864 # Extract the first word of "msgmerge", so it can be a program name with args.
14865 set dummy msgmerge; ac_word=$2
14866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14867 printf %s "checking for $ac_word... " >&6; }
14868 if test ${ac_cv_path_MSGMERGE+y}
14869 then :
14870   printf %s "(cached) " >&6
14871 else $as_nop
14872   case "$MSGMERGE" in
14873   [\\/]* | ?:[\\/]*)
14874     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14875     ;;
14876   *)
14877     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14878     for ac_dir in $PATH; do
14879       IFS="$ac_save_IFS"
14880       test -z "$ac_dir" && ac_dir=.
14881       for ac_exec_ext in '' $ac_executable_extensions; do
14882         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14883           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14884           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14885             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14886             break 2
14887           fi
14888         fi
14889       done
14890     done
14891     IFS="$ac_save_IFS"
14892   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14893     ;;
14894 esac
14895 fi
14896 MSGMERGE="$ac_cv_path_MSGMERGE"
14897 if test "$MSGMERGE" != ":"; then
14898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14899 printf "%s\n" "$MSGMERGE" >&6; }
14900 else
14901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 printf "%s\n" "no" >&6; }
14903 fi
14904
14905
14906         test -n "$localedir" || localedir='${datadir}/locale'
14907
14908
14909     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14910
14911
14912   ac_config_commands="$ac_config_commands po-directories"
14913
14914
14915
14916       if test "X$prefix" = "XNONE"; then
14917     acl_final_prefix="$ac_default_prefix"
14918   else
14919     acl_final_prefix="$prefix"
14920   fi
14921   if test "X$exec_prefix" = "XNONE"; then
14922     acl_final_exec_prefix='${prefix}'
14923   else
14924     acl_final_exec_prefix="$exec_prefix"
14925   fi
14926   acl_save_prefix="$prefix"
14927   prefix="$acl_final_prefix"
14928   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14929   prefix="$acl_save_prefix"
14930
14931
14932
14933 # Check whether --with-gnu-ld was given.
14934 if test ${with_gnu_ld+y}
14935 then :
14936   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14937 else $as_nop
14938   with_gnu_ld=no
14939 fi
14940
14941 # Prepare PATH_SEPARATOR.
14942 # The user is always right.
14943 if test "${PATH_SEPARATOR+set}" != set; then
14944   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14945   # contains only /bin. Note that ksh looks also at the FPATH variable,
14946   # so we have to set that as well for the test.
14947   PATH_SEPARATOR=:
14948   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14949     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14950            || PATH_SEPARATOR=';'
14951        }
14952 fi
14953
14954 ac_prog=ld
14955 if test "$GCC" = yes; then
14956   # Check if gcc -print-prog-name=ld gives a path.
14957   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14958 printf %s "checking for ld used by $CC... " >&6; }
14959   case $host in
14960   *-*-mingw*)
14961     # gcc leaves a trailing carriage return which upsets mingw
14962     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14963   *)
14964     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14965   esac
14966   case $ac_prog in
14967     # Accept absolute paths.
14968     [\\/]* | ?:[\\/]*)
14969       re_direlt='/[^/][^/]*/\.\./'
14970       # Canonicalize the pathname of ld
14971       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14972       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14973         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14974       done
14975       test -z "$LD" && LD="$ac_prog"
14976       ;;
14977   "")
14978     # If it fails, then pretend we aren't using GCC.
14979     ac_prog=ld
14980     ;;
14981   *)
14982     # If it is relative, then search for the first ld in PATH.
14983     with_gnu_ld=unknown
14984     ;;
14985   esac
14986 elif test "$with_gnu_ld" = yes; then
14987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14988 printf %s "checking for GNU ld... " >&6; }
14989 else
14990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14991 printf %s "checking for non-GNU ld... " >&6; }
14992 fi
14993 if test ${acl_cv_path_LD+y}
14994 then :
14995   printf %s "(cached) " >&6
14996 else $as_nop
14997   if test -z "$LD"; then
14998   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14999   for ac_dir in $PATH; do
15000     IFS="$acl_save_ifs"
15001     test -z "$ac_dir" && ac_dir=.
15002     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15003       acl_cv_path_LD="$ac_dir/$ac_prog"
15004       # Check to see if the program is GNU ld.  I'd rather use --version,
15005       # but apparently some variants of GNU ld only accept -v.
15006       # Break only if it was the GNU/non-GNU ld that we prefer.
15007       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15008       *GNU* | *'with BFD'*)
15009         test "$with_gnu_ld" != no && break
15010         ;;
15011       *)
15012         test "$with_gnu_ld" != yes && break
15013         ;;
15014       esac
15015     fi
15016   done
15017   IFS="$acl_save_ifs"
15018 else
15019   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15020 fi
15021 fi
15022
15023 LD="$acl_cv_path_LD"
15024 if test -n "$LD"; then
15025   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15026 printf "%s\n" "$LD" >&6; }
15027 else
15028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 printf "%s\n" "no" >&6; }
15030 fi
15031 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15033 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15034 if test ${acl_cv_prog_gnu_ld+y}
15035 then :
15036   printf %s "(cached) " >&6
15037 else $as_nop
15038   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15039 case `$LD -v 2>&1 </dev/null` in
15040 *GNU* | *'with BFD'*)
15041   acl_cv_prog_gnu_ld=yes
15042   ;;
15043 *)
15044   acl_cv_prog_gnu_ld=no
15045   ;;
15046 esac
15047 fi
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15049 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15050 with_gnu_ld=$acl_cv_prog_gnu_ld
15051
15052
15053
15054
15055
15056                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15057 printf %s "checking for shared library run path origin... " >&6; }
15058 if test ${acl_cv_rpath+y}
15059 then :
15060   printf %s "(cached) " >&6
15061 else $as_nop
15062
15063     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15064     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15065     . ./conftest.sh
15066     rm -f ./conftest.sh
15067     acl_cv_rpath=done
15068
15069 fi
15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15071 printf "%s\n" "$acl_cv_rpath" >&6; }
15072   wl="$acl_cv_wl"
15073   acl_libext="$acl_cv_libext"
15074   acl_shlibext="$acl_cv_shlibext"
15075   acl_libname_spec="$acl_cv_libname_spec"
15076   acl_library_names_spec="$acl_cv_library_names_spec"
15077   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15078   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15079   acl_hardcode_direct="$acl_cv_hardcode_direct"
15080   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15081     # Check whether --enable-rpath was given.
15082 if test ${enable_rpath+y}
15083 then :
15084   enableval=$enable_rpath; :
15085 else $as_nop
15086   enable_rpath=yes
15087 fi
15088
15089
15090 ac_ext=c
15091 ac_cpp='$CPP $CPPFLAGS'
15092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15096 printf %s "checking how to run the C preprocessor... " >&6; }
15097 # On Suns, sometimes $CPP names a directory.
15098 if test -n "$CPP" && test -d "$CPP"; then
15099   CPP=
15100 fi
15101 if test -z "$CPP"; then
15102   if test ${ac_cv_prog_CPP+y}
15103 then :
15104   printf %s "(cached) " >&6
15105 else $as_nop
15106       # Double quotes because $CC needs to be expanded
15107     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15108     do
15109       ac_preproc_ok=false
15110 for ac_c_preproc_warn_flag in '' yes
15111 do
15112   # Use a header file that comes with gcc, so configuring glibc
15113   # with a fresh cross-compiler works.
15114   # On the NeXT, cc -E runs the code through the compiler's parser,
15115   # not just through cpp. "Syntax error" is here to catch this case.
15116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h.  */
15118 #include <limits.h>
15119                      Syntax error
15120 _ACEOF
15121 if ac_fn_c_try_cpp "$LINENO"
15122 then :
15123
15124 else $as_nop
15125   # Broken: fails on valid input.
15126 continue
15127 fi
15128 rm -f conftest.err conftest.i conftest.$ac_ext
15129
15130   # OK, works on sane cases.  Now check whether nonexistent headers
15131   # can be detected and how.
15132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h.  */
15134 #include <ac_nonexistent.h>
15135 _ACEOF
15136 if ac_fn_c_try_cpp "$LINENO"
15137 then :
15138   # Broken: success on invalid input.
15139 continue
15140 else $as_nop
15141   # Passes both tests.
15142 ac_preproc_ok=:
15143 break
15144 fi
15145 rm -f conftest.err conftest.i conftest.$ac_ext
15146
15147 done
15148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15149 rm -f conftest.i conftest.err conftest.$ac_ext
15150 if $ac_preproc_ok
15151 then :
15152   break
15153 fi
15154
15155     done
15156     ac_cv_prog_CPP=$CPP
15157
15158 fi
15159   CPP=$ac_cv_prog_CPP
15160 else
15161   ac_cv_prog_CPP=$CPP
15162 fi
15163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15164 printf "%s\n" "$CPP" >&6; }
15165 ac_preproc_ok=false
15166 for ac_c_preproc_warn_flag in '' yes
15167 do
15168   # Use a header file that comes with gcc, so configuring glibc
15169   # with a fresh cross-compiler works.
15170   # On the NeXT, cc -E runs the code through the compiler's parser,
15171   # not just through cpp. "Syntax error" is here to catch this case.
15172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h.  */
15174 #include <limits.h>
15175                      Syntax error
15176 _ACEOF
15177 if ac_fn_c_try_cpp "$LINENO"
15178 then :
15179
15180 else $as_nop
15181   # Broken: fails on valid input.
15182 continue
15183 fi
15184 rm -f conftest.err conftest.i conftest.$ac_ext
15185
15186   # OK, works on sane cases.  Now check whether nonexistent headers
15187   # can be detected and how.
15188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h.  */
15190 #include <ac_nonexistent.h>
15191 _ACEOF
15192 if ac_fn_c_try_cpp "$LINENO"
15193 then :
15194   # Broken: success on invalid input.
15195 continue
15196 else $as_nop
15197   # Passes both tests.
15198 ac_preproc_ok=:
15199 break
15200 fi
15201 rm -f conftest.err conftest.i conftest.$ac_ext
15202
15203 done
15204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15205 rm -f conftest.i conftest.err conftest.$ac_ext
15206 if $ac_preproc_ok
15207 then :
15208
15209 else $as_nop
15210   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15211 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15212 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15213 See \`config.log' for more details" "$LINENO" 5; }
15214 fi
15215
15216 ac_ext=c
15217 ac_cpp='$CPP $CPPFLAGS'
15218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15221
15222
15223
15224
15225   acl_libdirstem=lib
15226   acl_libdirstem2=
15227   case "$host_os" in
15228     solaris*)
15229                                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15230 printf %s "checking for 64-bit host... " >&6; }
15231 if test ${gl_cv_solaris_64bit+y}
15232 then :
15233   printf %s "(cached) " >&6
15234 else $as_nop
15235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h.  */
15237
15238 #ifdef _LP64
15239 sixtyfour bits
15240 #endif
15241
15242 _ACEOF
15243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15244   $EGREP "sixtyfour bits" >/dev/null 2>&1
15245 then :
15246   gl_cv_solaris_64bit=yes
15247 else $as_nop
15248   gl_cv_solaris_64bit=no
15249 fi
15250 rm -rf conftest*
15251
15252
15253 fi
15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15255 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
15256       if test $gl_cv_solaris_64bit = yes; then
15257         acl_libdirstem=lib/64
15258         case "$host_cpu" in
15259           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15260           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15261         esac
15262       fi
15263       ;;
15264     *)
15265       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15266       if test -n "$searchpath"; then
15267         acl_save_IFS="${IFS=    }"; IFS=":"
15268         for searchdir in $searchpath; do
15269           if test -d "$searchdir"; then
15270             case "$searchdir" in
15271               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15272               */../ | */.. )
15273                 # Better ignore directories of this form. They are misleading.
15274                 ;;
15275               *) searchdir=`cd "$searchdir" && pwd`
15276                  case "$searchdir" in
15277                    */lib64 ) acl_libdirstem=lib64 ;;
15278                  esac ;;
15279             esac
15280           fi
15281         done
15282         IFS="$acl_save_IFS"
15283       fi
15284       ;;
15285   esac
15286   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299     use_additional=yes
15300
15301   acl_save_prefix="$prefix"
15302   prefix="$acl_final_prefix"
15303   acl_save_exec_prefix="$exec_prefix"
15304   exec_prefix="$acl_final_exec_prefix"
15305
15306     eval additional_includedir=\"$includedir\"
15307     eval additional_libdir=\"$libdir\"
15308
15309   exec_prefix="$acl_save_exec_prefix"
15310   prefix="$acl_save_prefix"
15311
15312
15313 # Check whether --with-libiconv-prefix was given.
15314 if test ${with_libiconv_prefix+y}
15315 then :
15316   withval=$with_libiconv_prefix;
15317     if test "X$withval" = "Xno"; then
15318       use_additional=no
15319     else
15320       if test "X$withval" = "X"; then
15321
15322   acl_save_prefix="$prefix"
15323   prefix="$acl_final_prefix"
15324   acl_save_exec_prefix="$exec_prefix"
15325   exec_prefix="$acl_final_exec_prefix"
15326
15327           eval additional_includedir=\"$includedir\"
15328           eval additional_libdir=\"$libdir\"
15329
15330   exec_prefix="$acl_save_exec_prefix"
15331   prefix="$acl_save_prefix"
15332
15333       else
15334         additional_includedir="$withval/include"
15335         additional_libdir="$withval/$acl_libdirstem"
15336         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15337            && ! test -d "$withval/$acl_libdirstem"; then
15338           additional_libdir="$withval/$acl_libdirstem2"
15339         fi
15340       fi
15341     fi
15342
15343 fi
15344
15345       LIBICONV=
15346   LTLIBICONV=
15347   INCICONV=
15348   LIBICONV_PREFIX=
15349       HAVE_LIBICONV=
15350   rpathdirs=
15351   ltrpathdirs=
15352   names_already_handled=
15353   names_next_round='iconv '
15354   while test -n "$names_next_round"; do
15355     names_this_round="$names_next_round"
15356     names_next_round=
15357     for name in $names_this_round; do
15358       already_handled=
15359       for n in $names_already_handled; do
15360         if test "$n" = "$name"; then
15361           already_handled=yes
15362           break
15363         fi
15364       done
15365       if test -z "$already_handled"; then
15366         names_already_handled="$names_already_handled $name"
15367                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15368         eval value=\"\$HAVE_LIB$uppername\"
15369         if test -n "$value"; then
15370           if test "$value" = yes; then
15371             eval value=\"\$LIB$uppername\"
15372             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15373             eval value=\"\$LTLIB$uppername\"
15374             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15375           else
15376                                     :
15377           fi
15378         else
15379                               found_dir=
15380           found_la=
15381           found_so=
15382           found_a=
15383           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15384           if test -n "$acl_shlibext"; then
15385             shrext=".$acl_shlibext"             # typically: shrext=.so
15386           else
15387             shrext=
15388           fi
15389           if test $use_additional = yes; then
15390             dir="$additional_libdir"
15391                                     if test -n "$acl_shlibext"; then
15392               if test -f "$dir/$libname$shrext"; then
15393                 found_dir="$dir"
15394                 found_so="$dir/$libname$shrext"
15395               else
15396                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15397                   ver=`(cd "$dir" && \
15398                         for f in "$libname$shrext".*; do echo "$f"; done \
15399                         | sed -e "s,^$libname$shrext\\\\.,," \
15400                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15401                         | sed 1q ) 2>/dev/null`
15402                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15403                     found_dir="$dir"
15404                     found_so="$dir/$libname$shrext.$ver"
15405                   fi
15406                 else
15407                   eval library_names=\"$acl_library_names_spec\"
15408                   for f in $library_names; do
15409                     if test -f "$dir/$f"; then
15410                       found_dir="$dir"
15411                       found_so="$dir/$f"
15412                       break
15413                     fi
15414                   done
15415                 fi
15416               fi
15417             fi
15418                         if test "X$found_dir" = "X"; then
15419               if test -f "$dir/$libname.$acl_libext"; then
15420                 found_dir="$dir"
15421                 found_a="$dir/$libname.$acl_libext"
15422               fi
15423             fi
15424             if test "X$found_dir" != "X"; then
15425               if test -f "$dir/$libname.la"; then
15426                 found_la="$dir/$libname.la"
15427               fi
15428             fi
15429           fi
15430           if test "X$found_dir" = "X"; then
15431             for x in $LDFLAGS $LTLIBICONV; do
15432
15433   acl_save_prefix="$prefix"
15434   prefix="$acl_final_prefix"
15435   acl_save_exec_prefix="$exec_prefix"
15436   exec_prefix="$acl_final_exec_prefix"
15437   eval x=\"$x\"
15438   exec_prefix="$acl_save_exec_prefix"
15439   prefix="$acl_save_prefix"
15440
15441               case "$x" in
15442                 -L*)
15443                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15444                                     if test -n "$acl_shlibext"; then
15445                     if test -f "$dir/$libname$shrext"; then
15446                       found_dir="$dir"
15447                       found_so="$dir/$libname$shrext"
15448                     else
15449                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15450                         ver=`(cd "$dir" && \
15451                               for f in "$libname$shrext".*; do echo "$f"; done \
15452                               | sed -e "s,^$libname$shrext\\\\.,," \
15453                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15454                               | sed 1q ) 2>/dev/null`
15455                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15456                           found_dir="$dir"
15457                           found_so="$dir/$libname$shrext.$ver"
15458                         fi
15459                       else
15460                         eval library_names=\"$acl_library_names_spec\"
15461                         for f in $library_names; do
15462                           if test -f "$dir/$f"; then
15463                             found_dir="$dir"
15464                             found_so="$dir/$f"
15465                             break
15466                           fi
15467                         done
15468                       fi
15469                     fi
15470                   fi
15471                                     if test "X$found_dir" = "X"; then
15472                     if test -f "$dir/$libname.$acl_libext"; then
15473                       found_dir="$dir"
15474                       found_a="$dir/$libname.$acl_libext"
15475                     fi
15476                   fi
15477                   if test "X$found_dir" != "X"; then
15478                     if test -f "$dir/$libname.la"; then
15479                       found_la="$dir/$libname.la"
15480                     fi
15481                   fi
15482                   ;;
15483               esac
15484               if test "X$found_dir" != "X"; then
15485                 break
15486               fi
15487             done
15488           fi
15489           if test "X$found_dir" != "X"; then
15490                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15491             if test "X$found_so" != "X"; then
15492                                                         if test "$enable_rpath" = no \
15493                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15494                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15495                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15496               else
15497                                                                                 haveit=
15498                 for x in $ltrpathdirs; do
15499                   if test "X$x" = "X$found_dir"; then
15500                     haveit=yes
15501                     break
15502                   fi
15503                 done
15504                 if test -z "$haveit"; then
15505                   ltrpathdirs="$ltrpathdirs $found_dir"
15506                 fi
15507                                 if test "$acl_hardcode_direct" = yes; then
15508                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15509                 else
15510                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15511                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15512                                                             haveit=
15513                     for x in $rpathdirs; do
15514                       if test "X$x" = "X$found_dir"; then
15515                         haveit=yes
15516                         break
15517                       fi
15518                     done
15519                     if test -z "$haveit"; then
15520                       rpathdirs="$rpathdirs $found_dir"
15521                     fi
15522                   else
15523                                                                                 haveit=
15524                     for x in $LDFLAGS $LIBICONV; do
15525
15526   acl_save_prefix="$prefix"
15527   prefix="$acl_final_prefix"
15528   acl_save_exec_prefix="$exec_prefix"
15529   exec_prefix="$acl_final_exec_prefix"
15530   eval x=\"$x\"
15531   exec_prefix="$acl_save_exec_prefix"
15532   prefix="$acl_save_prefix"
15533
15534                       if test "X$x" = "X-L$found_dir"; then
15535                         haveit=yes
15536                         break
15537                       fi
15538                     done
15539                     if test -z "$haveit"; then
15540                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15541                     fi
15542                     if test "$acl_hardcode_minus_L" != no; then
15543                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15544                     else
15545                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15546                     fi
15547                   fi
15548                 fi
15549               fi
15550             else
15551               if test "X$found_a" != "X"; then
15552                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15553               else
15554                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15555               fi
15556             fi
15557                         additional_includedir=
15558             case "$found_dir" in
15559               */$acl_libdirstem | */$acl_libdirstem/)
15560                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15561                 if test "$name" = 'iconv'; then
15562                   LIBICONV_PREFIX="$basedir"
15563                 fi
15564                 additional_includedir="$basedir/include"
15565                 ;;
15566               */$acl_libdirstem2 | */$acl_libdirstem2/)
15567                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15568                 if test "$name" = 'iconv'; then
15569                   LIBICONV_PREFIX="$basedir"
15570                 fi
15571                 additional_includedir="$basedir/include"
15572                 ;;
15573             esac
15574             if test "X$additional_includedir" != "X"; then
15575                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15576                 haveit=
15577                 if test "X$additional_includedir" = "X/usr/local/include"; then
15578                   if test -n "$GCC"; then
15579                     case $host_os in
15580                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15581                     esac
15582                   fi
15583                 fi
15584                 if test -z "$haveit"; then
15585                   for x in $CPPFLAGS $INCICONV; do
15586
15587   acl_save_prefix="$prefix"
15588   prefix="$acl_final_prefix"
15589   acl_save_exec_prefix="$exec_prefix"
15590   exec_prefix="$acl_final_exec_prefix"
15591   eval x=\"$x\"
15592   exec_prefix="$acl_save_exec_prefix"
15593   prefix="$acl_save_prefix"
15594
15595                     if test "X$x" = "X-I$additional_includedir"; then
15596                       haveit=yes
15597                       break
15598                     fi
15599                   done
15600                   if test -z "$haveit"; then
15601                     if test -d "$additional_includedir"; then
15602                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15603                     fi
15604                   fi
15605                 fi
15606               fi
15607             fi
15608                         if test -n "$found_la"; then
15609                                                         save_libdir="$libdir"
15610               case "$found_la" in
15611                 */* | *\\*) . "$found_la" ;;
15612                 *) . "./$found_la" ;;
15613               esac
15614               libdir="$save_libdir"
15615                             for dep in $dependency_libs; do
15616                 case "$dep" in
15617                   -L*)
15618                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15619                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15620                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15621                       haveit=
15622                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15623                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15624                         if test -n "$GCC"; then
15625                           case $host_os in
15626                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15627                           esac
15628                         fi
15629                       fi
15630                       if test -z "$haveit"; then
15631                         haveit=
15632                         for x in $LDFLAGS $LIBICONV; do
15633
15634   acl_save_prefix="$prefix"
15635   prefix="$acl_final_prefix"
15636   acl_save_exec_prefix="$exec_prefix"
15637   exec_prefix="$acl_final_exec_prefix"
15638   eval x=\"$x\"
15639   exec_prefix="$acl_save_exec_prefix"
15640   prefix="$acl_save_prefix"
15641
15642                           if test "X$x" = "X-L$additional_libdir"; then
15643                             haveit=yes
15644                             break
15645                           fi
15646                         done
15647                         if test -z "$haveit"; then
15648                           if test -d "$additional_libdir"; then
15649                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15650                           fi
15651                         fi
15652                         haveit=
15653                         for x in $LDFLAGS $LTLIBICONV; do
15654
15655   acl_save_prefix="$prefix"
15656   prefix="$acl_final_prefix"
15657   acl_save_exec_prefix="$exec_prefix"
15658   exec_prefix="$acl_final_exec_prefix"
15659   eval x=\"$x\"
15660   exec_prefix="$acl_save_exec_prefix"
15661   prefix="$acl_save_prefix"
15662
15663                           if test "X$x" = "X-L$additional_libdir"; then
15664                             haveit=yes
15665                             break
15666                           fi
15667                         done
15668                         if test -z "$haveit"; then
15669                           if test -d "$additional_libdir"; then
15670                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15671                           fi
15672                         fi
15673                       fi
15674                     fi
15675                     ;;
15676                   -R*)
15677                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15678                     if test "$enable_rpath" != no; then
15679                                                                   haveit=
15680                       for x in $rpathdirs; do
15681                         if test "X$x" = "X$dir"; then
15682                           haveit=yes
15683                           break
15684                         fi
15685                       done
15686                       if test -z "$haveit"; then
15687                         rpathdirs="$rpathdirs $dir"
15688                       fi
15689                                                                   haveit=
15690                       for x in $ltrpathdirs; do
15691                         if test "X$x" = "X$dir"; then
15692                           haveit=yes
15693                           break
15694                         fi
15695                       done
15696                       if test -z "$haveit"; then
15697                         ltrpathdirs="$ltrpathdirs $dir"
15698                       fi
15699                     fi
15700                     ;;
15701                   -l*)
15702                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15703                     ;;
15704                   *.la)
15705                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15706                     ;;
15707                   *)
15708                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15709                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15710                     ;;
15711                 esac
15712               done
15713             fi
15714           else
15715                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15716             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15717           fi
15718         fi
15719       fi
15720     done
15721   done
15722   if test "X$rpathdirs" != "X"; then
15723     if test -n "$acl_hardcode_libdir_separator"; then
15724                         alldirs=
15725       for found_dir in $rpathdirs; do
15726         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15727       done
15728             acl_save_libdir="$libdir"
15729       libdir="$alldirs"
15730       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15731       libdir="$acl_save_libdir"
15732       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15733     else
15734             for found_dir in $rpathdirs; do
15735         acl_save_libdir="$libdir"
15736         libdir="$found_dir"
15737         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15738         libdir="$acl_save_libdir"
15739         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15740       done
15741     fi
15742   fi
15743   if test "X$ltrpathdirs" != "X"; then
15744             for found_dir in $ltrpathdirs; do
15745       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15746     done
15747   fi
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15780 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
15781 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
15782 then :
15783   printf %s "(cached) " >&6
15784 else $as_nop
15785   gt_save_LIBS="$LIBS"
15786      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15787      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h.  */
15789 #include <CoreFoundation/CFPreferences.h>
15790 int
15791 main (void)
15792 {
15793 CFPreferencesCopyAppValue(NULL, NULL)
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 if ac_fn_c_try_link "$LINENO"
15799 then :
15800   gt_cv_func_CFPreferencesCopyAppValue=yes
15801 else $as_nop
15802   gt_cv_func_CFPreferencesCopyAppValue=no
15803 fi
15804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15805     conftest$ac_exeext conftest.$ac_ext
15806      LIBS="$gt_save_LIBS"
15807 fi
15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15809 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15810   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15811
15812 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15813
15814   fi
15815     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15816 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
15817 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
15818 then :
15819   printf %s "(cached) " >&6
15820 else $as_nop
15821   gt_save_LIBS="$LIBS"
15822      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15823      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h.  */
15825 #include <CoreFoundation/CFLocale.h>
15826 int
15827 main (void)
15828 {
15829 CFLocaleCopyCurrent();
15830   ;
15831   return 0;
15832 }
15833 _ACEOF
15834 if ac_fn_c_try_link "$LINENO"
15835 then :
15836   gt_cv_func_CFLocaleCopyCurrent=yes
15837 else $as_nop
15838   gt_cv_func_CFLocaleCopyCurrent=no
15839 fi
15840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15841     conftest$ac_exeext conftest.$ac_ext
15842      LIBS="$gt_save_LIBS"
15843 fi
15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15845 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15846   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15847
15848 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15849
15850   fi
15851   INTL_MACOSX_LIBS=
15852   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15853     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15854   fi
15855
15856
15857
15858
15859
15860
15861   LIBINTL=
15862   LTLIBINTL=
15863   POSUB=
15864
15865     case " $gt_needs " in
15866     *" need-formatstring-macros "*) gt_api_version=3 ;;
15867     *" need-ngettext "*) gt_api_version=2 ;;
15868     *) gt_api_version=1 ;;
15869   esac
15870   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15871   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15872
15873     if test "$USE_NLS" = "yes"; then
15874     gt_use_preinstalled_gnugettext=no
15875
15876
15877         if test $gt_api_version -ge 3; then
15878           gt_revision_test_code='
15879 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15880 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15881 #endif
15882 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15883 '
15884         else
15885           gt_revision_test_code=
15886         fi
15887         if test $gt_api_version -ge 2; then
15888           gt_expression_test_code=' + * ngettext ("", "", 0)'
15889         else
15890           gt_expression_test_code=
15891         fi
15892
15893         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15894 printf %s "checking for GNU gettext in libc... " >&6; }
15895 if eval test \${$gt_func_gnugettext_libc+y}
15896 then :
15897   printf %s "(cached) " >&6
15898 else $as_nop
15899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h.  */
15901
15902 #include <libintl.h>
15903 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15904 extern int _nl_msg_cat_cntr;
15905 extern int *_nl_domain_bindings;
15906 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
15907 #else
15908 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15909 #endif
15910 $gt_revision_test_code
15911
15912 int
15913 main (void)
15914 {
15915
15916 bindtextdomain ("", "");
15917 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15918
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 if ac_fn_c_try_link "$LINENO"
15924 then :
15925   eval "$gt_func_gnugettext_libc=yes"
15926 else $as_nop
15927   eval "$gt_func_gnugettext_libc=no"
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15930     conftest$ac_exeext conftest.$ac_ext
15931 fi
15932 eval ac_res=\$$gt_func_gnugettext_libc
15933                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15934 printf "%s\n" "$ac_res" >&6; }
15935
15936         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15937
15938
15939
15940
15941
15942           am_save_CPPFLAGS="$CPPFLAGS"
15943
15944   for element in $INCICONV; do
15945     haveit=
15946     for x in $CPPFLAGS; do
15947
15948   acl_save_prefix="$prefix"
15949   prefix="$acl_final_prefix"
15950   acl_save_exec_prefix="$exec_prefix"
15951   exec_prefix="$acl_final_exec_prefix"
15952   eval x=\"$x\"
15953   exec_prefix="$acl_save_exec_prefix"
15954   prefix="$acl_save_prefix"
15955
15956       if test "X$x" = "X$element"; then
15957         haveit=yes
15958         break
15959       fi
15960     done
15961     if test -z "$haveit"; then
15962       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15963     fi
15964   done
15965
15966
15967   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15968 printf %s "checking for iconv... " >&6; }
15969 if test ${am_cv_func_iconv+y}
15970 then :
15971   printf %s "(cached) " >&6
15972 else $as_nop
15973
15974     am_cv_func_iconv="no, consider installing GNU libiconv"
15975     am_cv_lib_iconv=no
15976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h.  */
15978
15979 #include <stdlib.h>
15980 #include <iconv.h>
15981
15982 int
15983 main (void)
15984 {
15985 iconv_t cd = iconv_open("","");
15986            iconv(cd,NULL,NULL,NULL,NULL);
15987            iconv_close(cd);
15988   ;
15989   return 0;
15990 }
15991 _ACEOF
15992 if ac_fn_c_try_link "$LINENO"
15993 then :
15994   am_cv_func_iconv=yes
15995 fi
15996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15997     conftest$ac_exeext conftest.$ac_ext
15998     if test "$am_cv_func_iconv" != yes; then
15999       am_save_LIBS="$LIBS"
16000       LIBS="$LIBS $LIBICONV"
16001       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h.  */
16003
16004 #include <stdlib.h>
16005 #include <iconv.h>
16006
16007 int
16008 main (void)
16009 {
16010 iconv_t cd = iconv_open("","");
16011              iconv(cd,NULL,NULL,NULL,NULL);
16012              iconv_close(cd);
16013   ;
16014   return 0;
16015 }
16016 _ACEOF
16017 if ac_fn_c_try_link "$LINENO"
16018 then :
16019   am_cv_lib_iconv=yes
16020         am_cv_func_iconv=yes
16021 fi
16022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16023     conftest$ac_exeext conftest.$ac_ext
16024       LIBS="$am_save_LIBS"
16025     fi
16026
16027 fi
16028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16029 printf "%s\n" "$am_cv_func_iconv" >&6; }
16030   if test "$am_cv_func_iconv" = yes; then
16031     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16032 printf %s "checking for working iconv... " >&6; }
16033 if test ${am_cv_func_iconv_works+y}
16034 then :
16035   printf %s "(cached) " >&6
16036 else $as_nop
16037
16038                   am_save_LIBS="$LIBS"
16039       if test $am_cv_lib_iconv = yes; then
16040         LIBS="$LIBS $LIBICONV"
16041       fi
16042       am_cv_func_iconv_works=no
16043       for ac_iconv_const in '' 'const'; do
16044         if test "$cross_compiling" = yes
16045 then :
16046   case "$host_os" in
16047              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16048              *)            am_cv_func_iconv_works="guessing yes" ;;
16049            esac
16050 else $as_nop
16051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h.  */
16053
16054 #include <iconv.h>
16055 #include <string.h>
16056
16057 #ifndef ICONV_CONST
16058 # define ICONV_CONST $ac_iconv_const
16059 #endif
16060
16061 int
16062 main (void)
16063 {
16064 int result = 0;
16065   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16066      returns.  */
16067   {
16068     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16069     if (cd_utf8_to_88591 != (iconv_t)(-1))
16070       {
16071         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16072         char buf[10];
16073         ICONV_CONST char *inptr = input;
16074         size_t inbytesleft = strlen (input);
16075         char *outptr = buf;
16076         size_t outbytesleft = sizeof (buf);
16077         size_t res = iconv (cd_utf8_to_88591,
16078                             &inptr, &inbytesleft,
16079                             &outptr, &outbytesleft);
16080         if (res == 0)
16081           result |= 1;
16082         iconv_close (cd_utf8_to_88591);
16083       }
16084   }
16085   /* Test against Solaris 10 bug: Failures are not distinguishable from
16086      successful returns.  */
16087   {
16088     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16089     if (cd_ascii_to_88591 != (iconv_t)(-1))
16090       {
16091         static ICONV_CONST char input[] = "\263";
16092         char buf[10];
16093         ICONV_CONST char *inptr = input;
16094         size_t inbytesleft = strlen (input);
16095         char *outptr = buf;
16096         size_t outbytesleft = sizeof (buf);
16097         size_t res = iconv (cd_ascii_to_88591,
16098                             &inptr, &inbytesleft,
16099                             &outptr, &outbytesleft);
16100         if (res == 0)
16101           result |= 2;
16102         iconv_close (cd_ascii_to_88591);
16103       }
16104   }
16105   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
16106   {
16107     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16108     if (cd_88591_to_utf8 != (iconv_t)(-1))
16109       {
16110         static ICONV_CONST char input[] = "\304";
16111         static char buf[2] = { (char)0xDE, (char)0xAD };
16112         ICONV_CONST char *inptr = input;
16113         size_t inbytesleft = 1;
16114         char *outptr = buf;
16115         size_t outbytesleft = 1;
16116         size_t res = iconv (cd_88591_to_utf8,
16117                             &inptr, &inbytesleft,
16118                             &outptr, &outbytesleft);
16119         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16120           result |= 4;
16121         iconv_close (cd_88591_to_utf8);
16122       }
16123   }
16124 #if 0 /* This bug could be worked around by the caller.  */
16125   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16126   {
16127     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16128     if (cd_88591_to_utf8 != (iconv_t)(-1))
16129       {
16130         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16131         char buf[50];
16132         ICONV_CONST char *inptr = input;
16133         size_t inbytesleft = strlen (input);
16134         char *outptr = buf;
16135         size_t outbytesleft = sizeof (buf);
16136         size_t res = iconv (cd_88591_to_utf8,
16137                             &inptr, &inbytesleft,
16138                             &outptr, &outbytesleft);
16139         if ((int)res > 0)
16140           result |= 8;
16141         iconv_close (cd_88591_to_utf8);
16142       }
16143   }
16144 #endif
16145   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16146      provided.  */
16147   if (/* Try standardized names.  */
16148       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16149       /* Try IRIX, OSF/1 names.  */
16150       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16151       /* Try AIX names.  */
16152       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16153       /* Try HP-UX names.  */
16154       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16155     result |= 16;
16156   return result;
16157
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 if ac_fn_c_try_run "$LINENO"
16163 then :
16164   am_cv_func_iconv_works=yes
16165 fi
16166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16167   conftest.$ac_objext conftest.beam conftest.$ac_ext
16168 fi
16169
16170         test "$am_cv_func_iconv_works" = no || break
16171       done
16172       LIBS="$am_save_LIBS"
16173
16174 fi
16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16176 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
16177     case "$am_cv_func_iconv_works" in
16178       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16179       *)   am_func_iconv=yes ;;
16180     esac
16181   else
16182     am_func_iconv=no am_cv_lib_iconv=no
16183   fi
16184   if test "$am_func_iconv" = yes; then
16185
16186 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
16187
16188   fi
16189   if test "$am_cv_lib_iconv" = yes; then
16190     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16191 printf %s "checking how to link with libiconv... " >&6; }
16192     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16193 printf "%s\n" "$LIBICONV" >&6; }
16194   else
16195             CPPFLAGS="$am_save_CPPFLAGS"
16196     LIBICONV=
16197     LTLIBICONV=
16198   fi
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210     use_additional=yes
16211
16212   acl_save_prefix="$prefix"
16213   prefix="$acl_final_prefix"
16214   acl_save_exec_prefix="$exec_prefix"
16215   exec_prefix="$acl_final_exec_prefix"
16216
16217     eval additional_includedir=\"$includedir\"
16218     eval additional_libdir=\"$libdir\"
16219
16220   exec_prefix="$acl_save_exec_prefix"
16221   prefix="$acl_save_prefix"
16222
16223
16224 # Check whether --with-libintl-prefix was given.
16225 if test ${with_libintl_prefix+y}
16226 then :
16227   withval=$with_libintl_prefix;
16228     if test "X$withval" = "Xno"; then
16229       use_additional=no
16230     else
16231       if test "X$withval" = "X"; then
16232
16233   acl_save_prefix="$prefix"
16234   prefix="$acl_final_prefix"
16235   acl_save_exec_prefix="$exec_prefix"
16236   exec_prefix="$acl_final_exec_prefix"
16237
16238           eval additional_includedir=\"$includedir\"
16239           eval additional_libdir=\"$libdir\"
16240
16241   exec_prefix="$acl_save_exec_prefix"
16242   prefix="$acl_save_prefix"
16243
16244       else
16245         additional_includedir="$withval/include"
16246         additional_libdir="$withval/$acl_libdirstem"
16247         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16248            && ! test -d "$withval/$acl_libdirstem"; then
16249           additional_libdir="$withval/$acl_libdirstem2"
16250         fi
16251       fi
16252     fi
16253
16254 fi
16255
16256       LIBINTL=
16257   LTLIBINTL=
16258   INCINTL=
16259   LIBINTL_PREFIX=
16260       HAVE_LIBINTL=
16261   rpathdirs=
16262   ltrpathdirs=
16263   names_already_handled=
16264   names_next_round='intl '
16265   while test -n "$names_next_round"; do
16266     names_this_round="$names_next_round"
16267     names_next_round=
16268     for name in $names_this_round; do
16269       already_handled=
16270       for n in $names_already_handled; do
16271         if test "$n" = "$name"; then
16272           already_handled=yes
16273           break
16274         fi
16275       done
16276       if test -z "$already_handled"; then
16277         names_already_handled="$names_already_handled $name"
16278                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16279         eval value=\"\$HAVE_LIB$uppername\"
16280         if test -n "$value"; then
16281           if test "$value" = yes; then
16282             eval value=\"\$LIB$uppername\"
16283             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16284             eval value=\"\$LTLIB$uppername\"
16285             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16286           else
16287                                     :
16288           fi
16289         else
16290                               found_dir=
16291           found_la=
16292           found_so=
16293           found_a=
16294           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16295           if test -n "$acl_shlibext"; then
16296             shrext=".$acl_shlibext"             # typically: shrext=.so
16297           else
16298             shrext=
16299           fi
16300           if test $use_additional = yes; then
16301             dir="$additional_libdir"
16302                                     if test -n "$acl_shlibext"; then
16303               if test -f "$dir/$libname$shrext"; then
16304                 found_dir="$dir"
16305                 found_so="$dir/$libname$shrext"
16306               else
16307                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16308                   ver=`(cd "$dir" && \
16309                         for f in "$libname$shrext".*; do echo "$f"; done \
16310                         | sed -e "s,^$libname$shrext\\\\.,," \
16311                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16312                         | sed 1q ) 2>/dev/null`
16313                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16314                     found_dir="$dir"
16315                     found_so="$dir/$libname$shrext.$ver"
16316                   fi
16317                 else
16318                   eval library_names=\"$acl_library_names_spec\"
16319                   for f in $library_names; do
16320                     if test -f "$dir/$f"; then
16321                       found_dir="$dir"
16322                       found_so="$dir/$f"
16323                       break
16324                     fi
16325                   done
16326                 fi
16327               fi
16328             fi
16329                         if test "X$found_dir" = "X"; then
16330               if test -f "$dir/$libname.$acl_libext"; then
16331                 found_dir="$dir"
16332                 found_a="$dir/$libname.$acl_libext"
16333               fi
16334             fi
16335             if test "X$found_dir" != "X"; then
16336               if test -f "$dir/$libname.la"; then
16337                 found_la="$dir/$libname.la"
16338               fi
16339             fi
16340           fi
16341           if test "X$found_dir" = "X"; then
16342             for x in $LDFLAGS $LTLIBINTL; do
16343
16344   acl_save_prefix="$prefix"
16345   prefix="$acl_final_prefix"
16346   acl_save_exec_prefix="$exec_prefix"
16347   exec_prefix="$acl_final_exec_prefix"
16348   eval x=\"$x\"
16349   exec_prefix="$acl_save_exec_prefix"
16350   prefix="$acl_save_prefix"
16351
16352               case "$x" in
16353                 -L*)
16354                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16355                                     if test -n "$acl_shlibext"; then
16356                     if test -f "$dir/$libname$shrext"; then
16357                       found_dir="$dir"
16358                       found_so="$dir/$libname$shrext"
16359                     else
16360                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16361                         ver=`(cd "$dir" && \
16362                               for f in "$libname$shrext".*; do echo "$f"; done \
16363                               | sed -e "s,^$libname$shrext\\\\.,," \
16364                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16365                               | sed 1q ) 2>/dev/null`
16366                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16367                           found_dir="$dir"
16368                           found_so="$dir/$libname$shrext.$ver"
16369                         fi
16370                       else
16371                         eval library_names=\"$acl_library_names_spec\"
16372                         for f in $library_names; do
16373                           if test -f "$dir/$f"; then
16374                             found_dir="$dir"
16375                             found_so="$dir/$f"
16376                             break
16377                           fi
16378                         done
16379                       fi
16380                     fi
16381                   fi
16382                                     if test "X$found_dir" = "X"; then
16383                     if test -f "$dir/$libname.$acl_libext"; then
16384                       found_dir="$dir"
16385                       found_a="$dir/$libname.$acl_libext"
16386                     fi
16387                   fi
16388                   if test "X$found_dir" != "X"; then
16389                     if test -f "$dir/$libname.la"; then
16390                       found_la="$dir/$libname.la"
16391                     fi
16392                   fi
16393                   ;;
16394               esac
16395               if test "X$found_dir" != "X"; then
16396                 break
16397               fi
16398             done
16399           fi
16400           if test "X$found_dir" != "X"; then
16401                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16402             if test "X$found_so" != "X"; then
16403                                                         if test "$enable_rpath" = no \
16404                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16405                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16406                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16407               else
16408                                                                                 haveit=
16409                 for x in $ltrpathdirs; do
16410                   if test "X$x" = "X$found_dir"; then
16411                     haveit=yes
16412                     break
16413                   fi
16414                 done
16415                 if test -z "$haveit"; then
16416                   ltrpathdirs="$ltrpathdirs $found_dir"
16417                 fi
16418                                 if test "$acl_hardcode_direct" = yes; then
16419                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16420                 else
16421                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16422                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16423                                                             haveit=
16424                     for x in $rpathdirs; do
16425                       if test "X$x" = "X$found_dir"; then
16426                         haveit=yes
16427                         break
16428                       fi
16429                     done
16430                     if test -z "$haveit"; then
16431                       rpathdirs="$rpathdirs $found_dir"
16432                     fi
16433                   else
16434                                                                                 haveit=
16435                     for x in $LDFLAGS $LIBINTL; do
16436
16437   acl_save_prefix="$prefix"
16438   prefix="$acl_final_prefix"
16439   acl_save_exec_prefix="$exec_prefix"
16440   exec_prefix="$acl_final_exec_prefix"
16441   eval x=\"$x\"
16442   exec_prefix="$acl_save_exec_prefix"
16443   prefix="$acl_save_prefix"
16444
16445                       if test "X$x" = "X-L$found_dir"; then
16446                         haveit=yes
16447                         break
16448                       fi
16449                     done
16450                     if test -z "$haveit"; then
16451                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16452                     fi
16453                     if test "$acl_hardcode_minus_L" != no; then
16454                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16455                     else
16456                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16457                     fi
16458                   fi
16459                 fi
16460               fi
16461             else
16462               if test "X$found_a" != "X"; then
16463                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16464               else
16465                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16466               fi
16467             fi
16468                         additional_includedir=
16469             case "$found_dir" in
16470               */$acl_libdirstem | */$acl_libdirstem/)
16471                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16472                 if test "$name" = 'intl'; then
16473                   LIBINTL_PREFIX="$basedir"
16474                 fi
16475                 additional_includedir="$basedir/include"
16476                 ;;
16477               */$acl_libdirstem2 | */$acl_libdirstem2/)
16478                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16479                 if test "$name" = 'intl'; then
16480                   LIBINTL_PREFIX="$basedir"
16481                 fi
16482                 additional_includedir="$basedir/include"
16483                 ;;
16484             esac
16485             if test "X$additional_includedir" != "X"; then
16486                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16487                 haveit=
16488                 if test "X$additional_includedir" = "X/usr/local/include"; then
16489                   if test -n "$GCC"; then
16490                     case $host_os in
16491                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16492                     esac
16493                   fi
16494                 fi
16495                 if test -z "$haveit"; then
16496                   for x in $CPPFLAGS $INCINTL; do
16497
16498   acl_save_prefix="$prefix"
16499   prefix="$acl_final_prefix"
16500   acl_save_exec_prefix="$exec_prefix"
16501   exec_prefix="$acl_final_exec_prefix"
16502   eval x=\"$x\"
16503   exec_prefix="$acl_save_exec_prefix"
16504   prefix="$acl_save_prefix"
16505
16506                     if test "X$x" = "X-I$additional_includedir"; then
16507                       haveit=yes
16508                       break
16509                     fi
16510                   done
16511                   if test -z "$haveit"; then
16512                     if test -d "$additional_includedir"; then
16513                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16514                     fi
16515                   fi
16516                 fi
16517               fi
16518             fi
16519                         if test -n "$found_la"; then
16520                                                         save_libdir="$libdir"
16521               case "$found_la" in
16522                 */* | *\\*) . "$found_la" ;;
16523                 *) . "./$found_la" ;;
16524               esac
16525               libdir="$save_libdir"
16526                             for dep in $dependency_libs; do
16527                 case "$dep" in
16528                   -L*)
16529                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16530                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16531                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16532                       haveit=
16533                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16534                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16535                         if test -n "$GCC"; then
16536                           case $host_os in
16537                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16538                           esac
16539                         fi
16540                       fi
16541                       if test -z "$haveit"; then
16542                         haveit=
16543                         for x in $LDFLAGS $LIBINTL; do
16544
16545   acl_save_prefix="$prefix"
16546   prefix="$acl_final_prefix"
16547   acl_save_exec_prefix="$exec_prefix"
16548   exec_prefix="$acl_final_exec_prefix"
16549   eval x=\"$x\"
16550   exec_prefix="$acl_save_exec_prefix"
16551   prefix="$acl_save_prefix"
16552
16553                           if test "X$x" = "X-L$additional_libdir"; then
16554                             haveit=yes
16555                             break
16556                           fi
16557                         done
16558                         if test -z "$haveit"; then
16559                           if test -d "$additional_libdir"; then
16560                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16561                           fi
16562                         fi
16563                         haveit=
16564                         for x in $LDFLAGS $LTLIBINTL; do
16565
16566   acl_save_prefix="$prefix"
16567   prefix="$acl_final_prefix"
16568   acl_save_exec_prefix="$exec_prefix"
16569   exec_prefix="$acl_final_exec_prefix"
16570   eval x=\"$x\"
16571   exec_prefix="$acl_save_exec_prefix"
16572   prefix="$acl_save_prefix"
16573
16574                           if test "X$x" = "X-L$additional_libdir"; then
16575                             haveit=yes
16576                             break
16577                           fi
16578                         done
16579                         if test -z "$haveit"; then
16580                           if test -d "$additional_libdir"; then
16581                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16582                           fi
16583                         fi
16584                       fi
16585                     fi
16586                     ;;
16587                   -R*)
16588                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16589                     if test "$enable_rpath" != no; then
16590                                                                   haveit=
16591                       for x in $rpathdirs; do
16592                         if test "X$x" = "X$dir"; then
16593                           haveit=yes
16594                           break
16595                         fi
16596                       done
16597                       if test -z "$haveit"; then
16598                         rpathdirs="$rpathdirs $dir"
16599                       fi
16600                                                                   haveit=
16601                       for x in $ltrpathdirs; do
16602                         if test "X$x" = "X$dir"; then
16603                           haveit=yes
16604                           break
16605                         fi
16606                       done
16607                       if test -z "$haveit"; then
16608                         ltrpathdirs="$ltrpathdirs $dir"
16609                       fi
16610                     fi
16611                     ;;
16612                   -l*)
16613                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16614                     ;;
16615                   *.la)
16616                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16617                     ;;
16618                   *)
16619                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16620                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16621                     ;;
16622                 esac
16623               done
16624             fi
16625           else
16626                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16627             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16628           fi
16629         fi
16630       fi
16631     done
16632   done
16633   if test "X$rpathdirs" != "X"; then
16634     if test -n "$acl_hardcode_libdir_separator"; then
16635                         alldirs=
16636       for found_dir in $rpathdirs; do
16637         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16638       done
16639             acl_save_libdir="$libdir"
16640       libdir="$alldirs"
16641       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16642       libdir="$acl_save_libdir"
16643       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16644     else
16645             for found_dir in $rpathdirs; do
16646         acl_save_libdir="$libdir"
16647         libdir="$found_dir"
16648         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16649         libdir="$acl_save_libdir"
16650         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16651       done
16652     fi
16653   fi
16654   if test "X$ltrpathdirs" != "X"; then
16655             for found_dir in $ltrpathdirs; do
16656       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16657     done
16658   fi
16659
16660
16661
16662
16663
16664
16665           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16666 printf %s "checking for GNU gettext in libintl... " >&6; }
16667 if eval test \${$gt_func_gnugettext_libintl+y}
16668 then :
16669   printf %s "(cached) " >&6
16670 else $as_nop
16671   gt_save_CPPFLAGS="$CPPFLAGS"
16672             CPPFLAGS="$CPPFLAGS $INCINTL"
16673             gt_save_LIBS="$LIBS"
16674             LIBS="$LIBS $LIBINTL"
16675                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h.  */
16677
16678 #include <libintl.h>
16679 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16680 extern int _nl_msg_cat_cntr;
16681 extern
16682 #ifdef __cplusplus
16683 "C"
16684 #endif
16685 const char *_nl_expand_alias (const char *);
16686 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16687 #else
16688 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16689 #endif
16690 $gt_revision_test_code
16691
16692 int
16693 main (void)
16694 {
16695
16696 bindtextdomain ("", "");
16697 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16698
16699   ;
16700   return 0;
16701 }
16702 _ACEOF
16703 if ac_fn_c_try_link "$LINENO"
16704 then :
16705   eval "$gt_func_gnugettext_libintl=yes"
16706 else $as_nop
16707   eval "$gt_func_gnugettext_libintl=no"
16708 fi
16709 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16710     conftest$ac_exeext conftest.$ac_ext
16711                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16712               LIBS="$LIBS $LIBICONV"
16713               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h.  */
16715
16716 #include <libintl.h>
16717 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16718 extern int _nl_msg_cat_cntr;
16719 extern
16720 #ifdef __cplusplus
16721 "C"
16722 #endif
16723 const char *_nl_expand_alias (const char *);
16724 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16725 #else
16726 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16727 #endif
16728 $gt_revision_test_code
16729
16730 int
16731 main (void)
16732 {
16733
16734 bindtextdomain ("", "");
16735 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16736
16737   ;
16738   return 0;
16739 }
16740 _ACEOF
16741 if ac_fn_c_try_link "$LINENO"
16742 then :
16743   LIBINTL="$LIBINTL $LIBICONV"
16744                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16745                  eval "$gt_func_gnugettext_libintl=yes"
16746
16747 fi
16748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16749     conftest$ac_exeext conftest.$ac_ext
16750             fi
16751             CPPFLAGS="$gt_save_CPPFLAGS"
16752             LIBS="$gt_save_LIBS"
16753 fi
16754 eval ac_res=\$$gt_func_gnugettext_libintl
16755                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16756 printf "%s\n" "$ac_res" >&6; }
16757         fi
16758
16759                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16760            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16761                 && test "$PACKAGE" != gettext-runtime \
16762                 && test "$PACKAGE" != gettext-tools; }; then
16763           gt_use_preinstalled_gnugettext=yes
16764         else
16765                     LIBINTL=
16766           LTLIBINTL=
16767           INCINTL=
16768         fi
16769
16770
16771
16772     if test -n "$INTL_MACOSX_LIBS"; then
16773       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16774          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16775                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16776         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16777       fi
16778     fi
16779
16780     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16781        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16782
16783 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
16784
16785     else
16786       USE_NLS=no
16787     fi
16788   fi
16789
16790   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16791 printf %s "checking whether to use NLS... " >&6; }
16792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16793 printf "%s\n" "$USE_NLS" >&6; }
16794   if test "$USE_NLS" = "yes"; then
16795     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16796 printf %s "checking where the gettext function comes from... " >&6; }
16797     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16798       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16799         gt_source="external libintl"
16800       else
16801         gt_source="libc"
16802       fi
16803     else
16804       gt_source="included intl directory"
16805     fi
16806     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16807 printf "%s\n" "$gt_source" >&6; }
16808   fi
16809
16810   if test "$USE_NLS" = "yes"; then
16811
16812     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16813       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16814         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16815 printf %s "checking how to link with libintl... " >&6; }
16816         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16817 printf "%s\n" "$LIBINTL" >&6; }
16818
16819   for element in $INCINTL; do
16820     haveit=
16821     for x in $CPPFLAGS; do
16822
16823   acl_save_prefix="$prefix"
16824   prefix="$acl_final_prefix"
16825   acl_save_exec_prefix="$exec_prefix"
16826   exec_prefix="$acl_final_exec_prefix"
16827   eval x=\"$x\"
16828   exec_prefix="$acl_save_exec_prefix"
16829   prefix="$acl_save_prefix"
16830
16831       if test "X$x" = "X$element"; then
16832         haveit=yes
16833         break
16834       fi
16835     done
16836     if test -z "$haveit"; then
16837       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16838     fi
16839   done
16840
16841       fi
16842
16843
16844 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16845
16846
16847 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16848
16849     fi
16850
16851         POSUB=po
16852   fi
16853
16854
16855
16856     INTLLIBS="$LIBINTL"
16857
16858
16859
16860
16861
16862
16863
16864
16865 if test "$os_win32" = "yes"; then
16866   # Extract the first word of "lib.exe", so it can be a program name with args.
16867 set dummy lib.exe; ac_word=$2
16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16869 printf %s "checking for $ac_word... " >&6; }
16870 if test ${ac_cv_prog_ms_librarian+y}
16871 then :
16872   printf %s "(cached) " >&6
16873 else $as_nop
16874   if test -n "$ms_librarian"; then
16875   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
16876 else
16877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878 for as_dir in $PATH
16879 do
16880   IFS=$as_save_IFS
16881   case $as_dir in #(((
16882     '') as_dir=./ ;;
16883     */) ;;
16884     *) as_dir=$as_dir/ ;;
16885   esac
16886     for ac_exec_ext in '' $ac_executable_extensions; do
16887   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16888     ac_cv_prog_ms_librarian="yes"
16889     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16890     break 2
16891   fi
16892 done
16893   done
16894 IFS=$as_save_IFS
16895
16896   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
16897 fi
16898 fi
16899 ms_librarian=$ac_cv_prog_ms_librarian
16900 if test -n "$ms_librarian"; then
16901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
16902 printf "%s\n" "$ms_librarian" >&6; }
16903 else
16904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905 printf "%s\n" "no" >&6; }
16906 fi
16907
16908
16909 fi
16910  if test x$ms_librarian = xyes; then
16911   MS_LIB_AVAILABLE_TRUE=
16912   MS_LIB_AVAILABLE_FALSE='#'
16913 else
16914   MS_LIB_AVAILABLE_TRUE='#'
16915   MS_LIB_AVAILABLE_FALSE=
16916 fi
16917
16918
16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16920 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16921 if test ${ac_cv_c_undeclared_builtin_options+y}
16922 then :
16923   printf %s "(cached) " >&6
16924 else $as_nop
16925   ac_save_CFLAGS=$CFLAGS
16926    ac_cv_c_undeclared_builtin_options='cannot detect'
16927    for ac_arg in '' -fno-builtin; do
16928      CFLAGS="$ac_save_CFLAGS $ac_arg"
16929      # This test program should *not* compile successfully.
16930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h.  */
16932
16933 int
16934 main (void)
16935 {
16936 (void) strchr;
16937   ;
16938   return 0;
16939 }
16940 _ACEOF
16941 if ac_fn_c_try_compile "$LINENO"
16942 then :
16943
16944 else $as_nop
16945   # This test program should compile successfully.
16946         # No library function is consistently available on
16947         # freestanding implementations, so test against a dummy
16948         # declaration.  Include always-available headers on the
16949         # off chance that they somehow elicit warnings.
16950         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h.  */
16952 #include <float.h>
16953 #include <limits.h>
16954 #include <stdarg.h>
16955 #include <stddef.h>
16956 extern void ac_decl (int, char *);
16957
16958 int
16959 main (void)
16960 {
16961 (void) ac_decl (0, (char *) 0);
16962   (void) ac_decl;
16963
16964   ;
16965   return 0;
16966 }
16967 _ACEOF
16968 if ac_fn_c_try_compile "$LINENO"
16969 then :
16970   if test x"$ac_arg" = x
16971 then :
16972   ac_cv_c_undeclared_builtin_options='none needed'
16973 else $as_nop
16974   ac_cv_c_undeclared_builtin_options=$ac_arg
16975 fi
16976           break
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16979 fi
16980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16981     done
16982     CFLAGS=$ac_save_CFLAGS
16983
16984 fi
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16986 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16987   case $ac_cv_c_undeclared_builtin_options in #(
16988   'cannot detect') :
16989     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16990 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16991 as_fn_error $? "cannot make $CC report undeclared builtins
16992 See \`config.log' for more details" "$LINENO" 5; } ;; #(
16993   'none needed') :
16994     ac_c_undeclared_builtin_options='' ;; #(
16995   *) :
16996     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16997 esac
16998
16999 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
17000 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
17001 then :
17002   SUNCC="yes"
17003 else $as_nop
17004   SUNCC="no"
17005 fi
17006 WARN_CFLAGS=""
17007 WARNING_CPP_DIRECTIVE="no"
17008 if test "x$GCC" = "xyes"; then
17009         WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
17010         -Wmissing-prototypes -Wmissing-declarations \
17011         -Wnested-externs -fno-strict-aliasing"
17012         WARNING_CPP_DIRECTIVE="yes"
17013 elif test "x$SUNCC" = "xyes"; then
17014         WARN_CFLAGS="-v -fd"
17015         WARNING_CPP_DIRECTIVE="yes"
17016 fi
17017 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
17018
17019 printf "%s\n" "#define HAVE_WARNING_CPP_DIRECTIVE 1" >>confdefs.h
17020
17021 fi
17022
17023
17024
17025
17026 # Put a plausible default for CC_FOR_BUILD in Makefile.
17027 if test -z "$CC_FOR_BUILD"; then
17028   if test "x$cross_compiling" = "xno"; then
17029     CC_FOR_BUILD='$(CC)'
17030   else
17031     CC_FOR_BUILD=gcc
17032   fi
17033 fi
17034
17035 # Also set EXEEXT_FOR_BUILD.
17036 if test "x$cross_compiling" = "xno"; then
17037   EXEEXT_FOR_BUILD='$(EXEEXT)'
17038 else
17039   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
17040 printf %s "checking for build system executable suffix... " >&6; }
17041 if test ${bfd_cv_build_exeext+y}
17042 then :
17043   printf %s "(cached) " >&6
17044 else $as_nop
17045   rm -f conftest*
17046      echo 'int main () { return 0; }' > conftest.c
17047      bfd_cv_build_exeext=
17048      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
17049      for file in conftest.*; do
17050        case $file in
17051        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
17052        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
17053        esac
17054      done
17055      rm -f conftest*
17056      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
17057 fi
17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
17059 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
17060   EXEEXT_FOR_BUILD=""
17061   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
17062 fi
17063
17064
17065  if test $cross_compiling = yes; then
17066   CROSS_COMPILING_TRUE=
17067   CROSS_COMPILING_FALSE='#'
17068 else
17069   CROSS_COMPILING_TRUE='#'
17070   CROSS_COMPILING_FALSE=
17071 fi
17072
17073  if test "$enable_shared" = "yes"; then
17074   ENABLE_SHARED_TRUE=
17075   ENABLE_SHARED_FALSE='#'
17076 else
17077   ENABLE_SHARED_TRUE='#'
17078   ENABLE_SHARED_FALSE=
17079 fi
17080
17081
17082
17083
17084 # Check whether --with-arch was given.
17085 if test ${with_arch+y}
17086 then :
17087   withval=$with_arch; arch="$withval"
17088 else $as_nop
17089   arch=auto
17090 fi
17091
17092
17093 if test "x$arch" != xauto; then
17094
17095 printf "%s\n" "#define FC_ARCHITECTURE \"$arch\"" >>confdefs.h
17096
17097 fi
17098
17099
17100
17101 # Checks for header files.
17102 ac_header_dirent=no
17103 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17104   as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17106 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
17107 if eval test \${$as_ac_Header+y}
17108 then :
17109   printf %s "(cached) " >&6
17110 else $as_nop
17111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h.  */
17113 #include <sys/types.h>
17114 #include <$ac_hdr>
17115
17116 int
17117 main (void)
17118 {
17119 if ((DIR *) 0)
17120 return 0;
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 if ac_fn_c_try_compile "$LINENO"
17126 then :
17127   eval "$as_ac_Header=yes"
17128 else $as_nop
17129   eval "$as_ac_Header=no"
17130 fi
17131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17132 fi
17133 eval ac_res=\$$as_ac_Header
17134                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17135 printf "%s\n" "$ac_res" >&6; }
17136 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17137 then :
17138   cat >>confdefs.h <<_ACEOF
17139 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
17140 _ACEOF
17141
17142 ac_header_dirent=$ac_hdr; break
17143 fi
17144
17145 done
17146 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17147 if test $ac_header_dirent = dirent.h; then
17148   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17149 printf %s "checking for library containing opendir... " >&6; }
17150 if test ${ac_cv_search_opendir+y}
17151 then :
17152   printf %s "(cached) " >&6
17153 else $as_nop
17154   ac_func_search_save_LIBS=$LIBS
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h.  */
17157
17158 /* Override any GCC internal prototype to avoid an error.
17159    Use char because int might match the return type of a GCC
17160    builtin and then its argument prototype would still apply.  */
17161 char opendir ();
17162 int
17163 main (void)
17164 {
17165 return opendir ();
17166   ;
17167   return 0;
17168 }
17169 _ACEOF
17170 for ac_lib in '' dir
17171 do
17172   if test -z "$ac_lib"; then
17173     ac_res="none required"
17174   else
17175     ac_res=-l$ac_lib
17176     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17177   fi
17178   if ac_fn_c_try_link "$LINENO"
17179 then :
17180   ac_cv_search_opendir=$ac_res
17181 fi
17182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17183     conftest$ac_exeext
17184   if test ${ac_cv_search_opendir+y}
17185 then :
17186   break
17187 fi
17188 done
17189 if test ${ac_cv_search_opendir+y}
17190 then :
17191
17192 else $as_nop
17193   ac_cv_search_opendir=no
17194 fi
17195 rm conftest.$ac_ext
17196 LIBS=$ac_func_search_save_LIBS
17197 fi
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17199 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17200 ac_res=$ac_cv_search_opendir
17201 if test "$ac_res" != no
17202 then :
17203   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17204
17205 fi
17206
17207 else
17208   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17209 printf %s "checking for library containing opendir... " >&6; }
17210 if test ${ac_cv_search_opendir+y}
17211 then :
17212   printf %s "(cached) " >&6
17213 else $as_nop
17214   ac_func_search_save_LIBS=$LIBS
17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216 /* end confdefs.h.  */
17217
17218 /* Override any GCC internal prototype to avoid an error.
17219    Use char because int might match the return type of a GCC
17220    builtin and then its argument prototype would still apply.  */
17221 char opendir ();
17222 int
17223 main (void)
17224 {
17225 return opendir ();
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 for ac_lib in '' x
17231 do
17232   if test -z "$ac_lib"; then
17233     ac_res="none required"
17234   else
17235     ac_res=-l$ac_lib
17236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17237   fi
17238   if ac_fn_c_try_link "$LINENO"
17239 then :
17240   ac_cv_search_opendir=$ac_res
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17243     conftest$ac_exeext
17244   if test ${ac_cv_search_opendir+y}
17245 then :
17246   break
17247 fi
17248 done
17249 if test ${ac_cv_search_opendir+y}
17250 then :
17251
17252 else $as_nop
17253   ac_cv_search_opendir=no
17254 fi
17255 rm conftest.$ac_ext
17256 LIBS=$ac_func_search_save_LIBS
17257 fi
17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17259 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17260 ac_res=$ac_cv_search_opendir
17261 if test "$ac_res" != no
17262 then :
17263   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17264
17265 fi
17266
17267 fi
17268
17269 # Autoupdate added the next two lines to ensure that your configure
17270 # script's behavior did not change.  They are probably safe to remove.
17271
17272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
17273 printf %s "checking for egrep... " >&6; }
17274 if test ${ac_cv_path_EGREP+y}
17275 then :
17276   printf %s "(cached) " >&6
17277 else $as_nop
17278   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17279    then ac_cv_path_EGREP="$GREP -E"
17280    else
17281      if test -z "$EGREP"; then
17282   ac_path_EGREP_found=false
17283   # Loop through the user's path and test for each of PROGNAME-LIST
17284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17286 do
17287   IFS=$as_save_IFS
17288   case $as_dir in #(((
17289     '') as_dir=./ ;;
17290     */) ;;
17291     *) as_dir=$as_dir/ ;;
17292   esac
17293     for ac_prog in egrep
17294    do
17295     for ac_exec_ext in '' $ac_executable_extensions; do
17296       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
17297       as_fn_executable_p "$ac_path_EGREP" || continue
17298 # Check for GNU ac_path_EGREP and select it if it is found.
17299   # Check for GNU $ac_path_EGREP
17300 case `"$ac_path_EGREP" --version 2>&1` in
17301 *GNU*)
17302   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17303 *)
17304   ac_count=0
17305   printf %s 0123456789 >"conftest.in"
17306   while :
17307   do
17308     cat "conftest.in" "conftest.in" >"conftest.tmp"
17309     mv "conftest.tmp" "conftest.in"
17310     cp "conftest.in" "conftest.nl"
17311     printf "%s\n" 'EGREP' >> "conftest.nl"
17312     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17313     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17314     as_fn_arith $ac_count + 1 && ac_count=$as_val
17315     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17316       # Best one so far, save it but keep looking for a better one
17317       ac_cv_path_EGREP="$ac_path_EGREP"
17318       ac_path_EGREP_max=$ac_count
17319     fi
17320     # 10*(2^10) chars as input seems more than enough
17321     test $ac_count -gt 10 && break
17322   done
17323   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17324 esac
17325
17326       $ac_path_EGREP_found && break 3
17327     done
17328   done
17329   done
17330 IFS=$as_save_IFS
17331   if test -z "$ac_cv_path_EGREP"; then
17332     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17333   fi
17334 else
17335   ac_cv_path_EGREP=$EGREP
17336 fi
17337
17338    fi
17339 fi
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
17341 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
17342  EGREP="$ac_cv_path_EGREP"
17343
17344
17345
17346 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
17347 if test "x$ac_cv_header_dirent_h" = xyes
17348 then :
17349   printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
17350
17351 fi
17352 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17353 if test "x$ac_cv_header_fcntl_h" = xyes
17354 then :
17355   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
17356
17357 fi
17358 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17359 if test "x$ac_cv_header_stdlib_h" = xyes
17360 then :
17361   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
17362
17363 fi
17364 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
17365 if test "x$ac_cv_header_string_h" = xyes
17366 then :
17367   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
17368
17369 fi
17370 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17371 if test "x$ac_cv_header_unistd_h" = xyes
17372 then :
17373   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17374
17375 fi
17376 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
17377 if test "x$ac_cv_header_sys_statvfs_h" = xyes
17378 then :
17379   printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
17380
17381 fi
17382 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
17383 if test "x$ac_cv_header_sys_vfs_h" = xyes
17384 then :
17385   printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
17386
17387 fi
17388 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
17389 if test "x$ac_cv_header_sys_statfs_h" = xyes
17390 then :
17391   printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
17392
17393 fi
17394 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
17395 if test "x$ac_cv_header_sys_param_h" = xyes
17396 then :
17397   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17398
17399 fi
17400 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
17401 if test "x$ac_cv_header_sys_mount_h" = xyes
17402 then :
17403   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
17404
17405 fi
17406
17407 # ------ AX CREATE STDINT H -------------------------------------
17408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
17409 printf %s "checking for stdint types... " >&6; }
17410 ac_stdint_h=`echo src/fcstdint.h`
17411 # try to shortcircuit - if the default include path of the compiler
17412 # can find a "stdint.h" header then we assume that all compilers can.
17413 if test ${ac_cv_header_stdint_t+y}
17414 then :
17415   printf %s "(cached) " >&6
17416 else $as_nop
17417
17418 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
17419 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
17420 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h.  */
17423 #include <stdint.h>
17424 int
17425 main (void)
17426 {
17427 int_least32_t v = 0;
17428   ;
17429   return 0;
17430 }
17431 _ACEOF
17432 if ac_fn_c_try_compile "$LINENO"
17433 then :
17434   ac_cv_stdint_result="(assuming C99 compatible system)"
17435  ac_cv_header_stdint_t="stdint.h";
17436 else $as_nop
17437   ac_cv_header_stdint_t=""
17438 fi
17439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17440 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
17441 CFLAGS="-std=c99"
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h.  */
17444 #include <stdint.h>
17445 int
17446 main (void)
17447 {
17448 int_least32_t v = 0;
17449   ;
17450   return 0;
17451 }
17452 _ACEOF
17453 if ac_fn_c_try_compile "$LINENO"
17454 then :
17455   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
17456 printf "%s\n" "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
17457 fi
17458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17459 fi
17460 CXXFLAGS="$old_CXXFLAGS"
17461 CPPFLAGS="$old_CPPFLAGS"
17462 CFLAGS="$old_CFLAGS"
17463 fi
17464
17465
17466 v="... $ac_cv_header_stdint_h"
17467 if test "$ac_stdint_h" = "stdint.h" ; then
17468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
17469 printf "%s\n" "(are you sure you want them in ./stdint.h?)" >&6; }
17470 elif test "$ac_stdint_h" = "inttypes.h" ; then
17471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
17472 printf "%s\n" "(are you sure you want them in ./inttypes.h?)" >&6; }
17473 elif test "_$ac_cv_header_stdint_t" = "_" ; then
17474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
17475 printf "%s\n" "(putting them into $ac_stdint_h)$v" >&6; }
17476 else
17477  ac_cv_header_stdint="$ac_cv_header_stdint_t"
17478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
17479 printf "%s\n" "$ac_cv_header_stdint (shortcircuit)" >&6; }
17480 fi
17481
17482 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
17483
17484
17485 inttype_headers=`echo  | sed -e 's/,/ /g'`
17486
17487 ac_cv_stdint_result="(no helpful system typedefs seen)"
17488
17489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17490 printf %s "checking for stdint uintptr_t... " >&6; }
17491 if test ${ac_cv_header_stdint_x+y}
17492 then :
17493   printf %s "(cached) " >&6
17494 else $as_nop
17495
17496  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
17497   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17498 printf "%s\n" "(..)" >&6; }
17499   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
17500   do
17501    unset ac_cv_type_uintptr_t
17502    unset ac_cv_type_uint64_t
17503    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
17504 "
17505 if test "x$ac_cv_type_uintptr_t" = xyes
17506 then :
17507   ac_cv_header_stdint_x=$i
17508 else $as_nop
17509   continue
17510 fi
17511
17512    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17513 "
17514 if test "x$ac_cv_type_uint64_t" = xyes
17515 then :
17516   and64="/uint64_t"
17517 else $as_nop
17518   and64=""
17519 fi
17520
17521    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
17522  break
17523   done
17524   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17525 printf %s "checking for stdint uintptr_t... " >&6; }
17526
17527 fi
17528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
17529 printf "%s\n" "$ac_cv_header_stdint_x" >&6; }
17530
17531
17532 if test "_$ac_cv_header_stdint_x" = "_" ; then
17533
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17535 printf %s "checking for stdint uint32_t... " >&6; }
17536 if test ${ac_cv_header_stdint_o+y}
17537 then :
17538   printf %s "(cached) " >&6
17539 else $as_nop
17540
17541  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
17542   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17543 printf "%s\n" "(..)" >&6; }
17544   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
17545   do
17546    unset ac_cv_type_uint32_t
17547    unset ac_cv_type_uint64_t
17548    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
17549 "
17550 if test "x$ac_cv_type_uint32_t" = xyes
17551 then :
17552   ac_cv_header_stdint_o=$i
17553 else $as_nop
17554   continue
17555 fi
17556
17557    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17558 "
17559 if test "x$ac_cv_type_uint64_t" = xyes
17560 then :
17561   and64="/uint64_t"
17562 else $as_nop
17563   and64=""
17564 fi
17565
17566    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
17567  break
17568    break;
17569   done
17570   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17571 printf %s "checking for stdint uint32_t... " >&6; }
17572
17573 fi
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
17575 printf "%s\n" "$ac_cv_header_stdint_o" >&6; }
17576
17577 fi
17578
17579 if test "_$ac_cv_header_stdint_x" = "_" ; then
17580 if test "_$ac_cv_header_stdint_o" = "_" ; then
17581
17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17583 printf %s "checking for stdint u_int32_t... " >&6; }
17584 if test ${ac_cv_header_stdint_u+y}
17585 then :
17586   printf %s "(cached) " >&6
17587 else $as_nop
17588
17589  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
17590   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17591 printf "%s\n" "(..)" >&6; }
17592   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
17593    unset ac_cv_type_u_int32_t
17594    unset ac_cv_type_u_int64_t
17595    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
17596 "
17597 if test "x$ac_cv_type_u_int32_t" = xyes
17598 then :
17599   ac_cv_header_stdint_u=$i
17600 else $as_nop
17601   continue
17602 fi
17603
17604    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
17605 "
17606 if test "x$ac_cv_type_u_int64_t" = xyes
17607 then :
17608   and64="/u_int64_t"
17609 else $as_nop
17610   and64=""
17611 fi
17612
17613    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
17614  break
17615    break;
17616   done
17617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17618 printf %s "checking for stdint u_int32_t... " >&6; }
17619
17620 fi
17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
17622 printf "%s\n" "$ac_cv_header_stdint_u" >&6; }
17623
17624 fi fi
17625
17626 if test "_$ac_cv_header_stdint_x" = "_" ; then
17627    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
17628 printf %s "checking for stdint datatype model... " >&6; }
17629    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17630 printf "%s\n" "(..)" >&6; }
17631
17632    # The cast to long int works around a bug in the HP C Compiler
17633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17635 # This bug is HP SR number 8606223364.
17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
17637 printf %s "checking size of char... " >&6; }
17638 if test ${ac_cv_sizeof_char+y}
17639 then :
17640   printf %s "(cached) " >&6
17641 else $as_nop
17642   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"
17643 then :
17644
17645 else $as_nop
17646   if test "$ac_cv_type_char" = yes; then
17647      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17648 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17649 as_fn_error 77 "cannot compute sizeof (char)
17650 See \`config.log' for more details" "$LINENO" 5; }
17651    else
17652      ac_cv_sizeof_char=0
17653    fi
17654 fi
17655
17656 fi
17657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
17658 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
17659
17660
17661
17662 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
17663
17664
17665    # The cast to long int works around a bug in the HP C Compiler
17666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17668 # This bug is HP SR number 8606223364.
17669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17670 printf %s "checking size of short... " >&6; }
17671 if test ${ac_cv_sizeof_short+y}
17672 then :
17673   printf %s "(cached) " >&6
17674 else $as_nop
17675   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
17676 then :
17677
17678 else $as_nop
17679   if test "$ac_cv_type_short" = yes; then
17680      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17681 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17682 as_fn_error 77 "cannot compute sizeof (short)
17683 See \`config.log' for more details" "$LINENO" 5; }
17684    else
17685      ac_cv_sizeof_short=0
17686    fi
17687 fi
17688
17689 fi
17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17691 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
17692
17693
17694
17695 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
17696
17697
17698    # The cast to long int works around a bug in the HP C Compiler
17699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17701 # This bug is HP SR number 8606223364.
17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17703 printf %s "checking size of int... " >&6; }
17704 if test ${ac_cv_sizeof_int+y}
17705 then :
17706   printf %s "(cached) " >&6
17707 else $as_nop
17708   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
17709 then :
17710
17711 else $as_nop
17712   if test "$ac_cv_type_int" = yes; then
17713      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17714 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17715 as_fn_error 77 "cannot compute sizeof (int)
17716 See \`config.log' for more details" "$LINENO" 5; }
17717    else
17718      ac_cv_sizeof_int=0
17719    fi
17720 fi
17721
17722 fi
17723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17724 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
17725
17726
17727
17728 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
17729
17730
17731    # The cast to long int works around a bug in the HP C Compiler
17732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17734 # This bug is HP SR number 8606223364.
17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17736 printf %s "checking size of long... " >&6; }
17737 if test ${ac_cv_sizeof_long+y}
17738 then :
17739   printf %s "(cached) " >&6
17740 else $as_nop
17741   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
17742 then :
17743
17744 else $as_nop
17745   if test "$ac_cv_type_long" = yes; then
17746      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17747 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17748 as_fn_error 77 "cannot compute sizeof (long)
17749 See \`config.log' for more details" "$LINENO" 5; }
17750    else
17751      ac_cv_sizeof_long=0
17752    fi
17753 fi
17754
17755 fi
17756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17757 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
17758
17759
17760
17761 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
17762
17763
17764    # The cast to long int works around a bug in the HP C Compiler
17765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17767 # This bug is HP SR number 8606223364.
17768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
17769 printf %s "checking size of void*... " >&6; }
17770 if test ${ac_cv_sizeof_voidp+y}
17771 then :
17772   printf %s "(cached) " >&6
17773 else $as_nop
17774   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"
17775 then :
17776
17777 else $as_nop
17778   if test "$ac_cv_type_voidp" = yes; then
17779      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17780 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17781 as_fn_error 77 "cannot compute sizeof (void*)
17782 See \`config.log' for more details" "$LINENO" 5; }
17783    else
17784      ac_cv_sizeof_voidp=0
17785    fi
17786 fi
17787
17788 fi
17789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
17790 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
17791
17792
17793
17794 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
17795
17796
17797    ac_cv_char_data_model=""
17798    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
17799    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
17800    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
17801    ac_cv_long_data_model=""
17802    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
17803    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
17804    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
17805    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking data model" >&5
17806 printf %s "checking data model... " >&6; }
17807    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
17808     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
17809     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
17810     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
17811     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
17812     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
17813     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
17814     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
17815     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
17816     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
17817     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
17818     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
17819     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
17820     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
17821     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
17822     222/*|333/*|444/*|666/*|888/*) :
17823                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
17824      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
17825    esac
17826    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
17827 printf "%s\n" "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
17828
17829 fi
17830
17831 if test "_$ac_cv_header_stdint_x" != "_" ; then
17832    ac_cv_header_stdint="$ac_cv_header_stdint_x"
17833 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
17834    ac_cv_header_stdint="$ac_cv_header_stdint_o"
17835 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
17836    ac_cv_header_stdint="$ac_cv_header_stdint_u"
17837 else
17838    ac_cv_header_stdint="stddef.h"
17839 fi
17840
17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
17842 printf %s "checking for extra inttypes in chosen header... " >&6; }
17843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
17844 printf "%s\n" "($ac_cv_header_stdint)" >&6; }
17845 unset ac_cv_type_int_least32_t
17846 unset ac_cv_type_int_fast32_t
17847 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
17848 "
17849 if test "x$ac_cv_type_int_least32_t" = xyes
17850 then :
17851
17852 fi
17853
17854 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
17855 "
17856 if test "x$ac_cv_type_int_fast32_t" = xyes
17857 then :
17858
17859 fi
17860
17861 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
17862 "
17863 if test "x$ac_cv_type_intmax_t" = xyes
17864 then :
17865
17866 fi
17867
17868
17869 fi # shortcircut to system "stdint.h"
17870 # ------------------ PREPARE VARIABLES ------------------------------
17871 if test "$GCC" = "yes" ; then
17872 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
17873 else
17874 ac_cv_stdint_message="using $CC"
17875 fi
17876
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
17878 printf "%s\n" "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
17879
17880 # ----------------- DONE inttypes.h checks START header -------------
17881 ac_config_commands="$ac_config_commands $ac_stdint_h"
17882
17883
17884
17885 # Checks for typedefs, structures, and compiler characteristics.
17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17887 printf %s "checking for an ANSI C-conforming const... " >&6; }
17888 if test ${ac_cv_c_const+y}
17889 then :
17890   printf %s "(cached) " >&6
17891 else $as_nop
17892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h.  */
17894
17895 int
17896 main (void)
17897 {
17898
17899 #ifndef __cplusplus
17900   /* Ultrix mips cc rejects this sort of thing.  */
17901   typedef int charset[2];
17902   const charset cs = { 0, 0 };
17903   /* SunOS 4.1.1 cc rejects this.  */
17904   char const *const *pcpcc;
17905   char **ppc;
17906   /* NEC SVR4.0.2 mips cc rejects this.  */
17907   struct point {int x, y;};
17908   static struct point const zero = {0,0};
17909   /* IBM XL C 1.02.0.0 rejects this.
17910      It does not let you subtract one const X* pointer from another in
17911      an arm of an if-expression whose if-part is not a constant
17912      expression */
17913   const char *g = "string";
17914   pcpcc = &g + (g ? g-g : 0);
17915   /* HPUX 7.0 cc rejects these. */
17916   ++pcpcc;
17917   ppc = (char**) pcpcc;
17918   pcpcc = (char const *const *) ppc;
17919   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17920     char tx;
17921     char *t = &tx;
17922     char const *s = 0 ? (char *) 0 : (char const *) 0;
17923
17924     *t++ = 0;
17925     if (s) return 0;
17926   }
17927   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17928     int x[] = {25, 17};
17929     const int *foo = &x[0];
17930     ++foo;
17931   }
17932   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17933     typedef const int *iptr;
17934     iptr p = 0;
17935     ++p;
17936   }
17937   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17938        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17939     struct s { int j; const int *ap[3]; } bx;
17940     struct s *b = &bx; b->j = 5;
17941   }
17942   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17943     const int foo = 10;
17944     if (!foo) return 0;
17945   }
17946   return !cs[0] && !zero.x;
17947 #endif
17948
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 if ac_fn_c_try_compile "$LINENO"
17954 then :
17955   ac_cv_c_const=yes
17956 else $as_nop
17957   ac_cv_c_const=no
17958 fi
17959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17960 fi
17961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17962 printf "%s\n" "$ac_cv_c_const" >&6; }
17963 if test $ac_cv_c_const = no; then
17964
17965 printf "%s\n" "#define const /**/" >>confdefs.h
17966
17967 fi
17968
17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17970 printf %s "checking for inline... " >&6; }
17971 if test ${ac_cv_c_inline+y}
17972 then :
17973   printf %s "(cached) " >&6
17974 else $as_nop
17975   ac_cv_c_inline=no
17976 for ac_kw in inline __inline__ __inline; do
17977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h.  */
17979 #ifndef __cplusplus
17980 typedef int foo_t;
17981 static $ac_kw foo_t static_foo (void) {return 0; }
17982 $ac_kw foo_t foo (void) {return 0; }
17983 #endif
17984
17985 _ACEOF
17986 if ac_fn_c_try_compile "$LINENO"
17987 then :
17988   ac_cv_c_inline=$ac_kw
17989 fi
17990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17991   test "$ac_cv_c_inline" != no && break
17992 done
17993
17994 fi
17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17996 printf "%s\n" "$ac_cv_c_inline" >&6; }
17997
17998 case $ac_cv_c_inline in
17999   inline | yes) ;;
18000   *)
18001     case $ac_cv_c_inline in
18002       no) ac_val=;;
18003       *) ac_val=$ac_cv_c_inline;;
18004     esac
18005     cat >>confdefs.h <<_ACEOF
18006 #ifndef __cplusplus
18007 #define inline $ac_val
18008 #endif
18009 _ACEOF
18010     ;;
18011 esac
18012
18013
18014   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
18015 printf %s "checking for flexible array members... " >&6; }
18016 if test ${ac_cv_c_flexmember+y}
18017 then :
18018   printf %s "(cached) " >&6
18019 else $as_nop
18020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h.  */
18022 #include <stdlib.h>
18023             #include <stdio.h>
18024             #include <stddef.h>
18025             struct s { int n; double d[]; };
18026 int
18027 main (void)
18028 {
18029 int m = getchar ();
18030             struct s *p = (struct s *) malloc (offsetof (struct s, d)
18031                                                + m * sizeof (double));
18032             p->d[0] = 0.0;
18033             return p->d != (double *) NULL;
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 if ac_fn_c_try_compile "$LINENO"
18039 then :
18040   ac_cv_c_flexmember=yes
18041 else $as_nop
18042   ac_cv_c_flexmember=no
18043 fi
18044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18045 fi
18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18047 printf "%s\n" "$ac_cv_c_flexmember" >&6; }
18048   if test $ac_cv_c_flexmember = yes; then
18049
18050 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18051
18052   else
18053     printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18054
18055   fi
18056
18057
18058   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18059 "
18060 if test "x$ac_cv_type_pid_t" = xyes
18061 then :
18062
18063 else $as_nop
18064                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065 /* end confdefs.h.  */
18066
18067           #if defined _WIN64 && !defined __CYGWIN__
18068           LLP64
18069           #endif
18070
18071 int
18072 main (void)
18073 {
18074
18075   ;
18076   return 0;
18077 }
18078
18079 _ACEOF
18080 if ac_fn_c_try_compile "$LINENO"
18081 then :
18082   ac_pid_type='int'
18083 else $as_nop
18084   ac_pid_type='__int64'
18085 fi
18086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18087
18088 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18089
18090
18091 fi
18092
18093
18094
18095 # Checks for library functions.
18096 ac_func=
18097 for ac_item in $ac_func_c_list
18098 do
18099   if test $ac_func; then
18100     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18101     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18102       echo "#define $ac_item 1" >> confdefs.h
18103     fi
18104     ac_func=
18105   else
18106     ac_func=$ac_item
18107   fi
18108 done
18109
18110 if test "x$ac_cv_func_vprintf" = xno
18111 then :
18112   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18113 if test "x$ac_cv_func__doprnt" = xyes
18114 then :
18115
18116 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
18117
18118 fi
18119
18120 fi
18121
18122
18123
18124
18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18126 printf %s "checking for working mmap... " >&6; }
18127 if test ${ac_cv_func_mmap_fixed_mapped+y}
18128 then :
18129   printf %s "(cached) " >&6
18130 else $as_nop
18131   if test "$cross_compiling" = yes
18132 then :
18133   case "$host_os" in # ((
18134                           # Guess yes on platforms where we know the result.
18135                   linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
18136                           # If we don't know, assume the worst.
18137                   *)      ac_cv_func_mmap_fixed_mapped=no ;;
18138                 esac
18139 else $as_nop
18140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h.  */
18142 $ac_includes_default
18143 /* malloc might have been renamed as rpl_malloc. */
18144 #undef malloc
18145
18146 /* Thanks to Mike Haertel and Jim Avera for this test.
18147    Here is a matrix of mmap possibilities:
18148         mmap private not fixed
18149         mmap private fixed at somewhere currently unmapped
18150         mmap private fixed at somewhere already mapped
18151         mmap shared not fixed
18152         mmap shared fixed at somewhere currently unmapped
18153         mmap shared fixed at somewhere already mapped
18154    For private mappings, we should verify that changes cannot be read()
18155    back from the file, nor mmap's back from the file at a different
18156    address.  (There have been systems where private was not correctly
18157    implemented like the infamous i386 svr4.0, and systems where the
18158    VM page cache was not coherent with the file system buffer cache
18159    like early versions of FreeBSD and possibly contemporary NetBSD.)
18160    For shared mappings, we should conversely verify that changes get
18161    propagated back to all the places they're supposed to be.
18162
18163    Grep wants private fixed already mapped.
18164    The main things grep needs to know about mmap are:
18165    * does it exist and is it safe to write into the mmap'd area
18166    * how to use it (BSD variants)  */
18167
18168 #include <fcntl.h>
18169 #include <sys/mman.h>
18170
18171 /* This mess was copied from the GNU getpagesize.h.  */
18172 #ifndef HAVE_GETPAGESIZE
18173 # ifdef _SC_PAGESIZE
18174 #  define getpagesize() sysconf(_SC_PAGESIZE)
18175 # else /* no _SC_PAGESIZE */
18176 #  ifdef HAVE_SYS_PARAM_H
18177 #   include <sys/param.h>
18178 #   ifdef EXEC_PAGESIZE
18179 #    define getpagesize() EXEC_PAGESIZE
18180 #   else /* no EXEC_PAGESIZE */
18181 #    ifdef NBPG
18182 #     define getpagesize() NBPG * CLSIZE
18183 #     ifndef CLSIZE
18184 #      define CLSIZE 1
18185 #     endif /* no CLSIZE */
18186 #    else /* no NBPG */
18187 #     ifdef NBPC
18188 #      define getpagesize() NBPC
18189 #     else /* no NBPC */
18190 #      ifdef PAGESIZE
18191 #       define getpagesize() PAGESIZE
18192 #      endif /* PAGESIZE */
18193 #     endif /* no NBPC */
18194 #    endif /* no NBPG */
18195 #   endif /* no EXEC_PAGESIZE */
18196 #  else /* no HAVE_SYS_PARAM_H */
18197 #   define getpagesize() 8192   /* punt totally */
18198 #  endif /* no HAVE_SYS_PARAM_H */
18199 # endif /* no _SC_PAGESIZE */
18200
18201 #endif /* no HAVE_GETPAGESIZE */
18202
18203 int
18204 main (void)
18205 {
18206   char *data, *data2, *data3;
18207   const char *cdata2;
18208   int i, pagesize;
18209   int fd, fd2;
18210
18211   pagesize = getpagesize ();
18212
18213   /* First, make a file with some known garbage in it. */
18214   data = (char *) malloc (pagesize);
18215   if (!data)
18216     return 1;
18217   for (i = 0; i < pagesize; ++i)
18218     *(data + i) = rand ();
18219   umask (0);
18220   fd = creat ("conftest.mmap", 0600);
18221   if (fd < 0)
18222     return 2;
18223   if (write (fd, data, pagesize) != pagesize)
18224     return 3;
18225   close (fd);
18226
18227   /* Next, check that the tail of a page is zero-filled.  File must have
18228      non-zero length, otherwise we risk SIGBUS for entire page.  */
18229   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18230   if (fd2 < 0)
18231     return 4;
18232   cdata2 = "";
18233   if (write (fd2, cdata2, 1) != 1)
18234     return 5;
18235   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18236   if (data2 == MAP_FAILED)
18237     return 6;
18238   for (i = 0; i < pagesize; ++i)
18239     if (*(data2 + i))
18240       return 7;
18241   close (fd2);
18242   if (munmap (data2, pagesize))
18243     return 8;
18244
18245   /* Next, try to mmap the file at a fixed address which already has
18246      something else allocated at it.  If we can, also make sure that
18247      we see the same garbage.  */
18248   fd = open ("conftest.mmap", O_RDWR);
18249   if (fd < 0)
18250     return 9;
18251   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18252                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18253     return 10;
18254   for (i = 0; i < pagesize; ++i)
18255     if (*(data + i) != *(data2 + i))
18256       return 11;
18257
18258   /* Finally, make sure that changes to the mapped area do not
18259      percolate back to the file as seen by read().  (This is a bug on
18260      some variants of i386 svr4.0.)  */
18261   for (i = 0; i < pagesize; ++i)
18262     *(data2 + i) = *(data2 + i) + 1;
18263   data3 = (char *) malloc (pagesize);
18264   if (!data3)
18265     return 12;
18266   if (read (fd, data3, pagesize) != pagesize)
18267     return 13;
18268   for (i = 0; i < pagesize; ++i)
18269     if (*(data + i) != *(data3 + i))
18270       return 14;
18271   close (fd);
18272   free (data);
18273   free (data3);
18274   return 0;
18275 }
18276 _ACEOF
18277 if ac_fn_c_try_run "$LINENO"
18278 then :
18279   ac_cv_func_mmap_fixed_mapped=yes
18280 else $as_nop
18281   ac_cv_func_mmap_fixed_mapped=no
18282 fi
18283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18284   conftest.$ac_objext conftest.beam conftest.$ac_ext
18285 fi
18286
18287 fi
18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18289 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
18290 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18291
18292 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18293
18294 fi
18295 rm -f conftest.mmap conftest.txt
18296
18297 ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
18298 if test "x$ac_cv_func_link" = xyes
18299 then :
18300   printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
18301
18302 fi
18303 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
18304 if test "x$ac_cv_func_mkstemp" = xyes
18305 then :
18306   printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
18307
18308 fi
18309 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
18310 if test "x$ac_cv_func_mkostemp" = xyes
18311 then :
18312   printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
18313
18314 fi
18315 ac_fn_c_check_func "$LINENO" "_mktemp_s" "ac_cv_func__mktemp_s"
18316 if test "x$ac_cv_func__mktemp_s" = xyes
18317 then :
18318   printf "%s\n" "#define HAVE__MKTEMP_S 1" >>confdefs.h
18319
18320 fi
18321 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
18322 if test "x$ac_cv_func_mkdtemp" = xyes
18323 then :
18324   printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
18325
18326 fi
18327 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
18328 if test "x$ac_cv_func_getopt" = xyes
18329 then :
18330   printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
18331
18332 fi
18333 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
18334 if test "x$ac_cv_func_getopt_long" = xyes
18335 then :
18336   printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
18337
18338 fi
18339 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18340 if test "x$ac_cv_func_getprogname" = xyes
18341 then :
18342   printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
18343
18344 fi
18345 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
18346 if test "x$ac_cv_func_getexecname" = xyes
18347 then :
18348   printf "%s\n" "#define HAVE_GETEXECNAME 1" >>confdefs.h
18349
18350 fi
18351 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
18352 if test "x$ac_cv_func_rand" = xyes
18353 then :
18354   printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
18355
18356 fi
18357 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
18358 if test "x$ac_cv_func_random" = xyes
18359 then :
18360   printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
18361
18362 fi
18363 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
18364 if test "x$ac_cv_func_lrand48" = xyes
18365 then :
18366   printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
18367
18368 fi
18369 ac_fn_c_check_func "$LINENO" "random_r" "ac_cv_func_random_r"
18370 if test "x$ac_cv_func_random_r" = xyes
18371 then :
18372   printf "%s\n" "#define HAVE_RANDOM_R 1" >>confdefs.h
18373
18374 fi
18375 ac_fn_c_check_func "$LINENO" "rand_r" "ac_cv_func_rand_r"
18376 if test "x$ac_cv_func_rand_r" = xyes
18377 then :
18378   printf "%s\n" "#define HAVE_RAND_R 1" >>confdefs.h
18379
18380 fi
18381 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
18382 if test "x$ac_cv_func_readlink" = xyes
18383 then :
18384   printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
18385
18386 fi
18387 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
18388 if test "x$ac_cv_func_fstatvfs" = xyes
18389 then :
18390   printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
18391
18392 fi
18393 ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"
18394 if test "x$ac_cv_func_fstatfs" = xyes
18395 then :
18396   printf "%s\n" "#define HAVE_FSTATFS 1" >>confdefs.h
18397
18398 fi
18399 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18400 if test "x$ac_cv_func_lstat" = xyes
18401 then :
18402   printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18403
18404 fi
18405 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18406 if test "x$ac_cv_func_strerror" = xyes
18407 then :
18408   printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
18409
18410 fi
18411 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
18412 if test "x$ac_cv_func_strerror_r" = xyes
18413 then :
18414   printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
18415
18416 fi
18417
18418
18419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
18420 printf %s "checking for posix_fadvise in fcntl.h... " >&6; }
18421 if test ${ac_cv_func_posix_fadvise+y}
18422 then :
18423   printf %s "(cached) " >&6
18424 else $as_nop
18425   symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
18426 ac_found=no
18427 for ac_header in fcntl.h ; do
18428   ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
18429   if test $ac_found != "yes" ; then
18430       if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18431             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h.  */
18433 #include <$ac_header>
18434
18435 _ACEOF
18436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18437   $EGREP "$symbol" >/dev/null 2>&1
18438 then :
18439   ac_found="$ac_header"
18440 fi
18441 rm -rf conftest*
18442
18443       fi
18444   fi
18445 done
18446 if test "$ac_found" != "no" ; then
18447   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
18448 printf "%s\n" "$ac_found" >&6; }
18449   fc_func_posix_fadvise=1
18450 else
18451   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18452 printf "%s\n" "no" >&6; }
18453   fc_func_posix_fadvise=0
18454 fi
18455
18456 fi
18457
18458
18459 printf "%s\n" "#define HAVE_POSIX_FADVISE $fc_func_posix_fadvise" >>confdefs.h
18460
18461
18462 #
18463 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
18464 "
18465 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
18466 then :
18467
18468 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
18469
18470
18471 fi
18472
18473
18474 #
18475 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
18476         ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
18477 "
18478 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes
18479 then :
18480
18481 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_BASETYPE 1" >>confdefs.h
18482
18483
18484 fi
18485 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
18486 "
18487 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes
18488 then :
18489
18490 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1" >>confdefs.h
18491
18492
18493 fi
18494
18495 fi
18496 if test "x$ac_cv_func_fstatfs" = "xyes"; then
18497         ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
18498 #ifdef HAVE_SYS_VFS_H
18499 #include <sys/vfs.h>
18500 #endif
18501 #ifdef HAVE_SYS_STATFS_H
18502 #include <sys/statfs.h>
18503 #endif
18504 #ifdef HAVE_SYS_PARAM_H
18505 #include <sys/param.h>
18506 #endif
18507 #ifdef HAVE_SYS_MOUNT_H
18508 #include <sys/mount.h>
18509 #endif
18510 "
18511 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes
18512 then :
18513
18514 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FLAGS 1" >>confdefs.h
18515
18516
18517 fi
18518 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
18519 #ifdef HAVE_SYS_VFS_H
18520 #include <sys/vfs.h>
18521 #endif
18522 #ifdef HAVE_SYS_STATFS_H
18523 #include <sys/statfs.h>
18524 #endif
18525 #ifdef HAVE_SYS_PARAM_H
18526 #include <sys/param.h>
18527 #endif
18528 #ifdef HAVE_SYS_MOUNT_H
18529 #include <sys/mount.h>
18530 #endif
18531 "
18532 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes
18533 then :
18534
18535 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h
18536
18537
18538 fi
18539
18540 fi
18541 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
18542 "
18543 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
18544 then :
18545
18546 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
18547
18548
18549 fi
18550
18551
18552 # Check the argument type of the gperf hash/lookup function
18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
18554 printf %s "checking The type of len parameter of gperf hash/lookup function... " >&6; }
18555 fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h.  */
18558
18559         #include <string.h>
18560
18561         const char *in_word_set(register const char *, register size_t);
18562         $fc_gperf_test
18563
18564 int
18565 main (void)
18566 {
18567
18568   ;
18569   return 0;
18570 }
18571 _ACEOF
18572 if ac_fn_c_try_compile "$LINENO"
18573 then :
18574   FC_GPERF_SIZE_T=size_t
18575 else $as_nop
18576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h.  */
18578
18579                 #include <string.h>
18580
18581                 const char *in_word_set(register const char *, register unsigned int);
18582                 $fc_gperf_test
18583
18584 int
18585 main (void)
18586 {
18587
18588   ;
18589   return 0;
18590 }
18591 _ACEOF
18592 if ac_fn_c_try_compile "$LINENO"
18593 then :
18594   FC_GPERF_SIZE_T="unsigned int"
18595 else $as_nop
18596   as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
18597
18598 fi
18599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18600 fi
18601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18602
18603 printf "%s\n" "#define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T" >>confdefs.h
18604
18605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
18606 printf "%s\n" "$FC_GPERF_SIZE_T" >&6; }
18607
18608 #
18609 # Checks for iconv
18610 #
18611 # Check whether --enable-iconv was given.
18612 if test ${enable_iconv+y}
18613 then :
18614   enableval=$enable_iconv;
18615 else $as_nop
18616   enable_iconv=no
18617 fi
18618
18619
18620 # Check whether --with-libiconv was given.
18621 if test ${with_libiconv+y}
18622 then :
18623   withval=$with_libiconv; if test "x$withval" = "xyes"; then
18624                 libiconv_prefix=$prefix
18625          else
18626                 libiconv_prefix=$withval
18627          fi
18628 else $as_nop
18629   libiconv_prefix=auto
18630 fi
18631
18632
18633 # Check whether --with-libiconv-includes was given.
18634 if test ${with_libiconv_includes+y}
18635 then :
18636   withval=$with_libiconv_includes; libiconv_includes=$withval
18637 else $as_nop
18638   libiconv_includes=auto
18639 fi
18640
18641
18642 # Check whether --with-libiconv-lib was given.
18643 if test ${with_libiconv_lib+y}
18644 then :
18645   withval=$with_libiconv_lib; libiconv_lib=$withval
18646 else $as_nop
18647   libiconv_lib=auto
18648 fi
18649
18650
18651 # if no libiconv,libiconv-includes,libiconv-lib are specified,
18652 # libc's iconv has a priority.
18653 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
18654         libiconv_cflags="-I${libiconv_includes}"
18655 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
18656         libiconv_cflags="-I${libiconv_prefix}/include"
18657 else
18658         libiconv_cflags=""
18659 fi
18660 libiconv_libs=""
18661 if test "x$libiconv_cflags" != "x"; then
18662         if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
18663                 libiconv_libs="-L${libiconv_lib} -liconv"
18664         elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
18665                 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
18666         else
18667                 libiconv_libs="-liconv"
18668         fi
18669 fi
18670
18671 use_iconv=0
18672 if test "x$enable_iconv" != "xno"; then
18673         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
18674 printf %s "checking for a usable iconv... " >&6; }
18675         if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
18676                 iconvsaved_CFLAGS="$CFLAGS"
18677                 iconvsaved_LIBS="$LIBS"
18678                 CFLAGS="$CFLAGS $libiconv_cflags"
18679                 LIBS="$LIBS $libiconv_libs"
18680
18681                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h.  */
18683 #include <iconv.h>
18684 int
18685 main (void)
18686 {
18687 iconv_open ("from", "to");
18688   ;
18689   return 0;
18690 }
18691 _ACEOF
18692 if ac_fn_c_try_link "$LINENO"
18693 then :
18694   iconv_type="libiconv"
18695                          use_iconv=1
18696                          ICONV_CFLAGS="$libiconv_cflags"
18697                          ICONV_LIBS="$libiconv_libs"
18698
18699 else $as_nop
18700   use_iconv=0
18701 fi
18702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18703     conftest$ac_exeext conftest.$ac_ext
18704
18705                 CFLAGS="$iconvsaved_CFLAGS"
18706                 LIBS="$iconvsaved_LIBS"
18707         fi
18708         if test "x$use_iconv" = "x0"; then
18709                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h.  */
18711 #include <iconv.h>
18712 int
18713 main (void)
18714 {
18715 iconv_open ("from", "to");
18716   ;
18717   return 0;
18718 }
18719 _ACEOF
18720 if ac_fn_c_try_link "$LINENO"
18721 then :
18722   iconv_type="libc"
18723                          use_iconv=1
18724 else $as_nop
18725   iconv_type="not found"
18726                          use_iconv=0
18727 fi
18728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18729     conftest$ac_exeext conftest.$ac_ext
18730         fi
18731
18732         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
18733 printf "%s\n" "$iconv_type" >&6; }
18734
18735
18736 fi
18737
18738 printf "%s\n" "#define USE_ICONV $use_iconv" >>confdefs.h
18739
18740 #
18741 # Checks for FreeType
18742 #
18743
18744 pkg_failed=no
18745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18746 printf %s "checking for FREETYPE... " >&6; }
18747
18748 if test -n "$FREETYPE_CFLAGS"; then
18749     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18750  elif test -n "$PKG_CONFIG"; then
18751     if test -n "$PKG_CONFIG" && \
18752     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18753   ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18754   ac_status=$?
18755   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18756   test $ac_status = 0; }; then
18757   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 21.0.15" 2>/dev/null`
18758                       test "x$?" != "x0" && pkg_failed=yes
18759 else
18760   pkg_failed=yes
18761 fi
18762  else
18763     pkg_failed=untried
18764 fi
18765 if test -n "$FREETYPE_LIBS"; then
18766     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18767  elif test -n "$PKG_CONFIG"; then
18768     if test -n "$PKG_CONFIG" && \
18769     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18770   ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18771   ac_status=$?
18772   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773   test $ac_status = 0; }; then
18774   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 21.0.15" 2>/dev/null`
18775                       test "x$?" != "x0" && pkg_failed=yes
18776 else
18777   pkg_failed=yes
18778 fi
18779  else
18780     pkg_failed=untried
18781 fi
18782
18783
18784
18785 if test $pkg_failed = yes; then
18786         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18787 printf "%s\n" "no" >&6; }
18788
18789 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18790         _pkg_short_errors_supported=yes
18791 else
18792         _pkg_short_errors_supported=no
18793 fi
18794         if test $_pkg_short_errors_supported = yes; then
18795                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18796         else
18797                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18798         fi
18799         # Put the nasty error message in config.log where it belongs
18800         echo "$FREETYPE_PKG_ERRORS" >&5
18801
18802         as_fn_error $? "Package requirements (freetype2 >= 21.0.15) were not met:
18803
18804 $FREETYPE_PKG_ERRORS
18805
18806 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18807 installed software in a non-standard prefix.
18808
18809 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18810 and FREETYPE_LIBS to avoid the need to call pkg-config.
18811 See the pkg-config man page for more details." "$LINENO" 5
18812 elif test $pkg_failed = untried; then
18813         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18814 printf "%s\n" "no" >&6; }
18815         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18816 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18817 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18818 is in your PATH or set the PKG_CONFIG environment variable to the full
18819 path to pkg-config.
18820
18821 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18822 and FREETYPE_LIBS to avoid the need to call pkg-config.
18823 See the pkg-config man page for more details.
18824
18825 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18826 See \`config.log' for more details" "$LINENO" 5; }
18827 else
18828         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18829         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18830         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18831 printf "%s\n" "yes" >&6; }
18832
18833 fi
18834 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2 >= 21.0.15"
18835
18836
18837
18838
18839 fontconfig_save_libs="$LIBS"
18840 fontconfig_save_cflags="$CFLAGS"
18841 LIBS="$LIBS $FREETYPE_LIBS"
18842 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
18843 ac_fn_c_check_func "$LINENO" "FT_Get_BDF_Property" "ac_cv_func_FT_Get_BDF_Property"
18844 if test "x$ac_cv_func_FT_Get_BDF_Property" = xyes
18845 then :
18846   printf "%s\n" "#define HAVE_FT_GET_BDF_PROPERTY 1" >>confdefs.h
18847
18848 fi
18849 ac_fn_c_check_func "$LINENO" "FT_Get_PS_Font_Info" "ac_cv_func_FT_Get_PS_Font_Info"
18850 if test "x$ac_cv_func_FT_Get_PS_Font_Info" = xyes
18851 then :
18852   printf "%s\n" "#define HAVE_FT_GET_PS_FONT_INFO 1" >>confdefs.h
18853
18854 fi
18855 ac_fn_c_check_func "$LINENO" "FT_Has_PS_Glyph_Names" "ac_cv_func_FT_Has_PS_Glyph_Names"
18856 if test "x$ac_cv_func_FT_Has_PS_Glyph_Names" = xyes
18857 then :
18858   printf "%s\n" "#define HAVE_FT_HAS_PS_GLYPH_NAMES 1" >>confdefs.h
18859
18860 fi
18861 ac_fn_c_check_func "$LINENO" "FT_Get_X11_Font_Format" "ac_cv_func_FT_Get_X11_Font_Format"
18862 if test "x$ac_cv_func_FT_Get_X11_Font_Format" = xyes
18863 then :
18864   printf "%s\n" "#define HAVE_FT_GET_X11_FONT_FORMAT 1" >>confdefs.h
18865
18866 fi
18867 ac_fn_c_check_func "$LINENO" "FT_Done_MM_Var" "ac_cv_func_FT_Done_MM_Var"
18868 if test "x$ac_cv_func_FT_Done_MM_Var" = xyes
18869 then :
18870   printf "%s\n" "#define HAVE_FT_DONE_MM_VAR 1" >>confdefs.h
18871
18872 fi
18873
18874
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h.  */
18877
18878         #include <ft2build.h>
18879         #include FT_CONFIG_OPTIONS_H
18880         #ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
18881         #  error "No pcf long family names support"
18882         #endif
18883
18884 _ACEOF
18885 if ac_fn_c_try_compile "$LINENO"
18886 then :
18887   have_pcf_long_family_names=yes
18888 else $as_nop
18889   have_pcf_long_family_names=no
18890 fi
18891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18892  if test "x$have_pcf_long_family_names" = xyes; then
18893   FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
18894   FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
18895 else
18896   FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
18897   FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
18898 fi
18899
18900
18901 LIBS="$fontconfig_save_libs"
18902 CFLAGS="$fontconfig_save_cflags"
18903
18904 #
18905 # Check expat configuration
18906 #
18907
18908 # Check whether --with-expat was given.
18909 if test ${with_expat+y}
18910 then :
18911   withval=$with_expat; expat_prefix=$withval
18912 else $as_nop
18913   expat_prefix=auto
18914 fi
18915
18916
18917 # Check whether --with-expat-includes was given.
18918 if test ${with_expat_includes+y}
18919 then :
18920   withval=$with_expat_includes; expat_includes=$withval
18921 else $as_nop
18922   expat_includes=auto
18923 fi
18924
18925
18926 # Check whether --with-expat-lib was given.
18927 if test ${with_expat_lib+y}
18928 then :
18929   withval=$with_expat_lib; expat_lib=$withval
18930 else $as_nop
18931   expat_lib=auto
18932 fi
18933
18934
18935 if test "$enable_libxml2" != "yes"; then
18936         use_pkgconfig_for_expat=yes
18937         if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
18938
18939 pkg_failed=no
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
18941 printf %s "checking for EXPAT... " >&6; }
18942
18943 if test -n "$EXPAT_CFLAGS"; then
18944     pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
18945  elif test -n "$PKG_CONFIG"; then
18946     if test -n "$PKG_CONFIG" && \
18947     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
18948   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
18949   ac_status=$?
18950   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18951   test $ac_status = 0; }; then
18952   pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
18953                       test "x$?" != "x0" && pkg_failed=yes
18954 else
18955   pkg_failed=yes
18956 fi
18957  else
18958     pkg_failed=untried
18959 fi
18960 if test -n "$EXPAT_LIBS"; then
18961     pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
18962  elif test -n "$PKG_CONFIG"; then
18963     if test -n "$PKG_CONFIG" && \
18964     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
18965   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
18966   ac_status=$?
18967   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18968   test $ac_status = 0; }; then
18969   pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
18970                       test "x$?" != "x0" && pkg_failed=yes
18971 else
18972   pkg_failed=yes
18973 fi
18974  else
18975     pkg_failed=untried
18976 fi
18977
18978
18979
18980 if test $pkg_failed = yes; then
18981         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18982 printf "%s\n" "no" >&6; }
18983
18984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18985         _pkg_short_errors_supported=yes
18986 else
18987         _pkg_short_errors_supported=no
18988 fi
18989         if test $_pkg_short_errors_supported = yes; then
18990                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
18991         else
18992                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
18993         fi
18994         # Put the nasty error message in config.log where it belongs
18995         echo "$EXPAT_PKG_ERRORS" >&5
18996
18997         use_pkgconfig_for_expat=no
18998 elif test $pkg_failed = untried; then
18999         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19000 printf "%s\n" "no" >&6; }
19001         use_pkgconfig_for_expat=no
19002 else
19003         EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
19004         EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
19005         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19006 printf "%s\n" "yes" >&6; }
19007
19008 fi
19009         else
19010                 use_pkgconfig_for_expat=no
19011         fi
19012         if test "x$use_pkgconfig_for_expat" = "xno"; then
19013                 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
19014                         EXPAT_CFLAGS="-I${expat_includes}"
19015                 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
19016                         EXPAT_CFLAGS="-I${expat_prefix}/include"
19017                 else
19018                         EXPAT_CFLAGS=""
19019                 fi
19020                 if test "$expat_lib" != "auto"; then
19021                         EXPAT_LIBS="-L${expat_lib} -lexpat"
19022                 elif test "$expat_prefix" != "auto"; then
19023                         EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
19024                 else
19025                         EXPAT_LIBS="-lexpat"
19026                 fi
19027                 PKG_EXPAT_CFLAGS=$EXPAT_CFLAGS
19028                 PKG_EXPAT_LIBS=$EXPAT_LIBS
19029         else
19030                 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
19031                 PKG_EXPAT_CFLAGS=
19032                 PKG_EXPAT_LIBS=
19033         fi
19034
19035         expatsaved_CPPFLAGS="$CPPFLAGS"
19036         expatsaved_LIBS="$LIBS"
19037         CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
19038         LIBS="$LIBS $EXPAT_LIBS"
19039
19040         ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
19041 if test "x$ac_cv_header_expat_h" = xyes
19042 then :
19043
19044 fi
19045
19046         if test "$ac_cv_header_expat_h" = "no"; then
19047                 ac_fn_c_check_header_compile "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
19048 if test "x$ac_cv_header_xmlparse_h" = xyes
19049 then :
19050
19051 fi
19052
19053                 if test "$ac_cv_header_xmlparse_h" = "yes"; then
19054                         HAVE_XMLPARSE_H=1
19055
19056
19057 printf "%s\n" "#define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H" >>confdefs.h
19058
19059                 else
19060                         as_fn_error $? "
19061 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19062                 fi
19063         fi
19064         ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
19065 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes
19066 then :
19067   printf "%s\n" "#define HAVE_XML_SETDOCTYPEDECLHANDLER 1" >>confdefs.h
19068
19069 fi
19070
19071         if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
19072                 as_fn_error $? "
19073 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19074         fi
19075         CPPFLAGS="$expatsaved_CPPFLAGS"
19076         LIBS="$expatsaved_LIBS"
19077
19078
19079
19080
19081
19082 fi
19083
19084 #
19085 # Check libxml2 configuration
19086 #
19087 # Check whether --enable-libxml2 was given.
19088 if test ${enable_libxml2+y}
19089 then :
19090   enableval=$enable_libxml2;
19091 fi
19092
19093
19094 if test "$enable_libxml2" = "yes"; then
19095
19096 pkg_failed=no
19097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
19098 printf %s "checking for LIBXML2... " >&6; }
19099
19100 if test -n "$LIBXML2_CFLAGS"; then
19101     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
19102  elif test -n "$PKG_CONFIG"; then
19103     if test -n "$PKG_CONFIG" && \
19104     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19105   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19106   ac_status=$?
19107   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19108   test $ac_status = 0; }; then
19109   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
19110                       test "x$?" != "x0" && pkg_failed=yes
19111 else
19112   pkg_failed=yes
19113 fi
19114  else
19115     pkg_failed=untried
19116 fi
19117 if test -n "$LIBXML2_LIBS"; then
19118     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
19119  elif test -n "$PKG_CONFIG"; then
19120     if test -n "$PKG_CONFIG" && \
19121     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19122   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19123   ac_status=$?
19124   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19125   test $ac_status = 0; }; then
19126   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
19127                       test "x$?" != "x0" && pkg_failed=yes
19128 else
19129   pkg_failed=yes
19130 fi
19131  else
19132     pkg_failed=untried
19133 fi
19134
19135
19136
19137 if test $pkg_failed = yes; then
19138         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139 printf "%s\n" "no" >&6; }
19140
19141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19142         _pkg_short_errors_supported=yes
19143 else
19144         _pkg_short_errors_supported=no
19145 fi
19146         if test $_pkg_short_errors_supported = yes; then
19147                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19148         else
19149                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19150         fi
19151         # Put the nasty error message in config.log where it belongs
19152         echo "$LIBXML2_PKG_ERRORS" >&5
19153
19154         as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
19155
19156 $LIBXML2_PKG_ERRORS
19157
19158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19159 installed software in a non-standard prefix.
19160
19161 Alternatively, you may set the environment variables LIBXML2_CFLAGS
19162 and LIBXML2_LIBS to avoid the need to call pkg-config.
19163 See the pkg-config man page for more details." "$LINENO" 5
19164 elif test $pkg_failed = untried; then
19165         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166 printf "%s\n" "no" >&6; }
19167         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19168 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19169 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19170 is in your PATH or set the PKG_CONFIG environment variable to the full
19171 path to pkg-config.
19172
19173 Alternatively, you may set the environment variables LIBXML2_CFLAGS
19174 and LIBXML2_LIBS to avoid the need to call pkg-config.
19175 See the pkg-config man page for more details.
19176
19177 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19178 See \`config.log' for more details" "$LINENO" 5; }
19179 else
19180         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
19181         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
19182         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19183 printf "%s\n" "yes" >&6; }
19184
19185 fi
19186     PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0 >= 2.6"
19187
19188 printf "%s\n" "#define ENABLE_LIBXML2 1" >>confdefs.h
19189
19190
19191
19192
19193
19194     fc_saved_CFLAGS="$CFLAGS"
19195     CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
19196     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
19197 printf %s "checking SAX1 support in libxml2... " >&6; }
19198     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199 /* end confdefs.h.  */
19200
19201         #include <libxml/xmlversion.h>
19202         #if !defined(LIBXML_SAX1_ENABLED)
19203         #  include "error: No SAX1 support in libxml2"
19204         #endif
19205
19206 _ACEOF
19207 if ac_fn_c_try_compile "$LINENO"
19208 then :
19209   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
19210 printf "%s\n" "found" >&6; }
19211 else $as_nop
19212   as_fn_error $? "
19213 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
19214 fi
19215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19216     CFLAGS="$fc_saved_CFLAGS"
19217 fi
19218
19219 #
19220 # Check json-c
19221 #
19222
19223 pkg_failed=no
19224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JSONC" >&5
19225 printf %s "checking for JSONC... " >&6; }
19226
19227 if test -n "$JSONC_CFLAGS"; then
19228     pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
19229  elif test -n "$PKG_CONFIG"; then
19230     if test -n "$PKG_CONFIG" && \
19231     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19232   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19233   ac_status=$?
19234   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19235   test $ac_status = 0; }; then
19236   pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
19237                       test "x$?" != "x0" && pkg_failed=yes
19238 else
19239   pkg_failed=yes
19240 fi
19241  else
19242     pkg_failed=untried
19243 fi
19244 if test -n "$JSONC_LIBS"; then
19245     pkg_cv_JSONC_LIBS="$JSONC_LIBS"
19246  elif test -n "$PKG_CONFIG"; then
19247     if test -n "$PKG_CONFIG" && \
19248     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19249   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19250   ac_status=$?
19251   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252   test $ac_status = 0; }; then
19253   pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
19254                       test "x$?" != "x0" && pkg_failed=yes
19255 else
19256   pkg_failed=yes
19257 fi
19258  else
19259     pkg_failed=untried
19260 fi
19261
19262
19263
19264 if test $pkg_failed = yes; then
19265         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266 printf "%s\n" "no" >&6; }
19267
19268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19269         _pkg_short_errors_supported=yes
19270 else
19271         _pkg_short_errors_supported=no
19272 fi
19273         if test $_pkg_short_errors_supported = yes; then
19274                 JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
19275         else
19276                 JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
19277         fi
19278         # Put the nasty error message in config.log where it belongs
19279         echo "$JSONC_PKG_ERRORS" >&5
19280
19281         use_jsonc=no
19282 elif test $pkg_failed = untried; then
19283         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19284 printf "%s\n" "no" >&6; }
19285         use_jsonc=no
19286 else
19287         JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
19288         JSONC_LIBS=$pkg_cv_JSONC_LIBS
19289         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19290 printf "%s\n" "yes" >&6; }
19291         use_jsonc=yes
19292 fi
19293
19294  if test "x$use_jsonc" = "xyes"; then
19295   ENABLE_JSONC_TRUE=
19296   ENABLE_JSONC_FALSE='#'
19297 else
19298   ENABLE_JSONC_TRUE='#'
19299   ENABLE_JSONC_FALSE=
19300 fi
19301
19302
19303
19304
19305 #
19306 # Set default sub-pixel rendering
19307 #
19308
19309
19310 # Check whether --with-default-sub-pixel-rendering was given.
19311 if test ${with_default_sub_pixel_rendering+y}
19312 then :
19313   withval=$with_default_sub_pixel_rendering; preferred_sub_pixel_rendering="$withval"
19314 else $as_nop
19315   preferred_sub_pixel_rendering=none
19316 fi
19317
19318
19319 case "$preferred_sub_pixel_rendering" in
19320 none|bgr|rgb|vbgr|vrgb)
19321     PREFERRED_SUB_PIXEL_RENDERING="$preferred_sub_pixel_rendering"
19322
19323     ;;
19324 *)
19325     as_fn_error $? "Invalid sub-pixel rendering. please choose one of none, bgr, rgb, vbgr, or vrgb" "$LINENO" 5
19326     ;;
19327 esac
19328
19329 #
19330 # Set default hinting
19331 #
19332
19333
19334 # Check whether --with-default-hinting was given.
19335 if test ${with_default_hinting+y}
19336 then :
19337   withval=$with_default_hinting; preferred_hinting="$withval"
19338 else $as_nop
19339   preferred_hinting=slight
19340 fi
19341
19342
19343 case "$preferred_hinting" in
19344 none|slight|medium|full)
19345         PREFERRED_HINTING="$preferred_hinting"
19346
19347         ;;
19348 *)
19349         as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
19350         ;;
19351 esac
19352
19353 #
19354 # Set default font directory
19355 #
19356
19357
19358 # Check whether --with-default-fonts was given.
19359 if test ${with_default_fonts+y}
19360 then :
19361   withval=$with_default_fonts; default_fonts="$withval"
19362 else $as_nop
19363   default_fonts=yes
19364 fi
19365
19366
19367 case "$default_fonts" in
19368 yes)
19369         if test "$os_win32" = "yes"; then
19370                 default_fonts="WINDOWSFONTDIR,WINDOWSUSERFONTDIR"
19371         elif test "$os_darwin" = "yes"; then
19372                 default_fonts="/System/Library/Fonts,/Library/Fonts,~/Library/Fonts,/System/Library/Assets/com_apple_MobileAsset_Font3,/System/Library/Assets/com_apple_MobileAsset_Font4"
19373         else
19374                 default_fonts="/usr/share/fonts"
19375         fi
19376         ;;
19377 esac
19378
19379 FC_DEFAULT_FONTS=""
19380 if test x${default_fonts+set} = xset; then
19381         fc_IFS=$IFS
19382         IFS=","
19383         for p in $default_fonts; do
19384                 if test x"$FC_DEFAULT_FONTS" != x; then
19385                         FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS "
19386                 fi
19387                 FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS<dir>$p</dir>"
19388         done
19389         IFS=$fc_IFS
19390 fi
19391
19392
19393 printf "%s\n" "#define FC_DEFAULT_FONTS \"$FC_DEFAULT_FONTS\"" >>confdefs.h
19394
19395
19396
19397
19398 #
19399 # Add more fonts if available.  By default, add only the directories
19400 # with outline fonts; those with bitmaps can be added as desired in
19401 # local.conf or ~/.fonts.conf
19402 #
19403
19404 # Check whether --with-add-fonts was given.
19405 if test ${with_add_fonts+y}
19406 then :
19407   withval=$with_add_fonts; add_fonts="$withval"
19408 else $as_nop
19409   add_fonts=yes
19410 fi
19411
19412
19413 case "$add_fonts" in
19414 yes)
19415         FC_ADD_FONTS=""
19416         for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
19417                 case x"$FC_ADD_FONTS" in
19418                 x)
19419                         sub="$dir/fonts"
19420                         if test -d "$sub"; then
19421                                 case x$FC_ADD_FONTS in
19422                                 x)
19423                                         FC_ADD_FONTS="$sub"
19424                                         ;;
19425                                 *)
19426                                         FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
19427                                         ;;
19428                                 esac
19429                         fi
19430                         ;;
19431                 esac
19432         done
19433
19434 printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19435
19436         ;;
19437 no)
19438         FC_ADD_FONTS=""
19439         ;;
19440 *)
19441         FC_ADD_FONTS="$add_fonts"
19442
19443 printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19444
19445         ;;
19446 esac
19447
19448
19449
19450 FC_FONTPATH=""
19451
19452 case "$FC_ADD_FONTS" in
19453 "")
19454         ;;
19455 *)
19456         FC_FONTPATH=`echo $FC_ADD_FONTS |
19457                         sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
19458         ;;
19459 esac
19460
19461
19462
19463 #
19464 # Set default cache directory path
19465 #
19466
19467 # Check whether --with-cache-dir was given.
19468 if test ${with_cache_dir+y}
19469 then :
19470   withval=$with_cache_dir; fc_cachedir="$withval"
19471 else $as_nop
19472   fc_cachedir=yes
19473 fi
19474
19475
19476 case $fc_cachedir in
19477 no|yes)
19478         if test "$os_win32" = "yes"; then
19479                 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
19480         else
19481                 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
19482         fi
19483         ;;
19484 *)
19485         ;;
19486 esac
19487
19488 FC_CACHEDIR=${fc_cachedir}
19489
19490
19491 FC_FONTDATE=`LC_ALL=C date`
19492
19493
19494
19495 #
19496 # Set configuration paths
19497 #
19498
19499
19500 # Check whether --with-templatedir was given.
19501 if test ${with_templatedir+y}
19502 then :
19503   withval=$with_templatedir; templatedir="$withval"
19504 else $as_nop
19505   templatedir=yes
19506 fi
19507
19508
19509 # Check whether --with-baseconfigdir was given.
19510 if test ${with_baseconfigdir+y}
19511 then :
19512   withval=$with_baseconfigdir; baseconfigdir="$withval"
19513 else $as_nop
19514   baseconfigdir=yes
19515 fi
19516
19517
19518 # Check whether --with-configdir was given.
19519 if test ${with_configdir+y}
19520 then :
19521   withval=$with_configdir; configdir="$withval"
19522 else $as_nop
19523   configdir=yes
19524 fi
19525
19526
19527 # Check whether --with-xmldir was given.
19528 if test ${with_xmldir+y}
19529 then :
19530   withval=$with_xmldir; xmldir="$withval"
19531 else $as_nop
19532   xmldir=yes
19533 fi
19534
19535
19536 case "$templatedir" in
19537 no|yes)
19538         templatedir='${datadir}'/fontconfig/conf.avail
19539         ;;
19540 *)
19541         ;;
19542 esac
19543 case "$baseconfigdir" in
19544 no|yes)
19545         baseconfigdir='${sysconfdir}'/fonts
19546         ;;
19547 *)
19548         ;;
19549 esac
19550 case "$configdir" in
19551 no|yes)
19552         configdir='${BASECONFIGDIR}'/conf.d
19553         ;;
19554 *)
19555         ;;
19556 esac
19557 case "$xmldir" in
19558 no|yes)
19559         xmldir='${datadir}'/xml/fontconfig
19560         ;;
19561 *)
19562         ;;
19563 esac
19564
19565 TEMPLATEDIR=${templatedir}
19566 BASECONFIGDIR=${baseconfigdir}
19567 CONFIGDIR=${configdir}
19568 XMLDIR=${xmldir}
19569
19570
19571
19572
19573
19574
19575
19576 #
19577 # Thread-safety primitives
19578 #
19579
19580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stdatomic.h atomic primitives" >&5
19581 printf %s "checking stdatomic.h atomic primitives... " >&6; }
19582 if test ${fc_cv_have_stdatomic_atomic_primitives+y}
19583 then :
19584   printf %s "(cached) " >&6
19585 else $as_nop
19586
19587         fc_cv_have_stdatomic_atomic_primitives=false
19588         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h.  */
19590
19591                 #include <stdatomic.h>
19592
19593                 void memory_barrier (void) { atomic_thread_fence (memory_order_acq_rel); }
19594                 int atomic_add (atomic_int *i) { return atomic_fetch_add_explicit (i, 1, memory_order_relaxed); }
19595                 int mutex_trylock (atomic_flag *m) { return atomic_flag_test_and_set_explicit (m, memory_order_acquire); }
19596                 void mutex_unlock (atomic_flag *m) { atomic_flag_clear_explicit (m, memory_order_release); }
19597
19598 int
19599 main (void)
19600 {
19601
19602   ;
19603   return 0;
19604 }
19605 _ACEOF
19606 if ac_fn_c_try_link "$LINENO"
19607 then :
19608   fc_cv_have_stdatomic_atomic_primitives=true
19609
19610 fi
19611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19612     conftest$ac_exeext conftest.$ac_ext
19613
19614 fi
19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_stdatomic_atomic_primitives" >&5
19616 printf "%s\n" "$fc_cv_have_stdatomic_atomic_primitives" >&6; }
19617 if $fc_cv_have_stdatomic_atomic_primitives; then
19618
19619 printf "%s\n" "#define HAVE_STDATOMIC_PRIMITIVES 1" >>confdefs.h
19620
19621 fi
19622
19623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
19624 printf %s "checking for Intel atomic primitives... " >&6; }
19625 if test ${fc_cv_have_intel_atomic_primitives+y}
19626 then :
19627   printf %s "(cached) " >&6
19628 else $as_nop
19629
19630         fc_cv_have_intel_atomic_primitives=false
19631         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19632 /* end confdefs.h.  */
19633
19634                 void memory_barrier (void) { __sync_synchronize (); }
19635                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
19636                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
19637                 void mutex_unlock (int *m) { __sync_lock_release (m); }
19638
19639 int
19640 main (void)
19641 {
19642
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 if ac_fn_c_try_link "$LINENO"
19648 then :
19649   fc_cv_have_intel_atomic_primitives=true
19650
19651 fi
19652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19653     conftest$ac_exeext conftest.$ac_ext
19654
19655 fi
19656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
19657 printf "%s\n" "$fc_cv_have_intel_atomic_primitives" >&6; }
19658 if $fc_cv_have_intel_atomic_primitives; then
19659
19660 printf "%s\n" "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
19661
19662 fi
19663
19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
19665 printf %s "checking for Solaris atomic operations... " >&6; }
19666 if test ${fc_cv_have_solaris_atomic_ops+y}
19667 then :
19668   printf %s "(cached) " >&6
19669 else $as_nop
19670
19671         fc_cv_have_solaris_atomic_ops=false
19672         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673 /* end confdefs.h.  */
19674
19675                 #include <atomic.h>
19676                 /* This requires Solaris Studio 12.2 or newer: */
19677                 #include <mbarrier.h>
19678                 void memory_barrier (void) { __machine_rw_barrier (); }
19679                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
19680                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
19681
19682 int
19683 main (void)
19684 {
19685
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 if ac_fn_c_try_link "$LINENO"
19691 then :
19692   fc_cv_have_solaris_atomic_ops=true
19693
19694 fi
19695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19696     conftest$ac_exeext conftest.$ac_ext
19697
19698 fi
19699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
19700 printf "%s\n" "$fc_cv_have_solaris_atomic_ops" >&6; }
19701 if $fc_cv_have_solaris_atomic_ops; then
19702
19703 printf "%s\n" "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
19704
19705 fi
19706
19707 if test "$os_win32" = no && ! $have_pthread; then
19708         ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19709 if test "x$ac_cv_header_sched_h" = xyes
19710 then :
19711   printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
19712
19713 fi
19714
19715         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19716 printf %s "checking for library containing sched_yield... " >&6; }
19717 if test ${ac_cv_search_sched_yield+y}
19718 then :
19719   printf %s "(cached) " >&6
19720 else $as_nop
19721   ac_func_search_save_LIBS=$LIBS
19722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h.  */
19724
19725 /* Override any GCC internal prototype to avoid an error.
19726    Use char because int might match the return type of a GCC
19727    builtin and then its argument prototype would still apply.  */
19728 char sched_yield ();
19729 int
19730 main (void)
19731 {
19732 return sched_yield ();
19733   ;
19734   return 0;
19735 }
19736 _ACEOF
19737 for ac_lib in '' rt
19738 do
19739   if test -z "$ac_lib"; then
19740     ac_res="none required"
19741   else
19742     ac_res=-l$ac_lib
19743     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19744   fi
19745   if ac_fn_c_try_link "$LINENO"
19746 then :
19747   ac_cv_search_sched_yield=$ac_res
19748 fi
19749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19750     conftest$ac_exeext
19751   if test ${ac_cv_search_sched_yield+y}
19752 then :
19753   break
19754 fi
19755 done
19756 if test ${ac_cv_search_sched_yield+y}
19757 then :
19758
19759 else $as_nop
19760   ac_cv_search_sched_yield=no
19761 fi
19762 rm conftest.$ac_ext
19763 LIBS=$ac_func_search_save_LIBS
19764 fi
19765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19766 printf "%s\n" "$ac_cv_search_sched_yield" >&6; }
19767 ac_res=$ac_cv_search_sched_yield
19768 if test "$ac_res" != no
19769 then :
19770   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19771
19772 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19773
19774 fi
19775
19776 fi
19777
19778 have_pthread=false
19779 if test "$os_win32" = no; then
19780
19781
19782 ac_ext=c
19783 ac_cpp='$CPP $CPPFLAGS'
19784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19787
19788 ax_pthread_ok=no
19789
19790 # We used to check for pthread.h first, but this fails if pthread.h
19791 # requires special compiler flags (e.g. on True64 or Sequent).
19792 # It gets checked for in the link test anyway.
19793
19794 # First of all, check if the user has set any of the PTHREAD_LIBS,
19795 # etcetera environment variables, and if threads linking works using
19796 # them:
19797 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19798         save_CFLAGS="$CFLAGS"
19799         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19800         save_LIBS="$LIBS"
19801         LIBS="$PTHREAD_LIBS $LIBS"
19802         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19803 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19804         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19805 /* end confdefs.h.  */
19806
19807 /* Override any GCC internal prototype to avoid an error.
19808    Use char because int might match the return type of a GCC
19809    builtin and then its argument prototype would still apply.  */
19810 char pthread_join ();
19811 int
19812 main (void)
19813 {
19814 return pthread_join ();
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 if ac_fn_c_try_link "$LINENO"
19820 then :
19821   ax_pthread_ok=yes
19822 fi
19823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19824     conftest$ac_exeext conftest.$ac_ext
19825         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19826 printf "%s\n" "$ax_pthread_ok" >&6; }
19827         if test x"$ax_pthread_ok" = xno; then
19828                 PTHREAD_LIBS=""
19829                 PTHREAD_CFLAGS=""
19830         fi
19831         LIBS="$save_LIBS"
19832         CFLAGS="$save_CFLAGS"
19833 fi
19834
19835 # We must check for the threads library under a number of different
19836 # names; the ordering is very important because some systems
19837 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19838 # libraries is broken (non-POSIX).
19839
19840 # Create a list of thread flags to try.  Items starting with a "-" are
19841 # C compiler flags, and other items are library names, except for "none"
19842 # which indicates that we try without any flags at all, and "pthread-config"
19843 # which is a program returning the flags for the Pth emulation library.
19844
19845 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19846
19847 # The ordering *is* (sometimes) important.  Some notes on the
19848 # individual items follow:
19849
19850 # pthreads: AIX (must check this before -lpthread)
19851 # none: in case threads are in libc; should be tried before -Kthread and
19852 #       other compiler flags to prevent continual compiler warnings
19853 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19854 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19855 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19856 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19857 # -pthreads: Solaris/gcc
19858 # -mthreads: Mingw32/gcc, Lynx/gcc
19859 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19860 #      doesn't hurt to check since this sometimes defines pthreads too;
19861 #      also defines -D_REENTRANT)
19862 #      ... -mt is also the pthreads flag for HP/aCC
19863 # pthread: Linux, etcetera
19864 # --thread-safe: KAI C++
19865 # pthread-config: use pthread-config program (for GNU Pth library)
19866
19867 case ${host_os} in
19868         solaris*)
19869
19870         # On Solaris (at least, for some versions), libc contains stubbed
19871         # (non-functional) versions of the pthreads routines, so link-based
19872         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
19873         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
19874         # a function called by this macro, so we could check for that, but
19875         # who knows whether they'll stub that too in a future libc.)  So,
19876         # we'll just look for -pthreads and -lpthread first:
19877
19878         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19879         ;;
19880
19881         darwin*)
19882         ax_pthread_flags="-pthread $ax_pthread_flags"
19883         ;;
19884         netbsd*)
19885         # use libc stubs, don't link against libpthread, to allow
19886         # dynamic loading
19887         ax_pthread_flags=""
19888         ;;
19889 esac
19890
19891 # Clang doesn't consider unrecognized options an error unless we specify
19892 # -Werror. We throw in some extra Clang-specific options to ensure that
19893 # this doesn't happen for GCC, which also accepts -Werror.
19894
19895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
19896 printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
19897 save_CFLAGS="$CFLAGS"
19898 ax_pthread_extra_flags="-Werror"
19899 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
19900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19901 /* end confdefs.h.  */
19902 int foo(void);
19903 int
19904 main (void)
19905 {
19906 foo()
19907   ;
19908   return 0;
19909 }
19910 _ACEOF
19911 if ac_fn_c_try_compile "$LINENO"
19912 then :
19913   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19914 printf "%s\n" "yes" >&6; }
19915 else $as_nop
19916   ax_pthread_extra_flags=
19917                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19918 printf "%s\n" "no" >&6; }
19919 fi
19920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19921 CFLAGS="$save_CFLAGS"
19922
19923 if test x"$ax_pthread_ok" = xno; then
19924 for flag in $ax_pthread_flags; do
19925
19926         case $flag in
19927                 none)
19928                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19929 printf %s "checking whether pthreads work without any flags... " >&6; }
19930                 ;;
19931
19932                 -*)
19933                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19934 printf %s "checking whether pthreads work with $flag... " >&6; }
19935                 PTHREAD_CFLAGS="$flag"
19936                 ;;
19937
19938                 pthread-config)
19939                 # Extract the first word of "pthread-config", so it can be a program name with args.
19940 set dummy pthread-config; ac_word=$2
19941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19942 printf %s "checking for $ac_word... " >&6; }
19943 if test ${ac_cv_prog_ax_pthread_config+y}
19944 then :
19945   printf %s "(cached) " >&6
19946 else $as_nop
19947   if test -n "$ax_pthread_config"; then
19948   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19949 else
19950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19951 for as_dir in $PATH
19952 do
19953   IFS=$as_save_IFS
19954   case $as_dir in #(((
19955     '') as_dir=./ ;;
19956     */) ;;
19957     *) as_dir=$as_dir/ ;;
19958   esac
19959     for ac_exec_ext in '' $ac_executable_extensions; do
19960   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19961     ac_cv_prog_ax_pthread_config="yes"
19962     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19963     break 2
19964   fi
19965 done
19966   done
19967 IFS=$as_save_IFS
19968
19969   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19970 fi
19971 fi
19972 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19973 if test -n "$ax_pthread_config"; then
19974   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19975 printf "%s\n" "$ax_pthread_config" >&6; }
19976 else
19977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19978 printf "%s\n" "no" >&6; }
19979 fi
19980
19981
19982                 if test x"$ax_pthread_config" = xno; then continue; fi
19983                 PTHREAD_CFLAGS="`pthread-config --cflags`"
19984                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19985                 ;;
19986
19987                 *)
19988                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19989 printf %s "checking for the pthreads library -l$flag... " >&6; }
19990                 PTHREAD_LIBS="-l$flag"
19991                 ;;
19992         esac
19993
19994         save_LIBS="$LIBS"
19995         save_CFLAGS="$CFLAGS"
19996         LIBS="$PTHREAD_LIBS $LIBS"
19997         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19998
19999         # Check for various functions.  We must include pthread.h,
20000         # since some functions may be macros.  (On the Sequent, we
20001         # need a special flag -Kthread to make this header compile.)
20002         # We check for pthread_join because it is in -lpthread on IRIX
20003         # while pthread_create is in libc.  We check for pthread_attr_init
20004         # due to DEC craziness with -lpthreads.  We check for
20005         # pthread_cleanup_push because it is one of the few pthread
20006         # functions on Solaris that doesn't have a non-functional libc stub.
20007         # We try pthread_create on general principles.
20008         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20009 /* end confdefs.h.  */
20010 #include <pthread.h>
20011                         static void routine(void *a) { a = 0; }
20012                         static void *start_routine(void *a) { return a; }
20013 int
20014 main (void)
20015 {
20016 pthread_t th; pthread_attr_t attr;
20017                         pthread_create(&th, 0, start_routine, 0);
20018                         pthread_join(th, 0);
20019                         pthread_attr_init(&attr);
20020                         pthread_cleanup_push(routine, 0);
20021                         pthread_cleanup_pop(0) /* ; */
20022   ;
20023   return 0;
20024 }
20025 _ACEOF
20026 if ac_fn_c_try_link "$LINENO"
20027 then :
20028   ax_pthread_ok=yes
20029 fi
20030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20031     conftest$ac_exeext conftest.$ac_ext
20032
20033         LIBS="$save_LIBS"
20034         CFLAGS="$save_CFLAGS"
20035
20036         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20037 printf "%s\n" "$ax_pthread_ok" >&6; }
20038         if test "x$ax_pthread_ok" = xyes; then
20039                 break;
20040         fi
20041
20042         PTHREAD_LIBS=""
20043         PTHREAD_CFLAGS=""
20044 done
20045 fi
20046
20047 # Various other checks:
20048 if test "x$ax_pthread_ok" = xyes; then
20049         save_LIBS="$LIBS"
20050         LIBS="$PTHREAD_LIBS $LIBS"
20051         save_CFLAGS="$CFLAGS"
20052         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20053
20054         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20055         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20056 printf %s "checking for joinable pthread attribute... " >&6; }
20057         attr_name=unknown
20058         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20059             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h.  */
20061 #include <pthread.h>
20062 int
20063 main (void)
20064 {
20065 int attr = $attr; return attr /* ; */
20066   ;
20067   return 0;
20068 }
20069 _ACEOF
20070 if ac_fn_c_try_link "$LINENO"
20071 then :
20072   attr_name=$attr; break
20073 fi
20074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20075     conftest$ac_exeext conftest.$ac_ext
20076         done
20077         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20078 printf "%s\n" "$attr_name" >&6; }
20079         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20080
20081 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
20082
20083         fi
20084
20085         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20086 printf %s "checking if more special flags are required for pthreads... " >&6; }
20087         flag=no
20088         case ${host_os} in
20089             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
20090             osf* | hpux*) flag="-D_REENTRANT";;
20091             solaris*)
20092             if test "$GCC" = "yes"; then
20093                 flag="-D_REENTRANT"
20094             else
20095                 # TODO: What about Clang on Solaris?
20096                 flag="-mt -D_REENTRANT"
20097             fi
20098             ;;
20099         esac
20100         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
20101 printf "%s\n" "$flag" >&6; }
20102         if test "x$flag" != xno; then
20103             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20104         fi
20105
20106         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20107 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20108 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
20109 then :
20110   printf %s "(cached) " >&6
20111 else $as_nop
20112
20113                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20114 /* end confdefs.h.  */
20115 #include <pthread.h>
20116 int
20117 main (void)
20118 {
20119 int i = PTHREAD_PRIO_INHERIT;
20120   ;
20121   return 0;
20122 }
20123 _ACEOF
20124 if ac_fn_c_try_link "$LINENO"
20125 then :
20126   ax_cv_PTHREAD_PRIO_INHERIT=yes
20127 else $as_nop
20128   ax_cv_PTHREAD_PRIO_INHERIT=no
20129 fi
20130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20131     conftest$ac_exeext conftest.$ac_ext
20132
20133 fi
20134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20135 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20136         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
20137 then :
20138
20139 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20140
20141 fi
20142
20143         LIBS="$save_LIBS"
20144         CFLAGS="$save_CFLAGS"
20145
20146         # More AIX lossage: compile with *_r variant
20147         if test "x$GCC" != xyes; then
20148             case $host_os in
20149                 aix*)
20150                 case "x/$CC" in #(
20151   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20152     #handle absolute path differently from PATH based program lookup
20153                    case "x$CC" in #(
20154   x/*) :
20155     if as_fn_executable_p ${CC}_r
20156 then :
20157   PTHREAD_CC="${CC}_r"
20158 fi ;; #(
20159   *) :
20160     for ac_prog in ${CC}_r
20161 do
20162   # Extract the first word of "$ac_prog", so it can be a program name with args.
20163 set dummy $ac_prog; ac_word=$2
20164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20165 printf %s "checking for $ac_word... " >&6; }
20166 if test ${ac_cv_prog_PTHREAD_CC+y}
20167 then :
20168   printf %s "(cached) " >&6
20169 else $as_nop
20170   if test -n "$PTHREAD_CC"; then
20171   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20172 else
20173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20174 for as_dir in $PATH
20175 do
20176   IFS=$as_save_IFS
20177   case $as_dir in #(((
20178     '') as_dir=./ ;;
20179     */) ;;
20180     *) as_dir=$as_dir/ ;;
20181   esac
20182     for ac_exec_ext in '' $ac_executable_extensions; do
20183   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20184     ac_cv_prog_PTHREAD_CC="$ac_prog"
20185     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20186     break 2
20187   fi
20188 done
20189   done
20190 IFS=$as_save_IFS
20191
20192 fi
20193 fi
20194 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20195 if test -n "$PTHREAD_CC"; then
20196   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20197 printf "%s\n" "$PTHREAD_CC" >&6; }
20198 else
20199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20200 printf "%s\n" "no" >&6; }
20201 fi
20202
20203
20204   test -n "$PTHREAD_CC" && break
20205 done
20206 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20207  ;;
20208 esac ;; #(
20209   *) :
20210      ;;
20211 esac
20212                 ;;
20213             esac
20214         fi
20215 fi
20216
20217 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20218
20219
20220
20221
20222
20223 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20224 if test x"$ax_pthread_ok" = xyes; then
20225         have_pthread=true
20226         :
20227 else
20228         ax_pthread_ok=no
20229
20230 fi
20231 ac_ext=c
20232 ac_cpp='$CPP $CPPFLAGS'
20233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20236
20237
20238 fi
20239 if $have_pthread; then
20240         LIBS="$PTHREAD_LIBS $LIBS"
20241         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20242         CC="$PTHREAD_CC"
20243
20244 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20245
20246 fi
20247  if $have_pthread; then
20248   HAVE_PTHREAD_TRUE=
20249   HAVE_PTHREAD_FALSE='#'
20250 else
20251   HAVE_PTHREAD_TRUE='#'
20252   HAVE_PTHREAD_FALSE=
20253 fi
20254
20255
20256
20257
20258 #
20259 # Let people not build/install docs if they don't have docbook
20260 #
20261
20262 # Check whether --enable-docbook was given.
20263 if test ${enable_docbook+y}
20264 then :
20265   enableval=$enable_docbook;
20266 fi
20267
20268
20269 if test x$enable_docbook != xno; then
20270         # Extract the first word of "docbook2html", so it can be a program name with args.
20271 set dummy docbook2html; ac_word=$2
20272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20273 printf %s "checking for $ac_word... " >&6; }
20274 if test ${ac_cv_prog_HASDOCBOOK+y}
20275 then :
20276   printf %s "(cached) " >&6
20277 else $as_nop
20278   if test -n "$HASDOCBOOK"; then
20279   ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
20280 else
20281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20282 for as_dir in $PATH
20283 do
20284   IFS=$as_save_IFS
20285   case $as_dir in #(((
20286     '') as_dir=./ ;;
20287     */) ;;
20288     *) as_dir=$as_dir/ ;;
20289   esac
20290     for ac_exec_ext in '' $ac_executable_extensions; do
20291   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20292     ac_cv_prog_HASDOCBOOK="yes"
20293     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20294     break 2
20295   fi
20296 done
20297   done
20298 IFS=$as_save_IFS
20299
20300   test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
20301 fi
20302 fi
20303 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
20304 if test -n "$HASDOCBOOK"; then
20305   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
20306 printf "%s\n" "$HASDOCBOOK" >&6; }
20307 else
20308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20309 printf "%s\n" "no" >&6; }
20310 fi
20311
20312
20313 fi
20314
20315  if test "x$HASDOCBOOK" = xyes; then
20316   USEDOCBOOK_TRUE=
20317   USEDOCBOOK_FALSE='#'
20318 else
20319   USEDOCBOOK_TRUE='#'
20320   USEDOCBOOK_FALSE=
20321 fi
20322
20323
20324 default_docs="yes"
20325 #
20326 # Check if docs exist or can be created
20327 #
20328 if test x$HASDOCBOOK = xno; then
20329         if test -f $srcdir/doc/fonts-conf.5; then
20330                 :
20331         else
20332                 default_docs="no"
20333         fi
20334 fi
20335
20336 # Check whether --enable-docs was given.
20337 if test ${enable_docs+y}
20338 then :
20339   enableval=$enable_docs;
20340 else $as_nop
20341   enable_docs=$default_docs
20342 fi
20343
20344
20345  if test "x$enable_docs" = xyes; then
20346   ENABLE_DOCS_TRUE=
20347   ENABLE_DOCS_FALSE='#'
20348 else
20349   ENABLE_DOCS_TRUE='#'
20350   ENABLE_DOCS_FALSE=
20351 fi
20352
20353
20354 if test "x$enable_docs" = xyes; then
20355         tmp=funcs.$$
20356         cat $srcdir/doc/*.fncs | awk '
20357         /^@TITLE@/      { if (!done) { printf ("%s\n", $2); done = 1; } }
20358         /^@FUNC@/       { if (!done) { printf ("%s\n", $2); done = 1; } }
20359         /^@@/           { done = 0; }' > $tmp
20360         DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
20361         echo DOCMAN3 $DOCMAN3
20362         rm -f $tmp
20363 else
20364         DOCMAN3=""
20365 fi
20366
20367
20368 default_cache_build="yes"
20369 if test $cross_compiling = "yes"; then
20370         default_cache_build="no"
20371 fi
20372 # Check whether --enable-cache-build was given.
20373 if test ${enable_cache_build+y}
20374 then :
20375   enableval=$enable_cache_build;
20376 else $as_nop
20377   enable_cache_build=$default_cache_build
20378 fi
20379
20380
20381  if test "x$enable_cache_build" = xyes; then
20382   ENABLE_CACHE_BUILD_TRUE=
20383   ENABLE_CACHE_BUILD_FALSE='#'
20384 else
20385   ENABLE_CACHE_BUILD_TRUE='#'
20386   ENABLE_CACHE_BUILD_FALSE=
20387 fi
20388
20389
20390
20391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20392 printf %s "checking whether byte ordering is bigendian... " >&6; }
20393 if test ${ac_cv_c_bigendian+y}
20394 then :
20395   printf %s "(cached) " >&6
20396 else $as_nop
20397   ac_cv_c_bigendian=unknown
20398     # See if we're dealing with a universal compiler.
20399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h.  */
20401 #ifndef __APPLE_CC__
20402                not a universal capable compiler
20403              #endif
20404              typedef int dummy;
20405
20406 _ACEOF
20407 if ac_fn_c_try_compile "$LINENO"
20408 then :
20409
20410         # Check for potential -arch flags.  It is not universal unless
20411         # there are at least two -arch flags with different values.
20412         ac_arch=
20413         ac_prev=
20414         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20415          if test -n "$ac_prev"; then
20416            case $ac_word in
20417              i?86 | x86_64 | ppc | ppc64)
20418                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20419                  ac_arch=$ac_word
20420                else
20421                  ac_cv_c_bigendian=universal
20422                  break
20423                fi
20424                ;;
20425            esac
20426            ac_prev=
20427          elif test "x$ac_word" = "x-arch"; then
20428            ac_prev=arch
20429          fi
20430        done
20431 fi
20432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20433     if test $ac_cv_c_bigendian = unknown; then
20434       # See if sys/param.h defines the BYTE_ORDER macro.
20435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436 /* end confdefs.h.  */
20437 #include <sys/types.h>
20438              #include <sys/param.h>
20439
20440 int
20441 main (void)
20442 {
20443 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20444                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20445                      && LITTLE_ENDIAN)
20446               bogus endian macros
20447              #endif
20448
20449   ;
20450   return 0;
20451 }
20452 _ACEOF
20453 if ac_fn_c_try_compile "$LINENO"
20454 then :
20455   # It does; now see whether it defined to BIG_ENDIAN or not.
20456          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457 /* end confdefs.h.  */
20458 #include <sys/types.h>
20459                 #include <sys/param.h>
20460
20461 int
20462 main (void)
20463 {
20464 #if BYTE_ORDER != BIG_ENDIAN
20465                  not big endian
20466                 #endif
20467
20468   ;
20469   return 0;
20470 }
20471 _ACEOF
20472 if ac_fn_c_try_compile "$LINENO"
20473 then :
20474   ac_cv_c_bigendian=yes
20475 else $as_nop
20476   ac_cv_c_bigendian=no
20477 fi
20478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20479 fi
20480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20481     fi
20482     if test $ac_cv_c_bigendian = unknown; then
20483       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20484       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20485 /* end confdefs.h.  */
20486 #include <limits.h>
20487
20488 int
20489 main (void)
20490 {
20491 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20492               bogus endian macros
20493              #endif
20494
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 if ac_fn_c_try_compile "$LINENO"
20500 then :
20501   # It does; now see whether it defined to _BIG_ENDIAN or not.
20502          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h.  */
20504 #include <limits.h>
20505
20506 int
20507 main (void)
20508 {
20509 #ifndef _BIG_ENDIAN
20510                  not big endian
20511                 #endif
20512
20513   ;
20514   return 0;
20515 }
20516 _ACEOF
20517 if ac_fn_c_try_compile "$LINENO"
20518 then :
20519   ac_cv_c_bigendian=yes
20520 else $as_nop
20521   ac_cv_c_bigendian=no
20522 fi
20523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20524 fi
20525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20526     fi
20527     if test $ac_cv_c_bigendian = unknown; then
20528       # Compile a test program.
20529       if test "$cross_compiling" = yes
20530 then :
20531   # Try to guess by grepping values from an object file.
20532          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h.  */
20534 unsigned short int ascii_mm[] =
20535                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20536                 unsigned short int ascii_ii[] =
20537                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20538                 int use_ascii (int i) {
20539                   return ascii_mm[i] + ascii_ii[i];
20540                 }
20541                 unsigned short int ebcdic_ii[] =
20542                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20543                 unsigned short int ebcdic_mm[] =
20544                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20545                 int use_ebcdic (int i) {
20546                   return ebcdic_mm[i] + ebcdic_ii[i];
20547                 }
20548                 extern int foo;
20549
20550 int
20551 main (void)
20552 {
20553 return use_ascii (foo) == use_ebcdic (foo);
20554   ;
20555   return 0;
20556 }
20557 _ACEOF
20558 if ac_fn_c_try_compile "$LINENO"
20559 then :
20560   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20561               ac_cv_c_bigendian=yes
20562             fi
20563             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20564               if test "$ac_cv_c_bigendian" = unknown; then
20565                 ac_cv_c_bigendian=no
20566               else
20567                 # finding both strings is unlikely to happen, but who knows?
20568                 ac_cv_c_bigendian=unknown
20569               fi
20570             fi
20571 fi
20572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20573 else $as_nop
20574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h.  */
20576 $ac_includes_default
20577 int
20578 main (void)
20579 {
20580
20581              /* Are we little or big endian?  From Harbison&Steele.  */
20582              union
20583              {
20584                long int l;
20585                char c[sizeof (long int)];
20586              } u;
20587              u.l = 1;
20588              return u.c[sizeof (long int) - 1] == 1;
20589
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 if ac_fn_c_try_run "$LINENO"
20595 then :
20596   ac_cv_c_bigendian=no
20597 else $as_nop
20598   ac_cv_c_bigendian=yes
20599 fi
20600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20601   conftest.$ac_objext conftest.beam conftest.$ac_ext
20602 fi
20603
20604     fi
20605 fi
20606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20607 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
20608  case $ac_cv_c_bigendian in #(
20609    yes)
20610      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
20611 ;; #(
20612    no)
20613       ;; #(
20614    universal)
20615
20616 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20617
20618      ;; #(
20619    *)
20620      as_fn_error $? "unknown endianness
20621  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20622  esac
20623
20624 # The cast to long int works around a bug in the HP C Compiler
20625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20627 # This bug is HP SR number 8606223364.
20628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20629 printf %s "checking size of void *... " >&6; }
20630 if test ${ac_cv_sizeof_void_p+y}
20631 then :
20632   printf %s "(cached) " >&6
20633 else $as_nop
20634   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
20635 then :
20636
20637 else $as_nop
20638   if test "$ac_cv_type_void_p" = yes; then
20639      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20640 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20641 as_fn_error 77 "cannot compute sizeof (void *)
20642 See \`config.log' for more details" "$LINENO" 5; }
20643    else
20644      ac_cv_sizeof_void_p=0
20645    fi
20646 fi
20647
20648 fi
20649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20650 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
20651
20652
20653
20654 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
20655
20656
20657 # The cast to long int works around a bug in the HP C Compiler,
20658 # see AC_CHECK_SIZEOF for more information.
20659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
20660 printf %s "checking alignment of double... " >&6; }
20661 if test ${ac_cv_alignof_double+y}
20662 then :
20663   printf %s "(cached) " >&6
20664 else $as_nop
20665   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
20666 typedef struct { char x; double y; } ac__type_alignof_;"
20667 then :
20668
20669 else $as_nop
20670   if test "$ac_cv_type_double" = yes; then
20671      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20672 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20673 as_fn_error 77 "cannot compute alignment of double
20674 See \`config.log' for more details" "$LINENO" 5; }
20675    else
20676      ac_cv_alignof_double=0
20677    fi
20678 fi
20679
20680 fi
20681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
20682 printf "%s\n" "$ac_cv_alignof_double" >&6; }
20683
20684
20685
20686 printf "%s\n" "#define ALIGNOF_DOUBLE $ac_cv_alignof_double" >>confdefs.h
20687
20688
20689 # The cast to long int works around a bug in the HP C Compiler,
20690 # see AC_CHECK_SIZEOF for more information.
20691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
20692 printf %s "checking alignment of void *... " >&6; }
20693 if test ${ac_cv_alignof_void_p+y}
20694 then :
20695   printf %s "(cached) " >&6
20696 else $as_nop
20697   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p"        "$ac_includes_default
20698 typedef struct { char x; void * y; } ac__type_alignof_;"
20699 then :
20700
20701 else $as_nop
20702   if test "$ac_cv_type_void_p" = yes; then
20703      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20704 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20705 as_fn_error 77 "cannot compute alignment of void *
20706 See \`config.log' for more details" "$LINENO" 5; }
20707    else
20708      ac_cv_alignof_void_p=0
20709    fi
20710 fi
20711
20712 fi
20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
20714 printf "%s\n" "$ac_cv_alignof_void_p" >&6; }
20715
20716
20717
20718 printf "%s\n" "#define ALIGNOF_VOID_P $ac_cv_alignof_void_p" >>confdefs.h
20719
20720
20721
20722
20723
20724
20725
20726
20727 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-conflist/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml its/Makefile po/Makefile.in po-conf/Makefile.in test/Makefile fontconfig.pc fontconfig-zip"
20728
20729 cat >confcache <<\_ACEOF
20730 # This file is a shell script that caches the results of configure
20731 # tests run on this system so they can be shared between configure
20732 # scripts and configure runs, see configure's option --config-cache.
20733 # It is not useful on other systems.  If it contains results you don't
20734 # want to keep, you may remove or edit it.
20735 #
20736 # config.status only pays attention to the cache file if you give it
20737 # the --recheck option to rerun configure.
20738 #
20739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20741 # following values.
20742
20743 _ACEOF
20744
20745 # The following way of writing the cache mishandles newlines in values,
20746 # but we know of no workaround that is simple, portable, and efficient.
20747 # So, we kill variables containing newlines.
20748 # Ultrix sh set writes to stderr and can't be redirected directly,
20749 # and sets the high bit in the cache file unless we assign to the vars.
20750 (
20751   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20752     eval ac_val=\$$ac_var
20753     case $ac_val in #(
20754     *${as_nl}*)
20755       case $ac_var in #(
20756       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20757 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20758       esac
20759       case $ac_var in #(
20760       _ | IFS | as_nl) ;; #(
20761       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20762       *) { eval $ac_var=; unset $ac_var;} ;;
20763       esac ;;
20764     esac
20765   done
20766
20767   (set) 2>&1 |
20768     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20769     *${as_nl}ac_space=\ *)
20770       # `set' does not quote correctly, so add quotes: double-quote
20771       # substitution turns \\\\ into \\, and sed turns \\ into \.
20772       sed -n \
20773         "s/'/'\\\\''/g;
20774           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20775       ;; #(
20776     *)
20777       # `set' quotes correctly as required by POSIX, so do not add quotes.
20778       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20779       ;;
20780     esac |
20781     sort
20782 ) |
20783   sed '
20784      /^ac_cv_env_/b end
20785      t clear
20786      :clear
20787      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20788      t end
20789      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20790      :end' >>confcache
20791 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20792   if test -w "$cache_file"; then
20793     if test "x$cache_file" != "x/dev/null"; then
20794       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20795 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20796       if test ! -f "$cache_file" || test -h "$cache_file"; then
20797         cat confcache >"$cache_file"
20798       else
20799         case $cache_file in #(
20800         */* | ?:*)
20801           mv -f confcache "$cache_file"$$ &&
20802           mv -f "$cache_file"$$ "$cache_file" ;; #(
20803         *)
20804           mv -f confcache "$cache_file" ;;
20805         esac
20806       fi
20807     fi
20808   else
20809     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20810 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20811   fi
20812 fi
20813 rm -f confcache
20814
20815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20816 # Let make expand exec_prefix.
20817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20818
20819 DEFS=-DHAVE_CONFIG_H
20820
20821 ac_libobjs=
20822 ac_ltlibobjs=
20823 U=
20824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20825   # 1. Remove the extension, and $U if already installed.
20826   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20827   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20828   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20829   #    will be set to the directory where LIBOBJS objects are built.
20830   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20831   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20832 done
20833 LIBOBJS=$ac_libobjs
20834
20835 LTLIBOBJS=$ac_ltlibobjs
20836
20837
20838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20839 printf %s "checking that generated files are newer than configure... " >&6; }
20840    if test -n "$am_sleep_pid"; then
20841      # Hide warnings about reused PIDs.
20842      wait $am_sleep_pid 2>/dev/null
20843    fi
20844    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20845 printf "%s\n" "done" >&6; }
20846  if test -n "$EXEEXT"; then
20847   am__EXEEXT_TRUE=
20848   am__EXEEXT_FALSE='#'
20849 else
20850   am__EXEEXT_TRUE='#'
20851   am__EXEEXT_FALSE=
20852 fi
20853
20854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20855   as_fn_error $? "conditional \"AMDEP\" was never defined.
20856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20857 fi
20858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20859   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20861 fi
20862 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20863   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
20864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20865 fi
20866 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
20867   as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
20868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20869 fi
20870 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
20871   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
20872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20873 fi
20874 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
20875   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
20876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20877 fi
20878 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
20879   as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
20880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20881 fi
20882 if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
20883   as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
20884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20885 fi
20886 if test -z "${ENABLE_JSONC_TRUE}" && test -z "${ENABLE_JSONC_FALSE}"; then
20887   as_fn_error $? "conditional \"ENABLE_JSONC\" was never defined.
20888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20889 fi
20890 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
20891   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
20892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20893 fi
20894 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
20895   as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
20896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20897 fi
20898 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
20899   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
20900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20901 fi
20902 if test -z "${ENABLE_CACHE_BUILD_TRUE}" && test -z "${ENABLE_CACHE_BUILD_FALSE}"; then
20903   as_fn_error $? "conditional \"ENABLE_CACHE_BUILD\" was never defined.
20904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20905 fi
20906
20907
20908 : "${CONFIG_STATUS=./config.status}"
20909 ac_write_fail=0
20910 ac_clean_files_save=$ac_clean_files
20911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20913 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20914 as_write_fail=0
20915 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20916 #! $SHELL
20917 # Generated by $as_me.
20918 # Run this file to recreate the current configuration.
20919 # Compiler output produced by configure, useful for debugging
20920 # configure, is in config.log if it exists.
20921
20922 debug=false
20923 ac_cs_recheck=false
20924 ac_cs_silent=false
20925
20926 SHELL=\${CONFIG_SHELL-$SHELL}
20927 export SHELL
20928 _ASEOF
20929 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20930 ## -------------------- ##
20931 ## M4sh Initialization. ##
20932 ## -------------------- ##
20933
20934 # Be more Bourne compatible
20935 DUALCASE=1; export DUALCASE # for MKS sh
20936 as_nop=:
20937 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20938 then :
20939   emulate sh
20940   NULLCMD=:
20941   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20942   # is contrary to our usage.  Disable this feature.
20943   alias -g '${1+"$@"}'='"$@"'
20944   setopt NO_GLOB_SUBST
20945 else $as_nop
20946   case `(set -o) 2>/dev/null` in #(
20947   *posix*) :
20948     set -o posix ;; #(
20949   *) :
20950      ;;
20951 esac
20952 fi
20953
20954
20955
20956 # Reset variables that may have inherited troublesome values from
20957 # the environment.
20958
20959 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20960 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20961 # side effect of setting IFS to empty, thus disabling word splitting.)
20962 # Quoting is to prevent editors from complaining about space-tab.
20963 as_nl='
20964 '
20965 export as_nl
20966 IFS=" ""        $as_nl"
20967
20968 PS1='$ '
20969 PS2='> '
20970 PS4='+ '
20971
20972 # Ensure predictable behavior from utilities with locale-dependent output.
20973 LC_ALL=C
20974 export LC_ALL
20975 LANGUAGE=C
20976 export LANGUAGE
20977
20978 # We cannot yet rely on "unset" to work, but we need these variables
20979 # to be unset--not just set to an empty or harmless value--now, to
20980 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20981 # also avoids known problems related to "unset" and subshell syntax
20982 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20983 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20984 do eval test \${$as_var+y} \
20985   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20986 done
20987
20988 # Ensure that fds 0, 1, and 2 are open.
20989 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20990 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20991 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20992
20993 # The user is always right.
20994 if ${PATH_SEPARATOR+false} :; then
20995   PATH_SEPARATOR=:
20996   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20997     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20998       PATH_SEPARATOR=';'
20999   }
21000 fi
21001
21002
21003 # Find who we are.  Look in the path if we contain no directory separator.
21004 as_myself=
21005 case $0 in #((
21006   *[\\/]* ) as_myself=$0 ;;
21007   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21008 for as_dir in $PATH
21009 do
21010   IFS=$as_save_IFS
21011   case $as_dir in #(((
21012     '') as_dir=./ ;;
21013     */) ;;
21014     *) as_dir=$as_dir/ ;;
21015   esac
21016     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21017   done
21018 IFS=$as_save_IFS
21019
21020      ;;
21021 esac
21022 # We did not find ourselves, most probably we were run as `sh COMMAND'
21023 # in which case we are not to be found in the path.
21024 if test "x$as_myself" = x; then
21025   as_myself=$0
21026 fi
21027 if test ! -f "$as_myself"; then
21028   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21029   exit 1
21030 fi
21031
21032
21033
21034 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21035 # ----------------------------------------
21036 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21037 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21038 # script with STATUS, using 1 if that was 0.
21039 as_fn_error ()
21040 {
21041   as_status=$1; test $as_status -eq 0 && as_status=1
21042   if test "$4"; then
21043     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21044     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21045   fi
21046   printf "%s\n" "$as_me: error: $2" >&2
21047   as_fn_exit $as_status
21048 } # as_fn_error
21049
21050
21051
21052 # as_fn_set_status STATUS
21053 # -----------------------
21054 # Set $? to STATUS, without forking.
21055 as_fn_set_status ()
21056 {
21057   return $1
21058 } # as_fn_set_status
21059
21060 # as_fn_exit STATUS
21061 # -----------------
21062 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21063 as_fn_exit ()
21064 {
21065   set +e
21066   as_fn_set_status $1
21067   exit $1
21068 } # as_fn_exit
21069
21070 # as_fn_unset VAR
21071 # ---------------
21072 # Portably unset VAR.
21073 as_fn_unset ()
21074 {
21075   { eval $1=; unset $1;}
21076 }
21077 as_unset=as_fn_unset
21078
21079 # as_fn_append VAR VALUE
21080 # ----------------------
21081 # Append the text in VALUE to the end of the definition contained in VAR. Take
21082 # advantage of any shell optimizations that allow amortized linear growth over
21083 # repeated appends, instead of the typical quadratic growth present in naive
21084 # implementations.
21085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21086 then :
21087   eval 'as_fn_append ()
21088   {
21089     eval $1+=\$2
21090   }'
21091 else $as_nop
21092   as_fn_append ()
21093   {
21094     eval $1=\$$1\$2
21095   }
21096 fi # as_fn_append
21097
21098 # as_fn_arith ARG...
21099 # ------------------
21100 # Perform arithmetic evaluation on the ARGs, and store the result in the
21101 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21102 # must be portable across $(()) and expr.
21103 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21104 then :
21105   eval 'as_fn_arith ()
21106   {
21107     as_val=$(( $* ))
21108   }'
21109 else $as_nop
21110   as_fn_arith ()
21111   {
21112     as_val=`expr "$@" || test $? -eq 1`
21113   }
21114 fi # as_fn_arith
21115
21116
21117 if expr a : '\(a\)' >/dev/null 2>&1 &&
21118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21119   as_expr=expr
21120 else
21121   as_expr=false
21122 fi
21123
21124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21125   as_basename=basename
21126 else
21127   as_basename=false
21128 fi
21129
21130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21131   as_dirname=dirname
21132 else
21133   as_dirname=false
21134 fi
21135
21136 as_me=`$as_basename -- "$0" ||
21137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21138          X"$0" : 'X\(//\)$' \| \
21139          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21140 printf "%s\n" X/"$0" |
21141     sed '/^.*\/\([^/][^/]*\)\/*$/{
21142             s//\1/
21143             q
21144           }
21145           /^X\/\(\/\/\)$/{
21146             s//\1/
21147             q
21148           }
21149           /^X\/\(\/\).*/{
21150             s//\1/
21151             q
21152           }
21153           s/.*/./; q'`
21154
21155 # Avoid depending upon Character Ranges.
21156 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21157 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21158 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21159 as_cr_digits='0123456789'
21160 as_cr_alnum=$as_cr_Letters$as_cr_digits
21161
21162
21163 # Determine whether it's possible to make 'echo' print without a newline.
21164 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21165 # for compatibility with existing Makefiles.
21166 ECHO_C= ECHO_N= ECHO_T=
21167 case `echo -n x` in #(((((
21168 -n*)
21169   case `echo 'xy\c'` in
21170   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21171   xy)  ECHO_C='\c';;
21172   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21173        ECHO_T=' ';;
21174   esac;;
21175 *)
21176   ECHO_N='-n';;
21177 esac
21178
21179 # For backward compatibility with old third-party macros, we provide
21180 # the shell variables $as_echo and $as_echo_n.  New code should use
21181 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21182 as_echo='printf %s\n'
21183 as_echo_n='printf %s'
21184
21185 rm -f conf$$ conf$$.exe conf$$.file
21186 if test -d conf$$.dir; then
21187   rm -f conf$$.dir/conf$$.file
21188 else
21189   rm -f conf$$.dir
21190   mkdir conf$$.dir 2>/dev/null
21191 fi
21192 if (echo >conf$$.file) 2>/dev/null; then
21193   if ln -s conf$$.file conf$$ 2>/dev/null; then
21194     as_ln_s='ln -s'
21195     # ... but there are two gotchas:
21196     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21197     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21198     # In both cases, we have to default to `cp -pR'.
21199     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21200       as_ln_s='cp -pR'
21201   elif ln conf$$.file conf$$ 2>/dev/null; then
21202     as_ln_s=ln
21203   else
21204     as_ln_s='cp -pR'
21205   fi
21206 else
21207   as_ln_s='cp -pR'
21208 fi
21209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21210 rmdir conf$$.dir 2>/dev/null
21211
21212
21213 # as_fn_mkdir_p
21214 # -------------
21215 # Create "$as_dir" as a directory, including parents if necessary.
21216 as_fn_mkdir_p ()
21217 {
21218
21219   case $as_dir in #(
21220   -*) as_dir=./$as_dir;;
21221   esac
21222   test -d "$as_dir" || eval $as_mkdir_p || {
21223     as_dirs=
21224     while :; do
21225       case $as_dir in #(
21226       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21227       *) as_qdir=$as_dir;;
21228       esac
21229       as_dirs="'$as_qdir' $as_dirs"
21230       as_dir=`$as_dirname -- "$as_dir" ||
21231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21232          X"$as_dir" : 'X\(//\)[^/]' \| \
21233          X"$as_dir" : 'X\(//\)$' \| \
21234          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21235 printf "%s\n" X"$as_dir" |
21236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21237             s//\1/
21238             q
21239           }
21240           /^X\(\/\/\)[^/].*/{
21241             s//\1/
21242             q
21243           }
21244           /^X\(\/\/\)$/{
21245             s//\1/
21246             q
21247           }
21248           /^X\(\/\).*/{
21249             s//\1/
21250             q
21251           }
21252           s/.*/./; q'`
21253       test -d "$as_dir" && break
21254     done
21255     test -z "$as_dirs" || eval "mkdir $as_dirs"
21256   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21257
21258
21259 } # as_fn_mkdir_p
21260 if mkdir -p . 2>/dev/null; then
21261   as_mkdir_p='mkdir -p "$as_dir"'
21262 else
21263   test -d ./-p && rmdir ./-p
21264   as_mkdir_p=false
21265 fi
21266
21267
21268 # as_fn_executable_p FILE
21269 # -----------------------
21270 # Test if FILE is an executable regular file.
21271 as_fn_executable_p ()
21272 {
21273   test -f "$1" && test -x "$1"
21274 } # as_fn_executable_p
21275 as_test_x='test -x'
21276 as_executable_p=as_fn_executable_p
21277
21278 # Sed expression to map a string onto a valid CPP name.
21279 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21280
21281 # Sed expression to map a string onto a valid variable name.
21282 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21283
21284
21285 exec 6>&1
21286 ## ----------------------------------- ##
21287 ## Main body of $CONFIG_STATUS script. ##
21288 ## ----------------------------------- ##
21289 _ASEOF
21290 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21291
21292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21293 # Save the log message, to keep $0 and so on meaningful, and to
21294 # report actual input values of CONFIG_FILES etc. instead of their
21295 # values after options handling.
21296 ac_log="
21297 This file was extended by fontconfig $as_me 2.14.2, which was
21298 generated by GNU Autoconf 2.71.  Invocation command line was
21299
21300   CONFIG_FILES    = $CONFIG_FILES
21301   CONFIG_HEADERS  = $CONFIG_HEADERS
21302   CONFIG_LINKS    = $CONFIG_LINKS
21303   CONFIG_COMMANDS = $CONFIG_COMMANDS
21304   $ $0 $@
21305
21306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21307 "
21308
21309 _ACEOF
21310
21311 case $ac_config_files in *"
21312 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21313 esac
21314
21315 case $ac_config_headers in *"
21316 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21317 esac
21318
21319
21320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21321 # Files that config.status was made for.
21322 config_files="$ac_config_files"
21323 config_headers="$ac_config_headers"
21324 config_commands="$ac_config_commands"
21325
21326 _ACEOF
21327
21328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21329 ac_cs_usage="\
21330 \`$as_me' instantiates files and other configuration actions
21331 from templates according to the current configuration.  Unless the files
21332 and actions are specified as TAGs, all are instantiated by default.
21333
21334 Usage: $0 [OPTION]... [TAG]...
21335
21336   -h, --help       print this help, then exit
21337   -V, --version    print version number and configuration settings, then exit
21338       --config     print configuration, then exit
21339   -q, --quiet, --silent
21340                    do not print progress messages
21341   -d, --debug      don't remove temporary files
21342       --recheck    update $as_me by reconfiguring in the same conditions
21343       --file=FILE[:TEMPLATE]
21344                    instantiate the configuration file FILE
21345       --header=FILE[:TEMPLATE]
21346                    instantiate the configuration header FILE
21347
21348 Configuration files:
21349 $config_files
21350
21351 Configuration headers:
21352 $config_headers
21353
21354 Configuration commands:
21355 $config_commands
21356
21357 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>."
21358
21359 _ACEOF
21360 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21361 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21363 ac_cs_config='$ac_cs_config_escaped'
21364 ac_cs_version="\\
21365 fontconfig config.status 2.14.2
21366 configured by $0, generated by GNU Autoconf 2.71,
21367   with options \\"\$ac_cs_config\\"
21368
21369 Copyright (C) 2021 Free Software Foundation, Inc.
21370 This config.status script is free software; the Free Software Foundation
21371 gives unlimited permission to copy, distribute and modify it."
21372
21373 ac_pwd='$ac_pwd'
21374 srcdir='$srcdir'
21375 INSTALL='$INSTALL'
21376 MKDIR_P='$MKDIR_P'
21377 AWK='$AWK'
21378 test -n "\$AWK" || AWK=awk
21379 _ACEOF
21380
21381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382 # The default lists apply if the user does not specify any file.
21383 ac_need_defaults=:
21384 while test $# != 0
21385 do
21386   case $1 in
21387   --*=?*)
21388     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21389     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21390     ac_shift=:
21391     ;;
21392   --*=)
21393     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21394     ac_optarg=
21395     ac_shift=:
21396     ;;
21397   *)
21398     ac_option=$1
21399     ac_optarg=$2
21400     ac_shift=shift
21401     ;;
21402   esac
21403
21404   case $ac_option in
21405   # Handling of the options.
21406   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21407     ac_cs_recheck=: ;;
21408   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21409     printf "%s\n" "$ac_cs_version"; exit ;;
21410   --config | --confi | --conf | --con | --co | --c )
21411     printf "%s\n" "$ac_cs_config"; exit ;;
21412   --debug | --debu | --deb | --de | --d | -d )
21413     debug=: ;;
21414   --file | --fil | --fi | --f )
21415     $ac_shift
21416     case $ac_optarg in
21417     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21418     '') as_fn_error $? "missing file argument" ;;
21419     esac
21420     as_fn_append CONFIG_FILES " '$ac_optarg'"
21421     ac_need_defaults=false;;
21422   --header | --heade | --head | --hea )
21423     $ac_shift
21424     case $ac_optarg in
21425     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21426     esac
21427     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21428     ac_need_defaults=false;;
21429   --he | --h)
21430     # Conflict between --help and --header
21431     as_fn_error $? "ambiguous option: \`$1'
21432 Try \`$0 --help' for more information.";;
21433   --help | --hel | -h )
21434     printf "%s\n" "$ac_cs_usage"; exit ;;
21435   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21436   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21437     ac_cs_silent=: ;;
21438
21439   # This is an error.
21440   -*) as_fn_error $? "unrecognized option: \`$1'
21441 Try \`$0 --help' for more information." ;;
21442
21443   *) as_fn_append ac_config_targets " $1"
21444      ac_need_defaults=false ;;
21445
21446   esac
21447   shift
21448 done
21449
21450 ac_configure_extra_args=
21451
21452 if $ac_cs_silent; then
21453   exec 6>/dev/null
21454   ac_configure_extra_args="$ac_configure_extra_args --silent"
21455 fi
21456
21457 _ACEOF
21458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459 if \$ac_cs_recheck; then
21460   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21461   shift
21462   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21463   CONFIG_SHELL='$SHELL'
21464   export CONFIG_SHELL
21465   exec "\$@"
21466 fi
21467
21468 _ACEOF
21469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21470 exec 5>>config.log
21471 {
21472   echo
21473   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21474 ## Running $as_me. ##
21475 _ASBOX
21476   printf "%s\n" "$ac_log"
21477 } >&5
21478
21479 _ACEOF
21480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21481 #
21482 # INIT-COMMANDS
21483 #
21484 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21485
21486
21487 # The HP-UX ksh and POSIX shell print the target directory to stdout
21488 # if CDPATH is set.
21489 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21490
21491 sed_quote_subst='$sed_quote_subst'
21492 double_quote_subst='$double_quote_subst'
21493 delay_variable_subst='$delay_variable_subst'
21494 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21495 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21496 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21497 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21498 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21499 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21500 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21501 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21502 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21503 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21506 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21507 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21508 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21509 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21510 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21511 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21512 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21513 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21514 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21515 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21516 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21517 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21518 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21519 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21520 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21521 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21522 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21523 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21524 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21525 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21526 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21527 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21528 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21529 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21530 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21531 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21532 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21533 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21534 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21535 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21536 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21537 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21538 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21539 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21540 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21541 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21542 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21543 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21544 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21545 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21546 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21547 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21548 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21549 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21550 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21551 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21552 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21553 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21554 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21555 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"`'
21556 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21557 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21558 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21559 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21560 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21561 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21562 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21563 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21564 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21565 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21566 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21567 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21568 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21569 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21570 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21571 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21572 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21573 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21574 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21575 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21576 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21577 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21578 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21579 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21580 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21581 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21582 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21583 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21584 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21585 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21586 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21587 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21588 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21589 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21590 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21591 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21592 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21593 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21594 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21595 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21596 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21597 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21598 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21599 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21600 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21601 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21602 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21603 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21604 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21605 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21606 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21607 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21608 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21609 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21610 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21611 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21612 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21613 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21614 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21615 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21616 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21617 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21618 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21619 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21620 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21621 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21622 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21623 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21624 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21625 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21626 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21627 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21628 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21629 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21630 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21631 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21632
21633 LTCC='$LTCC'
21634 LTCFLAGS='$LTCFLAGS'
21635 compiler='$compiler_DEFAULT'
21636
21637 # A function that is used when there is no print builtin or printf.
21638 func_fallback_echo ()
21639 {
21640   eval 'cat <<_LTECHO_EOF
21641 \$1
21642 _LTECHO_EOF'
21643 }
21644
21645 # Quote evaled strings.
21646 for var in AS \
21647 DLLTOOL \
21648 OBJDUMP \
21649 SHELL \
21650 ECHO \
21651 PATH_SEPARATOR \
21652 SED \
21653 GREP \
21654 EGREP \
21655 FGREP \
21656 LD \
21657 NM \
21658 LN_S \
21659 lt_SP2NL \
21660 lt_NL2SP \
21661 reload_flag \
21662 FILECMD \
21663 deplibs_check_method \
21664 file_magic_cmd \
21665 file_magic_glob \
21666 want_nocaseglob \
21667 sharedlib_from_linklib_cmd \
21668 AR \
21669 archiver_list_spec \
21670 STRIP \
21671 RANLIB \
21672 CC \
21673 CFLAGS \
21674 compiler \
21675 lt_cv_sys_global_symbol_pipe \
21676 lt_cv_sys_global_symbol_to_cdecl \
21677 lt_cv_sys_global_symbol_to_import \
21678 lt_cv_sys_global_symbol_to_c_name_address \
21679 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21680 lt_cv_nm_interface \
21681 nm_file_list_spec \
21682 lt_cv_truncate_bin \
21683 lt_prog_compiler_no_builtin_flag \
21684 lt_prog_compiler_pic \
21685 lt_prog_compiler_wl \
21686 lt_prog_compiler_static \
21687 lt_cv_prog_compiler_c_o \
21688 need_locks \
21689 MANIFEST_TOOL \
21690 DSYMUTIL \
21691 NMEDIT \
21692 LIPO \
21693 OTOOL \
21694 OTOOL64 \
21695 shrext_cmds \
21696 export_dynamic_flag_spec \
21697 whole_archive_flag_spec \
21698 compiler_needs_object \
21699 with_gnu_ld \
21700 allow_undefined_flag \
21701 no_undefined_flag \
21702 hardcode_libdir_flag_spec \
21703 hardcode_libdir_separator \
21704 exclude_expsyms \
21705 include_expsyms \
21706 file_list_spec \
21707 variables_saved_for_relink \
21708 libname_spec \
21709 library_names_spec \
21710 soname_spec \
21711 install_override_mode \
21712 finish_eval \
21713 old_striplib \
21714 striplib; do
21715     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21716     *[\\\\\\\`\\"\\\$]*)
21717       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21718       ;;
21719     *)
21720       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21721       ;;
21722     esac
21723 done
21724
21725 # Double-quote double-evaled strings.
21726 for var in reload_cmds \
21727 old_postinstall_cmds \
21728 old_postuninstall_cmds \
21729 old_archive_cmds \
21730 extract_expsyms_cmds \
21731 old_archive_from_new_cmds \
21732 old_archive_from_expsyms_cmds \
21733 archive_cmds \
21734 archive_expsym_cmds \
21735 module_cmds \
21736 module_expsym_cmds \
21737 export_symbols_cmds \
21738 prelink_cmds \
21739 postlink_cmds \
21740 postinstall_cmds \
21741 postuninstall_cmds \
21742 finish_cmds \
21743 sys_lib_search_path_spec \
21744 configure_time_dlsearch_path \
21745 configure_time_lt_sys_library_path; do
21746     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21747     *[\\\\\\\`\\"\\\$]*)
21748       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21749       ;;
21750     *)
21751       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21752       ;;
21753     esac
21754 done
21755
21756 ac_aux_dir='$ac_aux_dir'
21757
21758 # See if we are running on zsh, and set the options that allow our
21759 # commands through without removal of \ escapes INIT.
21760 if test -n "\${ZSH_VERSION+set}"; then
21761    setopt NO_GLOB_SUBST
21762 fi
21763
21764
21765     PACKAGE='$PACKAGE'
21766     VERSION='$VERSION'
21767     RM='$RM'
21768     ofile='$ofile'
21769
21770
21771
21772 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21773     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21774     # from automake < 1.5.
21775     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21776     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21777     LINGUAS="${LINGUAS-%UNSET%}"
21778
21779 # variables for create stdint.h replacement
21780 PACKAGE="$PACKAGE"
21781 VERSION="$VERSION"
21782 ac_stdint_h="$ac_stdint_h"
21783 _ac_stdint_h=`printf "%s\n" "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
21784 ac_cv_stdint_message="$ac_cv_stdint_message"
21785 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
21786 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
21787 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
21788 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
21789 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21790 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21791 ac_cv_char_data_model="$ac_cv_char_data_model"
21792 ac_cv_long_data_model="$ac_cv_long_data_model"
21793 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21794 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21795 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
21796
21797
21798 _ACEOF
21799
21800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21801
21802 # Handling of arguments.
21803 for ac_config_target in $ac_config_targets
21804 do
21805   case $ac_config_target in
21806     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21807     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21808     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21809     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21810     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
21811     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21812     "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
21813     "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
21814     "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
21815     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21816     "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
21817     "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
21818     "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
21819     "fc-conflist/Makefile") CONFIG_FILES="$CONFIG_FILES fc-conflist/Makefile" ;;
21820     "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
21821     "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
21822     "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
21823     "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
21824     "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
21825     "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
21826     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21827     "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
21828     "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
21829     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21830     "po-conf/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-conf/Makefile.in" ;;
21831     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21832     "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
21833     "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
21834
21835   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21836   esac
21837 done
21838
21839
21840 # If the user did not use the arguments to specify the items to instantiate,
21841 # then the envvar interface is used.  Set only those that are not.
21842 # We use the long form for the default assignment because of an extremely
21843 # bizarre bug on SunOS 4.1.3.
21844 if $ac_need_defaults; then
21845   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21846   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21847   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21848 fi
21849
21850 # Have a temporary directory for convenience.  Make it in the build tree
21851 # simply because there is no reason against having it here, and in addition,
21852 # creating and moving files from /tmp can sometimes cause problems.
21853 # Hook for its removal unless debugging.
21854 # Note that there is a small window in which the directory will not be cleaned:
21855 # after its creation but before its name has been assigned to `$tmp'.
21856 $debug ||
21857 {
21858   tmp= ac_tmp=
21859   trap 'exit_status=$?
21860   : "${ac_tmp:=$tmp}"
21861   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21862 ' 0
21863   trap 'as_fn_exit 1' 1 2 13 15
21864 }
21865 # Create a (secure) tmp directory for tmp files.
21866
21867 {
21868   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21869   test -d "$tmp"
21870 }  ||
21871 {
21872   tmp=./conf$$-$RANDOM
21873   (umask 077 && mkdir "$tmp")
21874 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21875 ac_tmp=$tmp
21876
21877 # Set up the scripts for CONFIG_FILES section.
21878 # No need to generate them if there are no CONFIG_FILES.
21879 # This happens for instance with `./config.status config.h'.
21880 if test -n "$CONFIG_FILES"; then
21881
21882
21883 ac_cr=`echo X | tr X '\015'`
21884 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21885 # But we know of no other shell where ac_cr would be empty at this
21886 # point, so we can use a bashism as a fallback.
21887 if test "x$ac_cr" = x; then
21888   eval ac_cr=\$\'\\r\'
21889 fi
21890 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21891 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21892   ac_cs_awk_cr='\\r'
21893 else
21894   ac_cs_awk_cr=$ac_cr
21895 fi
21896
21897 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21898 _ACEOF
21899
21900
21901 {
21902   echo "cat >conf$$subs.awk <<_ACEOF" &&
21903   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21904   echo "_ACEOF"
21905 } >conf$$subs.sh ||
21906   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21907 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21908 ac_delim='%!_!# '
21909 for ac_last_try in false false false false false :; do
21910   . ./conf$$subs.sh ||
21911     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21912
21913   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21914   if test $ac_delim_n = $ac_delim_num; then
21915     break
21916   elif $ac_last_try; then
21917     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21918   else
21919     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21920   fi
21921 done
21922 rm -f conf$$subs.sh
21923
21924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21925 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21926 _ACEOF
21927 sed -n '
21928 h
21929 s/^/S["/; s/!.*/"]=/
21930 p
21931 g
21932 s/^[^!]*!//
21933 :repl
21934 t repl
21935 s/'"$ac_delim"'$//
21936 t delim
21937 :nl
21938 h
21939 s/\(.\{148\}\)..*/\1/
21940 t more1
21941 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21942 p
21943 n
21944 b repl
21945 :more1
21946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21947 p
21948 g
21949 s/.\{148\}//
21950 t nl
21951 :delim
21952 h
21953 s/\(.\{148\}\)..*/\1/
21954 t more2
21955 s/["\\]/\\&/g; s/^/"/; s/$/"/
21956 p
21957 b
21958 :more2
21959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21960 p
21961 g
21962 s/.\{148\}//
21963 t delim
21964 ' <conf$$subs.awk | sed '
21965 /^[^""]/{
21966   N
21967   s/\n//
21968 }
21969 ' >>$CONFIG_STATUS || ac_write_fail=1
21970 rm -f conf$$subs.awk
21971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21972 _ACAWK
21973 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21974   for (key in S) S_is_set[key] = 1
21975   FS = "\a"
21976
21977 }
21978 {
21979   line = $ 0
21980   nfields = split(line, field, "@")
21981   substed = 0
21982   len = length(field[1])
21983   for (i = 2; i < nfields; i++) {
21984     key = field[i]
21985     keylen = length(key)
21986     if (S_is_set[key]) {
21987       value = S[key]
21988       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21989       len += length(value) + length(field[++i])
21990       substed = 1
21991     } else
21992       len += 1 + keylen
21993   }
21994
21995   print line
21996 }
21997
21998 _ACAWK
21999 _ACEOF
22000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22001 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22002   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22003 else
22004   cat
22005 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22006   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22007 _ACEOF
22008
22009 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22010 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22011 # trailing colons and then remove the whole line if VPATH becomes empty
22012 # (actually we leave an empty line to preserve line numbers).
22013 if test "x$srcdir" = x.; then
22014   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22015 h
22016 s///
22017 s/^/:/
22018 s/[      ]*$/:/
22019 s/:\$(srcdir):/:/g
22020 s/:\${srcdir}:/:/g
22021 s/:@srcdir@:/:/g
22022 s/^:*//
22023 s/:*$//
22024 x
22025 s/\(=[   ]*\).*/\1/
22026 G
22027 s/\n//
22028 s/^[^=]*=[       ]*$//
22029 }'
22030 fi
22031
22032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22033 fi # test -n "$CONFIG_FILES"
22034
22035 # Set up the scripts for CONFIG_HEADERS section.
22036 # No need to generate them if there are no CONFIG_HEADERS.
22037 # This happens for instance with `./config.status Makefile'.
22038 if test -n "$CONFIG_HEADERS"; then
22039 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22040 BEGIN {
22041 _ACEOF
22042
22043 # Transform confdefs.h into an awk script `defines.awk', embedded as
22044 # here-document in config.status, that substitutes the proper values into
22045 # config.h.in to produce config.h.
22046
22047 # Create a delimiter string that does not exist in confdefs.h, to ease
22048 # handling of long lines.
22049 ac_delim='%!_!# '
22050 for ac_last_try in false false :; do
22051   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22052   if test -z "$ac_tt"; then
22053     break
22054   elif $ac_last_try; then
22055     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22056   else
22057     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22058   fi
22059 done
22060
22061 # For the awk script, D is an array of macro values keyed by name,
22062 # likewise P contains macro parameters if any.  Preserve backslash
22063 # newline sequences.
22064
22065 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22066 sed -n '
22067 s/.\{148\}/&'"$ac_delim"'/g
22068 t rset
22069 :rset
22070 s/^[     ]*#[    ]*define[       ][      ]*/ /
22071 t def
22072 d
22073 :def
22074 s/\\$//
22075 t bsnl
22076 s/["\\]/\\&/g
22077 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22078 D["\1"]=" \3"/p
22079 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22080 d
22081 :bsnl
22082 s/["\\]/\\&/g
22083 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22084 D["\1"]=" \3\\\\\\n"\\/p
22085 t cont
22086 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22087 t cont
22088 d
22089 :cont
22090 n
22091 s/.\{148\}/&'"$ac_delim"'/g
22092 t clear
22093 :clear
22094 s/\\$//
22095 t bsnlc
22096 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22097 d
22098 :bsnlc
22099 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22100 b cont
22101 ' <confdefs.h | sed '
22102 s/'"$ac_delim"'/"\\\
22103 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22104
22105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22106   for (key in D) D_is_set[key] = 1
22107   FS = "\a"
22108 }
22109 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22110   line = \$ 0
22111   split(line, arg, " ")
22112   if (arg[1] == "#") {
22113     defundef = arg[2]
22114     mac1 = arg[3]
22115   } else {
22116     defundef = substr(arg[1], 2)
22117     mac1 = arg[2]
22118   }
22119   split(mac1, mac2, "(") #)
22120   macro = mac2[1]
22121   prefix = substr(line, 1, index(line, defundef) - 1)
22122   if (D_is_set[macro]) {
22123     # Preserve the white space surrounding the "#".
22124     print prefix "define", macro P[macro] D[macro]
22125     next
22126   } else {
22127     # Replace #undef with comments.  This is necessary, for example,
22128     # in the case of _POSIX_SOURCE, which is predefined and required
22129     # on some systems where configure will not decide to define it.
22130     if (defundef == "undef") {
22131       print "/*", prefix defundef, macro, "*/"
22132       next
22133     }
22134   }
22135 }
22136 { print }
22137 _ACAWK
22138 _ACEOF
22139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22140   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22141 fi # test -n "$CONFIG_HEADERS"
22142
22143
22144 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22145 shift
22146 for ac_tag
22147 do
22148   case $ac_tag in
22149   :[FHLC]) ac_mode=$ac_tag; continue;;
22150   esac
22151   case $ac_mode$ac_tag in
22152   :[FHL]*:*);;
22153   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22154   :[FH]-) ac_tag=-:-;;
22155   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22156   esac
22157   ac_save_IFS=$IFS
22158   IFS=:
22159   set x $ac_tag
22160   IFS=$ac_save_IFS
22161   shift
22162   ac_file=$1
22163   shift
22164
22165   case $ac_mode in
22166   :L) ac_source=$1;;
22167   :[FH])
22168     ac_file_inputs=
22169     for ac_f
22170     do
22171       case $ac_f in
22172       -) ac_f="$ac_tmp/stdin";;
22173       *) # Look for the file first in the build tree, then in the source tree
22174          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22175          # because $ac_f cannot contain `:'.
22176          test -f "$ac_f" ||
22177            case $ac_f in
22178            [\\/$]*) false;;
22179            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22180            esac ||
22181            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22182       esac
22183       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22184       as_fn_append ac_file_inputs " '$ac_f'"
22185     done
22186
22187     # Let's still pretend it is `configure' which instantiates (i.e., don't
22188     # use $as_me), people would be surprised to read:
22189     #    /* config.h.  Generated by config.status.  */
22190     configure_input='Generated from '`
22191           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22192         `' by configure.'
22193     if test x"$ac_file" != x-; then
22194       configure_input="$ac_file.  $configure_input"
22195       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22196 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22197     fi
22198     # Neutralize special characters interpreted by sed in replacement strings.
22199     case $configure_input in #(
22200     *\&* | *\|* | *\\* )
22201        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22202        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22203     *) ac_sed_conf_input=$configure_input;;
22204     esac
22205
22206     case $ac_tag in
22207     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22208       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22209     esac
22210     ;;
22211   esac
22212
22213   ac_dir=`$as_dirname -- "$ac_file" ||
22214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22215          X"$ac_file" : 'X\(//\)[^/]' \| \
22216          X"$ac_file" : 'X\(//\)$' \| \
22217          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22218 printf "%s\n" X"$ac_file" |
22219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22220             s//\1/
22221             q
22222           }
22223           /^X\(\/\/\)[^/].*/{
22224             s//\1/
22225             q
22226           }
22227           /^X\(\/\/\)$/{
22228             s//\1/
22229             q
22230           }
22231           /^X\(\/\).*/{
22232             s//\1/
22233             q
22234           }
22235           s/.*/./; q'`
22236   as_dir="$ac_dir"; as_fn_mkdir_p
22237   ac_builddir=.
22238
22239 case "$ac_dir" in
22240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22241 *)
22242   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22243   # A ".." for each directory in $ac_dir_suffix.
22244   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22245   case $ac_top_builddir_sub in
22246   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22247   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22248   esac ;;
22249 esac
22250 ac_abs_top_builddir=$ac_pwd
22251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22252 # for backward compatibility:
22253 ac_top_builddir=$ac_top_build_prefix
22254
22255 case $srcdir in
22256   .)  # We are building in place.
22257     ac_srcdir=.
22258     ac_top_srcdir=$ac_top_builddir_sub
22259     ac_abs_top_srcdir=$ac_pwd ;;
22260   [\\/]* | ?:[\\/]* )  # Absolute name.
22261     ac_srcdir=$srcdir$ac_dir_suffix;
22262     ac_top_srcdir=$srcdir
22263     ac_abs_top_srcdir=$srcdir ;;
22264   *) # Relative name.
22265     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22266     ac_top_srcdir=$ac_top_build_prefix$srcdir
22267     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22268 esac
22269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22270
22271
22272   case $ac_mode in
22273   :F)
22274   #
22275   # CONFIG_FILE
22276   #
22277
22278   case $INSTALL in
22279   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22280   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22281   esac
22282   ac_MKDIR_P=$MKDIR_P
22283   case $MKDIR_P in
22284   [\\/$]* | ?:[\\/]* ) ;;
22285   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22286   esac
22287 _ACEOF
22288
22289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22290 # If the template does not know about datarootdir, expand it.
22291 # FIXME: This hack should be removed a few years after 2.60.
22292 ac_datarootdir_hack=; ac_datarootdir_seen=
22293 ac_sed_dataroot='
22294 /datarootdir/ {
22295   p
22296   q
22297 }
22298 /@datadir@/p
22299 /@docdir@/p
22300 /@infodir@/p
22301 /@localedir@/p
22302 /@mandir@/p'
22303 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22304 *datarootdir*) ac_datarootdir_seen=yes;;
22305 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22306   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22307 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22308 _ACEOF
22309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22310   ac_datarootdir_hack='
22311   s&@datadir@&$datadir&g
22312   s&@docdir@&$docdir&g
22313   s&@infodir@&$infodir&g
22314   s&@localedir@&$localedir&g
22315   s&@mandir@&$mandir&g
22316   s&\\\${datarootdir}&$datarootdir&g' ;;
22317 esac
22318 _ACEOF
22319
22320 # Neutralize VPATH when `$srcdir' = `.'.
22321 # Shell code in configure.ac might set extrasub.
22322 # FIXME: do we really want to maintain this feature?
22323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22324 ac_sed_extra="$ac_vpsub
22325 $extrasub
22326 _ACEOF
22327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22328 :t
22329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22330 s|@configure_input@|$ac_sed_conf_input|;t t
22331 s&@top_builddir@&$ac_top_builddir_sub&;t t
22332 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22333 s&@srcdir@&$ac_srcdir&;t t
22334 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22335 s&@top_srcdir@&$ac_top_srcdir&;t t
22336 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22337 s&@builddir@&$ac_builddir&;t t
22338 s&@abs_builddir@&$ac_abs_builddir&;t t
22339 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22340 s&@INSTALL@&$ac_INSTALL&;t t
22341 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22342 $ac_datarootdir_hack
22343 "
22344 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22345   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22346
22347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22348   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22349   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22350       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22351   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352 which seems to be undefined.  Please make sure it is defined" >&5
22353 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22354 which seems to be undefined.  Please make sure it is defined" >&2;}
22355
22356   rm -f "$ac_tmp/stdin"
22357   case $ac_file in
22358   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22359   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22360   esac \
22361   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22362  ;;
22363   :H)
22364   #
22365   # CONFIG_HEADER
22366   #
22367   if test x"$ac_file" != x-; then
22368     {
22369       printf "%s\n" "/* $configure_input  */" >&1 \
22370       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22371     } >"$ac_tmp/config.h" \
22372       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22373     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22374       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22375 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22376     else
22377       rm -f "$ac_file"
22378       mv "$ac_tmp/config.h" "$ac_file" \
22379         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22380     fi
22381   else
22382     printf "%s\n" "/* $configure_input  */" >&1 \
22383       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22384       || as_fn_error $? "could not create -" "$LINENO" 5
22385   fi
22386 # Compute "$ac_file"'s index in $config_headers.
22387 _am_arg="$ac_file"
22388 _am_stamp_count=1
22389 for _am_header in $config_headers :; do
22390   case $_am_header in
22391     $_am_arg | $_am_arg:* )
22392       break ;;
22393     * )
22394       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22395   esac
22396 done
22397 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22398 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22399          X"$_am_arg" : 'X\(//\)[^/]' \| \
22400          X"$_am_arg" : 'X\(//\)$' \| \
22401          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22402 printf "%s\n" X"$_am_arg" |
22403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22404             s//\1/
22405             q
22406           }
22407           /^X\(\/\/\)[^/].*/{
22408             s//\1/
22409             q
22410           }
22411           /^X\(\/\/\)$/{
22412             s//\1/
22413             q
22414           }
22415           /^X\(\/\).*/{
22416             s//\1/
22417             q
22418           }
22419           s/.*/./; q'`/stamp-h$_am_stamp_count
22420  ;;
22421
22422   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22423 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22424  ;;
22425   esac
22426
22427
22428   case $ac_file$ac_mode in
22429     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22430   # Older Autoconf quotes --file arguments for eval, but not when files
22431   # are listed without --file.  Let's play safe and only enable the eval
22432   # if we detect the quoting.
22433   # TODO: see whether this extra hack can be removed once we start
22434   # requiring Autoconf 2.70 or later.
22435   case $CONFIG_FILES in #(
22436   *\'*) :
22437     eval set x "$CONFIG_FILES" ;; #(
22438   *) :
22439     set x $CONFIG_FILES ;; #(
22440   *) :
22441      ;;
22442 esac
22443   shift
22444   # Used to flag and report bootstrapping failures.
22445   am_rc=0
22446   for am_mf
22447   do
22448     # Strip MF so we end up with the name of the file.
22449     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22450     # Check whether this is an Automake generated Makefile which includes
22451     # dependency-tracking related rules and includes.
22452     # Grep'ing the whole file directly is not great: AIX grep has a line
22453     # limit of 2048, but all sed's we know have understand at least 4000.
22454     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22455       || continue
22456     am_dirpart=`$as_dirname -- "$am_mf" ||
22457 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22458          X"$am_mf" : 'X\(//\)[^/]' \| \
22459          X"$am_mf" : 'X\(//\)$' \| \
22460          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22461 printf "%s\n" X"$am_mf" |
22462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22463             s//\1/
22464             q
22465           }
22466           /^X\(\/\/\)[^/].*/{
22467             s//\1/
22468             q
22469           }
22470           /^X\(\/\/\)$/{
22471             s//\1/
22472             q
22473           }
22474           /^X\(\/\).*/{
22475             s//\1/
22476             q
22477           }
22478           s/.*/./; q'`
22479     am_filepart=`$as_basename -- "$am_mf" ||
22480 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22481          X"$am_mf" : 'X\(//\)$' \| \
22482          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22483 printf "%s\n" X/"$am_mf" |
22484     sed '/^.*\/\([^/][^/]*\)\/*$/{
22485             s//\1/
22486             q
22487           }
22488           /^X\/\(\/\/\)$/{
22489             s//\1/
22490             q
22491           }
22492           /^X\/\(\/\).*/{
22493             s//\1/
22494             q
22495           }
22496           s/.*/./; q'`
22497     { echo "$as_me:$LINENO: cd "$am_dirpart" \
22498       && sed -e '/# am--include-marker/d' "$am_filepart" \
22499         | $MAKE -f - am--depfiles" >&5
22500    (cd "$am_dirpart" \
22501       && sed -e '/# am--include-marker/d' "$am_filepart" \
22502         | $MAKE -f - am--depfiles) >&5 2>&5
22503    ac_status=$?
22504    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505    (exit $ac_status); } || am_rc=$?
22506   done
22507   if test $am_rc -ne 0; then
22508     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22509 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22510 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22511     for automatic dependency tracking.  If GNU make was not used, consider
22512     re-running the configure script with MAKE=\"gmake\" (or whatever is
22513     necessary).  You can also try re-running configure with the
22514     '--disable-dependency-tracking' option to at least be able to build
22515     the package (albeit without support for automatic dependency tracking).
22516 See \`config.log' for more details" "$LINENO" 5; }
22517   fi
22518   { am_dirpart=; unset am_dirpart;}
22519   { am_filepart=; unset am_filepart;}
22520   { am_mf=; unset am_mf;}
22521   { am_rc=; unset am_rc;}
22522   rm -f conftest-deps.mk
22523 }
22524  ;;
22525     "libtool":C)
22526
22527     # See if we are running on zsh, and set the options that allow our
22528     # commands through without removal of \ escapes.
22529     if test -n "${ZSH_VERSION+set}"; then
22530       setopt NO_GLOB_SUBST
22531     fi
22532
22533     cfgfile=${ofile}T
22534     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22535     $RM "$cfgfile"
22536
22537     cat <<_LT_EOF >> "$cfgfile"
22538 #! $SHELL
22539 # Generated automatically by $as_me ($PACKAGE) $VERSION
22540 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22541 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22542
22543 # Provide generalized library-building support services.
22544 # Written by Gordon Matzigkeit, 1996
22545
22546 # Copyright (C) 2014 Free Software Foundation, Inc.
22547 # This is free software; see the source for copying conditions.  There is NO
22548 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22549
22550 # GNU Libtool is free software; you can redistribute it and/or modify
22551 # it under the terms of the GNU General Public License as published by
22552 # the Free Software Foundation; either version 2 of of the License, or
22553 # (at your option) any later version.
22554 #
22555 # As a special exception to the GNU General Public License, if you
22556 # distribute this file as part of a program or library that is built
22557 # using GNU Libtool, you may include this file under the  same
22558 # distribution terms that you use for the rest of that program.
22559 #
22560 # GNU Libtool is distributed in the hope that it will be useful, but
22561 # WITHOUT ANY WARRANTY; without even the implied warranty of
22562 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22563 # GNU General Public License for more details.
22564 #
22565 # You should have received a copy of the GNU General Public License
22566 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22567
22568
22569 # The names of the tagged configurations supported by this script.
22570 available_tags=''
22571
22572 # Configured defaults for sys_lib_dlsearch_path munging.
22573 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22574
22575 # ### BEGIN LIBTOOL CONFIG
22576
22577 # Which release of libtool.m4 was used?
22578 macro_version=$macro_version
22579 macro_revision=$macro_revision
22580
22581 # Whether or not to build static libraries.
22582 build_old_libs=$enable_static
22583
22584 # Assembler program.
22585 AS=$lt_AS
22586
22587 # DLL creation program.
22588 DLLTOOL=$lt_DLLTOOL
22589
22590 # Object dumper program.
22591 OBJDUMP=$lt_OBJDUMP
22592
22593 # Whether or not to build shared libraries.
22594 build_libtool_libs=$enable_shared
22595
22596 # What type of objects to build.
22597 pic_mode=$pic_mode
22598
22599 # Whether or not to optimize for fast installation.
22600 fast_install=$enable_fast_install
22601
22602 # Shared archive member basename,for filename based shared library versioning on AIX.
22603 shared_archive_member_spec=$shared_archive_member_spec
22604
22605 # Shell to use when invoking shell scripts.
22606 SHELL=$lt_SHELL
22607
22608 # An echo program that protects backslashes.
22609 ECHO=$lt_ECHO
22610
22611 # The PATH separator for the build system.
22612 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22613
22614 # The host system.
22615 host_alias=$host_alias
22616 host=$host
22617 host_os=$host_os
22618
22619 # The build system.
22620 build_alias=$build_alias
22621 build=$build
22622 build_os=$build_os
22623
22624 # A sed program that does not truncate output.
22625 SED=$lt_SED
22626
22627 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22628 Xsed="\$SED -e 1s/^X//"
22629
22630 # A grep program that handles long lines.
22631 GREP=$lt_GREP
22632
22633 # An ERE matcher.
22634 EGREP=$lt_EGREP
22635
22636 # A literal string matcher.
22637 FGREP=$lt_FGREP
22638
22639 # A BSD- or MS-compatible name lister.
22640 NM=$lt_NM
22641
22642 # Whether we need soft or hard links.
22643 LN_S=$lt_LN_S
22644
22645 # What is the maximum length of a command?
22646 max_cmd_len=$max_cmd_len
22647
22648 # Object file suffix (normally "o").
22649 objext=$ac_objext
22650
22651 # Executable file suffix (normally "").
22652 exeext=$exeext
22653
22654 # whether the shell understands "unset".
22655 lt_unset=$lt_unset
22656
22657 # turn spaces into newlines.
22658 SP2NL=$lt_lt_SP2NL
22659
22660 # turn newlines into spaces.
22661 NL2SP=$lt_lt_NL2SP
22662
22663 # convert \$build file names to \$host format.
22664 to_host_file_cmd=$lt_cv_to_host_file_cmd
22665
22666 # convert \$build files to toolchain format.
22667 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22668
22669 # A file(cmd) program that detects file types.
22670 FILECMD=$lt_FILECMD
22671
22672 # Method to check whether dependent libraries are shared objects.
22673 deplibs_check_method=$lt_deplibs_check_method
22674
22675 # Command to use when deplibs_check_method = "file_magic".
22676 file_magic_cmd=$lt_file_magic_cmd
22677
22678 # How to find potential files when deplibs_check_method = "file_magic".
22679 file_magic_glob=$lt_file_magic_glob
22680
22681 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22682 want_nocaseglob=$lt_want_nocaseglob
22683
22684 # Command to associate shared and link libraries.
22685 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22686
22687 # The archiver.
22688 AR=$lt_AR
22689
22690 # Flags to create an archive (by configure).
22691 lt_ar_flags=$lt_ar_flags
22692
22693 # Flags to create an archive.
22694 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22695
22696 # How to feed a file listing to the archiver.
22697 archiver_list_spec=$lt_archiver_list_spec
22698
22699 # A symbol stripping program.
22700 STRIP=$lt_STRIP
22701
22702 # Commands used to install an old-style archive.
22703 RANLIB=$lt_RANLIB
22704 old_postinstall_cmds=$lt_old_postinstall_cmds
22705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22706
22707 # Whether to use a lock for old archive extraction.
22708 lock_old_archive_extraction=$lock_old_archive_extraction
22709
22710 # A C compiler.
22711 LTCC=$lt_CC
22712
22713 # LTCC compiler flags.
22714 LTCFLAGS=$lt_CFLAGS
22715
22716 # Take the output of nm and produce a listing of raw symbols and C names.
22717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22718
22719 # Transform the output of nm in a proper C declaration.
22720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22721
22722 # Transform the output of nm into a list of symbols to manually relocate.
22723 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22724
22725 # Transform the output of nm in a C name address pair.
22726 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22727
22728 # Transform the output of nm in a C name address pair when lib prefix is needed.
22729 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22730
22731 # The name lister interface.
22732 nm_interface=$lt_lt_cv_nm_interface
22733
22734 # Specify filename containing input files for \$NM.
22735 nm_file_list_spec=$lt_nm_file_list_spec
22736
22737 # The root where to search for dependent libraries,and where our libraries should be installed.
22738 lt_sysroot=$lt_sysroot
22739
22740 # Command to truncate a binary pipe.
22741 lt_truncate_bin=$lt_lt_cv_truncate_bin
22742
22743 # The name of the directory that contains temporary libtool files.
22744 objdir=$objdir
22745
22746 # Used to examine libraries when file_magic_cmd begins with "file".
22747 MAGIC_CMD=$MAGIC_CMD
22748
22749 # Must we lock files when doing compilation?
22750 need_locks=$lt_need_locks
22751
22752 # Manifest tool.
22753 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22754
22755 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22756 DSYMUTIL=$lt_DSYMUTIL
22757
22758 # Tool to change global to local symbols on Mac OS X.
22759 NMEDIT=$lt_NMEDIT
22760
22761 # Tool to manipulate fat objects and archives on Mac OS X.
22762 LIPO=$lt_LIPO
22763
22764 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22765 OTOOL=$lt_OTOOL
22766
22767 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22768 OTOOL64=$lt_OTOOL64
22769
22770 # Old archive suffix (normally "a").
22771 libext=$libext
22772
22773 # Shared library suffix (normally ".so").
22774 shrext_cmds=$lt_shrext_cmds
22775
22776 # The commands to extract the exported symbol list from a shared archive.
22777 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22778
22779 # Variables whose values should be saved in libtool wrapper scripts and
22780 # restored at link time.
22781 variables_saved_for_relink=$lt_variables_saved_for_relink
22782
22783 # Do we need the "lib" prefix for modules?
22784 need_lib_prefix=$need_lib_prefix
22785
22786 # Do we need a version for libraries?
22787 need_version=$need_version
22788
22789 # Library versioning type.
22790 version_type=$version_type
22791
22792 # Shared library runtime path variable.
22793 runpath_var=$runpath_var
22794
22795 # Shared library path variable.
22796 shlibpath_var=$shlibpath_var
22797
22798 # Is shlibpath searched before the hard-coded library search path?
22799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22800
22801 # Format of library name prefix.
22802 libname_spec=$lt_libname_spec
22803
22804 # List of archive names.  First name is the real one, the rest are links.
22805 # The last name is the one that the linker finds with -lNAME
22806 library_names_spec=$lt_library_names_spec
22807
22808 # The coded name of the library, if different from the real name.
22809 soname_spec=$lt_soname_spec
22810
22811 # Permission mode override for installation of shared libraries.
22812 install_override_mode=$lt_install_override_mode
22813
22814 # Command to use after installation of a shared archive.
22815 postinstall_cmds=$lt_postinstall_cmds
22816
22817 # Command to use after uninstallation of a shared archive.
22818 postuninstall_cmds=$lt_postuninstall_cmds
22819
22820 # Commands used to finish a libtool library installation in a directory.
22821 finish_cmds=$lt_finish_cmds
22822
22823 # As "finish_cmds", except a single script fragment to be evaled but
22824 # not shown.
22825 finish_eval=$lt_finish_eval
22826
22827 # Whether we should hardcode library paths into libraries.
22828 hardcode_into_libs=$hardcode_into_libs
22829
22830 # Compile-time system search path for libraries.
22831 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22832
22833 # Detected run-time system search path for libraries.
22834 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22835
22836 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22837 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22838
22839 # Whether dlopen is supported.
22840 dlopen_support=$enable_dlopen
22841
22842 # Whether dlopen of programs is supported.
22843 dlopen_self=$enable_dlopen_self
22844
22845 # Whether dlopen of statically linked programs is supported.
22846 dlopen_self_static=$enable_dlopen_self_static
22847
22848 # Commands to strip libraries.
22849 old_striplib=$lt_old_striplib
22850 striplib=$lt_striplib
22851
22852
22853 # The linker used to build libraries.
22854 LD=$lt_LD
22855
22856 # How to create reloadable object files.
22857 reload_flag=$lt_reload_flag
22858 reload_cmds=$lt_reload_cmds
22859
22860 # Commands used to build an old-style archive.
22861 old_archive_cmds=$lt_old_archive_cmds
22862
22863 # A language specific compiler.
22864 CC=$lt_compiler
22865
22866 # Is the compiler the GNU compiler?
22867 with_gcc=$GCC
22868
22869 # Compiler flag to turn off builtin functions.
22870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22871
22872 # Additional compiler flags for building library objects.
22873 pic_flag=$lt_lt_prog_compiler_pic
22874
22875 # How to pass a linker flag through the compiler.
22876 wl=$lt_lt_prog_compiler_wl
22877
22878 # Compiler flag to prevent dynamic linking.
22879 link_static_flag=$lt_lt_prog_compiler_static
22880
22881 # Does compiler simultaneously support -c and -o options?
22882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22883
22884 # Whether or not to add -lc for building shared libraries.
22885 build_libtool_need_lc=$archive_cmds_need_lc
22886
22887 # Whether or not to disallow shared libs when runtime libs are static.
22888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22889
22890 # Compiler flag to allow reflexive dlopens.
22891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22892
22893 # Compiler flag to generate shared objects directly from archives.
22894 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22895
22896 # Whether the compiler copes with passing no objects directly.
22897 compiler_needs_object=$lt_compiler_needs_object
22898
22899 # Create an old-style archive from a shared archive.
22900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22901
22902 # Create a temporary old-style archive to link instead of a shared archive.
22903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22904
22905 # Commands used to build a shared archive.
22906 archive_cmds=$lt_archive_cmds
22907 archive_expsym_cmds=$lt_archive_expsym_cmds
22908
22909 # Commands used to build a loadable module if different from building
22910 # a shared archive.
22911 module_cmds=$lt_module_cmds
22912 module_expsym_cmds=$lt_module_expsym_cmds
22913
22914 # Whether we are building with GNU ld or not.
22915 with_gnu_ld=$lt_with_gnu_ld
22916
22917 # Flag that allows shared libraries with undefined symbols to be built.
22918 allow_undefined_flag=$lt_allow_undefined_flag
22919
22920 # Flag that enforces no undefined symbols.
22921 no_undefined_flag=$lt_no_undefined_flag
22922
22923 # Flag to hardcode \$libdir into a binary during linking.
22924 # This must work even if \$libdir does not exist
22925 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22926
22927 # Whether we need a single "-rpath" flag with a separated argument.
22928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22929
22930 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22931 # DIR into the resulting binary.
22932 hardcode_direct=$hardcode_direct
22933
22934 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22935 # DIR into the resulting binary and the resulting library dependency is
22936 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22937 # library is relocated.
22938 hardcode_direct_absolute=$hardcode_direct_absolute
22939
22940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22941 # into the resulting binary.
22942 hardcode_minus_L=$hardcode_minus_L
22943
22944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22945 # into the resulting binary.
22946 hardcode_shlibpath_var=$hardcode_shlibpath_var
22947
22948 # Set to "yes" if building a shared library automatically hardcodes DIR
22949 # into the library and all subsequent libraries and executables linked
22950 # against it.
22951 hardcode_automatic=$hardcode_automatic
22952
22953 # Set to yes if linker adds runtime paths of dependent libraries
22954 # to runtime path list.
22955 inherit_rpath=$inherit_rpath
22956
22957 # Whether libtool must link a program against all its dependency libraries.
22958 link_all_deplibs=$link_all_deplibs
22959
22960 # Set to "yes" if exported symbols are required.
22961 always_export_symbols=$always_export_symbols
22962
22963 # The commands to list exported symbols.
22964 export_symbols_cmds=$lt_export_symbols_cmds
22965
22966 # Symbols that should not be listed in the preloaded symbols.
22967 exclude_expsyms=$lt_exclude_expsyms
22968
22969 # Symbols that must always be exported.
22970 include_expsyms=$lt_include_expsyms
22971
22972 # Commands necessary for linking programs (against libraries) with templates.
22973 prelink_cmds=$lt_prelink_cmds
22974
22975 # Commands necessary for finishing linking programs.
22976 postlink_cmds=$lt_postlink_cmds
22977
22978 # Specify filename containing input files.
22979 file_list_spec=$lt_file_list_spec
22980
22981 # How to hardcode a shared library path into an executable.
22982 hardcode_action=$hardcode_action
22983
22984 # ### END LIBTOOL CONFIG
22985
22986 _LT_EOF
22987
22988     cat <<'_LT_EOF' >> "$cfgfile"
22989
22990 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22991
22992 # func_munge_path_list VARIABLE PATH
22993 # -----------------------------------
22994 # VARIABLE is name of variable containing _space_ separated list of
22995 # directories to be munged by the contents of PATH, which is string
22996 # having a format:
22997 # "DIR[:DIR]:"
22998 #       string "DIR[ DIR]" will be prepended to VARIABLE
22999 # ":DIR[:DIR]"
23000 #       string "DIR[ DIR]" will be appended to VARIABLE
23001 # "DIRP[:DIRP]::[DIRA:]DIRA"
23002 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23003 #       "DIRA[ DIRA]" will be appended to VARIABLE
23004 # "DIR[:DIR]"
23005 #       VARIABLE will be replaced by "DIR[ DIR]"
23006 func_munge_path_list ()
23007 {
23008     case x$2 in
23009     x)
23010         ;;
23011     *:)
23012         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23013         ;;
23014     x:*)
23015         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23016         ;;
23017     *::*)
23018         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23019         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23020         ;;
23021     *)
23022         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23023         ;;
23024     esac
23025 }
23026
23027
23028 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23029 func_cc_basename ()
23030 {
23031     for cc_temp in $*""; do
23032       case $cc_temp in
23033         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23034         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23035         \-*) ;;
23036         *) break;;
23037       esac
23038     done
23039     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23040 }
23041
23042
23043 # ### END FUNCTIONS SHARED WITH CONFIGURE
23044
23045 _LT_EOF
23046
23047   case $host_os in
23048   aix3*)
23049     cat <<\_LT_EOF >> "$cfgfile"
23050 # AIX sometimes has problems with the GCC collect2 program.  For some
23051 # reason, if we set the COLLECT_NAMES environment variable, the problems
23052 # vanish in a puff of smoke.
23053 if test set != "${COLLECT_NAMES+set}"; then
23054   COLLECT_NAMES=
23055   export COLLECT_NAMES
23056 fi
23057 _LT_EOF
23058     ;;
23059   esac
23060
23061
23062
23063 ltmain=$ac_aux_dir/ltmain.sh
23064
23065
23066   # We use sed instead of cat because bash on DJGPP gets confused if
23067   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23068   # text mode, it properly converts lines to CR/LF.  This bash problem
23069   # is reportedly fixed, but why not run on old versions too?
23070   $SED '$q' "$ltmain" >> "$cfgfile" \
23071      || (rm -f "$cfgfile"; exit 1)
23072
23073    mv -f "$cfgfile" "$ofile" ||
23074     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23075   chmod +x "$ofile"
23076
23077  ;;
23078     "po-directories":C)
23079     for ac_file in $CONFIG_FILES; do
23080       # Support "outfile[:infile[:infile...]]"
23081       case "$ac_file" in
23082         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23083       esac
23084       # PO directories have a Makefile.in generated from Makefile.in.in.
23085       case "$ac_file" in */Makefile.in)
23086         # Adjust a relative srcdir.
23087         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23088         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23089         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23090         # In autoconf-2.13 it is called $ac_given_srcdir.
23091         # In autoconf-2.50 it is called $srcdir.
23092         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23093         case "$ac_given_srcdir" in
23094           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23095           /*) top_srcdir="$ac_given_srcdir" ;;
23096           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23097         esac
23098         # Treat a directory as a PO directory if and only if it has a
23099         # POTFILES.in file. This allows packages to have multiple PO
23100         # directories under different names or in different locations.
23101         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23102           rm -f "$ac_dir/POTFILES"
23103           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23104           gt_tab=`printf '\t'`
23105           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23106           POMAKEFILEDEPS="POTFILES.in"
23107           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23108           # on $ac_dir but don't depend on user-specified configuration
23109           # parameters.
23110           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23111             # The LINGUAS file contains the set of available languages.
23112             if test -n "$OBSOLETE_ALL_LINGUAS"; then
23113               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23114             fi
23115             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23116             # Hide the ALL_LINGUAS assignment from automake < 1.5.
23117             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23118             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23119           else
23120             # The set of available languages was given in configure.in.
23121             # Hide the ALL_LINGUAS assignment from automake < 1.5.
23122             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23123           fi
23124           # Compute POFILES
23125           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23126           # Compute UPDATEPOFILES
23127           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23128           # Compute DUMMYPOFILES
23129           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23130           # Compute GMOFILES
23131           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23132           case "$ac_given_srcdir" in
23133             .) srcdirpre= ;;
23134             *) srcdirpre='$(srcdir)/' ;;
23135           esac
23136           POFILES=
23137           UPDATEPOFILES=
23138           DUMMYPOFILES=
23139           GMOFILES=
23140           for lang in $ALL_LINGUAS; do
23141             POFILES="$POFILES $srcdirpre$lang.po"
23142             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23143             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23144             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23145           done
23146           # CATALOGS depends on both $ac_dir and the user's LINGUAS
23147           # environment variable.
23148           INST_LINGUAS=
23149           if test -n "$ALL_LINGUAS"; then
23150             for presentlang in $ALL_LINGUAS; do
23151               useit=no
23152               if test "%UNSET%" != "$LINGUAS"; then
23153                 desiredlanguages="$LINGUAS"
23154               else
23155                 desiredlanguages="$ALL_LINGUAS"
23156               fi
23157               for desiredlang in $desiredlanguages; do
23158                 # Use the presentlang catalog if desiredlang is
23159                 #   a. equal to presentlang, or
23160                 #   b. a variant of presentlang (because in this case,
23161                 #      presentlang can be used as a fallback for messages
23162                 #      which are not translated in the desiredlang catalog).
23163                 case "$desiredlang" in
23164                   "$presentlang"*) useit=yes;;
23165                 esac
23166               done
23167               if test $useit = yes; then
23168                 INST_LINGUAS="$INST_LINGUAS $presentlang"
23169               fi
23170             done
23171           fi
23172           CATALOGS=
23173           if test -n "$INST_LINGUAS"; then
23174             for lang in $INST_LINGUAS; do
23175               CATALOGS="$CATALOGS $lang.gmo"
23176             done
23177           fi
23178           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23179           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23180           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23181             if test -f "$f"; then
23182               case "$f" in
23183                 *.orig | *.bak | *~) ;;
23184                 *) cat "$f" >> "$ac_dir/Makefile" ;;
23185               esac
23186             fi
23187           done
23188         fi
23189         ;;
23190       esac
23191     done ;;
23192     "$ac_stdint_h":C)
23193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
23194 printf "%s\n" "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
23195 ac_stdint=$tmp/_stdint.h
23196
23197 echo "#ifndef" $_ac_stdint_h >$ac_stdint
23198 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
23199 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
23200 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
23201 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
23202 if test "_$ac_cv_header_stdint_t" != "_" ; then
23203 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
23204 echo "#include <stdint.h>" >>$ac_stdint
23205 echo "#endif" >>$ac_stdint
23206 echo "#endif" >>$ac_stdint
23207 else
23208
23209 cat >>$ac_stdint <<STDINT_EOF
23210
23211 /* ................... shortcircuit part ........................... */
23212
23213 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
23214 #include <stdint.h>
23215 #else
23216 #include <stddef.h>
23217
23218 /* .................... configured part ............................ */
23219
23220 STDINT_EOF
23221
23222 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
23223 if test "_$ac_cv_header_stdint_x" != "_" ; then
23224   ac_header="$ac_cv_header_stdint_x"
23225   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
23226 else
23227   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
23228 fi
23229
23230 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
23231 if  test "_$ac_cv_header_stdint_o" != "_" ; then
23232   ac_header="$ac_cv_header_stdint_o"
23233   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
23234 else
23235   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
23236 fi
23237
23238 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
23239 if  test "_$ac_cv_header_stdint_u" != "_" ; then
23240   ac_header="$ac_cv_header_stdint_u"
23241   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
23242 else
23243   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
23244 fi
23245
23246 echo "" >>$ac_stdint
23247
23248 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
23249   echo "#include <$ac_header>" >>$ac_stdint
23250   echo "" >>$ac_stdint
23251 fi fi
23252
23253 echo "/* which 64bit typedef has been found */" >>$ac_stdint
23254 if test "$ac_cv_type_uint64_t" = "yes" ; then
23255 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
23256 else
23257 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
23258 fi
23259 if test "$ac_cv_type_u_int64_t" = "yes" ; then
23260 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
23261 else
23262 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
23263 fi
23264 echo "" >>$ac_stdint
23265
23266 echo "/* which type model has been detected */" >>$ac_stdint
23267 if test "_$ac_cv_char_data_model" != "_" ; then
23268 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
23269 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
23270 else
23271 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
23272 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
23273 fi
23274 echo "" >>$ac_stdint
23275
23276 echo "/* whether int_least types were detected */" >>$ac_stdint
23277 if test "$ac_cv_type_int_least32_t" = "yes"; then
23278 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
23279 else
23280 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
23281 fi
23282 echo "/* whether int_fast types were detected */" >>$ac_stdint
23283 if test "$ac_cv_type_int_fast32_t" = "yes"; then
23284 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
23285 else
23286 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
23287 fi
23288 echo "/* whether intmax_t type was detected */" >>$ac_stdint
23289 if test "$ac_cv_type_intmax_t" = "yes"; then
23290 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
23291 else
23292 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
23293 fi
23294 echo "" >>$ac_stdint
23295
23296   cat >>$ac_stdint <<STDINT_EOF
23297 /* .................... detections part ............................ */
23298
23299 /* whether we need to define bitspecific types from compiler base types */
23300 #ifndef _STDINT_HEADER_INTPTR
23301 #ifndef _STDINT_HEADER_UINT32
23302 #ifndef _STDINT_HEADER_U_INT32
23303 #define _STDINT_NEED_INT_MODEL_T
23304 #else
23305 #define _STDINT_HAVE_U_INT_TYPES
23306 #endif
23307 #endif
23308 #endif
23309
23310 #ifdef _STDINT_HAVE_U_INT_TYPES
23311 #undef _STDINT_NEED_INT_MODEL_T
23312 #endif
23313
23314 #ifdef  _STDINT_CHAR_MODEL
23315 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
23316 #ifndef _STDINT_BYTE_MODEL
23317 #define _STDINT_BYTE_MODEL 12
23318 #endif
23319 #endif
23320 #endif
23321
23322 #ifndef _STDINT_HAVE_INT_LEAST32_T
23323 #define _STDINT_NEED_INT_LEAST_T
23324 #endif
23325
23326 #ifndef _STDINT_HAVE_INT_FAST32_T
23327 #define _STDINT_NEED_INT_FAST_T
23328 #endif
23329
23330 #ifndef _STDINT_HEADER_INTPTR
23331 #define _STDINT_NEED_INTPTR_T
23332 #ifndef _STDINT_HAVE_INTMAX_T
23333 #define _STDINT_NEED_INTMAX_T
23334 #endif
23335 #endif
23336
23337
23338 /* .................... definition part ............................ */
23339
23340 /* some system headers have good uint64_t */
23341 #ifndef _HAVE_UINT64_T
23342 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
23343 #define _HAVE_UINT64_T
23344 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
23345 #define _HAVE_UINT64_T
23346 typedef u_int64_t uint64_t;
23347 #endif
23348 #endif
23349
23350 #ifndef _HAVE_UINT64_T
23351 /* .. here are some common heuristics using compiler runtime specifics */
23352 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
23353 #define _HAVE_UINT64_T
23354 #define _HAVE_LONGLONG_UINT64_T
23355 typedef long long int64_t;
23356 typedef unsigned long long uint64_t;
23357
23358 #elif !defined __STRICT_ANSI__
23359 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23360 #define _HAVE_UINT64_T
23361 typedef __int64 int64_t;
23362 typedef unsigned __int64 uint64_t;
23363
23364 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
23365 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
23366 #if !defined _NO_LONGLONG
23367 #define _HAVE_UINT64_T
23368 #define _HAVE_LONGLONG_UINT64_T
23369 typedef long long int64_t;
23370 typedef unsigned long long uint64_t;
23371 #endif
23372
23373 #elif defined __alpha || (defined __mips && defined _ABIN32)
23374 #if !defined _NO_LONGLONG
23375 typedef long int64_t;
23376 typedef unsigned long uint64_t;
23377 #endif
23378   /* compiler/cpu type to define int64_t */
23379 #endif
23380 #endif
23381 #endif
23382
23383 #if defined _STDINT_HAVE_U_INT_TYPES
23384 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
23385 typedef u_int8_t uint8_t;
23386 typedef u_int16_t uint16_t;
23387 typedef u_int32_t uint32_t;
23388
23389 /* glibc compatibility */
23390 #ifndef __int8_t_defined
23391 #define __int8_t_defined
23392 #endif
23393 #endif
23394
23395 #ifdef _STDINT_NEED_INT_MODEL_T
23396 /* we must guess all the basic types. Apart from byte-adressable system, */
23397 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
23398 /* (btw, those nibble-addressable systems are way off, or so we assume) */
23399
23400
23401 #if defined _STDINT_BYTE_MODEL
23402 #if _STDINT_LONG_MODEL+0 == 242
23403 /* 2:4:2 =  IP16 = a normal 16-bit system                */
23404 typedef unsigned char   uint8_t;
23405 typedef unsigned short  uint16_t;
23406 typedef unsigned long   uint32_t;
23407 #ifndef __int8_t_defined
23408 #define __int8_t_defined
23409 typedef          char    int8_t;
23410 typedef          short   int16_t;
23411 typedef          long    int32_t;
23412 #endif
23413 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
23414 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
23415 /* 4:4:4 = ILP32 = a normal 32-bit system                */
23416 typedef unsigned char   uint8_t;
23417 typedef unsigned short  uint16_t;
23418 typedef unsigned int    uint32_t;
23419 #ifndef __int8_t_defined
23420 #define __int8_t_defined
23421 typedef          char    int8_t;
23422 typedef          short   int16_t;
23423 typedef          int     int32_t;
23424 #endif
23425 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
23426 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
23427 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
23428 typedef unsigned char   uint8_t;
23429 typedef unsigned short  uint16_t;
23430 typedef unsigned int    uint32_t;
23431 #ifndef __int8_t_defined
23432 #define __int8_t_defined
23433 typedef          char    int8_t;
23434 typedef          short   int16_t;
23435 typedef          int     int32_t;
23436 #endif
23437 /* this system has a "long" of 64bit */
23438 #ifndef _HAVE_UINT64_T
23439 #define _HAVE_UINT64_T
23440 typedef unsigned long   uint64_t;
23441 typedef          long    int64_t;
23442 #endif
23443 #elif _STDINT_LONG_MODEL+0 == 448
23444 /*      LLP64   a 64-bit system derived from a 32-bit system */
23445 typedef unsigned char   uint8_t;
23446 typedef unsigned short  uint16_t;
23447 typedef unsigned int    uint32_t;
23448 #ifndef __int8_t_defined
23449 #define __int8_t_defined
23450 typedef          char    int8_t;
23451 typedef          short   int16_t;
23452 typedef          int     int32_t;
23453 #endif
23454 /* assuming the system has a "long long" */
23455 #ifndef _HAVE_UINT64_T
23456 #define _HAVE_UINT64_T
23457 #define _HAVE_LONGLONG_UINT64_T
23458 typedef unsigned long long uint64_t;
23459 typedef          long long  int64_t;
23460 #endif
23461 #else
23462 #define _STDINT_NO_INT32_T
23463 #endif
23464 #else
23465 #define _STDINT_NO_INT8_T
23466 #define _STDINT_NO_INT32_T
23467 #endif
23468 #endif
23469
23470 /*
23471  * quote from SunOS-5.8 sys/inttypes.h:
23472  * Use at your own risk.  As of February 1996, the committee is squarely
23473  * behind the fixed sized types; the "least" and "fast" types are still being
23474  * discussed.  The probability that the "fast" types may be removed before
23475  * the standard is finalized is high enough that they are not currently
23476  * implemented.
23477  */
23478
23479 #if defined _STDINT_NEED_INT_LEAST_T
23480 typedef  int8_t    int_least8_t;
23481 typedef  int16_t   int_least16_t;
23482 typedef  int32_t   int_least32_t;
23483 #ifdef _HAVE_UINT64_T
23484 typedef  int64_t   int_least64_t;
23485 #endif
23486
23487 typedef uint8_t   uint_least8_t;
23488 typedef uint16_t  uint_least16_t;
23489 typedef uint32_t  uint_least32_t;
23490 #ifdef _HAVE_UINT64_T
23491 typedef uint64_t  uint_least64_t;
23492 #endif
23493   /* least types */
23494 #endif
23495
23496 #if defined _STDINT_NEED_INT_FAST_T
23497 typedef  int8_t    int_fast8_t;
23498 typedef  int       int_fast16_t;
23499 typedef  int32_t   int_fast32_t;
23500 #ifdef _HAVE_UINT64_T
23501 typedef  int64_t   int_fast64_t;
23502 #endif
23503
23504 typedef uint8_t   uint_fast8_t;
23505 typedef unsigned  uint_fast16_t;
23506 typedef uint32_t  uint_fast32_t;
23507 #ifdef _HAVE_UINT64_T
23508 typedef uint64_t  uint_fast64_t;
23509 #endif
23510   /* fast types */
23511 #endif
23512
23513 #ifdef _STDINT_NEED_INTMAX_T
23514 #ifdef _HAVE_UINT64_T
23515 typedef  int64_t       intmax_t;
23516 typedef uint64_t      uintmax_t;
23517 #else
23518 typedef          long  intmax_t;
23519 typedef unsigned long uintmax_t;
23520 #endif
23521 #endif
23522
23523 #ifdef _STDINT_NEED_INTPTR_T
23524 #ifndef __intptr_t_defined
23525 #define __intptr_t_defined
23526 /* we encourage using "long" to store pointer values, never use "int" ! */
23527 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
23528 typedef  unsigned int   uintptr_t;
23529 typedef           int    intptr_t;
23530 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
23531 typedef  unsigned long  uintptr_t;
23532 typedef           long   intptr_t;
23533 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
23534 typedef        uint64_t uintptr_t;
23535 typedef         int64_t  intptr_t;
23536 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
23537 typedef  unsigned long  uintptr_t;
23538 typedef           long   intptr_t;
23539 #endif
23540 #endif
23541 #endif
23542
23543 /* The ISO C99 standard specifies that in C++ implementations these
23544    should only be defined if explicitly requested.  */
23545 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
23546 #ifndef UINT32_C
23547
23548 /* Signed.  */
23549 # define INT8_C(c)      c
23550 # define INT16_C(c)     c
23551 # define INT32_C(c)     c
23552 # ifdef _HAVE_LONGLONG_UINT64_T
23553 #  define INT64_C(c)    c ## L
23554 # else
23555 #  define INT64_C(c)    c ## LL
23556 # endif
23557
23558 /* Unsigned.  */
23559 # define UINT8_C(c)     c ## U
23560 # define UINT16_C(c)    c ## U
23561 # define UINT32_C(c)    c ## U
23562 # ifdef _HAVE_LONGLONG_UINT64_T
23563 #  define UINT64_C(c)   c ## UL
23564 # else
23565 #  define UINT64_C(c)   c ## ULL
23566 # endif
23567
23568 /* Maximal type.  */
23569 # ifdef _HAVE_LONGLONG_UINT64_T
23570 #  define INTMAX_C(c)   c ## L
23571 #  define UINTMAX_C(c)  c ## UL
23572 # else
23573 #  define INTMAX_C(c)   c ## LL
23574 #  define UINTMAX_C(c)  c ## ULL
23575 # endif
23576
23577   /* literalnumbers */
23578 #endif
23579 #endif
23580
23581 /* These limits are merily those of a two complement byte-oriented system */
23582
23583 /* Minimum of signed integral types.  */
23584 # define INT8_MIN               (-128)
23585 # define INT16_MIN              (-32767-1)
23586 # define INT32_MIN              (-2147483647-1)
23587 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
23588 /* Maximum of signed integral types.  */
23589 # define INT8_MAX               (127)
23590 # define INT16_MAX              (32767)
23591 # define INT32_MAX              (2147483647)
23592 # define INT64_MAX              (__INT64_C(9223372036854775807))
23593
23594 /* Maximum of unsigned integral types.  */
23595 # define UINT8_MAX              (255)
23596 # define UINT16_MAX             (65535)
23597 # define UINT32_MAX             (4294967295U)
23598 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
23599
23600 /* Minimum of signed integral types having a minimum size.  */
23601 # define INT_LEAST8_MIN         INT8_MIN
23602 # define INT_LEAST16_MIN        INT16_MIN
23603 # define INT_LEAST32_MIN        INT32_MIN
23604 # define INT_LEAST64_MIN        INT64_MIN
23605 /* Maximum of signed integral types having a minimum size.  */
23606 # define INT_LEAST8_MAX         INT8_MAX
23607 # define INT_LEAST16_MAX        INT16_MAX
23608 # define INT_LEAST32_MAX        INT32_MAX
23609 # define INT_LEAST64_MAX        INT64_MAX
23610
23611 /* Maximum of unsigned integral types having a minimum size.  */
23612 # define UINT_LEAST8_MAX        UINT8_MAX
23613 # define UINT_LEAST16_MAX       UINT16_MAX
23614 # define UINT_LEAST32_MAX       UINT32_MAX
23615 # define UINT_LEAST64_MAX       UINT64_MAX
23616
23617   /* shortcircuit*/
23618 #endif
23619   /* once */
23620 #endif
23621 #endif
23622 STDINT_EOF
23623 fi
23624     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
23625       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
23626 printf "%s\n" "$as_me: $ac_stdint_h is unchanged" >&6;}
23627     else
23628       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
23629 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23630          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
23631          X"$ac_stdint_h" : 'X\(//\)$' \| \
23632          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
23633 printf "%s\n" X"$ac_stdint_h" |
23634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23635             s//\1/
23636             q
23637           }
23638           /^X\(\/\/\)[^/].*/{
23639             s//\1/
23640             q
23641           }
23642           /^X\(\/\/\)$/{
23643             s//\1/
23644             q
23645           }
23646           /^X\(\/\).*/{
23647             s//\1/
23648             q
23649           }
23650           s/.*/./; q'`
23651       as_dir="$ac_dir"; as_fn_mkdir_p
23652       rm -f $ac_stdint_h
23653       mv $ac_stdint $ac_stdint_h
23654     fi
23655  ;;
23656
23657   esac
23658 done # for ac_tag
23659
23660
23661 as_fn_exit 0
23662 _ACEOF
23663 ac_clean_files=$ac_clean_files_save
23664
23665 test $ac_write_fail = 0 ||
23666   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23667
23668
23669 # configure is writing to config.log, and then calls config.status.
23670 # config.status does its own redirection, appending to config.log.
23671 # Unfortunately, on DOS this fails, as config.log is still kept open
23672 # by configure, so config.status won't be able to write to it; its
23673 # output is simply discarded.  So we exec the FD to /dev/null,
23674 # effectively closing config.log, so it can be properly (re)opened and
23675 # appended to by config.status.  When coming back to configure, we
23676 # need to make the FD available again.
23677 if test "$no_create" != yes; then
23678   ac_cs_success=:
23679   ac_config_status_args=
23680   test "$silent" = yes &&
23681     ac_config_status_args="$ac_config_status_args --quiet"
23682   exec 5>/dev/null
23683   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23684   exec 5>>config.log
23685   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23686   # would make configure fail if this is the last instruction.
23687   $ac_cs_success || as_fn_exit 1
23688 fi
23689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23690   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23691 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23692 fi
23693
23694