Apply ASLR to executable files.
[platform/upstream/fribidi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU FriBidi 0.19.7.
4 #
5 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='GNU FriBidi'
593 PACKAGE_TARNAME='fribidi'
594 PACKAGE_VERSION='0.19.7'
595 PACKAGE_STRING='GNU FriBidi 0.19.7'
596 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi'
597 PACKAGE_URL='http://fribidi.org/'
598
599 ac_unique_file="fribidi.pc.in"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 MISC_PACKAGES
641 MISC_LIBS
642 MISC_CFLAGS
643 FRIBIDI_USE_GLIB_FALSE
644 FRIBIDI_USE_GLIB_TRUE
645 FRIBIDI_USE_GLIB
646 GLIB_LIBS
647 GLIB_CFLAGS
648 FRIBIDI_CHARSETS_FALSE
649 FRIBIDI_CHARSETS_TRUE
650 FRIBIDI_CHARSETS
651 FRIBIDI_NO_DEPRECATED
652 SIZEOF_INT
653 PLATFORM_WIN32_FALSE
654 PLATFORM_WIN32_TRUE
655 OS_WIN32_FALSE
656 OS_WIN32_TRUE
657 PKG_CONFIG_LIBDIR
658 PKG_CONFIG_PATH
659 PKG_CONFIG
660 LT_CURRENT_MINUS_AGE
661 LT_VERSION_INFO
662 FRIBIDI_BINARY_AGE
663 FRIBIDI_INTERFACE_AGE
664 FRIBIDI_INTERFACE_VERSION
665 FRIBIDI_VERSION
666 FRIBIDI_MICRO_VERSION
667 FRIBIDI_MINOR_VERSION
668 FRIBIDI_MAJOR_VERSION
669 CPP
670 LT_SYS_LIBRARY_PATH
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 MANIFEST_TOOL
677 RANLIB
678 DLLTOOL
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 LIBTOOL
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 ac_ct_AR
716 AR
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL'
782 ac_subst_files=''
783 ac_user_opts='
784 enable_option_checking
785 enable_silent_rules
786 enable_dependency_tracking
787 enable_static
788 enable_shared
789 with_pic
790 enable_fast_install
791 with_aix_soname
792 with_gnu_ld
793 with_sysroot
794 enable_libtool_lock
795 enable_debug
796 enable_deprecated
797 enable_charsets
798 with_glib
799 '
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 LT_SYS_LIBRARY_PATH
809 CPP
810 PKG_CONFIG
811 PKG_CONFIG_PATH
812 PKG_CONFIG_LIBDIR
813 GLIB_CFLAGS
814 GLIB_LIBS'
815
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 ac_unrecognized_opts=
821 ac_unrecognized_sep=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *=)   ac_optarg= ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924       as_fn_error $? "invalid feature name: $ac_useropt"
925     ac_useropt_orig=$ac_useropt
926     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927     case $ac_user_opts in
928       *"
929 "enable_$ac_useropt"
930 "*) ;;
931       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932          ac_unrecognized_sep=', ';;
933     esac
934     eval enable_$ac_useropt=no ;;
935
936   -docdir | --docdir | --docdi | --doc | --do)
937     ac_prev=docdir ;;
938   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939     docdir=$ac_optarg ;;
940
941   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942     ac_prev=dvidir ;;
943   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944     dvidir=$ac_optarg ;;
945
946   -enable-* | --enable-*)
947     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948     # Reject names that are not valid shell variable names.
949     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950       as_fn_error $? "invalid feature name: $ac_useropt"
951     ac_useropt_orig=$ac_useropt
952     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953     case $ac_user_opts in
954       *"
955 "enable_$ac_useropt"
956 "*) ;;
957       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958          ac_unrecognized_sep=', ';;
959     esac
960     eval enable_$ac_useropt=\$ac_optarg ;;
961
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
970
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
974
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
981
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
986
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
992
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
999
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1004
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1009
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1016
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1021
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1028
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1033
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1037
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1041
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1045
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1054
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1059
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1066
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1073
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1090
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1095
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1100
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1104
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1110
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1121
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1126
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1131
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1138
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1143
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1146
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1149
1150   -with-* | --with-*)
1151     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154       as_fn_error $? "invalid package name: $ac_useropt"
1155     ac_useropt_orig=$ac_useropt
1156     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157     case $ac_user_opts in
1158       *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162          ac_unrecognized_sep=', ';;
1163     esac
1164     eval with_$ac_useropt=\$ac_optarg ;;
1165
1166   -without-* | --without-*)
1167     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168     # Reject names that are not valid shell variable names.
1169     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170       as_fn_error $? "invalid package name: $ac_useropt"
1171     ac_useropt_orig=$ac_useropt
1172     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173     case $ac_user_opts in
1174       *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178          ac_unrecognized_sep=', ';;
1179     esac
1180     eval with_$ac_useropt=no ;;
1181
1182   --x)
1183     # Obsolete; use --with-x.
1184     with_x=yes ;;
1185
1186   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187   | --x-incl | --x-inc | --x-in | --x-i)
1188     ac_prev=x_includes ;;
1189   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191     x_includes=$ac_optarg ;;
1192
1193   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195     ac_prev=x_libraries ;;
1196   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198     x_libraries=$ac_optarg ;;
1199
1200   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1202     ;;
1203
1204   *=*)
1205     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206     # Reject names that are not valid shell variable names.
1207     case $ac_envvar in #(
1208       '' | [0-9]* | *[!_$as_cr_alnum]* )
1209       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210     esac
1211     eval $ac_envvar=\$ac_optarg
1212     export $ac_envvar ;;
1213
1214   *)
1215     # FIXME: should be removed in autoconf 3.0.
1216     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220     ;;
1221
1222   esac
1223 done
1224
1225 if test -n "$ac_prev"; then
1226   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227   as_fn_error $? "missing argument to $ac_option"
1228 fi
1229
1230 if test -n "$ac_unrecognized_opts"; then
1231   case $enable_option_checking in
1232     no) ;;
1233     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235   esac
1236 fi
1237
1238 # Check all directory arguments for consistency.
1239 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240                 datadir sysconfdir sharedstatedir localstatedir includedir \
1241                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242                 libdir localedir mandir
1243 do
1244   eval ac_val=\$$ac_var
1245   # Remove trailing slashes.
1246   case $ac_val in
1247     */ )
1248       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249       eval $ac_var=\$ac_val;;
1250   esac
1251   # Be sure to have absolute directory names.
1252   case $ac_val in
1253     [\\/$]* | ?:[\\/]* )  continue;;
1254     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255   esac
1256   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 done
1258
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1265
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268   if test "x$build_alias" = x; then
1269     cross_compiling=maybe
1270   elif test "x$build_alias" != "x$host_alias"; then
1271     cross_compiling=yes
1272   fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284   as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286   as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291   ac_srcdir_defaulted=yes
1292   # Try the directory containing this script, then the parent directory.
1293   ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295          X"$as_myself" : 'X\(//\)[^/]' \| \
1296          X"$as_myself" : 'X\(//\)$' \| \
1297          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300             s//\1/
1301             q
1302           }
1303           /^X\(\/\/\)[^/].*/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\/\)$/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\).*/{
1312             s//\1/
1313             q
1314           }
1315           s/.*/./; q'`
1316   srcdir=$ac_confdir
1317   if test ! -r "$srcdir/$ac_unique_file"; then
1318     srcdir=..
1319   fi
1320 else
1321   ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 fi
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330         pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333   srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343   eval ac_env_${ac_var}_value=\$${ac_var}
1344   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352   # Omit some internal or obsolete options to make the list less imposing.
1353   # This message is too long to be a string in the A/UX 3.1 sh.
1354   cat <<_ACEOF
1355 \`configure' configures GNU FriBidi 0.19.7 to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365   -h, --help              display this help and exit
1366       --help=short        display options specific to this package
1367       --help=recursive    display the short help of all the included packages
1368   -V, --version           display version information and exit
1369   -q, --quiet, --silent   do not print \`checking ...' messages
1370       --cache-file=FILE   cache test results in FILE [disabled]
1371   -C, --config-cache      alias for \`--cache-file=config.cache'
1372   -n, --no-create         do not create output files
1373       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376   --prefix=PREFIX         install architecture-independent files in PREFIX
1377                           [$ac_default_prefix]
1378   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                           [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389   --bindir=DIR            user executables [EPREFIX/bin]
1390   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391   --libexecdir=DIR        program executables [EPREFIX/libexec]
1392   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395   --libdir=DIR            object code libraries [EPREFIX/lib]
1396   --includedir=DIR        C header files [PREFIX/include]
1397   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400   --infodir=DIR           info documentation [DATAROOTDIR/info]
1401   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402   --mandir=DIR            man documentation [DATAROOTDIR/man]
1403   --docdir=DIR            documentation root [DATAROOTDIR/doc/fribidi]
1404   --htmldir=DIR           html documentation [DOCDIR]
1405   --dvidir=DIR            dvi documentation [DOCDIR]
1406   --pdfdir=DIR            pdf documentation [DOCDIR]
1407   --psdir=DIR             ps documentation [DOCDIR]
1408 _ACEOF
1409
1410   cat <<\_ACEOF
1411
1412 Program names:
1413   --program-prefix=PREFIX            prepend PREFIX to installed program names
1414   --program-suffix=SUFFIX            append SUFFIX to installed program names
1415   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417 System types:
1418   --build=BUILD     configure for building on BUILD [guessed]
1419   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420 _ACEOF
1421 fi
1422
1423 if test -n "$ac_init_help"; then
1424   case $ac_init_help in
1425      short | recursive ) echo "Configuration of GNU FriBidi 0.19.7:";;
1426    esac
1427   cat <<\_ACEOF
1428
1429 Optional Features:
1430   --disable-option-checking  ignore unrecognized --enable/--with options
1431   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433   --enable-silent-rules   less verbose build output (undo: "make V=1")
1434   --disable-silent-rules  verbose build output (undo: "make V=0")
1435   --enable-dependency-tracking
1436                           do not reject slow dependency extractors
1437   --disable-dependency-tracking
1438                           speeds up one-time build
1439   --enable-static[=PKGS]  build static libraries [default=no]
1440   --enable-shared[=PKGS]  build shared libraries [default=yes]
1441   --enable-fast-install[=PKGS]
1442                           optimize for fast installation [default=yes]
1443   --disable-libtool-lock  avoid locking (might break parallel builds)
1444   --enable-debug          turn on debugging [default=yes]
1445   --disable-deprecated    do not build deprecated functionality
1446   --disable-charsets      exclude charset conversion routines from library
1447
1448 Optional Packages:
1449   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1452                           both]
1453   --with-aix-soname=aix|svr4|both
1454                           shared library versioning (aka "SONAME") variant to
1455                           provide on AIX, [default=aix].
1456   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1457   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1458                           compiler's sysroot if not specified).
1459   --with-glib=[no/auto/yes]
1460                           use Glib [default=auto]
1461
1462 Some influential environment variables:
1463   CC          C compiler command
1464   CFLAGS      C compiler flags
1465   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466               nonstandard directory <lib dir>
1467   LIBS        libraries to pass to the linker, e.g. -l<library>
1468   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469               you have headers in a nonstandard directory <include dir>
1470   LT_SYS_LIBRARY_PATH
1471               User-defined run-time library search path.
1472   CPP         C preprocessor
1473   PKG_CONFIG  path to pkg-config utility
1474   PKG_CONFIG_PATH
1475               directories to add to pkg-config's search path
1476   PKG_CONFIG_LIBDIR
1477               path overriding pkg-config's built-in search path
1478   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1479   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1480
1481 Use these variables to override the choices made by `configure' or to help
1482 it to find libraries and programs with nonstandard names/locations.
1483
1484 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi>.
1485 GNU FriBidi home page: <http://fribidi.org/>.
1486 General help using GNU software: <http://www.gnu.org/gethelp/>.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492   # If there are subdirs, report their specific --help.
1493   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494     test -d "$ac_dir" ||
1495       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496       continue
1497     ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503   # A ".." for each directory in $ac_dir_suffix.
1504   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505   case $ac_top_builddir_sub in
1506   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508   esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516   .)  # We are building in place.
1517     ac_srcdir=.
1518     ac_top_srcdir=$ac_top_builddir_sub
1519     ac_abs_top_srcdir=$ac_pwd ;;
1520   [\\/]* | ?:[\\/]* )  # Absolute name.
1521     ac_srcdir=$srcdir$ac_dir_suffix;
1522     ac_top_srcdir=$srcdir
1523     ac_abs_top_srcdir=$srcdir ;;
1524   *) # Relative name.
1525     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526     ac_top_srcdir=$ac_top_build_prefix$srcdir
1527     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531     cd "$ac_dir" || { ac_status=$?; continue; }
1532     # Check for guested configure.
1533     if test -f "$ac_srcdir/configure.gnu"; then
1534       echo &&
1535       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536     elif test -f "$ac_srcdir/configure"; then
1537       echo &&
1538       $SHELL "$ac_srcdir/configure" --help=recursive
1539     else
1540       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541     fi || ac_status=$?
1542     cd "$ac_pwd" || { ac_status=$?; break; }
1543   done
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548   cat <<\_ACEOF
1549 GNU FriBidi configure 0.19.7
1550 generated by GNU Autoconf 2.69
1551
1552 Copyright (C) 2012 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556   exit
1557 fi
1558
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1562
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   rm -f conftest.$ac_objext
1570   if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_compile") 2>conftest.err
1578   ac_status=$?
1579   if test -s conftest.err; then
1580     grep -v '^ *+' conftest.err >conftest.er1
1581     cat conftest.er1 >&5
1582     mv -f conftest.er1 conftest.err
1583   fi
1584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585   test $ac_status = 0; } && {
1586          test -z "$ac_c_werror_flag" ||
1587          test ! -s conftest.err
1588        } && test -s conftest.$ac_objext; then :
1589   ac_retval=0
1590 else
1591   $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594         ac_retval=1
1595 fi
1596   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597   as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_compile
1600
1601 # ac_fn_c_try_link LINENO
1602 # -----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_link ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   rm -f conftest.$ac_objext conftest$ac_exeext
1608   if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_link") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } && {
1624          test -z "$ac_c_werror_flag" ||
1625          test ! -s conftest.err
1626        } && test -s conftest$ac_exeext && {
1627          test "$cross_compiling" = yes ||
1628          test -x conftest$ac_exeext
1629        }; then :
1630   ac_retval=0
1631 else
1632   $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635         ac_retval=1
1636 fi
1637   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639   # interfere with the next link command; also delete a directory that is
1640   # left behind by Apple's compiler.  We do this before executing the actions.
1641   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643   as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_link
1646
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657   $as_echo_n "(cached) " >&6
1658 else
1659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h.  */
1661 $4
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665   eval "$3=yes"
1666 else
1667   eval "$3=no"
1668 fi
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 fi
1671 eval ac_res=\$$3
1672                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_c_check_header_compile
1677
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_cpp ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692   ac_status=$?
1693   if test -s conftest.err; then
1694     grep -v '^ *+' conftest.err >conftest.er1
1695     cat conftest.er1 >&5
1696     mv -f conftest.er1 conftest.err
1697   fi
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } > conftest.i && {
1700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701          test ! -s conftest.err
1702        }; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708     ac_retval=1
1709 fi
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711   as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_cpp
1714
1715 # ac_fn_c_try_run LINENO
1716 # ----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718 # that executables *can* be run.
1719 ac_fn_c_try_run ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725   *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729   (eval "$ac_link") 2>&5
1730   ac_status=$?
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733   { { case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_try") 2>&5
1740   ac_status=$?
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; }; }; then :
1743   ac_retval=0
1744 else
1745   $as_echo "$as_me: program exited with status $ac_status" >&5
1746        $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749        ac_retval=$ac_status
1750 fi
1751   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753   as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_run
1756
1757 # ac_fn_c_check_func LINENO FUNC VAR
1758 # ----------------------------------
1759 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1760 ac_fn_c_check_func ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766   $as_echo_n "(cached) " >&6
1767 else
1768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h.  */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1772 #define $2 innocuous_$2
1773
1774 /* System header to define __stub macros and hopefully few prototypes,
1775     which can conflict with char $2 (); below.
1776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777     <limits.h> exists even on freestanding compilers.  */
1778
1779 #ifdef __STDC__
1780 # include <limits.h>
1781 #else
1782 # include <assert.h>
1783 #endif
1784
1785 #undef $2
1786
1787 /* Override any GCC internal prototype to avoid an error.
1788    Use char because int might match the return type of a GCC
1789    builtin and then its argument prototype would still apply.  */
1790 #ifdef __cplusplus
1791 extern "C"
1792 #endif
1793 char $2 ();
1794 /* The GNU C library defines this for functions which it implements
1795     to always fail with ENOSYS.  Some functions are actually named
1796     something starting with __ and the normal name is an alias.  */
1797 #if defined __stub_$2 || defined __stub___$2
1798 choke me
1799 #endif
1800
1801 int
1802 main ()
1803 {
1804 return $2 ();
1805   ;
1806   return 0;
1807 }
1808 _ACEOF
1809 if ac_fn_c_try_link "$LINENO"; then :
1810   eval "$3=yes"
1811 else
1812   eval "$3=no"
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext \
1815     conftest$ac_exeext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_func
1823
1824 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1827 # the include files in INCLUDES and setting the cache variable VAR
1828 # accordingly.
1829 ac_fn_c_check_header_mongrel ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   if eval \${$3+:} false; then :
1833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836   $as_echo_n "(cached) " >&6
1837 fi
1838 eval ac_res=\$$3
1839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 else
1842   # Is the header compilable?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1844 $as_echo_n "checking $2 usability... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h.  */
1847 $4
1848 #include <$2>
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851   ac_header_compiler=yes
1852 else
1853   ac_header_compiler=no
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1857 $as_echo "$ac_header_compiler" >&6; }
1858
1859 # Is the header present?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1861 $as_echo_n "checking $2 presence... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h.  */
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_cpp "$LINENO"; then :
1867   ac_header_preproc=yes
1868 else
1869   ac_header_preproc=no
1870 fi
1871 rm -f conftest.err conftest.i conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1873 $as_echo "$ac_header_preproc" >&6; }
1874
1875 # So?  What about this header?
1876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1877   yes:no: )
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1879 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882     ;;
1883   no:yes:* )
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1885 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1887 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1888     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1889 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1891 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 ( $as_echo "## ------------------------------------------------------------------------ ##
1895 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi ##
1896 ## ------------------------------------------------------------------------ ##"
1897      ) | sed "s/^/$as_me: WARNING:     /" >&2
1898     ;;
1899 esac
1900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903   $as_echo_n "(cached) " >&6
1904 else
1905   eval "$3=\$ac_header_compiler"
1906 fi
1907 eval ac_res=\$$3
1908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 fi
1911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913 } # ac_fn_c_check_header_mongrel
1914
1915 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1916 # --------------------------------------------
1917 # Tries to find the compile-time value of EXPR in a program that includes
1918 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1919 # computed
1920 ac_fn_c_compute_int ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   if test "$cross_compiling" = yes; then
1924     # Depending upon the size, compute the lo and hi bounds.
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 $4
1928 int
1929 main ()
1930 {
1931 static int test_array [1 - 2 * !(($2) >= 0)];
1932 test_array [0] = 0;
1933 return test_array [0];
1934
1935   ;
1936   return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940   ac_lo=0 ac_mid=0
1941   while :; do
1942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h.  */
1944 $4
1945 int
1946 main ()
1947 {
1948 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1949 test_array [0] = 0;
1950 return test_array [0];
1951
1952   ;
1953   return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957   ac_hi=$ac_mid; break
1958 else
1959   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1960                         if test $ac_lo -le $ac_mid; then
1961                           ac_lo= ac_hi=
1962                           break
1963                         fi
1964                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967   done
1968 else
1969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h.  */
1971 $4
1972 int
1973 main ()
1974 {
1975 static int test_array [1 - 2 * !(($2) < 0)];
1976 test_array [0] = 0;
1977 return test_array [0];
1978
1979   ;
1980   return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984   ac_hi=-1 ac_mid=-1
1985   while :; do
1986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1993 test_array [0] = 0;
1994 return test_array [0];
1995
1996   ;
1997   return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001   ac_lo=$ac_mid; break
2002 else
2003   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2004                         if test $ac_mid -le $ac_hi; then
2005                           ac_lo= ac_hi=
2006                           break
2007                         fi
2008                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011   done
2012 else
2013   ac_lo= ac_hi=
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 # Binary search between lo and hi bounds.
2019 while test "x$ac_lo" != "x$ac_hi"; do
2020   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 int
2025 main ()
2026 {
2027 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2028 test_array [0] = 0;
2029 return test_array [0];
2030
2031   ;
2032   return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036   ac_hi=$ac_mid
2037 else
2038   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 done
2042 case $ac_lo in #((
2043 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2044 '') ac_retval=1 ;;
2045 esac
2046   else
2047     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $4
2050 static long int longval () { return $2; }
2051 static unsigned long int ulongval () { return $2; }
2052 #include <stdio.h>
2053 #include <stdlib.h>
2054 int
2055 main ()
2056 {
2057
2058   FILE *f = fopen ("conftest.val", "w");
2059   if (! f)
2060     return 1;
2061   if (($2) < 0)
2062     {
2063       long int i = longval ();
2064       if (i != ($2))
2065         return 1;
2066       fprintf (f, "%ld", i);
2067     }
2068   else
2069     {
2070       unsigned long int i = ulongval ();
2071       if (i != ($2))
2072         return 1;
2073       fprintf (f, "%lu", i);
2074     }
2075   /* Do not output a trailing newline, as this causes \r\n confusion
2076      on some platforms.  */
2077   return ferror (f) || fclose (f) != 0;
2078
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_run "$LINENO"; then :
2084   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2085 else
2086   ac_retval=1
2087 fi
2088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2089   conftest.$ac_objext conftest.beam conftest.$ac_ext
2090 rm -f conftest.val
2091
2092   fi
2093   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094   as_fn_set_status $ac_retval
2095
2096 } # ac_fn_c_compute_int
2097 cat >config.log <<_ACEOF
2098 This file contains any messages produced by compilers while
2099 running configure, to aid debugging if configure makes a mistake.
2100
2101 It was created by GNU FriBidi $as_me 0.19.7, which was
2102 generated by GNU Autoconf 2.69.  Invocation command line was
2103
2104   $ $0 $@
2105
2106 _ACEOF
2107 exec 5>>config.log
2108 {
2109 cat <<_ASUNAME
2110 ## --------- ##
2111 ## Platform. ##
2112 ## --------- ##
2113
2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119
2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2122
2123 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2124 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2127 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2128 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2129 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2130
2131 _ASUNAME
2132
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136   IFS=$as_save_IFS
2137   test -z "$as_dir" && as_dir=.
2138     $as_echo "PATH: $as_dir"
2139   done
2140 IFS=$as_save_IFS
2141
2142 } >&5
2143
2144 cat >&5 <<_ACEOF
2145
2146
2147 ## ----------- ##
2148 ## Core tests. ##
2149 ## ----------- ##
2150
2151 _ACEOF
2152
2153
2154 # Keep a trace of the command line.
2155 # Strip out --no-create and --no-recursion so they do not pile up.
2156 # Strip out --silent because we don't want to record it for future runs.
2157 # Also quote any args containing shell meta-characters.
2158 # Make two passes to allow for proper duplicate-argument suppression.
2159 ac_configure_args=
2160 ac_configure_args0=
2161 ac_configure_args1=
2162 ac_must_keep_next=false
2163 for ac_pass in 1 2
2164 do
2165   for ac_arg
2166   do
2167     case $ac_arg in
2168     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170     | -silent | --silent | --silen | --sile | --sil)
2171       continue ;;
2172     *\'*)
2173       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174     esac
2175     case $ac_pass in
2176     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2177     2)
2178       as_fn_append ac_configure_args1 " '$ac_arg'"
2179       if test $ac_must_keep_next = true; then
2180         ac_must_keep_next=false # Got value, back to normal.
2181       else
2182         case $ac_arg in
2183           *=* | --config-cache | -C | -disable-* | --disable-* \
2184           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186           | -with-* | --with-* | -without-* | --without-* | --x)
2187             case "$ac_configure_args0 " in
2188               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189             esac
2190             ;;
2191           -* ) ac_must_keep_next=true ;;
2192         esac
2193       fi
2194       as_fn_append ac_configure_args " '$ac_arg'"
2195       ;;
2196     esac
2197   done
2198 done
2199 { ac_configure_args0=; unset ac_configure_args0;}
2200 { ac_configure_args1=; unset ac_configure_args1;}
2201
2202 # When interrupted or exit'd, cleanup temporary files, and complete
2203 # config.log.  We remove comments because anyway the quotes in there
2204 # would cause problems or look ugly.
2205 # WARNING: Use '\'' to represent an apostrophe within the trap.
2206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2207 trap 'exit_status=$?
2208   # Save into config.log some information that might help in debugging.
2209   {
2210     echo
2211
2212     $as_echo "## ---------------- ##
2213 ## Cache variables. ##
2214 ## ---------------- ##"
2215     echo
2216     # The following way of writing the cache mishandles newlines in values,
2217 (
2218   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2219     eval ac_val=\$$ac_var
2220     case $ac_val in #(
2221     *${as_nl}*)
2222       case $ac_var in #(
2223       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2224 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2225       esac
2226       case $ac_var in #(
2227       _ | IFS | as_nl) ;; #(
2228       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2229       *) { eval $ac_var=; unset $ac_var;} ;;
2230       esac ;;
2231     esac
2232   done
2233   (set) 2>&1 |
2234     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235     *${as_nl}ac_space=\ *)
2236       sed -n \
2237         "s/'\''/'\''\\\\'\'''\''/g;
2238           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239       ;; #(
2240     *)
2241       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2242       ;;
2243     esac |
2244     sort
2245 )
2246     echo
2247
2248     $as_echo "## ----------------- ##
2249 ## Output variables. ##
2250 ## ----------------- ##"
2251     echo
2252     for ac_var in $ac_subst_vars
2253     do
2254       eval ac_val=\$$ac_var
2255       case $ac_val in
2256       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257       esac
2258       $as_echo "$ac_var='\''$ac_val'\''"
2259     done | sort
2260     echo
2261
2262     if test -n "$ac_subst_files"; then
2263       $as_echo "## ------------------- ##
2264 ## File substitutions. ##
2265 ## ------------------- ##"
2266       echo
2267       for ac_var in $ac_subst_files
2268       do
2269         eval ac_val=\$$ac_var
2270         case $ac_val in
2271         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272         esac
2273         $as_echo "$ac_var='\''$ac_val'\''"
2274       done | sort
2275       echo
2276     fi
2277
2278     if test -s confdefs.h; then
2279       $as_echo "## ----------- ##
2280 ## confdefs.h. ##
2281 ## ----------- ##"
2282       echo
2283       cat confdefs.h
2284       echo
2285     fi
2286     test "$ac_signal" != 0 &&
2287       $as_echo "$as_me: caught signal $ac_signal"
2288     $as_echo "$as_me: exit $exit_status"
2289   } >&5
2290   rm -f core *.core core.conftest.* &&
2291     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2292     exit $exit_status
2293 ' 0
2294 for ac_signal in 1 2 13 15; do
2295   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2296 done
2297 ac_signal=0
2298
2299 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2300 rm -f -r conftest* confdefs.h
2301
2302 $as_echo "/* confdefs.h */" > confdefs.h
2303
2304 # Predefined preprocessor variables.
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_NAME "$PACKAGE_NAME"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_STRING "$PACKAGE_STRING"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_URL "$PACKAGE_URL"
2328 _ACEOF
2329
2330
2331 # Let the site file select an alternate cache file if it wants to.
2332 # Prefer an explicitly selected file to automatically selected ones.
2333 ac_site_file1=NONE
2334 ac_site_file2=NONE
2335 if test -n "$CONFIG_SITE"; then
2336   # We do not want a PATH search for config.site.
2337   case $CONFIG_SITE in #((
2338     -*)  ac_site_file1=./$CONFIG_SITE;;
2339     */*) ac_site_file1=$CONFIG_SITE;;
2340     *)   ac_site_file1=./$CONFIG_SITE;;
2341   esac
2342 elif test "x$prefix" != xNONE; then
2343   ac_site_file1=$prefix/share/config.site
2344   ac_site_file2=$prefix/etc/config.site
2345 else
2346   ac_site_file1=$ac_default_prefix/share/config.site
2347   ac_site_file2=$ac_default_prefix/etc/config.site
2348 fi
2349 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2350 do
2351   test "x$ac_site_file" = xNONE && continue
2352   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2353     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2354 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2355     sed 's/^/| /' "$ac_site_file" >&5
2356     . "$ac_site_file" \
2357       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 as_fn_error $? "failed to load site script $ac_site_file
2360 See \`config.log' for more details" "$LINENO" 5; }
2361   fi
2362 done
2363
2364 if test -r "$cache_file"; then
2365   # Some versions of bash will fail to source /dev/null (special files
2366   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2367   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2368     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2369 $as_echo "$as_me: loading cache $cache_file" >&6;}
2370     case $cache_file in
2371       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372       *)                      . "./$cache_file";;
2373     esac
2374   fi
2375 else
2376   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2377 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378   >$cache_file
2379 fi
2380
2381 # Check that the precious variables saved in the cache have kept the same
2382 # value.
2383 ac_cache_corrupted=false
2384 for ac_var in $ac_precious_vars; do
2385   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2386   eval ac_new_set=\$ac_env_${ac_var}_set
2387   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2388   eval ac_new_val=\$ac_env_${ac_var}_value
2389   case $ac_old_set,$ac_new_set in
2390     set,)
2391       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2392 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2393       ac_cache_corrupted=: ;;
2394     ,set)
2395       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2397       ac_cache_corrupted=: ;;
2398     ,);;
2399     *)
2400       if test "x$ac_old_val" != "x$ac_new_val"; then
2401         # differences in whitespace do not lead to failure.
2402         ac_old_val_w=`echo x $ac_old_val`
2403         ac_new_val_w=`echo x $ac_new_val`
2404         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2405           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2406 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407           ac_cache_corrupted=:
2408         else
2409           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2410 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2411           eval $ac_var=\$ac_old_val
2412         fi
2413         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2414 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2415         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2416 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2417       fi;;
2418   esac
2419   # Pass precious variables to config.status.
2420   if test "$ac_new_set" = set; then
2421     case $ac_new_val in
2422     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2423     *) ac_arg=$ac_var=$ac_new_val ;;
2424     esac
2425     case " $ac_configure_args " in
2426       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2427       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2428     esac
2429   fi
2430 done
2431 if $ac_cache_corrupted; then
2432   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2435 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2436   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2437 fi
2438 ## -------------------- ##
2439 ## Main body of script. ##
2440 ## -------------------- ##
2441
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447
2448
2449
2450
2451 ac_config_headers="$ac_config_headers config.h"
2452
2453
2454
2455 am__api_version='1.15'
2456
2457 ac_aux_dir=
2458 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2459   if test -f "$ac_dir/install-sh"; then
2460     ac_aux_dir=$ac_dir
2461     ac_install_sh="$ac_aux_dir/install-sh -c"
2462     break
2463   elif test -f "$ac_dir/install.sh"; then
2464     ac_aux_dir=$ac_dir
2465     ac_install_sh="$ac_aux_dir/install.sh -c"
2466     break
2467   elif test -f "$ac_dir/shtool"; then
2468     ac_aux_dir=$ac_dir
2469     ac_install_sh="$ac_aux_dir/shtool install -c"
2470     break
2471   fi
2472 done
2473 if test -z "$ac_aux_dir"; then
2474   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2475 fi
2476
2477 # These three variables are undocumented and unsupported,
2478 # and are intended to be withdrawn in a future Autoconf release.
2479 # They can cause serious problems if a builder's source tree is in a directory
2480 # whose full name contains unusual characters.
2481 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2482 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2483 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2484
2485
2486 # Find a good install program.  We prefer a C program (faster),
2487 # so one script is as good as another.  But avoid the broken or
2488 # incompatible versions:
2489 # SysV /etc/install, /usr/sbin/install
2490 # SunOS /usr/etc/install
2491 # IRIX /sbin/install
2492 # AIX /bin/install
2493 # AmigaOS /C/install, which installs bootblocks on floppy discs
2494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497 # OS/2's system install, which has a completely different semantic
2498 # ./install, which can be erroneously created by make from ./install.sh.
2499 # Reject install programs that cannot install multiple files.
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2502 if test -z "$INSTALL"; then
2503 if ${ac_cv_path_install+:} false; then :
2504   $as_echo_n "(cached) " >&6
2505 else
2506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511     # Account for people who put trailing slashes in PATH elements.
2512 case $as_dir/ in #((
2513   ./ | .// | /[cC]/* | \
2514   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516   /usr/ucb/* ) ;;
2517   *)
2518     # OSF1 and SCO ODT 3.0 have their own names for install.
2519     # Don't use installbsd from OSF since it installs stuff as root
2520     # by default.
2521     for ac_prog in ginstall scoinst install; do
2522       for ac_exec_ext in '' $ac_executable_extensions; do
2523         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2524           if test $ac_prog = install &&
2525             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526             # AIX install.  It has an incompatible calling convention.
2527             :
2528           elif test $ac_prog = install &&
2529             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530             # program-specific install script used by HP pwplus--don't use.
2531             :
2532           else
2533             rm -rf conftest.one conftest.two conftest.dir
2534             echo one > conftest.one
2535             echo two > conftest.two
2536             mkdir conftest.dir
2537             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538               test -s conftest.one && test -s conftest.two &&
2539               test -s conftest.dir/conftest.one &&
2540               test -s conftest.dir/conftest.two
2541             then
2542               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543               break 3
2544             fi
2545           fi
2546         fi
2547       done
2548     done
2549     ;;
2550 esac
2551
2552   done
2553 IFS=$as_save_IFS
2554
2555 rm -rf conftest.one conftest.two conftest.dir
2556
2557 fi
2558   if test "${ac_cv_path_install+set}" = set; then
2559     INSTALL=$ac_cv_path_install
2560   else
2561     # As a last resort, use the slow shell script.  Don't cache a
2562     # value for INSTALL within a source directory, because that will
2563     # break other packages using the cache if that directory is
2564     # removed, or if the value is a relative name.
2565     INSTALL=$ac_install_sh
2566   fi
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569 $as_echo "$INSTALL" >&6; }
2570
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580 $as_echo_n "checking whether build environment is sane... " >&6; }
2581 # Reject unsafe characters in $srcdir or the absolute working directory
2582 # name.  Accept space and tab only in the latter.
2583 am_lf='
2584 '
2585 case `pwd` in
2586   *[\\\"\#\$\&\'\`$am_lf]*)
2587     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2588 esac
2589 case $srcdir in
2590   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2591     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2592 esac
2593
2594 # Do 'set' in a subshell so we don't clobber the current shell's
2595 # arguments.  Must try -L first in case configure is actually a
2596 # symlink; some systems play weird games with the mod time of symlinks
2597 # (eg FreeBSD returns the mod time of the symlink's containing
2598 # directory).
2599 if (
2600    am_has_slept=no
2601    for am_try in 1 2; do
2602      echo "timestamp, slept: $am_has_slept" > conftest.file
2603      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604      if test "$*" = "X"; then
2605         # -L didn't work.
2606         set X `ls -t "$srcdir/configure" conftest.file`
2607      fi
2608      if test "$*" != "X $srcdir/configure conftest.file" \
2609         && test "$*" != "X conftest.file $srcdir/configure"; then
2610
2611         # If neither matched, then we have a broken ls.  This can happen
2612         # if, for instance, CONFIG_SHELL is bash and it inherits a
2613         # broken ls alias from the environment.  This has actually
2614         # happened.  Such a system could not be considered "sane".
2615         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2616   alias in your environment" "$LINENO" 5
2617      fi
2618      if test "$2" = conftest.file || test $am_try -eq 2; then
2619        break
2620      fi
2621      # Just in case.
2622      sleep 1
2623      am_has_slept=yes
2624    done
2625    test "$2" = conftest.file
2626    )
2627 then
2628    # Ok.
2629    :
2630 else
2631    as_fn_error $? "newly created file is older than distributed files!
2632 Check your system clock" "$LINENO" 5
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 # If we didn't sleep, we still need to ensure time stamps of config.status and
2637 # generated files are strictly newer.
2638 am_sleep_pid=
2639 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2640   ( sleep 1 ) &
2641   am_sleep_pid=$!
2642 fi
2643
2644 rm -f conftest.file
2645
2646 test "$program_prefix" != NONE &&
2647   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648 # Use a double $ so make ignores it.
2649 test "$program_suffix" != NONE &&
2650   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2651 # Double any \ or $.
2652 # By default was `s,x,x', remove it if useless.
2653 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2655
2656 # Expand $ac_aux_dir to an absolute path.
2657 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2658
2659 if test x"${MISSING+set}" != xset; then
2660   case $am_aux_dir in
2661   *\ * | *\     *)
2662     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663   *)
2664     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665   esac
2666 fi
2667 # Use eval to expand $SHELL
2668 if eval "$MISSING --is-lightweight"; then
2669   am_missing_run="$MISSING "
2670 else
2671   am_missing_run=
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2673 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2674 fi
2675
2676 if test x"${install_sh+set}" != xset; then
2677   case $am_aux_dir in
2678   *\ * | *\     *)
2679     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680   *)
2681     install_sh="\${SHELL} $am_aux_dir/install-sh"
2682   esac
2683 fi
2684
2685 # Installed binaries are usually stripped using 'strip' when the user
2686 # run "make install-strip".  However 'strip' might not be the right
2687 # tool to use in cross-compilation environments, therefore Automake
2688 # will honor the 'STRIP' environment variable to overrule this program.
2689 if test "$cross_compiling" != no; then
2690   if test -n "$ac_tool_prefix"; then
2691   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}strip; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_STRIP+:} false; then :
2696   $as_echo_n "(cached) " >&6
2697 else
2698   if test -n "$STRIP"; then
2699   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704   IFS=$as_save_IFS
2705   test -z "$as_dir" && as_dir=.
2706     for ac_exec_ext in '' $ac_executable_extensions; do
2707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710     break 2
2711   fi
2712 done
2713   done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 STRIP=$ac_cv_prog_STRIP
2719 if test -n "$STRIP"; then
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721 $as_echo "$STRIP" >&6; }
2722 else
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728 fi
2729 if test -z "$ac_cv_prog_STRIP"; then
2730   ac_ct_STRIP=$STRIP
2731   # Extract the first word of "strip", so it can be a program name with args.
2732 set dummy strip; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2736   $as_echo_n "(cached) " >&6
2737 else
2738   if test -n "$ac_ct_STRIP"; then
2739   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746     for ac_exec_ext in '' $ac_executable_extensions; do
2747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748     ac_cv_prog_ac_ct_STRIP="strip"
2749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751   fi
2752 done
2753   done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759 if test -n "$ac_ct_STRIP"; then
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761 $as_echo "$ac_ct_STRIP" >&6; }
2762 else
2763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767   if test "x$ac_ct_STRIP" = x; then
2768     STRIP=":"
2769   else
2770     case $cross_compiling:$ac_tool_warned in
2771 yes:)
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774 ac_tool_warned=yes ;;
2775 esac
2776     STRIP=$ac_ct_STRIP
2777   fi
2778 else
2779   STRIP="$ac_cv_prog_STRIP"
2780 fi
2781
2782 fi
2783 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2786 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2787 if test -z "$MKDIR_P"; then
2788   if ${ac_cv_path_mkdir+:} false; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796     for ac_prog in mkdir gmkdir; do
2797          for ac_exec_ext in '' $ac_executable_extensions; do
2798            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2799            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800              'mkdir (GNU coreutils) '* | \
2801              'mkdir (coreutils) '* | \
2802              'mkdir (fileutils) '4.1*)
2803                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804                break 3;;
2805            esac
2806          done
2807        done
2808   done
2809 IFS=$as_save_IFS
2810
2811 fi
2812
2813   test -d ./--version && rmdir ./--version
2814   if test "${ac_cv_path_mkdir+set}" = set; then
2815     MKDIR_P="$ac_cv_path_mkdir -p"
2816   else
2817     # As a last resort, use the slow shell script.  Don't cache a
2818     # value for MKDIR_P within a source directory, because that will
2819     # break other packages using the cache if that directory is
2820     # removed, or if the value is a relative name.
2821     MKDIR_P="$ac_install_sh -d"
2822   fi
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2825 $as_echo "$MKDIR_P" >&6; }
2826
2827 for ac_prog in gawk mawk nawk awk
2828 do
2829   # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_AWK+:} false; then :
2834   $as_echo_n "(cached) " >&6
2835 else
2836   if test -n "$AWK"; then
2837   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844     for ac_exec_ext in '' $ac_executable_extensions; do
2845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846     ac_cv_prog_AWK="$ac_prog"
2847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851   done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 AWK=$ac_cv_prog_AWK
2857 if test -n "$AWK"; then
2858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859 $as_echo "$AWK" >&6; }
2860 else
2861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865
2866   test -n "$AWK" && break
2867 done
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2871 set x ${MAKE-make}
2872 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2874   $as_echo_n "(cached) " >&6
2875 else
2876   cat >conftest.make <<\_ACEOF
2877 SHELL = /bin/sh
2878 all:
2879         @echo '@@@%%%=$(MAKE)=@@@%%%'
2880 _ACEOF
2881 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2882 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2883   *@@@%%%=?*=@@@%%%*)
2884     eval ac_cv_prog_make_${ac_make}_set=yes;;
2885   *)
2886     eval ac_cv_prog_make_${ac_make}_set=no;;
2887 esac
2888 rm -f conftest.make
2889 fi
2890 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893   SET_MAKE=
2894 else
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897   SET_MAKE="MAKE=${MAKE-make}"
2898 fi
2899
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2903   am__leading_dot=.
2904 else
2905   am__leading_dot=_
2906 fi
2907 rmdir .tst 2>/dev/null
2908
2909 # Check whether --enable-silent-rules was given.
2910 if test "${enable_silent_rules+set}" = set; then :
2911   enableval=$enable_silent_rules;
2912 fi
2913
2914 case $enable_silent_rules in # (((
2915   yes) AM_DEFAULT_VERBOSITY=0;;
2916    no) AM_DEFAULT_VERBOSITY=1;;
2917     *) AM_DEFAULT_VERBOSITY=1;;
2918 esac
2919 am_make=${MAKE-make}
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2921 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2922 if ${am_cv_make_support_nested_variables+:} false; then :
2923   $as_echo_n "(cached) " >&6
2924 else
2925   if $as_echo 'TRUE=$(BAR$(V))
2926 BAR0=false
2927 BAR1=true
2928 V=1
2929 am__doit:
2930         @$(TRUE)
2931 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2932   am_cv_make_support_nested_variables=yes
2933 else
2934   am_cv_make_support_nested_variables=no
2935 fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2938 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2939 if test $am_cv_make_support_nested_variables = yes; then
2940     AM_V='$(V)'
2941   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2942 else
2943   AM_V=$AM_DEFAULT_VERBOSITY
2944   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2945 fi
2946 AM_BACKSLASH='\'
2947
2948 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2949   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2950   # is not polluted with repeated "-I."
2951   am__isrc=' -I$(srcdir)'
2952   # test to see if srcdir already configured
2953   if test -f $srcdir/config.status; then
2954     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2955   fi
2956 fi
2957
2958 # test whether we have cygpath
2959 if test -z "$CYGPATH_W"; then
2960   if (cygpath --version) >/dev/null 2>/dev/null; then
2961     CYGPATH_W='cygpath -w'
2962   else
2963     CYGPATH_W=echo
2964   fi
2965 fi
2966
2967
2968 # Define the identity of the package.
2969  PACKAGE='fribidi'
2970  VERSION='0.19.7'
2971
2972
2973 # Some tools Automake needs.
2974
2975 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2976
2977
2978 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2979
2980
2981 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2982
2983
2984 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2985
2986
2987 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2988
2989 # For better backward compatibility.  To be removed once Automake 1.9.x
2990 # dies out for good.  For more background, see:
2991 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2992 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2993 mkdir_p='$(MKDIR_P)'
2994
2995 # We need awk for the "check" target (and possibly the TAP driver).  The
2996 # system "awk" is bad on some platforms.
2997 # Always define AMTAR for backward compatibility.  Yes, it's still used
2998 # in the wild :-(  We should find a proper way to deprecate it ...
2999 AMTAR='$${TAR-tar}'
3000
3001
3002 # We'll loop over all known methods to create a tar archive until one works.
3003 _am_tools='gnutar  pax cpio none'
3004
3005 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3006
3007
3008
3009
3010
3011
3012 # POSIX will say in a future version that running "rm -f" with no argument
3013 # is OK; and we want to be able to make that assumption in our Makefile
3014 # recipes.  So use an aggressive probe to check that the usage we want is
3015 # actually supported "in the wild" to an acceptable degree.
3016 # See automake bug#10828.
3017 # To make any issue more visible, cause the running configure to be aborted
3018 # by default if the 'rm' program in use doesn't match our expectations; the
3019 # user can still override this though.
3020 if rm -f && rm -fr && rm -rf; then : OK; else
3021   cat >&2 <<'END'
3022 Oops!
3023
3024 Your 'rm' program seems unable to run without file operands specified
3025 on the command line, even when the '-f' option is present.  This is contrary
3026 to the behaviour of most rm programs out there, and not conforming with
3027 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3028
3029 Please tell bug-automake@gnu.org about your system, including the value
3030 of your $PATH and any error possibly output before this message.  This
3031 can help us improve future automake versions.
3032
3033 END
3034   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3035     echo 'Configuration will proceed anyway, since you have set the' >&2
3036     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3037     echo >&2
3038   else
3039     cat >&2 <<'END'
3040 Aborting the configuration process, to ensure you take notice of the issue.
3041
3042 You can download and install GNU coreutils to get an 'rm' implementation
3043 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3044
3045 If you want to complete the configuration process using your problematic
3046 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3047 to "yes", and re-run configure.
3048
3049 END
3050     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3051   fi
3052 fi
3053
3054 # Check whether --enable-silent-rules was given.
3055 if test "${enable_silent_rules+set}" = set; then :
3056   enableval=$enable_silent_rules;
3057 fi
3058
3059 case $enable_silent_rules in # (((
3060   yes) AM_DEFAULT_VERBOSITY=0;;
3061    no) AM_DEFAULT_VERBOSITY=1;;
3062     *) AM_DEFAULT_VERBOSITY=0;;
3063 esac
3064 am_make=${MAKE-make}
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3066 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3067 if ${am_cv_make_support_nested_variables+:} false; then :
3068   $as_echo_n "(cached) " >&6
3069 else
3070   if $as_echo 'TRUE=$(BAR$(V))
3071 BAR0=false
3072 BAR1=true
3073 V=1
3074 am__doit:
3075         @$(TRUE)
3076 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3077   am_cv_make_support_nested_variables=yes
3078 else
3079   am_cv_make_support_nested_variables=no
3080 fi
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3083 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3084 if test $am_cv_make_support_nested_variables = yes; then
3085     AM_V='$(V)'
3086   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3087 else
3088   AM_V=$AM_DEFAULT_VERBOSITY
3089   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3090 fi
3091 AM_BACKSLASH='\'
3092
3093
3094 DEPDIR="${am__leading_dot}deps"
3095
3096 ac_config_commands="$ac_config_commands depfiles"
3097
3098
3099 am_make=${MAKE-make}
3100 cat > confinc << 'END'
3101 am__doit:
3102         @echo this is the am__doit target
3103 .PHONY: am__doit
3104 END
3105 # If we don't find an include directive, just comment out the code.
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3107 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3108 am__include="#"
3109 am__quote=
3110 _am_result=none
3111 # First try GNU make style include.
3112 echo "include confinc" > confmf
3113 # Ignore all kinds of additional output from 'make'.
3114 case `$am_make -s -f confmf 2> /dev/null` in #(
3115 *the\ am__doit\ target*)
3116   am__include=include
3117   am__quote=
3118   _am_result=GNU
3119   ;;
3120 esac
3121 # Now try BSD make style include.
3122 if test "$am__include" = "#"; then
3123    echo '.include "confinc"' > confmf
3124    case `$am_make -s -f confmf 2> /dev/null` in #(
3125    *the\ am__doit\ target*)
3126      am__include=.include
3127      am__quote="\""
3128      _am_result=BSD
3129      ;;
3130    esac
3131 fi
3132
3133
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3135 $as_echo "$_am_result" >&6; }
3136 rm -f confinc confmf
3137
3138 # Check whether --enable-dependency-tracking was given.
3139 if test "${enable_dependency_tracking+set}" = set; then :
3140   enableval=$enable_dependency_tracking;
3141 fi
3142
3143 if test "x$enable_dependency_tracking" != xno; then
3144   am_depcomp="$ac_aux_dir/depcomp"
3145   AMDEPBACKSLASH='\'
3146   am__nodep='_no'
3147 fi
3148  if test "x$enable_dependency_tracking" != xno; then
3149   AMDEP_TRUE=
3150   AMDEP_FALSE='#'
3151 else
3152   AMDEP_TRUE='#'
3153   AMDEP_FALSE=
3154 fi
3155
3156
3157 ac_ext=c
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 if test -n "$ac_tool_prefix"; then
3163   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   if test -n "$CC"; then
3171   ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178     for ac_exec_ext in '' $ac_executable_extensions; do
3179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185   done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 CC=$ac_cv_prog_CC
3191 if test -n "$CC"; then
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 fi
3201 if test -z "$ac_cv_prog_CC"; then
3202   ac_ct_CC=$CC
3203   # Extract the first word of "gcc", so it can be a program name with args.
3204 set dummy gcc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3208   $as_echo_n "(cached) " >&6
3209 else
3210   if test -n "$ac_ct_CC"; then
3211   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218     for ac_exec_ext in '' $ac_executable_extensions; do
3219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220     ac_cv_prog_ac_ct_CC="gcc"
3221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222     break 2
3223   fi
3224 done
3225   done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3234 else
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239   if test "x$ac_ct_CC" = x; then
3240     CC=""
3241   else
3242     case $cross_compiling:$ac_tool_warned in
3243 yes:)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248     CC=$ac_ct_CC
3249   fi
3250 else
3251   CC="$ac_cv_prog_CC"
3252 fi
3253
3254 if test -z "$CC"; then
3255           if test -n "$ac_tool_prefix"; then
3256     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}cc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   if test -n "$CC"; then
3264   ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_prog_CC="${ac_tool_prefix}cc"
3274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278   done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293   fi
3294 fi
3295 if test -z "$CC"; then
3296   # Extract the first word of "cc", so it can be a program name with args.
3297 set dummy cc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_CC+:} false; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   if test -n "$CC"; then
3304   ac_cv_prog_CC="$CC" # Let the user override the test.
3305 else
3306   ac_prog_rejected=no
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312     for ac_exec_ext in '' $ac_executable_extensions; do
3313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3315        ac_prog_rejected=yes
3316        continue
3317      fi
3318     ac_cv_prog_CC="cc"
3319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320     break 2
3321   fi
3322 done
3323   done
3324 IFS=$as_save_IFS
3325
3326 if test $ac_prog_rejected = yes; then
3327   # We found a bogon in the path, so make sure we never use it.
3328   set dummy $ac_cv_prog_CC
3329   shift
3330   if test $# != 0; then
3331     # We chose a different compiler from the bogus one.
3332     # However, it has the same basename, so the bogon will be chosen
3333     # first if we set CC to just the basename; use the full file name.
3334     shift
3335     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3336   fi
3337 fi
3338 fi
3339 fi
3340 CC=$ac_cv_prog_CC
3341 if test -n "$CC"; then
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3344 else
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 fi
3348
3349
3350 fi
3351 if test -z "$CC"; then
3352   if test -n "$ac_tool_prefix"; then
3353   for ac_prog in cl.exe
3354   do
3355     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_CC+:} false; then :
3360   $as_echo_n "(cached) " >&6
3361 else
3362   if test -n "$CC"; then
3363   ac_cv_prog_CC="$CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368   IFS=$as_save_IFS
3369   test -z "$as_dir" && as_dir=.
3370     for ac_exec_ext in '' $ac_executable_extensions; do
3371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374     break 2
3375   fi
3376 done
3377   done
3378 IFS=$as_save_IFS
3379
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3386 else
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392     test -n "$CC" && break
3393   done
3394 fi
3395 if test -z "$CC"; then
3396   ac_ct_CC=$CC
3397   for ac_prog in cl.exe
3398 do
3399   # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   if test -n "$ac_ct_CC"; then
3407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412   IFS=$as_save_IFS
3413   test -z "$as_dir" && as_dir=.
3414     for ac_exec_ext in '' $ac_executable_extensions; do
3415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416     ac_cv_prog_ac_ct_CC="$ac_prog"
3417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418     break 2
3419   fi
3420 done
3421   done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3427 if test -n "$ac_ct_CC"; then
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3429 $as_echo "$ac_ct_CC" >&6; }
3430 else
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3433 fi
3434
3435
3436   test -n "$ac_ct_CC" && break
3437 done
3438
3439   if test "x$ac_ct_CC" = x; then
3440     CC=""
3441   else
3442     case $cross_compiling:$ac_tool_warned in
3443 yes:)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3447 esac
3448     CC=$ac_ct_CC
3449   fi
3450 fi
3451
3452 fi
3453
3454
3455 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "no acceptable C compiler found in \$PATH
3458 See \`config.log' for more details" "$LINENO" 5; }
3459
3460 # Provide some information about the compiler.
3461 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3462 set X $ac_compile
3463 ac_compiler=$2
3464 for ac_option in --version -v -V -qversion; do
3465   { { ac_try="$ac_compiler $ac_option >&5"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3473   ac_status=$?
3474   if test -s conftest.err; then
3475     sed '10a\
3476 ... rest of stderr output deleted ...
3477          10q' conftest.err >conftest.er1
3478     cat conftest.er1 >&5
3479   fi
3480   rm -f conftest.er1 conftest.err
3481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482   test $ac_status = 0; }
3483 done
3484
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 ac_clean_files_save=$ac_clean_files
3497 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3498 # Try to create an executable without -o first, disregard a.out.
3499 # It will help us diagnose broken compilers, and finding out an intuition
3500 # of exeext.
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3502 $as_echo_n "checking whether the C compiler works... " >&6; }
3503 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3504
3505 # The possible output files:
3506 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3507
3508 ac_rmfiles=
3509 for ac_file in $ac_files
3510 do
3511   case $ac_file in
3512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3514   esac
3515 done
3516 rm -f $ac_rmfiles
3517
3518 if { { ac_try="$ac_link_default"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525   (eval "$ac_link_default") 2>&5
3526   ac_status=$?
3527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528   test $ac_status = 0; }; then :
3529   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3532 # so that the user can short-circuit this test for compilers unknown to
3533 # Autoconf.
3534 for ac_file in $ac_files ''
3535 do
3536   test -f "$ac_file" || continue
3537   case $ac_file in
3538     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3539         ;;
3540     [ab].out )
3541         # We found the default executable, but exeext='' is most
3542         # certainly right.
3543         break;;
3544     *.* )
3545         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3546         then :; else
3547            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548         fi
3549         # We set ac_cv_exeext here because the later test for it is not
3550         # safe: cross compilers may not add the suffix if given an `-o'
3551         # argument, so we may need to know it at that point already.
3552         # Even if this section looks crufty: it has the advantage of
3553         # actually working.
3554         break;;
3555     * )
3556         break;;
3557   esac
3558 done
3559 test "$ac_cv_exeext" = no && ac_cv_exeext=
3560
3561 else
3562   ac_file=''
3563 fi
3564 if test -z "$ac_file"; then :
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error 77 "C compiler cannot create executables
3573 See \`config.log' for more details" "$LINENO" 5; }
3574 else
3575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3576 $as_echo "yes" >&6; }
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3579 $as_echo_n "checking for C compiler default output file name... " >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3581 $as_echo "$ac_file" >&6; }
3582 ac_exeext=$ac_cv_exeext
3583
3584 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3585 ac_clean_files=$ac_clean_files_save
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3587 $as_echo_n "checking for suffix of executables... " >&6; }
3588 if { { ac_try="$ac_link"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595   (eval "$ac_link") 2>&5
3596   ac_status=$?
3597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598   test $ac_status = 0; }; then :
3599   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3600 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3601 # work properly (i.e., refer to `conftest.exe'), while it won't with
3602 # `rm'.
3603 for ac_file in conftest.exe conftest conftest.*; do
3604   test -f "$ac_file" || continue
3605   case $ac_file in
3606     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3608           break;;
3609     * ) break;;
3610   esac
3611 done
3612 else
3613   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3616 See \`config.log' for more details" "$LINENO" 5; }
3617 fi
3618 rm -f conftest conftest$ac_cv_exeext
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3620 $as_echo "$ac_cv_exeext" >&6; }
3621
3622 rm -f conftest.$ac_ext
3623 EXEEXT=$ac_cv_exeext
3624 ac_exeext=$EXEEXT
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627 #include <stdio.h>
3628 int
3629 main ()
3630 {
3631 FILE *f = fopen ("conftest.out", "w");
3632  return ferror (f) || fclose (f) != 0;
3633
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 ac_clean_files="$ac_clean_files conftest.out"
3639 # Check that the compiler produces executables we can run.  If not, either
3640 # the compiler is broken, or we cross compile.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3642 $as_echo_n "checking whether we are cross compiling... " >&6; }
3643 if test "$cross_compiling" != yes; then
3644   { { ac_try="$ac_link"
3645 case "(($ac_try" in
3646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647   *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651   (eval "$ac_link") 2>&5
3652   ac_status=$?
3653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654   test $ac_status = 0; }
3655   if { ac_try='./conftest$ac_cv_exeext'
3656   { { case "(($ac_try" in
3657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658   *) ac_try_echo=$ac_try;;
3659 esac
3660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661 $as_echo "$ac_try_echo"; } >&5
3662   (eval "$ac_try") 2>&5
3663   ac_status=$?
3664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3665   test $ac_status = 0; }; }; then
3666     cross_compiling=no
3667   else
3668     if test "$cross_compiling" = maybe; then
3669         cross_compiling=yes
3670     else
3671         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error $? "cannot run C compiled programs.
3674 If you meant to cross compile, use \`--host'.
3675 See \`config.log' for more details" "$LINENO" 5; }
3676     fi
3677   fi
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3680 $as_echo "$cross_compiling" >&6; }
3681
3682 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3683 ac_clean_files=$ac_clean_files_save
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3685 $as_echo_n "checking for suffix of object files... " >&6; }
3686 if ${ac_cv_objext+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h.  */
3691
3692 int
3693 main ()
3694 {
3695
3696   ;
3697   return 0;
3698 }
3699 _ACEOF
3700 rm -f conftest.o conftest.obj
3701 if { { ac_try="$ac_compile"
3702 case "(($ac_try" in
3703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704   *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707 $as_echo "$ac_try_echo"; } >&5
3708   (eval "$ac_compile") 2>&5
3709   ac_status=$?
3710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3711   test $ac_status = 0; }; then :
3712   for ac_file in conftest.o conftest.obj conftest.*; do
3713   test -f "$ac_file" || continue;
3714   case $ac_file in
3715     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3716     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3717        break;;
3718   esac
3719 done
3720 else
3721   $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot compute suffix of object files: cannot compile
3727 See \`config.log' for more details" "$LINENO" 5; }
3728 fi
3729 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3732 $as_echo "$ac_cv_objext" >&6; }
3733 OBJEXT=$ac_cv_objext
3734 ac_objext=$OBJEXT
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3736 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3737 if ${ac_cv_c_compiler_gnu+:} false; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h.  */
3742
3743 int
3744 main ()
3745 {
3746 #ifndef __GNUC__
3747        choke me
3748 #endif
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755   ac_compiler_gnu=yes
3756 else
3757   ac_compiler_gnu=no
3758 fi
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3761
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3764 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3765 if test $ac_compiler_gnu = yes; then
3766   GCC=yes
3767 else
3768   GCC=
3769 fi
3770 ac_test_CFLAGS=${CFLAGS+set}
3771 ac_save_CFLAGS=$CFLAGS
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3773 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3774 if ${ac_cv_prog_cc_g+:} false; then :
3775   $as_echo_n "(cached) " >&6
3776 else
3777   ac_save_c_werror_flag=$ac_c_werror_flag
3778    ac_c_werror_flag=yes
3779    ac_cv_prog_cc_g=no
3780    CFLAGS="-g"
3781    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h.  */
3783
3784 int
3785 main ()
3786 {
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793   ac_cv_prog_cc_g=yes
3794 else
3795   CFLAGS=""
3796       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h.  */
3798
3799 int
3800 main ()
3801 {
3802
3803   ;
3804   return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808
3809 else
3810   ac_c_werror_flag=$ac_save_c_werror_flag
3811          CFLAGS="-g"
3812          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h.  */
3814
3815 int
3816 main ()
3817 {
3818
3819   ;
3820   return 0;
3821 }
3822 _ACEOF
3823 if ac_fn_c_try_compile "$LINENO"; then :
3824   ac_cv_prog_cc_g=yes
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831    ac_c_werror_flag=$ac_save_c_werror_flag
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3834 $as_echo "$ac_cv_prog_cc_g" >&6; }
3835 if test "$ac_test_CFLAGS" = set; then
3836   CFLAGS=$ac_save_CFLAGS
3837 elif test $ac_cv_prog_cc_g = yes; then
3838   if test "$GCC" = yes; then
3839     CFLAGS="-g -O2"
3840   else
3841     CFLAGS="-g"
3842   fi
3843 else
3844   if test "$GCC" = yes; then
3845     CFLAGS="-O2"
3846   else
3847     CFLAGS=
3848   fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3851 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3852 if ${ac_cv_prog_cc_c89+:} false; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   ac_cv_prog_cc_c89=no
3856 ac_save_CC=$CC
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h.  */
3859 #include <stdarg.h>
3860 #include <stdio.h>
3861 struct stat;
3862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3863 struct buf { int x; };
3864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3865 static char *e (p, i)
3866      char **p;
3867      int i;
3868 {
3869   return p[i];
3870 }
3871 static char *f (char * (*g) (char **, int), char **p, ...)
3872 {
3873   char *s;
3874   va_list v;
3875   va_start (v,p);
3876   s = g (p, va_arg (v,int));
3877   va_end (v);
3878   return s;
3879 }
3880
3881 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3882    function prototypes and stuff, but not '\xHH' hex character constants.
3883    These don't provoke an error unfortunately, instead are silently treated
3884    as 'x'.  The following induces an error, until -std is added to get
3885    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3886    array size at least.  It's necessary to write '\x00'==0 to get something
3887    that's true only with -std.  */
3888 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3889
3890 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3891    inside strings and character constants.  */
3892 #define FOO(x) 'x'
3893 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3894
3895 int test (int i, double x);
3896 struct s1 {int (*f) (int a);};
3897 struct s2 {int (*f) (double a);};
3898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3899 int argc;
3900 char **argv;
3901 int
3902 main ()
3903 {
3904 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3905   ;
3906   return 0;
3907 }
3908 _ACEOF
3909 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3910         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3911 do
3912   CC="$ac_save_CC $ac_arg"
3913   if ac_fn_c_try_compile "$LINENO"; then :
3914   ac_cv_prog_cc_c89=$ac_arg
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext
3917   test "x$ac_cv_prog_cc_c89" != "xno" && break
3918 done
3919 rm -f conftest.$ac_ext
3920 CC=$ac_save_CC
3921
3922 fi
3923 # AC_CACHE_VAL
3924 case "x$ac_cv_prog_cc_c89" in
3925   x)
3926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3927 $as_echo "none needed" >&6; } ;;
3928   xno)
3929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3930 $as_echo "unsupported" >&6; } ;;
3931   *)
3932     CC="$CC $ac_cv_prog_cc_c89"
3933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3934 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3935 esac
3936 if test "x$ac_cv_prog_cc_c89" != xno; then :
3937
3938 fi
3939
3940 ac_ext=c
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3952 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3953 if ${am_cv_prog_cc_c_o+:} false; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h.  */
3958
3959 int
3960 main ()
3961 {
3962
3963   ;
3964   return 0;
3965 }
3966 _ACEOF
3967   # Make sure it works both with $CC and with simple cc.
3968   # Following AC_PROG_CC_C_O, we do the test twice because some
3969   # compilers refuse to overwrite an existing .o file with -o,
3970   # though they will create one.
3971   am_cv_prog_cc_c_o=yes
3972   for am_i in 1 2; do
3973     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3974    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3975    ac_status=$?
3976    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977    (exit $ac_status); } \
3978          && test -f conftest2.$ac_objext; then
3979       : OK
3980     else
3981       am_cv_prog_cc_c_o=no
3982       break
3983     fi
3984   done
3985   rm -f core conftest*
3986   unset am_i
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3989 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3990 if test "$am_cv_prog_cc_c_o" != yes; then
3991    # Losing compiler, so override with the script.
3992    # FIXME: It is wrong to rewrite CC.
3993    # But if we don't then we get into trouble of one sort or another.
3994    # A longer-term fix would be to have automake use am__CC in this case,
3995    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3996    CC="$am_aux_dir/compile $CC"
3997 fi
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003
4004
4005 depcc="$CC"   am_compiler_list=
4006
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4008 $as_echo_n "checking dependency style of $depcc... " >&6; }
4009 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4013   # We make a subdir and do the tests there.  Otherwise we can end up
4014   # making bogus files that we don't know about and never remove.  For
4015   # instance it was reported that on HP-UX the gcc test will end up
4016   # making a dummy file named 'D' -- because '-MD' means "put the output
4017   # in D".
4018   rm -rf conftest.dir
4019   mkdir conftest.dir
4020   # Copy depcomp to subdir because otherwise we won't find it if we're
4021   # using a relative directory.
4022   cp "$am_depcomp" conftest.dir
4023   cd conftest.dir
4024   # We will build objects and dependencies in a subdirectory because
4025   # it helps to detect inapplicable dependency modes.  For instance
4026   # both Tru64's cc and ICC support -MD to output dependencies as a
4027   # side effect of compilation, but ICC will put the dependencies in
4028   # the current directory while Tru64 will put them in the object
4029   # directory.
4030   mkdir sub
4031
4032   am_cv_CC_dependencies_compiler_type=none
4033   if test "$am_compiler_list" = ""; then
4034      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4035   fi
4036   am__universal=false
4037   case " $depcc " in #(
4038      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4039      esac
4040
4041   for depmode in $am_compiler_list; do
4042     # Setup a source with many dependencies, because some compilers
4043     # like to wrap large dependency lists on column 80 (with \), and
4044     # we should not choose a depcomp mode which is confused by this.
4045     #
4046     # We need to recreate these files for each test, as the compiler may
4047     # overwrite some of them when testing with obscure command lines.
4048     # This happens at least with the AIX C compiler.
4049     : > sub/conftest.c
4050     for i in 1 2 3 4 5 6; do
4051       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4052       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4053       # Solaris 10 /bin/sh.
4054       echo '/* dummy */' > sub/conftst$i.h
4055     done
4056     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4057
4058     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4059     # mode.  It turns out that the SunPro C++ compiler does not properly
4060     # handle '-M -o', and we need to detect this.  Also, some Intel
4061     # versions had trouble with output in subdirs.
4062     am__obj=sub/conftest.${OBJEXT-o}
4063     am__minus_obj="-o $am__obj"
4064     case $depmode in
4065     gcc)
4066       # This depmode causes a compiler race in universal mode.
4067       test "$am__universal" = false || continue
4068       ;;
4069     nosideeffect)
4070       # After this tag, mechanisms are not by side-effect, so they'll
4071       # only be used when explicitly requested.
4072       if test "x$enable_dependency_tracking" = xyes; then
4073         continue
4074       else
4075         break
4076       fi
4077       ;;
4078     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4079       # This compiler won't grok '-c -o', but also, the minuso test has
4080       # not run yet.  These depmodes are late enough in the game, and
4081       # so weak that their functioning should not be impacted.
4082       am__obj=conftest.${OBJEXT-o}
4083       am__minus_obj=
4084       ;;
4085     none) break ;;
4086     esac
4087     if depmode=$depmode \
4088        source=sub/conftest.c object=$am__obj \
4089        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4090        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4091          >/dev/null 2>conftest.err &&
4092        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4093        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4094        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4095        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4096       # icc doesn't choke on unknown options, it will just issue warnings
4097       # or remarks (even with -Werror).  So we grep stderr for any message
4098       # that says an option was ignored or not supported.
4099       # When given -MP, icc 7.0 and 7.1 complain thusly:
4100       #   icc: Command line warning: ignoring option '-M'; no argument required
4101       # The diagnosis changed in icc 8.0:
4102       #   icc: Command line remark: option '-MP' not supported
4103       if (grep 'ignoring option' conftest.err ||
4104           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4105         am_cv_CC_dependencies_compiler_type=$depmode
4106         break
4107       fi
4108     fi
4109   done
4110
4111   cd ..
4112   rm -rf conftest.dir
4113 else
4114   am_cv_CC_dependencies_compiler_type=none
4115 fi
4116
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4119 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4120 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4121
4122  if
4123   test "x$enable_dependency_tracking" != xno \
4124   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4125   am__fastdepCC_TRUE=
4126   am__fastdepCC_FALSE='#'
4127 else
4128   am__fastdepCC_TRUE='#'
4129   am__fastdepCC_FALSE=
4130 fi
4131
4132
4133
4134 if test -n "$ac_tool_prefix"; then
4135   for ac_prog in ar lib "link -lib"
4136   do
4137     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_prog_AR+:} false; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   if test -n "$AR"; then
4145   ac_cv_prog_AR="$AR" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152     for ac_exec_ext in '' $ac_executable_extensions; do
4153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156     break 2
4157   fi
4158 done
4159   done
4160 IFS=$as_save_IFS
4161
4162 fi
4163 fi
4164 AR=$ac_cv_prog_AR
4165 if test -n "$AR"; then
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4167 $as_echo "$AR" >&6; }
4168 else
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173
4174     test -n "$AR" && break
4175   done
4176 fi
4177 if test -z "$AR"; then
4178   ac_ct_AR=$AR
4179   for ac_prog in ar lib "link -lib"
4180 do
4181   # Extract the first word of "$ac_prog", so it can be a program name with args.
4182 set dummy $ac_prog; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4186   $as_echo_n "(cached) " >&6
4187 else
4188   if test -n "$ac_ct_AR"; then
4189   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194   IFS=$as_save_IFS
4195   test -z "$as_dir" && as_dir=.
4196     for ac_exec_ext in '' $ac_executable_extensions; do
4197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198     ac_cv_prog_ac_ct_AR="$ac_prog"
4199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200     break 2
4201   fi
4202 done
4203   done
4204 IFS=$as_save_IFS
4205
4206 fi
4207 fi
4208 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4209 if test -n "$ac_ct_AR"; then
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4211 $as_echo "$ac_ct_AR" >&6; }
4212 else
4213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4215 fi
4216
4217
4218   test -n "$ac_ct_AR" && break
4219 done
4220
4221   if test "x$ac_ct_AR" = x; then
4222     AR="false"
4223   else
4224     case $cross_compiling:$ac_tool_warned in
4225 yes:)
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4228 ac_tool_warned=yes ;;
4229 esac
4230     AR=$ac_ct_AR
4231   fi
4232 fi
4233
4234 : ${AR=ar}
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4237 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4238 if ${am_cv_ar_interface+:} false; then :
4239   $as_echo_n "(cached) " >&6
4240 else
4241   ac_ext=c
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
4247    am_cv_ar_interface=ar
4248    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h.  */
4250 int some_variable = 0;
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4254       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4255   (eval $am_ar_try) 2>&5
4256   ac_status=$?
4257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258   test $ac_status = 0; }
4259       if test "$ac_status" -eq 0; then
4260         am_cv_ar_interface=ar
4261       else
4262         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4263         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4264   (eval $am_ar_try) 2>&5
4265   ac_status=$?
4266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267   test $ac_status = 0; }
4268         if test "$ac_status" -eq 0; then
4269           am_cv_ar_interface=lib
4270         else
4271           am_cv_ar_interface=unknown
4272         fi
4273       fi
4274       rm -f conftest.lib libconftest.a
4275
4276 fi
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278    ac_ext=c
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4286 $as_echo "$am_cv_ar_interface" >&6; }
4287
4288 case $am_cv_ar_interface in
4289 ar)
4290   ;;
4291 lib)
4292   # Microsoft lib, so override with the ar-lib wrapper script.
4293   # FIXME: It is wrong to rewrite AR.
4294   # But if we don't then we get into trouble of one sort or another.
4295   # A longer-term fix would be to have automake use am__AR in this case,
4296   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4297   # similar.
4298   AR="$am_aux_dir/ar-lib $AR"
4299   ;;
4300 unknown)
4301   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4302   ;;
4303 esac
4304
4305
4306 # Initialize libtool
4307
4308 case `pwd` in
4309   *\ * | *\     *)
4310     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4311 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4312 esac
4313
4314
4315
4316 macro_version='2.4.6'
4317 macro_revision='2.4.6'
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331 ltmain=$ac_aux_dir/ltmain.sh
4332
4333 # Make sure we can run config.sub.
4334 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4335   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4338 $as_echo_n "checking build system type... " >&6; }
4339 if ${ac_cv_build+:} false; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   ac_build_alias=$build_alias
4343 test "x$ac_build_alias" = x &&
4344   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4345 test "x$ac_build_alias" = x &&
4346   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4347 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4348   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4349
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4352 $as_echo "$ac_cv_build" >&6; }
4353 case $ac_cv_build in
4354 *-*-*) ;;
4355 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4356 esac
4357 build=$ac_cv_build
4358 ac_save_IFS=$IFS; IFS='-'
4359 set x $ac_cv_build
4360 shift
4361 build_cpu=$1
4362 build_vendor=$2
4363 shift; shift
4364 # Remember, the first character of IFS is used to create $*,
4365 # except with old shells:
4366 build_os=$*
4367 IFS=$ac_save_IFS
4368 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4369
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4372 $as_echo_n "checking host system type... " >&6; }
4373 if ${ac_cv_host+:} false; then :
4374   $as_echo_n "(cached) " >&6
4375 else
4376   if test "x$host_alias" = x; then
4377   ac_cv_host=$ac_cv_build
4378 else
4379   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4380     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4381 fi
4382
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4385 $as_echo "$ac_cv_host" >&6; }
4386 case $ac_cv_host in
4387 *-*-*) ;;
4388 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4389 esac
4390 host=$ac_cv_host
4391 ac_save_IFS=$IFS; IFS='-'
4392 set x $ac_cv_host
4393 shift
4394 host_cpu=$1
4395 host_vendor=$2
4396 shift; shift
4397 # Remember, the first character of IFS is used to create $*,
4398 # except with old shells:
4399 host_os=$*
4400 IFS=$ac_save_IFS
4401 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4402
4403
4404 # Backslashify metacharacters that are still active within
4405 # double-quoted strings.
4406 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4407
4408 # Same as above, but do not quote variable references.
4409 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4410
4411 # Sed substitution to delay expansion of an escaped shell variable in a
4412 # double_quote_subst'ed string.
4413 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4414
4415 # Sed substitution to delay expansion of an escaped single quote.
4416 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4417
4418 # Sed substitution to avoid accidental globbing in evaled expressions
4419 no_glob_subst='s/\*/\\\*/g'
4420
4421 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4422 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4423 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4426 $as_echo_n "checking how to print strings... " >&6; }
4427 # Test print first, because it will be a builtin if present.
4428 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4429    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4430   ECHO='print -r --'
4431 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4432   ECHO='printf %s\n'
4433 else
4434   # Use this function as a fallback that always works.
4435   func_fallback_echo ()
4436   {
4437     eval 'cat <<_LTECHO_EOF
4438 $1
4439 _LTECHO_EOF'
4440   }
4441   ECHO='func_fallback_echo'
4442 fi
4443
4444 # func_echo_all arg...
4445 # Invoke $ECHO with all args, space-separated.
4446 func_echo_all ()
4447 {
4448     $ECHO ""
4449 }
4450
4451 case $ECHO in
4452   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4453 $as_echo "printf" >&6; } ;;
4454   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4455 $as_echo "print -r" >&6; } ;;
4456   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4457 $as_echo "cat" >&6; } ;;
4458 esac
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4474 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4475 if ${ac_cv_path_SED+:} false; then :
4476   $as_echo_n "(cached) " >&6
4477 else
4478             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4479      for ac_i in 1 2 3 4 5 6 7; do
4480        ac_script="$ac_script$as_nl$ac_script"
4481      done
4482      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4483      { ac_script=; unset ac_script;}
4484      if test -z "$SED"; then
4485   ac_path_SED_found=false
4486   # Loop through the user's path and test for each of PROGNAME-LIST
4487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490   IFS=$as_save_IFS
4491   test -z "$as_dir" && as_dir=.
4492     for ac_prog in sed gsed; do
4493     for ac_exec_ext in '' $ac_executable_extensions; do
4494       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4495       as_fn_executable_p "$ac_path_SED" || continue
4496 # Check for GNU ac_path_SED and select it if it is found.
4497   # Check for GNU $ac_path_SED
4498 case `"$ac_path_SED" --version 2>&1` in
4499 *GNU*)
4500   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4501 *)
4502   ac_count=0
4503   $as_echo_n 0123456789 >"conftest.in"
4504   while :
4505   do
4506     cat "conftest.in" "conftest.in" >"conftest.tmp"
4507     mv "conftest.tmp" "conftest.in"
4508     cp "conftest.in" "conftest.nl"
4509     $as_echo '' >> "conftest.nl"
4510     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512     as_fn_arith $ac_count + 1 && ac_count=$as_val
4513     if test $ac_count -gt ${ac_path_SED_max-0}; then
4514       # Best one so far, save it but keep looking for a better one
4515       ac_cv_path_SED="$ac_path_SED"
4516       ac_path_SED_max=$ac_count
4517     fi
4518     # 10*(2^10) chars as input seems more than enough
4519     test $ac_count -gt 10 && break
4520   done
4521   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4522 esac
4523
4524       $ac_path_SED_found && break 3
4525     done
4526   done
4527   done
4528 IFS=$as_save_IFS
4529   if test -z "$ac_cv_path_SED"; then
4530     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4531   fi
4532 else
4533   ac_cv_path_SED=$SED
4534 fi
4535
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4538 $as_echo "$ac_cv_path_SED" >&6; }
4539  SED="$ac_cv_path_SED"
4540   rm -f conftest.sed
4541
4542 test -z "$SED" && SED=sed
4543 Xsed="$SED -e 1s/^X//"
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557 if ${ac_cv_path_GREP+:} false; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   if test -z "$GREP"; then
4561   ac_path_GREP_found=false
4562   # Loop through the user's path and test for each of PROGNAME-LIST
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568     for ac_prog in grep ggrep; do
4569     for ac_exec_ext in '' $ac_executable_extensions; do
4570       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571       as_fn_executable_p "$ac_path_GREP" || continue
4572 # Check for GNU ac_path_GREP and select it if it is found.
4573   # Check for GNU $ac_path_GREP
4574 case `"$ac_path_GREP" --version 2>&1` in
4575 *GNU*)
4576   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4577 *)
4578   ac_count=0
4579   $as_echo_n 0123456789 >"conftest.in"
4580   while :
4581   do
4582     cat "conftest.in" "conftest.in" >"conftest.tmp"
4583     mv "conftest.tmp" "conftest.in"
4584     cp "conftest.in" "conftest.nl"
4585     $as_echo 'GREP' >> "conftest.nl"
4586     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588     as_fn_arith $ac_count + 1 && ac_count=$as_val
4589     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590       # Best one so far, save it but keep looking for a better one
4591       ac_cv_path_GREP="$ac_path_GREP"
4592       ac_path_GREP_max=$ac_count
4593     fi
4594     # 10*(2^10) chars as input seems more than enough
4595     test $ac_count -gt 10 && break
4596   done
4597   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4599
4600       $ac_path_GREP_found && break 3
4601     done
4602   done
4603   done
4604 IFS=$as_save_IFS
4605   if test -z "$ac_cv_path_GREP"; then
4606     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607   fi
4608 else
4609   ac_cv_path_GREP=$GREP
4610 fi
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614 $as_echo "$ac_cv_path_GREP" >&6; }
4615  GREP="$ac_cv_path_GREP"
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619 $as_echo_n "checking for egrep... " >&6; }
4620 if ${ac_cv_path_EGREP+:} false; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624    then ac_cv_path_EGREP="$GREP -E"
4625    else
4626      if test -z "$EGREP"; then
4627   ac_path_EGREP_found=false
4628   # Loop through the user's path and test for each of PROGNAME-LIST
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634     for ac_prog in egrep; do
4635     for ac_exec_ext in '' $ac_executable_extensions; do
4636       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637       as_fn_executable_p "$ac_path_EGREP" || continue
4638 # Check for GNU ac_path_EGREP and select it if it is found.
4639   # Check for GNU $ac_path_EGREP
4640 case `"$ac_path_EGREP" --version 2>&1` in
4641 *GNU*)
4642   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4643 *)
4644   ac_count=0
4645   $as_echo_n 0123456789 >"conftest.in"
4646   while :
4647   do
4648     cat "conftest.in" "conftest.in" >"conftest.tmp"
4649     mv "conftest.tmp" "conftest.in"
4650     cp "conftest.in" "conftest.nl"
4651     $as_echo 'EGREP' >> "conftest.nl"
4652     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654     as_fn_arith $ac_count + 1 && ac_count=$as_val
4655     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656       # Best one so far, save it but keep looking for a better one
4657       ac_cv_path_EGREP="$ac_path_EGREP"
4658       ac_path_EGREP_max=$ac_count
4659     fi
4660     # 10*(2^10) chars as input seems more than enough
4661     test $ac_count -gt 10 && break
4662   done
4663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666       $ac_path_EGREP_found && break 3
4667     done
4668   done
4669   done
4670 IFS=$as_save_IFS
4671   if test -z "$ac_cv_path_EGREP"; then
4672     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673   fi
4674 else
4675   ac_cv_path_EGREP=$EGREP
4676 fi
4677
4678    fi
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682  EGREP="$ac_cv_path_EGREP"
4683
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4686 $as_echo_n "checking for fgrep... " >&6; }
4687 if ${ac_cv_path_FGREP+:} false; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4691    then ac_cv_path_FGREP="$GREP -F"
4692    else
4693      if test -z "$FGREP"; then
4694   ac_path_FGREP_found=false
4695   # Loop through the user's path and test for each of PROGNAME-LIST
4696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701     for ac_prog in fgrep; do
4702     for ac_exec_ext in '' $ac_executable_extensions; do
4703       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4704       as_fn_executable_p "$ac_path_FGREP" || continue
4705 # Check for GNU ac_path_FGREP and select it if it is found.
4706   # Check for GNU $ac_path_FGREP
4707 case `"$ac_path_FGREP" --version 2>&1` in
4708 *GNU*)
4709   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4710 *)
4711   ac_count=0
4712   $as_echo_n 0123456789 >"conftest.in"
4713   while :
4714   do
4715     cat "conftest.in" "conftest.in" >"conftest.tmp"
4716     mv "conftest.tmp" "conftest.in"
4717     cp "conftest.in" "conftest.nl"
4718     $as_echo 'FGREP' >> "conftest.nl"
4719     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721     as_fn_arith $ac_count + 1 && ac_count=$as_val
4722     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4723       # Best one so far, save it but keep looking for a better one
4724       ac_cv_path_FGREP="$ac_path_FGREP"
4725       ac_path_FGREP_max=$ac_count
4726     fi
4727     # 10*(2^10) chars as input seems more than enough
4728     test $ac_count -gt 10 && break
4729   done
4730   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 esac
4732
4733       $ac_path_FGREP_found && break 3
4734     done
4735   done
4736   done
4737 IFS=$as_save_IFS
4738   if test -z "$ac_cv_path_FGREP"; then
4739     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740   fi
4741 else
4742   ac_cv_path_FGREP=$FGREP
4743 fi
4744
4745    fi
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4748 $as_echo "$ac_cv_path_FGREP" >&6; }
4749  FGREP="$ac_cv_path_FGREP"
4750
4751
4752 test -z "$GREP" && GREP=grep
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772 # Check whether --with-gnu-ld was given.
4773 if test "${with_gnu_ld+set}" = set; then :
4774   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4775 else
4776   with_gnu_ld=no
4777 fi
4778
4779 ac_prog=ld
4780 if test yes = "$GCC"; then
4781   # Check if gcc -print-prog-name=ld gives a path.
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4783 $as_echo_n "checking for ld used by $CC... " >&6; }
4784   case $host in
4785   *-*-mingw*)
4786     # gcc leaves a trailing carriage return, which upsets mingw
4787     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4788   *)
4789     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4790   esac
4791   case $ac_prog in
4792     # Accept absolute paths.
4793     [\\/]* | ?:[\\/]*)
4794       re_direlt='/[^/][^/]*/\.\./'
4795       # Canonicalize the pathname of ld
4796       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4797       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4798         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4799       done
4800       test -z "$LD" && LD=$ac_prog
4801       ;;
4802   "")
4803     # If it fails, then pretend we aren't using GCC.
4804     ac_prog=ld
4805     ;;
4806   *)
4807     # If it is relative, then search for the first ld in PATH.
4808     with_gnu_ld=unknown
4809     ;;
4810   esac
4811 elif test yes = "$with_gnu_ld"; then
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4813 $as_echo_n "checking for GNU ld... " >&6; }
4814 else
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4816 $as_echo_n "checking for non-GNU ld... " >&6; }
4817 fi
4818 if ${lt_cv_path_LD+:} false; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   if test -z "$LD"; then
4822   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4823   for ac_dir in $PATH; do
4824     IFS=$lt_save_ifs
4825     test -z "$ac_dir" && ac_dir=.
4826     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4827       lt_cv_path_LD=$ac_dir/$ac_prog
4828       # Check to see if the program is GNU ld.  I'd rather use --version,
4829       # but apparently some variants of GNU ld only accept -v.
4830       # Break only if it was the GNU/non-GNU ld that we prefer.
4831       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4832       *GNU* | *'with BFD'*)
4833         test no != "$with_gnu_ld" && break
4834         ;;
4835       *)
4836         test yes != "$with_gnu_ld" && break
4837         ;;
4838       esac
4839     fi
4840   done
4841   IFS=$lt_save_ifs
4842 else
4843   lt_cv_path_LD=$LD # Let the user override the test with a path.
4844 fi
4845 fi
4846
4847 LD=$lt_cv_path_LD
4848 if test -n "$LD"; then
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4850 $as_echo "$LD" >&6; }
4851 else
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4858 if ${lt_cv_prog_gnu_ld+:} false; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4862 case `$LD -v 2>&1 </dev/null` in
4863 *GNU* | *'with BFD'*)
4864   lt_cv_prog_gnu_ld=yes
4865   ;;
4866 *)
4867   lt_cv_prog_gnu_ld=no
4868   ;;
4869 esac
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4872 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4873 with_gnu_ld=$lt_cv_prog_gnu_ld
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4884 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4885 if ${lt_cv_path_NM+:} false; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   if test -n "$NM"; then
4889   # Let the user override the test.
4890   lt_cv_path_NM=$NM
4891 else
4892   lt_nm_to_check=${ac_tool_prefix}nm
4893   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4894     lt_nm_to_check="$lt_nm_to_check nm"
4895   fi
4896   for lt_tmp_nm in $lt_nm_to_check; do
4897     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4898     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4899       IFS=$lt_save_ifs
4900       test -z "$ac_dir" && ac_dir=.
4901       tmp_nm=$ac_dir/$lt_tmp_nm
4902       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4903         # Check to see if the nm accepts a BSD-compat flag.
4904         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4905         #   nm: unknown option "B" ignored
4906         # Tru64's nm complains that /dev/null is an invalid object file
4907         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4908         case $build_os in
4909         mingw*) lt_bad_file=conftest.nm/nofile ;;
4910         *) lt_bad_file=/dev/null ;;
4911         esac
4912         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4913         *$lt_bad_file* | *'Invalid file or object type'*)
4914           lt_cv_path_NM="$tmp_nm -B"
4915           break 2
4916           ;;
4917         *)
4918           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4919           */dev/null*)
4920             lt_cv_path_NM="$tmp_nm -p"
4921             break 2
4922             ;;
4923           *)
4924             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4925             continue # so that we can try to find one that supports BSD flags
4926             ;;
4927           esac
4928           ;;
4929         esac
4930       fi
4931     done
4932     IFS=$lt_save_ifs
4933   done
4934   : ${lt_cv_path_NM=no}
4935 fi
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4938 $as_echo "$lt_cv_path_NM" >&6; }
4939 if test no != "$lt_cv_path_NM"; then
4940   NM=$lt_cv_path_NM
4941 else
4942   # Didn't find any BSD compatible name lister, look for dumpbin.
4943   if test -n "$DUMPBIN"; then :
4944     # Let the user override the test.
4945   else
4946     if test -n "$ac_tool_prefix"; then
4947   for ac_prog in dumpbin "link -dump"
4948   do
4949     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_prog_DUMPBIN+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   if test -n "$DUMPBIN"; then
4957   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962   IFS=$as_save_IFS
4963   test -z "$as_dir" && as_dir=.
4964     for ac_exec_ext in '' $ac_executable_extensions; do
4965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968     break 2
4969   fi
4970 done
4971   done
4972 IFS=$as_save_IFS
4973
4974 fi
4975 fi
4976 DUMPBIN=$ac_cv_prog_DUMPBIN
4977 if test -n "$DUMPBIN"; then
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4979 $as_echo "$DUMPBIN" >&6; }
4980 else
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984
4985
4986     test -n "$DUMPBIN" && break
4987   done
4988 fi
4989 if test -z "$DUMPBIN"; then
4990   ac_ct_DUMPBIN=$DUMPBIN
4991   for ac_prog in dumpbin "link -dump"
4992 do
4993   # Extract the first word of "$ac_prog", so it can be a program name with args.
4994 set dummy $ac_prog; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4998   $as_echo_n "(cached) " >&6
4999 else
5000   if test -n "$ac_ct_DUMPBIN"; then
5001   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006   IFS=$as_save_IFS
5007   test -z "$as_dir" && as_dir=.
5008     for ac_exec_ext in '' $ac_executable_extensions; do
5009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012     break 2
5013   fi
5014 done
5015   done
5016 IFS=$as_save_IFS
5017
5018 fi
5019 fi
5020 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5021 if test -n "$ac_ct_DUMPBIN"; then
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5023 $as_echo "$ac_ct_DUMPBIN" >&6; }
5024 else
5025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5027 fi
5028
5029
5030   test -n "$ac_ct_DUMPBIN" && break
5031 done
5032
5033   if test "x$ac_ct_DUMPBIN" = x; then
5034     DUMPBIN=":"
5035   else
5036     case $cross_compiling:$ac_tool_warned in
5037 yes:)
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5040 ac_tool_warned=yes ;;
5041 esac
5042     DUMPBIN=$ac_ct_DUMPBIN
5043   fi
5044 fi
5045
5046     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5047     *COFF*)
5048       DUMPBIN="$DUMPBIN -symbols -headers"
5049       ;;
5050     *)
5051       DUMPBIN=:
5052       ;;
5053     esac
5054   fi
5055
5056   if test : != "$DUMPBIN"; then
5057     NM=$DUMPBIN
5058   fi
5059 fi
5060 test -z "$NM" && NM=nm
5061
5062
5063
5064
5065
5066
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5068 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5069 if ${lt_cv_nm_interface+:} false; then :
5070   $as_echo_n "(cached) " >&6
5071 else
5072   lt_cv_nm_interface="BSD nm"
5073   echo "int some_variable = 0;" > conftest.$ac_ext
5074   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5075   (eval "$ac_compile" 2>conftest.err)
5076   cat conftest.err >&5
5077   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5078   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5079   cat conftest.err >&5
5080   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5081   cat conftest.out >&5
5082   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5083     lt_cv_nm_interface="MS dumpbin"
5084   fi
5085   rm -f conftest*
5086 fi
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5088 $as_echo "$lt_cv_nm_interface" >&6; }
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5091 $as_echo_n "checking whether ln -s works... " >&6; }
5092 LN_S=$as_ln_s
5093 if test "$LN_S" = "ln -s"; then
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095 $as_echo "yes" >&6; }
5096 else
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5098 $as_echo "no, using $LN_S" >&6; }
5099 fi
5100
5101 # find the maximum length of command line arguments
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5103 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5104 if ${lt_cv_sys_max_cmd_len+:} false; then :
5105   $as_echo_n "(cached) " >&6
5106 else
5107     i=0
5108   teststring=ABCD
5109
5110   case $build_os in
5111   msdosdjgpp*)
5112     # On DJGPP, this test can blow up pretty badly due to problems in libc
5113     # (any single argument exceeding 2000 bytes causes a buffer overrun
5114     # during glob expansion).  Even if it were fixed, the result of this
5115     # check would be larger than it should be.
5116     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5117     ;;
5118
5119   gnu*)
5120     # Under GNU Hurd, this test is not required because there is
5121     # no limit to the length of command line arguments.
5122     # Libtool will interpret -1 as no limit whatsoever
5123     lt_cv_sys_max_cmd_len=-1;
5124     ;;
5125
5126   cygwin* | mingw* | cegcc*)
5127     # On Win9x/ME, this test blows up -- it succeeds, but takes
5128     # about 5 minutes as the teststring grows exponentially.
5129     # Worse, since 9x/ME are not pre-emptively multitasking,
5130     # you end up with a "frozen" computer, even though with patience
5131     # the test eventually succeeds (with a max line length of 256k).
5132     # Instead, let's just punt: use the minimum linelength reported by
5133     # all of the supported platforms: 8192 (on NT/2K/XP).
5134     lt_cv_sys_max_cmd_len=8192;
5135     ;;
5136
5137   mint*)
5138     # On MiNT this can take a long time and run out of memory.
5139     lt_cv_sys_max_cmd_len=8192;
5140     ;;
5141
5142   amigaos*)
5143     # On AmigaOS with pdksh, this test takes hours, literally.
5144     # So we just punt and use a minimum line length of 8192.
5145     lt_cv_sys_max_cmd_len=8192;
5146     ;;
5147
5148   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5149     # This has been around since 386BSD, at least.  Likely further.
5150     if test -x /sbin/sysctl; then
5151       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5152     elif test -x /usr/sbin/sysctl; then
5153       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5154     else
5155       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5156     fi
5157     # And add a safety zone
5158     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5159     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5160     ;;
5161
5162   interix*)
5163     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5164     lt_cv_sys_max_cmd_len=196608
5165     ;;
5166
5167   os2*)
5168     # The test takes a long time on OS/2.
5169     lt_cv_sys_max_cmd_len=8192
5170     ;;
5171
5172   osf*)
5173     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5174     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5175     # nice to cause kernel panics so lets avoid the loop below.
5176     # First set a reasonable default.
5177     lt_cv_sys_max_cmd_len=16384
5178     #
5179     if test -x /sbin/sysconfig; then
5180       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5181         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5182       esac
5183     fi
5184     ;;
5185   sco3.2v5*)
5186     lt_cv_sys_max_cmd_len=102400
5187     ;;
5188   sysv5* | sco5v6* | sysv4.2uw2*)
5189     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5190     if test -n "$kargmax"; then
5191       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5192     else
5193       lt_cv_sys_max_cmd_len=32768
5194     fi
5195     ;;
5196   *)
5197     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5198     if test -n "$lt_cv_sys_max_cmd_len" && \
5199        test undefined != "$lt_cv_sys_max_cmd_len"; then
5200       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5201       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5202     else
5203       # Make teststring a little bigger before we do anything with it.
5204       # a 1K string should be a reasonable start.
5205       for i in 1 2 3 4 5 6 7 8; do
5206         teststring=$teststring$teststring
5207       done
5208       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5209       # If test is not a shell built-in, we'll probably end up computing a
5210       # maximum length that is only half of the actual maximum length, but
5211       # we can't tell.
5212       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5213                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5214               test 17 != "$i" # 1/2 MB should be enough
5215       do
5216         i=`expr $i + 1`
5217         teststring=$teststring$teststring
5218       done
5219       # Only check the string length outside the loop.
5220       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5221       teststring=
5222       # Add a significant safety factor because C++ compilers can tack on
5223       # massive amounts of additional arguments before passing them to the
5224       # linker.  It appears as though 1/2 is a usable value.
5225       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5226     fi
5227     ;;
5228   esac
5229
5230 fi
5231
5232 if test -n "$lt_cv_sys_max_cmd_len"; then
5233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5234 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5235 else
5236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5237 $as_echo "none" >&6; }
5238 fi
5239 max_cmd_len=$lt_cv_sys_max_cmd_len
5240
5241
5242
5243
5244
5245
5246 : ${CP="cp -f"}
5247 : ${MV="mv -f"}
5248 : ${RM="rm -f"}
5249
5250 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5251   lt_unset=unset
5252 else
5253   lt_unset=false
5254 fi
5255
5256
5257
5258
5259
5260 # test EBCDIC or ASCII
5261 case `echo X|tr X '\101'` in
5262  A) # ASCII based system
5263     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5264   lt_SP2NL='tr \040 \012'
5265   lt_NL2SP='tr \015\012 \040\040'
5266   ;;
5267  *) # EBCDIC based system
5268   lt_SP2NL='tr \100 \n'
5269   lt_NL2SP='tr \r\n \100\100'
5270   ;;
5271 esac
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5282 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5283 if ${lt_cv_to_host_file_cmd+:} false; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   case $host in
5287   *-*-mingw* )
5288     case $build in
5289       *-*-mingw* ) # actually msys
5290         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5291         ;;
5292       *-*-cygwin* )
5293         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5294         ;;
5295       * ) # otherwise, assume *nix
5296         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5297         ;;
5298     esac
5299     ;;
5300   *-*-cygwin* )
5301     case $build in
5302       *-*-mingw* ) # actually msys
5303         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5304         ;;
5305       *-*-cygwin* )
5306         lt_cv_to_host_file_cmd=func_convert_file_noop
5307         ;;
5308       * ) # otherwise, assume *nix
5309         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5310         ;;
5311     esac
5312     ;;
5313   * ) # unhandled hosts (and "normal" native builds)
5314     lt_cv_to_host_file_cmd=func_convert_file_noop
5315     ;;
5316 esac
5317
5318 fi
5319
5320 to_host_file_cmd=$lt_cv_to_host_file_cmd
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5322 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5323
5324
5325
5326
5327
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5329 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5330 if ${lt_cv_to_tool_file_cmd+:} false; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333   #assume ordinary cross tools, or native build.
5334 lt_cv_to_tool_file_cmd=func_convert_file_noop
5335 case $host in
5336   *-*-mingw* )
5337     case $build in
5338       *-*-mingw* ) # actually msys
5339         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5340         ;;
5341     esac
5342     ;;
5343 esac
5344
5345 fi
5346
5347 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5349 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5350
5351
5352
5353
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5356 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5357 if ${lt_cv_ld_reload_flag+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   lt_cv_ld_reload_flag='-r'
5361 fi
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5363 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5364 reload_flag=$lt_cv_ld_reload_flag
5365 case $reload_flag in
5366 "" | " "*) ;;
5367 *) reload_flag=" $reload_flag" ;;
5368 esac
5369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5370 case $host_os in
5371   cygwin* | mingw* | pw32* | cegcc*)
5372     if test yes != "$GCC"; then
5373       reload_cmds=false
5374     fi
5375     ;;
5376   darwin*)
5377     if test yes = "$GCC"; then
5378       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5379     else
5380       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5381     fi
5382     ;;
5383 esac
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393 if test -n "$ac_tool_prefix"; then
5394   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5395 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_OBJDUMP+:} false; then :
5399   $as_echo_n "(cached) " >&6
5400 else
5401   if test -n "$OBJDUMP"; then
5402   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416   done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 OBJDUMP=$ac_cv_prog_OBJDUMP
5422 if test -n "$OBJDUMP"; then
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5424 $as_echo "$OBJDUMP" >&6; }
5425 else
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 fi
5432 if test -z "$ac_cv_prog_OBJDUMP"; then
5433   ac_ct_OBJDUMP=$OBJDUMP
5434   # Extract the first word of "objdump", so it can be a program name with args.
5435 set dummy objdump; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5439   $as_echo_n "(cached) " >&6
5440 else
5441   if test -n "$ac_ct_OBJDUMP"; then
5442   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449     for ac_exec_ext in '' $ac_executable_extensions; do
5450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456   done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5462 if test -n "$ac_ct_OBJDUMP"; then
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5464 $as_echo "$ac_ct_OBJDUMP" >&6; }
5465 else
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470   if test "x$ac_ct_OBJDUMP" = x; then
5471     OBJDUMP="false"
5472   else
5473     case $cross_compiling:$ac_tool_warned in
5474 yes:)
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477 ac_tool_warned=yes ;;
5478 esac
5479     OBJDUMP=$ac_ct_OBJDUMP
5480   fi
5481 else
5482   OBJDUMP="$ac_cv_prog_OBJDUMP"
5483 fi
5484
5485 test -z "$OBJDUMP" && OBJDUMP=objdump
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5496 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5497 if ${lt_cv_deplibs_check_method+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   lt_cv_file_magic_cmd='$MAGIC_CMD'
5501 lt_cv_file_magic_test_file=
5502 lt_cv_deplibs_check_method='unknown'
5503 # Need to set the preceding variable on all platforms that support
5504 # interlibrary dependencies.
5505 # 'none' -- dependencies not supported.
5506 # 'unknown' -- same as none, but documents that we really don't know.
5507 # 'pass_all' -- all dependencies passed with no checks.
5508 # 'test_compile' -- check by making test program.
5509 # 'file_magic [[regex]]' -- check by looking for files in library path
5510 # that responds to the $file_magic_cmd with a given extended regex.
5511 # If you have 'file' or equivalent on your system and you're not sure
5512 # whether 'pass_all' will *always* work, you probably want this one.
5513
5514 case $host_os in
5515 aix[4-9]*)
5516   lt_cv_deplibs_check_method=pass_all
5517   ;;
5518
5519 beos*)
5520   lt_cv_deplibs_check_method=pass_all
5521   ;;
5522
5523 bsdi[45]*)
5524   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5525   lt_cv_file_magic_cmd='/usr/bin/file -L'
5526   lt_cv_file_magic_test_file=/shlib/libc.so
5527   ;;
5528
5529 cygwin*)
5530   # func_win32_libid is a shell function defined in ltmain.sh
5531   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5532   lt_cv_file_magic_cmd='func_win32_libid'
5533   ;;
5534
5535 mingw* | pw32*)
5536   # Base MSYS/MinGW do not provide the 'file' command needed by
5537   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5538   # unless we find 'file', for example because we are cross-compiling.
5539   if ( file / ) >/dev/null 2>&1; then
5540     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5541     lt_cv_file_magic_cmd='func_win32_libid'
5542   else
5543     # Keep this pattern in sync with the one in func_win32_libid.
5544     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5545     lt_cv_file_magic_cmd='$OBJDUMP -f'
5546   fi
5547   ;;
5548
5549 cegcc*)
5550   # use the weaker test based on 'objdump'. See mingw*.
5551   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5552   lt_cv_file_magic_cmd='$OBJDUMP -f'
5553   ;;
5554
5555 darwin* | rhapsody*)
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558
5559 freebsd* | dragonfly*)
5560   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5561     case $host_cpu in
5562     i*86 )
5563       # Not sure whether the presence of OpenBSD here was a mistake.
5564       # Let's accept both of them until this is cleared up.
5565       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5566       lt_cv_file_magic_cmd=/usr/bin/file
5567       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5568       ;;
5569     esac
5570   else
5571     lt_cv_deplibs_check_method=pass_all
5572   fi
5573   ;;
5574
5575 haiku*)
5576   lt_cv_deplibs_check_method=pass_all
5577   ;;
5578
5579 hpux10.20* | hpux11*)
5580   lt_cv_file_magic_cmd=/usr/bin/file
5581   case $host_cpu in
5582   ia64*)
5583     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5584     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5585     ;;
5586   hppa*64*)
5587     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]'
5588     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5589     ;;
5590   *)
5591     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5592     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5593     ;;
5594   esac
5595   ;;
5596
5597 interix[3-9]*)
5598   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5599   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5600   ;;
5601
5602 irix5* | irix6* | nonstopux*)
5603   case $LD in
5604   *-32|*"-32 ") libmagic=32-bit;;
5605   *-n32|*"-n32 ") libmagic=N32;;
5606   *-64|*"-64 ") libmagic=64-bit;;
5607   *) libmagic=never-match;;
5608   esac
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 # This must be glibc/ELF.
5613 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5614   lt_cv_deplibs_check_method=pass_all
5615   ;;
5616
5617 netbsd*)
5618   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5620   else
5621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5622   fi
5623   ;;
5624
5625 newos6*)
5626   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5627   lt_cv_file_magic_cmd=/usr/bin/file
5628   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5629   ;;
5630
5631 *nto* | *qnx*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 openbsd* | bitrig*)
5636   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5638   else
5639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5640   fi
5641   ;;
5642
5643 osf3* | osf4* | osf5*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 rdos*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 solaris*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658
5659 sysv4 | sysv4.3*)
5660   case $host_vendor in
5661   motorola)
5662     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]'
5663     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5664     ;;
5665   ncr)
5666     lt_cv_deplibs_check_method=pass_all
5667     ;;
5668   sequent)
5669     lt_cv_file_magic_cmd='/bin/file'
5670     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5671     ;;
5672   sni)
5673     lt_cv_file_magic_cmd='/bin/file'
5674     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5675     lt_cv_file_magic_test_file=/lib/libc.so
5676     ;;
5677   siemens)
5678     lt_cv_deplibs_check_method=pass_all
5679     ;;
5680   pc)
5681     lt_cv_deplibs_check_method=pass_all
5682     ;;
5683   esac
5684   ;;
5685
5686 tpf*)
5687   lt_cv_deplibs_check_method=pass_all
5688   ;;
5689 os2*)
5690   lt_cv_deplibs_check_method=pass_all
5691   ;;
5692 esac
5693
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5696 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5697
5698 file_magic_glob=
5699 want_nocaseglob=no
5700 if test "$build" = "$host"; then
5701   case $host_os in
5702   mingw* | pw32*)
5703     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5704       want_nocaseglob=yes
5705     else
5706       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5707     fi
5708     ;;
5709   esac
5710 fi
5711
5712 file_magic_cmd=$lt_cv_file_magic_cmd
5713 deplibs_check_method=$lt_cv_deplibs_check_method
5714 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737 if test -n "$ac_tool_prefix"; then
5738   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5739 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_DLLTOOL+:} false; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   if test -n "$DLLTOOL"; then
5746   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 DLLTOOL=$ac_cv_prog_DLLTOOL
5766 if test -n "$DLLTOOL"; then
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5768 $as_echo "$DLLTOOL" >&6; }
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773
5774
5775 fi
5776 if test -z "$ac_cv_prog_DLLTOOL"; then
5777   ac_ct_DLLTOOL=$DLLTOOL
5778   # Extract the first word of "dlltool", so it can be a program name with args.
5779 set dummy dlltool; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   if test -n "$ac_ct_DLLTOOL"; then
5786   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791   IFS=$as_save_IFS
5792   test -z "$as_dir" && as_dir=.
5793     for ac_exec_ext in '' $ac_executable_extensions; do
5794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797     break 2
5798   fi
5799 done
5800   done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5806 if test -n "$ac_ct_DLLTOOL"; then
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5808 $as_echo "$ac_ct_DLLTOOL" >&6; }
5809 else
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814   if test "x$ac_ct_DLLTOOL" = x; then
5815     DLLTOOL="false"
5816   else
5817     case $cross_compiling:$ac_tool_warned in
5818 yes:)
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5822 esac
5823     DLLTOOL=$ac_ct_DLLTOOL
5824   fi
5825 else
5826   DLLTOOL="$ac_cv_prog_DLLTOOL"
5827 fi
5828
5829 test -z "$DLLTOOL" && DLLTOOL=dlltool
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5841 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5842 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   lt_cv_sharedlib_from_linklib_cmd='unknown'
5846
5847 case $host_os in
5848 cygwin* | mingw* | pw32* | cegcc*)
5849   # two different shell functions defined in ltmain.sh;
5850   # decide which one to use based on capabilities of $DLLTOOL
5851   case `$DLLTOOL --help 2>&1` in
5852   *--identify-strict*)
5853     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5854     ;;
5855   *)
5856     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5857     ;;
5858   esac
5859   ;;
5860 *)
5861   # fallback: assume linklib IS sharedlib
5862   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5863   ;;
5864 esac
5865
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5868 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5869 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5870 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5871
5872
5873
5874
5875
5876
5877
5878 if test -n "$ac_tool_prefix"; then
5879   for ac_prog in ar
5880   do
5881     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_AR+:} false; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888   if test -n "$AR"; then
5889   ac_cv_prog_AR="$AR" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896     for ac_exec_ext in '' $ac_executable_extensions; do
5897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903   done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 AR=$ac_cv_prog_AR
5909 if test -n "$AR"; then
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5911 $as_echo "$AR" >&6; }
5912 else
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916
5917
5918     test -n "$AR" && break
5919   done
5920 fi
5921 if test -z "$AR"; then
5922   ac_ct_AR=$AR
5923   for ac_prog in ar
5924 do
5925   # Extract the first word of "$ac_prog", so it can be a program name with args.
5926 set dummy $ac_prog; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$ac_ct_AR"; then
5933   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942     ac_cv_prog_ac_ct_AR="$ac_prog"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5953 if test -n "$ac_ct_AR"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5955 $as_echo "$ac_ct_AR" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961
5962   test -n "$ac_ct_AR" && break
5963 done
5964
5965   if test "x$ac_ct_AR" = x; then
5966     AR="false"
5967   else
5968     case $cross_compiling:$ac_tool_warned in
5969 yes:)
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5972 ac_tool_warned=yes ;;
5973 esac
5974     AR=$ac_ct_AR
5975   fi
5976 fi
5977
5978 : ${AR=ar}
5979 : ${AR_FLAGS=cru}
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5992 $as_echo_n "checking for archiver @FILE support... " >&6; }
5993 if ${lt_cv_ar_at_file+:} false; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   lt_cv_ar_at_file=no
5997    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h.  */
5999
6000 int
6001 main ()
6002 {
6003
6004   ;
6005   return 0;
6006 }
6007 _ACEOF
6008 if ac_fn_c_try_compile "$LINENO"; then :
6009   echo conftest.$ac_objext > conftest.lst
6010       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6011       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6012   (eval $lt_ar_try) 2>&5
6013   ac_status=$?
6014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6015   test $ac_status = 0; }
6016       if test 0 -eq "$ac_status"; then
6017         # Ensure the archiver fails upon bogus file names.
6018         rm -f conftest.$ac_objext libconftest.a
6019         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6020   (eval $lt_ar_try) 2>&5
6021   ac_status=$?
6022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6023   test $ac_status = 0; }
6024         if test 0 -ne "$ac_status"; then
6025           lt_cv_ar_at_file=@
6026         fi
6027       fi
6028       rm -f conftest.* libconftest.a
6029
6030 fi
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032
6033 fi
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6035 $as_echo "$lt_cv_ar_at_file" >&6; }
6036
6037 if test no = "$lt_cv_ar_at_file"; then
6038   archiver_list_spec=
6039 else
6040   archiver_list_spec=$lt_cv_ar_at_file
6041 fi
6042
6043
6044
6045
6046
6047
6048
6049 if test -n "$ac_tool_prefix"; then
6050   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}strip; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_STRIP+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   if test -n "$STRIP"; then
6058   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065     for ac_exec_ext in '' $ac_executable_extensions; do
6066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072   done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 STRIP=$ac_cv_prog_STRIP
6078 if test -n "$STRIP"; then
6079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6080 $as_echo "$STRIP" >&6; }
6081 else
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 fi
6085
6086
6087 fi
6088 if test -z "$ac_cv_prog_STRIP"; then
6089   ac_ct_STRIP=$STRIP
6090   # Extract the first word of "strip", so it can be a program name with args.
6091 set dummy strip; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097   if test -n "$ac_ct_STRIP"; then
6098   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105     for ac_exec_ext in '' $ac_executable_extensions; do
6106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107     ac_cv_prog_ac_ct_STRIP="strip"
6108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112   done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6118 if test -n "$ac_ct_STRIP"; then
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6120 $as_echo "$ac_ct_STRIP" >&6; }
6121 else
6122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125
6126   if test "x$ac_ct_STRIP" = x; then
6127     STRIP=":"
6128   else
6129     case $cross_compiling:$ac_tool_warned in
6130 yes:)
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135     STRIP=$ac_ct_STRIP
6136   fi
6137 else
6138   STRIP="$ac_cv_prog_STRIP"
6139 fi
6140
6141 test -z "$STRIP" && STRIP=:
6142
6143
6144
6145
6146
6147
6148 if test -n "$ac_tool_prefix"; then
6149   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_prog_RANLIB+:} false; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156   if test -n "$RANLIB"; then
6157   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164     for ac_exec_ext in '' $ac_executable_extensions; do
6165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171   done
6172 IFS=$as_save_IFS
6173
6174 fi
6175 fi
6176 RANLIB=$ac_cv_prog_RANLIB
6177 if test -n "$RANLIB"; then
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6179 $as_echo "$RANLIB" >&6; }
6180 else
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184
6185
6186 fi
6187 if test -z "$ac_cv_prog_RANLIB"; then
6188   ac_ct_RANLIB=$RANLIB
6189   # Extract the first word of "ranlib", so it can be a program name with args.
6190 set dummy ranlib; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   if test -n "$ac_ct_RANLIB"; then
6197   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204     for ac_exec_ext in '' $ac_executable_extensions; do
6205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206     ac_cv_prog_ac_ct_RANLIB="ranlib"
6207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211   done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6217 if test -n "$ac_ct_RANLIB"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6219 $as_echo "$ac_ct_RANLIB" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224
6225   if test "x$ac_ct_RANLIB" = x; then
6226     RANLIB=":"
6227   else
6228     case $cross_compiling:$ac_tool_warned in
6229 yes:)
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6232 ac_tool_warned=yes ;;
6233 esac
6234     RANLIB=$ac_ct_RANLIB
6235   fi
6236 else
6237   RANLIB="$ac_cv_prog_RANLIB"
6238 fi
6239
6240 test -z "$RANLIB" && RANLIB=:
6241
6242
6243
6244
6245
6246
6247 # Determine commands to create old-style static archives.
6248 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6249 old_postinstall_cmds='chmod 644 $oldlib'
6250 old_postuninstall_cmds=
6251
6252 if test -n "$RANLIB"; then
6253   case $host_os in
6254   bitrig* | openbsd*)
6255     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6256     ;;
6257   *)
6258     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6259     ;;
6260   esac
6261   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6262 fi
6263
6264 case $host_os in
6265   darwin*)
6266     lock_old_archive_extraction=yes ;;
6267   *)
6268     lock_old_archive_extraction=no ;;
6269 esac
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 # If no C compiler was specified, use CC.
6310 LTCC=${LTCC-"$CC"}
6311
6312 # If no C compiler flags were specified, use CFLAGS.
6313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6314
6315 # Allow CC to be a program name with arguments.
6316 compiler=$CC
6317
6318
6319 # Check for command to grab the raw symbol name followed by C symbol from nm.
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6321 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6322 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6323   $as_echo_n "(cached) " >&6
6324 else
6325
6326 # These are sane defaults that work on at least a few old systems.
6327 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6328
6329 # Character class describing NM global symbol codes.
6330 symcode='[BCDEGRST]'
6331
6332 # Regexp to match symbols that can be accessed directly from C.
6333 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6334
6335 # Define system-specific variables.
6336 case $host_os in
6337 aix*)
6338   symcode='[BCDT]'
6339   ;;
6340 cygwin* | mingw* | pw32* | cegcc*)
6341   symcode='[ABCDGISTW]'
6342   ;;
6343 hpux*)
6344   if test ia64 = "$host_cpu"; then
6345     symcode='[ABCDEGRST]'
6346   fi
6347   ;;
6348 irix* | nonstopux*)
6349   symcode='[BCDEGRST]'
6350   ;;
6351 osf*)
6352   symcode='[BCDEGQRST]'
6353   ;;
6354 solaris*)
6355   symcode='[BDRT]'
6356   ;;
6357 sco3.2v5*)
6358   symcode='[DT]'
6359   ;;
6360 sysv4.2uw2*)
6361   symcode='[DT]'
6362   ;;
6363 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6364   symcode='[ABDT]'
6365   ;;
6366 sysv4)
6367   symcode='[DFNSTU]'
6368   ;;
6369 esac
6370
6371 # If we're using GNU nm, then use its standard symbol codes.
6372 case `$NM -V 2>&1` in
6373 *GNU* | *'with BFD'*)
6374   symcode='[ABCDGIRSTW]' ;;
6375 esac
6376
6377 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6378   # Gets list of data symbols to import.
6379   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6380   # Adjust the below global symbol transforms to fixup imported variables.
6381   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6382   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6383   lt_c_name_lib_hook="\
6384   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6385   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6386 else
6387   # Disable hooks by default.
6388   lt_cv_sys_global_symbol_to_import=
6389   lt_cdecl_hook=
6390   lt_c_name_hook=
6391   lt_c_name_lib_hook=
6392 fi
6393
6394 # Transform an extracted symbol line into a proper C declaration.
6395 # Some systems (esp. on ia64) link data and code symbols differently,
6396 # so use this general approach.
6397 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6398 $lt_cdecl_hook\
6399 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6400 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6401
6402 # Transform an extracted symbol line into symbol name and symbol address
6403 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6404 $lt_c_name_hook\
6405 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6406 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6407
6408 # Transform an extracted symbol line into symbol name with lib prefix and
6409 # symbol address.
6410 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6411 $lt_c_name_lib_hook\
6412 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6413 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6414 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6415
6416 # Handle CRLF in mingw tool chain
6417 opt_cr=
6418 case $build_os in
6419 mingw*)
6420   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6421   ;;
6422 esac
6423
6424 # Try without a prefix underscore, then with it.
6425 for ac_symprfx in "" "_"; do
6426
6427   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6428   symxfrm="\\1 $ac_symprfx\\2 \\2"
6429
6430   # Write the raw and C identifiers.
6431   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6432     # Fake it for dumpbin and say T for any non-static function,
6433     # D for any global variable and I for any imported variable.
6434     # Also find C++ and __fastcall symbols from MSVC++,
6435     # which start with @ or ?.
6436     lt_cv_sys_global_symbol_pipe="$AWK '"\
6437 "     {last_section=section; section=\$ 3};"\
6438 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6439 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6440 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6441 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6442 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6443 "     \$ 0!~/External *\|/{next};"\
6444 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6445 "     {if(hide[section]) next};"\
6446 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6447 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6448 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6449 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6450 "     ' prfx=^$ac_symprfx"
6451   else
6452     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6453   fi
6454   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6455
6456   # Check to see that the pipe works correctly.
6457   pipe_works=no
6458
6459   rm -f conftest*
6460   cat > conftest.$ac_ext <<_LT_EOF
6461 #ifdef __cplusplus
6462 extern "C" {
6463 #endif
6464 char nm_test_var;
6465 void nm_test_func(void);
6466 void nm_test_func(void){}
6467 #ifdef __cplusplus
6468 }
6469 #endif
6470 int main(){nm_test_var='a';nm_test_func();return(0);}
6471 _LT_EOF
6472
6473   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6474   (eval $ac_compile) 2>&5
6475   ac_status=$?
6476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477   test $ac_status = 0; }; then
6478     # Now try to grab the symbols.
6479     nlist=conftest.nm
6480     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6481   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6482   ac_status=$?
6483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484   test $ac_status = 0; } && test -s "$nlist"; then
6485       # Try sorting and uniquifying the output.
6486       if sort "$nlist" | uniq > "$nlist"T; then
6487         mv -f "$nlist"T "$nlist"
6488       else
6489         rm -f "$nlist"T
6490       fi
6491
6492       # Make sure that we snagged all the symbols we need.
6493       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6494         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6495           cat <<_LT_EOF > conftest.$ac_ext
6496 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6497 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6498 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6499    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6500 # define LT_DLSYM_CONST
6501 #elif defined __osf__
6502 /* This system does not cope well with relocations in const data.  */
6503 # define LT_DLSYM_CONST
6504 #else
6505 # define LT_DLSYM_CONST const
6506 #endif
6507
6508 #ifdef __cplusplus
6509 extern "C" {
6510 #endif
6511
6512 _LT_EOF
6513           # Now generate the symbol file.
6514           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6515
6516           cat <<_LT_EOF >> conftest.$ac_ext
6517
6518 /* The mapping between symbol names and symbols.  */
6519 LT_DLSYM_CONST struct {
6520   const char *name;
6521   void       *address;
6522 }
6523 lt__PROGRAM__LTX_preloaded_symbols[] =
6524 {
6525   { "@PROGRAM@", (void *) 0 },
6526 _LT_EOF
6527           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6528           cat <<\_LT_EOF >> conftest.$ac_ext
6529   {0, (void *) 0}
6530 };
6531
6532 /* This works around a problem in FreeBSD linker */
6533 #ifdef FREEBSD_WORKAROUND
6534 static const void *lt_preloaded_setup() {
6535   return lt__PROGRAM__LTX_preloaded_symbols;
6536 }
6537 #endif
6538
6539 #ifdef __cplusplus
6540 }
6541 #endif
6542 _LT_EOF
6543           # Now try linking the two files.
6544           mv conftest.$ac_objext conftstm.$ac_objext
6545           lt_globsym_save_LIBS=$LIBS
6546           lt_globsym_save_CFLAGS=$CFLAGS
6547           LIBS=conftstm.$ac_objext
6548           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6549           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6550   (eval $ac_link) 2>&5
6551   ac_status=$?
6552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6554             pipe_works=yes
6555           fi
6556           LIBS=$lt_globsym_save_LIBS
6557           CFLAGS=$lt_globsym_save_CFLAGS
6558         else
6559           echo "cannot find nm_test_func in $nlist" >&5
6560         fi
6561       else
6562         echo "cannot find nm_test_var in $nlist" >&5
6563       fi
6564     else
6565       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6566     fi
6567   else
6568     echo "$progname: failed program was:" >&5
6569     cat conftest.$ac_ext >&5
6570   fi
6571   rm -rf conftest* conftst*
6572
6573   # Do not use the global_symbol_pipe unless it works.
6574   if test yes = "$pipe_works"; then
6575     break
6576   else
6577     lt_cv_sys_global_symbol_pipe=
6578   fi
6579 done
6580
6581 fi
6582
6583 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6584   lt_cv_sys_global_symbol_to_cdecl=
6585 fi
6586 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6588 $as_echo "failed" >&6; }
6589 else
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6591 $as_echo "ok" >&6; }
6592 fi
6593
6594 # Response file support.
6595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6596   nm_file_list_spec='@'
6597 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6598   nm_file_list_spec='@'
6599 fi
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6638 $as_echo_n "checking for sysroot... " >&6; }
6639
6640 # Check whether --with-sysroot was given.
6641 if test "${with_sysroot+set}" = set; then :
6642   withval=$with_sysroot;
6643 else
6644   with_sysroot=no
6645 fi
6646
6647
6648 lt_sysroot=
6649 case $with_sysroot in #(
6650  yes)
6651    if test yes = "$GCC"; then
6652      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6653    fi
6654    ;; #(
6655  /*)
6656    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6657    ;; #(
6658  no|'')
6659    ;; #(
6660  *)
6661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6662 $as_echo "$with_sysroot" >&6; }
6663    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6664    ;;
6665 esac
6666
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6668 $as_echo "${lt_sysroot:-no}" >&6; }
6669
6670
6671
6672
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6675 $as_echo_n "checking for a working dd... " >&6; }
6676 if ${ac_cv_path_lt_DD+:} false; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   printf 0123456789abcdef0123456789abcdef >conftest.i
6680 cat conftest.i conftest.i >conftest2.i
6681 : ${lt_DD:=$DD}
6682 if test -z "$lt_DD"; then
6683   ac_path_lt_DD_found=false
6684   # Loop through the user's path and test for each of PROGNAME-LIST
6685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690     for ac_prog in dd; do
6691     for ac_exec_ext in '' $ac_executable_extensions; do
6692       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6693       as_fn_executable_p "$ac_path_lt_DD" || continue
6694 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6695   cmp -s conftest.i conftest.out \
6696   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6697 fi
6698       $ac_path_lt_DD_found && break 3
6699     done
6700   done
6701   done
6702 IFS=$as_save_IFS
6703   if test -z "$ac_cv_path_lt_DD"; then
6704     :
6705   fi
6706 else
6707   ac_cv_path_lt_DD=$lt_DD
6708 fi
6709
6710 rm -f conftest.i conftest2.i conftest.out
6711 fi
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6713 $as_echo "$ac_cv_path_lt_DD" >&6; }
6714
6715
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6717 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6718 if ${lt_cv_truncate_bin+:} false; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   printf 0123456789abcdef0123456789abcdef >conftest.i
6722 cat conftest.i conftest.i >conftest2.i
6723 lt_cv_truncate_bin=
6724 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6725   cmp -s conftest.i conftest.out \
6726   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6727 fi
6728 rm -f conftest.i conftest2.i conftest.out
6729 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6730 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6732 $as_echo "$lt_cv_truncate_bin" >&6; }
6733
6734
6735
6736
6737
6738
6739
6740 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6741 func_cc_basename ()
6742 {
6743     for cc_temp in $*""; do
6744       case $cc_temp in
6745         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6746         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6747         \-*) ;;
6748         *) break;;
6749       esac
6750     done
6751     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6752 }
6753
6754 # Check whether --enable-libtool-lock was given.
6755 if test "${enable_libtool_lock+set}" = set; then :
6756   enableval=$enable_libtool_lock;
6757 fi
6758
6759 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6760
6761 # Some flags need to be propagated to the compiler or linker for good
6762 # libtool support.
6763 case $host in
6764 ia64-*-hpux*)
6765   # Find out what ABI is being produced by ac_compile, and set mode
6766   # options accordingly.
6767   echo 'int i;' > conftest.$ac_ext
6768   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6769   (eval $ac_compile) 2>&5
6770   ac_status=$?
6771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772   test $ac_status = 0; }; then
6773     case `/usr/bin/file conftest.$ac_objext` in
6774       *ELF-32*)
6775         HPUX_IA64_MODE=32
6776         ;;
6777       *ELF-64*)
6778         HPUX_IA64_MODE=64
6779         ;;
6780     esac
6781   fi
6782   rm -rf conftest*
6783   ;;
6784 *-*-irix6*)
6785   # Find out what ABI is being produced by ac_compile, and set linker
6786   # options accordingly.
6787   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6788   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6789   (eval $ac_compile) 2>&5
6790   ac_status=$?
6791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792   test $ac_status = 0; }; then
6793     if test yes = "$lt_cv_prog_gnu_ld"; then
6794       case `/usr/bin/file conftest.$ac_objext` in
6795         *32-bit*)
6796           LD="${LD-ld} -melf32bsmip"
6797           ;;
6798         *N32*)
6799           LD="${LD-ld} -melf32bmipn32"
6800           ;;
6801         *64-bit*)
6802           LD="${LD-ld} -melf64bmip"
6803         ;;
6804       esac
6805     else
6806       case `/usr/bin/file conftest.$ac_objext` in
6807         *32-bit*)
6808           LD="${LD-ld} -32"
6809           ;;
6810         *N32*)
6811           LD="${LD-ld} -n32"
6812           ;;
6813         *64-bit*)
6814           LD="${LD-ld} -64"
6815           ;;
6816       esac
6817     fi
6818   fi
6819   rm -rf conftest*
6820   ;;
6821
6822 mips64*-*linux*)
6823   # Find out what ABI is being produced by ac_compile, and set linker
6824   # options accordingly.
6825   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6826   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6827   (eval $ac_compile) 2>&5
6828   ac_status=$?
6829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830   test $ac_status = 0; }; then
6831     emul=elf
6832     case `/usr/bin/file conftest.$ac_objext` in
6833       *32-bit*)
6834         emul="${emul}32"
6835         ;;
6836       *64-bit*)
6837         emul="${emul}64"
6838         ;;
6839     esac
6840     case `/usr/bin/file conftest.$ac_objext` in
6841       *MSB*)
6842         emul="${emul}btsmip"
6843         ;;
6844       *LSB*)
6845         emul="${emul}ltsmip"
6846         ;;
6847     esac
6848     case `/usr/bin/file conftest.$ac_objext` in
6849       *N32*)
6850         emul="${emul}n32"
6851         ;;
6852     esac
6853     LD="${LD-ld} -m $emul"
6854   fi
6855   rm -rf conftest*
6856   ;;
6857
6858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6860   # Find out what ABI is being produced by ac_compile, and set linker
6861   # options accordingly.  Note that the listed cases only cover the
6862   # situations where additional linker options are needed (such as when
6863   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6864   # vice versa); the common cases where no linker options are needed do
6865   # not appear in the list.
6866   echo 'int i;' > conftest.$ac_ext
6867   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6868   (eval $ac_compile) 2>&5
6869   ac_status=$?
6870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871   test $ac_status = 0; }; then
6872     case `/usr/bin/file conftest.o` in
6873       *32-bit*)
6874         case $host in
6875           x86_64-*kfreebsd*-gnu)
6876             LD="${LD-ld} -m elf_i386_fbsd"
6877             ;;
6878           x86_64-*linux*)
6879             case `/usr/bin/file conftest.o` in
6880               *x86-64*)
6881                 LD="${LD-ld} -m elf32_x86_64"
6882                 ;;
6883               *)
6884                 LD="${LD-ld} -m elf_i386"
6885                 ;;
6886             esac
6887             ;;
6888           powerpc64le-*linux*)
6889             LD="${LD-ld} -m elf32lppclinux"
6890             ;;
6891           powerpc64-*linux*)
6892             LD="${LD-ld} -m elf32ppclinux"
6893             ;;
6894           s390x-*linux*)
6895             LD="${LD-ld} -m elf_s390"
6896             ;;
6897           sparc64-*linux*)
6898             LD="${LD-ld} -m elf32_sparc"
6899             ;;
6900         esac
6901         ;;
6902       *64-bit*)
6903         case $host in
6904           x86_64-*kfreebsd*-gnu)
6905             LD="${LD-ld} -m elf_x86_64_fbsd"
6906             ;;
6907           x86_64-*linux*)
6908             LD="${LD-ld} -m elf_x86_64"
6909             ;;
6910           powerpcle-*linux*)
6911             LD="${LD-ld} -m elf64lppc"
6912             ;;
6913           powerpc-*linux*)
6914             LD="${LD-ld} -m elf64ppc"
6915             ;;
6916           s390*-*linux*|s390*-*tpf*)
6917             LD="${LD-ld} -m elf64_s390"
6918             ;;
6919           sparc*-*linux*)
6920             LD="${LD-ld} -m elf64_sparc"
6921             ;;
6922         esac
6923         ;;
6924     esac
6925   fi
6926   rm -rf conftest*
6927   ;;
6928
6929 *-*-sco3.2v5*)
6930   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6931   SAVE_CFLAGS=$CFLAGS
6932   CFLAGS="$CFLAGS -belf"
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6934 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6935 if ${lt_cv_cc_needs_belf+:} false; then :
6936   $as_echo_n "(cached) " >&6
6937 else
6938   ac_ext=c
6939 ac_cpp='$CPP $CPPFLAGS'
6940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6943
6944      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h.  */
6946
6947 int
6948 main ()
6949 {
6950
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 if ac_fn_c_try_link "$LINENO"; then :
6956   lt_cv_cc_needs_belf=yes
6957 else
6958   lt_cv_cc_needs_belf=no
6959 fi
6960 rm -f core conftest.err conftest.$ac_objext \
6961     conftest$ac_exeext conftest.$ac_ext
6962      ac_ext=c
6963 ac_cpp='$CPP $CPPFLAGS'
6964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6967
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6970 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6971   if test yes != "$lt_cv_cc_needs_belf"; then
6972     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6973     CFLAGS=$SAVE_CFLAGS
6974   fi
6975   ;;
6976 *-*solaris*)
6977   # Find out what ABI is being produced by ac_compile, and set linker
6978   # options accordingly.
6979   echo 'int i;' > conftest.$ac_ext
6980   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6981   (eval $ac_compile) 2>&5
6982   ac_status=$?
6983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984   test $ac_status = 0; }; then
6985     case `/usr/bin/file conftest.o` in
6986     *64-bit*)
6987       case $lt_cv_prog_gnu_ld in
6988       yes*)
6989         case $host in
6990         i?86-*-solaris*|x86_64-*-solaris*)
6991           LD="${LD-ld} -m elf_x86_64"
6992           ;;
6993         sparc*-*-solaris*)
6994           LD="${LD-ld} -m elf64_sparc"
6995           ;;
6996         esac
6997         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6998         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6999           LD=${LD-ld}_sol2
7000         fi
7001         ;;
7002       *)
7003         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7004           LD="${LD-ld} -64"
7005         fi
7006         ;;
7007       esac
7008       ;;
7009     esac
7010   fi
7011   rm -rf conftest*
7012   ;;
7013 esac
7014
7015 need_locks=$enable_libtool_lock
7016
7017 if test -n "$ac_tool_prefix"; then
7018   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}mt; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   if test -n "$MANIFEST_TOOL"; then
7026   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033     for ac_exec_ext in '' $ac_executable_extensions; do
7034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040   done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7046 if test -n "$MANIFEST_TOOL"; then
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7048 $as_echo "$MANIFEST_TOOL" >&6; }
7049 else
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054
7055 fi
7056 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7057   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7058   # Extract the first word of "mt", so it can be a program name with args.
7059 set dummy mt; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7063   $as_echo_n "(cached) " >&6
7064 else
7065   if test -n "$ac_ct_MANIFEST_TOOL"; then
7066   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073     for ac_exec_ext in '' $ac_executable_extensions; do
7074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080   done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7086 if test -n "$ac_ct_MANIFEST_TOOL"; then
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7088 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7089 else
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7095     MANIFEST_TOOL=":"
7096   else
7097     case $cross_compiling:$ac_tool_warned in
7098 yes:)
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned=yes ;;
7102 esac
7103     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7104   fi
7105 else
7106   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7107 fi
7108
7109 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7111 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7112 if ${lt_cv_path_mainfest_tool+:} false; then :
7113   $as_echo_n "(cached) " >&6
7114 else
7115   lt_cv_path_mainfest_tool=no
7116   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7117   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7118   cat conftest.err >&5
7119   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7120     lt_cv_path_mainfest_tool=yes
7121   fi
7122   rm -f conftest*
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7125 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7126 if test yes != "$lt_cv_path_mainfest_tool"; then
7127   MANIFEST_TOOL=:
7128 fi
7129
7130
7131
7132
7133
7134
7135   case $host_os in
7136     rhapsody* | darwin*)
7137     if test -n "$ac_tool_prefix"; then
7138   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   if test -n "$DSYMUTIL"; then
7146   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153     for ac_exec_ext in '' $ac_executable_extensions; do
7154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160   done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7166 if test -n "$DSYMUTIL"; then
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7168 $as_echo "$DSYMUTIL" >&6; }
7169 else
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174
7175 fi
7176 if test -z "$ac_cv_prog_DSYMUTIL"; then
7177   ac_ct_DSYMUTIL=$DSYMUTIL
7178   # Extract the first word of "dsymutil", so it can be a program name with args.
7179 set dummy dsymutil; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7183   $as_echo_n "(cached) " >&6
7184 else
7185   if test -n "$ac_ct_DSYMUTIL"; then
7186   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193     for ac_exec_ext in '' $ac_executable_extensions; do
7194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200   done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7206 if test -n "$ac_ct_DSYMUTIL"; then
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7208 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7209 else
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214   if test "x$ac_ct_DSYMUTIL" = x; then
7215     DSYMUTIL=":"
7216   else
7217     case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223     DSYMUTIL=$ac_ct_DSYMUTIL
7224   fi
7225 else
7226   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7227 fi
7228
7229     if test -n "$ac_tool_prefix"; then
7230   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 $as_echo_n "checking for $ac_word... " >&6; }
7234 if ${ac_cv_prog_NMEDIT+:} false; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   if test -n "$NMEDIT"; then
7238   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243   IFS=$as_save_IFS
7244   test -z "$as_dir" && as_dir=.
7245     for ac_exec_ext in '' $ac_executable_extensions; do
7246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249     break 2
7250   fi
7251 done
7252   done
7253 IFS=$as_save_IFS
7254
7255 fi
7256 fi
7257 NMEDIT=$ac_cv_prog_NMEDIT
7258 if test -n "$NMEDIT"; then
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7260 $as_echo "$NMEDIT" >&6; }
7261 else
7262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7264 fi
7265
7266
7267 fi
7268 if test -z "$ac_cv_prog_NMEDIT"; then
7269   ac_ct_NMEDIT=$NMEDIT
7270   # Extract the first word of "nmedit", so it can be a program name with args.
7271 set dummy nmedit; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   if test -n "$ac_ct_NMEDIT"; then
7278   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285     for ac_exec_ext in '' $ac_executable_extensions; do
7286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292   done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7298 if test -n "$ac_ct_NMEDIT"; then
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7300 $as_echo "$ac_ct_NMEDIT" >&6; }
7301 else
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306   if test "x$ac_ct_NMEDIT" = x; then
7307     NMEDIT=":"
7308   else
7309     case $cross_compiling:$ac_tool_warned in
7310 yes:)
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7313 ac_tool_warned=yes ;;
7314 esac
7315     NMEDIT=$ac_ct_NMEDIT
7316   fi
7317 else
7318   NMEDIT="$ac_cv_prog_NMEDIT"
7319 fi
7320
7321     if test -n "$ac_tool_prefix"; then
7322   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7323 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if ${ac_cv_prog_LIPO+:} false; then :
7327   $as_echo_n "(cached) " >&6
7328 else
7329   if test -n "$LIPO"; then
7330   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335   IFS=$as_save_IFS
7336   test -z "$as_dir" && as_dir=.
7337     for ac_exec_ext in '' $ac_executable_extensions; do
7338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341     break 2
7342   fi
7343 done
7344   done
7345 IFS=$as_save_IFS
7346
7347 fi
7348 fi
7349 LIPO=$ac_cv_prog_LIPO
7350 if test -n "$LIPO"; then
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7352 $as_echo "$LIPO" >&6; }
7353 else
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356 fi
7357
7358
7359 fi
7360 if test -z "$ac_cv_prog_LIPO"; then
7361   ac_ct_LIPO=$LIPO
7362   # Extract the first word of "lipo", so it can be a program name with args.
7363 set dummy lipo; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   if test -n "$ac_ct_LIPO"; then
7370   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377     for ac_exec_ext in '' $ac_executable_extensions; do
7378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379     ac_cv_prog_ac_ct_LIPO="lipo"
7380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384   done
7385 IFS=$as_save_IFS
7386
7387 fi
7388 fi
7389 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7390 if test -n "$ac_ct_LIPO"; then
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7392 $as_echo "$ac_ct_LIPO" >&6; }
7393 else
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397
7398   if test "x$ac_ct_LIPO" = x; then
7399     LIPO=":"
7400   else
7401     case $cross_compiling:$ac_tool_warned in
7402 yes:)
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7405 ac_tool_warned=yes ;;
7406 esac
7407     LIPO=$ac_ct_LIPO
7408   fi
7409 else
7410   LIPO="$ac_cv_prog_LIPO"
7411 fi
7412
7413     if test -n "$ac_tool_prefix"; then
7414   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7415 set dummy ${ac_tool_prefix}otool; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if ${ac_cv_prog_OTOOL+:} false; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421   if test -n "$OTOOL"; then
7422   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7423 else
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429     for ac_exec_ext in '' $ac_executable_extensions; do
7430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436   done
7437 IFS=$as_save_IFS
7438
7439 fi
7440 fi
7441 OTOOL=$ac_cv_prog_OTOOL
7442 if test -n "$OTOOL"; then
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7444 $as_echo "$OTOOL" >&6; }
7445 else
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 fi
7449
7450
7451 fi
7452 if test -z "$ac_cv_prog_OTOOL"; then
7453   ac_ct_OTOOL=$OTOOL
7454   # Extract the first word of "otool", so it can be a program name with args.
7455 set dummy otool; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7459   $as_echo_n "(cached) " >&6
7460 else
7461   if test -n "$ac_ct_OTOOL"; then
7462   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7463 else
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469     for ac_exec_ext in '' $ac_executable_extensions; do
7470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471     ac_cv_prog_ac_ct_OTOOL="otool"
7472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476   done
7477 IFS=$as_save_IFS
7478
7479 fi
7480 fi
7481 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7482 if test -n "$ac_ct_OTOOL"; then
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7484 $as_echo "$ac_ct_OTOOL" >&6; }
7485 else
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 fi
7489
7490   if test "x$ac_ct_OTOOL" = x; then
7491     OTOOL=":"
7492   else
7493     case $cross_compiling:$ac_tool_warned in
7494 yes:)
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7497 ac_tool_warned=yes ;;
7498 esac
7499     OTOOL=$ac_ct_OTOOL
7500   fi
7501 else
7502   OTOOL="$ac_cv_prog_OTOOL"
7503 fi
7504
7505     if test -n "$ac_tool_prefix"; then
7506   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7507 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if ${ac_cv_prog_OTOOL64+:} false; then :
7511   $as_echo_n "(cached) " >&6
7512 else
7513   if test -n "$OTOOL64"; then
7514   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521     for ac_exec_ext in '' $ac_executable_extensions; do
7522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528   done
7529 IFS=$as_save_IFS
7530
7531 fi
7532 fi
7533 OTOOL64=$ac_cv_prog_OTOOL64
7534 if test -n "$OTOOL64"; then
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7536 $as_echo "$OTOOL64" >&6; }
7537 else
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7540 fi
7541
7542
7543 fi
7544 if test -z "$ac_cv_prog_OTOOL64"; then
7545   ac_ct_OTOOL64=$OTOOL64
7546   # Extract the first word of "otool64", so it can be a program name with args.
7547 set dummy otool64; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7551   $as_echo_n "(cached) " >&6
7552 else
7553   if test -n "$ac_ct_OTOOL64"; then
7554   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561     for ac_exec_ext in '' $ac_executable_extensions; do
7562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563     ac_cv_prog_ac_ct_OTOOL64="otool64"
7564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568   done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7574 if test -n "$ac_ct_OTOOL64"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7576 $as_echo "$ac_ct_OTOOL64" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582   if test "x$ac_ct_OTOOL64" = x; then
7583     OTOOL64=":"
7584   else
7585     case $cross_compiling:$ac_tool_warned in
7586 yes:)
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7589 ac_tool_warned=yes ;;
7590 esac
7591     OTOOL64=$ac_ct_OTOOL64
7592   fi
7593 else
7594   OTOOL64="$ac_cv_prog_OTOOL64"
7595 fi
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7624 $as_echo_n "checking for -single_module linker flag... " >&6; }
7625 if ${lt_cv_apple_cc_single_mod+:} false; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   lt_cv_apple_cc_single_mod=no
7629       if test -z "$LT_MULTI_MODULE"; then
7630         # By default we will add the -single_module flag. You can override
7631         # by either setting the environment variable LT_MULTI_MODULE
7632         # non-empty at configure time, or by adding -multi_module to the
7633         # link flags.
7634         rm -rf libconftest.dylib*
7635         echo "int foo(void){return 1;}" > conftest.c
7636         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7637 -dynamiclib -Wl,-single_module conftest.c" >&5
7638         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7639           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7640         _lt_result=$?
7641         # If there is a non-empty error log, and "single_module"
7642         # appears in it, assume the flag caused a linker warning
7643         if test -s conftest.err && $GREP single_module conftest.err; then
7644           cat conftest.err >&5
7645         # Otherwise, if the output was created with a 0 exit code from
7646         # the compiler, it worked.
7647         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7648           lt_cv_apple_cc_single_mod=yes
7649         else
7650           cat conftest.err >&5
7651         fi
7652         rm -rf libconftest.dylib*
7653         rm -f conftest.*
7654       fi
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7657 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7658
7659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7660 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7661 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7662   $as_echo_n "(cached) " >&6
7663 else
7664   lt_cv_ld_exported_symbols_list=no
7665       save_LDFLAGS=$LDFLAGS
7666       echo "_main" > conftest.sym
7667       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7668       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h.  */
7670
7671 int
7672 main ()
7673 {
7674
7675   ;
7676   return 0;
7677 }
7678 _ACEOF
7679 if ac_fn_c_try_link "$LINENO"; then :
7680   lt_cv_ld_exported_symbols_list=yes
7681 else
7682   lt_cv_ld_exported_symbols_list=no
7683 fi
7684 rm -f core conftest.err conftest.$ac_objext \
7685     conftest$ac_exeext conftest.$ac_ext
7686         LDFLAGS=$save_LDFLAGS
7687
7688 fi
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7690 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7691
7692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7693 $as_echo_n "checking for -force_load linker flag... " >&6; }
7694 if ${lt_cv_ld_force_load+:} false; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   lt_cv_ld_force_load=no
7698       cat > conftest.c << _LT_EOF
7699 int forced_loaded() { return 2;}
7700 _LT_EOF
7701       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7702       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7703       echo "$AR cru libconftest.a conftest.o" >&5
7704       $AR cru libconftest.a conftest.o 2>&5
7705       echo "$RANLIB libconftest.a" >&5
7706       $RANLIB libconftest.a 2>&5
7707       cat > conftest.c << _LT_EOF
7708 int main() { return 0;}
7709 _LT_EOF
7710       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7711       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7712       _lt_result=$?
7713       if test -s conftest.err && $GREP force_load conftest.err; then
7714         cat conftest.err >&5
7715       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7716         lt_cv_ld_force_load=yes
7717       else
7718         cat conftest.err >&5
7719       fi
7720         rm -f conftest.err libconftest.a conftest conftest.c
7721         rm -rf conftest.dSYM
7722
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7725 $as_echo "$lt_cv_ld_force_load" >&6; }
7726     case $host_os in
7727     rhapsody* | darwin1.[012])
7728       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7729     darwin1.*)
7730       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7731     darwin*) # darwin 5.x on
7732       # if running on 10.5 or later, the deployment target defaults
7733       # to the OS version, if on x86, and 10.4, the deployment
7734       # target defaults to 10.4. Don't you love it?
7735       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7736         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7737           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7738         10.[012][,.]*)
7739           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7740         10.*)
7741           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7742       esac
7743     ;;
7744   esac
7745     if test yes = "$lt_cv_apple_cc_single_mod"; then
7746       _lt_dar_single_mod='$single_module'
7747     fi
7748     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7749       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7750     else
7751       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7752     fi
7753     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7754       _lt_dsymutil='~$DSYMUTIL $lib || :'
7755     else
7756       _lt_dsymutil=
7757     fi
7758     ;;
7759   esac
7760
7761 # func_munge_path_list VARIABLE PATH
7762 # -----------------------------------
7763 # VARIABLE is name of variable containing _space_ separated list of
7764 # directories to be munged by the contents of PATH, which is string
7765 # having a format:
7766 # "DIR[:DIR]:"
7767 #       string "DIR[ DIR]" will be prepended to VARIABLE
7768 # ":DIR[:DIR]"
7769 #       string "DIR[ DIR]" will be appended to VARIABLE
7770 # "DIRP[:DIRP]::[DIRA:]DIRA"
7771 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7772 #       "DIRA[ DIRA]" will be appended to VARIABLE
7773 # "DIR[:DIR]"
7774 #       VARIABLE will be replaced by "DIR[ DIR]"
7775 func_munge_path_list ()
7776 {
7777     case x$2 in
7778     x)
7779         ;;
7780     *:)
7781         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7782         ;;
7783     x:*)
7784         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7785         ;;
7786     *::*)
7787         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7788         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7789         ;;
7790     *)
7791         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7792         ;;
7793     esac
7794 }
7795
7796 ac_ext=c
7797 ac_cpp='$CPP $CPPFLAGS'
7798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7802 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7803 # On Suns, sometimes $CPP names a directory.
7804 if test -n "$CPP" && test -d "$CPP"; then
7805   CPP=
7806 fi
7807 if test -z "$CPP"; then
7808   if ${ac_cv_prog_CPP+:} false; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811       # Double quotes because CPP needs to be expanded
7812     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7813     do
7814       ac_preproc_ok=false
7815 for ac_c_preproc_warn_flag in '' yes
7816 do
7817   # Use a header file that comes with gcc, so configuring glibc
7818   # with a fresh cross-compiler works.
7819   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7820   # <limits.h> exists even on freestanding compilers.
7821   # On the NeXT, cc -E runs the code through the compiler's parser,
7822   # not just through cpp. "Syntax error" is here to catch this case.
7823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h.  */
7825 #ifdef __STDC__
7826 # include <limits.h>
7827 #else
7828 # include <assert.h>
7829 #endif
7830                      Syntax error
7831 _ACEOF
7832 if ac_fn_c_try_cpp "$LINENO"; then :
7833
7834 else
7835   # Broken: fails on valid input.
7836 continue
7837 fi
7838 rm -f conftest.err conftest.i conftest.$ac_ext
7839
7840   # OK, works on sane cases.  Now check whether nonexistent headers
7841   # can be detected and how.
7842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h.  */
7844 #include <ac_nonexistent.h>
7845 _ACEOF
7846 if ac_fn_c_try_cpp "$LINENO"; then :
7847   # Broken: success on invalid input.
7848 continue
7849 else
7850   # Passes both tests.
7851 ac_preproc_ok=:
7852 break
7853 fi
7854 rm -f conftest.err conftest.i conftest.$ac_ext
7855
7856 done
7857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7858 rm -f conftest.i conftest.err conftest.$ac_ext
7859 if $ac_preproc_ok; then :
7860   break
7861 fi
7862
7863     done
7864     ac_cv_prog_CPP=$CPP
7865
7866 fi
7867   CPP=$ac_cv_prog_CPP
7868 else
7869   ac_cv_prog_CPP=$CPP
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7872 $as_echo "$CPP" >&6; }
7873 ac_preproc_ok=false
7874 for ac_c_preproc_warn_flag in '' yes
7875 do
7876   # Use a header file that comes with gcc, so configuring glibc
7877   # with a fresh cross-compiler works.
7878   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7879   # <limits.h> exists even on freestanding compilers.
7880   # On the NeXT, cc -E runs the code through the compiler's parser,
7881   # not just through cpp. "Syntax error" is here to catch this case.
7882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h.  */
7884 #ifdef __STDC__
7885 # include <limits.h>
7886 #else
7887 # include <assert.h>
7888 #endif
7889                      Syntax error
7890 _ACEOF
7891 if ac_fn_c_try_cpp "$LINENO"; then :
7892
7893 else
7894   # Broken: fails on valid input.
7895 continue
7896 fi
7897 rm -f conftest.err conftest.i conftest.$ac_ext
7898
7899   # OK, works on sane cases.  Now check whether nonexistent headers
7900   # can be detected and how.
7901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7903 #include <ac_nonexistent.h>
7904 _ACEOF
7905 if ac_fn_c_try_cpp "$LINENO"; then :
7906   # Broken: success on invalid input.
7907 continue
7908 else
7909   # Passes both tests.
7910 ac_preproc_ok=:
7911 break
7912 fi
7913 rm -f conftest.err conftest.i conftest.$ac_ext
7914
7915 done
7916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7917 rm -f conftest.i conftest.err conftest.$ac_ext
7918 if $ac_preproc_ok; then :
7919
7920 else
7921   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7923 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7924 See \`config.log' for more details" "$LINENO" 5; }
7925 fi
7926
7927 ac_ext=c
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932
7933
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7935 $as_echo_n "checking for ANSI C header files... " >&6; }
7936 if ${ac_cv_header_stdc+:} false; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h.  */
7941 #include <stdlib.h>
7942 #include <stdarg.h>
7943 #include <string.h>
7944 #include <float.h>
7945
7946 int
7947 main ()
7948 {
7949
7950   ;
7951   return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_compile "$LINENO"; then :
7955   ac_cv_header_stdc=yes
7956 else
7957   ac_cv_header_stdc=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960
7961 if test $ac_cv_header_stdc = yes; then
7962   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h.  */
7965 #include <string.h>
7966
7967 _ACEOF
7968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7969   $EGREP "memchr" >/dev/null 2>&1; then :
7970
7971 else
7972   ac_cv_header_stdc=no
7973 fi
7974 rm -f conftest*
7975
7976 fi
7977
7978 if test $ac_cv_header_stdc = yes; then
7979   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h.  */
7982 #include <stdlib.h>
7983
7984 _ACEOF
7985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7986   $EGREP "free" >/dev/null 2>&1; then :
7987
7988 else
7989   ac_cv_header_stdc=no
7990 fi
7991 rm -f conftest*
7992
7993 fi
7994
7995 if test $ac_cv_header_stdc = yes; then
7996   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7997   if test "$cross_compiling" = yes; then :
7998   :
7999 else
8000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h.  */
8002 #include <ctype.h>
8003 #include <stdlib.h>
8004 #if ((' ' & 0x0FF) == 0x020)
8005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8007 #else
8008 # define ISLOWER(c) \
8009                    (('a' <= (c) && (c) <= 'i') \
8010                      || ('j' <= (c) && (c) <= 'r') \
8011                      || ('s' <= (c) && (c) <= 'z'))
8012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8013 #endif
8014
8015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8016 int
8017 main ()
8018 {
8019   int i;
8020   for (i = 0; i < 256; i++)
8021     if (XOR (islower (i), ISLOWER (i))
8022         || toupper (i) != TOUPPER (i))
8023       return 2;
8024   return 0;
8025 }
8026 _ACEOF
8027 if ac_fn_c_try_run "$LINENO"; then :
8028
8029 else
8030   ac_cv_header_stdc=no
8031 fi
8032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8033   conftest.$ac_objext conftest.beam conftest.$ac_ext
8034 fi
8035
8036 fi
8037 fi
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8039 $as_echo "$ac_cv_header_stdc" >&6; }
8040 if test $ac_cv_header_stdc = yes; then
8041
8042 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8043
8044 fi
8045
8046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8048                   inttypes.h stdint.h unistd.h
8049 do :
8050   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8051 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8052 "
8053 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8054   cat >>confdefs.h <<_ACEOF
8055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8056 _ACEOF
8057
8058 fi
8059
8060 done
8061
8062
8063 for ac_header in dlfcn.h
8064 do :
8065   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8066 "
8067 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8068   cat >>confdefs.h <<_ACEOF
8069 #define HAVE_DLFCN_H 1
8070 _ACEOF
8071
8072 fi
8073
8074 done
8075
8076
8077
8078
8079
8080 # Set options
8081 # Check whether --enable-static was given.
8082 if test "${enable_static+set}" = set; then :
8083   enableval=$enable_static; p=${PACKAGE-default}
8084     case $enableval in
8085     yes) enable_static=yes ;;
8086     no) enable_static=no ;;
8087     *)
8088      enable_static=no
8089       # Look at the argument we got.  We use all the common list separators.
8090       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8091       for pkg in $enableval; do
8092         IFS=$lt_save_ifs
8093         if test "X$pkg" = "X$p"; then
8094           enable_static=yes
8095         fi
8096       done
8097       IFS=$lt_save_ifs
8098       ;;
8099     esac
8100 else
8101   enable_static=no
8102 fi
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113         enable_dlopen=no
8114
8115
8116   enable_win32_dll=no
8117
8118
8119             # Check whether --enable-shared was given.
8120 if test "${enable_shared+set}" = set; then :
8121   enableval=$enable_shared; p=${PACKAGE-default}
8122     case $enableval in
8123     yes) enable_shared=yes ;;
8124     no) enable_shared=no ;;
8125     *)
8126       enable_shared=no
8127       # Look at the argument we got.  We use all the common list separators.
8128       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8129       for pkg in $enableval; do
8130         IFS=$lt_save_ifs
8131         if test "X$pkg" = "X$p"; then
8132           enable_shared=yes
8133         fi
8134       done
8135       IFS=$lt_save_ifs
8136       ;;
8137     esac
8138 else
8139   enable_shared=yes
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152 # Check whether --with-pic was given.
8153 if test "${with_pic+set}" = set; then :
8154   withval=$with_pic; lt_p=${PACKAGE-default}
8155     case $withval in
8156     yes|no) pic_mode=$withval ;;
8157     *)
8158       pic_mode=default
8159       # Look at the argument we got.  We use all the common list separators.
8160       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8161       for lt_pkg in $withval; do
8162         IFS=$lt_save_ifs
8163         if test "X$lt_pkg" = "X$lt_p"; then
8164           pic_mode=yes
8165         fi
8166       done
8167       IFS=$lt_save_ifs
8168       ;;
8169     esac
8170 else
8171   pic_mode=default
8172 fi
8173
8174
8175
8176
8177
8178
8179
8180
8181   # Check whether --enable-fast-install was given.
8182 if test "${enable_fast_install+set}" = set; then :
8183   enableval=$enable_fast_install; p=${PACKAGE-default}
8184     case $enableval in
8185     yes) enable_fast_install=yes ;;
8186     no) enable_fast_install=no ;;
8187     *)
8188       enable_fast_install=no
8189       # Look at the argument we got.  We use all the common list separators.
8190       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8191       for pkg in $enableval; do
8192         IFS=$lt_save_ifs
8193         if test "X$pkg" = "X$p"; then
8194           enable_fast_install=yes
8195         fi
8196       done
8197       IFS=$lt_save_ifs
8198       ;;
8199     esac
8200 else
8201   enable_fast_install=yes
8202 fi
8203
8204
8205
8206
8207
8208
8209
8210
8211   shared_archive_member_spec=
8212 case $host,$enable_shared in
8213 power*-*-aix[5-9]*,yes)
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8215 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8216
8217 # Check whether --with-aix-soname was given.
8218 if test "${with_aix_soname+set}" = set; then :
8219   withval=$with_aix_soname; case $withval in
8220     aix|svr4|both)
8221       ;;
8222     *)
8223       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8224       ;;
8225     esac
8226     lt_cv_with_aix_soname=$with_aix_soname
8227 else
8228   if ${lt_cv_with_aix_soname+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   lt_cv_with_aix_soname=aix
8232 fi
8233
8234     with_aix_soname=$lt_cv_with_aix_soname
8235 fi
8236
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8238 $as_echo "$with_aix_soname" >&6; }
8239   if test aix != "$with_aix_soname"; then
8240     # For the AIX way of multilib, we name the shared archive member
8241     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8242     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8243     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8244     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8245     if test 64 = "${OBJECT_MODE-32}"; then
8246       shared_archive_member_spec=shr_64
8247     else
8248       shared_archive_member_spec=shr
8249     fi
8250   fi
8251   ;;
8252 *)
8253   with_aix_soname=aix
8254   ;;
8255 esac
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266 # This can be used to rebuild libtool when needed
8267 LIBTOOL_DEPS=$ltmain
8268
8269 # Always use our own libtool.
8270 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301 test -z "$LN_S" && LN_S="ln -s"
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 if test -n "${ZSH_VERSION+set}"; then
8317    setopt NO_GLOB_SUBST
8318 fi
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8321 $as_echo_n "checking for objdir... " >&6; }
8322 if ${lt_cv_objdir+:} false; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   rm -f .libs 2>/dev/null
8326 mkdir .libs 2>/dev/null
8327 if test -d .libs; then
8328   lt_cv_objdir=.libs
8329 else
8330   # MS-DOS does not allow filenames that begin with a dot.
8331   lt_cv_objdir=_libs
8332 fi
8333 rmdir .libs 2>/dev/null
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8336 $as_echo "$lt_cv_objdir" >&6; }
8337 objdir=$lt_cv_objdir
8338
8339
8340
8341
8342
8343 cat >>confdefs.h <<_ACEOF
8344 #define LT_OBJDIR "$lt_cv_objdir/"
8345 _ACEOF
8346
8347
8348
8349
8350 case $host_os in
8351 aix3*)
8352   # AIX sometimes has problems with the GCC collect2 program.  For some
8353   # reason, if we set the COLLECT_NAMES environment variable, the problems
8354   # vanish in a puff of smoke.
8355   if test set != "${COLLECT_NAMES+set}"; then
8356     COLLECT_NAMES=
8357     export COLLECT_NAMES
8358   fi
8359   ;;
8360 esac
8361
8362 # Global variables:
8363 ofile=libtool
8364 can_build_shared=yes
8365
8366 # All known linkers require a '.a' archive for static linking (except MSVC,
8367 # which needs '.lib').
8368 libext=a
8369
8370 with_gnu_ld=$lt_cv_prog_gnu_ld
8371
8372 old_CC=$CC
8373 old_CFLAGS=$CFLAGS
8374
8375 # Set sane defaults for various variables
8376 test -z "$CC" && CC=cc
8377 test -z "$LTCC" && LTCC=$CC
8378 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8379 test -z "$LD" && LD=ld
8380 test -z "$ac_objext" && ac_objext=o
8381
8382 func_cc_basename $compiler
8383 cc_basename=$func_cc_basename_result
8384
8385
8386 # Only perform the check for file, if the check method requires it
8387 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8388 case $deplibs_check_method in
8389 file_magic*)
8390   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8392 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8393 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8394   $as_echo_n "(cached) " >&6
8395 else
8396   case $MAGIC_CMD in
8397 [\\/*] |  ?:[\\/]*)
8398   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8399   ;;
8400 *)
8401   lt_save_MAGIC_CMD=$MAGIC_CMD
8402   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8403   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8404   for ac_dir in $ac_dummy; do
8405     IFS=$lt_save_ifs
8406     test -z "$ac_dir" && ac_dir=.
8407     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8408       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8409       if test -n "$file_magic_test_file"; then
8410         case $deplibs_check_method in
8411         "file_magic "*)
8412           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8413           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8414           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8415             $EGREP "$file_magic_regex" > /dev/null; then
8416             :
8417           else
8418             cat <<_LT_EOF 1>&2
8419
8420 *** Warning: the command libtool uses to detect shared libraries,
8421 *** $file_magic_cmd, produces output that libtool cannot recognize.
8422 *** The result is that libtool may fail to recognize shared libraries
8423 *** as such.  This will affect the creation of libtool libraries that
8424 *** depend on shared libraries, but programs linked with such libtool
8425 *** libraries will work regardless of this problem.  Nevertheless, you
8426 *** may want to report the problem to your system manager and/or to
8427 *** bug-libtool@gnu.org
8428
8429 _LT_EOF
8430           fi ;;
8431         esac
8432       fi
8433       break
8434     fi
8435   done
8436   IFS=$lt_save_ifs
8437   MAGIC_CMD=$lt_save_MAGIC_CMD
8438   ;;
8439 esac
8440 fi
8441
8442 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8443 if test -n "$MAGIC_CMD"; then
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8445 $as_echo "$MAGIC_CMD" >&6; }
8446 else
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8449 fi
8450
8451
8452
8453
8454
8455 if test -z "$lt_cv_path_MAGIC_CMD"; then
8456   if test -n "$ac_tool_prefix"; then
8457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8458 $as_echo_n "checking for file... " >&6; }
8459 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8460   $as_echo_n "(cached) " >&6
8461 else
8462   case $MAGIC_CMD in
8463 [\\/*] |  ?:[\\/]*)
8464   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8465   ;;
8466 *)
8467   lt_save_MAGIC_CMD=$MAGIC_CMD
8468   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8469   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8470   for ac_dir in $ac_dummy; do
8471     IFS=$lt_save_ifs
8472     test -z "$ac_dir" && ac_dir=.
8473     if test -f "$ac_dir/file"; then
8474       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8475       if test -n "$file_magic_test_file"; then
8476         case $deplibs_check_method in
8477         "file_magic "*)
8478           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8479           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8480           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8481             $EGREP "$file_magic_regex" > /dev/null; then
8482             :
8483           else
8484             cat <<_LT_EOF 1>&2
8485
8486 *** Warning: the command libtool uses to detect shared libraries,
8487 *** $file_magic_cmd, produces output that libtool cannot recognize.
8488 *** The result is that libtool may fail to recognize shared libraries
8489 *** as such.  This will affect the creation of libtool libraries that
8490 *** depend on shared libraries, but programs linked with such libtool
8491 *** libraries will work regardless of this problem.  Nevertheless, you
8492 *** may want to report the problem to your system manager and/or to
8493 *** bug-libtool@gnu.org
8494
8495 _LT_EOF
8496           fi ;;
8497         esac
8498       fi
8499       break
8500     fi
8501   done
8502   IFS=$lt_save_ifs
8503   MAGIC_CMD=$lt_save_MAGIC_CMD
8504   ;;
8505 esac
8506 fi
8507
8508 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8509 if test -n "$MAGIC_CMD"; then
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8511 $as_echo "$MAGIC_CMD" >&6; }
8512 else
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8515 fi
8516
8517
8518   else
8519     MAGIC_CMD=:
8520   fi
8521 fi
8522
8523   fi
8524   ;;
8525 esac
8526
8527 # Use C for the default configuration in the libtool script
8528
8529 lt_save_CC=$CC
8530 ac_ext=c
8531 ac_cpp='$CPP $CPPFLAGS'
8532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8535
8536
8537 # Source file extension for C test sources.
8538 ac_ext=c
8539
8540 # Object file extension for compiled C test sources.
8541 objext=o
8542 objext=$objext
8543
8544 # Code to be used in simple compile tests
8545 lt_simple_compile_test_code="int some_variable = 0;"
8546
8547 # Code to be used in simple link tests
8548 lt_simple_link_test_code='int main(){return(0);}'
8549
8550
8551
8552
8553
8554
8555
8556 # If no C compiler was specified, use CC.
8557 LTCC=${LTCC-"$CC"}
8558
8559 # If no C compiler flags were specified, use CFLAGS.
8560 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8561
8562 # Allow CC to be a program name with arguments.
8563 compiler=$CC
8564
8565 # Save the default compiler, since it gets overwritten when the other
8566 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8567 compiler_DEFAULT=$CC
8568
8569 # save warnings/boilerplate of simple test code
8570 ac_outfile=conftest.$ac_objext
8571 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8572 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8573 _lt_compiler_boilerplate=`cat conftest.err`
8574 $RM conftest*
8575
8576 ac_outfile=conftest.$ac_objext
8577 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8578 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8579 _lt_linker_boilerplate=`cat conftest.err`
8580 $RM -r conftest*
8581
8582
8583 ## CAVEAT EMPTOR:
8584 ## There is no encapsulation within the following macros, do not change
8585 ## the running order or otherwise move them around unless you know exactly
8586 ## what you are doing...
8587 if test -n "$compiler"; then
8588
8589 lt_prog_compiler_no_builtin_flag=
8590
8591 if test yes = "$GCC"; then
8592   case $cc_basename in
8593   nvcc*)
8594     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8595   *)
8596     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8597   esac
8598
8599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8600 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8601 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   lt_cv_prog_compiler_rtti_exceptions=no
8605    ac_outfile=conftest.$ac_objext
8606    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8607    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8608    # Insert the option either (1) after the last *FLAGS variable, or
8609    # (2) before a word containing "conftest.", or (3) at the end.
8610    # Note that $ac_compile itself does not contain backslashes and begins
8611    # with a dollar sign (not a hyphen), so the echo should work correctly.
8612    # The option is referenced via a variable to avoid confusing sed.
8613    lt_compile=`echo "$ac_compile" | $SED \
8614    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616    -e 's:$: $lt_compiler_flag:'`
8617    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8618    (eval "$lt_compile" 2>conftest.err)
8619    ac_status=$?
8620    cat conftest.err >&5
8621    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622    if (exit $ac_status) && test -s "$ac_outfile"; then
8623      # The compiler can only warn and ignore the option if not recognized
8624      # So say no if there are warnings other than the usual output.
8625      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8626      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8627      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8628        lt_cv_prog_compiler_rtti_exceptions=yes
8629      fi
8630    fi
8631    $RM conftest*
8632
8633 fi
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8635 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8636
8637 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8638     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8639 else
8640     :
8641 fi
8642
8643 fi
8644
8645
8646
8647
8648
8649
8650   lt_prog_compiler_wl=
8651 lt_prog_compiler_pic=
8652 lt_prog_compiler_static=
8653
8654
8655   if test yes = "$GCC"; then
8656     lt_prog_compiler_wl='-Wl,'
8657     lt_prog_compiler_static='-static'
8658
8659     case $host_os in
8660       aix*)
8661       # All AIX code is PIC.
8662       if test ia64 = "$host_cpu"; then
8663         # AIX 5 now supports IA64 processor
8664         lt_prog_compiler_static='-Bstatic'
8665       fi
8666       lt_prog_compiler_pic='-fPIC'
8667       ;;
8668
8669     amigaos*)
8670       case $host_cpu in
8671       powerpc)
8672             # see comment about AmigaOS4 .so support
8673             lt_prog_compiler_pic='-fPIC'
8674         ;;
8675       m68k)
8676             # FIXME: we need at least 68020 code to build shared libraries, but
8677             # adding the '-m68020' flag to GCC prevents building anything better,
8678             # like '-m68040'.
8679             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8680         ;;
8681       esac
8682       ;;
8683
8684     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8685       # PIC is the default for these OSes.
8686       ;;
8687
8688     mingw* | cygwin* | pw32* | os2* | cegcc*)
8689       # This hack is so that the source file can tell whether it is being
8690       # built for inclusion in a dll (and should export symbols for example).
8691       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8692       # (--disable-auto-import) libraries
8693       lt_prog_compiler_pic='-DDLL_EXPORT'
8694       case $host_os in
8695       os2*)
8696         lt_prog_compiler_static='$wl-static'
8697         ;;
8698       esac
8699       ;;
8700
8701     darwin* | rhapsody*)
8702       # PIC is the default on this platform
8703       # Common symbols not allowed in MH_DYLIB files
8704       lt_prog_compiler_pic='-fno-common'
8705       ;;
8706
8707     haiku*)
8708       # PIC is the default for Haiku.
8709       # The "-static" flag exists, but is broken.
8710       lt_prog_compiler_static=
8711       ;;
8712
8713     hpux*)
8714       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8715       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8716       # sets the default TLS model and affects inlining.
8717       case $host_cpu in
8718       hppa*64*)
8719         # +Z the default
8720         ;;
8721       *)
8722         lt_prog_compiler_pic='-fPIC'
8723         ;;
8724       esac
8725       ;;
8726
8727     interix[3-9]*)
8728       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8729       # Instead, we relocate shared libraries at runtime.
8730       ;;
8731
8732     msdosdjgpp*)
8733       # Just because we use GCC doesn't mean we suddenly get shared libraries
8734       # on systems that don't support them.
8735       lt_prog_compiler_can_build_shared=no
8736       enable_shared=no
8737       ;;
8738
8739     *nto* | *qnx*)
8740       # QNX uses GNU C++, but need to define -shared option too, otherwise
8741       # it will coredump.
8742       lt_prog_compiler_pic='-fPIC -shared'
8743       ;;
8744
8745     sysv4*MP*)
8746       if test -d /usr/nec; then
8747         lt_prog_compiler_pic=-Kconform_pic
8748       fi
8749       ;;
8750
8751     *)
8752       lt_prog_compiler_pic='-fPIC'
8753       ;;
8754     esac
8755
8756     case $cc_basename in
8757     nvcc*) # Cuda Compiler Driver 2.2
8758       lt_prog_compiler_wl='-Xlinker '
8759       if test -n "$lt_prog_compiler_pic"; then
8760         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8761       fi
8762       ;;
8763     esac
8764   else
8765     # PORTME Check for flag to pass linker flags through the system compiler.
8766     case $host_os in
8767     aix*)
8768       lt_prog_compiler_wl='-Wl,'
8769       if test ia64 = "$host_cpu"; then
8770         # AIX 5 now supports IA64 processor
8771         lt_prog_compiler_static='-Bstatic'
8772       else
8773         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8774       fi
8775       ;;
8776
8777     darwin* | rhapsody*)
8778       # PIC is the default on this platform
8779       # Common symbols not allowed in MH_DYLIB files
8780       lt_prog_compiler_pic='-fno-common'
8781       case $cc_basename in
8782       nagfor*)
8783         # NAG Fortran compiler
8784         lt_prog_compiler_wl='-Wl,-Wl,,'
8785         lt_prog_compiler_pic='-PIC'
8786         lt_prog_compiler_static='-Bstatic'
8787         ;;
8788       esac
8789       ;;
8790
8791     mingw* | cygwin* | pw32* | os2* | cegcc*)
8792       # This hack is so that the source file can tell whether it is being
8793       # built for inclusion in a dll (and should export symbols for example).
8794       lt_prog_compiler_pic='-DDLL_EXPORT'
8795       case $host_os in
8796       os2*)
8797         lt_prog_compiler_static='$wl-static'
8798         ;;
8799       esac
8800       ;;
8801
8802     hpux9* | hpux10* | hpux11*)
8803       lt_prog_compiler_wl='-Wl,'
8804       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8805       # not for PA HP-UX.
8806       case $host_cpu in
8807       hppa*64*|ia64*)
8808         # +Z the default
8809         ;;
8810       *)
8811         lt_prog_compiler_pic='+Z'
8812         ;;
8813       esac
8814       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8815       lt_prog_compiler_static='$wl-a ${wl}archive'
8816       ;;
8817
8818     irix5* | irix6* | nonstopux*)
8819       lt_prog_compiler_wl='-Wl,'
8820       # PIC (with -KPIC) is the default.
8821       lt_prog_compiler_static='-non_shared'
8822       ;;
8823
8824     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8825       case $cc_basename in
8826       # old Intel for x86_64, which still supported -KPIC.
8827       ecc*)
8828         lt_prog_compiler_wl='-Wl,'
8829         lt_prog_compiler_pic='-KPIC'
8830         lt_prog_compiler_static='-static'
8831         ;;
8832       # icc used to be incompatible with GCC.
8833       # ICC 10 doesn't accept -KPIC any more.
8834       icc* | ifort*)
8835         lt_prog_compiler_wl='-Wl,'
8836         lt_prog_compiler_pic='-fPIC'
8837         lt_prog_compiler_static='-static'
8838         ;;
8839       # Lahey Fortran 8.1.
8840       lf95*)
8841         lt_prog_compiler_wl='-Wl,'
8842         lt_prog_compiler_pic='--shared'
8843         lt_prog_compiler_static='--static'
8844         ;;
8845       nagfor*)
8846         # NAG Fortran compiler
8847         lt_prog_compiler_wl='-Wl,-Wl,,'
8848         lt_prog_compiler_pic='-PIC'
8849         lt_prog_compiler_static='-Bstatic'
8850         ;;
8851       tcc*)
8852         # Fabrice Bellard et al's Tiny C Compiler
8853         lt_prog_compiler_wl='-Wl,'
8854         lt_prog_compiler_pic='-fPIC'
8855         lt_prog_compiler_static='-static'
8856         ;;
8857       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8858         # Portland Group compilers (*not* the Pentium gcc compiler,
8859         # which looks to be a dead project)
8860         lt_prog_compiler_wl='-Wl,'
8861         lt_prog_compiler_pic='-fpic'
8862         lt_prog_compiler_static='-Bstatic'
8863         ;;
8864       ccc*)
8865         lt_prog_compiler_wl='-Wl,'
8866         # All Alpha code is PIC.
8867         lt_prog_compiler_static='-non_shared'
8868         ;;
8869       xl* | bgxl* | bgf* | mpixl*)
8870         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8871         lt_prog_compiler_wl='-Wl,'
8872         lt_prog_compiler_pic='-qpic'
8873         lt_prog_compiler_static='-qstaticlink'
8874         ;;
8875       *)
8876         case `$CC -V 2>&1 | sed 5q` in
8877         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8878           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8879           lt_prog_compiler_pic='-KPIC'
8880           lt_prog_compiler_static='-Bstatic'
8881           lt_prog_compiler_wl=''
8882           ;;
8883         *Sun\ F* | *Sun*Fortran*)
8884           lt_prog_compiler_pic='-KPIC'
8885           lt_prog_compiler_static='-Bstatic'
8886           lt_prog_compiler_wl='-Qoption ld '
8887           ;;
8888         *Sun\ C*)
8889           # Sun C 5.9
8890           lt_prog_compiler_pic='-KPIC'
8891           lt_prog_compiler_static='-Bstatic'
8892           lt_prog_compiler_wl='-Wl,'
8893           ;;
8894         *Intel*\ [CF]*Compiler*)
8895           lt_prog_compiler_wl='-Wl,'
8896           lt_prog_compiler_pic='-fPIC'
8897           lt_prog_compiler_static='-static'
8898           ;;
8899         *Portland\ Group*)
8900           lt_prog_compiler_wl='-Wl,'
8901           lt_prog_compiler_pic='-fpic'
8902           lt_prog_compiler_static='-Bstatic'
8903           ;;
8904         esac
8905         ;;
8906       esac
8907       ;;
8908
8909     newsos6)
8910       lt_prog_compiler_pic='-KPIC'
8911       lt_prog_compiler_static='-Bstatic'
8912       ;;
8913
8914     *nto* | *qnx*)
8915       # QNX uses GNU C++, but need to define -shared option too, otherwise
8916       # it will coredump.
8917       lt_prog_compiler_pic='-fPIC -shared'
8918       ;;
8919
8920     osf3* | osf4* | osf5*)
8921       lt_prog_compiler_wl='-Wl,'
8922       # All OSF/1 code is PIC.
8923       lt_prog_compiler_static='-non_shared'
8924       ;;
8925
8926     rdos*)
8927       lt_prog_compiler_static='-non_shared'
8928       ;;
8929
8930     solaris*)
8931       lt_prog_compiler_pic='-KPIC'
8932       lt_prog_compiler_static='-Bstatic'
8933       case $cc_basename in
8934       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8935         lt_prog_compiler_wl='-Qoption ld ';;
8936       *)
8937         lt_prog_compiler_wl='-Wl,';;
8938       esac
8939       ;;
8940
8941     sunos4*)
8942       lt_prog_compiler_wl='-Qoption ld '
8943       lt_prog_compiler_pic='-PIC'
8944       lt_prog_compiler_static='-Bstatic'
8945       ;;
8946
8947     sysv4 | sysv4.2uw2* | sysv4.3*)
8948       lt_prog_compiler_wl='-Wl,'
8949       lt_prog_compiler_pic='-KPIC'
8950       lt_prog_compiler_static='-Bstatic'
8951       ;;
8952
8953     sysv4*MP*)
8954       if test -d /usr/nec; then
8955         lt_prog_compiler_pic='-Kconform_pic'
8956         lt_prog_compiler_static='-Bstatic'
8957       fi
8958       ;;
8959
8960     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8961       lt_prog_compiler_wl='-Wl,'
8962       lt_prog_compiler_pic='-KPIC'
8963       lt_prog_compiler_static='-Bstatic'
8964       ;;
8965
8966     unicos*)
8967       lt_prog_compiler_wl='-Wl,'
8968       lt_prog_compiler_can_build_shared=no
8969       ;;
8970
8971     uts4*)
8972       lt_prog_compiler_pic='-pic'
8973       lt_prog_compiler_static='-Bstatic'
8974       ;;
8975
8976     *)
8977       lt_prog_compiler_can_build_shared=no
8978       ;;
8979     esac
8980   fi
8981
8982 case $host_os in
8983   # For platforms that do not support PIC, -DPIC is meaningless:
8984   *djgpp*)
8985     lt_prog_compiler_pic=
8986     ;;
8987   *)
8988     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8989     ;;
8990 esac
8991
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8993 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8994 if ${lt_cv_prog_compiler_pic+:} false; then :
8995   $as_echo_n "(cached) " >&6
8996 else
8997   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9000 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9001 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9002
9003 #
9004 # Check to make sure the PIC flag actually works.
9005 #
9006 if test -n "$lt_prog_compiler_pic"; then
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9008 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9009 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9010   $as_echo_n "(cached) " >&6
9011 else
9012   lt_cv_prog_compiler_pic_works=no
9013    ac_outfile=conftest.$ac_objext
9014    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9016    # Insert the option either (1) after the last *FLAGS variable, or
9017    # (2) before a word containing "conftest.", or (3) at the end.
9018    # Note that $ac_compile itself does not contain backslashes and begins
9019    # with a dollar sign (not a hyphen), so the echo should work correctly.
9020    # The option is referenced via a variable to avoid confusing sed.
9021    lt_compile=`echo "$ac_compile" | $SED \
9022    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024    -e 's:$: $lt_compiler_flag:'`
9025    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9026    (eval "$lt_compile" 2>conftest.err)
9027    ac_status=$?
9028    cat conftest.err >&5
9029    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030    if (exit $ac_status) && test -s "$ac_outfile"; then
9031      # The compiler can only warn and ignore the option if not recognized
9032      # So say no if there are warnings other than the usual output.
9033      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9034      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9036        lt_cv_prog_compiler_pic_works=yes
9037      fi
9038    fi
9039    $RM conftest*
9040
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9043 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9044
9045 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9046     case $lt_prog_compiler_pic in
9047      "" | " "*) ;;
9048      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9049      esac
9050 else
9051     lt_prog_compiler_pic=
9052      lt_prog_compiler_can_build_shared=no
9053 fi
9054
9055 fi
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067 #
9068 # Check to make sure the static flag actually works.
9069 #
9070 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9072 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9073 if ${lt_cv_prog_compiler_static_works+:} false; then :
9074   $as_echo_n "(cached) " >&6
9075 else
9076   lt_cv_prog_compiler_static_works=no
9077    save_LDFLAGS=$LDFLAGS
9078    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9079    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9080    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9081      # The linker can only warn and ignore the option if not recognized
9082      # So say no if there are warnings
9083      if test -s conftest.err; then
9084        # Append any errors to the config.log.
9085        cat conftest.err 1>&5
9086        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9087        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088        if diff conftest.exp conftest.er2 >/dev/null; then
9089          lt_cv_prog_compiler_static_works=yes
9090        fi
9091      else
9092        lt_cv_prog_compiler_static_works=yes
9093      fi
9094    fi
9095    $RM -r conftest*
9096    LDFLAGS=$save_LDFLAGS
9097
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9100 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9101
9102 if test yes = "$lt_cv_prog_compiler_static_works"; then
9103     :
9104 else
9105     lt_prog_compiler_static=
9106 fi
9107
9108
9109
9110
9111
9112
9113
9114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9116 if ${lt_cv_prog_compiler_c_o+:} false; then :
9117   $as_echo_n "(cached) " >&6
9118 else
9119   lt_cv_prog_compiler_c_o=no
9120    $RM -r conftest 2>/dev/null
9121    mkdir conftest
9122    cd conftest
9123    mkdir out
9124    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9125
9126    lt_compiler_flag="-o out/conftest2.$ac_objext"
9127    # Insert the option either (1) after the last *FLAGS variable, or
9128    # (2) before a word containing "conftest.", or (3) at the end.
9129    # Note that $ac_compile itself does not contain backslashes and begins
9130    # with a dollar sign (not a hyphen), so the echo should work correctly.
9131    lt_compile=`echo "$ac_compile" | $SED \
9132    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9133    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9134    -e 's:$: $lt_compiler_flag:'`
9135    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9136    (eval "$lt_compile" 2>out/conftest.err)
9137    ac_status=$?
9138    cat out/conftest.err >&5
9139    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9141    then
9142      # The compiler can only warn and ignore the option if not recognized
9143      # So say no if there are warnings
9144      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9145      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9146      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9147        lt_cv_prog_compiler_c_o=yes
9148      fi
9149    fi
9150    chmod u+w . 2>&5
9151    $RM conftest*
9152    # SGI C++ compiler will create directory out/ii_files/ for
9153    # template instantiation
9154    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9155    $RM out/* && rmdir out
9156    cd ..
9157    $RM -r conftest
9158    $RM conftest*
9159
9160 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9162 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9163
9164
9165
9166
9167
9168
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9170 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9171 if ${lt_cv_prog_compiler_c_o+:} false; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   lt_cv_prog_compiler_c_o=no
9175    $RM -r conftest 2>/dev/null
9176    mkdir conftest
9177    cd conftest
9178    mkdir out
9179    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9180
9181    lt_compiler_flag="-o out/conftest2.$ac_objext"
9182    # Insert the option either (1) after the last *FLAGS variable, or
9183    # (2) before a word containing "conftest.", or (3) at the end.
9184    # Note that $ac_compile itself does not contain backslashes and begins
9185    # with a dollar sign (not a hyphen), so the echo should work correctly.
9186    lt_compile=`echo "$ac_compile" | $SED \
9187    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9188    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9189    -e 's:$: $lt_compiler_flag:'`
9190    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9191    (eval "$lt_compile" 2>out/conftest.err)
9192    ac_status=$?
9193    cat out/conftest.err >&5
9194    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9196    then
9197      # The compiler can only warn and ignore the option if not recognized
9198      # So say no if there are warnings
9199      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9200      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9201      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9202        lt_cv_prog_compiler_c_o=yes
9203      fi
9204    fi
9205    chmod u+w . 2>&5
9206    $RM conftest*
9207    # SGI C++ compiler will create directory out/ii_files/ for
9208    # template instantiation
9209    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9210    $RM out/* && rmdir out
9211    cd ..
9212    $RM -r conftest
9213    $RM conftest*
9214
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9217 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9218
9219
9220
9221
9222 hard_links=nottested
9223 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9224   # do not overwrite the value of need_locks provided by the user
9225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9226 $as_echo_n "checking if we can lock with hard links... " >&6; }
9227   hard_links=yes
9228   $RM conftest*
9229   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9230   touch conftest.a
9231   ln conftest.a conftest.b 2>&5 || hard_links=no
9232   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9234 $as_echo "$hard_links" >&6; }
9235   if test no = "$hard_links"; then
9236     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9237 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9238     need_locks=warn
9239   fi
9240 else
9241   need_locks=no
9242 fi
9243
9244
9245
9246
9247
9248
9249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9250 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9251
9252   runpath_var=
9253   allow_undefined_flag=
9254   always_export_symbols=no
9255   archive_cmds=
9256   archive_expsym_cmds=
9257   compiler_needs_object=no
9258   enable_shared_with_static_runtimes=no
9259   export_dynamic_flag_spec=
9260   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9261   hardcode_automatic=no
9262   hardcode_direct=no
9263   hardcode_direct_absolute=no
9264   hardcode_libdir_flag_spec=
9265   hardcode_libdir_separator=
9266   hardcode_minus_L=no
9267   hardcode_shlibpath_var=unsupported
9268   inherit_rpath=no
9269   link_all_deplibs=unknown
9270   module_cmds=
9271   module_expsym_cmds=
9272   old_archive_from_new_cmds=
9273   old_archive_from_expsyms_cmds=
9274   thread_safe_flag_spec=
9275   whole_archive_flag_spec=
9276   # include_expsyms should be a list of space-separated symbols to be *always*
9277   # included in the symbol list
9278   include_expsyms=
9279   # exclude_expsyms can be an extended regexp of symbols to exclude
9280   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9281   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9282   # as well as any symbol that contains 'd'.
9283   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9284   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9285   # platforms (ab)use it in PIC code, but their linkers get confused if
9286   # the symbol is explicitly referenced.  Since portable code cannot
9287   # rely on this symbol name, it's probably fine to never include it in
9288   # preloaded symbol tables.
9289   # Exclude shared library initialization/finalization symbols.
9290   extract_expsyms_cmds=
9291
9292   case $host_os in
9293   cygwin* | mingw* | pw32* | cegcc*)
9294     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9295     # When not using gcc, we currently assume that we are using
9296     # Microsoft Visual C++.
9297     if test yes != "$GCC"; then
9298       with_gnu_ld=no
9299     fi
9300     ;;
9301   interix*)
9302     # we just hope/assume this is gcc and not c89 (= MSVC++)
9303     with_gnu_ld=yes
9304     ;;
9305   openbsd* | bitrig*)
9306     with_gnu_ld=no
9307     ;;
9308   esac
9309
9310   ld_shlibs=yes
9311
9312   # On some targets, GNU ld is compatible enough with the native linker
9313   # that we're better off using the native interface for both.
9314   lt_use_gnu_ld_interface=no
9315   if test yes = "$with_gnu_ld"; then
9316     case $host_os in
9317       aix*)
9318         # The AIX port of GNU ld has always aspired to compatibility
9319         # with the native linker.  However, as the warning in the GNU ld
9320         # block says, versions before 2.19.5* couldn't really create working
9321         # shared libraries, regardless of the interface used.
9322         case `$LD -v 2>&1` in
9323           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9324           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9325           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9326           *)
9327             lt_use_gnu_ld_interface=yes
9328             ;;
9329         esac
9330         ;;
9331       *)
9332         lt_use_gnu_ld_interface=yes
9333         ;;
9334     esac
9335   fi
9336
9337   if test yes = "$lt_use_gnu_ld_interface"; then
9338     # If archive_cmds runs LD, not CC, wlarc should be empty
9339     wlarc='$wl'
9340
9341     # Set some defaults for GNU ld with shared library support. These
9342     # are reset later if shared libraries are not supported. Putting them
9343     # here allows them to be overridden if necessary.
9344     runpath_var=LD_RUN_PATH
9345     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9346     export_dynamic_flag_spec='$wl--export-dynamic'
9347     # ancient GNU ld didn't support --whole-archive et. al.
9348     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9349       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9350     else
9351       whole_archive_flag_spec=
9352     fi
9353     supports_anon_versioning=no
9354     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9355       *GNU\ gold*) supports_anon_versioning=yes ;;
9356       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9357       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9358       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9359       *\ 2.11.*) ;; # other 2.11 versions
9360       *) supports_anon_versioning=yes ;;
9361     esac
9362
9363     # See if GNU ld supports shared libraries.
9364     case $host_os in
9365     aix[3-9]*)
9366       # On AIX/PPC, the GNU linker is very broken
9367       if test ia64 != "$host_cpu"; then
9368         ld_shlibs=no
9369         cat <<_LT_EOF 1>&2
9370
9371 *** Warning: the GNU linker, at least up to release 2.19, is reported
9372 *** to be unable to reliably create shared libraries on AIX.
9373 *** Therefore, libtool is disabling shared libraries support.  If you
9374 *** really care for shared libraries, you may want to install binutils
9375 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9376 *** You will then need to restart the configuration process.
9377
9378 _LT_EOF
9379       fi
9380       ;;
9381
9382     amigaos*)
9383       case $host_cpu in
9384       powerpc)
9385             # see comment about AmigaOS4 .so support
9386             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9387             archive_expsym_cmds=''
9388         ;;
9389       m68k)
9390             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)'
9391             hardcode_libdir_flag_spec='-L$libdir'
9392             hardcode_minus_L=yes
9393         ;;
9394       esac
9395       ;;
9396
9397     beos*)
9398       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9399         allow_undefined_flag=unsupported
9400         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9401         # support --undefined.  This deserves some investigation.  FIXME
9402         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9403       else
9404         ld_shlibs=no
9405       fi
9406       ;;
9407
9408     cygwin* | mingw* | pw32* | cegcc*)
9409       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9410       # as there is no search path for DLLs.
9411       hardcode_libdir_flag_spec='-L$libdir'
9412       export_dynamic_flag_spec='$wl--export-all-symbols'
9413       allow_undefined_flag=unsupported
9414       always_export_symbols=no
9415       enable_shared_with_static_runtimes=yes
9416       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'
9417       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9418
9419       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9420         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9421         # If the export-symbols file already is a .def file, use it as
9422         # is; otherwise, prepend EXPORTS...
9423         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9424           cp $export_symbols $output_objdir/$soname.def;
9425         else
9426           echo EXPORTS > $output_objdir/$soname.def;
9427           cat $export_symbols >> $output_objdir/$soname.def;
9428         fi~
9429         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9430       else
9431         ld_shlibs=no
9432       fi
9433       ;;
9434
9435     haiku*)
9436       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9437       link_all_deplibs=yes
9438       ;;
9439
9440     os2*)
9441       hardcode_libdir_flag_spec='-L$libdir'
9442       hardcode_minus_L=yes
9443       allow_undefined_flag=unsupported
9444       shrext_cmds=.dll
9445       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9446         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9447         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9448         $ECHO EXPORTS >> $output_objdir/$libname.def~
9449         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9450         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9451         emximp -o $lib $output_objdir/$libname.def'
9452       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9453         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9454         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9455         $ECHO EXPORTS >> $output_objdir/$libname.def~
9456         prefix_cmds="$SED"~
9457         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9458           prefix_cmds="$prefix_cmds -e 1d";
9459         fi~
9460         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9461         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9462         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9463         emximp -o $lib $output_objdir/$libname.def'
9464       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9465       enable_shared_with_static_runtimes=yes
9466       ;;
9467
9468     interix[3-9]*)
9469       hardcode_direct=no
9470       hardcode_shlibpath_var=no
9471       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9472       export_dynamic_flag_spec='$wl-E'
9473       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9474       # Instead, shared libraries are loaded at an image base (0x10000000 by
9475       # default) and relocated if they conflict, which is a slow very memory
9476       # consuming and fragmenting process.  To avoid this, we pick a random,
9477       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9478       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9479       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9480       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'
9481       ;;
9482
9483     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9484       tmp_diet=no
9485       if test linux-dietlibc = "$host_os"; then
9486         case $cc_basename in
9487           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9488         esac
9489       fi
9490       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9491          && test no = "$tmp_diet"
9492       then
9493         tmp_addflag=' $pic_flag'
9494         tmp_sharedflag='-shared'
9495         case $cc_basename,$host_cpu in
9496         pgcc*)                          # Portland Group C compiler
9497           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'
9498           tmp_addflag=' $pic_flag'
9499           ;;
9500         pgf77* | pgf90* | pgf95* | pgfortran*)
9501                                         # Portland Group f77 and f90 compilers
9502           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'
9503           tmp_addflag=' $pic_flag -Mnomain' ;;
9504         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9505           tmp_addflag=' -i_dynamic' ;;
9506         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9507           tmp_addflag=' -i_dynamic -nofor_main' ;;
9508         ifc* | ifort*)                  # Intel Fortran compiler
9509           tmp_addflag=' -nofor_main' ;;
9510         lf95*)                          # Lahey Fortran 8.1
9511           whole_archive_flag_spec=
9512           tmp_sharedflag='--shared' ;;
9513         nagfor*)                        # NAGFOR 5.3
9514           tmp_sharedflag='-Wl,-shared' ;;
9515         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9516           tmp_sharedflag='-qmkshrobj'
9517           tmp_addflag= ;;
9518         nvcc*)  # Cuda Compiler Driver 2.2
9519           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'
9520           compiler_needs_object=yes
9521           ;;
9522         esac
9523         case `$CC -V 2>&1 | sed 5q` in
9524         *Sun\ C*)                       # Sun C 5.9
9525           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'
9526           compiler_needs_object=yes
9527           tmp_sharedflag='-G' ;;
9528         *Sun\ F*)                       # Sun Fortran 8.3
9529           tmp_sharedflag='-G' ;;
9530         esac
9531         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9532
9533         if test yes = "$supports_anon_versioning"; then
9534           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9535             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9536             echo "local: *; };" >> $output_objdir/$libname.ver~
9537             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9538         fi
9539
9540         case $cc_basename in
9541         tcc*)
9542           export_dynamic_flag_spec='-rdynamic'
9543           ;;
9544         xlf* | bgf* | bgxlf* | mpixlf*)
9545           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9546           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9547           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9548           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9549           if test yes = "$supports_anon_versioning"; then
9550             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9551               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9552               echo "local: *; };" >> $output_objdir/$libname.ver~
9553               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9554           fi
9555           ;;
9556         esac
9557       else
9558         ld_shlibs=no
9559       fi
9560       ;;
9561
9562     netbsd*)
9563       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9564         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9565         wlarc=
9566       else
9567         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9568         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9569       fi
9570       ;;
9571
9572     solaris*)
9573       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9574         ld_shlibs=no
9575         cat <<_LT_EOF 1>&2
9576
9577 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9578 *** create shared libraries on Solaris systems.  Therefore, libtool
9579 *** is disabling shared libraries support.  We urge you to upgrade GNU
9580 *** binutils to release 2.9.1 or newer.  Another option is to modify
9581 *** your PATH or compiler configuration so that the native linker is
9582 *** used, and then restart.
9583
9584 _LT_EOF
9585       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9586         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9587         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9588       else
9589         ld_shlibs=no
9590       fi
9591       ;;
9592
9593     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9594       case `$LD -v 2>&1` in
9595         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9596         ld_shlibs=no
9597         cat <<_LT_EOF 1>&2
9598
9599 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9600 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9601 *** is disabling shared libraries support.  We urge you to upgrade GNU
9602 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9603 *** your PATH or compiler configuration so that the native linker is
9604 *** used, and then restart.
9605
9606 _LT_EOF
9607         ;;
9608         *)
9609           # For security reasons, it is highly recommended that you always
9610           # use absolute paths for naming shared libraries, and exclude the
9611           # DT_RUNPATH tag from executables and libraries.  But doing so
9612           # requires that you compile everything twice, which is a pain.
9613           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9614             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9615             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9616             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9617           else
9618             ld_shlibs=no
9619           fi
9620         ;;
9621       esac
9622       ;;
9623
9624     sunos4*)
9625       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9626       wlarc=
9627       hardcode_direct=yes
9628       hardcode_shlibpath_var=no
9629       ;;
9630
9631     *)
9632       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9633         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9634         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9635       else
9636         ld_shlibs=no
9637       fi
9638       ;;
9639     esac
9640
9641     if test no = "$ld_shlibs"; then
9642       runpath_var=
9643       hardcode_libdir_flag_spec=
9644       export_dynamic_flag_spec=
9645       whole_archive_flag_spec=
9646     fi
9647   else
9648     # PORTME fill in a description of your system's linker (not GNU ld)
9649     case $host_os in
9650     aix3*)
9651       allow_undefined_flag=unsupported
9652       always_export_symbols=yes
9653       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'
9654       # Note: this linker hardcodes the directories in LIBPATH if there
9655       # are no directories specified by -L.
9656       hardcode_minus_L=yes
9657       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9658         # Neither direct hardcoding nor static linking is supported with a
9659         # broken collect2.
9660         hardcode_direct=unsupported
9661       fi
9662       ;;
9663
9664     aix[4-9]*)
9665       if test ia64 = "$host_cpu"; then
9666         # On IA64, the linker does run time linking by default, so we don't
9667         # have to do anything special.
9668         aix_use_runtimelinking=no
9669         exp_sym_flag='-Bexport'
9670         no_entry_flag=
9671       else
9672         # If we're using GNU nm, then we don't want the "-C" option.
9673         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9674         # Without the "-l" option, or with the "-B" option, AIX nm treats
9675         # weak defined symbols like other global defined symbols, whereas
9676         # GNU nm marks them as "W".
9677         # While the 'weak' keyword is ignored in the Export File, we need
9678         # it in the Import File for the 'aix-soname' feature, so we have
9679         # to replace the "-B" option with "-P" for AIX nm.
9680         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9681           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'
9682         else
9683           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9684         fi
9685         aix_use_runtimelinking=no
9686
9687         # Test if we are trying to use run time linking or normal
9688         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9689         # have runtime linking enabled, and use it for executables.
9690         # For shared libraries, we enable/disable runtime linking
9691         # depending on the kind of the shared library created -
9692         # when "with_aix_soname,aix_use_runtimelinking" is:
9693         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9694         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9695         #            lib.a           static archive
9696         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9697         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9698         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9699         #            lib.a(lib.so.V) shared, rtl:no
9700         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9701         #            lib.a           static archive
9702         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9703           for ld_flag in $LDFLAGS; do
9704           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9705             aix_use_runtimelinking=yes
9706             break
9707           fi
9708           done
9709           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9710             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9711             # so we don't have lib.a shared libs to link our executables.
9712             # We have to force runtime linking in this case.
9713             aix_use_runtimelinking=yes
9714             LDFLAGS="$LDFLAGS -Wl,-brtl"
9715           fi
9716           ;;
9717         esac
9718
9719         exp_sym_flag='-bexport'
9720         no_entry_flag='-bnoentry'
9721       fi
9722
9723       # When large executables or shared objects are built, AIX ld can
9724       # have problems creating the table of contents.  If linking a library
9725       # or program results in "error TOC overflow" add -mminimal-toc to
9726       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9727       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9728
9729       archive_cmds=''
9730       hardcode_direct=yes
9731       hardcode_direct_absolute=yes
9732       hardcode_libdir_separator=':'
9733       link_all_deplibs=yes
9734       file_list_spec='$wl-f,'
9735       case $with_aix_soname,$aix_use_runtimelinking in
9736       aix,*) ;; # traditional, no import file
9737       svr4,* | *,yes) # use import file
9738         # The Import File defines what to hardcode.
9739         hardcode_direct=no
9740         hardcode_direct_absolute=no
9741         ;;
9742       esac
9743
9744       if test yes = "$GCC"; then
9745         case $host_os in aix4.[012]|aix4.[012].*)
9746         # We only want to do this on AIX 4.2 and lower, the check
9747         # below for broken collect2 doesn't work under 4.3+
9748           collect2name=`$CC -print-prog-name=collect2`
9749           if test -f "$collect2name" &&
9750            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9751           then
9752           # We have reworked collect2
9753           :
9754           else
9755           # We have old collect2
9756           hardcode_direct=unsupported
9757           # It fails to find uninstalled libraries when the uninstalled
9758           # path is not listed in the libpath.  Setting hardcode_minus_L
9759           # to unsupported forces relinking
9760           hardcode_minus_L=yes
9761           hardcode_libdir_flag_spec='-L$libdir'
9762           hardcode_libdir_separator=
9763           fi
9764           ;;
9765         esac
9766         shared_flag='-shared'
9767         if test yes = "$aix_use_runtimelinking"; then
9768           shared_flag="$shared_flag "'$wl-G'
9769         fi
9770         # Need to ensure runtime linking is disabled for the traditional
9771         # shared library, or the linker may eventually find shared libraries
9772         # /with/ Import File - we do not want to mix them.
9773         shared_flag_aix='-shared'
9774         shared_flag_svr4='-shared $wl-G'
9775       else
9776         # not using gcc
9777         if test ia64 = "$host_cpu"; then
9778         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9779         # chokes on -Wl,-G. The following line is correct:
9780           shared_flag='-G'
9781         else
9782           if test yes = "$aix_use_runtimelinking"; then
9783             shared_flag='$wl-G'
9784           else
9785             shared_flag='$wl-bM:SRE'
9786           fi
9787           shared_flag_aix='$wl-bM:SRE'
9788           shared_flag_svr4='$wl-G'
9789         fi
9790       fi
9791
9792       export_dynamic_flag_spec='$wl-bexpall'
9793       # It seems that -bexpall does not export symbols beginning with
9794       # underscore (_), so it is better to generate a list of symbols to export.
9795       always_export_symbols=yes
9796       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9797         # Warning - without using the other runtime loading flags (-brtl),
9798         # -berok will link without error, but may produce a broken library.
9799         allow_undefined_flag='-berok'
9800         # Determine the default libpath from the value encoded in an
9801         # empty executable.
9802         if test set = "${lt_cv_aix_libpath+set}"; then
9803   aix_libpath=$lt_cv_aix_libpath
9804 else
9805   if ${lt_cv_aix_libpath_+:} false; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h.  */
9810
9811 int
9812 main ()
9813 {
9814
9815   ;
9816   return 0;
9817 }
9818 _ACEOF
9819 if ac_fn_c_try_link "$LINENO"; then :
9820
9821   lt_aix_libpath_sed='
9822       /Import File Strings/,/^$/ {
9823           /^0/ {
9824               s/^0  *\([^ ]*\) *$/\1/
9825               p
9826           }
9827       }'
9828   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9829   # Check for a 64-bit object if we didn't find anything.
9830   if test -z "$lt_cv_aix_libpath_"; then
9831     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9832   fi
9833 fi
9834 rm -f core conftest.err conftest.$ac_objext \
9835     conftest$ac_exeext conftest.$ac_ext
9836   if test -z "$lt_cv_aix_libpath_"; then
9837     lt_cv_aix_libpath_=/usr/lib:/lib
9838   fi
9839
9840 fi
9841
9842   aix_libpath=$lt_cv_aix_libpath_
9843 fi
9844
9845         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9846         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
9847       else
9848         if test ia64 = "$host_cpu"; then
9849           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9850           allow_undefined_flag="-z nodefs"
9851           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"
9852         else
9853          # Determine the default libpath from the value encoded in an
9854          # empty executable.
9855          if test set = "${lt_cv_aix_libpath+set}"; then
9856   aix_libpath=$lt_cv_aix_libpath
9857 else
9858   if ${lt_cv_aix_libpath_+:} false; then :
9859   $as_echo_n "(cached) " >&6
9860 else
9861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h.  */
9863
9864 int
9865 main ()
9866 {
9867
9868   ;
9869   return 0;
9870 }
9871 _ACEOF
9872 if ac_fn_c_try_link "$LINENO"; then :
9873
9874   lt_aix_libpath_sed='
9875       /Import File Strings/,/^$/ {
9876           /^0/ {
9877               s/^0  *\([^ ]*\) *$/\1/
9878               p
9879           }
9880       }'
9881   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9882   # Check for a 64-bit object if we didn't find anything.
9883   if test -z "$lt_cv_aix_libpath_"; then
9884     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9885   fi
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext \
9888     conftest$ac_exeext conftest.$ac_ext
9889   if test -z "$lt_cv_aix_libpath_"; then
9890     lt_cv_aix_libpath_=/usr/lib:/lib
9891   fi
9892
9893 fi
9894
9895   aix_libpath=$lt_cv_aix_libpath_
9896 fi
9897
9898          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9899           # Warning - without using the other run time loading flags,
9900           # -berok will link without error, but may produce a broken library.
9901           no_undefined_flag=' $wl-bernotok'
9902           allow_undefined_flag=' $wl-berok'
9903           if test yes = "$with_gnu_ld"; then
9904             # We only use this code for GNU lds that support --whole-archive.
9905             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9906           else
9907             # Exported symbols can be pulled into shared objects from archives
9908             whole_archive_flag_spec='$convenience'
9909           fi
9910           archive_cmds_need_lc=yes
9911           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9912           # -brtl affects multiple linker settings, -berok does not and is overridden later
9913           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9914           if test svr4 != "$with_aix_soname"; then
9915             # This is similar to how AIX traditionally builds its shared libraries.
9916             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'
9917           fi
9918           if test aix != "$with_aix_soname"; then
9919             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'
9920           else
9921             # used by -dlpreopen to get the symbols
9922             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9923           fi
9924           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9925         fi
9926       fi
9927       ;;
9928
9929     amigaos*)
9930       case $host_cpu in
9931       powerpc)
9932             # see comment about AmigaOS4 .so support
9933             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9934             archive_expsym_cmds=''
9935         ;;
9936       m68k)
9937             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)'
9938             hardcode_libdir_flag_spec='-L$libdir'
9939             hardcode_minus_L=yes
9940         ;;
9941       esac
9942       ;;
9943
9944     bsdi[45]*)
9945       export_dynamic_flag_spec=-rdynamic
9946       ;;
9947
9948     cygwin* | mingw* | pw32* | cegcc*)
9949       # When not using gcc, we currently assume that we are using
9950       # Microsoft Visual C++.
9951       # hardcode_libdir_flag_spec is actually meaningless, as there is
9952       # no search path for DLLs.
9953       case $cc_basename in
9954       cl*)
9955         # Native MSVC
9956         hardcode_libdir_flag_spec=' '
9957         allow_undefined_flag=unsupported
9958         always_export_symbols=yes
9959         file_list_spec='@'
9960         # Tell ltmain to make .lib files, not .a files.
9961         libext=lib
9962         # Tell ltmain to make .dll files, not .so files.
9963         shrext_cmds=.dll
9964         # FIXME: Setting linknames here is a bad hack.
9965         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9966         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9967             cp "$export_symbols" "$output_objdir/$soname.def";
9968             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9969           else
9970             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9971           fi~
9972           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9973           linknames='
9974         # The linker will not automatically build a static lib if we build a DLL.
9975         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9976         enable_shared_with_static_runtimes=yes
9977         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9978         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9979         # Don't use ranlib
9980         old_postinstall_cmds='chmod 644 $oldlib'
9981         postlink_cmds='lt_outputfile="@OUTPUT@"~
9982           lt_tool_outputfile="@TOOL_OUTPUT@"~
9983           case $lt_outputfile in
9984             *.exe|*.EXE) ;;
9985             *)
9986               lt_outputfile=$lt_outputfile.exe
9987               lt_tool_outputfile=$lt_tool_outputfile.exe
9988               ;;
9989           esac~
9990           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9991             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9992             $RM "$lt_outputfile.manifest";
9993           fi'
9994         ;;
9995       *)
9996         # Assume MSVC wrapper
9997         hardcode_libdir_flag_spec=' '
9998         allow_undefined_flag=unsupported
9999         # Tell ltmain to make .lib files, not .a files.
10000         libext=lib
10001         # Tell ltmain to make .dll files, not .so files.
10002         shrext_cmds=.dll
10003         # FIXME: Setting linknames here is a bad hack.
10004         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10005         # The linker will automatically build a .lib file if we build a DLL.
10006         old_archive_from_new_cmds='true'
10007         # FIXME: Should let the user specify the lib program.
10008         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10009         enable_shared_with_static_runtimes=yes
10010         ;;
10011       esac
10012       ;;
10013
10014     darwin* | rhapsody*)
10015
10016
10017   archive_cmds_need_lc=no
10018   hardcode_direct=no
10019   hardcode_automatic=yes
10020   hardcode_shlibpath_var=unsupported
10021   if test yes = "$lt_cv_ld_force_load"; then
10022     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\"`'
10023
10024   else
10025     whole_archive_flag_spec=''
10026   fi
10027   link_all_deplibs=yes
10028   allow_undefined_flag=$_lt_dar_allow_undefined
10029   case $cc_basename in
10030      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10031      *) _lt_dar_can_shared=$GCC ;;
10032   esac
10033   if test yes = "$_lt_dar_can_shared"; then
10034     output_verbose_link_cmd=func_echo_all
10035     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10036     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10037     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"
10038     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"
10039
10040   else
10041   ld_shlibs=no
10042   fi
10043
10044       ;;
10045
10046     dgux*)
10047       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048       hardcode_libdir_flag_spec='-L$libdir'
10049       hardcode_shlibpath_var=no
10050       ;;
10051
10052     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10053     # support.  Future versions do this automatically, but an explicit c++rt0.o
10054     # does not break anything, and helps significantly (at the cost of a little
10055     # extra space).
10056     freebsd2.2*)
10057       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10058       hardcode_libdir_flag_spec='-R$libdir'
10059       hardcode_direct=yes
10060       hardcode_shlibpath_var=no
10061       ;;
10062
10063     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10064     freebsd2.*)
10065       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10066       hardcode_direct=yes
10067       hardcode_minus_L=yes
10068       hardcode_shlibpath_var=no
10069       ;;
10070
10071     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10072     freebsd* | dragonfly*)
10073       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10074       hardcode_libdir_flag_spec='-R$libdir'
10075       hardcode_direct=yes
10076       hardcode_shlibpath_var=no
10077       ;;
10078
10079     hpux9*)
10080       if test yes = "$GCC"; then
10081         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'
10082       else
10083         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'
10084       fi
10085       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10086       hardcode_libdir_separator=:
10087       hardcode_direct=yes
10088
10089       # hardcode_minus_L: Not really in the search PATH,
10090       # but as the default location of the library.
10091       hardcode_minus_L=yes
10092       export_dynamic_flag_spec='$wl-E'
10093       ;;
10094
10095     hpux10*)
10096       if test yes,no = "$GCC,$with_gnu_ld"; then
10097         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10098       else
10099         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10100       fi
10101       if test no = "$with_gnu_ld"; then
10102         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10103         hardcode_libdir_separator=:
10104         hardcode_direct=yes
10105         hardcode_direct_absolute=yes
10106         export_dynamic_flag_spec='$wl-E'
10107         # hardcode_minus_L: Not really in the search PATH,
10108         # but as the default location of the library.
10109         hardcode_minus_L=yes
10110       fi
10111       ;;
10112
10113     hpux11*)
10114       if test yes,no = "$GCC,$with_gnu_ld"; then
10115         case $host_cpu in
10116         hppa*64*)
10117           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10118           ;;
10119         ia64*)
10120           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10121           ;;
10122         *)
10123           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10124           ;;
10125         esac
10126       else
10127         case $host_cpu in
10128         hppa*64*)
10129           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10130           ;;
10131         ia64*)
10132           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10133           ;;
10134         *)
10135
10136           # Older versions of the 11.00 compiler do not understand -b yet
10137           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10138           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10139 $as_echo_n "checking if $CC understands -b... " >&6; }
10140 if ${lt_cv_prog_compiler__b+:} false; then :
10141   $as_echo_n "(cached) " >&6
10142 else
10143   lt_cv_prog_compiler__b=no
10144    save_LDFLAGS=$LDFLAGS
10145    LDFLAGS="$LDFLAGS -b"
10146    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10147    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10148      # The linker can only warn and ignore the option if not recognized
10149      # So say no if there are warnings
10150      if test -s conftest.err; then
10151        # Append any errors to the config.log.
10152        cat conftest.err 1>&5
10153        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10154        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10155        if diff conftest.exp conftest.er2 >/dev/null; then
10156          lt_cv_prog_compiler__b=yes
10157        fi
10158      else
10159        lt_cv_prog_compiler__b=yes
10160      fi
10161    fi
10162    $RM -r conftest*
10163    LDFLAGS=$save_LDFLAGS
10164
10165 fi
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10167 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10168
10169 if test yes = "$lt_cv_prog_compiler__b"; then
10170     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10171 else
10172     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10173 fi
10174
10175           ;;
10176         esac
10177       fi
10178       if test no = "$with_gnu_ld"; then
10179         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10180         hardcode_libdir_separator=:
10181
10182         case $host_cpu in
10183         hppa*64*|ia64*)
10184           hardcode_direct=no
10185           hardcode_shlibpath_var=no
10186           ;;
10187         *)
10188           hardcode_direct=yes
10189           hardcode_direct_absolute=yes
10190           export_dynamic_flag_spec='$wl-E'
10191
10192           # hardcode_minus_L: Not really in the search PATH,
10193           # but as the default location of the library.
10194           hardcode_minus_L=yes
10195           ;;
10196         esac
10197       fi
10198       ;;
10199
10200     irix5* | irix6* | nonstopux*)
10201       if test yes = "$GCC"; then
10202         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'
10203         # Try to use the -exported_symbol ld option, if it does not
10204         # work, assume that -exports_file does not work either and
10205         # implicitly export all symbols.
10206         # This should be the same for all languages, so no per-tag cache variable.
10207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10208 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10209 if ${lt_cv_irix_exported_symbol+:} false; then :
10210   $as_echo_n "(cached) " >&6
10211 else
10212   save_LDFLAGS=$LDFLAGS
10213            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10214            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h.  */
10216 int foo (void) { return 0; }
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219   lt_cv_irix_exported_symbol=yes
10220 else
10221   lt_cv_irix_exported_symbol=no
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext \
10224     conftest$ac_exeext conftest.$ac_ext
10225            LDFLAGS=$save_LDFLAGS
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10228 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10229         if test yes = "$lt_cv_irix_exported_symbol"; then
10230           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'
10231         fi
10232       else
10233         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'
10234         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'
10235       fi
10236       archive_cmds_need_lc='no'
10237       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10238       hardcode_libdir_separator=:
10239       inherit_rpath=yes
10240       link_all_deplibs=yes
10241       ;;
10242
10243     linux*)
10244       case $cc_basename in
10245       tcc*)
10246         # Fabrice Bellard et al's Tiny C Compiler
10247         ld_shlibs=yes
10248         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10249         ;;
10250       esac
10251       ;;
10252
10253     netbsd*)
10254       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10255         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10256       else
10257         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10258       fi
10259       hardcode_libdir_flag_spec='-R$libdir'
10260       hardcode_direct=yes
10261       hardcode_shlibpath_var=no
10262       ;;
10263
10264     newsos6)
10265       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266       hardcode_direct=yes
10267       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10268       hardcode_libdir_separator=:
10269       hardcode_shlibpath_var=no
10270       ;;
10271
10272     *nto* | *qnx*)
10273       ;;
10274
10275     openbsd* | bitrig*)
10276       if test -f /usr/libexec/ld.so; then
10277         hardcode_direct=yes
10278         hardcode_shlibpath_var=no
10279         hardcode_direct_absolute=yes
10280         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10281           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10282           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10283           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10284           export_dynamic_flag_spec='$wl-E'
10285         else
10286           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10287           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10288         fi
10289       else
10290         ld_shlibs=no
10291       fi
10292       ;;
10293
10294     os2*)
10295       hardcode_libdir_flag_spec='-L$libdir'
10296       hardcode_minus_L=yes
10297       allow_undefined_flag=unsupported
10298       shrext_cmds=.dll
10299       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10300         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10301         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10302         $ECHO EXPORTS >> $output_objdir/$libname.def~
10303         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10304         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10305         emximp -o $lib $output_objdir/$libname.def'
10306       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10307         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10308         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10309         $ECHO EXPORTS >> $output_objdir/$libname.def~
10310         prefix_cmds="$SED"~
10311         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10312           prefix_cmds="$prefix_cmds -e 1d";
10313         fi~
10314         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10315         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10316         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10317         emximp -o $lib $output_objdir/$libname.def'
10318       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10319       enable_shared_with_static_runtimes=yes
10320       ;;
10321
10322     osf3*)
10323       if test yes = "$GCC"; then
10324         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10325         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'
10326       else
10327         allow_undefined_flag=' -expect_unresolved \*'
10328         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'
10329       fi
10330       archive_cmds_need_lc='no'
10331       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10332       hardcode_libdir_separator=:
10333       ;;
10334
10335     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10336       if test yes = "$GCC"; then
10337         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10338         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'
10339         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10340       else
10341         allow_undefined_flag=' -expect_unresolved \*'
10342         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'
10343         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~
10344           $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'
10345
10346         # Both c and cxx compiler support -rpath directly
10347         hardcode_libdir_flag_spec='-rpath $libdir'
10348       fi
10349       archive_cmds_need_lc='no'
10350       hardcode_libdir_separator=:
10351       ;;
10352
10353     solaris*)
10354       no_undefined_flag=' -z defs'
10355       if test yes = "$GCC"; then
10356         wlarc='$wl'
10357         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10358         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10359           $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'
10360       else
10361         case `$CC -V 2>&1` in
10362         *"Compilers 5.0"*)
10363           wlarc=''
10364           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10365           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10366             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10367           ;;
10368         *)
10369           wlarc='$wl'
10370           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10371           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10372             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10373           ;;
10374         esac
10375       fi
10376       hardcode_libdir_flag_spec='-R$libdir'
10377       hardcode_shlibpath_var=no
10378       case $host_os in
10379       solaris2.[0-5] | solaris2.[0-5].*) ;;
10380       *)
10381         # The compiler driver will combine and reorder linker options,
10382         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10383         # but is careful enough not to reorder.
10384         # Supported since Solaris 2.6 (maybe 2.5.1?)
10385         if test yes = "$GCC"; then
10386           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10387         else
10388           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10389         fi
10390         ;;
10391       esac
10392       link_all_deplibs=yes
10393       ;;
10394
10395     sunos4*)
10396       if test sequent = "$host_vendor"; then
10397         # Use $CC to link under sequent, because it throws in some extra .o
10398         # files that make .init and .fini sections work.
10399         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10400       else
10401         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10402       fi
10403       hardcode_libdir_flag_spec='-L$libdir'
10404       hardcode_direct=yes
10405       hardcode_minus_L=yes
10406       hardcode_shlibpath_var=no
10407       ;;
10408
10409     sysv4)
10410       case $host_vendor in
10411         sni)
10412           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10413           hardcode_direct=yes # is this really true???
10414         ;;
10415         siemens)
10416           ## LD is ld it makes a PLAMLIB
10417           ## CC just makes a GrossModule.
10418           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10419           reload_cmds='$CC -r -o $output$reload_objs'
10420           hardcode_direct=no
10421         ;;
10422         motorola)
10423           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10425         ;;
10426       esac
10427       runpath_var='LD_RUN_PATH'
10428       hardcode_shlibpath_var=no
10429       ;;
10430
10431     sysv4.3*)
10432       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433       hardcode_shlibpath_var=no
10434       export_dynamic_flag_spec='-Bexport'
10435       ;;
10436
10437     sysv4*MP*)
10438       if test -d /usr/nec; then
10439         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440         hardcode_shlibpath_var=no
10441         runpath_var=LD_RUN_PATH
10442         hardcode_runpath_var=yes
10443         ld_shlibs=yes
10444       fi
10445       ;;
10446
10447     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10448       no_undefined_flag='$wl-z,text'
10449       archive_cmds_need_lc=no
10450       hardcode_shlibpath_var=no
10451       runpath_var='LD_RUN_PATH'
10452
10453       if test yes = "$GCC"; then
10454         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456       else
10457         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459       fi
10460       ;;
10461
10462     sysv5* | sco3.2v5* | sco5v6*)
10463       # Note: We CANNOT use -z defs as we might desire, because we do not
10464       # link with -lc, and that would cause any symbols used from libc to
10465       # always be unresolved, which means just about no library would
10466       # ever link correctly.  If we're not using GNU ld we use -z text
10467       # though, which does catch some bad symbols but isn't as heavy-handed
10468       # as -z defs.
10469       no_undefined_flag='$wl-z,text'
10470       allow_undefined_flag='$wl-z,nodefs'
10471       archive_cmds_need_lc=no
10472       hardcode_shlibpath_var=no
10473       hardcode_libdir_flag_spec='$wl-R,$libdir'
10474       hardcode_libdir_separator=':'
10475       link_all_deplibs=yes
10476       export_dynamic_flag_spec='$wl-Bexport'
10477       runpath_var='LD_RUN_PATH'
10478
10479       if test yes = "$GCC"; then
10480         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482       else
10483         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485       fi
10486       ;;
10487
10488     uts4*)
10489       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490       hardcode_libdir_flag_spec='-L$libdir'
10491       hardcode_shlibpath_var=no
10492       ;;
10493
10494     *)
10495       ld_shlibs=no
10496       ;;
10497     esac
10498
10499     if test sni = "$host_vendor"; then
10500       case $host in
10501       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10502         export_dynamic_flag_spec='$wl-Blargedynsym'
10503         ;;
10504       esac
10505     fi
10506   fi
10507
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10509 $as_echo "$ld_shlibs" >&6; }
10510 test no = "$ld_shlibs" && can_build_shared=no
10511
10512 with_gnu_ld=$with_gnu_ld
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528 #
10529 # Do we need to explicitly link libc?
10530 #
10531 case "x$archive_cmds_need_lc" in
10532 x|xyes)
10533   # Assume -lc should be added
10534   archive_cmds_need_lc=yes
10535
10536   if test yes,yes = "$GCC,$enable_shared"; then
10537     case $archive_cmds in
10538     *'~'*)
10539       # FIXME: we may have to deal with multi-command sequences.
10540       ;;
10541     '$CC '*)
10542       # Test whether the compiler implicitly links with -lc since on some
10543       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10544       # to ld, don't add -lc before -lgcc.
10545       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10546 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10547 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10548   $as_echo_n "(cached) " >&6
10549 else
10550   $RM conftest*
10551         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10552
10553         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10554   (eval $ac_compile) 2>&5
10555   ac_status=$?
10556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10557   test $ac_status = 0; } 2>conftest.err; then
10558           soname=conftest
10559           lib=conftest
10560           libobjs=conftest.$ac_objext
10561           deplibs=
10562           wl=$lt_prog_compiler_wl
10563           pic_flag=$lt_prog_compiler_pic
10564           compiler_flags=-v
10565           linker_flags=-v
10566           verstring=
10567           output_objdir=.
10568           libname=conftest
10569           lt_save_allow_undefined_flag=$allow_undefined_flag
10570           allow_undefined_flag=
10571           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10572   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10573   ac_status=$?
10574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10575   test $ac_status = 0; }
10576           then
10577             lt_cv_archive_cmds_need_lc=no
10578           else
10579             lt_cv_archive_cmds_need_lc=yes
10580           fi
10581           allow_undefined_flag=$lt_save_allow_undefined_flag
10582         else
10583           cat conftest.err 1>&5
10584         fi
10585         $RM conftest*
10586
10587 fi
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10589 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10590       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10591       ;;
10592     esac
10593   fi
10594   ;;
10595 esac
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10750
10751 if test yes = "$GCC"; then
10752   case $host_os in
10753     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10754     *) lt_awk_arg='/^libraries:/' ;;
10755   esac
10756   case $host_os in
10757     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10758     *) lt_sed_strip_eq='s|=/|/|g' ;;
10759   esac
10760   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10761   case $lt_search_path_spec in
10762   *\;*)
10763     # if the path contains ";" then we assume it to be the separator
10764     # otherwise default to the standard path separator (i.e. ":") - it is
10765     # assumed that no part of a normal pathname contains ";" but that should
10766     # okay in the real world where ";" in dirpaths is itself problematic.
10767     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10768     ;;
10769   *)
10770     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10771     ;;
10772   esac
10773   # Ok, now we have the path, separated by spaces, we can step through it
10774   # and add multilib dir if necessary...
10775   lt_tmp_lt_search_path_spec=
10776   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10777   # ...but if some path component already ends with the multilib dir we assume
10778   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10779   case "$lt_multi_os_dir; $lt_search_path_spec " in
10780   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10781     lt_multi_os_dir=
10782     ;;
10783   esac
10784   for lt_sys_path in $lt_search_path_spec; do
10785     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10786       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10787     elif test -n "$lt_multi_os_dir"; then
10788       test -d "$lt_sys_path" && \
10789         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10790     fi
10791   done
10792   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10793 BEGIN {RS = " "; FS = "/|\n";} {
10794   lt_foo = "";
10795   lt_count = 0;
10796   for (lt_i = NF; lt_i > 0; lt_i--) {
10797     if ($lt_i != "" && $lt_i != ".") {
10798       if ($lt_i == "..") {
10799         lt_count++;
10800       } else {
10801         if (lt_count == 0) {
10802           lt_foo = "/" $lt_i lt_foo;
10803         } else {
10804           lt_count--;
10805         }
10806       }
10807     }
10808   }
10809   if (lt_foo != "") { lt_freq[lt_foo]++; }
10810   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10811 }'`
10812   # AWK program above erroneously prepends '/' to C:/dos/paths
10813   # for these hosts.
10814   case $host_os in
10815     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10816       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10817   esac
10818   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10819 else
10820   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10821 fi
10822 library_names_spec=
10823 libname_spec='lib$name'
10824 soname_spec=
10825 shrext_cmds=.so
10826 postinstall_cmds=
10827 postuninstall_cmds=
10828 finish_cmds=
10829 finish_eval=
10830 shlibpath_var=
10831 shlibpath_overrides_runpath=unknown
10832 version_type=none
10833 dynamic_linker="$host_os ld.so"
10834 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10835 need_lib_prefix=unknown
10836 hardcode_into_libs=no
10837
10838 # when you set need_version to no, make sure it does not cause -set_version
10839 # flags to be left without arguments
10840 need_version=unknown
10841
10842
10843
10844 case $host_os in
10845 aix3*)
10846   version_type=linux # correct to gnu/linux during the next big refactor
10847   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10848   shlibpath_var=LIBPATH
10849
10850   # AIX 3 has no versioning support, so we append a major version to the name.
10851   soname_spec='$libname$release$shared_ext$major'
10852   ;;
10853
10854 aix[4-9]*)
10855   version_type=linux # correct to gnu/linux during the next big refactor
10856   need_lib_prefix=no
10857   need_version=no
10858   hardcode_into_libs=yes
10859   if test ia64 = "$host_cpu"; then
10860     # AIX 5 supports IA64
10861     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10862     shlibpath_var=LD_LIBRARY_PATH
10863   else
10864     # With GCC up to 2.95.x, collect2 would create an import file
10865     # for dependence libraries.  The import file would start with
10866     # the line '#! .'.  This would cause the generated library to
10867     # depend on '.', always an invalid library.  This was fixed in
10868     # development snapshots of GCC prior to 3.0.
10869     case $host_os in
10870       aix4 | aix4.[01] | aix4.[01].*)
10871       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10872            echo ' yes '
10873            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10874         :
10875       else
10876         can_build_shared=no
10877       fi
10878       ;;
10879     esac
10880     # Using Import Files as archive members, it is possible to support
10881     # filename-based versioning of shared library archives on AIX. While
10882     # this would work for both with and without runtime linking, it will
10883     # prevent static linking of such archives. So we do filename-based
10884     # shared library versioning with .so extension only, which is used
10885     # when both runtime linking and shared linking is enabled.
10886     # Unfortunately, runtime linking may impact performance, so we do
10887     # not want this to be the default eventually. Also, we use the
10888     # versioned .so libs for executables only if there is the -brtl
10889     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10890     # To allow for filename-based versioning support, we need to create
10891     # libNAME.so.V as an archive file, containing:
10892     # *) an Import File, referring to the versioned filename of the
10893     #    archive as well as the shared archive member, telling the
10894     #    bitwidth (32 or 64) of that shared object, and providing the
10895     #    list of exported symbols of that shared object, eventually
10896     #    decorated with the 'weak' keyword
10897     # *) the shared object with the F_LOADONLY flag set, to really avoid
10898     #    it being seen by the linker.
10899     # At run time we better use the real file rather than another symlink,
10900     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10901
10902     case $with_aix_soname,$aix_use_runtimelinking in
10903     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10904     # soname into executable. Probably we can add versioning support to
10905     # collect2, so additional links can be useful in future.
10906     aix,yes) # traditional libtool
10907       dynamic_linker='AIX unversionable lib.so'
10908       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10909       # instead of lib<name>.a to let people know that these are not
10910       # typical AIX shared libraries.
10911       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10912       ;;
10913     aix,no) # traditional AIX only
10914       dynamic_linker='AIX lib.a(lib.so.V)'
10915       # We preserve .a as extension for shared libraries through AIX4.2
10916       # and later when we are not doing run time linking.
10917       library_names_spec='$libname$release.a $libname.a'
10918       soname_spec='$libname$release$shared_ext$major'
10919       ;;
10920     svr4,*) # full svr4 only
10921       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10922       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10923       # We do not specify a path in Import Files, so LIBPATH fires.
10924       shlibpath_overrides_runpath=yes
10925       ;;
10926     *,yes) # both, prefer svr4
10927       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10928       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10929       # unpreferred sharedlib libNAME.a needs extra handling
10930       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"'
10931       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"'
10932       # We do not specify a path in Import Files, so LIBPATH fires.
10933       shlibpath_overrides_runpath=yes
10934       ;;
10935     *,no) # both, prefer aix
10936       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10937       library_names_spec='$libname$release.a $libname.a'
10938       soname_spec='$libname$release$shared_ext$major'
10939       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10940       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)'
10941       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"'
10942       ;;
10943     esac
10944     shlibpath_var=LIBPATH
10945   fi
10946   ;;
10947
10948 amigaos*)
10949   case $host_cpu in
10950   powerpc)
10951     # Since July 2007 AmigaOS4 officially supports .so libraries.
10952     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10953     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10954     ;;
10955   m68k)
10956     library_names_spec='$libname.ixlibrary $libname.a'
10957     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10958     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'
10959     ;;
10960   esac
10961   ;;
10962
10963 beos*)
10964   library_names_spec='$libname$shared_ext'
10965   dynamic_linker="$host_os ld.so"
10966   shlibpath_var=LIBRARY_PATH
10967   ;;
10968
10969 bsdi[45]*)
10970   version_type=linux # correct to gnu/linux during the next big refactor
10971   need_version=no
10972   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10973   soname_spec='$libname$release$shared_ext$major'
10974   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10975   shlibpath_var=LD_LIBRARY_PATH
10976   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10977   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10978   # the default ld.so.conf also contains /usr/contrib/lib and
10979   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10980   # libtool to hard-code these into programs
10981   ;;
10982
10983 cygwin* | mingw* | pw32* | cegcc*)
10984   version_type=windows
10985   shrext_cmds=.dll
10986   need_version=no
10987   need_lib_prefix=no
10988
10989   case $GCC,$cc_basename in
10990   yes,*)
10991     # gcc
10992     library_names_spec='$libname.dll.a'
10993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10994     postinstall_cmds='base_file=`basename \$file`~
10995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10996       dldir=$destdir/`dirname \$dlpath`~
10997       test -d \$dldir || mkdir -p \$dldir~
10998       $install_prog $dir/$dlname \$dldir/$dlname~
10999       chmod a+x \$dldir/$dlname~
11000       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11001         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11002       fi'
11003     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11004       dlpath=$dir/\$dldll~
11005        $RM \$dlpath'
11006     shlibpath_overrides_runpath=yes
11007
11008     case $host_os in
11009     cygwin*)
11010       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11011       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11012
11013       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11014       ;;
11015     mingw* | cegcc*)
11016       # MinGW DLLs use traditional 'lib' prefix
11017       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11018       ;;
11019     pw32*)
11020       # pw32 DLLs use 'pw' prefix rather than 'lib'
11021       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11022       ;;
11023     esac
11024     dynamic_linker='Win32 ld.exe'
11025     ;;
11026
11027   *,cl*)
11028     # Native MSVC
11029     libname_spec='$name'
11030     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11031     library_names_spec='$libname.dll.lib'
11032
11033     case $build_os in
11034     mingw*)
11035       sys_lib_search_path_spec=
11036       lt_save_ifs=$IFS
11037       IFS=';'
11038       for lt_path in $LIB
11039       do
11040         IFS=$lt_save_ifs
11041         # Let DOS variable expansion print the short 8.3 style file name.
11042         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11043         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11044       done
11045       IFS=$lt_save_ifs
11046       # Convert to MSYS style.
11047       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11048       ;;
11049     cygwin*)
11050       # Convert to unix form, then to dos form, then back to unix form
11051       # but this time dos style (no spaces!) so that the unix form looks
11052       # like /cygdrive/c/PROGRA~1:/cygdr...
11053       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11054       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11055       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11056       ;;
11057     *)
11058       sys_lib_search_path_spec=$LIB
11059       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11060         # It is most probably a Windows format PATH.
11061         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11062       else
11063         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11064       fi
11065       # FIXME: find the short name or the path components, as spaces are
11066       # common. (e.g. "Program Files" -> "PROGRA~1")
11067       ;;
11068     esac
11069
11070     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11071     postinstall_cmds='base_file=`basename \$file`~
11072       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11073       dldir=$destdir/`dirname \$dlpath`~
11074       test -d \$dldir || mkdir -p \$dldir~
11075       $install_prog $dir/$dlname \$dldir/$dlname'
11076     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11077       dlpath=$dir/\$dldll~
11078        $RM \$dlpath'
11079     shlibpath_overrides_runpath=yes
11080     dynamic_linker='Win32 link.exe'
11081     ;;
11082
11083   *)
11084     # Assume MSVC wrapper
11085     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11086     dynamic_linker='Win32 ld.exe'
11087     ;;
11088   esac
11089   # FIXME: first we should search . and the directory the executable is in
11090   shlibpath_var=PATH
11091   ;;
11092
11093 darwin* | rhapsody*)
11094   dynamic_linker="$host_os dyld"
11095   version_type=darwin
11096   need_lib_prefix=no
11097   need_version=no
11098   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11099   soname_spec='$libname$release$major$shared_ext'
11100   shlibpath_overrides_runpath=yes
11101   shlibpath_var=DYLD_LIBRARY_PATH
11102   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11103
11104   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11105   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11106   ;;
11107
11108 dgux*)
11109   version_type=linux # correct to gnu/linux during the next big refactor
11110   need_lib_prefix=no
11111   need_version=no
11112   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113   soname_spec='$libname$release$shared_ext$major'
11114   shlibpath_var=LD_LIBRARY_PATH
11115   ;;
11116
11117 freebsd* | dragonfly*)
11118   # DragonFly does not have aout.  When/if they implement a new
11119   # versioning mechanism, adjust this.
11120   if test -x /usr/bin/objformat; then
11121     objformat=`/usr/bin/objformat`
11122   else
11123     case $host_os in
11124     freebsd[23].*) objformat=aout ;;
11125     *) objformat=elf ;;
11126     esac
11127   fi
11128   version_type=freebsd-$objformat
11129   case $version_type in
11130     freebsd-elf*)
11131       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11132       soname_spec='$libname$release$shared_ext$major'
11133       need_version=no
11134       need_lib_prefix=no
11135       ;;
11136     freebsd-*)
11137       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11138       need_version=yes
11139       ;;
11140   esac
11141   shlibpath_var=LD_LIBRARY_PATH
11142   case $host_os in
11143   freebsd2.*)
11144     shlibpath_overrides_runpath=yes
11145     ;;
11146   freebsd3.[01]* | freebsdelf3.[01]*)
11147     shlibpath_overrides_runpath=yes
11148     hardcode_into_libs=yes
11149     ;;
11150   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11151   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11152     shlibpath_overrides_runpath=no
11153     hardcode_into_libs=yes
11154     ;;
11155   *) # from 4.6 on, and DragonFly
11156     shlibpath_overrides_runpath=yes
11157     hardcode_into_libs=yes
11158     ;;
11159   esac
11160   ;;
11161
11162 haiku*)
11163   version_type=linux # correct to gnu/linux during the next big refactor
11164   need_lib_prefix=no
11165   need_version=no
11166   dynamic_linker="$host_os runtime_loader"
11167   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11168   soname_spec='$libname$release$shared_ext$major'
11169   shlibpath_var=LIBRARY_PATH
11170   shlibpath_overrides_runpath=no
11171   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11172   hardcode_into_libs=yes
11173   ;;
11174
11175 hpux9* | hpux10* | hpux11*)
11176   # Give a soname corresponding to the major version so that dld.sl refuses to
11177   # link against other versions.
11178   version_type=sunos
11179   need_lib_prefix=no
11180   need_version=no
11181   case $host_cpu in
11182   ia64*)
11183     shrext_cmds='.so'
11184     hardcode_into_libs=yes
11185     dynamic_linker="$host_os dld.so"
11186     shlibpath_var=LD_LIBRARY_PATH
11187     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11188     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189     soname_spec='$libname$release$shared_ext$major'
11190     if test 32 = "$HPUX_IA64_MODE"; then
11191       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11192       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11193     else
11194       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11195       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11196     fi
11197     ;;
11198   hppa*64*)
11199     shrext_cmds='.sl'
11200     hardcode_into_libs=yes
11201     dynamic_linker="$host_os dld.sl"
11202     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11203     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11204     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11205     soname_spec='$libname$release$shared_ext$major'
11206     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11207     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11208     ;;
11209   *)
11210     shrext_cmds='.sl'
11211     dynamic_linker="$host_os dld.sl"
11212     shlibpath_var=SHLIB_PATH
11213     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11214     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11215     soname_spec='$libname$release$shared_ext$major'
11216     ;;
11217   esac
11218   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11219   postinstall_cmds='chmod 555 $lib'
11220   # or fails outright, so override atomically:
11221   install_override_mode=555
11222   ;;
11223
11224 interix[3-9]*)
11225   version_type=linux # correct to gnu/linux during the next big refactor
11226   need_lib_prefix=no
11227   need_version=no
11228   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11229   soname_spec='$libname$release$shared_ext$major'
11230   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11231   shlibpath_var=LD_LIBRARY_PATH
11232   shlibpath_overrides_runpath=no
11233   hardcode_into_libs=yes
11234   ;;
11235
11236 irix5* | irix6* | nonstopux*)
11237   case $host_os in
11238     nonstopux*) version_type=nonstopux ;;
11239     *)
11240         if test yes = "$lt_cv_prog_gnu_ld"; then
11241                 version_type=linux # correct to gnu/linux during the next big refactor
11242         else
11243                 version_type=irix
11244         fi ;;
11245   esac
11246   need_lib_prefix=no
11247   need_version=no
11248   soname_spec='$libname$release$shared_ext$major'
11249   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11250   case $host_os in
11251   irix5* | nonstopux*)
11252     libsuff= shlibsuff=
11253     ;;
11254   *)
11255     case $LD in # libtool.m4 will add one of these switches to LD
11256     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11257       libsuff= shlibsuff= libmagic=32-bit;;
11258     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11259       libsuff=32 shlibsuff=N32 libmagic=N32;;
11260     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11261       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11262     *) libsuff= shlibsuff= libmagic=never-match;;
11263     esac
11264     ;;
11265   esac
11266   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11267   shlibpath_overrides_runpath=no
11268   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11269   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11270   hardcode_into_libs=yes
11271   ;;
11272
11273 # No shared lib support for Linux oldld, aout, or coff.
11274 linux*oldld* | linux*aout* | linux*coff*)
11275   dynamic_linker=no
11276   ;;
11277
11278 linux*android*)
11279   version_type=none # Android doesn't support versioned libraries.
11280   need_lib_prefix=no
11281   need_version=no
11282   library_names_spec='$libname$release$shared_ext'
11283   soname_spec='$libname$release$shared_ext'
11284   finish_cmds=
11285   shlibpath_var=LD_LIBRARY_PATH
11286   shlibpath_overrides_runpath=yes
11287
11288   # This implies no fast_install, which is unacceptable.
11289   # Some rework will be needed to allow for fast_install
11290   # before this can be enabled.
11291   hardcode_into_libs=yes
11292
11293   dynamic_linker='Android linker'
11294   # Don't embed -rpath directories since the linker doesn't support them.
11295   hardcode_libdir_flag_spec='-L$libdir'
11296   ;;
11297
11298 # This must be glibc/ELF.
11299 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11300   version_type=linux # correct to gnu/linux during the next big refactor
11301   need_lib_prefix=no
11302   need_version=no
11303   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11304   soname_spec='$libname$release$shared_ext$major'
11305   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11306   shlibpath_var=LD_LIBRARY_PATH
11307   shlibpath_overrides_runpath=no
11308
11309   # Some binutils ld are patched to set DT_RUNPATH
11310   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11311   $as_echo_n "(cached) " >&6
11312 else
11313   lt_cv_shlibpath_overrides_runpath=no
11314     save_LDFLAGS=$LDFLAGS
11315     save_libdir=$libdir
11316     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11317          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11318     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h.  */
11320
11321 int
11322 main ()
11323 {
11324
11325   ;
11326   return 0;
11327 }
11328 _ACEOF
11329 if ac_fn_c_try_link "$LINENO"; then :
11330   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11331   lt_cv_shlibpath_overrides_runpath=yes
11332 fi
11333 fi
11334 rm -f core conftest.err conftest.$ac_objext \
11335     conftest$ac_exeext conftest.$ac_ext
11336     LDFLAGS=$save_LDFLAGS
11337     libdir=$save_libdir
11338
11339 fi
11340
11341   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11342
11343   # This implies no fast_install, which is unacceptable.
11344   # Some rework will be needed to allow for fast_install
11345   # before this can be enabled.
11346   hardcode_into_libs=yes
11347
11348   # Ideally, we could use ldconfig to report *all* directores which are
11349   # searched for libraries, however this is still not possible.  Aside from not
11350   # being certain /sbin/ldconfig is available, command
11351   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11352   # even though it is searched at run-time.  Try to do the best guess by
11353   # appending ld.so.conf contents (and includes) to the search path.
11354   if test -f /etc/ld.so.conf; then
11355     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' ' '`
11356     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11357   fi
11358
11359   # We used to test for /lib/ld.so.1 and disable shared libraries on
11360   # powerpc, because MkLinux only supported shared libraries with the
11361   # GNU dynamic linker.  Since this was broken with cross compilers,
11362   # most powerpc-linux boxes support dynamic linking these days and
11363   # people can always --disable-shared, the test was removed, and we
11364   # assume the GNU/Linux dynamic linker is in use.
11365   dynamic_linker='GNU/Linux ld.so'
11366   ;;
11367
11368 netbsd*)
11369   version_type=sunos
11370   need_lib_prefix=no
11371   need_version=no
11372   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11373     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11374     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11375     dynamic_linker='NetBSD (a.out) ld.so'
11376   else
11377     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378     soname_spec='$libname$release$shared_ext$major'
11379     dynamic_linker='NetBSD ld.elf_so'
11380   fi
11381   shlibpath_var=LD_LIBRARY_PATH
11382   shlibpath_overrides_runpath=yes
11383   hardcode_into_libs=yes
11384   ;;
11385
11386 newsos6)
11387   version_type=linux # correct to gnu/linux during the next big refactor
11388   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11389   shlibpath_var=LD_LIBRARY_PATH
11390   shlibpath_overrides_runpath=yes
11391   ;;
11392
11393 *nto* | *qnx*)
11394   version_type=qnx
11395   need_lib_prefix=no
11396   need_version=no
11397   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11398   soname_spec='$libname$release$shared_ext$major'
11399   shlibpath_var=LD_LIBRARY_PATH
11400   shlibpath_overrides_runpath=no
11401   hardcode_into_libs=yes
11402   dynamic_linker='ldqnx.so'
11403   ;;
11404
11405 openbsd* | bitrig*)
11406   version_type=sunos
11407   sys_lib_dlsearch_path_spec=/usr/lib
11408   need_lib_prefix=no
11409   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11410     need_version=no
11411   else
11412     need_version=yes
11413   fi
11414   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11415   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11416   shlibpath_var=LD_LIBRARY_PATH
11417   shlibpath_overrides_runpath=yes
11418   ;;
11419
11420 os2*)
11421   libname_spec='$name'
11422   version_type=windows
11423   shrext_cmds=.dll
11424   need_version=no
11425   need_lib_prefix=no
11426   # OS/2 can only load a DLL with a base name of 8 characters or less.
11427   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11428     v=$($ECHO $release$versuffix | tr -d .-);
11429     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11430     $ECHO $n$v`$shared_ext'
11431   library_names_spec='${libname}_dll.$libext'
11432   dynamic_linker='OS/2 ld.exe'
11433   shlibpath_var=BEGINLIBPATH
11434   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11435   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11436   postinstall_cmds='base_file=`basename \$file`~
11437     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11438     dldir=$destdir/`dirname \$dlpath`~
11439     test -d \$dldir || mkdir -p \$dldir~
11440     $install_prog $dir/$dlname \$dldir/$dlname~
11441     chmod a+x \$dldir/$dlname~
11442     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11443       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11444     fi'
11445   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11446     dlpath=$dir/\$dldll~
11447     $RM \$dlpath'
11448   ;;
11449
11450 osf3* | osf4* | osf5*)
11451   version_type=osf
11452   need_lib_prefix=no
11453   need_version=no
11454   soname_spec='$libname$release$shared_ext$major'
11455   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11456   shlibpath_var=LD_LIBRARY_PATH
11457   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11458   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11459   ;;
11460
11461 rdos*)
11462   dynamic_linker=no
11463   ;;
11464
11465 solaris*)
11466   version_type=linux # correct to gnu/linux during the next big refactor
11467   need_lib_prefix=no
11468   need_version=no
11469   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11470   soname_spec='$libname$release$shared_ext$major'
11471   shlibpath_var=LD_LIBRARY_PATH
11472   shlibpath_overrides_runpath=yes
11473   hardcode_into_libs=yes
11474   # ldd complains unless libraries are executable
11475   postinstall_cmds='chmod +x $lib'
11476   ;;
11477
11478 sunos4*)
11479   version_type=sunos
11480   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11481   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11482   shlibpath_var=LD_LIBRARY_PATH
11483   shlibpath_overrides_runpath=yes
11484   if test yes = "$with_gnu_ld"; then
11485     need_lib_prefix=no
11486   fi
11487   need_version=yes
11488   ;;
11489
11490 sysv4 | sysv4.3*)
11491   version_type=linux # correct to gnu/linux during the next big refactor
11492   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11493   soname_spec='$libname$release$shared_ext$major'
11494   shlibpath_var=LD_LIBRARY_PATH
11495   case $host_vendor in
11496     sni)
11497       shlibpath_overrides_runpath=no
11498       need_lib_prefix=no
11499       runpath_var=LD_RUN_PATH
11500       ;;
11501     siemens)
11502       need_lib_prefix=no
11503       ;;
11504     motorola)
11505       need_lib_prefix=no
11506       need_version=no
11507       shlibpath_overrides_runpath=no
11508       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11509       ;;
11510   esac
11511   ;;
11512
11513 sysv4*MP*)
11514   if test -d /usr/nec; then
11515     version_type=linux # correct to gnu/linux during the next big refactor
11516     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11517     soname_spec='$libname$shared_ext.$major'
11518     shlibpath_var=LD_LIBRARY_PATH
11519   fi
11520   ;;
11521
11522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11523   version_type=sco
11524   need_lib_prefix=no
11525   need_version=no
11526   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11527   soname_spec='$libname$release$shared_ext$major'
11528   shlibpath_var=LD_LIBRARY_PATH
11529   shlibpath_overrides_runpath=yes
11530   hardcode_into_libs=yes
11531   if test yes = "$with_gnu_ld"; then
11532     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11533   else
11534     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11535     case $host_os in
11536       sco3.2v5*)
11537         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11538         ;;
11539     esac
11540   fi
11541   sys_lib_dlsearch_path_spec='/usr/lib'
11542   ;;
11543
11544 tpf*)
11545   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11546   version_type=linux # correct to gnu/linux during the next big refactor
11547   need_lib_prefix=no
11548   need_version=no
11549   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11550   shlibpath_var=LD_LIBRARY_PATH
11551   shlibpath_overrides_runpath=no
11552   hardcode_into_libs=yes
11553   ;;
11554
11555 uts4*)
11556   version_type=linux # correct to gnu/linux during the next big refactor
11557   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11558   soname_spec='$libname$release$shared_ext$major'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   ;;
11561
11562 *)
11563   dynamic_linker=no
11564   ;;
11565 esac
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11567 $as_echo "$dynamic_linker" >&6; }
11568 test no = "$dynamic_linker" && can_build_shared=no
11569
11570 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11571 if test yes = "$GCC"; then
11572   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11573 fi
11574
11575 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11576   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11577 fi
11578
11579 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11580   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11581 fi
11582
11583 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11584 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11585
11586 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11587 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11588
11589 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11590 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11689 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11690 hardcode_action=
11691 if test -n "$hardcode_libdir_flag_spec" ||
11692    test -n "$runpath_var" ||
11693    test yes = "$hardcode_automatic"; then
11694
11695   # We can hardcode non-existent directories.
11696   if test no != "$hardcode_direct" &&
11697      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11698      # have to relink, otherwise we might link with an installed library
11699      # when we should be linking with a yet-to-be-installed one
11700      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11701      test no != "$hardcode_minus_L"; then
11702     # Linking always hardcodes the temporary library directory.
11703     hardcode_action=relink
11704   else
11705     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11706     hardcode_action=immediate
11707   fi
11708 else
11709   # We cannot hardcode anything, or else we can only hardcode existing
11710   # directories.
11711   hardcode_action=unsupported
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11714 $as_echo "$hardcode_action" >&6; }
11715
11716 if test relink = "$hardcode_action" ||
11717    test yes = "$inherit_rpath"; then
11718   # Fast installation is not supported
11719   enable_fast_install=no
11720 elif test yes = "$shlibpath_overrides_runpath" ||
11721      test no = "$enable_shared"; then
11722   # Fast installation is not necessary
11723   enable_fast_install=needless
11724 fi
11725
11726
11727
11728
11729
11730
11731   if test yes != "$enable_dlopen"; then
11732   enable_dlopen=unknown
11733   enable_dlopen_self=unknown
11734   enable_dlopen_self_static=unknown
11735 else
11736   lt_cv_dlopen=no
11737   lt_cv_dlopen_libs=
11738
11739   case $host_os in
11740   beos*)
11741     lt_cv_dlopen=load_add_on
11742     lt_cv_dlopen_libs=
11743     lt_cv_dlopen_self=yes
11744     ;;
11745
11746   mingw* | pw32* | cegcc*)
11747     lt_cv_dlopen=LoadLibrary
11748     lt_cv_dlopen_libs=
11749     ;;
11750
11751   cygwin*)
11752     lt_cv_dlopen=dlopen
11753     lt_cv_dlopen_libs=
11754     ;;
11755
11756   darwin*)
11757     # if libdl is installed we need to link against it
11758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11759 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11760 if ${ac_cv_lib_dl_dlopen+:} false; then :
11761   $as_echo_n "(cached) " >&6
11762 else
11763   ac_check_lib_save_LIBS=$LIBS
11764 LIBS="-ldl  $LIBS"
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h.  */
11767
11768 /* Override any GCC internal prototype to avoid an error.
11769    Use char because int might match the return type of a GCC
11770    builtin and then its argument prototype would still apply.  */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 char dlopen ();
11775 int
11776 main ()
11777 {
11778 return dlopen ();
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 if ac_fn_c_try_link "$LINENO"; then :
11784   ac_cv_lib_dl_dlopen=yes
11785 else
11786   ac_cv_lib_dl_dlopen=no
11787 fi
11788 rm -f core conftest.err conftest.$ac_objext \
11789     conftest$ac_exeext conftest.$ac_ext
11790 LIBS=$ac_check_lib_save_LIBS
11791 fi
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11793 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11794 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11795   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11796 else
11797
11798     lt_cv_dlopen=dyld
11799     lt_cv_dlopen_libs=
11800     lt_cv_dlopen_self=yes
11801
11802 fi
11803
11804     ;;
11805
11806   tpf*)
11807     # Don't try to run any link tests for TPF.  We know it's impossible
11808     # because TPF is a cross-compiler, and we know how we open DSOs.
11809     lt_cv_dlopen=dlopen
11810     lt_cv_dlopen_libs=
11811     lt_cv_dlopen_self=no
11812     ;;
11813
11814   *)
11815     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11816 if test "x$ac_cv_func_shl_load" = xyes; then :
11817   lt_cv_dlopen=shl_load
11818 else
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11820 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11821 if ${ac_cv_lib_dld_shl_load+:} false; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   ac_check_lib_save_LIBS=$LIBS
11825 LIBS="-ldld  $LIBS"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h.  */
11828
11829 /* Override any GCC internal prototype to avoid an error.
11830    Use char because int might match the return type of a GCC
11831    builtin and then its argument prototype would still apply.  */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char shl_load ();
11836 int
11837 main ()
11838 {
11839 return shl_load ();
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845   ac_cv_lib_dld_shl_load=yes
11846 else
11847   ac_cv_lib_dld_shl_load=no
11848 fi
11849 rm -f core conftest.err conftest.$ac_objext \
11850     conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11852 fi
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11854 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11855 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11856   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11857 else
11858   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11859 if test "x$ac_cv_func_dlopen" = xyes; then :
11860   lt_cv_dlopen=dlopen
11861 else
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11863 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11864 if ${ac_cv_lib_dl_dlopen+:} false; then :
11865   $as_echo_n "(cached) " >&6
11866 else
11867   ac_check_lib_save_LIBS=$LIBS
11868 LIBS="-ldl  $LIBS"
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h.  */
11871
11872 /* Override any GCC internal prototype to avoid an error.
11873    Use char because int might match the return type of a GCC
11874    builtin and then its argument prototype would still apply.  */
11875 #ifdef __cplusplus
11876 extern "C"
11877 #endif
11878 char dlopen ();
11879 int
11880 main ()
11881 {
11882 return dlopen ();
11883   ;
11884   return 0;
11885 }
11886 _ACEOF
11887 if ac_fn_c_try_link "$LINENO"; then :
11888   ac_cv_lib_dl_dlopen=yes
11889 else
11890   ac_cv_lib_dl_dlopen=no
11891 fi
11892 rm -f core conftest.err conftest.$ac_objext \
11893     conftest$ac_exeext conftest.$ac_ext
11894 LIBS=$ac_check_lib_save_LIBS
11895 fi
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11897 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11898 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11899   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11900 else
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11902 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11903 if ${ac_cv_lib_svld_dlopen+:} false; then :
11904   $as_echo_n "(cached) " >&6
11905 else
11906   ac_check_lib_save_LIBS=$LIBS
11907 LIBS="-lsvld  $LIBS"
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h.  */
11910
11911 /* Override any GCC internal prototype to avoid an error.
11912    Use char because int might match the return type of a GCC
11913    builtin and then its argument prototype would still apply.  */
11914 #ifdef __cplusplus
11915 extern "C"
11916 #endif
11917 char dlopen ();
11918 int
11919 main ()
11920 {
11921 return dlopen ();
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 if ac_fn_c_try_link "$LINENO"; then :
11927   ac_cv_lib_svld_dlopen=yes
11928 else
11929   ac_cv_lib_svld_dlopen=no
11930 fi
11931 rm -f core conftest.err conftest.$ac_objext \
11932     conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11934 fi
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11936 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11937 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11938   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11939 else
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11942 if ${ac_cv_lib_dld_dld_link+:} false; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945   ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-ldld  $LIBS"
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h.  */
11949
11950 /* Override any GCC internal prototype to avoid an error.
11951    Use char because int might match the return type of a GCC
11952    builtin and then its argument prototype would still apply.  */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char dld_link ();
11957 int
11958 main ()
11959 {
11960 return dld_link ();
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966   ac_cv_lib_dld_dld_link=yes
11967 else
11968   ac_cv_lib_dld_dld_link=no
11969 fi
11970 rm -f core conftest.err conftest.$ac_objext \
11971     conftest$ac_exeext conftest.$ac_ext
11972 LIBS=$ac_check_lib_save_LIBS
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11975 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11976 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11977   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11978 fi
11979
11980
11981 fi
11982
11983
11984 fi
11985
11986
11987 fi
11988
11989
11990 fi
11991
11992
11993 fi
11994
11995     ;;
11996   esac
11997
11998   if test no = "$lt_cv_dlopen"; then
11999     enable_dlopen=no
12000   else
12001     enable_dlopen=yes
12002   fi
12003
12004   case $lt_cv_dlopen in
12005   dlopen)
12006     save_CPPFLAGS=$CPPFLAGS
12007     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12008
12009     save_LDFLAGS=$LDFLAGS
12010     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12011
12012     save_LIBS=$LIBS
12013     LIBS="$lt_cv_dlopen_libs $LIBS"
12014
12015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12016 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12017 if ${lt_cv_dlopen_self+:} false; then :
12018   $as_echo_n "(cached) " >&6
12019 else
12020           if test yes = "$cross_compiling"; then :
12021   lt_cv_dlopen_self=cross
12022 else
12023   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12024   lt_status=$lt_dlunknown
12025   cat > conftest.$ac_ext <<_LT_EOF
12026 #line $LINENO "configure"
12027 #include "confdefs.h"
12028
12029 #if HAVE_DLFCN_H
12030 #include <dlfcn.h>
12031 #endif
12032
12033 #include <stdio.h>
12034
12035 #ifdef RTLD_GLOBAL
12036 #  define LT_DLGLOBAL           RTLD_GLOBAL
12037 #else
12038 #  ifdef DL_GLOBAL
12039 #    define LT_DLGLOBAL         DL_GLOBAL
12040 #  else
12041 #    define LT_DLGLOBAL         0
12042 #  endif
12043 #endif
12044
12045 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12046    find out it does not work in some platform. */
12047 #ifndef LT_DLLAZY_OR_NOW
12048 #  ifdef RTLD_LAZY
12049 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12050 #  else
12051 #    ifdef DL_LAZY
12052 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12053 #    else
12054 #      ifdef RTLD_NOW
12055 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12056 #      else
12057 #        ifdef DL_NOW
12058 #          define LT_DLLAZY_OR_NOW      DL_NOW
12059 #        else
12060 #          define LT_DLLAZY_OR_NOW      0
12061 #        endif
12062 #      endif
12063 #    endif
12064 #  endif
12065 #endif
12066
12067 /* When -fvisibility=hidden is used, assume the code has been annotated
12068    correspondingly for the symbols needed.  */
12069 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12070 int fnord () __attribute__((visibility("default")));
12071 #endif
12072
12073 int fnord () { return 42; }
12074 int main ()
12075 {
12076   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12077   int status = $lt_dlunknown;
12078
12079   if (self)
12080     {
12081       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12082       else
12083         {
12084           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12085           else puts (dlerror ());
12086         }
12087       /* dlclose (self); */
12088     }
12089   else
12090     puts (dlerror ());
12091
12092   return status;
12093 }
12094 _LT_EOF
12095   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12096   (eval $ac_link) 2>&5
12097   ac_status=$?
12098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12099   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12100     (./conftest; exit; ) >&5 2>/dev/null
12101     lt_status=$?
12102     case x$lt_status in
12103       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12104       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12105       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12106     esac
12107   else :
12108     # compilation failed
12109     lt_cv_dlopen_self=no
12110   fi
12111 fi
12112 rm -fr conftest*
12113
12114
12115 fi
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12117 $as_echo "$lt_cv_dlopen_self" >&6; }
12118
12119     if test yes = "$lt_cv_dlopen_self"; then
12120       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12121       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12122 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12123 if ${lt_cv_dlopen_self_static+:} false; then :
12124   $as_echo_n "(cached) " >&6
12125 else
12126           if test yes = "$cross_compiling"; then :
12127   lt_cv_dlopen_self_static=cross
12128 else
12129   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12130   lt_status=$lt_dlunknown
12131   cat > conftest.$ac_ext <<_LT_EOF
12132 #line $LINENO "configure"
12133 #include "confdefs.h"
12134
12135 #if HAVE_DLFCN_H
12136 #include <dlfcn.h>
12137 #endif
12138
12139 #include <stdio.h>
12140
12141 #ifdef RTLD_GLOBAL
12142 #  define LT_DLGLOBAL           RTLD_GLOBAL
12143 #else
12144 #  ifdef DL_GLOBAL
12145 #    define LT_DLGLOBAL         DL_GLOBAL
12146 #  else
12147 #    define LT_DLGLOBAL         0
12148 #  endif
12149 #endif
12150
12151 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12152    find out it does not work in some platform. */
12153 #ifndef LT_DLLAZY_OR_NOW
12154 #  ifdef RTLD_LAZY
12155 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12156 #  else
12157 #    ifdef DL_LAZY
12158 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12159 #    else
12160 #      ifdef RTLD_NOW
12161 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12162 #      else
12163 #        ifdef DL_NOW
12164 #          define LT_DLLAZY_OR_NOW      DL_NOW
12165 #        else
12166 #          define LT_DLLAZY_OR_NOW      0
12167 #        endif
12168 #      endif
12169 #    endif
12170 #  endif
12171 #endif
12172
12173 /* When -fvisibility=hidden is used, assume the code has been annotated
12174    correspondingly for the symbols needed.  */
12175 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12176 int fnord () __attribute__((visibility("default")));
12177 #endif
12178
12179 int fnord () { return 42; }
12180 int main ()
12181 {
12182   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12183   int status = $lt_dlunknown;
12184
12185   if (self)
12186     {
12187       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12188       else
12189         {
12190           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12191           else puts (dlerror ());
12192         }
12193       /* dlclose (self); */
12194     }
12195   else
12196     puts (dlerror ());
12197
12198   return status;
12199 }
12200 _LT_EOF
12201   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12202   (eval $ac_link) 2>&5
12203   ac_status=$?
12204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12205   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12206     (./conftest; exit; ) >&5 2>/dev/null
12207     lt_status=$?
12208     case x$lt_status in
12209       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12210       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12211       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12212     esac
12213   else :
12214     # compilation failed
12215     lt_cv_dlopen_self_static=no
12216   fi
12217 fi
12218 rm -fr conftest*
12219
12220
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12223 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12224     fi
12225
12226     CPPFLAGS=$save_CPPFLAGS
12227     LDFLAGS=$save_LDFLAGS
12228     LIBS=$save_LIBS
12229     ;;
12230   esac
12231
12232   case $lt_cv_dlopen_self in
12233   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12234   *) enable_dlopen_self=unknown ;;
12235   esac
12236
12237   case $lt_cv_dlopen_self_static in
12238   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12239   *) enable_dlopen_self_static=unknown ;;
12240   esac
12241 fi
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259 striplib=
12260 old_striplib=
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12262 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12263 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12264   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12265   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12267 $as_echo "yes" >&6; }
12268 else
12269 # FIXME - insert some real tests, host_os isn't really good enough
12270   case $host_os in
12271   darwin*)
12272     if test -n "$STRIP"; then
12273       striplib="$STRIP -x"
12274       old_striplib="$STRIP -S"
12275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276 $as_echo "yes" >&6; }
12277     else
12278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12280     fi
12281     ;;
12282   *)
12283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12285     ;;
12286   esac
12287 fi
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300   # Report what library types will actually be built
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12302 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12304 $as_echo "$can_build_shared" >&6; }
12305
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12307 $as_echo_n "checking whether to build shared libraries... " >&6; }
12308   test no = "$can_build_shared" && enable_shared=no
12309
12310   # On AIX, shared libraries and static libraries use the same namespace, and
12311   # are all built from PIC.
12312   case $host_os in
12313   aix3*)
12314     test yes = "$enable_shared" && enable_static=no
12315     if test -n "$RANLIB"; then
12316       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12317       postinstall_cmds='$RANLIB $lib'
12318     fi
12319     ;;
12320
12321   aix[4-9]*)
12322     if test ia64 != "$host_cpu"; then
12323       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12324       yes,aix,yes) ;;                   # shared object as lib.so file only
12325       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12326       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12327       esac
12328     fi
12329     ;;
12330   esac
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12332 $as_echo "$enable_shared" >&6; }
12333
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12335 $as_echo_n "checking whether to build static libraries... " >&6; }
12336   # Make sure either enable_shared or enable_static is yes.
12337   test yes = "$enable_shared" || enable_static=yes
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12339 $as_echo "$enable_static" >&6; }
12340
12341
12342
12343
12344 fi
12345 ac_ext=c
12346 ac_cpp='$CPP $CPPFLAGS'
12347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12350
12351 CC=$lt_save_CC
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367         ac_config_commands="$ac_config_commands libtool"
12368
12369
12370
12371
12372 # Only expand once:
12373
12374
12375
12376 FRIBIDI_MAJOR_VERSION=0
12377 FRIBIDI_MINOR_VERSION=19
12378 FRIBIDI_MICRO_VERSION=7
12379 FRIBIDI_VERSION=0.19.7
12380 FRIBIDI_INTERFACE_VERSION=3
12381 FRIBIDI_INTERFACE_AGE=6
12382 FRIBIDI_BINARY_AGE=3
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392 LT_VERSION_INFO=3:6:3
12393 LT_CURRENT_MINUS_AGE=0
12394
12395
12396
12397
12398
12399 # Checks for programs.
12400 ac_ext=c
12401 ac_cpp='$CPP $CPPFLAGS'
12402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12405 if test -n "$ac_tool_prefix"; then
12406   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if ${ac_cv_prog_CC+:} false; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   if test -n "$CC"; then
12414   ac_cv_prog_CC="$CC" # Let the user override the test.
12415 else
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12418 do
12419   IFS=$as_save_IFS
12420   test -z "$as_dir" && as_dir=.
12421     for ac_exec_ext in '' $ac_executable_extensions; do
12422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12423     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425     break 2
12426   fi
12427 done
12428   done
12429 IFS=$as_save_IFS
12430
12431 fi
12432 fi
12433 CC=$ac_cv_prog_CC
12434 if test -n "$CC"; then
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12436 $as_echo "$CC" >&6; }
12437 else
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 fi
12441
12442
12443 fi
12444 if test -z "$ac_cv_prog_CC"; then
12445   ac_ct_CC=$CC
12446   # Extract the first word of "gcc", so it can be a program name with args.
12447 set dummy gcc; ac_word=$2
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12451   $as_echo_n "(cached) " >&6
12452 else
12453   if test -n "$ac_ct_CC"; then
12454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12455 else
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12458 do
12459   IFS=$as_save_IFS
12460   test -z "$as_dir" && as_dir=.
12461     for ac_exec_ext in '' $ac_executable_extensions; do
12462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463     ac_cv_prog_ac_ct_CC="gcc"
12464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465     break 2
12466   fi
12467 done
12468   done
12469 IFS=$as_save_IFS
12470
12471 fi
12472 fi
12473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12474 if test -n "$ac_ct_CC"; then
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12476 $as_echo "$ac_ct_CC" >&6; }
12477 else
12478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12480 fi
12481
12482   if test "x$ac_ct_CC" = x; then
12483     CC=""
12484   else
12485     case $cross_compiling:$ac_tool_warned in
12486 yes:)
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12489 ac_tool_warned=yes ;;
12490 esac
12491     CC=$ac_ct_CC
12492   fi
12493 else
12494   CC="$ac_cv_prog_CC"
12495 fi
12496
12497 if test -z "$CC"; then
12498           if test -n "$ac_tool_prefix"; then
12499     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12500 set dummy ${ac_tool_prefix}cc; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if ${ac_cv_prog_CC+:} false; then :
12504   $as_echo_n "(cached) " >&6
12505 else
12506   if test -n "$CC"; then
12507   ac_cv_prog_CC="$CC" # Let the user override the test.
12508 else
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12511 do
12512   IFS=$as_save_IFS
12513   test -z "$as_dir" && as_dir=.
12514     for ac_exec_ext in '' $ac_executable_extensions; do
12515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12516     ac_cv_prog_CC="${ac_tool_prefix}cc"
12517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12518     break 2
12519   fi
12520 done
12521   done
12522 IFS=$as_save_IFS
12523
12524 fi
12525 fi
12526 CC=$ac_cv_prog_CC
12527 if test -n "$CC"; then
12528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12529 $as_echo "$CC" >&6; }
12530 else
12531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12533 fi
12534
12535
12536   fi
12537 fi
12538 if test -z "$CC"; then
12539   # Extract the first word of "cc", so it can be a program name with args.
12540 set dummy cc; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_prog_CC+:} false; then :
12544   $as_echo_n "(cached) " >&6
12545 else
12546   if test -n "$CC"; then
12547   ac_cv_prog_CC="$CC" # Let the user override the test.
12548 else
12549   ac_prog_rejected=no
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12552 do
12553   IFS=$as_save_IFS
12554   test -z "$as_dir" && as_dir=.
12555     for ac_exec_ext in '' $ac_executable_extensions; do
12556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12557     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12558        ac_prog_rejected=yes
12559        continue
12560      fi
12561     ac_cv_prog_CC="cc"
12562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563     break 2
12564   fi
12565 done
12566   done
12567 IFS=$as_save_IFS
12568
12569 if test $ac_prog_rejected = yes; then
12570   # We found a bogon in the path, so make sure we never use it.
12571   set dummy $ac_cv_prog_CC
12572   shift
12573   if test $# != 0; then
12574     # We chose a different compiler from the bogus one.
12575     # However, it has the same basename, so the bogon will be chosen
12576     # first if we set CC to just the basename; use the full file name.
12577     shift
12578     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12579   fi
12580 fi
12581 fi
12582 fi
12583 CC=$ac_cv_prog_CC
12584 if test -n "$CC"; then
12585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12586 $as_echo "$CC" >&6; }
12587 else
12588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12590 fi
12591
12592
12593 fi
12594 if test -z "$CC"; then
12595   if test -n "$ac_tool_prefix"; then
12596   for ac_prog in cl.exe
12597   do
12598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if ${ac_cv_prog_CC+:} false; then :
12603   $as_echo_n "(cached) " >&6
12604 else
12605   if test -n "$CC"; then
12606   ac_cv_prog_CC="$CC" # Let the user override the test.
12607 else
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12610 do
12611   IFS=$as_save_IFS
12612   test -z "$as_dir" && as_dir=.
12613     for ac_exec_ext in '' $ac_executable_extensions; do
12614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12615     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617     break 2
12618   fi
12619 done
12620   done
12621 IFS=$as_save_IFS
12622
12623 fi
12624 fi
12625 CC=$ac_cv_prog_CC
12626 if test -n "$CC"; then
12627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12628 $as_echo "$CC" >&6; }
12629 else
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12632 fi
12633
12634
12635     test -n "$CC" && break
12636   done
12637 fi
12638 if test -z "$CC"; then
12639   ac_ct_CC=$CC
12640   for ac_prog in cl.exe
12641 do
12642   # Extract the first word of "$ac_prog", so it can be a program name with args.
12643 set dummy $ac_prog; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645 $as_echo_n "checking for $ac_word... " >&6; }
12646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12647   $as_echo_n "(cached) " >&6
12648 else
12649   if test -n "$ac_ct_CC"; then
12650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12651 else
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12654 do
12655   IFS=$as_save_IFS
12656   test -z "$as_dir" && as_dir=.
12657     for ac_exec_ext in '' $ac_executable_extensions; do
12658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12659     ac_cv_prog_ac_ct_CC="$ac_prog"
12660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661     break 2
12662   fi
12663 done
12664   done
12665 IFS=$as_save_IFS
12666
12667 fi
12668 fi
12669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12670 if test -n "$ac_ct_CC"; then
12671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12672 $as_echo "$ac_ct_CC" >&6; }
12673 else
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12676 fi
12677
12678
12679   test -n "$ac_ct_CC" && break
12680 done
12681
12682   if test "x$ac_ct_CC" = x; then
12683     CC=""
12684   else
12685     case $cross_compiling:$ac_tool_warned in
12686 yes:)
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12689 ac_tool_warned=yes ;;
12690 esac
12691     CC=$ac_ct_CC
12692   fi
12693 fi
12694
12695 fi
12696
12697
12698 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12700 as_fn_error $? "no acceptable C compiler found in \$PATH
12701 See \`config.log' for more details" "$LINENO" 5; }
12702
12703 # Provide some information about the compiler.
12704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12705 set X $ac_compile
12706 ac_compiler=$2
12707 for ac_option in --version -v -V -qversion; do
12708   { { ac_try="$ac_compiler $ac_option >&5"
12709 case "(($ac_try" in
12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711   *) ac_try_echo=$ac_try;;
12712 esac
12713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12714 $as_echo "$ac_try_echo"; } >&5
12715   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12716   ac_status=$?
12717   if test -s conftest.err; then
12718     sed '10a\
12719 ... rest of stderr output deleted ...
12720          10q' conftest.err >conftest.er1
12721     cat conftest.er1 >&5
12722   fi
12723   rm -f conftest.er1 conftest.err
12724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12725   test $ac_status = 0; }
12726 done
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12729 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12730 if ${ac_cv_c_compiler_gnu+:} false; then :
12731   $as_echo_n "(cached) " >&6
12732 else
12733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h.  */
12735
12736 int
12737 main ()
12738 {
12739 #ifndef __GNUC__
12740        choke me
12741 #endif
12742
12743   ;
12744   return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_c_try_compile "$LINENO"; then :
12748   ac_compiler_gnu=yes
12749 else
12750   ac_compiler_gnu=no
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12754
12755 fi
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12757 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12758 if test $ac_compiler_gnu = yes; then
12759   GCC=yes
12760 else
12761   GCC=
12762 fi
12763 ac_test_CFLAGS=${CFLAGS+set}
12764 ac_save_CFLAGS=$CFLAGS
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12766 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12767 if ${ac_cv_prog_cc_g+:} false; then :
12768   $as_echo_n "(cached) " >&6
12769 else
12770   ac_save_c_werror_flag=$ac_c_werror_flag
12771    ac_c_werror_flag=yes
12772    ac_cv_prog_cc_g=no
12773    CFLAGS="-g"
12774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h.  */
12776
12777 int
12778 main ()
12779 {
12780
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 if ac_fn_c_try_compile "$LINENO"; then :
12786   ac_cv_prog_cc_g=yes
12787 else
12788   CFLAGS=""
12789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h.  */
12791
12792 int
12793 main ()
12794 {
12795
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801
12802 else
12803   ac_c_werror_flag=$ac_save_c_werror_flag
12804          CFLAGS="-g"
12805          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h.  */
12807
12808 int
12809 main ()
12810 {
12811
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_compile "$LINENO"; then :
12817   ac_cv_prog_cc_g=yes
12818 fi
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 fi
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824    ac_c_werror_flag=$ac_save_c_werror_flag
12825 fi
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12827 $as_echo "$ac_cv_prog_cc_g" >&6; }
12828 if test "$ac_test_CFLAGS" = set; then
12829   CFLAGS=$ac_save_CFLAGS
12830 elif test $ac_cv_prog_cc_g = yes; then
12831   if test "$GCC" = yes; then
12832     CFLAGS="-g -O2"
12833   else
12834     CFLAGS="-g"
12835   fi
12836 else
12837   if test "$GCC" = yes; then
12838     CFLAGS="-O2"
12839   else
12840     CFLAGS=
12841   fi
12842 fi
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12845 if ${ac_cv_prog_cc_c89+:} false; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   ac_cv_prog_cc_c89=no
12849 ac_save_CC=$CC
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h.  */
12852 #include <stdarg.h>
12853 #include <stdio.h>
12854 struct stat;
12855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12856 struct buf { int x; };
12857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12858 static char *e (p, i)
12859      char **p;
12860      int i;
12861 {
12862   return p[i];
12863 }
12864 static char *f (char * (*g) (char **, int), char **p, ...)
12865 {
12866   char *s;
12867   va_list v;
12868   va_start (v,p);
12869   s = g (p, va_arg (v,int));
12870   va_end (v);
12871   return s;
12872 }
12873
12874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12875    function prototypes and stuff, but not '\xHH' hex character constants.
12876    These don't provoke an error unfortunately, instead are silently treated
12877    as 'x'.  The following induces an error, until -std is added to get
12878    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12879    array size at least.  It's necessary to write '\x00'==0 to get something
12880    that's true only with -std.  */
12881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12882
12883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12884    inside strings and character constants.  */
12885 #define FOO(x) 'x'
12886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12887
12888 int test (int i, double x);
12889 struct s1 {int (*f) (int a);};
12890 struct s2 {int (*f) (double a);};
12891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12892 int argc;
12893 char **argv;
12894 int
12895 main ()
12896 {
12897 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12903         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12904 do
12905   CC="$ac_save_CC $ac_arg"
12906   if ac_fn_c_try_compile "$LINENO"; then :
12907   ac_cv_prog_cc_c89=$ac_arg
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext
12910   test "x$ac_cv_prog_cc_c89" != "xno" && break
12911 done
12912 rm -f conftest.$ac_ext
12913 CC=$ac_save_CC
12914
12915 fi
12916 # AC_CACHE_VAL
12917 case "x$ac_cv_prog_cc_c89" in
12918   x)
12919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12920 $as_echo "none needed" >&6; } ;;
12921   xno)
12922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12923 $as_echo "unsupported" >&6; } ;;
12924   *)
12925     CC="$CC $ac_cv_prog_cc_c89"
12926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12928 esac
12929 if test "x$ac_cv_prog_cc_c89" != xno; then :
12930
12931 fi
12932
12933 ac_ext=c
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938
12939 ac_ext=c
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12945 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12946 if ${am_cv_prog_cc_c_o+:} false; then :
12947   $as_echo_n "(cached) " >&6
12948 else
12949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h.  */
12951
12952 int
12953 main ()
12954 {
12955
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960   # Make sure it works both with $CC and with simple cc.
12961   # Following AC_PROG_CC_C_O, we do the test twice because some
12962   # compilers refuse to overwrite an existing .o file with -o,
12963   # though they will create one.
12964   am_cv_prog_cc_c_o=yes
12965   for am_i in 1 2; do
12966     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12967    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12968    ac_status=$?
12969    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970    (exit $ac_status); } \
12971          && test -f conftest2.$ac_objext; then
12972       : OK
12973     else
12974       am_cv_prog_cc_c_o=no
12975       break
12976     fi
12977   done
12978   rm -f core conftest*
12979   unset am_i
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12982 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12983 if test "$am_cv_prog_cc_c_o" != yes; then
12984    # Losing compiler, so override with the script.
12985    # FIXME: It is wrong to rewrite CC.
12986    # But if we don't then we get into trouble of one sort or another.
12987    # A longer-term fix would be to have automake use am__CC in this case,
12988    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12989    CC="$am_aux_dir/compile $CC"
12990 fi
12991 ac_ext=c
12992 ac_cpp='$CPP $CPPFLAGS'
12993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12996
12997
12998 depcc="$CC"   am_compiler_list=
12999
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13001 $as_echo_n "checking dependency style of $depcc... " >&6; }
13002 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13003   $as_echo_n "(cached) " >&6
13004 else
13005   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13006   # We make a subdir and do the tests there.  Otherwise we can end up
13007   # making bogus files that we don't know about and never remove.  For
13008   # instance it was reported that on HP-UX the gcc test will end up
13009   # making a dummy file named 'D' -- because '-MD' means "put the output
13010   # in D".
13011   rm -rf conftest.dir
13012   mkdir conftest.dir
13013   # Copy depcomp to subdir because otherwise we won't find it if we're
13014   # using a relative directory.
13015   cp "$am_depcomp" conftest.dir
13016   cd conftest.dir
13017   # We will build objects and dependencies in a subdirectory because
13018   # it helps to detect inapplicable dependency modes.  For instance
13019   # both Tru64's cc and ICC support -MD to output dependencies as a
13020   # side effect of compilation, but ICC will put the dependencies in
13021   # the current directory while Tru64 will put them in the object
13022   # directory.
13023   mkdir sub
13024
13025   am_cv_CC_dependencies_compiler_type=none
13026   if test "$am_compiler_list" = ""; then
13027      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13028   fi
13029   am__universal=false
13030   case " $depcc " in #(
13031      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13032      esac
13033
13034   for depmode in $am_compiler_list; do
13035     # Setup a source with many dependencies, because some compilers
13036     # like to wrap large dependency lists on column 80 (with \), and
13037     # we should not choose a depcomp mode which is confused by this.
13038     #
13039     # We need to recreate these files for each test, as the compiler may
13040     # overwrite some of them when testing with obscure command lines.
13041     # This happens at least with the AIX C compiler.
13042     : > sub/conftest.c
13043     for i in 1 2 3 4 5 6; do
13044       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13045       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13046       # Solaris 10 /bin/sh.
13047       echo '/* dummy */' > sub/conftst$i.h
13048     done
13049     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13050
13051     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13052     # mode.  It turns out that the SunPro C++ compiler does not properly
13053     # handle '-M -o', and we need to detect this.  Also, some Intel
13054     # versions had trouble with output in subdirs.
13055     am__obj=sub/conftest.${OBJEXT-o}
13056     am__minus_obj="-o $am__obj"
13057     case $depmode in
13058     gcc)
13059       # This depmode causes a compiler race in universal mode.
13060       test "$am__universal" = false || continue
13061       ;;
13062     nosideeffect)
13063       # After this tag, mechanisms are not by side-effect, so they'll
13064       # only be used when explicitly requested.
13065       if test "x$enable_dependency_tracking" = xyes; then
13066         continue
13067       else
13068         break
13069       fi
13070       ;;
13071     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13072       # This compiler won't grok '-c -o', but also, the minuso test has
13073       # not run yet.  These depmodes are late enough in the game, and
13074       # so weak that their functioning should not be impacted.
13075       am__obj=conftest.${OBJEXT-o}
13076       am__minus_obj=
13077       ;;
13078     none) break ;;
13079     esac
13080     if depmode=$depmode \
13081        source=sub/conftest.c object=$am__obj \
13082        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13083        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13084          >/dev/null 2>conftest.err &&
13085        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13086        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13087        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13088        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13089       # icc doesn't choke on unknown options, it will just issue warnings
13090       # or remarks (even with -Werror).  So we grep stderr for any message
13091       # that says an option was ignored or not supported.
13092       # When given -MP, icc 7.0 and 7.1 complain thusly:
13093       #   icc: Command line warning: ignoring option '-M'; no argument required
13094       # The diagnosis changed in icc 8.0:
13095       #   icc: Command line remark: option '-MP' not supported
13096       if (grep 'ignoring option' conftest.err ||
13097           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13098         am_cv_CC_dependencies_compiler_type=$depmode
13099         break
13100       fi
13101     fi
13102   done
13103
13104   cd ..
13105   rm -rf conftest.dir
13106 else
13107   am_cv_CC_dependencies_compiler_type=none
13108 fi
13109
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13112 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13113 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13114
13115  if
13116   test "x$enable_dependency_tracking" != xno \
13117   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13118   am__fastdepCC_TRUE=
13119   am__fastdepCC_FALSE='#'
13120 else
13121   am__fastdepCC_TRUE='#'
13122   am__fastdepCC_FALSE=
13123 fi
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13135         if test -n "$ac_tool_prefix"; then
13136   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13137 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13141   $as_echo_n "(cached) " >&6
13142 else
13143   case $PKG_CONFIG in
13144   [\\/]* | ?:[\\/]*)
13145   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13146   ;;
13147   *)
13148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149 for as_dir in $PATH
13150 do
13151   IFS=$as_save_IFS
13152   test -z "$as_dir" && as_dir=.
13153     for ac_exec_ext in '' $ac_executable_extensions; do
13154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13155     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157     break 2
13158   fi
13159 done
13160   done
13161 IFS=$as_save_IFS
13162
13163   ;;
13164 esac
13165 fi
13166 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13167 if test -n "$PKG_CONFIG"; then
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13169 $as_echo "$PKG_CONFIG" >&6; }
13170 else
13171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175
13176 fi
13177 if test -z "$ac_cv_path_PKG_CONFIG"; then
13178   ac_pt_PKG_CONFIG=$PKG_CONFIG
13179   # Extract the first word of "pkg-config", so it can be a program name with args.
13180 set dummy pkg-config; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13184   $as_echo_n "(cached) " >&6
13185 else
13186   case $ac_pt_PKG_CONFIG in
13187   [\\/]* | ?:[\\/]*)
13188   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13189   ;;
13190   *)
13191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13193 do
13194   IFS=$as_save_IFS
13195   test -z "$as_dir" && as_dir=.
13196     for ac_exec_ext in '' $ac_executable_extensions; do
13197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13198     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13200     break 2
13201   fi
13202 done
13203   done
13204 IFS=$as_save_IFS
13205
13206   ;;
13207 esac
13208 fi
13209 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13210 if test -n "$ac_pt_PKG_CONFIG"; then
13211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13212 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13213 else
13214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13216 fi
13217
13218   if test "x$ac_pt_PKG_CONFIG" = x; then
13219     PKG_CONFIG=""
13220   else
13221     case $cross_compiling:$ac_tool_warned in
13222 yes:)
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13225 ac_tool_warned=yes ;;
13226 esac
13227     PKG_CONFIG=$ac_pt_PKG_CONFIG
13228   fi
13229 else
13230   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13231 fi
13232
13233 fi
13234 if test -n "$PKG_CONFIG"; then
13235         _pkg_min_version=0.9.0
13236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13237 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13238         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13239                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13241         else
13242                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13244                 PKG_CONFIG=""
13245         fi
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
13248 $as_echo_n "checking for native Win32... " >&6; }
13249   case $build_os in
13250     mingw*) os_win32=yes ;;
13251     *) os_win32=no ;;
13252   esac
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
13254 $as_echo "$os_win32" >&6; }
13255  if test "$os_win32" = "yes"; then
13256   OS_WIN32_TRUE=
13257   OS_WIN32_FALSE='#'
13258 else
13259   OS_WIN32_TRUE='#'
13260   OS_WIN32_FALSE=
13261 fi
13262
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
13264 $as_echo_n "checking for some Win32 platform... " >&6; }
13265   case $build_os in
13266     mingw*|cygwin*) platform_win32=yes ;;
13267     *) platform_win32=no ;;
13268   esac
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
13270 $as_echo "$platform_win32" >&6; }
13271  if test "$platform_win32" = "yes"; then
13272   PLATFORM_WIN32_TRUE=
13273   PLATFORM_WIN32_FALSE='#'
13274 else
13275   PLATFORM_WIN32_TRUE='#'
13276   PLATFORM_WIN32_FALSE=
13277 fi
13278
13279
13280
13281 # Checks for header files.
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13283 $as_echo_n "checking for ANSI C header files... " >&6; }
13284 if ${ac_cv_header_stdc+:} false; then :
13285   $as_echo_n "(cached) " >&6
13286 else
13287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h.  */
13289 #include <stdlib.h>
13290 #include <stdarg.h>
13291 #include <string.h>
13292 #include <float.h>
13293
13294 int
13295 main ()
13296 {
13297
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_c_try_compile "$LINENO"; then :
13303   ac_cv_header_stdc=yes
13304 else
13305   ac_cv_header_stdc=no
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308
13309 if test $ac_cv_header_stdc = yes; then
13310   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h.  */
13313 #include <string.h>
13314
13315 _ACEOF
13316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13317   $EGREP "memchr" >/dev/null 2>&1; then :
13318
13319 else
13320   ac_cv_header_stdc=no
13321 fi
13322 rm -f conftest*
13323
13324 fi
13325
13326 if test $ac_cv_header_stdc = yes; then
13327   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h.  */
13330 #include <stdlib.h>
13331
13332 _ACEOF
13333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13334   $EGREP "free" >/dev/null 2>&1; then :
13335
13336 else
13337   ac_cv_header_stdc=no
13338 fi
13339 rm -f conftest*
13340
13341 fi
13342
13343 if test $ac_cv_header_stdc = yes; then
13344   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13345   if test "$cross_compiling" = yes; then :
13346   :
13347 else
13348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h.  */
13350 #include <ctype.h>
13351 #include <stdlib.h>
13352 #if ((' ' & 0x0FF) == 0x020)
13353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13355 #else
13356 # define ISLOWER(c) \
13357                    (('a' <= (c) && (c) <= 'i') \
13358                      || ('j' <= (c) && (c) <= 'r') \
13359                      || ('s' <= (c) && (c) <= 'z'))
13360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13361 #endif
13362
13363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13364 int
13365 main ()
13366 {
13367   int i;
13368   for (i = 0; i < 256; i++)
13369     if (XOR (islower (i), ISLOWER (i))
13370         || toupper (i) != TOUPPER (i))
13371       return 2;
13372   return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_run "$LINENO"; then :
13376
13377 else
13378   ac_cv_header_stdc=no
13379 fi
13380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13381   conftest.$ac_objext conftest.beam conftest.$ac_ext
13382 fi
13383
13384 fi
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13387 $as_echo "$ac_cv_header_stdc" >&6; }
13388 if test $ac_cv_header_stdc = yes; then
13389
13390 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13391
13392 fi
13393
13394 for ac_header in stdlib.h string.h strings.h inttypes.h wchar.h asm/page.h sys/times.h
13395 do :
13396   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13397 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13399   cat >>confdefs.h <<_ACEOF
13400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13401 _ACEOF
13402
13403 fi
13404
13405 done
13406
13407
13408 # Checks for typedefs and structures.
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13410 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13411 if ${ac_cv_c_const+:} false; then :
13412   $as_echo_n "(cached) " >&6
13413 else
13414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h.  */
13416
13417 int
13418 main ()
13419 {
13420
13421 #ifndef __cplusplus
13422   /* Ultrix mips cc rejects this sort of thing.  */
13423   typedef int charset[2];
13424   const charset cs = { 0, 0 };
13425   /* SunOS 4.1.1 cc rejects this.  */
13426   char const *const *pcpcc;
13427   char **ppc;
13428   /* NEC SVR4.0.2 mips cc rejects this.  */
13429   struct point {int x, y;};
13430   static struct point const zero = {0,0};
13431   /* AIX XL C 1.02.0.0 rejects this.
13432      It does not let you subtract one const X* pointer from another in
13433      an arm of an if-expression whose if-part is not a constant
13434      expression */
13435   const char *g = "string";
13436   pcpcc = &g + (g ? g-g : 0);
13437   /* HPUX 7.0 cc rejects these. */
13438   ++pcpcc;
13439   ppc = (char**) pcpcc;
13440   pcpcc = (char const *const *) ppc;
13441   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13442     char tx;
13443     char *t = &tx;
13444     char const *s = 0 ? (char *) 0 : (char const *) 0;
13445
13446     *t++ = 0;
13447     if (s) return 0;
13448   }
13449   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13450     int x[] = {25, 17};
13451     const int *foo = &x[0];
13452     ++foo;
13453   }
13454   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13455     typedef const int *iptr;
13456     iptr p = 0;
13457     ++p;
13458   }
13459   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13460        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13461     struct s { int j; const int *ap[3]; } bx;
13462     struct s *b = &bx; b->j = 5;
13463   }
13464   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13465     const int foo = 10;
13466     if (!foo) return 0;
13467   }
13468   return !cs[0] && !zero.x;
13469 #endif
13470
13471   ;
13472   return 0;
13473 }
13474 _ACEOF
13475 if ac_fn_c_try_compile "$LINENO"; then :
13476   ac_cv_c_const=yes
13477 else
13478   ac_cv_c_const=no
13479 fi
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 fi
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13483 $as_echo "$ac_cv_c_const" >&6; }
13484 if test $ac_cv_c_const = no; then
13485
13486 $as_echo "#define const /**/" >>confdefs.h
13487
13488 fi
13489
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
13491 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
13492 if ${ac_cv_c_stringize+:} false; then :
13493   $as_echo_n "(cached) " >&6
13494 else
13495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h.  */
13497 #define x(y) #y
13498
13499 char *s = x(teststring);
13500 _ACEOF
13501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13502   $EGREP "#teststring" >/dev/null 2>&1; then :
13503   ac_cv_c_stringize=no
13504 else
13505   ac_cv_c_stringize=yes
13506 fi
13507 rm -f conftest*
13508
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
13511 $as_echo "$ac_cv_c_stringize" >&6; }
13512 if test $ac_cv_c_stringize = yes; then
13513
13514 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
13515
13516 fi
13517
13518 # The cast to long int works around a bug in the HP C Compiler
13519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13521 # This bug is HP SR number 8606223364.
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13523 $as_echo_n "checking size of int... " >&6; }
13524 if ${ac_cv_sizeof_int+:} false; then :
13525   $as_echo_n "(cached) " >&6
13526 else
13527   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13528
13529 else
13530   if test "$ac_cv_type_int" = yes; then
13531      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13533 as_fn_error 77 "cannot compute sizeof (int)
13534 See \`config.log' for more details" "$LINENO" 5; }
13535    else
13536      ac_cv_sizeof_int=0
13537    fi
13538 fi
13539
13540 fi
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13542 $as_echo "$ac_cv_sizeof_int" >&6; }
13543
13544
13545
13546 cat >>confdefs.h <<_ACEOF
13547 #define SIZEOF_INT $ac_cv_sizeof_int
13548 _ACEOF
13549
13550
13551 SIZEOF_INT=$ac_cv_sizeof_int
13552
13553 # The cast to long int works around a bug in the HP C Compiler
13554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13556 # This bug is HP SR number 8606223364.
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13558 $as_echo_n "checking size of short... " >&6; }
13559 if ${ac_cv_sizeof_short+:} false; then :
13560   $as_echo_n "(cached) " >&6
13561 else
13562   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13563
13564 else
13565   if test "$ac_cv_type_short" = yes; then
13566      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13568 as_fn_error 77 "cannot compute sizeof (short)
13569 See \`config.log' for more details" "$LINENO" 5; }
13570    else
13571      ac_cv_sizeof_short=0
13572    fi
13573 fi
13574
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13577 $as_echo "$ac_cv_sizeof_short" >&6; }
13578
13579
13580
13581 cat >>confdefs.h <<_ACEOF
13582 #define SIZEOF_SHORT $ac_cv_sizeof_short
13583 _ACEOF
13584
13585
13586 # The cast to long int works around a bug in the HP C Compiler
13587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13588 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13589 # This bug is HP SR number 8606223364.
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13591 $as_echo_n "checking size of void *... " >&6; }
13592 if ${ac_cv_sizeof_void_p+:} false; then :
13593   $as_echo_n "(cached) " >&6
13594 else
13595   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13596
13597 else
13598   if test "$ac_cv_type_void_p" = yes; then
13599      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13601 as_fn_error 77 "cannot compute sizeof (void *)
13602 See \`config.log' for more details" "$LINENO" 5; }
13603    else
13604      ac_cv_sizeof_void_p=0
13605    fi
13606 fi
13607
13608 fi
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13610 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13611
13612
13613
13614 cat >>confdefs.h <<_ACEOF
13615 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13616 _ACEOF
13617
13618
13619 # The cast to long int works around a bug in the HP C Compiler
13620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13622 # This bug is HP SR number 8606223364.
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13624 $as_echo_n "checking size of wchar_t... " >&6; }
13625 if ${ac_cv_sizeof_wchar_t+:} false; then :
13626   $as_echo_n "(cached) " >&6
13627 else
13628   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
13629
13630 else
13631   if test "$ac_cv_type_wchar_t" = yes; then
13632      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13634 as_fn_error 77 "cannot compute sizeof (wchar_t)
13635 See \`config.log' for more details" "$LINENO" 5; }
13636    else
13637      ac_cv_sizeof_wchar_t=0
13638    fi
13639 fi
13640
13641 fi
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13643 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
13644
13645
13646
13647 cat >>confdefs.h <<_ACEOF
13648 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
13649 _ACEOF
13650
13651
13652
13653 # Checks for compiler characteristics.
13654 if test "x$GCC" = "xyes"; then
13655   CFLAGS="$CFLAGS -Wall -ansi "
13656 fi
13657
13658 # Checks for library functions.
13659 for ac_func in memmove memset strdup
13660 do :
13661   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13664   cat >>confdefs.h <<_ACEOF
13665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13666 _ACEOF
13667
13668 fi
13669 done
13670
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13672 $as_echo_n "checking return type of signal handlers... " >&6; }
13673 if ${ac_cv_type_signal+:} false; then :
13674   $as_echo_n "(cached) " >&6
13675 else
13676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h.  */
13678 #include <sys/types.h>
13679 #include <signal.h>
13680
13681 int
13682 main ()
13683 {
13684 return *(signal (0, 0)) (0) == 1;
13685   ;
13686   return 0;
13687 }
13688 _ACEOF
13689 if ac_fn_c_try_compile "$LINENO"; then :
13690   ac_cv_type_signal=int
13691 else
13692   ac_cv_type_signal=void
13693 fi
13694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13695 fi
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13697 $as_echo "$ac_cv_type_signal" >&6; }
13698
13699 cat >>confdefs.h <<_ACEOF
13700 #define RETSIGTYPE $ac_cv_type_signal
13701 _ACEOF
13702
13703
13704
13705 # Checks for configure options
13706
13707 # --enable-debug
13708
13709 # Check whether --enable-debug was given.
13710 if test "${enable_debug+set}" = set; then :
13711   enableval=$enable_debug;
13712 else
13713   enable_debug=yes
13714 fi
13715
13716 if test x$enable_debug = xyes; then
13717
13718 $as_echo "#define DEBUG 1" >>confdefs.h
13719
13720 fi
13721
13722 # --disable-deprecated
13723 # Check whether --enable-deprecated was given.
13724 if test "${enable_deprecated+set}" = set; then :
13725   enableval=$enable_deprecated;
13726 fi
13727
13728 if test x$enable_deprecated = xno; then
13729         FRIBIDI_NO_DEPRECATED=1
13730 else
13731         FRIBIDI_NO_DEPRECATED=0
13732 fi
13733
13734
13735
13736 $as_echo "#define USE_SIMPLE_MALLOC 1" >>confdefs.h
13737
13738
13739 # --disable-charsets
13740 # Check whether --enable-charsets was given.
13741 if test "${enable_charsets+set}" = set; then :
13742   enableval=$enable_charsets;
13743 fi
13744
13745 if test x$enable_charsets = xno; then
13746         FRIBIDI_CHARSETS=0
13747 else
13748         FRIBIDI_CHARSETS=1
13749 fi
13750
13751  if test x$FRIBIDI_CHARSETS = x1; then
13752   FRIBIDI_CHARSETS_TRUE=
13753   FRIBIDI_CHARSETS_FALSE='#'
13754 else
13755   FRIBIDI_CHARSETS_TRUE='#'
13756   FRIBIDI_CHARSETS_FALSE=
13757 fi
13758
13759
13760 # --with[out]-glib
13761
13762 # Check whether --with-glib was given.
13763 if test "${with_glib+set}" = set; then :
13764   withval=$with_glib;
13765 fi
13766
13767 GLIB_PACKAGE=glib-2.0
13768 GLIB_MINVERSION=2.4
13769 GLIB_LIBS=
13770 GLIB_CFLAGS=
13771 if test x$with_glib = xyes; then
13772
13773 pkg_failed=no
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
13775 $as_echo_n "checking for GLIB... " >&6; }
13776
13777 if test -n "$GLIB_CFLAGS"; then
13778     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
13779  elif test -n "$PKG_CONFIG"; then
13780     if test -n "$PKG_CONFIG" && \
13781     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
13782   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
13783   ac_status=$?
13784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13785   test $ac_status = 0; }; then
13786   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
13787                       test "x$?" != "x0" && pkg_failed=yes
13788 else
13789   pkg_failed=yes
13790 fi
13791  else
13792     pkg_failed=untried
13793 fi
13794 if test -n "$GLIB_LIBS"; then
13795     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
13796  elif test -n "$PKG_CONFIG"; then
13797     if test -n "$PKG_CONFIG" && \
13798     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
13799   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
13800   ac_status=$?
13801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13802   test $ac_status = 0; }; then
13803   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
13804                       test "x$?" != "x0" && pkg_failed=yes
13805 else
13806   pkg_failed=yes
13807 fi
13808  else
13809     pkg_failed=untried
13810 fi
13811
13812
13813
13814 if test $pkg_failed = yes; then
13815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13817
13818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13819         _pkg_short_errors_supported=yes
13820 else
13821         _pkg_short_errors_supported=no
13822 fi
13823         if test $_pkg_short_errors_supported = yes; then
13824                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>&1`
13825         else
13826                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>&1`
13827         fi
13828         # Put the nasty error message in config.log where it belongs
13829         echo "$GLIB_PKG_ERRORS" >&5
13830
13831         as_fn_error $? "Package requirements ($GLIB_PACKAGE >= $GLIB_MINVERSION) were not met:
13832
13833 $GLIB_PKG_ERRORS
13834
13835 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13836 installed software in a non-standard prefix.
13837
13838 Alternatively, you may set the environment variables GLIB_CFLAGS
13839 and GLIB_LIBS to avoid the need to call pkg-config.
13840 See the pkg-config man page for more details." "$LINENO" 5
13841 elif test $pkg_failed = untried; then
13842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13846 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13847 is in your PATH or set the PKG_CONFIG environment variable to the full
13848 path to pkg-config.
13849
13850 Alternatively, you may set the environment variables GLIB_CFLAGS
13851 and GLIB_LIBS to avoid the need to call pkg-config.
13852 See the pkg-config man page for more details.
13853
13854 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13855 See \`config.log' for more details" "$LINENO" 5; }
13856 else
13857         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
13858         GLIB_LIBS=$pkg_cv_GLIB_LIBS
13859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13860 $as_echo "yes" >&6; }
13861
13862 fi
13863         FRIBIDI_USE_GLIB=1
13864 else
13865 if test x$with_glib = xno; then
13866         FRIBIDI_USE_GLIB=0
13867 else
13868
13869 pkg_failed=no
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
13871 $as_echo_n "checking for GLIB... " >&6; }
13872
13873 if test -n "$GLIB_CFLAGS"; then
13874     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
13875  elif test -n "$PKG_CONFIG"; then
13876     if test -n "$PKG_CONFIG" && \
13877     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
13878   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
13879   ac_status=$?
13880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13881   test $ac_status = 0; }; then
13882   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
13883                       test "x$?" != "x0" && pkg_failed=yes
13884 else
13885   pkg_failed=yes
13886 fi
13887  else
13888     pkg_failed=untried
13889 fi
13890 if test -n "$GLIB_LIBS"; then
13891     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
13892  elif test -n "$PKG_CONFIG"; then
13893     if test -n "$PKG_CONFIG" && \
13894     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
13895   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
13896   ac_status=$?
13897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13898   test $ac_status = 0; }; then
13899   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
13900                       test "x$?" != "x0" && pkg_failed=yes
13901 else
13902   pkg_failed=yes
13903 fi
13904  else
13905     pkg_failed=untried
13906 fi
13907
13908
13909
13910 if test $pkg_failed = yes; then
13911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13913
13914 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13915         _pkg_short_errors_supported=yes
13916 else
13917         _pkg_short_errors_supported=no
13918 fi
13919         if test $_pkg_short_errors_supported = yes; then
13920                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>&1`
13921         else
13922                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>&1`
13923         fi
13924         # Put the nasty error message in config.log where it belongs
13925         echo "$GLIB_PKG_ERRORS" >&5
13926
13927         FRIBIDI_USE_GLIB=0
13928 elif test $pkg_failed = untried; then
13929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 $as_echo "no" >&6; }
13931         FRIBIDI_USE_GLIB=0
13932 else
13933         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
13934         GLIB_LIBS=$pkg_cv_GLIB_LIBS
13935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13936 $as_echo "yes" >&6; }
13937         FRIBIDI_USE_GLIB=1
13938 fi
13939 fi
13940 fi
13941 if test x$FRIBIDI_USE_GLIB = x0; then
13942         GLIB_PACKAGE=
13943 fi
13944
13945  if test x$FRIBIDI_USE_GLIB = x1; then
13946   FRIBIDI_USE_GLIB_TRUE=
13947   FRIBIDI_USE_GLIB_FALSE='#'
13948 else
13949   FRIBIDI_USE_GLIB_TRUE='#'
13950   FRIBIDI_USE_GLIB_FALSE=
13951 fi
13952
13953
13954
13955 MISC_CFLAGS="$GLIB_CFLAGS"
13956 MISC_LIBS="$GLIB_LIBS"
13957 MISC_PACKAGES="$GLIB_PACKAGE"
13958
13959
13960
13961
13962 # Generate output
13963 ac_config_files="$ac_config_files fribidi.pc lib/fribidi-config.h Makefile charset/Makefile gen.tab/Makefile lib/Makefile bin/Makefile doc/Makefile test/Makefile"
13964
13965 cat >confcache <<\_ACEOF
13966 # This file is a shell script that caches the results of configure
13967 # tests run on this system so they can be shared between configure
13968 # scripts and configure runs, see configure's option --config-cache.
13969 # It is not useful on other systems.  If it contains results you don't
13970 # want to keep, you may remove or edit it.
13971 #
13972 # config.status only pays attention to the cache file if you give it
13973 # the --recheck option to rerun configure.
13974 #
13975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13977 # following values.
13978
13979 _ACEOF
13980
13981 # The following way of writing the cache mishandles newlines in values,
13982 # but we know of no workaround that is simple, portable, and efficient.
13983 # So, we kill variables containing newlines.
13984 # Ultrix sh set writes to stderr and can't be redirected directly,
13985 # and sets the high bit in the cache file unless we assign to the vars.
13986 (
13987   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13988     eval ac_val=\$$ac_var
13989     case $ac_val in #(
13990     *${as_nl}*)
13991       case $ac_var in #(
13992       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13994       esac
13995       case $ac_var in #(
13996       _ | IFS | as_nl) ;; #(
13997       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13998       *) { eval $ac_var=; unset $ac_var;} ;;
13999       esac ;;
14000     esac
14001   done
14002
14003   (set) 2>&1 |
14004     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14005     *${as_nl}ac_space=\ *)
14006       # `set' does not quote correctly, so add quotes: double-quote
14007       # substitution turns \\\\ into \\, and sed turns \\ into \.
14008       sed -n \
14009         "s/'/'\\\\''/g;
14010           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14011       ;; #(
14012     *)
14013       # `set' quotes correctly as required by POSIX, so do not add quotes.
14014       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14015       ;;
14016     esac |
14017     sort
14018 ) |
14019   sed '
14020      /^ac_cv_env_/b end
14021      t clear
14022      :clear
14023      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14024      t end
14025      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14026      :end' >>confcache
14027 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14028   if test -w "$cache_file"; then
14029     if test "x$cache_file" != "x/dev/null"; then
14030       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14031 $as_echo "$as_me: updating cache $cache_file" >&6;}
14032       if test ! -f "$cache_file" || test -h "$cache_file"; then
14033         cat confcache >"$cache_file"
14034       else
14035         case $cache_file in #(
14036         */* | ?:*)
14037           mv -f confcache "$cache_file"$$ &&
14038           mv -f "$cache_file"$$ "$cache_file" ;; #(
14039         *)
14040           mv -f confcache "$cache_file" ;;
14041         esac
14042       fi
14043     fi
14044   else
14045     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14046 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14047   fi
14048 fi
14049 rm -f confcache
14050
14051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14052 # Let make expand exec_prefix.
14053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14054
14055 DEFS=-DHAVE_CONFIG_H
14056
14057 ac_libobjs=
14058 ac_ltlibobjs=
14059 U=
14060 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14061   # 1. Remove the extension, and $U if already installed.
14062   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14063   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14064   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14065   #    will be set to the directory where LIBOBJS objects are built.
14066   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14067   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14068 done
14069 LIBOBJS=$ac_libobjs
14070
14071 LTLIBOBJS=$ac_ltlibobjs
14072
14073
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14075 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14076    if test -n "$am_sleep_pid"; then
14077      # Hide warnings about reused PIDs.
14078      wait $am_sleep_pid 2>/dev/null
14079    fi
14080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14081 $as_echo "done" >&6; }
14082  if test -n "$EXEEXT"; then
14083   am__EXEEXT_TRUE=
14084   am__EXEEXT_FALSE='#'
14085 else
14086   am__EXEEXT_TRUE='#'
14087   am__EXEEXT_FALSE=
14088 fi
14089
14090 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14091   as_fn_error $? "conditional \"AMDEP\" was never defined.
14092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14093 fi
14094 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14095   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14097 fi
14098 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14099   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14101 fi
14102 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14103   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14105 fi
14106 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14107   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14109 fi
14110 if test -z "${FRIBIDI_CHARSETS_TRUE}" && test -z "${FRIBIDI_CHARSETS_FALSE}"; then
14111   as_fn_error $? "conditional \"FRIBIDI_CHARSETS\" was never defined.
14112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14113 fi
14114 if test -z "${FRIBIDI_USE_GLIB_TRUE}" && test -z "${FRIBIDI_USE_GLIB_FALSE}"; then
14115   as_fn_error $? "conditional \"FRIBIDI_USE_GLIB\" was never defined.
14116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14117 fi
14118
14119 : "${CONFIG_STATUS=./config.status}"
14120 ac_write_fail=0
14121 ac_clean_files_save=$ac_clean_files
14122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14125 as_write_fail=0
14126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14127 #! $SHELL
14128 # Generated by $as_me.
14129 # Run this file to recreate the current configuration.
14130 # Compiler output produced by configure, useful for debugging
14131 # configure, is in config.log if it exists.
14132
14133 debug=false
14134 ac_cs_recheck=false
14135 ac_cs_silent=false
14136
14137 SHELL=\${CONFIG_SHELL-$SHELL}
14138 export SHELL
14139 _ASEOF
14140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14141 ## -------------------- ##
14142 ## M4sh Initialization. ##
14143 ## -------------------- ##
14144
14145 # Be more Bourne compatible
14146 DUALCASE=1; export DUALCASE # for MKS sh
14147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14148   emulate sh
14149   NULLCMD=:
14150   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14151   # is contrary to our usage.  Disable this feature.
14152   alias -g '${1+"$@"}'='"$@"'
14153   setopt NO_GLOB_SUBST
14154 else
14155   case `(set -o) 2>/dev/null` in #(
14156   *posix*) :
14157     set -o posix ;; #(
14158   *) :
14159      ;;
14160 esac
14161 fi
14162
14163
14164 as_nl='
14165 '
14166 export as_nl
14167 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14171 # Prefer a ksh shell builtin over an external printf program on Solaris,
14172 # but without wasting forks for bash or zsh.
14173 if test -z "$BASH_VERSION$ZSH_VERSION" \
14174     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14175   as_echo='print -r --'
14176   as_echo_n='print -rn --'
14177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14178   as_echo='printf %s\n'
14179   as_echo_n='printf %s'
14180 else
14181   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14182     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14183     as_echo_n='/usr/ucb/echo -n'
14184   else
14185     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14186     as_echo_n_body='eval
14187       arg=$1;
14188       case $arg in #(
14189       *"$as_nl"*)
14190         expr "X$arg" : "X\\(.*\\)$as_nl";
14191         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14192       esac;
14193       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14194     '
14195     export as_echo_n_body
14196     as_echo_n='sh -c $as_echo_n_body as_echo'
14197   fi
14198   export as_echo_body
14199   as_echo='sh -c $as_echo_body as_echo'
14200 fi
14201
14202 # The user is always right.
14203 if test "${PATH_SEPARATOR+set}" != set; then
14204   PATH_SEPARATOR=:
14205   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14206     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14207       PATH_SEPARATOR=';'
14208   }
14209 fi
14210
14211
14212 # IFS
14213 # We need space, tab and new line, in precisely that order.  Quoting is
14214 # there to prevent editors from complaining about space-tab.
14215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14216 # splitting by setting IFS to empty value.)
14217 IFS=" ""        $as_nl"
14218
14219 # Find who we are.  Look in the path if we contain no directory separator.
14220 as_myself=
14221 case $0 in #((
14222   *[\\/]* ) as_myself=$0 ;;
14223   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224 for as_dir in $PATH
14225 do
14226   IFS=$as_save_IFS
14227   test -z "$as_dir" && as_dir=.
14228     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14229   done
14230 IFS=$as_save_IFS
14231
14232      ;;
14233 esac
14234 # We did not find ourselves, most probably we were run as `sh COMMAND'
14235 # in which case we are not to be found in the path.
14236 if test "x$as_myself" = x; then
14237   as_myself=$0
14238 fi
14239 if test ! -f "$as_myself"; then
14240   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14241   exit 1
14242 fi
14243
14244 # Unset variables that we do not need and which cause bugs (e.g. in
14245 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14246 # suppresses any "Segmentation fault" message there.  '((' could
14247 # trigger a bug in pdksh 5.2.14.
14248 for as_var in BASH_ENV ENV MAIL MAILPATH
14249 do eval test x\${$as_var+set} = xset \
14250   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14251 done
14252 PS1='$ '
14253 PS2='> '
14254 PS4='+ '
14255
14256 # NLS nuisances.
14257 LC_ALL=C
14258 export LC_ALL
14259 LANGUAGE=C
14260 export LANGUAGE
14261
14262 # CDPATH.
14263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14264
14265
14266 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14267 # ----------------------------------------
14268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14270 # script with STATUS, using 1 if that was 0.
14271 as_fn_error ()
14272 {
14273   as_status=$1; test $as_status -eq 0 && as_status=1
14274   if test "$4"; then
14275     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14276     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14277   fi
14278   $as_echo "$as_me: error: $2" >&2
14279   as_fn_exit $as_status
14280 } # as_fn_error
14281
14282
14283 # as_fn_set_status STATUS
14284 # -----------------------
14285 # Set $? to STATUS, without forking.
14286 as_fn_set_status ()
14287 {
14288   return $1
14289 } # as_fn_set_status
14290
14291 # as_fn_exit STATUS
14292 # -----------------
14293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14294 as_fn_exit ()
14295 {
14296   set +e
14297   as_fn_set_status $1
14298   exit $1
14299 } # as_fn_exit
14300
14301 # as_fn_unset VAR
14302 # ---------------
14303 # Portably unset VAR.
14304 as_fn_unset ()
14305 {
14306   { eval $1=; unset $1;}
14307 }
14308 as_unset=as_fn_unset
14309 # as_fn_append VAR VALUE
14310 # ----------------------
14311 # Append the text in VALUE to the end of the definition contained in VAR. Take
14312 # advantage of any shell optimizations that allow amortized linear growth over
14313 # repeated appends, instead of the typical quadratic growth present in naive
14314 # implementations.
14315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14316   eval 'as_fn_append ()
14317   {
14318     eval $1+=\$2
14319   }'
14320 else
14321   as_fn_append ()
14322   {
14323     eval $1=\$$1\$2
14324   }
14325 fi # as_fn_append
14326
14327 # as_fn_arith ARG...
14328 # ------------------
14329 # Perform arithmetic evaluation on the ARGs, and store the result in the
14330 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14331 # must be portable across $(()) and expr.
14332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14333   eval 'as_fn_arith ()
14334   {
14335     as_val=$(( $* ))
14336   }'
14337 else
14338   as_fn_arith ()
14339   {
14340     as_val=`expr "$@" || test $? -eq 1`
14341   }
14342 fi # as_fn_arith
14343
14344
14345 if expr a : '\(a\)' >/dev/null 2>&1 &&
14346    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14347   as_expr=expr
14348 else
14349   as_expr=false
14350 fi
14351
14352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14353   as_basename=basename
14354 else
14355   as_basename=false
14356 fi
14357
14358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14359   as_dirname=dirname
14360 else
14361   as_dirname=false
14362 fi
14363
14364 as_me=`$as_basename -- "$0" ||
14365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14366          X"$0" : 'X\(//\)$' \| \
14367          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14368 $as_echo X/"$0" |
14369     sed '/^.*\/\([^/][^/]*\)\/*$/{
14370             s//\1/
14371             q
14372           }
14373           /^X\/\(\/\/\)$/{
14374             s//\1/
14375             q
14376           }
14377           /^X\/\(\/\).*/{
14378             s//\1/
14379             q
14380           }
14381           s/.*/./; q'`
14382
14383 # Avoid depending upon Character Ranges.
14384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14387 as_cr_digits='0123456789'
14388 as_cr_alnum=$as_cr_Letters$as_cr_digits
14389
14390 ECHO_C= ECHO_N= ECHO_T=
14391 case `echo -n x` in #(((((
14392 -n*)
14393   case `echo 'xy\c'` in
14394   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14395   xy)  ECHO_C='\c';;
14396   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14397        ECHO_T=' ';;
14398   esac;;
14399 *)
14400   ECHO_N='-n';;
14401 esac
14402
14403 rm -f conf$$ conf$$.exe conf$$.file
14404 if test -d conf$$.dir; then
14405   rm -f conf$$.dir/conf$$.file
14406 else
14407   rm -f conf$$.dir
14408   mkdir conf$$.dir 2>/dev/null
14409 fi
14410 if (echo >conf$$.file) 2>/dev/null; then
14411   if ln -s conf$$.file conf$$ 2>/dev/null; then
14412     as_ln_s='ln -s'
14413     # ... but there are two gotchas:
14414     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14415     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14416     # In both cases, we have to default to `cp -pR'.
14417     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14418       as_ln_s='cp -pR'
14419   elif ln conf$$.file conf$$ 2>/dev/null; then
14420     as_ln_s=ln
14421   else
14422     as_ln_s='cp -pR'
14423   fi
14424 else
14425   as_ln_s='cp -pR'
14426 fi
14427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14428 rmdir conf$$.dir 2>/dev/null
14429
14430
14431 # as_fn_mkdir_p
14432 # -------------
14433 # Create "$as_dir" as a directory, including parents if necessary.
14434 as_fn_mkdir_p ()
14435 {
14436
14437   case $as_dir in #(
14438   -*) as_dir=./$as_dir;;
14439   esac
14440   test -d "$as_dir" || eval $as_mkdir_p || {
14441     as_dirs=
14442     while :; do
14443       case $as_dir in #(
14444       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14445       *) as_qdir=$as_dir;;
14446       esac
14447       as_dirs="'$as_qdir' $as_dirs"
14448       as_dir=`$as_dirname -- "$as_dir" ||
14449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14450          X"$as_dir" : 'X\(//\)[^/]' \| \
14451          X"$as_dir" : 'X\(//\)$' \| \
14452          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14453 $as_echo X"$as_dir" |
14454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14455             s//\1/
14456             q
14457           }
14458           /^X\(\/\/\)[^/].*/{
14459             s//\1/
14460             q
14461           }
14462           /^X\(\/\/\)$/{
14463             s//\1/
14464             q
14465           }
14466           /^X\(\/\).*/{
14467             s//\1/
14468             q
14469           }
14470           s/.*/./; q'`
14471       test -d "$as_dir" && break
14472     done
14473     test -z "$as_dirs" || eval "mkdir $as_dirs"
14474   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14475
14476
14477 } # as_fn_mkdir_p
14478 if mkdir -p . 2>/dev/null; then
14479   as_mkdir_p='mkdir -p "$as_dir"'
14480 else
14481   test -d ./-p && rmdir ./-p
14482   as_mkdir_p=false
14483 fi
14484
14485
14486 # as_fn_executable_p FILE
14487 # -----------------------
14488 # Test if FILE is an executable regular file.
14489 as_fn_executable_p ()
14490 {
14491   test -f "$1" && test -x "$1"
14492 } # as_fn_executable_p
14493 as_test_x='test -x'
14494 as_executable_p=as_fn_executable_p
14495
14496 # Sed expression to map a string onto a valid CPP name.
14497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14498
14499 # Sed expression to map a string onto a valid variable name.
14500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14501
14502
14503 exec 6>&1
14504 ## ----------------------------------- ##
14505 ## Main body of $CONFIG_STATUS script. ##
14506 ## ----------------------------------- ##
14507 _ASEOF
14508 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14509
14510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14511 # Save the log message, to keep $0 and so on meaningful, and to
14512 # report actual input values of CONFIG_FILES etc. instead of their
14513 # values after options handling.
14514 ac_log="
14515 This file was extended by GNU FriBidi $as_me 0.19.7, which was
14516 generated by GNU Autoconf 2.69.  Invocation command line was
14517
14518   CONFIG_FILES    = $CONFIG_FILES
14519   CONFIG_HEADERS  = $CONFIG_HEADERS
14520   CONFIG_LINKS    = $CONFIG_LINKS
14521   CONFIG_COMMANDS = $CONFIG_COMMANDS
14522   $ $0 $@
14523
14524 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14525 "
14526
14527 _ACEOF
14528
14529 case $ac_config_files in *"
14530 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14531 esac
14532
14533 case $ac_config_headers in *"
14534 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14535 esac
14536
14537
14538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14539 # Files that config.status was made for.
14540 config_files="$ac_config_files"
14541 config_headers="$ac_config_headers"
14542 config_commands="$ac_config_commands"
14543
14544 _ACEOF
14545
14546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14547 ac_cs_usage="\
14548 \`$as_me' instantiates files and other configuration actions
14549 from templates according to the current configuration.  Unless the files
14550 and actions are specified as TAGs, all are instantiated by default.
14551
14552 Usage: $0 [OPTION]... [TAG]...
14553
14554   -h, --help       print this help, then exit
14555   -V, --version    print version number and configuration settings, then exit
14556       --config     print configuration, then exit
14557   -q, --quiet, --silent
14558                    do not print progress messages
14559   -d, --debug      don't remove temporary files
14560       --recheck    update $as_me by reconfiguring in the same conditions
14561       --file=FILE[:TEMPLATE]
14562                    instantiate the configuration file FILE
14563       --header=FILE[:TEMPLATE]
14564                    instantiate the configuration header FILE
14565
14566 Configuration files:
14567 $config_files
14568
14569 Configuration headers:
14570 $config_headers
14571
14572 Configuration commands:
14573 $config_commands
14574
14575 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi>.
14576 GNU FriBidi home page: <http://fribidi.org/>.
14577 General help using GNU software: <http://www.gnu.org/gethelp/>."
14578
14579 _ACEOF
14580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14581 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14582 ac_cs_version="\\
14583 GNU FriBidi config.status 0.19.7
14584 configured by $0, generated by GNU Autoconf 2.69,
14585   with options \\"\$ac_cs_config\\"
14586
14587 Copyright (C) 2012 Free Software Foundation, Inc.
14588 This config.status script is free software; the Free Software Foundation
14589 gives unlimited permission to copy, distribute and modify it."
14590
14591 ac_pwd='$ac_pwd'
14592 srcdir='$srcdir'
14593 INSTALL='$INSTALL'
14594 MKDIR_P='$MKDIR_P'
14595 AWK='$AWK'
14596 test -n "\$AWK" || AWK=awk
14597 _ACEOF
14598
14599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14600 # The default lists apply if the user does not specify any file.
14601 ac_need_defaults=:
14602 while test $# != 0
14603 do
14604   case $1 in
14605   --*=?*)
14606     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14607     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14608     ac_shift=:
14609     ;;
14610   --*=)
14611     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14612     ac_optarg=
14613     ac_shift=:
14614     ;;
14615   *)
14616     ac_option=$1
14617     ac_optarg=$2
14618     ac_shift=shift
14619     ;;
14620   esac
14621
14622   case $ac_option in
14623   # Handling of the options.
14624   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14625     ac_cs_recheck=: ;;
14626   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14627     $as_echo "$ac_cs_version"; exit ;;
14628   --config | --confi | --conf | --con | --co | --c )
14629     $as_echo "$ac_cs_config"; exit ;;
14630   --debug | --debu | --deb | --de | --d | -d )
14631     debug=: ;;
14632   --file | --fil | --fi | --f )
14633     $ac_shift
14634     case $ac_optarg in
14635     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14636     '') as_fn_error $? "missing file argument" ;;
14637     esac
14638     as_fn_append CONFIG_FILES " '$ac_optarg'"
14639     ac_need_defaults=false;;
14640   --header | --heade | --head | --hea )
14641     $ac_shift
14642     case $ac_optarg in
14643     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14644     esac
14645     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14646     ac_need_defaults=false;;
14647   --he | --h)
14648     # Conflict between --help and --header
14649     as_fn_error $? "ambiguous option: \`$1'
14650 Try \`$0 --help' for more information.";;
14651   --help | --hel | -h )
14652     $as_echo "$ac_cs_usage"; exit ;;
14653   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14654   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14655     ac_cs_silent=: ;;
14656
14657   # This is an error.
14658   -*) as_fn_error $? "unrecognized option: \`$1'
14659 Try \`$0 --help' for more information." ;;
14660
14661   *) as_fn_append ac_config_targets " $1"
14662      ac_need_defaults=false ;;
14663
14664   esac
14665   shift
14666 done
14667
14668 ac_configure_extra_args=
14669
14670 if $ac_cs_silent; then
14671   exec 6>/dev/null
14672   ac_configure_extra_args="$ac_configure_extra_args --silent"
14673 fi
14674
14675 _ACEOF
14676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14677 if \$ac_cs_recheck; then
14678   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14679   shift
14680   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14681   CONFIG_SHELL='$SHELL'
14682   export CONFIG_SHELL
14683   exec "\$@"
14684 fi
14685
14686 _ACEOF
14687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14688 exec 5>>config.log
14689 {
14690   echo
14691   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14692 ## Running $as_me. ##
14693 _ASBOX
14694   $as_echo "$ac_log"
14695 } >&5
14696
14697 _ACEOF
14698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14699 #
14700 # INIT-COMMANDS
14701 #
14702 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14703
14704
14705 # The HP-UX ksh and POSIX shell print the target directory to stdout
14706 # if CDPATH is set.
14707 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14708
14709 sed_quote_subst='$sed_quote_subst'
14710 double_quote_subst='$double_quote_subst'
14711 delay_variable_subst='$delay_variable_subst'
14712 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14713 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14714 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14715 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14716 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14717 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14718 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14719 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14720 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14721 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14722 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14723 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14724 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14725 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14726 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14727 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14728 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14729 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14730 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14731 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14732 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14733 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14734 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14735 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14736 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14737 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14738 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14739 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14740 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14741 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14742 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14743 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14744 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14745 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14746 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14747 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14748 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14749 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14750 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14751 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14752 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14753 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14754 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14755 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14756 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14757 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14758 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14759 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14760 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14761 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14762 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14763 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14764 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14765 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14766 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14767 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14768 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14769 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14770 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"`'
14771 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14772 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14773 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14774 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14775 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14776 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14777 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14778 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14779 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14780 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14781 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14782 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14783 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14784 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14785 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14786 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14787 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14788 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14789 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14790 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14791 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14792 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14793 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14794 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14795 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14796 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14797 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14798 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14799 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14800 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14801 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14802 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14803 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14804 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14805 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14806 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14807 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14808 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14809 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14810 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14811 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14812 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14813 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14814 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14815 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14816 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14817 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14818 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14819 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14820 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14821 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14822 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14823 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14824 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14825 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14826 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14827 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14828 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14829 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14830 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14831 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14832 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14833 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14834 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14835 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14836 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14837 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14838 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14839 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14840 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14841 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14842 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14843 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14844 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14845 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14846 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14847
14848 LTCC='$LTCC'
14849 LTCFLAGS='$LTCFLAGS'
14850 compiler='$compiler_DEFAULT'
14851
14852 # A function that is used when there is no print builtin or printf.
14853 func_fallback_echo ()
14854 {
14855   eval 'cat <<_LTECHO_EOF
14856 \$1
14857 _LTECHO_EOF'
14858 }
14859
14860 # Quote evaled strings.
14861 for var in SHELL \
14862 ECHO \
14863 PATH_SEPARATOR \
14864 SED \
14865 GREP \
14866 EGREP \
14867 FGREP \
14868 LD \
14869 NM \
14870 LN_S \
14871 lt_SP2NL \
14872 lt_NL2SP \
14873 reload_flag \
14874 OBJDUMP \
14875 deplibs_check_method \
14876 file_magic_cmd \
14877 file_magic_glob \
14878 want_nocaseglob \
14879 DLLTOOL \
14880 sharedlib_from_linklib_cmd \
14881 AR \
14882 AR_FLAGS \
14883 archiver_list_spec \
14884 STRIP \
14885 RANLIB \
14886 CC \
14887 CFLAGS \
14888 compiler \
14889 lt_cv_sys_global_symbol_pipe \
14890 lt_cv_sys_global_symbol_to_cdecl \
14891 lt_cv_sys_global_symbol_to_import \
14892 lt_cv_sys_global_symbol_to_c_name_address \
14893 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14894 lt_cv_nm_interface \
14895 nm_file_list_spec \
14896 lt_cv_truncate_bin \
14897 lt_prog_compiler_no_builtin_flag \
14898 lt_prog_compiler_pic \
14899 lt_prog_compiler_wl \
14900 lt_prog_compiler_static \
14901 lt_cv_prog_compiler_c_o \
14902 need_locks \
14903 MANIFEST_TOOL \
14904 DSYMUTIL \
14905 NMEDIT \
14906 LIPO \
14907 OTOOL \
14908 OTOOL64 \
14909 shrext_cmds \
14910 export_dynamic_flag_spec \
14911 whole_archive_flag_spec \
14912 compiler_needs_object \
14913 with_gnu_ld \
14914 allow_undefined_flag \
14915 no_undefined_flag \
14916 hardcode_libdir_flag_spec \
14917 hardcode_libdir_separator \
14918 exclude_expsyms \
14919 include_expsyms \
14920 file_list_spec \
14921 variables_saved_for_relink \
14922 libname_spec \
14923 library_names_spec \
14924 soname_spec \
14925 install_override_mode \
14926 finish_eval \
14927 old_striplib \
14928 striplib; do
14929     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14930     *[\\\\\\\`\\"\\\$]*)
14931       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14932       ;;
14933     *)
14934       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14935       ;;
14936     esac
14937 done
14938
14939 # Double-quote double-evaled strings.
14940 for var in reload_cmds \
14941 old_postinstall_cmds \
14942 old_postuninstall_cmds \
14943 old_archive_cmds \
14944 extract_expsyms_cmds \
14945 old_archive_from_new_cmds \
14946 old_archive_from_expsyms_cmds \
14947 archive_cmds \
14948 archive_expsym_cmds \
14949 module_cmds \
14950 module_expsym_cmds \
14951 export_symbols_cmds \
14952 prelink_cmds \
14953 postlink_cmds \
14954 postinstall_cmds \
14955 postuninstall_cmds \
14956 finish_cmds \
14957 sys_lib_search_path_spec \
14958 configure_time_dlsearch_path \
14959 configure_time_lt_sys_library_path; do
14960     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14961     *[\\\\\\\`\\"\\\$]*)
14962       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14963       ;;
14964     *)
14965       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14966       ;;
14967     esac
14968 done
14969
14970 ac_aux_dir='$ac_aux_dir'
14971
14972 # See if we are running on zsh, and set the options that allow our
14973 # commands through without removal of \ escapes INIT.
14974 if test -n "\${ZSH_VERSION+set}"; then
14975    setopt NO_GLOB_SUBST
14976 fi
14977
14978
14979     PACKAGE='$PACKAGE'
14980     VERSION='$VERSION'
14981     RM='$RM'
14982     ofile='$ofile'
14983
14984
14985
14986
14987 _ACEOF
14988
14989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14990
14991 # Handling of arguments.
14992 for ac_config_target in $ac_config_targets
14993 do
14994   case $ac_config_target in
14995     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14996     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14997     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14998     "fribidi.pc") CONFIG_FILES="$CONFIG_FILES fribidi.pc" ;;
14999     "lib/fribidi-config.h") CONFIG_FILES="$CONFIG_FILES lib/fribidi-config.h" ;;
15000     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15001     "charset/Makefile") CONFIG_FILES="$CONFIG_FILES charset/Makefile" ;;
15002     "gen.tab/Makefile") CONFIG_FILES="$CONFIG_FILES gen.tab/Makefile" ;;
15003     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15004     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
15005     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15006     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15007
15008   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15009   esac
15010 done
15011
15012
15013 # If the user did not use the arguments to specify the items to instantiate,
15014 # then the envvar interface is used.  Set only those that are not.
15015 # We use the long form for the default assignment because of an extremely
15016 # bizarre bug on SunOS 4.1.3.
15017 if $ac_need_defaults; then
15018   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15019   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15020   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15021 fi
15022
15023 # Have a temporary directory for convenience.  Make it in the build tree
15024 # simply because there is no reason against having it here, and in addition,
15025 # creating and moving files from /tmp can sometimes cause problems.
15026 # Hook for its removal unless debugging.
15027 # Note that there is a small window in which the directory will not be cleaned:
15028 # after its creation but before its name has been assigned to `$tmp'.
15029 $debug ||
15030 {
15031   tmp= ac_tmp=
15032   trap 'exit_status=$?
15033   : "${ac_tmp:=$tmp}"
15034   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15035 ' 0
15036   trap 'as_fn_exit 1' 1 2 13 15
15037 }
15038 # Create a (secure) tmp directory for tmp files.
15039
15040 {
15041   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15042   test -d "$tmp"
15043 }  ||
15044 {
15045   tmp=./conf$$-$RANDOM
15046   (umask 077 && mkdir "$tmp")
15047 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15048 ac_tmp=$tmp
15049
15050 # Set up the scripts for CONFIG_FILES section.
15051 # No need to generate them if there are no CONFIG_FILES.
15052 # This happens for instance with `./config.status config.h'.
15053 if test -n "$CONFIG_FILES"; then
15054
15055
15056 ac_cr=`echo X | tr X '\015'`
15057 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15058 # But we know of no other shell where ac_cr would be empty at this
15059 # point, so we can use a bashism as a fallback.
15060 if test "x$ac_cr" = x; then
15061   eval ac_cr=\$\'\\r\'
15062 fi
15063 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15064 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15065   ac_cs_awk_cr='\\r'
15066 else
15067   ac_cs_awk_cr=$ac_cr
15068 fi
15069
15070 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15071 _ACEOF
15072
15073
15074 {
15075   echo "cat >conf$$subs.awk <<_ACEOF" &&
15076   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15077   echo "_ACEOF"
15078 } >conf$$subs.sh ||
15079   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15080 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15081 ac_delim='%!_!# '
15082 for ac_last_try in false false false false false :; do
15083   . ./conf$$subs.sh ||
15084     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15085
15086   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15087   if test $ac_delim_n = $ac_delim_num; then
15088     break
15089   elif $ac_last_try; then
15090     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15091   else
15092     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15093   fi
15094 done
15095 rm -f conf$$subs.sh
15096
15097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15098 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15099 _ACEOF
15100 sed -n '
15101 h
15102 s/^/S["/; s/!.*/"]=/
15103 p
15104 g
15105 s/^[^!]*!//
15106 :repl
15107 t repl
15108 s/'"$ac_delim"'$//
15109 t delim
15110 :nl
15111 h
15112 s/\(.\{148\}\)..*/\1/
15113 t more1
15114 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15115 p
15116 n
15117 b repl
15118 :more1
15119 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15120 p
15121 g
15122 s/.\{148\}//
15123 t nl
15124 :delim
15125 h
15126 s/\(.\{148\}\)..*/\1/
15127 t more2
15128 s/["\\]/\\&/g; s/^/"/; s/$/"/
15129 p
15130 b
15131 :more2
15132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15133 p
15134 g
15135 s/.\{148\}//
15136 t delim
15137 ' <conf$$subs.awk | sed '
15138 /^[^""]/{
15139   N
15140   s/\n//
15141 }
15142 ' >>$CONFIG_STATUS || ac_write_fail=1
15143 rm -f conf$$subs.awk
15144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15145 _ACAWK
15146 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15147   for (key in S) S_is_set[key] = 1
15148   FS = "\a"
15149
15150 }
15151 {
15152   line = $ 0
15153   nfields = split(line, field, "@")
15154   substed = 0
15155   len = length(field[1])
15156   for (i = 2; i < nfields; i++) {
15157     key = field[i]
15158     keylen = length(key)
15159     if (S_is_set[key]) {
15160       value = S[key]
15161       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15162       len += length(value) + length(field[++i])
15163       substed = 1
15164     } else
15165       len += 1 + keylen
15166   }
15167
15168   print line
15169 }
15170
15171 _ACAWK
15172 _ACEOF
15173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15174 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15175   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15176 else
15177   cat
15178 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15179   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15180 _ACEOF
15181
15182 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15183 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15184 # trailing colons and then remove the whole line if VPATH becomes empty
15185 # (actually we leave an empty line to preserve line numbers).
15186 if test "x$srcdir" = x.; then
15187   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15188 h
15189 s///
15190 s/^/:/
15191 s/[      ]*$/:/
15192 s/:\$(srcdir):/:/g
15193 s/:\${srcdir}:/:/g
15194 s/:@srcdir@:/:/g
15195 s/^:*//
15196 s/:*$//
15197 x
15198 s/\(=[   ]*\).*/\1/
15199 G
15200 s/\n//
15201 s/^[^=]*=[       ]*$//
15202 }'
15203 fi
15204
15205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15206 fi # test -n "$CONFIG_FILES"
15207
15208 # Set up the scripts for CONFIG_HEADERS section.
15209 # No need to generate them if there are no CONFIG_HEADERS.
15210 # This happens for instance with `./config.status Makefile'.
15211 if test -n "$CONFIG_HEADERS"; then
15212 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15213 BEGIN {
15214 _ACEOF
15215
15216 # Transform confdefs.h into an awk script `defines.awk', embedded as
15217 # here-document in config.status, that substitutes the proper values into
15218 # config.h.in to produce config.h.
15219
15220 # Create a delimiter string that does not exist in confdefs.h, to ease
15221 # handling of long lines.
15222 ac_delim='%!_!# '
15223 for ac_last_try in false false :; do
15224   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15225   if test -z "$ac_tt"; then
15226     break
15227   elif $ac_last_try; then
15228     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15229   else
15230     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15231   fi
15232 done
15233
15234 # For the awk script, D is an array of macro values keyed by name,
15235 # likewise P contains macro parameters if any.  Preserve backslash
15236 # newline sequences.
15237
15238 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15239 sed -n '
15240 s/.\{148\}/&'"$ac_delim"'/g
15241 t rset
15242 :rset
15243 s/^[     ]*#[    ]*define[       ][      ]*/ /
15244 t def
15245 d
15246 :def
15247 s/\\$//
15248 t bsnl
15249 s/["\\]/\\&/g
15250 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15251 D["\1"]=" \3"/p
15252 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15253 d
15254 :bsnl
15255 s/["\\]/\\&/g
15256 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15257 D["\1"]=" \3\\\\\\n"\\/p
15258 t cont
15259 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15260 t cont
15261 d
15262 :cont
15263 n
15264 s/.\{148\}/&'"$ac_delim"'/g
15265 t clear
15266 :clear
15267 s/\\$//
15268 t bsnlc
15269 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15270 d
15271 :bsnlc
15272 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15273 b cont
15274 ' <confdefs.h | sed '
15275 s/'"$ac_delim"'/"\\\
15276 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15277
15278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15279   for (key in D) D_is_set[key] = 1
15280   FS = "\a"
15281 }
15282 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15283   line = \$ 0
15284   split(line, arg, " ")
15285   if (arg[1] == "#") {
15286     defundef = arg[2]
15287     mac1 = arg[3]
15288   } else {
15289     defundef = substr(arg[1], 2)
15290     mac1 = arg[2]
15291   }
15292   split(mac1, mac2, "(") #)
15293   macro = mac2[1]
15294   prefix = substr(line, 1, index(line, defundef) - 1)
15295   if (D_is_set[macro]) {
15296     # Preserve the white space surrounding the "#".
15297     print prefix "define", macro P[macro] D[macro]
15298     next
15299   } else {
15300     # Replace #undef with comments.  This is necessary, for example,
15301     # in the case of _POSIX_SOURCE, which is predefined and required
15302     # on some systems where configure will not decide to define it.
15303     if (defundef == "undef") {
15304       print "/*", prefix defundef, macro, "*/"
15305       next
15306     }
15307   }
15308 }
15309 { print }
15310 _ACAWK
15311 _ACEOF
15312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15313   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15314 fi # test -n "$CONFIG_HEADERS"
15315
15316
15317 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15318 shift
15319 for ac_tag
15320 do
15321   case $ac_tag in
15322   :[FHLC]) ac_mode=$ac_tag; continue;;
15323   esac
15324   case $ac_mode$ac_tag in
15325   :[FHL]*:*);;
15326   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15327   :[FH]-) ac_tag=-:-;;
15328   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15329   esac
15330   ac_save_IFS=$IFS
15331   IFS=:
15332   set x $ac_tag
15333   IFS=$ac_save_IFS
15334   shift
15335   ac_file=$1
15336   shift
15337
15338   case $ac_mode in
15339   :L) ac_source=$1;;
15340   :[FH])
15341     ac_file_inputs=
15342     for ac_f
15343     do
15344       case $ac_f in
15345       -) ac_f="$ac_tmp/stdin";;
15346       *) # Look for the file first in the build tree, then in the source tree
15347          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15348          # because $ac_f cannot contain `:'.
15349          test -f "$ac_f" ||
15350            case $ac_f in
15351            [\\/$]*) false;;
15352            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15353            esac ||
15354            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15355       esac
15356       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15357       as_fn_append ac_file_inputs " '$ac_f'"
15358     done
15359
15360     # Let's still pretend it is `configure' which instantiates (i.e., don't
15361     # use $as_me), people would be surprised to read:
15362     #    /* config.h.  Generated by config.status.  */
15363     configure_input='Generated from '`
15364           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15365         `' by configure.'
15366     if test x"$ac_file" != x-; then
15367       configure_input="$ac_file.  $configure_input"
15368       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15369 $as_echo "$as_me: creating $ac_file" >&6;}
15370     fi
15371     # Neutralize special characters interpreted by sed in replacement strings.
15372     case $configure_input in #(
15373     *\&* | *\|* | *\\* )
15374        ac_sed_conf_input=`$as_echo "$configure_input" |
15375        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15376     *) ac_sed_conf_input=$configure_input;;
15377     esac
15378
15379     case $ac_tag in
15380     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15381       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15382     esac
15383     ;;
15384   esac
15385
15386   ac_dir=`$as_dirname -- "$ac_file" ||
15387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15388          X"$ac_file" : 'X\(//\)[^/]' \| \
15389          X"$ac_file" : 'X\(//\)$' \| \
15390          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15391 $as_echo X"$ac_file" |
15392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15393             s//\1/
15394             q
15395           }
15396           /^X\(\/\/\)[^/].*/{
15397             s//\1/
15398             q
15399           }
15400           /^X\(\/\/\)$/{
15401             s//\1/
15402             q
15403           }
15404           /^X\(\/\).*/{
15405             s//\1/
15406             q
15407           }
15408           s/.*/./; q'`
15409   as_dir="$ac_dir"; as_fn_mkdir_p
15410   ac_builddir=.
15411
15412 case "$ac_dir" in
15413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15414 *)
15415   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15416   # A ".." for each directory in $ac_dir_suffix.
15417   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15418   case $ac_top_builddir_sub in
15419   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15420   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15421   esac ;;
15422 esac
15423 ac_abs_top_builddir=$ac_pwd
15424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15425 # for backward compatibility:
15426 ac_top_builddir=$ac_top_build_prefix
15427
15428 case $srcdir in
15429   .)  # We are building in place.
15430     ac_srcdir=.
15431     ac_top_srcdir=$ac_top_builddir_sub
15432     ac_abs_top_srcdir=$ac_pwd ;;
15433   [\\/]* | ?:[\\/]* )  # Absolute name.
15434     ac_srcdir=$srcdir$ac_dir_suffix;
15435     ac_top_srcdir=$srcdir
15436     ac_abs_top_srcdir=$srcdir ;;
15437   *) # Relative name.
15438     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15439     ac_top_srcdir=$ac_top_build_prefix$srcdir
15440     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15441 esac
15442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15443
15444
15445   case $ac_mode in
15446   :F)
15447   #
15448   # CONFIG_FILE
15449   #
15450
15451   case $INSTALL in
15452   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15453   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15454   esac
15455   ac_MKDIR_P=$MKDIR_P
15456   case $MKDIR_P in
15457   [\\/$]* | ?:[\\/]* ) ;;
15458   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15459   esac
15460 _ACEOF
15461
15462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15463 # If the template does not know about datarootdir, expand it.
15464 # FIXME: This hack should be removed a few years after 2.60.
15465 ac_datarootdir_hack=; ac_datarootdir_seen=
15466 ac_sed_dataroot='
15467 /datarootdir/ {
15468   p
15469   q
15470 }
15471 /@datadir@/p
15472 /@docdir@/p
15473 /@infodir@/p
15474 /@localedir@/p
15475 /@mandir@/p'
15476 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15477 *datarootdir*) ac_datarootdir_seen=yes;;
15478 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15479   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15480 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15481 _ACEOF
15482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15483   ac_datarootdir_hack='
15484   s&@datadir@&$datadir&g
15485   s&@docdir@&$docdir&g
15486   s&@infodir@&$infodir&g
15487   s&@localedir@&$localedir&g
15488   s&@mandir@&$mandir&g
15489   s&\\\${datarootdir}&$datarootdir&g' ;;
15490 esac
15491 _ACEOF
15492
15493 # Neutralize VPATH when `$srcdir' = `.'.
15494 # Shell code in configure.ac might set extrasub.
15495 # FIXME: do we really want to maintain this feature?
15496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15497 ac_sed_extra="$ac_vpsub
15498 $extrasub
15499 _ACEOF
15500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15501 :t
15502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15503 s|@configure_input@|$ac_sed_conf_input|;t t
15504 s&@top_builddir@&$ac_top_builddir_sub&;t t
15505 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15506 s&@srcdir@&$ac_srcdir&;t t
15507 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15508 s&@top_srcdir@&$ac_top_srcdir&;t t
15509 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15510 s&@builddir@&$ac_builddir&;t t
15511 s&@abs_builddir@&$ac_abs_builddir&;t t
15512 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15513 s&@INSTALL@&$ac_INSTALL&;t t
15514 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15515 $ac_datarootdir_hack
15516 "
15517 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15518   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15519
15520 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15521   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15522   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15523       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15524   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15525 which seems to be undefined.  Please make sure it is defined" >&5
15526 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15527 which seems to be undefined.  Please make sure it is defined" >&2;}
15528
15529   rm -f "$ac_tmp/stdin"
15530   case $ac_file in
15531   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15532   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15533   esac \
15534   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15535  ;;
15536   :H)
15537   #
15538   # CONFIG_HEADER
15539   #
15540   if test x"$ac_file" != x-; then
15541     {
15542       $as_echo "/* $configure_input  */" \
15543       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15544     } >"$ac_tmp/config.h" \
15545       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15546     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15547       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15548 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15549     else
15550       rm -f "$ac_file"
15551       mv "$ac_tmp/config.h" "$ac_file" \
15552         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15553     fi
15554   else
15555     $as_echo "/* $configure_input  */" \
15556       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15557       || as_fn_error $? "could not create -" "$LINENO" 5
15558   fi
15559 # Compute "$ac_file"'s index in $config_headers.
15560 _am_arg="$ac_file"
15561 _am_stamp_count=1
15562 for _am_header in $config_headers :; do
15563   case $_am_header in
15564     $_am_arg | $_am_arg:* )
15565       break ;;
15566     * )
15567       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15568   esac
15569 done
15570 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15571 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15572          X"$_am_arg" : 'X\(//\)[^/]' \| \
15573          X"$_am_arg" : 'X\(//\)$' \| \
15574          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15575 $as_echo X"$_am_arg" |
15576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15577             s//\1/
15578             q
15579           }
15580           /^X\(\/\/\)[^/].*/{
15581             s//\1/
15582             q
15583           }
15584           /^X\(\/\/\)$/{
15585             s//\1/
15586             q
15587           }
15588           /^X\(\/\).*/{
15589             s//\1/
15590             q
15591           }
15592           s/.*/./; q'`/stamp-h$_am_stamp_count
15593  ;;
15594
15595   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15596 $as_echo "$as_me: executing $ac_file commands" >&6;}
15597  ;;
15598   esac
15599
15600
15601   case $ac_file$ac_mode in
15602     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15603   # Older Autoconf quotes --file arguments for eval, but not when files
15604   # are listed without --file.  Let's play safe and only enable the eval
15605   # if we detect the quoting.
15606   case $CONFIG_FILES in
15607   *\'*) eval set x "$CONFIG_FILES" ;;
15608   *)   set x $CONFIG_FILES ;;
15609   esac
15610   shift
15611   for mf
15612   do
15613     # Strip MF so we end up with the name of the file.
15614     mf=`echo "$mf" | sed -e 's/:.*$//'`
15615     # Check whether this is an Automake generated Makefile or not.
15616     # We used to match only the files named 'Makefile.in', but
15617     # some people rename them; so instead we look at the file content.
15618     # Grep'ing the first line is not enough: some people post-process
15619     # each Makefile.in and add a new line on top of each file to say so.
15620     # Grep'ing the whole file is not good either: AIX grep has a line
15621     # limit of 2048, but all sed's we know have understand at least 4000.
15622     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15623       dirpart=`$as_dirname -- "$mf" ||
15624 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15625          X"$mf" : 'X\(//\)[^/]' \| \
15626          X"$mf" : 'X\(//\)$' \| \
15627          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15628 $as_echo X"$mf" |
15629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15630             s//\1/
15631             q
15632           }
15633           /^X\(\/\/\)[^/].*/{
15634             s//\1/
15635             q
15636           }
15637           /^X\(\/\/\)$/{
15638             s//\1/
15639             q
15640           }
15641           /^X\(\/\).*/{
15642             s//\1/
15643             q
15644           }
15645           s/.*/./; q'`
15646     else
15647       continue
15648     fi
15649     # Extract the definition of DEPDIR, am__include, and am__quote
15650     # from the Makefile without running 'make'.
15651     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15652     test -z "$DEPDIR" && continue
15653     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15654     test -z "$am__include" && continue
15655     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15656     # Find all dependency output files, they are included files with
15657     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15658     # simplest approach to changing $(DEPDIR) to its actual value in the
15659     # expansion.
15660     for file in `sed -n "
15661       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15662          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15663       # Make sure the directory exists.
15664       test -f "$dirpart/$file" && continue
15665       fdir=`$as_dirname -- "$file" ||
15666 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15667          X"$file" : 'X\(//\)[^/]' \| \
15668          X"$file" : 'X\(//\)$' \| \
15669          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15670 $as_echo X"$file" |
15671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15672             s//\1/
15673             q
15674           }
15675           /^X\(\/\/\)[^/].*/{
15676             s//\1/
15677             q
15678           }
15679           /^X\(\/\/\)$/{
15680             s//\1/
15681             q
15682           }
15683           /^X\(\/\).*/{
15684             s//\1/
15685             q
15686           }
15687           s/.*/./; q'`
15688       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15689       # echo "creating $dirpart/$file"
15690       echo '# dummy' > "$dirpart/$file"
15691     done
15692   done
15693 }
15694  ;;
15695     "libtool":C)
15696
15697     # See if we are running on zsh, and set the options that allow our
15698     # commands through without removal of \ escapes.
15699     if test -n "${ZSH_VERSION+set}"; then
15700       setopt NO_GLOB_SUBST
15701     fi
15702
15703     cfgfile=${ofile}T
15704     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15705     $RM "$cfgfile"
15706
15707     cat <<_LT_EOF >> "$cfgfile"
15708 #! $SHELL
15709 # Generated automatically by $as_me ($PACKAGE) $VERSION
15710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15711 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15712
15713 # Provide generalized library-building support services.
15714 # Written by Gordon Matzigkeit, 1996
15715
15716 # Copyright (C) 2014 Free Software Foundation, Inc.
15717 # This is free software; see the source for copying conditions.  There is NO
15718 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15719
15720 # GNU Libtool is free software; you can redistribute it and/or modify
15721 # it under the terms of the GNU General Public License as published by
15722 # the Free Software Foundation; either version 2 of of the License, or
15723 # (at your option) any later version.
15724 #
15725 # As a special exception to the GNU General Public License, if you
15726 # distribute this file as part of a program or library that is built
15727 # using GNU Libtool, you may include this file under the  same
15728 # distribution terms that you use for the rest of that program.
15729 #
15730 # GNU Libtool is distributed in the hope that it will be useful, but
15731 # WITHOUT ANY WARRANTY; without even the implied warranty of
15732 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15733 # GNU General Public License for more details.
15734 #
15735 # You should have received a copy of the GNU General Public License
15736 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
15737
15738
15739 # The names of the tagged configurations supported by this script.
15740 available_tags=''
15741
15742 # Configured defaults for sys_lib_dlsearch_path munging.
15743 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15744
15745 # ### BEGIN LIBTOOL CONFIG
15746
15747 # Which release of libtool.m4 was used?
15748 macro_version=$macro_version
15749 macro_revision=$macro_revision
15750
15751 # Whether or not to build static libraries.
15752 build_old_libs=$enable_static
15753
15754 # Whether or not to build shared libraries.
15755 build_libtool_libs=$enable_shared
15756
15757 # What type of objects to build.
15758 pic_mode=$pic_mode
15759
15760 # Whether or not to optimize for fast installation.
15761 fast_install=$enable_fast_install
15762
15763 # Shared archive member basename,for filename based shared library versioning on AIX.
15764 shared_archive_member_spec=$shared_archive_member_spec
15765
15766 # Shell to use when invoking shell scripts.
15767 SHELL=$lt_SHELL
15768
15769 # An echo program that protects backslashes.
15770 ECHO=$lt_ECHO
15771
15772 # The PATH separator for the build system.
15773 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15774
15775 # The host system.
15776 host_alias=$host_alias
15777 host=$host
15778 host_os=$host_os
15779
15780 # The build system.
15781 build_alias=$build_alias
15782 build=$build
15783 build_os=$build_os
15784
15785 # A sed program that does not truncate output.
15786 SED=$lt_SED
15787
15788 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15789 Xsed="\$SED -e 1s/^X//"
15790
15791 # A grep program that handles long lines.
15792 GREP=$lt_GREP
15793
15794 # An ERE matcher.
15795 EGREP=$lt_EGREP
15796
15797 # A literal string matcher.
15798 FGREP=$lt_FGREP
15799
15800 # A BSD- or MS-compatible name lister.
15801 NM=$lt_NM
15802
15803 # Whether we need soft or hard links.
15804 LN_S=$lt_LN_S
15805
15806 # What is the maximum length of a command?
15807 max_cmd_len=$max_cmd_len
15808
15809 # Object file suffix (normally "o").
15810 objext=$ac_objext
15811
15812 # Executable file suffix (normally "").
15813 exeext=$exeext
15814
15815 # whether the shell understands "unset".
15816 lt_unset=$lt_unset
15817
15818 # turn spaces into newlines.
15819 SP2NL=$lt_lt_SP2NL
15820
15821 # turn newlines into spaces.
15822 NL2SP=$lt_lt_NL2SP
15823
15824 # convert \$build file names to \$host format.
15825 to_host_file_cmd=$lt_cv_to_host_file_cmd
15826
15827 # convert \$build files to toolchain format.
15828 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15829
15830 # An object symbol dumper.
15831 OBJDUMP=$lt_OBJDUMP
15832
15833 # Method to check whether dependent libraries are shared objects.
15834 deplibs_check_method=$lt_deplibs_check_method
15835
15836 # Command to use when deplibs_check_method = "file_magic".
15837 file_magic_cmd=$lt_file_magic_cmd
15838
15839 # How to find potential files when deplibs_check_method = "file_magic".
15840 file_magic_glob=$lt_file_magic_glob
15841
15842 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15843 want_nocaseglob=$lt_want_nocaseglob
15844
15845 # DLL creation program.
15846 DLLTOOL=$lt_DLLTOOL
15847
15848 # Command to associate shared and link libraries.
15849 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15850
15851 # The archiver.
15852 AR=$lt_AR
15853
15854 # Flags to create an archive.
15855 AR_FLAGS=$lt_AR_FLAGS
15856
15857 # How to feed a file listing to the archiver.
15858 archiver_list_spec=$lt_archiver_list_spec
15859
15860 # A symbol stripping program.
15861 STRIP=$lt_STRIP
15862
15863 # Commands used to install an old-style archive.
15864 RANLIB=$lt_RANLIB
15865 old_postinstall_cmds=$lt_old_postinstall_cmds
15866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15867
15868 # Whether to use a lock for old archive extraction.
15869 lock_old_archive_extraction=$lock_old_archive_extraction
15870
15871 # A C compiler.
15872 LTCC=$lt_CC
15873
15874 # LTCC compiler flags.
15875 LTCFLAGS=$lt_CFLAGS
15876
15877 # Take the output of nm and produce a listing of raw symbols and C names.
15878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15879
15880 # Transform the output of nm in a proper C declaration.
15881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15882
15883 # Transform the output of nm into a list of symbols to manually relocate.
15884 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15885
15886 # Transform the output of nm in a C name address pair.
15887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15888
15889 # Transform the output of nm in a C name address pair when lib prefix is needed.
15890 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15891
15892 # The name lister interface.
15893 nm_interface=$lt_lt_cv_nm_interface
15894
15895 # Specify filename containing input files for \$NM.
15896 nm_file_list_spec=$lt_nm_file_list_spec
15897
15898 # The root where to search for dependent libraries,and where our libraries should be installed.
15899 lt_sysroot=$lt_sysroot
15900
15901 # Command to truncate a binary pipe.
15902 lt_truncate_bin=$lt_lt_cv_truncate_bin
15903
15904 # The name of the directory that contains temporary libtool files.
15905 objdir=$objdir
15906
15907 # Used to examine libraries when file_magic_cmd begins with "file".
15908 MAGIC_CMD=$MAGIC_CMD
15909
15910 # Must we lock files when doing compilation?
15911 need_locks=$lt_need_locks
15912
15913 # Manifest tool.
15914 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15915
15916 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15917 DSYMUTIL=$lt_DSYMUTIL
15918
15919 # Tool to change global to local symbols on Mac OS X.
15920 NMEDIT=$lt_NMEDIT
15921
15922 # Tool to manipulate fat objects and archives on Mac OS X.
15923 LIPO=$lt_LIPO
15924
15925 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15926 OTOOL=$lt_OTOOL
15927
15928 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15929 OTOOL64=$lt_OTOOL64
15930
15931 # Old archive suffix (normally "a").
15932 libext=$libext
15933
15934 # Shared library suffix (normally ".so").
15935 shrext_cmds=$lt_shrext_cmds
15936
15937 # The commands to extract the exported symbol list from a shared archive.
15938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15939
15940 # Variables whose values should be saved in libtool wrapper scripts and
15941 # restored at link time.
15942 variables_saved_for_relink=$lt_variables_saved_for_relink
15943
15944 # Do we need the "lib" prefix for modules?
15945 need_lib_prefix=$need_lib_prefix
15946
15947 # Do we need a version for libraries?
15948 need_version=$need_version
15949
15950 # Library versioning type.
15951 version_type=$version_type
15952
15953 # Shared library runtime path variable.
15954 runpath_var=$runpath_var
15955
15956 # Shared library path variable.
15957 shlibpath_var=$shlibpath_var
15958
15959 # Is shlibpath searched before the hard-coded library search path?
15960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15961
15962 # Format of library name prefix.
15963 libname_spec=$lt_libname_spec
15964
15965 # List of archive names.  First name is the real one, the rest are links.
15966 # The last name is the one that the linker finds with -lNAME
15967 library_names_spec=$lt_library_names_spec
15968
15969 # The coded name of the library, if different from the real name.
15970 soname_spec=$lt_soname_spec
15971
15972 # Permission mode override for installation of shared libraries.
15973 install_override_mode=$lt_install_override_mode
15974
15975 # Command to use after installation of a shared archive.
15976 postinstall_cmds=$lt_postinstall_cmds
15977
15978 # Command to use after uninstallation of a shared archive.
15979 postuninstall_cmds=$lt_postuninstall_cmds
15980
15981 # Commands used to finish a libtool library installation in a directory.
15982 finish_cmds=$lt_finish_cmds
15983
15984 # As "finish_cmds", except a single script fragment to be evaled but
15985 # not shown.
15986 finish_eval=$lt_finish_eval
15987
15988 # Whether we should hardcode library paths into libraries.
15989 hardcode_into_libs=$hardcode_into_libs
15990
15991 # Compile-time system search path for libraries.
15992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15993
15994 # Detected run-time system search path for libraries.
15995 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15996
15997 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15998 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15999
16000 # Whether dlopen is supported.
16001 dlopen_support=$enable_dlopen
16002
16003 # Whether dlopen of programs is supported.
16004 dlopen_self=$enable_dlopen_self
16005
16006 # Whether dlopen of statically linked programs is supported.
16007 dlopen_self_static=$enable_dlopen_self_static
16008
16009 # Commands to strip libraries.
16010 old_striplib=$lt_old_striplib
16011 striplib=$lt_striplib
16012
16013
16014 # The linker used to build libraries.
16015 LD=$lt_LD
16016
16017 # How to create reloadable object files.
16018 reload_flag=$lt_reload_flag
16019 reload_cmds=$lt_reload_cmds
16020
16021 # Commands used to build an old-style archive.
16022 old_archive_cmds=$lt_old_archive_cmds
16023
16024 # A language specific compiler.
16025 CC=$lt_compiler
16026
16027 # Is the compiler the GNU compiler?
16028 with_gcc=$GCC
16029
16030 # Compiler flag to turn off builtin functions.
16031 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16032
16033 # Additional compiler flags for building library objects.
16034 pic_flag=$lt_lt_prog_compiler_pic
16035
16036 # How to pass a linker flag through the compiler.
16037 wl=$lt_lt_prog_compiler_wl
16038
16039 # Compiler flag to prevent dynamic linking.
16040 link_static_flag=$lt_lt_prog_compiler_static
16041
16042 # Does compiler simultaneously support -c and -o options?
16043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16044
16045 # Whether or not to add -lc for building shared libraries.
16046 build_libtool_need_lc=$archive_cmds_need_lc
16047
16048 # Whether or not to disallow shared libs when runtime libs are static.
16049 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16050
16051 # Compiler flag to allow reflexive dlopens.
16052 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16053
16054 # Compiler flag to generate shared objects directly from archives.
16055 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16056
16057 # Whether the compiler copes with passing no objects directly.
16058 compiler_needs_object=$lt_compiler_needs_object
16059
16060 # Create an old-style archive from a shared archive.
16061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16062
16063 # Create a temporary old-style archive to link instead of a shared archive.
16064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16065
16066 # Commands used to build a shared archive.
16067 archive_cmds=$lt_archive_cmds
16068 archive_expsym_cmds=$lt_archive_expsym_cmds
16069
16070 # Commands used to build a loadable module if different from building
16071 # a shared archive.
16072 module_cmds=$lt_module_cmds
16073 module_expsym_cmds=$lt_module_expsym_cmds
16074
16075 # Whether we are building with GNU ld or not.
16076 with_gnu_ld=$lt_with_gnu_ld
16077
16078 # Flag that allows shared libraries with undefined symbols to be built.
16079 allow_undefined_flag=$lt_allow_undefined_flag
16080
16081 # Flag that enforces no undefined symbols.
16082 no_undefined_flag=$lt_no_undefined_flag
16083
16084 # Flag to hardcode \$libdir into a binary during linking.
16085 # This must work even if \$libdir does not exist
16086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16087
16088 # Whether we need a single "-rpath" flag with a separated argument.
16089 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16090
16091 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16092 # DIR into the resulting binary.
16093 hardcode_direct=$hardcode_direct
16094
16095 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16096 # DIR into the resulting binary and the resulting library dependency is
16097 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16098 # library is relocated.
16099 hardcode_direct_absolute=$hardcode_direct_absolute
16100
16101 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16102 # into the resulting binary.
16103 hardcode_minus_L=$hardcode_minus_L
16104
16105 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16106 # into the resulting binary.
16107 hardcode_shlibpath_var=$hardcode_shlibpath_var
16108
16109 # Set to "yes" if building a shared library automatically hardcodes DIR
16110 # into the library and all subsequent libraries and executables linked
16111 # against it.
16112 hardcode_automatic=$hardcode_automatic
16113
16114 # Set to yes if linker adds runtime paths of dependent libraries
16115 # to runtime path list.
16116 inherit_rpath=$inherit_rpath
16117
16118 # Whether libtool must link a program against all its dependency libraries.
16119 link_all_deplibs=$link_all_deplibs
16120
16121 # Set to "yes" if exported symbols are required.
16122 always_export_symbols=$always_export_symbols
16123
16124 # The commands to list exported symbols.
16125 export_symbols_cmds=$lt_export_symbols_cmds
16126
16127 # Symbols that should not be listed in the preloaded symbols.
16128 exclude_expsyms=$lt_exclude_expsyms
16129
16130 # Symbols that must always be exported.
16131 include_expsyms=$lt_include_expsyms
16132
16133 # Commands necessary for linking programs (against libraries) with templates.
16134 prelink_cmds=$lt_prelink_cmds
16135
16136 # Commands necessary for finishing linking programs.
16137 postlink_cmds=$lt_postlink_cmds
16138
16139 # Specify filename containing input files.
16140 file_list_spec=$lt_file_list_spec
16141
16142 # How to hardcode a shared library path into an executable.
16143 hardcode_action=$hardcode_action
16144
16145 # ### END LIBTOOL CONFIG
16146
16147 _LT_EOF
16148
16149     cat <<'_LT_EOF' >> "$cfgfile"
16150
16151 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16152
16153 # func_munge_path_list VARIABLE PATH
16154 # -----------------------------------
16155 # VARIABLE is name of variable containing _space_ separated list of
16156 # directories to be munged by the contents of PATH, which is string
16157 # having a format:
16158 # "DIR[:DIR]:"
16159 #       string "DIR[ DIR]" will be prepended to VARIABLE
16160 # ":DIR[:DIR]"
16161 #       string "DIR[ DIR]" will be appended to VARIABLE
16162 # "DIRP[:DIRP]::[DIRA:]DIRA"
16163 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16164 #       "DIRA[ DIRA]" will be appended to VARIABLE
16165 # "DIR[:DIR]"
16166 #       VARIABLE will be replaced by "DIR[ DIR]"
16167 func_munge_path_list ()
16168 {
16169     case x$2 in
16170     x)
16171         ;;
16172     *:)
16173         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16174         ;;
16175     x:*)
16176         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16177         ;;
16178     *::*)
16179         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16180         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16181         ;;
16182     *)
16183         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16184         ;;
16185     esac
16186 }
16187
16188
16189 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16190 func_cc_basename ()
16191 {
16192     for cc_temp in $*""; do
16193       case $cc_temp in
16194         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16195         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16196         \-*) ;;
16197         *) break;;
16198       esac
16199     done
16200     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16201 }
16202
16203
16204 # ### END FUNCTIONS SHARED WITH CONFIGURE
16205
16206 _LT_EOF
16207
16208   case $host_os in
16209   aix3*)
16210     cat <<\_LT_EOF >> "$cfgfile"
16211 # AIX sometimes has problems with the GCC collect2 program.  For some
16212 # reason, if we set the COLLECT_NAMES environment variable, the problems
16213 # vanish in a puff of smoke.
16214 if test set != "${COLLECT_NAMES+set}"; then
16215   COLLECT_NAMES=
16216   export COLLECT_NAMES
16217 fi
16218 _LT_EOF
16219     ;;
16220   esac
16221
16222
16223 ltmain=$ac_aux_dir/ltmain.sh
16224
16225
16226   # We use sed instead of cat because bash on DJGPP gets confused if
16227   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16228   # text mode, it properly converts lines to CR/LF.  This bash problem
16229   # is reportedly fixed, but why not run on old versions too?
16230   sed '$q' "$ltmain" >> "$cfgfile" \
16231      || (rm -f "$cfgfile"; exit 1)
16232
16233    mv -f "$cfgfile" "$ofile" ||
16234     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16235   chmod +x "$ofile"
16236
16237  ;;
16238
16239   esac
16240 done # for ac_tag
16241
16242
16243 as_fn_exit 0
16244 _ACEOF
16245 ac_clean_files=$ac_clean_files_save
16246
16247 test $ac_write_fail = 0 ||
16248   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16249
16250
16251 # configure is writing to config.log, and then calls config.status.
16252 # config.status does its own redirection, appending to config.log.
16253 # Unfortunately, on DOS this fails, as config.log is still kept open
16254 # by configure, so config.status won't be able to write to it; its
16255 # output is simply discarded.  So we exec the FD to /dev/null,
16256 # effectively closing config.log, so it can be properly (re)opened and
16257 # appended to by config.status.  When coming back to configure, we
16258 # need to make the FD available again.
16259 if test "$no_create" != yes; then
16260   ac_cs_success=:
16261   ac_config_status_args=
16262   test "$silent" = yes &&
16263     ac_config_status_args="$ac_config_status_args --quiet"
16264   exec 5>/dev/null
16265   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16266   exec 5>>config.log
16267   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16268   # would make configure fail if this is the last instruction.
16269   $ac_cs_success || as_fn_exit 1
16270 fi
16271 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16272   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16273 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16274 fi
16275