810a9ce390ba7dec0a789d7102c185efe0ec5b6d
[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 1.0.8.
4 #
5 # Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
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: https://github.com/fribidi/fribidi/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='GNU FriBidi'
592 PACKAGE_TARNAME='fribidi'
593 PACKAGE_VERSION='1.0.8'
594 PACKAGE_STRING='GNU FriBidi 1.0.8'
595 PACKAGE_BUGREPORT='https://github.com/fribidi/fribidi/issues/new'
596 PACKAGE_URL='http://fribidi.org/'
597
598 ac_unique_file="fribidi.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 LDFLAGS_FOR_BUILD
640 CPPFLAGS_FOR_BUILD
641 CFLAGS_FOR_BUILD
642 BUILD_OBJEXT
643 BUILD_EXEEXT
644 CPP_FOR_BUILD
645 ac_ct_CC_FOR_BUILD
646 CC_FOR_BUILD
647 SIZEOF_INT
648 PLATFORM_WIN32_FALSE
649 PLATFORM_WIN32_TRUE
650 OS_WIN32_FALSE
651 OS_WIN32_TRUE
652 PKG_CONFIG_LIBDIR
653 PKG_CONFIG_PATH
654 PKG_CONFIG
655 LT_CURRENT_MINUS_AGE
656 LT_VERSION_INFO
657 FRIBIDI_MSVC_BUILD_PLACEHOLDER
658 FRIBIDI_BINARY_AGE
659 FRIBIDI_INTERFACE_AGE
660 FRIBIDI_INTERFACE_VERSION
661 FRIBIDI_VERSION
662 FRIBIDI_MICRO_VERSION
663 FRIBIDI_MINOR_VERSION
664 FRIBIDI_MAJOR_VERSION
665 CPP
666 LT_SYS_LIBRARY_PATH
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 MANIFEST_TOOL
673 RANLIB
674 DLLTOOL
675 OBJDUMP
676 LN_S
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 EGREP
683 GREP
684 SED
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 LIBTOOL
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__include
702 DEPDIR
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 ac_ct_AR
711 AR
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL
777 am__quote'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_silent_rules
782 enable_dependency_tracking
783 enable_static
784 enable_shared
785 with_pic
786 enable_fast_install
787 with_aix_soname
788 with_gnu_ld
789 with_sysroot
790 enable_libtool_lock
791 enable_debug
792 enable_deprecated
793 '
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 LT_SYS_LIBRARY_PATH
803 CPP
804 PKG_CONFIG
805 PKG_CONFIG_PATH
806 PKG_CONFIG_LIBDIR'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861   # If the previous option needs an argument, assign it.
862   if test -n "$ac_prev"; then
863     eval $ac_prev=\$ac_option
864     ac_prev=
865     continue
866   fi
867
868   case $ac_option in
869   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870   *=)   ac_optarg= ;;
871   *)    ac_optarg=yes ;;
872   esac
873
874   # Accept the important Cygnus configure options, so we can diagnose typos.
875
876   case $ac_dashdash$ac_option in
877   --)
878     ac_dashdash=yes ;;
879
880   -bindir | --bindir | --bindi | --bind | --bin | --bi)
881     ac_prev=bindir ;;
882   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883     bindir=$ac_optarg ;;
884
885   -build | --build | --buil | --bui | --bu)
886     ac_prev=build_alias ;;
887   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888     build_alias=$ac_optarg ;;
889
890   -cache-file | --cache-file | --cache-fil | --cache-fi \
891   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892     ac_prev=cache_file ;;
893   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895     cache_file=$ac_optarg ;;
896
897   --config-cache | -C)
898     cache_file=config.cache ;;
899
900   -datadir | --datadir | --datadi | --datad)
901     ac_prev=datadir ;;
902   -datadir=* | --datadir=* | --datadi=* | --datad=*)
903     datadir=$ac_optarg ;;
904
905   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906   | --dataroo | --dataro | --datar)
907     ac_prev=datarootdir ;;
908   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910     datarootdir=$ac_optarg ;;
911
912   -disable-* | --disable-*)
913     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916       as_fn_error $? "invalid feature name: $ac_useropt"
917     ac_useropt_orig=$ac_useropt
918     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919     case $ac_user_opts in
920       *"
921 "enable_$ac_useropt"
922 "*) ;;
923       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924          ac_unrecognized_sep=', ';;
925     esac
926     eval enable_$ac_useropt=no ;;
927
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
932
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
937
938   -enable-* | --enable-*)
939     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942       as_fn_error $? "invalid feature name: $ac_useropt"
943     ac_useropt_orig=$ac_useropt
944     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945     case $ac_user_opts in
946       *"
947 "enable_$ac_useropt"
948 "*) ;;
949       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950          ac_unrecognized_sep=', ';;
951     esac
952     eval enable_$ac_useropt=\$ac_optarg ;;
953
954   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956   | --exec | --exe | --ex)
957     ac_prev=exec_prefix ;;
958   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960   | --exec=* | --exe=* | --ex=*)
961     exec_prefix=$ac_optarg ;;
962
963   -gas | --gas | --ga | --g)
964     # Obsolete; use --with-gas.
965     with_gas=yes ;;
966
967   -help | --help | --hel | --he | -h)
968     ac_init_help=long ;;
969   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970     ac_init_help=recursive ;;
971   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972     ac_init_help=short ;;
973
974   -host | --host | --hos | --ho)
975     ac_prev=host_alias ;;
976   -host=* | --host=* | --hos=* | --ho=*)
977     host_alias=$ac_optarg ;;
978
979   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980     ac_prev=htmldir ;;
981   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982   | --ht=*)
983     htmldir=$ac_optarg ;;
984
985   -includedir | --includedir | --includedi | --included | --include \
986   | --includ | --inclu | --incl | --inc)
987     ac_prev=includedir ;;
988   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989   | --includ=* | --inclu=* | --incl=* | --inc=*)
990     includedir=$ac_optarg ;;
991
992   -infodir | --infodir | --infodi | --infod | --info | --inf)
993     ac_prev=infodir ;;
994   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995     infodir=$ac_optarg ;;
996
997   -libdir | --libdir | --libdi | --libd)
998     ac_prev=libdir ;;
999   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000     libdir=$ac_optarg ;;
1001
1002   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003   | --libexe | --libex | --libe)
1004     ac_prev=libexecdir ;;
1005   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006   | --libexe=* | --libex=* | --libe=*)
1007     libexecdir=$ac_optarg ;;
1008
1009   -localedir | --localedir | --localedi | --localed | --locale)
1010     ac_prev=localedir ;;
1011   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012     localedir=$ac_optarg ;;
1013
1014   -localstatedir | --localstatedir | --localstatedi | --localstated \
1015   | --localstate | --localstat | --localsta | --localst | --locals)
1016     ac_prev=localstatedir ;;
1017   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019     localstatedir=$ac_optarg ;;
1020
1021   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022     ac_prev=mandir ;;
1023   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024     mandir=$ac_optarg ;;
1025
1026   -nfp | --nfp | --nf)
1027     # Obsolete; use --without-fp.
1028     with_fp=no ;;
1029
1030   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031   | --no-cr | --no-c | -n)
1032     no_create=yes ;;
1033
1034   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036     no_recursion=yes ;;
1037
1038   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040   | --oldin | --oldi | --old | --ol | --o)
1041     ac_prev=oldincludedir ;;
1042   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045     oldincludedir=$ac_optarg ;;
1046
1047   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048     ac_prev=prefix ;;
1049   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050     prefix=$ac_optarg ;;
1051
1052   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053   | --program-pre | --program-pr | --program-p)
1054     ac_prev=program_prefix ;;
1055   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057     program_prefix=$ac_optarg ;;
1058
1059   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060   | --program-suf | --program-su | --program-s)
1061     ac_prev=program_suffix ;;
1062   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064     program_suffix=$ac_optarg ;;
1065
1066   -program-transform-name | --program-transform-name \
1067   | --program-transform-nam | --program-transform-na \
1068   | --program-transform-n | --program-transform- \
1069   | --program-transform | --program-transfor \
1070   | --program-transfo | --program-transf \
1071   | --program-trans | --program-tran \
1072   | --progr-tra | --program-tr | --program-t)
1073     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1082
1083   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084     ac_prev=pdfdir ;;
1085   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086     pdfdir=$ac_optarg ;;
1087
1088   -psdir | --psdir | --psdi | --psd | --ps)
1089     ac_prev=psdir ;;
1090   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091     psdir=$ac_optarg ;;
1092
1093   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094   | -silent | --silent | --silen | --sile | --sil)
1095     silent=yes ;;
1096
1097   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098     ac_prev=sbindir ;;
1099   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100   | --sbi=* | --sb=*)
1101     sbindir=$ac_optarg ;;
1102
1103   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105   | --sharedst | --shareds | --shared | --share | --shar \
1106   | --sha | --sh)
1107     ac_prev=sharedstatedir ;;
1108   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111   | --sha=* | --sh=*)
1112     sharedstatedir=$ac_optarg ;;
1113
1114   -site | --site | --sit)
1115     ac_prev=site ;;
1116   -site=* | --site=* | --sit=*)
1117     site=$ac_optarg ;;
1118
1119   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120     ac_prev=srcdir ;;
1121   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122     srcdir=$ac_optarg ;;
1123
1124   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125   | --syscon | --sysco | --sysc | --sys | --sy)
1126     ac_prev=sysconfdir ;;
1127   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129     sysconfdir=$ac_optarg ;;
1130
1131   -target | --target | --targe | --targ | --tar | --ta | --t)
1132     ac_prev=target_alias ;;
1133   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134     target_alias=$ac_optarg ;;
1135
1136   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137     verbose=yes ;;
1138
1139   -version | --version | --versio | --versi | --vers | -V)
1140     ac_init_version=: ;;
1141
1142   -with-* | --with-*)
1143     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146       as_fn_error $? "invalid package name: $ac_useropt"
1147     ac_useropt_orig=$ac_useropt
1148     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149     case $ac_user_opts in
1150       *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154          ac_unrecognized_sep=', ';;
1155     esac
1156     eval with_$ac_useropt=\$ac_optarg ;;
1157
1158   -without-* | --without-*)
1159     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162       as_fn_error $? "invalid package name: $ac_useropt"
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval with_$ac_useropt=no ;;
1173
1174   --x)
1175     # Obsolete; use --with-x.
1176     with_x=yes ;;
1177
1178   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179   | --x-incl | --x-inc | --x-in | --x-i)
1180     ac_prev=x_includes ;;
1181   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183     x_includes=$ac_optarg ;;
1184
1185   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187     ac_prev=x_libraries ;;
1188   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190     x_libraries=$ac_optarg ;;
1191
1192   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194     ;;
1195
1196   *=*)
1197     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198     # Reject names that are not valid shell variable names.
1199     case $ac_envvar in #(
1200       '' | [0-9]* | *[!_$as_cr_alnum]* )
1201       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202     esac
1203     eval $ac_envvar=\$ac_optarg
1204     export $ac_envvar ;;
1205
1206   *)
1207     # FIXME: should be removed in autoconf 3.0.
1208     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212     ;;
1213
1214   esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219   as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223   case $enable_option_checking in
1224     no) ;;
1225     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227   esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232                 datadir sysconfdir sharedstatedir localstatedir includedir \
1233                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234                 libdir localedir mandir
1235 do
1236   eval ac_val=\$$ac_var
1237   # Remove trailing slashes.
1238   case $ac_val in
1239     */ )
1240       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241       eval $ac_var=\$ac_val;;
1242   esac
1243   # Be sure to have absolute directory names.
1244   case $ac_val in
1245     [\\/$]* | ?:[\\/]* )  continue;;
1246     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247   esac
1248   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260   if test "x$build_alias" = x; then
1261     cross_compiling=maybe
1262   elif test "x$build_alias" != "x$host_alias"; then
1263     cross_compiling=yes
1264   fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276   as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278   as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283   ac_srcdir_defaulted=yes
1284   # Try the directory containing this script, then the parent directory.
1285   ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287          X"$as_myself" : 'X\(//\)[^/]' \| \
1288          X"$as_myself" : 'X\(//\)$' \| \
1289          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292             s//\1/
1293             q
1294           }
1295           /^X\(\/\/\)[^/].*/{
1296             s//\1/
1297             q
1298           }
1299           /^X\(\/\/\)$/{
1300             s//\1/
1301             q
1302           }
1303           /^X\(\/\).*/{
1304             s//\1/
1305             q
1306           }
1307           s/.*/./; q'`
1308   srcdir=$ac_confdir
1309   if test ! -r "$srcdir/$ac_unique_file"; then
1310     srcdir=..
1311   fi
1312 else
1313   ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322         pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325   srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335   eval ac_env_${ac_var}_value=\$${ac_var}
1336   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344   # Omit some internal or obsolete options to make the list less imposing.
1345   # This message is too long to be a string in the A/UX 3.1 sh.
1346   cat <<_ACEOF
1347 \`configure' configures GNU FriBidi 1.0.8 to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357   -h, --help              display this help and exit
1358       --help=short        display options specific to this package
1359       --help=recursive    display the short help of all the included packages
1360   -V, --version           display version information and exit
1361   -q, --quiet, --silent   do not print \`checking ...' messages
1362       --cache-file=FILE   cache test results in FILE [disabled]
1363   -C, --config-cache      alias for \`--cache-file=config.cache'
1364   -n, --no-create         do not create output files
1365       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368   --prefix=PREFIX         install architecture-independent files in PREFIX
1369                           [$ac_default_prefix]
1370   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                           [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381   --bindir=DIR            user executables [EPREFIX/bin]
1382   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383   --libexecdir=DIR        program executables [EPREFIX/libexec]
1384   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387   --libdir=DIR            object code libraries [EPREFIX/lib]
1388   --includedir=DIR        C header files [PREFIX/include]
1389   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1390   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1391   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1392   --infodir=DIR           info documentation [DATAROOTDIR/info]
1393   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1394   --mandir=DIR            man documentation [DATAROOTDIR/man]
1395   --docdir=DIR            documentation root [DATAROOTDIR/doc/fribidi]
1396   --htmldir=DIR           html documentation [DOCDIR]
1397   --dvidir=DIR            dvi documentation [DOCDIR]
1398   --pdfdir=DIR            pdf documentation [DOCDIR]
1399   --psdir=DIR             ps documentation [DOCDIR]
1400 _ACEOF
1401
1402   cat <<\_ACEOF
1403
1404 Program names:
1405   --program-prefix=PREFIX            prepend PREFIX to installed program names
1406   --program-suffix=SUFFIX            append SUFFIX to installed program names
1407   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1408
1409 System types:
1410   --build=BUILD     configure for building on BUILD [guessed]
1411   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1412 _ACEOF
1413 fi
1414
1415 if test -n "$ac_init_help"; then
1416   case $ac_init_help in
1417      short | recursive ) echo "Configuration of GNU FriBidi 1.0.8:";;
1418    esac
1419   cat <<\_ACEOF
1420
1421 Optional Features:
1422   --disable-option-checking  ignore unrecognized --enable/--with options
1423   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425   --enable-silent-rules   less verbose build output (undo: "make V=1")
1426   --disable-silent-rules  verbose build output (undo: "make V=0")
1427   --enable-dependency-tracking
1428                           do not reject slow dependency extractors
1429   --disable-dependency-tracking
1430                           speeds up one-time build
1431   --enable-static[=PKGS]  build static libraries [default=no]
1432   --enable-shared[=PKGS]  build shared libraries [default=yes]
1433   --enable-fast-install[=PKGS]
1434                           optimize for fast installation [default=yes]
1435   --disable-libtool-lock  avoid locking (might break parallel builds)
1436   --enable-debug          turn on debugging [default=no]
1437   --disable-deprecated    do not build deprecated functionality
1438
1439 Optional Packages:
1440   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1443                           both]
1444   --with-aix-soname=aix|svr4|both
1445                           shared library versioning (aka "SONAME") variant to
1446                           provide on AIX, [default=aix].
1447   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1448   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1449                           compiler's sysroot if not specified).
1450
1451 Some influential environment variables:
1452   CC          C compiler command
1453   CFLAGS      C compiler flags
1454   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455               nonstandard directory <lib dir>
1456   LIBS        libraries to pass to the linker, e.g. -l<library>
1457   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458               you have headers in a nonstandard directory <include dir>
1459   LT_SYS_LIBRARY_PATH
1460               User-defined run-time library search path.
1461   CPP         C preprocessor
1462   PKG_CONFIG  path to pkg-config utility
1463   PKG_CONFIG_PATH
1464               directories to add to pkg-config's search path
1465   PKG_CONFIG_LIBDIR
1466               path overriding pkg-config's built-in search path
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
1472 GNU FriBidi home page: <http://fribidi.org/>.
1473 General help using GNU software: <http://www.gnu.org/gethelp/>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" ||
1482       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483       continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 GNU FriBidi configure 1.0.8
1537 generated by GNU Autoconf 2.69
1538
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543   exit
1544 fi
1545
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1549
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1554 {
1555   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556   rm -f conftest.$ac_objext
1557   if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560   *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564   (eval "$ac_compile") 2>conftest.err
1565   ac_status=$?
1566   if test -s conftest.err; then
1567     grep -v '^ *+' conftest.err >conftest.er1
1568     cat conftest.er1 >&5
1569     mv -f conftest.er1 conftest.err
1570   fi
1571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572   test $ac_status = 0; } && {
1573          test -z "$ac_c_werror_flag" ||
1574          test ! -s conftest.err
1575        } && test -s conftest.$ac_objext; then :
1576   ac_retval=0
1577 else
1578   $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581         ac_retval=1
1582 fi
1583   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584   as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_c_try_link LINENO
1589 # -----------------------
1590 # Try to link conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_link ()
1592 {
1593   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594   rm -f conftest.$ac_objext conftest$ac_exeext
1595   if { { ac_try="$ac_link"
1596 case "(($ac_try" in
1597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598   *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602   (eval "$ac_link") 2>conftest.err
1603   ac_status=$?
1604   if test -s conftest.err; then
1605     grep -v '^ *+' conftest.err >conftest.er1
1606     cat conftest.er1 >&5
1607     mv -f conftest.er1 conftest.err
1608   fi
1609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610   test $ac_status = 0; } && {
1611          test -z "$ac_c_werror_flag" ||
1612          test ! -s conftest.err
1613        } && test -s conftest$ac_exeext && {
1614          test "$cross_compiling" = yes ||
1615          test -x conftest$ac_exeext
1616        }; then :
1617   ac_retval=0
1618 else
1619   $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622         ac_retval=1
1623 fi
1624   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626   # interfere with the next link command; also delete a directory that is
1627   # left behind by Apple's compiler.  We do this before executing the actions.
1628   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630   as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_link
1633
1634 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists and can be compiled using the include files in
1637 # INCLUDES, setting the cache variable VAR accordingly.
1638 ac_fn_c_check_header_compile ()
1639 {
1640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644   $as_echo_n "(cached) " >&6
1645 else
1646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h.  */
1648 $4
1649 #include <$2>
1650 _ACEOF
1651 if ac_fn_c_try_compile "$LINENO"; then :
1652   eval "$3=yes"
1653 else
1654   eval "$3=no"
1655 fi
1656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657 fi
1658 eval ac_res=\$$3
1659                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663 } # ac_fn_c_check_header_compile
1664
1665 # ac_fn_c_try_cpp LINENO
1666 # ----------------------
1667 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_cpp ()
1669 {
1670   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671   if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679   ac_status=$?
1680   if test -s conftest.err; then
1681     grep -v '^ *+' conftest.err >conftest.er1
1682     cat conftest.er1 >&5
1683     mv -f conftest.er1 conftest.err
1684   fi
1685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686   test $ac_status = 0; } > conftest.i && {
1687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688          test ! -s conftest.err
1689        }; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695     ac_retval=1
1696 fi
1697   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698   as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_cpp
1701
1702 # ac_fn_c_try_run LINENO
1703 # ----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705 # that executables *can* be run.
1706 ac_fn_c_try_run ()
1707 {
1708   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709   if { { ac_try="$ac_link"
1710 case "(($ac_try" in
1711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712   *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716   (eval "$ac_link") 2>&5
1717   ac_status=$?
1718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720   { { case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_try") 2>&5
1727   ac_status=$?
1728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729   test $ac_status = 0; }; }; then :
1730   ac_retval=0
1731 else
1732   $as_echo "$as_me: program exited with status $ac_status" >&5
1733        $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736        ac_retval=$ac_status
1737 fi
1738   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740   as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_run
1743
1744 # ac_fn_c_check_func LINENO FUNC VAR
1745 # ----------------------------------
1746 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1747 ac_fn_c_check_func ()
1748 {
1749   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753   $as_echo_n "(cached) " >&6
1754 else
1755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h.  */
1757 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1759 #define $2 innocuous_$2
1760
1761 /* System header to define __stub macros and hopefully few prototypes,
1762     which can conflict with char $2 (); below.
1763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764     <limits.h> exists even on freestanding compilers.  */
1765
1766 #ifdef __STDC__
1767 # include <limits.h>
1768 #else
1769 # include <assert.h>
1770 #endif
1771
1772 #undef $2
1773
1774 /* Override any GCC internal prototype to avoid an error.
1775    Use char because int might match the return type of a GCC
1776    builtin and then its argument prototype would still apply.  */
1777 #ifdef __cplusplus
1778 extern "C"
1779 #endif
1780 char $2 ();
1781 /* The GNU C library defines this for functions which it implements
1782     to always fail with ENOSYS.  Some functions are actually named
1783     something starting with __ and the normal name is an alias.  */
1784 #if defined __stub_$2 || defined __stub___$2
1785 choke me
1786 #endif
1787
1788 int
1789 main ()
1790 {
1791 return $2 ();
1792   ;
1793   return 0;
1794 }
1795 _ACEOF
1796 if ac_fn_c_try_link "$LINENO"; then :
1797   eval "$3=yes"
1798 else
1799   eval "$3=no"
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext \
1802     conftest$ac_exeext conftest.$ac_ext
1803 fi
1804 eval ac_res=\$$3
1805                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809 } # ac_fn_c_check_func
1810
1811 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1812 # -------------------------------------------------------
1813 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1814 # the include files in INCLUDES and setting the cache variable VAR
1815 # accordingly.
1816 ac_fn_c_check_header_mongrel ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   if eval \${$3+:} false; then :
1820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823   $as_echo_n "(cached) " >&6
1824 fi
1825 eval ac_res=\$$3
1826                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 else
1829   # Is the header compilable?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1831 $as_echo_n "checking $2 usability... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h.  */
1834 $4
1835 #include <$2>
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"; then :
1838   ac_header_compiler=yes
1839 else
1840   ac_header_compiler=no
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1844 $as_echo "$ac_header_compiler" >&6; }
1845
1846 # Is the header present?
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1848 $as_echo_n "checking $2 presence... " >&6; }
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h.  */
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_cpp "$LINENO"; then :
1854   ac_header_preproc=yes
1855 else
1856   ac_header_preproc=no
1857 fi
1858 rm -f conftest.err conftest.i conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1860 $as_echo "$ac_header_preproc" >&6; }
1861
1862 # So?  What about this header?
1863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864   yes:no: )
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1866 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869     ;;
1870   no:yes:* )
1871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1872 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1874 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1876 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1878 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1879     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 ( $as_echo "## ------------------------------------------------------------ ##
1882 ## Report this to https://github.com/fribidi/fribidi/issues/new ##
1883 ## ------------------------------------------------------------ ##"
1884      ) | sed "s/^/$as_me: WARNING:     /" >&2
1885     ;;
1886 esac
1887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890   $as_echo_n "(cached) " >&6
1891 else
1892   eval "$3=\$ac_header_compiler"
1893 fi
1894 eval ac_res=\$$3
1895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 fi
1898   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_header_mongrel
1901
1902 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1903 # --------------------------------------------
1904 # Tries to find the compile-time value of EXPR in a program that includes
1905 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1906 # computed
1907 ac_fn_c_compute_int ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   if test "$cross_compiling" = yes; then
1911     # Depending upon the size, compute the lo and hi bounds.
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h.  */
1914 $4
1915 int
1916 main ()
1917 {
1918 static int test_array [1 - 2 * !(($2) >= 0)];
1919 test_array [0] = 0;
1920 return test_array [0];
1921
1922   ;
1923   return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927   ac_lo=0 ac_mid=0
1928   while :; do
1929     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 $4
1932 int
1933 main ()
1934 {
1935 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1936 test_array [0] = 0;
1937 return test_array [0];
1938
1939   ;
1940   return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944   ac_hi=$ac_mid; break
1945 else
1946   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1947                         if test $ac_lo -le $ac_mid; then
1948                           ac_lo= ac_hi=
1949                           break
1950                         fi
1951                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954   done
1955 else
1956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 $4
1959 int
1960 main ()
1961 {
1962 static int test_array [1 - 2 * !(($2) < 0)];
1963 test_array [0] = 0;
1964 return test_array [0];
1965
1966   ;
1967   return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971   ac_hi=-1 ac_mid=-1
1972   while :; do
1973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h.  */
1975 $4
1976 int
1977 main ()
1978 {
1979 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1980 test_array [0] = 0;
1981 return test_array [0];
1982
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988   ac_lo=$ac_mid; break
1989 else
1990   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1991                         if test $ac_mid -le $ac_hi; then
1992                           ac_lo= ac_hi=
1993                           break
1994                         fi
1995                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998   done
1999 else
2000   ac_lo= ac_hi=
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 # Binary search between lo and hi bounds.
2006 while test "x$ac_lo" != "x$ac_hi"; do
2007   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $4
2011 int
2012 main ()
2013 {
2014 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2015 test_array [0] = 0;
2016 return test_array [0];
2017
2018   ;
2019   return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023   ac_hi=$ac_mid
2024 else
2025   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 done
2029 case $ac_lo in #((
2030 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2031 '') ac_retval=1 ;;
2032 esac
2033   else
2034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 static long int longval () { return $2; }
2038 static unsigned long int ulongval () { return $2; }
2039 #include <stdio.h>
2040 #include <stdlib.h>
2041 int
2042 main ()
2043 {
2044
2045   FILE *f = fopen ("conftest.val", "w");
2046   if (! f)
2047     return 1;
2048   if (($2) < 0)
2049     {
2050       long int i = longval ();
2051       if (i != ($2))
2052         return 1;
2053       fprintf (f, "%ld", i);
2054     }
2055   else
2056     {
2057       unsigned long int i = ulongval ();
2058       if (i != ($2))
2059         return 1;
2060       fprintf (f, "%lu", i);
2061     }
2062   /* Do not output a trailing newline, as this causes \r\n confusion
2063      on some platforms.  */
2064   return ferror (f) || fclose (f) != 0;
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_run "$LINENO"; then :
2071   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2072 else
2073   ac_retval=1
2074 fi
2075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2076   conftest.$ac_objext conftest.beam conftest.$ac_ext
2077 rm -f conftest.val
2078
2079   fi
2080   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081   as_fn_set_status $ac_retval
2082
2083 } # ac_fn_c_compute_int
2084 cat >config.log <<_ACEOF
2085 This file contains any messages produced by compilers while
2086 running configure, to aid debugging if configure makes a mistake.
2087
2088 It was created by GNU FriBidi $as_me 1.0.8, which was
2089 generated by GNU Autoconf 2.69.  Invocation command line was
2090
2091   $ $0 $@
2092
2093 _ACEOF
2094 exec 5>>config.log
2095 {
2096 cat <<_ASUNAME
2097 ## --------- ##
2098 ## Platform. ##
2099 ## --------- ##
2100
2101 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2102 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2103 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2104 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2105 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2106
2107 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2108 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2109
2110 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2111 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2112 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2113 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2114 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2115 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2116 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2117
2118 _ASUNAME
2119
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123   IFS=$as_save_IFS
2124   test -z "$as_dir" && as_dir=.
2125     $as_echo "PATH: $as_dir"
2126   done
2127 IFS=$as_save_IFS
2128
2129 } >&5
2130
2131 cat >&5 <<_ACEOF
2132
2133
2134 ## ----------- ##
2135 ## Core tests. ##
2136 ## ----------- ##
2137
2138 _ACEOF
2139
2140
2141 # Keep a trace of the command line.
2142 # Strip out --no-create and --no-recursion so they do not pile up.
2143 # Strip out --silent because we don't want to record it for future runs.
2144 # Also quote any args containing shell meta-characters.
2145 # Make two passes to allow for proper duplicate-argument suppression.
2146 ac_configure_args=
2147 ac_configure_args0=
2148 ac_configure_args1=
2149 ac_must_keep_next=false
2150 for ac_pass in 1 2
2151 do
2152   for ac_arg
2153   do
2154     case $ac_arg in
2155     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2156     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2157     | -silent | --silent | --silen | --sile | --sil)
2158       continue ;;
2159     *\'*)
2160       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2161     esac
2162     case $ac_pass in
2163     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164     2)
2165       as_fn_append ac_configure_args1 " '$ac_arg'"
2166       if test $ac_must_keep_next = true; then
2167         ac_must_keep_next=false # Got value, back to normal.
2168       else
2169         case $ac_arg in
2170           *=* | --config-cache | -C | -disable-* | --disable-* \
2171           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2172           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2173           | -with-* | --with-* | -without-* | --without-* | --x)
2174             case "$ac_configure_args0 " in
2175               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2176             esac
2177             ;;
2178           -* ) ac_must_keep_next=true ;;
2179         esac
2180       fi
2181       as_fn_append ac_configure_args " '$ac_arg'"
2182       ;;
2183     esac
2184   done
2185 done
2186 { ac_configure_args0=; unset ac_configure_args0;}
2187 { ac_configure_args1=; unset ac_configure_args1;}
2188
2189 # When interrupted or exit'd, cleanup temporary files, and complete
2190 # config.log.  We remove comments because anyway the quotes in there
2191 # would cause problems or look ugly.
2192 # WARNING: Use '\'' to represent an apostrophe within the trap.
2193 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2194 trap 'exit_status=$?
2195   # Save into config.log some information that might help in debugging.
2196   {
2197     echo
2198
2199     $as_echo "## ---------------- ##
2200 ## Cache variables. ##
2201 ## ---------------- ##"
2202     echo
2203     # The following way of writing the cache mishandles newlines in values,
2204 (
2205   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2206     eval ac_val=\$$ac_var
2207     case $ac_val in #(
2208     *${as_nl}*)
2209       case $ac_var in #(
2210       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2212       esac
2213       case $ac_var in #(
2214       _ | IFS | as_nl) ;; #(
2215       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2216       *) { eval $ac_var=; unset $ac_var;} ;;
2217       esac ;;
2218     esac
2219   done
2220   (set) 2>&1 |
2221     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2222     *${as_nl}ac_space=\ *)
2223       sed -n \
2224         "s/'\''/'\''\\\\'\'''\''/g;
2225           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2226       ;; #(
2227     *)
2228       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2229       ;;
2230     esac |
2231     sort
2232 )
2233     echo
2234
2235     $as_echo "## ----------------- ##
2236 ## Output variables. ##
2237 ## ----------------- ##"
2238     echo
2239     for ac_var in $ac_subst_vars
2240     do
2241       eval ac_val=\$$ac_var
2242       case $ac_val in
2243       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244       esac
2245       $as_echo "$ac_var='\''$ac_val'\''"
2246     done | sort
2247     echo
2248
2249     if test -n "$ac_subst_files"; then
2250       $as_echo "## ------------------- ##
2251 ## File substitutions. ##
2252 ## ------------------- ##"
2253       echo
2254       for ac_var in $ac_subst_files
2255       do
2256         eval ac_val=\$$ac_var
2257         case $ac_val in
2258         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259         esac
2260         $as_echo "$ac_var='\''$ac_val'\''"
2261       done | sort
2262       echo
2263     fi
2264
2265     if test -s confdefs.h; then
2266       $as_echo "## ----------- ##
2267 ## confdefs.h. ##
2268 ## ----------- ##"
2269       echo
2270       cat confdefs.h
2271       echo
2272     fi
2273     test "$ac_signal" != 0 &&
2274       $as_echo "$as_me: caught signal $ac_signal"
2275     $as_echo "$as_me: exit $exit_status"
2276   } >&5
2277   rm -f core *.core core.conftest.* &&
2278     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2279     exit $exit_status
2280 ' 0
2281 for ac_signal in 1 2 13 15; do
2282   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2283 done
2284 ac_signal=0
2285
2286 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2287 rm -f -r conftest* confdefs.h
2288
2289 $as_echo "/* confdefs.h */" > confdefs.h
2290
2291 # Predefined preprocessor variables.
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_NAME "$PACKAGE_NAME"
2295 _ACEOF
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2299 _ACEOF
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2303 _ACEOF
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_STRING "$PACKAGE_STRING"
2307 _ACEOF
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_URL "$PACKAGE_URL"
2315 _ACEOF
2316
2317
2318 # Let the site file select an alternate cache file if it wants to.
2319 # Prefer an explicitly selected file to automatically selected ones.
2320 ac_site_file1=NONE
2321 ac_site_file2=NONE
2322 if test -n "$CONFIG_SITE"; then
2323   # We do not want a PATH search for config.site.
2324   case $CONFIG_SITE in #((
2325     -*)  ac_site_file1=./$CONFIG_SITE;;
2326     */*) ac_site_file1=$CONFIG_SITE;;
2327     *)   ac_site_file1=./$CONFIG_SITE;;
2328   esac
2329 elif test "x$prefix" != xNONE; then
2330   ac_site_file1=$prefix/share/config.site
2331   ac_site_file2=$prefix/etc/config.site
2332 else
2333   ac_site_file1=$ac_default_prefix/share/config.site
2334   ac_site_file2=$ac_default_prefix/etc/config.site
2335 fi
2336 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2337 do
2338   test "x$ac_site_file" = xNONE && continue
2339   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2340     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2341 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2342     sed 's/^/| /' "$ac_site_file" >&5
2343     . "$ac_site_file" \
2344       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346 as_fn_error $? "failed to load site script $ac_site_file
2347 See \`config.log' for more details" "$LINENO" 5; }
2348   fi
2349 done
2350
2351 if test -r "$cache_file"; then
2352   # Some versions of bash will fail to source /dev/null (special files
2353   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2354   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2355     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2356 $as_echo "$as_me: loading cache $cache_file" >&6;}
2357     case $cache_file in
2358       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2359       *)                      . "./$cache_file";;
2360     esac
2361   fi
2362 else
2363   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2364 $as_echo "$as_me: creating cache $cache_file" >&6;}
2365   >$cache_file
2366 fi
2367
2368 # Check that the precious variables saved in the cache have kept the same
2369 # value.
2370 ac_cache_corrupted=false
2371 for ac_var in $ac_precious_vars; do
2372   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2373   eval ac_new_set=\$ac_env_${ac_var}_set
2374   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2375   eval ac_new_val=\$ac_env_${ac_var}_value
2376   case $ac_old_set,$ac_new_set in
2377     set,)
2378       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2379 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2380       ac_cache_corrupted=: ;;
2381     ,set)
2382       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2383 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2384       ac_cache_corrupted=: ;;
2385     ,);;
2386     *)
2387       if test "x$ac_old_val" != "x$ac_new_val"; then
2388         # differences in whitespace do not lead to failure.
2389         ac_old_val_w=`echo x $ac_old_val`
2390         ac_new_val_w=`echo x $ac_new_val`
2391         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2392           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2393 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2394           ac_cache_corrupted=:
2395         else
2396           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2397 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2398           eval $ac_var=\$ac_old_val
2399         fi
2400         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2401 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2402         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2403 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2404       fi;;
2405   esac
2406   # Pass precious variables to config.status.
2407   if test "$ac_new_set" = set; then
2408     case $ac_new_val in
2409     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2410     *) ac_arg=$ac_var=$ac_new_val ;;
2411     esac
2412     case " $ac_configure_args " in
2413       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2414       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2415     esac
2416   fi
2417 done
2418 if $ac_cache_corrupted; then
2419   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2422 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2423   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2424 fi
2425 ## -------------------- ##
2426 ## Main body of script. ##
2427 ## -------------------- ##
2428
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434
2435
2436
2437
2438 ac_config_headers="$ac_config_headers config.h"
2439
2440
2441
2442 am__api_version='1.16'
2443
2444 ac_aux_dir=
2445 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2446   if test -f "$ac_dir/install-sh"; then
2447     ac_aux_dir=$ac_dir
2448     ac_install_sh="$ac_aux_dir/install-sh -c"
2449     break
2450   elif test -f "$ac_dir/install.sh"; then
2451     ac_aux_dir=$ac_dir
2452     ac_install_sh="$ac_aux_dir/install.sh -c"
2453     break
2454   elif test -f "$ac_dir/shtool"; then
2455     ac_aux_dir=$ac_dir
2456     ac_install_sh="$ac_aux_dir/shtool install -c"
2457     break
2458   fi
2459 done
2460 if test -z "$ac_aux_dir"; then
2461   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2462 fi
2463
2464 # These three variables are undocumented and unsupported,
2465 # and are intended to be withdrawn in a future Autoconf release.
2466 # They can cause serious problems if a builder's source tree is in a directory
2467 # whose full name contains unusual characters.
2468 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2469 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2470 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2471
2472
2473 # Find a good install program.  We prefer a C program (faster),
2474 # so one script is as good as another.  But avoid the broken or
2475 # incompatible versions:
2476 # SysV /etc/install, /usr/sbin/install
2477 # SunOS /usr/etc/install
2478 # IRIX /sbin/install
2479 # AIX /bin/install
2480 # AmigaOS /C/install, which installs bootblocks on floppy discs
2481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2484 # OS/2's system install, which has a completely different semantic
2485 # ./install, which can be erroneously created by make from ./install.sh.
2486 # Reject install programs that cannot install multiple files.
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2488 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2489 if test -z "$INSTALL"; then
2490 if ${ac_cv_path_install+:} false; then :
2491   $as_echo_n "(cached) " >&6
2492 else
2493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498     # Account for people who put trailing slashes in PATH elements.
2499 case $as_dir/ in #((
2500   ./ | .// | /[cC]/* | \
2501   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2502   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2503   /usr/ucb/* ) ;;
2504   *)
2505     # OSF1 and SCO ODT 3.0 have their own names for install.
2506     # Don't use installbsd from OSF since it installs stuff as root
2507     # by default.
2508     for ac_prog in ginstall scoinst install; do
2509       for ac_exec_ext in '' $ac_executable_extensions; do
2510         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2511           if test $ac_prog = install &&
2512             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2513             # AIX install.  It has an incompatible calling convention.
2514             :
2515           elif test $ac_prog = install &&
2516             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517             # program-specific install script used by HP pwplus--don't use.
2518             :
2519           else
2520             rm -rf conftest.one conftest.two conftest.dir
2521             echo one > conftest.one
2522             echo two > conftest.two
2523             mkdir conftest.dir
2524             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2525               test -s conftest.one && test -s conftest.two &&
2526               test -s conftest.dir/conftest.one &&
2527               test -s conftest.dir/conftest.two
2528             then
2529               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2530               break 3
2531             fi
2532           fi
2533         fi
2534       done
2535     done
2536     ;;
2537 esac
2538
2539   done
2540 IFS=$as_save_IFS
2541
2542 rm -rf conftest.one conftest.two conftest.dir
2543
2544 fi
2545   if test "${ac_cv_path_install+set}" = set; then
2546     INSTALL=$ac_cv_path_install
2547   else
2548     # As a last resort, use the slow shell script.  Don't cache a
2549     # value for INSTALL within a source directory, because that will
2550     # break other packages using the cache if that directory is
2551     # removed, or if the value is a relative name.
2552     INSTALL=$ac_install_sh
2553   fi
2554 fi
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2556 $as_echo "$INSTALL" >&6; }
2557
2558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2559 # It thinks the first close brace ends the variable substitution.
2560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2561
2562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2563
2564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2567 $as_echo_n "checking whether build environment is sane... " >&6; }
2568 # Reject unsafe characters in $srcdir or the absolute working directory
2569 # name.  Accept space and tab only in the latter.
2570 am_lf='
2571 '
2572 case `pwd` in
2573   *[\\\"\#\$\&\'\`$am_lf]*)
2574     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2575 esac
2576 case $srcdir in
2577   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2578     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2579 esac
2580
2581 # Do 'set' in a subshell so we don't clobber the current shell's
2582 # arguments.  Must try -L first in case configure is actually a
2583 # symlink; some systems play weird games with the mod time of symlinks
2584 # (eg FreeBSD returns the mod time of the symlink's containing
2585 # directory).
2586 if (
2587    am_has_slept=no
2588    for am_try in 1 2; do
2589      echo "timestamp, slept: $am_has_slept" > conftest.file
2590      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2591      if test "$*" = "X"; then
2592         # -L didn't work.
2593         set X `ls -t "$srcdir/configure" conftest.file`
2594      fi
2595      if test "$*" != "X $srcdir/configure conftest.file" \
2596         && test "$*" != "X conftest.file $srcdir/configure"; then
2597
2598         # If neither matched, then we have a broken ls.  This can happen
2599         # if, for instance, CONFIG_SHELL is bash and it inherits a
2600         # broken ls alias from the environment.  This has actually
2601         # happened.  Such a system could not be considered "sane".
2602         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2603   alias in your environment" "$LINENO" 5
2604      fi
2605      if test "$2" = conftest.file || test $am_try -eq 2; then
2606        break
2607      fi
2608      # Just in case.
2609      sleep 1
2610      am_has_slept=yes
2611    done
2612    test "$2" = conftest.file
2613    )
2614 then
2615    # Ok.
2616    :
2617 else
2618    as_fn_error $? "newly created file is older than distributed files!
2619 Check your system clock" "$LINENO" 5
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2622 $as_echo "yes" >&6; }
2623 # If we didn't sleep, we still need to ensure time stamps of config.status and
2624 # generated files are strictly newer.
2625 am_sleep_pid=
2626 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2627   ( sleep 1 ) &
2628   am_sleep_pid=$!
2629 fi
2630
2631 rm -f conftest.file
2632
2633 test "$program_prefix" != NONE &&
2634   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2635 # Use a double $ so make ignores it.
2636 test "$program_suffix" != NONE &&
2637   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2638 # Double any \ or $.
2639 # By default was `s,x,x', remove it if useless.
2640 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2641 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2642
2643 # Expand $ac_aux_dir to an absolute path.
2644 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2645
2646 if test x"${MISSING+set}" != xset; then
2647   case $am_aux_dir in
2648   *\ * | *\     *)
2649     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2650   *)
2651     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2652   esac
2653 fi
2654 # Use eval to expand $SHELL
2655 if eval "$MISSING --is-lightweight"; then
2656   am_missing_run="$MISSING "
2657 else
2658   am_missing_run=
2659   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2660 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2661 fi
2662
2663 if test x"${install_sh+set}" != xset; then
2664   case $am_aux_dir in
2665   *\ * | *\     *)
2666     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2667   *)
2668     install_sh="\${SHELL} $am_aux_dir/install-sh"
2669   esac
2670 fi
2671
2672 # Installed binaries are usually stripped using 'strip' when the user
2673 # run "make install-strip".  However 'strip' might not be the right
2674 # tool to use in cross-compilation environments, therefore Automake
2675 # will honor the 'STRIP' environment variable to overrule this program.
2676 if test "$cross_compiling" != no; then
2677   if test -n "$ac_tool_prefix"; then
2678   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2679 set dummy ${ac_tool_prefix}strip; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_STRIP+:} false; then :
2683   $as_echo_n "(cached) " >&6
2684 else
2685   if test -n "$STRIP"; then
2686   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691   IFS=$as_save_IFS
2692   test -z "$as_dir" && as_dir=.
2693     for ac_exec_ext in '' $ac_executable_extensions; do
2694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697     break 2
2698   fi
2699 done
2700   done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 STRIP=$ac_cv_prog_STRIP
2706 if test -n "$STRIP"; then
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2708 $as_echo "$STRIP" >&6; }
2709 else
2710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714
2715 fi
2716 if test -z "$ac_cv_prog_STRIP"; then
2717   ac_ct_STRIP=$STRIP
2718   # Extract the first word of "strip", so it can be a program name with args.
2719 set dummy strip; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   if test -n "$ac_ct_STRIP"; then
2726   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731   IFS=$as_save_IFS
2732   test -z "$as_dir" && as_dir=.
2733     for ac_exec_ext in '' $ac_executable_extensions; do
2734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735     ac_cv_prog_ac_ct_STRIP="strip"
2736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737     break 2
2738   fi
2739 done
2740   done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2746 if test -n "$ac_ct_STRIP"; then
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2748 $as_echo "$ac_ct_STRIP" >&6; }
2749 else
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 fi
2753
2754   if test "x$ac_ct_STRIP" = x; then
2755     STRIP=":"
2756   else
2757     case $cross_compiling:$ac_tool_warned in
2758 yes:)
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2761 ac_tool_warned=yes ;;
2762 esac
2763     STRIP=$ac_ct_STRIP
2764   fi
2765 else
2766   STRIP="$ac_cv_prog_STRIP"
2767 fi
2768
2769 fi
2770 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2773 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2774 if test -z "$MKDIR_P"; then
2775   if ${ac_cv_path_mkdir+:} false; then :
2776   $as_echo_n "(cached) " >&6
2777 else
2778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2780 do
2781   IFS=$as_save_IFS
2782   test -z "$as_dir" && as_dir=.
2783     for ac_prog in mkdir gmkdir; do
2784          for ac_exec_ext in '' $ac_executable_extensions; do
2785            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2786            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2787              'mkdir (GNU coreutils) '* | \
2788              'mkdir (coreutils) '* | \
2789              'mkdir (fileutils) '4.1*)
2790                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2791                break 3;;
2792            esac
2793          done
2794        done
2795   done
2796 IFS=$as_save_IFS
2797
2798 fi
2799
2800   test -d ./--version && rmdir ./--version
2801   if test "${ac_cv_path_mkdir+set}" = set; then
2802     MKDIR_P="$ac_cv_path_mkdir -p"
2803   else
2804     # As a last resort, use the slow shell script.  Don't cache a
2805     # value for MKDIR_P within a source directory, because that will
2806     # break other packages using the cache if that directory is
2807     # removed, or if the value is a relative name.
2808     MKDIR_P="$ac_install_sh -d"
2809   fi
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2812 $as_echo "$MKDIR_P" >&6; }
2813
2814 for ac_prog in gawk mawk nawk awk
2815 do
2816   # Extract the first word of "$ac_prog", so it can be a program name with args.
2817 set dummy $ac_prog; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_AWK+:} false; then :
2821   $as_echo_n "(cached) " >&6
2822 else
2823   if test -n "$AWK"; then
2824   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831     for ac_exec_ext in '' $ac_executable_extensions; do
2832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833     ac_cv_prog_AWK="$ac_prog"
2834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838   done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 AWK=$ac_cv_prog_AWK
2844 if test -n "$AWK"; then
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2846 $as_echo "$AWK" >&6; }
2847 else
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852
2853   test -n "$AWK" && break
2854 done
2855
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2857 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2858 set x ${MAKE-make}
2859 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2860 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2861   $as_echo_n "(cached) " >&6
2862 else
2863   cat >conftest.make <<\_ACEOF
2864 SHELL = /bin/sh
2865 all:
2866         @echo '@@@%%%=$(MAKE)=@@@%%%'
2867 _ACEOF
2868 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2870   *@@@%%%=?*=@@@%%%*)
2871     eval ac_cv_prog_make_${ac_make}_set=yes;;
2872   *)
2873     eval ac_cv_prog_make_${ac_make}_set=no;;
2874 esac
2875 rm -f conftest.make
2876 fi
2877 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2879 $as_echo "yes" >&6; }
2880   SET_MAKE=
2881 else
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884   SET_MAKE="MAKE=${MAKE-make}"
2885 fi
2886
2887 rm -rf .tst 2>/dev/null
2888 mkdir .tst 2>/dev/null
2889 if test -d .tst; then
2890   am__leading_dot=.
2891 else
2892   am__leading_dot=_
2893 fi
2894 rmdir .tst 2>/dev/null
2895
2896 # Check whether --enable-silent-rules was given.
2897 if test "${enable_silent_rules+set}" = set; then :
2898   enableval=$enable_silent_rules;
2899 fi
2900
2901 case $enable_silent_rules in # (((
2902   yes) AM_DEFAULT_VERBOSITY=0;;
2903    no) AM_DEFAULT_VERBOSITY=1;;
2904     *) AM_DEFAULT_VERBOSITY=1;;
2905 esac
2906 am_make=${MAKE-make}
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2908 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2909 if ${am_cv_make_support_nested_variables+:} false; then :
2910   $as_echo_n "(cached) " >&6
2911 else
2912   if $as_echo 'TRUE=$(BAR$(V))
2913 BAR0=false
2914 BAR1=true
2915 V=1
2916 am__doit:
2917         @$(TRUE)
2918 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2919   am_cv_make_support_nested_variables=yes
2920 else
2921   am_cv_make_support_nested_variables=no
2922 fi
2923 fi
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2925 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2926 if test $am_cv_make_support_nested_variables = yes; then
2927     AM_V='$(V)'
2928   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2929 else
2930   AM_V=$AM_DEFAULT_VERBOSITY
2931   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2932 fi
2933 AM_BACKSLASH='\'
2934
2935 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2936   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2937   # is not polluted with repeated "-I."
2938   am__isrc=' -I$(srcdir)'
2939   # test to see if srcdir already configured
2940   if test -f $srcdir/config.status; then
2941     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2942   fi
2943 fi
2944
2945 # test whether we have cygpath
2946 if test -z "$CYGPATH_W"; then
2947   if (cygpath --version) >/dev/null 2>/dev/null; then
2948     CYGPATH_W='cygpath -w'
2949   else
2950     CYGPATH_W=echo
2951   fi
2952 fi
2953
2954
2955 # Define the identity of the package.
2956  PACKAGE='fribidi'
2957  VERSION='1.0.8'
2958
2959
2960 # Some tools Automake needs.
2961
2962 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2963
2964
2965 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2966
2967
2968 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2969
2970
2971 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2972
2973
2974 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2975
2976 # For better backward compatibility.  To be removed once Automake 1.9.x
2977 # dies out for good.  For more background, see:
2978 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2979 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2980 mkdir_p='$(MKDIR_P)'
2981
2982 # We need awk for the "check" target (and possibly the TAP driver).  The
2983 # system "awk" is bad on some platforms.
2984 # Always define AMTAR for backward compatibility.  Yes, it's still used
2985 # in the wild :-(  We should find a proper way to deprecate it ...
2986 AMTAR='$${TAR-tar}'
2987
2988
2989 # We'll loop over all known methods to create a tar archive until one works.
2990 _am_tools='gnutar  pax cpio none'
2991
2992 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2993
2994
2995
2996
2997
2998
2999 # POSIX will say in a future version that running "rm -f" with no argument
3000 # is OK; and we want to be able to make that assumption in our Makefile
3001 # recipes.  So use an aggressive probe to check that the usage we want is
3002 # actually supported "in the wild" to an acceptable degree.
3003 # See automake bug#10828.
3004 # To make any issue more visible, cause the running configure to be aborted
3005 # by default if the 'rm' program in use doesn't match our expectations; the
3006 # user can still override this though.
3007 if rm -f && rm -fr && rm -rf; then : OK; else
3008   cat >&2 <<'END'
3009 Oops!
3010
3011 Your 'rm' program seems unable to run without file operands specified
3012 on the command line, even when the '-f' option is present.  This is contrary
3013 to the behaviour of most rm programs out there, and not conforming with
3014 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3015
3016 Please tell bug-automake@gnu.org about your system, including the value
3017 of your $PATH and any error possibly output before this message.  This
3018 can help us improve future automake versions.
3019
3020 END
3021   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3022     echo 'Configuration will proceed anyway, since you have set the' >&2
3023     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3024     echo >&2
3025   else
3026     cat >&2 <<'END'
3027 Aborting the configuration process, to ensure you take notice of the issue.
3028
3029 You can download and install GNU coreutils to get an 'rm' implementation
3030 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3031
3032 If you want to complete the configuration process using your problematic
3033 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3034 to "yes", and re-run configure.
3035
3036 END
3037     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3038   fi
3039 fi
3040
3041 # Check whether --enable-silent-rules was given.
3042 if test "${enable_silent_rules+set}" = set; then :
3043   enableval=$enable_silent_rules;
3044 fi
3045
3046 case $enable_silent_rules in # (((
3047   yes) AM_DEFAULT_VERBOSITY=0;;
3048    no) AM_DEFAULT_VERBOSITY=1;;
3049     *) AM_DEFAULT_VERBOSITY=0;;
3050 esac
3051 am_make=${MAKE-make}
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3053 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3054 if ${am_cv_make_support_nested_variables+:} false; then :
3055   $as_echo_n "(cached) " >&6
3056 else
3057   if $as_echo 'TRUE=$(BAR$(V))
3058 BAR0=false
3059 BAR1=true
3060 V=1
3061 am__doit:
3062         @$(TRUE)
3063 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3064   am_cv_make_support_nested_variables=yes
3065 else
3066   am_cv_make_support_nested_variables=no
3067 fi
3068 fi
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3070 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3071 if test $am_cv_make_support_nested_variables = yes; then
3072     AM_V='$(V)'
3073   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3074 else
3075   AM_V=$AM_DEFAULT_VERBOSITY
3076   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3077 fi
3078 AM_BACKSLASH='\'
3079
3080
3081 DEPDIR="${am__leading_dot}deps"
3082
3083 ac_config_commands="$ac_config_commands depfiles"
3084
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3086 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3087 cat > confinc.mk << 'END'
3088 am__doit:
3089         @echo this is the am__doit target >confinc.out
3090 .PHONY: am__doit
3091 END
3092 am__include="#"
3093 am__quote=
3094 # BSD make does it like this.
3095 echo '.include "confinc.mk" # ignored' > confmf.BSD
3096 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3097 echo 'include confinc.mk # ignored' > confmf.GNU
3098 _am_result=no
3099 for s in GNU BSD; do
3100   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3101    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3102    ac_status=$?
3103    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104    (exit $ac_status); }
3105   case $?:`cat confinc.out 2>/dev/null` in #(
3106   '0:this is the am__doit target') :
3107     case $s in #(
3108   BSD) :
3109     am__include='.include' am__quote='"' ;; #(
3110   *) :
3111     am__include='include' am__quote='' ;;
3112 esac ;; #(
3113   *) :
3114      ;;
3115 esac
3116   if test "$am__include" != "#"; then
3117     _am_result="yes ($s style)"
3118     break
3119   fi
3120 done
3121 rm -f confinc.* confmf.*
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3123 $as_echo "${_am_result}" >&6; }
3124
3125 # Check whether --enable-dependency-tracking was given.
3126 if test "${enable_dependency_tracking+set}" = set; then :
3127   enableval=$enable_dependency_tracking;
3128 fi
3129
3130 if test "x$enable_dependency_tracking" != xno; then
3131   am_depcomp="$ac_aux_dir/depcomp"
3132   AMDEPBACKSLASH='\'
3133   am__nodep='_no'
3134 fi
3135  if test "x$enable_dependency_tracking" != xno; then
3136   AMDEP_TRUE=
3137   AMDEP_FALSE='#'
3138 else
3139   AMDEP_TRUE='#'
3140   AMDEP_FALSE=
3141 fi
3142
3143
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_CC+:} false; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$CC"; then
3158   ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$ac_cv_prog_CC"; then
3189   ac_ct_CC=$CC
3190   # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$ac_ct_CC"; then
3198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205     for ac_exec_ext in '' $ac_executable_extensions; do
3206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207     ac_cv_prog_ac_ct_CC="gcc"
3208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212   done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226   if test "x$ac_ct_CC" = x; then
3227     CC=""
3228   else
3229     case $cross_compiling:$ac_tool_warned in
3230 yes:)
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235     CC=$ac_ct_CC
3236   fi
3237 else
3238   CC="$ac_cv_prog_CC"
3239 fi
3240
3241 if test -z "$CC"; then
3242           if test -n "$ac_tool_prefix"; then
3243     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if ${ac_cv_prog_CC+:} false; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$CC"; then
3251   ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258     for ac_exec_ext in '' $ac_executable_extensions; do
3259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260     ac_cv_prog_CC="${ac_tool_prefix}cc"
3261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265   done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280   fi
3281 fi
3282 if test -z "$CC"; then
3283   # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if ${ac_cv_prog_CC+:} false; then :
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293   ac_prog_rejected=no
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299     for ac_exec_ext in '' $ac_executable_extensions; do
3300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302        ac_prog_rejected=yes
3303        continue
3304      fi
3305     ac_cv_prog_CC="cc"
3306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310   done
3311 IFS=$as_save_IFS
3312
3313 if test $ac_prog_rejected = yes; then
3314   # We found a bogon in the path, so make sure we never use it.
3315   set dummy $ac_cv_prog_CC
3316   shift
3317   if test $# != 0; then
3318     # We chose a different compiler from the bogus one.
3319     # However, it has the same basename, so the bogon will be chosen
3320     # first if we set CC to just the basename; use the full file name.
3321     shift
3322     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3323   fi
3324 fi
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 fi
3338 if test -z "$CC"; then
3339   if test -n "$ac_tool_prefix"; then
3340   for ac_prog in cl.exe
3341   do
3342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if ${ac_cv_prog_CC+:} false; then :
3347   $as_echo_n "(cached) " >&6
3348 else
3349   if test -n "$CC"; then
3350   ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357     for ac_exec_ext in '' $ac_executable_extensions; do
3358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361     break 2
3362   fi
3363 done
3364   done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378
3379     test -n "$CC" && break
3380   done
3381 fi
3382 if test -z "$CC"; then
3383   ac_ct_CC=$CC
3384   for ac_prog in cl.exe
3385 do
3386   # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3391   $as_echo_n "(cached) " >&6
3392 else
3393   if test -n "$ac_ct_CC"; then
3394   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401     for ac_exec_ext in '' $ac_executable_extensions; do
3402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403     ac_cv_prog_ac_ct_CC="$ac_prog"
3404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408   done
3409 IFS=$as_save_IFS
3410
3411 fi
3412 fi
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3417 else
3418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423   test -n "$ac_ct_CC" && break
3424 done
3425
3426   if test "x$ac_ct_CC" = x; then
3427     CC=""
3428   else
3429     case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435     CC=$ac_ct_CC
3436   fi
3437 fi
3438
3439 fi
3440
3441
3442 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details" "$LINENO" 5; }
3446
3447 # Provide some information about the compiler.
3448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3449 set X $ac_compile
3450 ac_compiler=$2
3451 for ac_option in --version -v -V -qversion; do
3452   { { ac_try="$ac_compiler $ac_option >&5"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460   ac_status=$?
3461   if test -s conftest.err; then
3462     sed '10a\
3463 ... rest of stderr output deleted ...
3464          10q' conftest.err >conftest.er1
3465     cat conftest.er1 >&5
3466   fi
3467   rm -f conftest.er1 conftest.err
3468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469   test $ac_status = 0; }
3470 done
3471
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 ac_clean_files_save=$ac_clean_files
3484 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3485 # Try to create an executable without -o first, disregard a.out.
3486 # It will help us diagnose broken compilers, and finding out an intuition
3487 # of exeext.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3489 $as_echo_n "checking whether the C compiler works... " >&6; }
3490 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3491
3492 # The possible output files:
3493 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3494
3495 ac_rmfiles=
3496 for ac_file in $ac_files
3497 do
3498   case $ac_file in
3499     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3501   esac
3502 done
3503 rm -f $ac_rmfiles
3504
3505 if { { ac_try="$ac_link_default"
3506 case "(($ac_try" in
3507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508   *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512   (eval "$ac_link_default") 2>&5
3513   ac_status=$?
3514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515   test $ac_status = 0; }; then :
3516   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3517 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3518 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3519 # so that the user can short-circuit this test for compilers unknown to
3520 # Autoconf.
3521 for ac_file in $ac_files ''
3522 do
3523   test -f "$ac_file" || continue
3524   case $ac_file in
3525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3526         ;;
3527     [ab].out )
3528         # We found the default executable, but exeext='' is most
3529         # certainly right.
3530         break;;
3531     *.* )
3532         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3533         then :; else
3534            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535         fi
3536         # We set ac_cv_exeext here because the later test for it is not
3537         # safe: cross compilers may not add the suffix if given an `-o'
3538         # argument, so we may need to know it at that point already.
3539         # Even if this section looks crufty: it has the advantage of
3540         # actually working.
3541         break;;
3542     * )
3543         break;;
3544   esac
3545 done
3546 test "$ac_cv_exeext" = no && ac_cv_exeext=
3547
3548 else
3549   ac_file=''
3550 fi
3551 if test -z "$ac_file"; then :
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error 77 "C compiler cannot create executables
3560 See \`config.log' for more details" "$LINENO" 5; }
3561 else
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3563 $as_echo "yes" >&6; }
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3566 $as_echo_n "checking for C compiler default output file name... " >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3568 $as_echo "$ac_file" >&6; }
3569 ac_exeext=$ac_cv_exeext
3570
3571 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3572 ac_clean_files=$ac_clean_files_save
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3574 $as_echo_n "checking for suffix of executables... " >&6; }
3575 if { { ac_try="$ac_link"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582   (eval "$ac_link") 2>&5
3583   ac_status=$?
3584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585   test $ac_status = 0; }; then :
3586   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3587 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3588 # work properly (i.e., refer to `conftest.exe'), while it won't with
3589 # `rm'.
3590 for ac_file in conftest.exe conftest conftest.*; do
3591   test -f "$ac_file" || continue
3592   case $ac_file in
3593     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3594     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3595           break;;
3596     * ) break;;
3597   esac
3598 done
3599 else
3600   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3603 See \`config.log' for more details" "$LINENO" 5; }
3604 fi
3605 rm -f conftest conftest$ac_cv_exeext
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3607 $as_echo "$ac_cv_exeext" >&6; }
3608
3609 rm -f conftest.$ac_ext
3610 EXEEXT=$ac_cv_exeext
3611 ac_exeext=$EXEEXT
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h.  */
3614 #include <stdio.h>
3615 int
3616 main ()
3617 {
3618 FILE *f = fopen ("conftest.out", "w");
3619  return ferror (f) || fclose (f) != 0;
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 ac_clean_files="$ac_clean_files conftest.out"
3626 # Check that the compiler produces executables we can run.  If not, either
3627 # the compiler is broken, or we cross compile.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3629 $as_echo_n "checking whether we are cross compiling... " >&6; }
3630 if test "$cross_compiling" != yes; then
3631   { { ac_try="$ac_link"
3632 case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638   (eval "$ac_link") 2>&5
3639   ac_status=$?
3640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641   test $ac_status = 0; }
3642   if { ac_try='./conftest$ac_cv_exeext'
3643   { { case "(($ac_try" in
3644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645   *) ac_try_echo=$ac_try;;
3646 esac
3647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648 $as_echo "$ac_try_echo"; } >&5
3649   (eval "$ac_try") 2>&5
3650   ac_status=$?
3651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652   test $ac_status = 0; }; }; then
3653     cross_compiling=no
3654   else
3655     if test "$cross_compiling" = maybe; then
3656         cross_compiling=yes
3657     else
3658         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error $? "cannot run C compiled programs.
3661 If you meant to cross compile, use \`--host'.
3662 See \`config.log' for more details" "$LINENO" 5; }
3663     fi
3664   fi
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3667 $as_echo "$cross_compiling" >&6; }
3668
3669 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3670 ac_clean_files=$ac_clean_files_save
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3672 $as_echo_n "checking for suffix of object files... " >&6; }
3673 if ${ac_cv_objext+:} false; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h.  */
3678
3679 int
3680 main ()
3681 {
3682
3683   ;
3684   return 0;
3685 }
3686 _ACEOF
3687 rm -f conftest.o conftest.obj
3688 if { { ac_try="$ac_compile"
3689 case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695   (eval "$ac_compile") 2>&5
3696   ac_status=$?
3697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698   test $ac_status = 0; }; then :
3699   for ac_file in conftest.o conftest.obj conftest.*; do
3700   test -f "$ac_file" || continue;
3701   case $ac_file in
3702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3703     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3704        break;;
3705   esac
3706 done
3707 else
3708   $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error $? "cannot compute suffix of object files: cannot compile
3714 See \`config.log' for more details" "$LINENO" 5; }
3715 fi
3716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3719 $as_echo "$ac_cv_objext" >&6; }
3720 OBJEXT=$ac_cv_objext
3721 ac_objext=$OBJEXT
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3723 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3724 if ${ac_cv_c_compiler_gnu+:} false; then :
3725   $as_echo_n "(cached) " >&6
3726 else
3727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h.  */
3729
3730 int
3731 main ()
3732 {
3733 #ifndef __GNUC__
3734        choke me
3735 #endif
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742   ac_compiler_gnu=yes
3743 else
3744   ac_compiler_gnu=no
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3748
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3751 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3752 if test $ac_compiler_gnu = yes; then
3753   GCC=yes
3754 else
3755   GCC=
3756 fi
3757 ac_test_CFLAGS=${CFLAGS+set}
3758 ac_save_CFLAGS=$CFLAGS
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3760 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3761 if ${ac_cv_prog_cc_g+:} false; then :
3762   $as_echo_n "(cached) " >&6
3763 else
3764   ac_save_c_werror_flag=$ac_c_werror_flag
3765    ac_c_werror_flag=yes
3766    ac_cv_prog_cc_g=no
3767    CFLAGS="-g"
3768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h.  */
3770
3771 int
3772 main ()
3773 {
3774
3775   ;
3776   return 0;
3777 }
3778 _ACEOF
3779 if ac_fn_c_try_compile "$LINENO"; then :
3780   ac_cv_prog_cc_g=yes
3781 else
3782   CFLAGS=""
3783       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795
3796 else
3797   ac_c_werror_flag=$ac_save_c_werror_flag
3798          CFLAGS="-g"
3799          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h.  */
3801
3802 int
3803 main ()
3804 {
3805
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811   ac_cv_prog_cc_g=yes
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818    ac_c_werror_flag=$ac_save_c_werror_flag
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3821 $as_echo "$ac_cv_prog_cc_g" >&6; }
3822 if test "$ac_test_CFLAGS" = set; then
3823   CFLAGS=$ac_save_CFLAGS
3824 elif test $ac_cv_prog_cc_g = yes; then
3825   if test "$GCC" = yes; then
3826     CFLAGS="-g -O2"
3827   else
3828     CFLAGS="-g"
3829   fi
3830 else
3831   if test "$GCC" = yes; then
3832     CFLAGS="-O2"
3833   else
3834     CFLAGS=
3835   fi
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3838 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3839 if ${ac_cv_prog_cc_c89+:} false; then :
3840   $as_echo_n "(cached) " >&6
3841 else
3842   ac_cv_prog_cc_c89=no
3843 ac_save_CC=$CC
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h.  */
3846 #include <stdarg.h>
3847 #include <stdio.h>
3848 struct stat;
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3853      char **p;
3854      int i;
3855 {
3856   return p[i];
3857 }
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3859 {
3860   char *s;
3861   va_list v;
3862   va_start (v,p);
3863   s = g (p, va_arg (v,int));
3864   va_end (v);
3865   return s;
3866 }
3867
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3869    function prototypes and stuff, but not '\xHH' hex character constants.
3870    These don't provoke an error unfortunately, instead are silently treated
3871    as 'x'.  The following induces an error, until -std is added to get
3872    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3873    array size at least.  It's necessary to write '\x00'==0 to get something
3874    that's true only with -std.  */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3876
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878    inside strings and character constants.  */
3879 #define FOO(x) 'x'
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3881
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3886 int argc;
3887 char **argv;
3888 int
3889 main ()
3890 {
3891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3892   ;
3893   return 0;
3894 }
3895 _ACEOF
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3898 do
3899   CC="$ac_save_CC $ac_arg"
3900   if ac_fn_c_try_compile "$LINENO"; then :
3901   ac_cv_prog_cc_c89=$ac_arg
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext
3904   test "x$ac_cv_prog_cc_c89" != "xno" && break
3905 done
3906 rm -f conftest.$ac_ext
3907 CC=$ac_save_CC
3908
3909 fi
3910 # AC_CACHE_VAL
3911 case "x$ac_cv_prog_cc_c89" in
3912   x)
3913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3914 $as_echo "none needed" >&6; } ;;
3915   xno)
3916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3917 $as_echo "unsupported" >&6; } ;;
3918   *)
3919     CC="$CC $ac_cv_prog_cc_c89"
3920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3922 esac
3923 if test "x$ac_cv_prog_cc_c89" != xno; then :
3924
3925 fi
3926
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3939 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3940 if ${am_cv_prog_cc_c_o+:} false; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h.  */
3945
3946 int
3947 main ()
3948 {
3949
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954   # Make sure it works both with $CC and with simple cc.
3955   # Following AC_PROG_CC_C_O, we do the test twice because some
3956   # compilers refuse to overwrite an existing .o file with -o,
3957   # though they will create one.
3958   am_cv_prog_cc_c_o=yes
3959   for am_i in 1 2; do
3960     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3961    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3962    ac_status=$?
3963    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964    (exit $ac_status); } \
3965          && test -f conftest2.$ac_objext; then
3966       : OK
3967     else
3968       am_cv_prog_cc_c_o=no
3969       break
3970     fi
3971   done
3972   rm -f core conftest*
3973   unset am_i
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3976 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3977 if test "$am_cv_prog_cc_c_o" != yes; then
3978    # Losing compiler, so override with the script.
3979    # FIXME: It is wrong to rewrite CC.
3980    # But if we don't then we get into trouble of one sort or another.
3981    # A longer-term fix would be to have automake use am__CC in this case,
3982    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3983    CC="$am_aux_dir/compile $CC"
3984 fi
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990
3991
3992 depcc="$CC"   am_compiler_list=
3993
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3995 $as_echo_n "checking dependency style of $depcc... " >&6; }
3996 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3997   $as_echo_n "(cached) " >&6
3998 else
3999   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4000   # We make a subdir and do the tests there.  Otherwise we can end up
4001   # making bogus files that we don't know about and never remove.  For
4002   # instance it was reported that on HP-UX the gcc test will end up
4003   # making a dummy file named 'D' -- because '-MD' means "put the output
4004   # in D".
4005   rm -rf conftest.dir
4006   mkdir conftest.dir
4007   # Copy depcomp to subdir because otherwise we won't find it if we're
4008   # using a relative directory.
4009   cp "$am_depcomp" conftest.dir
4010   cd conftest.dir
4011   # We will build objects and dependencies in a subdirectory because
4012   # it helps to detect inapplicable dependency modes.  For instance
4013   # both Tru64's cc and ICC support -MD to output dependencies as a
4014   # side effect of compilation, but ICC will put the dependencies in
4015   # the current directory while Tru64 will put them in the object
4016   # directory.
4017   mkdir sub
4018
4019   am_cv_CC_dependencies_compiler_type=none
4020   if test "$am_compiler_list" = ""; then
4021      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4022   fi
4023   am__universal=false
4024   case " $depcc " in #(
4025      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4026      esac
4027
4028   for depmode in $am_compiler_list; do
4029     # Setup a source with many dependencies, because some compilers
4030     # like to wrap large dependency lists on column 80 (with \), and
4031     # we should not choose a depcomp mode which is confused by this.
4032     #
4033     # We need to recreate these files for each test, as the compiler may
4034     # overwrite some of them when testing with obscure command lines.
4035     # This happens at least with the AIX C compiler.
4036     : > sub/conftest.c
4037     for i in 1 2 3 4 5 6; do
4038       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4039       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4040       # Solaris 10 /bin/sh.
4041       echo '/* dummy */' > sub/conftst$i.h
4042     done
4043     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4044
4045     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4046     # mode.  It turns out that the SunPro C++ compiler does not properly
4047     # handle '-M -o', and we need to detect this.  Also, some Intel
4048     # versions had trouble with output in subdirs.
4049     am__obj=sub/conftest.${OBJEXT-o}
4050     am__minus_obj="-o $am__obj"
4051     case $depmode in
4052     gcc)
4053       # This depmode causes a compiler race in universal mode.
4054       test "$am__universal" = false || continue
4055       ;;
4056     nosideeffect)
4057       # After this tag, mechanisms are not by side-effect, so they'll
4058       # only be used when explicitly requested.
4059       if test "x$enable_dependency_tracking" = xyes; then
4060         continue
4061       else
4062         break
4063       fi
4064       ;;
4065     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4066       # This compiler won't grok '-c -o', but also, the minuso test has
4067       # not run yet.  These depmodes are late enough in the game, and
4068       # so weak that their functioning should not be impacted.
4069       am__obj=conftest.${OBJEXT-o}
4070       am__minus_obj=
4071       ;;
4072     none) break ;;
4073     esac
4074     if depmode=$depmode \
4075        source=sub/conftest.c object=$am__obj \
4076        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4077        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4078          >/dev/null 2>conftest.err &&
4079        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4080        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4081        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4082        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4083       # icc doesn't choke on unknown options, it will just issue warnings
4084       # or remarks (even with -Werror).  So we grep stderr for any message
4085       # that says an option was ignored or not supported.
4086       # When given -MP, icc 7.0 and 7.1 complain thusly:
4087       #   icc: Command line warning: ignoring option '-M'; no argument required
4088       # The diagnosis changed in icc 8.0:
4089       #   icc: Command line remark: option '-MP' not supported
4090       if (grep 'ignoring option' conftest.err ||
4091           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4092         am_cv_CC_dependencies_compiler_type=$depmode
4093         break
4094       fi
4095     fi
4096   done
4097
4098   cd ..
4099   rm -rf conftest.dir
4100 else
4101   am_cv_CC_dependencies_compiler_type=none
4102 fi
4103
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4106 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4107 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4108
4109  if
4110   test "x$enable_dependency_tracking" != xno \
4111   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4112   am__fastdepCC_TRUE=
4113   am__fastdepCC_FALSE='#'
4114 else
4115   am__fastdepCC_TRUE='#'
4116   am__fastdepCC_FALSE=
4117 fi
4118
4119
4120
4121 if test -n "$ac_tool_prefix"; then
4122   for ac_prog in ar lib "link -lib"
4123   do
4124     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_AR+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   if test -n "$AR"; then
4132   ac_cv_prog_AR="$AR" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139     for ac_exec_ext in '' $ac_executable_extensions; do
4140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146   done
4147 IFS=$as_save_IFS
4148
4149 fi
4150 fi
4151 AR=$ac_cv_prog_AR
4152 if test -n "$AR"; then
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4154 $as_echo "$AR" >&6; }
4155 else
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4158 fi
4159
4160
4161     test -n "$AR" && break
4162   done
4163 fi
4164 if test -z "$AR"; then
4165   ac_ct_AR=$AR
4166   for ac_prog in ar lib "link -lib"
4167 do
4168   # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175   if test -n "$ac_ct_AR"; then
4176   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183     for ac_exec_ext in '' $ac_executable_extensions; do
4184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185     ac_cv_prog_ac_ct_AR="$ac_prog"
4186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187     break 2
4188   fi
4189 done
4190   done
4191 IFS=$as_save_IFS
4192
4193 fi
4194 fi
4195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4196 if test -n "$ac_ct_AR"; then
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4198 $as_echo "$ac_ct_AR" >&6; }
4199 else
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4202 fi
4203
4204
4205   test -n "$ac_ct_AR" && break
4206 done
4207
4208   if test "x$ac_ct_AR" = x; then
4209     AR="false"
4210   else
4211     case $cross_compiling:$ac_tool_warned in
4212 yes:)
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215 ac_tool_warned=yes ;;
4216 esac
4217     AR=$ac_ct_AR
4218   fi
4219 fi
4220
4221 : ${AR=ar}
4222
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4224 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4225 if ${am_cv_ar_interface+:} false; then :
4226   $as_echo_n "(cached) " >&6
4227 else
4228   ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234    am_cv_ar_interface=ar
4235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237 int some_variable = 0;
4238 _ACEOF
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4241       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4242   (eval $am_ar_try) 2>&5
4243   ac_status=$?
4244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245   test $ac_status = 0; }
4246       if test "$ac_status" -eq 0; then
4247         am_cv_ar_interface=ar
4248       else
4249         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4250         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4251   (eval $am_ar_try) 2>&5
4252   ac_status=$?
4253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254   test $ac_status = 0; }
4255         if test "$ac_status" -eq 0; then
4256           am_cv_ar_interface=lib
4257         else
4258           am_cv_ar_interface=unknown
4259         fi
4260       fi
4261       rm -f conftest.lib libconftest.a
4262
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265    ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4273 $as_echo "$am_cv_ar_interface" >&6; }
4274
4275 case $am_cv_ar_interface in
4276 ar)
4277   ;;
4278 lib)
4279   # Microsoft lib, so override with the ar-lib wrapper script.
4280   # FIXME: It is wrong to rewrite AR.
4281   # But if we don't then we get into trouble of one sort or another.
4282   # A longer-term fix would be to have automake use am__AR in this case,
4283   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4284   # similar.
4285   AR="$am_aux_dir/ar-lib $AR"
4286   ;;
4287 unknown)
4288   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4289   ;;
4290 esac
4291
4292
4293 # Initialize libtool
4294
4295 case `pwd` in
4296   *\ * | *\     *)
4297     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4298 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4299 esac
4300
4301
4302
4303 macro_version='2.4.6'
4304 macro_revision='2.4.6'
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318 ltmain=$ac_aux_dir/ltmain.sh
4319
4320 # Make sure we can run config.sub.
4321 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4322   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4323
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4325 $as_echo_n "checking build system type... " >&6; }
4326 if ${ac_cv_build+:} false; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329   ac_build_alias=$build_alias
4330 test "x$ac_build_alias" = x &&
4331   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4332 test "x$ac_build_alias" = x &&
4333   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4334 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4335   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4336
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4339 $as_echo "$ac_cv_build" >&6; }
4340 case $ac_cv_build in
4341 *-*-*) ;;
4342 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4343 esac
4344 build=$ac_cv_build
4345 ac_save_IFS=$IFS; IFS='-'
4346 set x $ac_cv_build
4347 shift
4348 build_cpu=$1
4349 build_vendor=$2
4350 shift; shift
4351 # Remember, the first character of IFS is used to create $*,
4352 # except with old shells:
4353 build_os=$*
4354 IFS=$ac_save_IFS
4355 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4356
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4359 $as_echo_n "checking host system type... " >&6; }
4360 if ${ac_cv_host+:} false; then :
4361   $as_echo_n "(cached) " >&6
4362 else
4363   if test "x$host_alias" = x; then
4364   ac_cv_host=$ac_cv_build
4365 else
4366   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4367     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4368 fi
4369
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4372 $as_echo "$ac_cv_host" >&6; }
4373 case $ac_cv_host in
4374 *-*-*) ;;
4375 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4376 esac
4377 host=$ac_cv_host
4378 ac_save_IFS=$IFS; IFS='-'
4379 set x $ac_cv_host
4380 shift
4381 host_cpu=$1
4382 host_vendor=$2
4383 shift; shift
4384 # Remember, the first character of IFS is used to create $*,
4385 # except with old shells:
4386 host_os=$*
4387 IFS=$ac_save_IFS
4388 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4389
4390
4391 # Backslashify metacharacters that are still active within
4392 # double-quoted strings.
4393 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4394
4395 # Same as above, but do not quote variable references.
4396 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4397
4398 # Sed substitution to delay expansion of an escaped shell variable in a
4399 # double_quote_subst'ed string.
4400 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4401
4402 # Sed substitution to delay expansion of an escaped single quote.
4403 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4404
4405 # Sed substitution to avoid accidental globbing in evaled expressions
4406 no_glob_subst='s/\*/\\\*/g'
4407
4408 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4409 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4410 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4411
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4413 $as_echo_n "checking how to print strings... " >&6; }
4414 # Test print first, because it will be a builtin if present.
4415 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4416    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4417   ECHO='print -r --'
4418 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4419   ECHO='printf %s\n'
4420 else
4421   # Use this function as a fallback that always works.
4422   func_fallback_echo ()
4423   {
4424     eval 'cat <<_LTECHO_EOF
4425 $1
4426 _LTECHO_EOF'
4427   }
4428   ECHO='func_fallback_echo'
4429 fi
4430
4431 # func_echo_all arg...
4432 # Invoke $ECHO with all args, space-separated.
4433 func_echo_all ()
4434 {
4435     $ECHO ""
4436 }
4437
4438 case $ECHO in
4439   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4440 $as_echo "printf" >&6; } ;;
4441   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4442 $as_echo "print -r" >&6; } ;;
4443   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4444 $as_echo "cat" >&6; } ;;
4445 esac
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4461 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4462 if ${ac_cv_path_SED+:} false; then :
4463   $as_echo_n "(cached) " >&6
4464 else
4465             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4466      for ac_i in 1 2 3 4 5 6 7; do
4467        ac_script="$ac_script$as_nl$ac_script"
4468      done
4469      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4470      { ac_script=; unset ac_script;}
4471      if test -z "$SED"; then
4472   ac_path_SED_found=false
4473   # Loop through the user's path and test for each of PROGNAME-LIST
4474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477   IFS=$as_save_IFS
4478   test -z "$as_dir" && as_dir=.
4479     for ac_prog in sed gsed; do
4480     for ac_exec_ext in '' $ac_executable_extensions; do
4481       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4482       as_fn_executable_p "$ac_path_SED" || continue
4483 # Check for GNU ac_path_SED and select it if it is found.
4484   # Check for GNU $ac_path_SED
4485 case `"$ac_path_SED" --version 2>&1` in
4486 *GNU*)
4487   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4488 *)
4489   ac_count=0
4490   $as_echo_n 0123456789 >"conftest.in"
4491   while :
4492   do
4493     cat "conftest.in" "conftest.in" >"conftest.tmp"
4494     mv "conftest.tmp" "conftest.in"
4495     cp "conftest.in" "conftest.nl"
4496     $as_echo '' >> "conftest.nl"
4497     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4498     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4499     as_fn_arith $ac_count + 1 && ac_count=$as_val
4500     if test $ac_count -gt ${ac_path_SED_max-0}; then
4501       # Best one so far, save it but keep looking for a better one
4502       ac_cv_path_SED="$ac_path_SED"
4503       ac_path_SED_max=$ac_count
4504     fi
4505     # 10*(2^10) chars as input seems more than enough
4506     test $ac_count -gt 10 && break
4507   done
4508   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4509 esac
4510
4511       $ac_path_SED_found && break 3
4512     done
4513   done
4514   done
4515 IFS=$as_save_IFS
4516   if test -z "$ac_cv_path_SED"; then
4517     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4518   fi
4519 else
4520   ac_cv_path_SED=$SED
4521 fi
4522
4523 fi
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4525 $as_echo "$ac_cv_path_SED" >&6; }
4526  SED="$ac_cv_path_SED"
4527   rm -f conftest.sed
4528
4529 test -z "$SED" && SED=sed
4530 Xsed="$SED -e 1s/^X//"
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4543 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4544 if ${ac_cv_path_GREP+:} false; then :
4545   $as_echo_n "(cached) " >&6
4546 else
4547   if test -z "$GREP"; then
4548   ac_path_GREP_found=false
4549   # Loop through the user's path and test for each of PROGNAME-LIST
4550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555     for ac_prog in grep ggrep; do
4556     for ac_exec_ext in '' $ac_executable_extensions; do
4557       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4558       as_fn_executable_p "$ac_path_GREP" || continue
4559 # Check for GNU ac_path_GREP and select it if it is found.
4560   # Check for GNU $ac_path_GREP
4561 case `"$ac_path_GREP" --version 2>&1` in
4562 *GNU*)
4563   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4564 *)
4565   ac_count=0
4566   $as_echo_n 0123456789 >"conftest.in"
4567   while :
4568   do
4569     cat "conftest.in" "conftest.in" >"conftest.tmp"
4570     mv "conftest.tmp" "conftest.in"
4571     cp "conftest.in" "conftest.nl"
4572     $as_echo 'GREP' >> "conftest.nl"
4573     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575     as_fn_arith $ac_count + 1 && ac_count=$as_val
4576     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4577       # Best one so far, save it but keep looking for a better one
4578       ac_cv_path_GREP="$ac_path_GREP"
4579       ac_path_GREP_max=$ac_count
4580     fi
4581     # 10*(2^10) chars as input seems more than enough
4582     test $ac_count -gt 10 && break
4583   done
4584   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585 esac
4586
4587       $ac_path_GREP_found && break 3
4588     done
4589   done
4590   done
4591 IFS=$as_save_IFS
4592   if test -z "$ac_cv_path_GREP"; then
4593     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4594   fi
4595 else
4596   ac_cv_path_GREP=$GREP
4597 fi
4598
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4601 $as_echo "$ac_cv_path_GREP" >&6; }
4602  GREP="$ac_cv_path_GREP"
4603
4604
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4606 $as_echo_n "checking for egrep... " >&6; }
4607 if ${ac_cv_path_EGREP+:} false; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4611    then ac_cv_path_EGREP="$GREP -E"
4612    else
4613      if test -z "$EGREP"; then
4614   ac_path_EGREP_found=false
4615   # Loop through the user's path and test for each of PROGNAME-LIST
4616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621     for ac_prog in egrep; do
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4624       as_fn_executable_p "$ac_path_EGREP" || continue
4625 # Check for GNU ac_path_EGREP and select it if it is found.
4626   # Check for GNU $ac_path_EGREP
4627 case `"$ac_path_EGREP" --version 2>&1` in
4628 *GNU*)
4629   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4630 *)
4631   ac_count=0
4632   $as_echo_n 0123456789 >"conftest.in"
4633   while :
4634   do
4635     cat "conftest.in" "conftest.in" >"conftest.tmp"
4636     mv "conftest.tmp" "conftest.in"
4637     cp "conftest.in" "conftest.nl"
4638     $as_echo 'EGREP' >> "conftest.nl"
4639     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641     as_fn_arith $ac_count + 1 && ac_count=$as_val
4642     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4643       # Best one so far, save it but keep looking for a better one
4644       ac_cv_path_EGREP="$ac_path_EGREP"
4645       ac_path_EGREP_max=$ac_count
4646     fi
4647     # 10*(2^10) chars as input seems more than enough
4648     test $ac_count -gt 10 && break
4649   done
4650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 esac
4652
4653       $ac_path_EGREP_found && break 3
4654     done
4655   done
4656   done
4657 IFS=$as_save_IFS
4658   if test -z "$ac_cv_path_EGREP"; then
4659     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660   fi
4661 else
4662   ac_cv_path_EGREP=$EGREP
4663 fi
4664
4665    fi
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4668 $as_echo "$ac_cv_path_EGREP" >&6; }
4669  EGREP="$ac_cv_path_EGREP"
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4673 $as_echo_n "checking for fgrep... " >&6; }
4674 if ${ac_cv_path_FGREP+:} false; then :
4675   $as_echo_n "(cached) " >&6
4676 else
4677   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4678    then ac_cv_path_FGREP="$GREP -F"
4679    else
4680      if test -z "$FGREP"; then
4681   ac_path_FGREP_found=false
4682   # Loop through the user's path and test for each of PROGNAME-LIST
4683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688     for ac_prog in fgrep; do
4689     for ac_exec_ext in '' $ac_executable_extensions; do
4690       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4691       as_fn_executable_p "$ac_path_FGREP" || continue
4692 # Check for GNU ac_path_FGREP and select it if it is found.
4693   # Check for GNU $ac_path_FGREP
4694 case `"$ac_path_FGREP" --version 2>&1` in
4695 *GNU*)
4696   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4697 *)
4698   ac_count=0
4699   $as_echo_n 0123456789 >"conftest.in"
4700   while :
4701   do
4702     cat "conftest.in" "conftest.in" >"conftest.tmp"
4703     mv "conftest.tmp" "conftest.in"
4704     cp "conftest.in" "conftest.nl"
4705     $as_echo 'FGREP' >> "conftest.nl"
4706     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4707     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4708     as_fn_arith $ac_count + 1 && ac_count=$as_val
4709     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4710       # Best one so far, save it but keep looking for a better one
4711       ac_cv_path_FGREP="$ac_path_FGREP"
4712       ac_path_FGREP_max=$ac_count
4713     fi
4714     # 10*(2^10) chars as input seems more than enough
4715     test $ac_count -gt 10 && break
4716   done
4717   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4718 esac
4719
4720       $ac_path_FGREP_found && break 3
4721     done
4722   done
4723   done
4724 IFS=$as_save_IFS
4725   if test -z "$ac_cv_path_FGREP"; then
4726     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4727   fi
4728 else
4729   ac_cv_path_FGREP=$FGREP
4730 fi
4731
4732    fi
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4735 $as_echo "$ac_cv_path_FGREP" >&6; }
4736  FGREP="$ac_cv_path_FGREP"
4737
4738
4739 test -z "$GREP" && GREP=grep
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759 # Check whether --with-gnu-ld was given.
4760 if test "${with_gnu_ld+set}" = set; then :
4761   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4762 else
4763   with_gnu_ld=no
4764 fi
4765
4766 ac_prog=ld
4767 if test yes = "$GCC"; then
4768   # Check if gcc -print-prog-name=ld gives a path.
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4770 $as_echo_n "checking for ld used by $CC... " >&6; }
4771   case $host in
4772   *-*-mingw*)
4773     # gcc leaves a trailing carriage return, which upsets mingw
4774     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4775   *)
4776     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4777   esac
4778   case $ac_prog in
4779     # Accept absolute paths.
4780     [\\/]* | ?:[\\/]*)
4781       re_direlt='/[^/][^/]*/\.\./'
4782       # Canonicalize the pathname of ld
4783       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4784       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4785         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4786       done
4787       test -z "$LD" && LD=$ac_prog
4788       ;;
4789   "")
4790     # If it fails, then pretend we aren't using GCC.
4791     ac_prog=ld
4792     ;;
4793   *)
4794     # If it is relative, then search for the first ld in PATH.
4795     with_gnu_ld=unknown
4796     ;;
4797   esac
4798 elif test yes = "$with_gnu_ld"; then
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4800 $as_echo_n "checking for GNU ld... " >&6; }
4801 else
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4803 $as_echo_n "checking for non-GNU ld... " >&6; }
4804 fi
4805 if ${lt_cv_path_LD+:} false; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   if test -z "$LD"; then
4809   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4810   for ac_dir in $PATH; do
4811     IFS=$lt_save_ifs
4812     test -z "$ac_dir" && ac_dir=.
4813     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4814       lt_cv_path_LD=$ac_dir/$ac_prog
4815       # Check to see if the program is GNU ld.  I'd rather use --version,
4816       # but apparently some variants of GNU ld only accept -v.
4817       # Break only if it was the GNU/non-GNU ld that we prefer.
4818       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4819       *GNU* | *'with BFD'*)
4820         test no != "$with_gnu_ld" && break
4821         ;;
4822       *)
4823         test yes != "$with_gnu_ld" && break
4824         ;;
4825       esac
4826     fi
4827   done
4828   IFS=$lt_save_ifs
4829 else
4830   lt_cv_path_LD=$LD # Let the user override the test with a path.
4831 fi
4832 fi
4833
4834 LD=$lt_cv_path_LD
4835 if test -n "$LD"; then
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4837 $as_echo "$LD" >&6; }
4838 else
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4844 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4845 if ${lt_cv_prog_gnu_ld+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4849 case `$LD -v 2>&1 </dev/null` in
4850 *GNU* | *'with BFD'*)
4851   lt_cv_prog_gnu_ld=yes
4852   ;;
4853 *)
4854   lt_cv_prog_gnu_ld=no
4855   ;;
4856 esac
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4859 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4860 with_gnu_ld=$lt_cv_prog_gnu_ld
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4871 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4872 if ${lt_cv_path_NM+:} false; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   if test -n "$NM"; then
4876   # Let the user override the test.
4877   lt_cv_path_NM=$NM
4878 else
4879   lt_nm_to_check=${ac_tool_prefix}nm
4880   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4881     lt_nm_to_check="$lt_nm_to_check nm"
4882   fi
4883   for lt_tmp_nm in $lt_nm_to_check; do
4884     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4885     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4886       IFS=$lt_save_ifs
4887       test -z "$ac_dir" && ac_dir=.
4888       tmp_nm=$ac_dir/$lt_tmp_nm
4889       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4890         # Check to see if the nm accepts a BSD-compat flag.
4891         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4892         #   nm: unknown option "B" ignored
4893         # Tru64's nm complains that /dev/null is an invalid object file
4894         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4895         case $build_os in
4896         mingw*) lt_bad_file=conftest.nm/nofile ;;
4897         *) lt_bad_file=/dev/null ;;
4898         esac
4899         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4900         *$lt_bad_file* | *'Invalid file or object type'*)
4901           lt_cv_path_NM="$tmp_nm -B"
4902           break 2
4903           ;;
4904         *)
4905           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4906           */dev/null*)
4907             lt_cv_path_NM="$tmp_nm -p"
4908             break 2
4909             ;;
4910           *)
4911             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4912             continue # so that we can try to find one that supports BSD flags
4913             ;;
4914           esac
4915           ;;
4916         esac
4917       fi
4918     done
4919     IFS=$lt_save_ifs
4920   done
4921   : ${lt_cv_path_NM=no}
4922 fi
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4925 $as_echo "$lt_cv_path_NM" >&6; }
4926 if test no != "$lt_cv_path_NM"; then
4927   NM=$lt_cv_path_NM
4928 else
4929   # Didn't find any BSD compatible name lister, look for dumpbin.
4930   if test -n "$DUMPBIN"; then :
4931     # Let the user override the test.
4932   else
4933     if test -n "$ac_tool_prefix"; then
4934   for ac_prog in dumpbin "link -dump"
4935   do
4936     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_DUMPBIN+:} false; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   if test -n "$DUMPBIN"; then
4944   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951     for ac_exec_ext in '' $ac_executable_extensions; do
4952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958   done
4959 IFS=$as_save_IFS
4960
4961 fi
4962 fi
4963 DUMPBIN=$ac_cv_prog_DUMPBIN
4964 if test -n "$DUMPBIN"; then
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4966 $as_echo "$DUMPBIN" >&6; }
4967 else
4968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4970 fi
4971
4972
4973     test -n "$DUMPBIN" && break
4974   done
4975 fi
4976 if test -z "$DUMPBIN"; then
4977   ac_ct_DUMPBIN=$DUMPBIN
4978   for ac_prog in dumpbin "link -dump"
4979 do
4980   # Extract the first word of "$ac_prog", so it can be a program name with args.
4981 set dummy $ac_prog; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   if test -n "$ac_ct_DUMPBIN"; then
4988   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   test -z "$as_dir" && as_dir=.
4995     for ac_exec_ext in '' $ac_executable_extensions; do
4996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002   done
5003 IFS=$as_save_IFS
5004
5005 fi
5006 fi
5007 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5008 if test -n "$ac_ct_DUMPBIN"; then
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5010 $as_echo "$ac_ct_DUMPBIN" >&6; }
5011 else
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5014 fi
5015
5016
5017   test -n "$ac_ct_DUMPBIN" && break
5018 done
5019
5020   if test "x$ac_ct_DUMPBIN" = x; then
5021     DUMPBIN=":"
5022   else
5023     case $cross_compiling:$ac_tool_warned in
5024 yes:)
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5027 ac_tool_warned=yes ;;
5028 esac
5029     DUMPBIN=$ac_ct_DUMPBIN
5030   fi
5031 fi
5032
5033     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5034     *COFF*)
5035       DUMPBIN="$DUMPBIN -symbols -headers"
5036       ;;
5037     *)
5038       DUMPBIN=:
5039       ;;
5040     esac
5041   fi
5042
5043   if test : != "$DUMPBIN"; then
5044     NM=$DUMPBIN
5045   fi
5046 fi
5047 test -z "$NM" && NM=nm
5048
5049
5050
5051
5052
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5055 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5056 if ${lt_cv_nm_interface+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   lt_cv_nm_interface="BSD nm"
5060   echo "int some_variable = 0;" > conftest.$ac_ext
5061   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5062   (eval "$ac_compile" 2>conftest.err)
5063   cat conftest.err >&5
5064   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5065   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5066   cat conftest.err >&5
5067   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5068   cat conftest.out >&5
5069   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5070     lt_cv_nm_interface="MS dumpbin"
5071   fi
5072   rm -f conftest*
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5075 $as_echo "$lt_cv_nm_interface" >&6; }
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5078 $as_echo_n "checking whether ln -s works... " >&6; }
5079 LN_S=$as_ln_s
5080 if test "$LN_S" = "ln -s"; then
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5082 $as_echo "yes" >&6; }
5083 else
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5085 $as_echo "no, using $LN_S" >&6; }
5086 fi
5087
5088 # find the maximum length of command line arguments
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5090 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5091 if ${lt_cv_sys_max_cmd_len+:} false; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094     i=0
5095   teststring=ABCD
5096
5097   case $build_os in
5098   msdosdjgpp*)
5099     # On DJGPP, this test can blow up pretty badly due to problems in libc
5100     # (any single argument exceeding 2000 bytes causes a buffer overrun
5101     # during glob expansion).  Even if it were fixed, the result of this
5102     # check would be larger than it should be.
5103     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5104     ;;
5105
5106   gnu*)
5107     # Under GNU Hurd, this test is not required because there is
5108     # no limit to the length of command line arguments.
5109     # Libtool will interpret -1 as no limit whatsoever
5110     lt_cv_sys_max_cmd_len=-1;
5111     ;;
5112
5113   cygwin* | mingw* | cegcc*)
5114     # On Win9x/ME, this test blows up -- it succeeds, but takes
5115     # about 5 minutes as the teststring grows exponentially.
5116     # Worse, since 9x/ME are not pre-emptively multitasking,
5117     # you end up with a "frozen" computer, even though with patience
5118     # the test eventually succeeds (with a max line length of 256k).
5119     # Instead, let's just punt: use the minimum linelength reported by
5120     # all of the supported platforms: 8192 (on NT/2K/XP).
5121     lt_cv_sys_max_cmd_len=8192;
5122     ;;
5123
5124   mint*)
5125     # On MiNT this can take a long time and run out of memory.
5126     lt_cv_sys_max_cmd_len=8192;
5127     ;;
5128
5129   amigaos*)
5130     # On AmigaOS with pdksh, this test takes hours, literally.
5131     # So we just punt and use a minimum line length of 8192.
5132     lt_cv_sys_max_cmd_len=8192;
5133     ;;
5134
5135   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5136     # This has been around since 386BSD, at least.  Likely further.
5137     if test -x /sbin/sysctl; then
5138       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5139     elif test -x /usr/sbin/sysctl; then
5140       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5141     else
5142       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5143     fi
5144     # And add a safety zone
5145     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5146     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5147     ;;
5148
5149   interix*)
5150     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5151     lt_cv_sys_max_cmd_len=196608
5152     ;;
5153
5154   os2*)
5155     # The test takes a long time on OS/2.
5156     lt_cv_sys_max_cmd_len=8192
5157     ;;
5158
5159   osf*)
5160     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5161     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5162     # nice to cause kernel panics so lets avoid the loop below.
5163     # First set a reasonable default.
5164     lt_cv_sys_max_cmd_len=16384
5165     #
5166     if test -x /sbin/sysconfig; then
5167       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5168         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5169       esac
5170     fi
5171     ;;
5172   sco3.2v5*)
5173     lt_cv_sys_max_cmd_len=102400
5174     ;;
5175   sysv5* | sco5v6* | sysv4.2uw2*)
5176     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5177     if test -n "$kargmax"; then
5178       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5179     else
5180       lt_cv_sys_max_cmd_len=32768
5181     fi
5182     ;;
5183   *)
5184     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5185     if test -n "$lt_cv_sys_max_cmd_len" && \
5186        test undefined != "$lt_cv_sys_max_cmd_len"; then
5187       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5188       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5189     else
5190       # Make teststring a little bigger before we do anything with it.
5191       # a 1K string should be a reasonable start.
5192       for i in 1 2 3 4 5 6 7 8; do
5193         teststring=$teststring$teststring
5194       done
5195       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5196       # If test is not a shell built-in, we'll probably end up computing a
5197       # maximum length that is only half of the actual maximum length, but
5198       # we can't tell.
5199       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5200                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5201               test 17 != "$i" # 1/2 MB should be enough
5202       do
5203         i=`expr $i + 1`
5204         teststring=$teststring$teststring
5205       done
5206       # Only check the string length outside the loop.
5207       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5208       teststring=
5209       # Add a significant safety factor because C++ compilers can tack on
5210       # massive amounts of additional arguments before passing them to the
5211       # linker.  It appears as though 1/2 is a usable value.
5212       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5213     fi
5214     ;;
5215   esac
5216
5217 fi
5218
5219 if test -n "$lt_cv_sys_max_cmd_len"; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5221 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5224 $as_echo "none" >&6; }
5225 fi
5226 max_cmd_len=$lt_cv_sys_max_cmd_len
5227
5228
5229
5230
5231
5232
5233 : ${CP="cp -f"}
5234 : ${MV="mv -f"}
5235 : ${RM="rm -f"}
5236
5237 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5238   lt_unset=unset
5239 else
5240   lt_unset=false
5241 fi
5242
5243
5244
5245
5246
5247 # test EBCDIC or ASCII
5248 case `echo X|tr X '\101'` in
5249  A) # ASCII based system
5250     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5251   lt_SP2NL='tr \040 \012'
5252   lt_NL2SP='tr \015\012 \040\040'
5253   ;;
5254  *) # EBCDIC based system
5255   lt_SP2NL='tr \100 \n'
5256   lt_NL2SP='tr \r\n \100\100'
5257   ;;
5258 esac
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5269 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5270 if ${lt_cv_to_host_file_cmd+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   case $host in
5274   *-*-mingw* )
5275     case $build in
5276       *-*-mingw* ) # actually msys
5277         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5278         ;;
5279       *-*-cygwin* )
5280         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5281         ;;
5282       * ) # otherwise, assume *nix
5283         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5284         ;;
5285     esac
5286     ;;
5287   *-*-cygwin* )
5288     case $build in
5289       *-*-mingw* ) # actually msys
5290         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5291         ;;
5292       *-*-cygwin* )
5293         lt_cv_to_host_file_cmd=func_convert_file_noop
5294         ;;
5295       * ) # otherwise, assume *nix
5296         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5297         ;;
5298     esac
5299     ;;
5300   * ) # unhandled hosts (and "normal" native builds)
5301     lt_cv_to_host_file_cmd=func_convert_file_noop
5302     ;;
5303 esac
5304
5305 fi
5306
5307 to_host_file_cmd=$lt_cv_to_host_file_cmd
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5309 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5310
5311
5312
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5316 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5317 if ${lt_cv_to_tool_file_cmd+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   #assume ordinary cross tools, or native build.
5321 lt_cv_to_tool_file_cmd=func_convert_file_noop
5322 case $host in
5323   *-*-mingw* )
5324     case $build in
5325       *-*-mingw* ) # actually msys
5326         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5327         ;;
5328     esac
5329     ;;
5330 esac
5331
5332 fi
5333
5334 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5336 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5337
5338
5339
5340
5341
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5343 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5344 if ${lt_cv_ld_reload_flag+:} false; then :
5345   $as_echo_n "(cached) " >&6
5346 else
5347   lt_cv_ld_reload_flag='-r'
5348 fi
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5350 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5351 reload_flag=$lt_cv_ld_reload_flag
5352 case $reload_flag in
5353 "" | " "*) ;;
5354 *) reload_flag=" $reload_flag" ;;
5355 esac
5356 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5357 case $host_os in
5358   cygwin* | mingw* | pw32* | cegcc*)
5359     if test yes != "$GCC"; then
5360       reload_cmds=false
5361     fi
5362     ;;
5363   darwin*)
5364     if test yes = "$GCC"; then
5365       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5366     else
5367       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5368     fi
5369     ;;
5370 esac
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 if test -n "$ac_tool_prefix"; then
5381   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5382 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_OBJDUMP+:} false; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   if test -n "$OBJDUMP"; then
5389   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396     for ac_exec_ext in '' $ac_executable_extensions; do
5397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400     break 2
5401   fi
5402 done
5403   done
5404 IFS=$as_save_IFS
5405
5406 fi
5407 fi
5408 OBJDUMP=$ac_cv_prog_OBJDUMP
5409 if test -n "$OBJDUMP"; then
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5411 $as_echo "$OBJDUMP" >&6; }
5412 else
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416
5417
5418 fi
5419 if test -z "$ac_cv_prog_OBJDUMP"; then
5420   ac_ct_OBJDUMP=$OBJDUMP
5421   # Extract the first word of "objdump", so it can be a program name with args.
5422 set dummy objdump; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   if test -n "$ac_ct_OBJDUMP"; then
5429   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436     for ac_exec_ext in '' $ac_executable_extensions; do
5437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440     break 2
5441   fi
5442 done
5443   done
5444 IFS=$as_save_IFS
5445
5446 fi
5447 fi
5448 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5449 if test -n "$ac_ct_OBJDUMP"; then
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5451 $as_echo "$ac_ct_OBJDUMP" >&6; }
5452 else
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457   if test "x$ac_ct_OBJDUMP" = x; then
5458     OBJDUMP="false"
5459   else
5460     case $cross_compiling:$ac_tool_warned in
5461 yes:)
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464 ac_tool_warned=yes ;;
5465 esac
5466     OBJDUMP=$ac_ct_OBJDUMP
5467   fi
5468 else
5469   OBJDUMP="$ac_cv_prog_OBJDUMP"
5470 fi
5471
5472 test -z "$OBJDUMP" && OBJDUMP=objdump
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5483 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5484 if ${lt_cv_deplibs_check_method+:} false; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   lt_cv_file_magic_cmd='$MAGIC_CMD'
5488 lt_cv_file_magic_test_file=
5489 lt_cv_deplibs_check_method='unknown'
5490 # Need to set the preceding variable on all platforms that support
5491 # interlibrary dependencies.
5492 # 'none' -- dependencies not supported.
5493 # 'unknown' -- same as none, but documents that we really don't know.
5494 # 'pass_all' -- all dependencies passed with no checks.
5495 # 'test_compile' -- check by making test program.
5496 # 'file_magic [[regex]]' -- check by looking for files in library path
5497 # that responds to the $file_magic_cmd with a given extended regex.
5498 # If you have 'file' or equivalent on your system and you're not sure
5499 # whether 'pass_all' will *always* work, you probably want this one.
5500
5501 case $host_os in
5502 aix[4-9]*)
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505
5506 beos*)
5507   lt_cv_deplibs_check_method=pass_all
5508   ;;
5509
5510 bsdi[45]*)
5511   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5512   lt_cv_file_magic_cmd='/usr/bin/file -L'
5513   lt_cv_file_magic_test_file=/shlib/libc.so
5514   ;;
5515
5516 cygwin*)
5517   # func_win32_libid is a shell function defined in ltmain.sh
5518   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5519   lt_cv_file_magic_cmd='func_win32_libid'
5520   ;;
5521
5522 mingw* | pw32*)
5523   # Base MSYS/MinGW do not provide the 'file' command needed by
5524   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5525   # unless we find 'file', for example because we are cross-compiling.
5526   if ( file / ) >/dev/null 2>&1; then
5527     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5528     lt_cv_file_magic_cmd='func_win32_libid'
5529   else
5530     # Keep this pattern in sync with the one in func_win32_libid.
5531     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5532     lt_cv_file_magic_cmd='$OBJDUMP -f'
5533   fi
5534   ;;
5535
5536 cegcc*)
5537   # use the weaker test based on 'objdump'. See mingw*.
5538   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5539   lt_cv_file_magic_cmd='$OBJDUMP -f'
5540   ;;
5541
5542 darwin* | rhapsody*)
5543   lt_cv_deplibs_check_method=pass_all
5544   ;;
5545
5546 freebsd* | dragonfly*)
5547   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5548     case $host_cpu in
5549     i*86 )
5550       # Not sure whether the presence of OpenBSD here was a mistake.
5551       # Let's accept both of them until this is cleared up.
5552       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5553       lt_cv_file_magic_cmd=/usr/bin/file
5554       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5555       ;;
5556     esac
5557   else
5558     lt_cv_deplibs_check_method=pass_all
5559   fi
5560   ;;
5561
5562 haiku*)
5563   lt_cv_deplibs_check_method=pass_all
5564   ;;
5565
5566 hpux10.20* | hpux11*)
5567   lt_cv_file_magic_cmd=/usr/bin/file
5568   case $host_cpu in
5569   ia64*)
5570     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5571     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5572     ;;
5573   hppa*64*)
5574     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]'
5575     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5576     ;;
5577   *)
5578     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5579     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5580     ;;
5581   esac
5582   ;;
5583
5584 interix[3-9]*)
5585   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5586   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5587   ;;
5588
5589 irix5* | irix6* | nonstopux*)
5590   case $LD in
5591   *-32|*"-32 ") libmagic=32-bit;;
5592   *-n32|*"-n32 ") libmagic=N32;;
5593   *-64|*"-64 ") libmagic=64-bit;;
5594   *) libmagic=never-match;;
5595   esac
5596   lt_cv_deplibs_check_method=pass_all
5597   ;;
5598
5599 # This must be glibc/ELF.
5600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 netbsd*)
5605   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5606     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5607   else
5608     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5609   fi
5610   ;;
5611
5612 newos6*)
5613   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5614   lt_cv_file_magic_cmd=/usr/bin/file
5615   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5616   ;;
5617
5618 *nto* | *qnx*)
5619   lt_cv_deplibs_check_method=pass_all
5620   ;;
5621
5622 openbsd* | bitrig*)
5623   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5624     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5625   else
5626     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5627   fi
5628   ;;
5629
5630 osf3* | osf4* | osf5*)
5631   lt_cv_deplibs_check_method=pass_all
5632   ;;
5633
5634 rdos*)
5635   lt_cv_deplibs_check_method=pass_all
5636   ;;
5637
5638 solaris*)
5639   lt_cv_deplibs_check_method=pass_all
5640   ;;
5641
5642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5643   lt_cv_deplibs_check_method=pass_all
5644   ;;
5645
5646 sysv4 | sysv4.3*)
5647   case $host_vendor in
5648   motorola)
5649     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]'
5650     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5651     ;;
5652   ncr)
5653     lt_cv_deplibs_check_method=pass_all
5654     ;;
5655   sequent)
5656     lt_cv_file_magic_cmd='/bin/file'
5657     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5658     ;;
5659   sni)
5660     lt_cv_file_magic_cmd='/bin/file'
5661     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5662     lt_cv_file_magic_test_file=/lib/libc.so
5663     ;;
5664   siemens)
5665     lt_cv_deplibs_check_method=pass_all
5666     ;;
5667   pc)
5668     lt_cv_deplibs_check_method=pass_all
5669     ;;
5670   esac
5671   ;;
5672
5673 tpf*)
5674   lt_cv_deplibs_check_method=pass_all
5675   ;;
5676 os2*)
5677   lt_cv_deplibs_check_method=pass_all
5678   ;;
5679 esac
5680
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5683 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5684
5685 file_magic_glob=
5686 want_nocaseglob=no
5687 if test "$build" = "$host"; then
5688   case $host_os in
5689   mingw* | pw32*)
5690     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5691       want_nocaseglob=yes
5692     else
5693       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5694     fi
5695     ;;
5696   esac
5697 fi
5698
5699 file_magic_cmd=$lt_cv_file_magic_cmd
5700 deplibs_check_method=$lt_cv_deplibs_check_method
5701 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 if test -n "$ac_tool_prefix"; then
5725   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if ${ac_cv_prog_DLLTOOL+:} false; then :
5730   $as_echo_n "(cached) " >&6
5731 else
5732   if test -n "$DLLTOOL"; then
5733   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 DLLTOOL=$ac_cv_prog_DLLTOOL
5753 if test -n "$DLLTOOL"; then
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5755 $as_echo "$DLLTOOL" >&6; }
5756 else
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5759 fi
5760
5761
5762 fi
5763 if test -z "$ac_cv_prog_DLLTOOL"; then
5764   ac_ct_DLLTOOL=$DLLTOOL
5765   # Extract the first word of "dlltool", so it can be a program name with args.
5766 set dummy dlltool; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   if test -n "$ac_ct_DLLTOOL"; then
5773   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5793 if test -n "$ac_ct_DLLTOOL"; then
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5795 $as_echo "$ac_ct_DLLTOOL" >&6; }
5796 else
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801   if test "x$ac_ct_DLLTOOL" = x; then
5802     DLLTOOL="false"
5803   else
5804     case $cross_compiling:$ac_tool_warned in
5805 yes:)
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808 ac_tool_warned=yes ;;
5809 esac
5810     DLLTOOL=$ac_ct_DLLTOOL
5811   fi
5812 else
5813   DLLTOOL="$ac_cv_prog_DLLTOOL"
5814 fi
5815
5816 test -z "$DLLTOOL" && DLLTOOL=dlltool
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5828 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5829 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   lt_cv_sharedlib_from_linklib_cmd='unknown'
5833
5834 case $host_os in
5835 cygwin* | mingw* | pw32* | cegcc*)
5836   # two different shell functions defined in ltmain.sh;
5837   # decide which one to use based on capabilities of $DLLTOOL
5838   case `$DLLTOOL --help 2>&1` in
5839   *--identify-strict*)
5840     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5841     ;;
5842   *)
5843     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5844     ;;
5845   esac
5846   ;;
5847 *)
5848   # fallback: assume linklib IS sharedlib
5849   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5850   ;;
5851 esac
5852
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5855 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5856 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5857 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5858
5859
5860
5861
5862
5863
5864
5865 if test -n "$ac_tool_prefix"; then
5866   for ac_prog in ar
5867   do
5868     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_AR+:} false; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   if test -n "$AR"; then
5876   ac_cv_prog_AR="$AR" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881   IFS=$as_save_IFS
5882   test -z "$as_dir" && as_dir=.
5883     for ac_exec_ext in '' $ac_executable_extensions; do
5884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887     break 2
5888   fi
5889 done
5890   done
5891 IFS=$as_save_IFS
5892
5893 fi
5894 fi
5895 AR=$ac_cv_prog_AR
5896 if test -n "$AR"; then
5897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5898 $as_echo "$AR" >&6; }
5899 else
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903
5904
5905     test -n "$AR" && break
5906   done
5907 fi
5908 if test -z "$AR"; then
5909   ac_ct_AR=$AR
5910   for ac_prog in ar
5911 do
5912   # Extract the first word of "$ac_prog", so it can be a program name with args.
5913 set dummy $ac_prog; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5917   $as_echo_n "(cached) " >&6
5918 else
5919   if test -n "$ac_ct_AR"; then
5920   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927     for ac_exec_ext in '' $ac_executable_extensions; do
5928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_prog_ac_ct_AR="$ac_prog"
5930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934   done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5940 if test -n "$ac_ct_AR"; then
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5942 $as_echo "$ac_ct_AR" >&6; }
5943 else
5944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949   test -n "$ac_ct_AR" && break
5950 done
5951
5952   if test "x$ac_ct_AR" = x; then
5953     AR="false"
5954   else
5955     case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961     AR=$ac_ct_AR
5962   fi
5963 fi
5964
5965 : ${AR=ar}
5966 : ${AR_FLAGS=cru}
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5979 $as_echo_n "checking for archiver @FILE support... " >&6; }
5980 if ${lt_cv_ar_at_file+:} false; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983   lt_cv_ar_at_file=no
5984    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h.  */
5986
5987 int
5988 main ()
5989 {
5990
5991   ;
5992   return 0;
5993 }
5994 _ACEOF
5995 if ac_fn_c_try_compile "$LINENO"; then :
5996   echo conftest.$ac_objext > conftest.lst
5997       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5998       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5999   (eval $lt_ar_try) 2>&5
6000   ac_status=$?
6001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002   test $ac_status = 0; }
6003       if test 0 -eq "$ac_status"; then
6004         # Ensure the archiver fails upon bogus file names.
6005         rm -f conftest.$ac_objext libconftest.a
6006         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6007   (eval $lt_ar_try) 2>&5
6008   ac_status=$?
6009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6010   test $ac_status = 0; }
6011         if test 0 -ne "$ac_status"; then
6012           lt_cv_ar_at_file=@
6013         fi
6014       fi
6015       rm -f conftest.* libconftest.a
6016
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6022 $as_echo "$lt_cv_ar_at_file" >&6; }
6023
6024 if test no = "$lt_cv_ar_at_file"; then
6025   archiver_list_spec=
6026 else
6027   archiver_list_spec=$lt_cv_ar_at_file
6028 fi
6029
6030
6031
6032
6033
6034
6035
6036 if test -n "$ac_tool_prefix"; then
6037   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}strip; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if ${ac_cv_prog_STRIP+:} false; then :
6042   $as_echo_n "(cached) " >&6
6043 else
6044   if test -n "$STRIP"; then
6045   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050   IFS=$as_save_IFS
6051   test -z "$as_dir" && as_dir=.
6052     for ac_exec_ext in '' $ac_executable_extensions; do
6053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6054     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056     break 2
6057   fi
6058 done
6059   done
6060 IFS=$as_save_IFS
6061
6062 fi
6063 fi
6064 STRIP=$ac_cv_prog_STRIP
6065 if test -n "$STRIP"; then
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6067 $as_echo "$STRIP" >&6; }
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073
6074 fi
6075 if test -z "$ac_cv_prog_STRIP"; then
6076   ac_ct_STRIP=$STRIP
6077   # Extract the first word of "strip", so it can be a program name with args.
6078 set dummy strip; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   if test -n "$ac_ct_STRIP"; then
6085   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094     ac_cv_prog_ac_ct_STRIP="strip"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6105 if test -n "$ac_ct_STRIP"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6107 $as_echo "$ac_ct_STRIP" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113   if test "x$ac_ct_STRIP" = x; then
6114     STRIP=":"
6115   else
6116     case $cross_compiling:$ac_tool_warned in
6117 yes:)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122     STRIP=$ac_ct_STRIP
6123   fi
6124 else
6125   STRIP="$ac_cv_prog_STRIP"
6126 fi
6127
6128 test -z "$STRIP" && STRIP=:
6129
6130
6131
6132
6133
6134
6135 if test -n "$ac_tool_prefix"; then
6136   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_RANLIB+:} false; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143   if test -n "$RANLIB"; then
6144   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151     for ac_exec_ext in '' $ac_executable_extensions; do
6152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158   done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 RANLIB=$ac_cv_prog_RANLIB
6164 if test -n "$RANLIB"; then
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6166 $as_echo "$RANLIB" >&6; }
6167 else
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171
6172
6173 fi
6174 if test -z "$ac_cv_prog_RANLIB"; then
6175   ac_ct_RANLIB=$RANLIB
6176   # Extract the first word of "ranlib", so it can be a program name with args.
6177 set dummy ranlib; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   if test -n "$ac_ct_RANLIB"; then
6184   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191     for ac_exec_ext in '' $ac_executable_extensions; do
6192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193     ac_cv_prog_ac_ct_RANLIB="ranlib"
6194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198   done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6204 if test -n "$ac_ct_RANLIB"; then
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6206 $as_echo "$ac_ct_RANLIB" >&6; }
6207 else
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211
6212   if test "x$ac_ct_RANLIB" = x; then
6213     RANLIB=":"
6214   else
6215     case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6220 esac
6221     RANLIB=$ac_ct_RANLIB
6222   fi
6223 else
6224   RANLIB="$ac_cv_prog_RANLIB"
6225 fi
6226
6227 test -z "$RANLIB" && RANLIB=:
6228
6229
6230
6231
6232
6233
6234 # Determine commands to create old-style static archives.
6235 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6236 old_postinstall_cmds='chmod 644 $oldlib'
6237 old_postuninstall_cmds=
6238
6239 if test -n "$RANLIB"; then
6240   case $host_os in
6241   bitrig* | openbsd*)
6242     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6243     ;;
6244   *)
6245     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6246     ;;
6247   esac
6248   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6249 fi
6250
6251 case $host_os in
6252   darwin*)
6253     lock_old_archive_extraction=yes ;;
6254   *)
6255     lock_old_archive_extraction=no ;;
6256 esac
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
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 # If no C compiler was specified, use CC.
6297 LTCC=${LTCC-"$CC"}
6298
6299 # If no C compiler flags were specified, use CFLAGS.
6300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6301
6302 # Allow CC to be a program name with arguments.
6303 compiler=$CC
6304
6305
6306 # Check for command to grab the raw symbol name followed by C symbol from nm.
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6308 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6309 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312
6313 # These are sane defaults that work on at least a few old systems.
6314 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6315
6316 # Character class describing NM global symbol codes.
6317 symcode='[BCDEGRST]'
6318
6319 # Regexp to match symbols that can be accessed directly from C.
6320 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6321
6322 # Define system-specific variables.
6323 case $host_os in
6324 aix*)
6325   symcode='[BCDT]'
6326   ;;
6327 cygwin* | mingw* | pw32* | cegcc*)
6328   symcode='[ABCDGISTW]'
6329   ;;
6330 hpux*)
6331   if test ia64 = "$host_cpu"; then
6332     symcode='[ABCDEGRST]'
6333   fi
6334   ;;
6335 irix* | nonstopux*)
6336   symcode='[BCDEGRST]'
6337   ;;
6338 osf*)
6339   symcode='[BCDEGQRST]'
6340   ;;
6341 solaris*)
6342   symcode='[BDRT]'
6343   ;;
6344 sco3.2v5*)
6345   symcode='[DT]'
6346   ;;
6347 sysv4.2uw2*)
6348   symcode='[DT]'
6349   ;;
6350 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6351   symcode='[ABDT]'
6352   ;;
6353 sysv4)
6354   symcode='[DFNSTU]'
6355   ;;
6356 esac
6357
6358 # If we're using GNU nm, then use its standard symbol codes.
6359 case `$NM -V 2>&1` in
6360 *GNU* | *'with BFD'*)
6361   symcode='[ABCDGIRSTW]' ;;
6362 esac
6363
6364 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6365   # Gets list of data symbols to import.
6366   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6367   # Adjust the below global symbol transforms to fixup imported variables.
6368   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6369   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6370   lt_c_name_lib_hook="\
6371   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6372   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6373 else
6374   # Disable hooks by default.
6375   lt_cv_sys_global_symbol_to_import=
6376   lt_cdecl_hook=
6377   lt_c_name_hook=
6378   lt_c_name_lib_hook=
6379 fi
6380
6381 # Transform an extracted symbol line into a proper C declaration.
6382 # Some systems (esp. on ia64) link data and code symbols differently,
6383 # so use this general approach.
6384 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6385 $lt_cdecl_hook\
6386 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6387 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6388
6389 # Transform an extracted symbol line into symbol name and symbol address
6390 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6391 $lt_c_name_hook\
6392 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6393 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6394
6395 # Transform an extracted symbol line into symbol name with lib prefix and
6396 # symbol address.
6397 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6398 $lt_c_name_lib_hook\
6399 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6400 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6401 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6402
6403 # Handle CRLF in mingw tool chain
6404 opt_cr=
6405 case $build_os in
6406 mingw*)
6407   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6408   ;;
6409 esac
6410
6411 # Try without a prefix underscore, then with it.
6412 for ac_symprfx in "" "_"; do
6413
6414   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6415   symxfrm="\\1 $ac_symprfx\\2 \\2"
6416
6417   # Write the raw and C identifiers.
6418   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6419     # Fake it for dumpbin and say T for any non-static function,
6420     # D for any global variable and I for any imported variable.
6421     # Also find C++ and __fastcall symbols from MSVC++,
6422     # which start with @ or ?.
6423     lt_cv_sys_global_symbol_pipe="$AWK '"\
6424 "     {last_section=section; section=\$ 3};"\
6425 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6426 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6427 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6428 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6429 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6430 "     \$ 0!~/External *\|/{next};"\
6431 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6432 "     {if(hide[section]) next};"\
6433 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6434 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6435 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6436 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6437 "     ' prfx=^$ac_symprfx"
6438   else
6439     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6440   fi
6441   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6442
6443   # Check to see that the pipe works correctly.
6444   pipe_works=no
6445
6446   rm -f conftest*
6447   cat > conftest.$ac_ext <<_LT_EOF
6448 #ifdef __cplusplus
6449 extern "C" {
6450 #endif
6451 char nm_test_var;
6452 void nm_test_func(void);
6453 void nm_test_func(void){}
6454 #ifdef __cplusplus
6455 }
6456 #endif
6457 int main(){nm_test_var='a';nm_test_func();return(0);}
6458 _LT_EOF
6459
6460   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461   (eval $ac_compile) 2>&5
6462   ac_status=$?
6463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464   test $ac_status = 0; }; then
6465     # Now try to grab the symbols.
6466     nlist=conftest.nm
6467     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6468   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6469   ac_status=$?
6470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471   test $ac_status = 0; } && test -s "$nlist"; then
6472       # Try sorting and uniquifying the output.
6473       if sort "$nlist" | uniq > "$nlist"T; then
6474         mv -f "$nlist"T "$nlist"
6475       else
6476         rm -f "$nlist"T
6477       fi
6478
6479       # Make sure that we snagged all the symbols we need.
6480       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6481         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6482           cat <<_LT_EOF > conftest.$ac_ext
6483 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6484 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6485 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6486    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6487 # define LT_DLSYM_CONST
6488 #elif defined __osf__
6489 /* This system does not cope well with relocations in const data.  */
6490 # define LT_DLSYM_CONST
6491 #else
6492 # define LT_DLSYM_CONST const
6493 #endif
6494
6495 #ifdef __cplusplus
6496 extern "C" {
6497 #endif
6498
6499 _LT_EOF
6500           # Now generate the symbol file.
6501           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6502
6503           cat <<_LT_EOF >> conftest.$ac_ext
6504
6505 /* The mapping between symbol names and symbols.  */
6506 LT_DLSYM_CONST struct {
6507   const char *name;
6508   void       *address;
6509 }
6510 lt__PROGRAM__LTX_preloaded_symbols[] =
6511 {
6512   { "@PROGRAM@", (void *) 0 },
6513 _LT_EOF
6514           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6515           cat <<\_LT_EOF >> conftest.$ac_ext
6516   {0, (void *) 0}
6517 };
6518
6519 /* This works around a problem in FreeBSD linker */
6520 #ifdef FREEBSD_WORKAROUND
6521 static const void *lt_preloaded_setup() {
6522   return lt__PROGRAM__LTX_preloaded_symbols;
6523 }
6524 #endif
6525
6526 #ifdef __cplusplus
6527 }
6528 #endif
6529 _LT_EOF
6530           # Now try linking the two files.
6531           mv conftest.$ac_objext conftstm.$ac_objext
6532           lt_globsym_save_LIBS=$LIBS
6533           lt_globsym_save_CFLAGS=$CFLAGS
6534           LIBS=conftstm.$ac_objext
6535           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6536           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6537   (eval $ac_link) 2>&5
6538   ac_status=$?
6539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6541             pipe_works=yes
6542           fi
6543           LIBS=$lt_globsym_save_LIBS
6544           CFLAGS=$lt_globsym_save_CFLAGS
6545         else
6546           echo "cannot find nm_test_func in $nlist" >&5
6547         fi
6548       else
6549         echo "cannot find nm_test_var in $nlist" >&5
6550       fi
6551     else
6552       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6553     fi
6554   else
6555     echo "$progname: failed program was:" >&5
6556     cat conftest.$ac_ext >&5
6557   fi
6558   rm -rf conftest* conftst*
6559
6560   # Do not use the global_symbol_pipe unless it works.
6561   if test yes = "$pipe_works"; then
6562     break
6563   else
6564     lt_cv_sys_global_symbol_pipe=
6565   fi
6566 done
6567
6568 fi
6569
6570 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6571   lt_cv_sys_global_symbol_to_cdecl=
6572 fi
6573 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6575 $as_echo "failed" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6578 $as_echo "ok" >&6; }
6579 fi
6580
6581 # Response file support.
6582 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6583   nm_file_list_spec='@'
6584 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6585   nm_file_list_spec='@'
6586 fi
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6625 $as_echo_n "checking for sysroot... " >&6; }
6626
6627 # Check whether --with-sysroot was given.
6628 if test "${with_sysroot+set}" = set; then :
6629   withval=$with_sysroot;
6630 else
6631   with_sysroot=no
6632 fi
6633
6634
6635 lt_sysroot=
6636 case $with_sysroot in #(
6637  yes)
6638    if test yes = "$GCC"; then
6639      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6640    fi
6641    ;; #(
6642  /*)
6643    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6644    ;; #(
6645  no|'')
6646    ;; #(
6647  *)
6648    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6649 $as_echo "$with_sysroot" >&6; }
6650    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6651    ;;
6652 esac
6653
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6655 $as_echo "${lt_sysroot:-no}" >&6; }
6656
6657
6658
6659
6660
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6662 $as_echo_n "checking for a working dd... " >&6; }
6663 if ${ac_cv_path_lt_DD+:} false; then :
6664   $as_echo_n "(cached) " >&6
6665 else
6666   printf 0123456789abcdef0123456789abcdef >conftest.i
6667 cat conftest.i conftest.i >conftest2.i
6668 : ${lt_DD:=$DD}
6669 if test -z "$lt_DD"; then
6670   ac_path_lt_DD_found=false
6671   # Loop through the user's path and test for each of PROGNAME-LIST
6672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677     for ac_prog in dd; do
6678     for ac_exec_ext in '' $ac_executable_extensions; do
6679       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6680       as_fn_executable_p "$ac_path_lt_DD" || continue
6681 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6682   cmp -s conftest.i conftest.out \
6683   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6684 fi
6685       $ac_path_lt_DD_found && break 3
6686     done
6687   done
6688   done
6689 IFS=$as_save_IFS
6690   if test -z "$ac_cv_path_lt_DD"; then
6691     :
6692   fi
6693 else
6694   ac_cv_path_lt_DD=$lt_DD
6695 fi
6696
6697 rm -f conftest.i conftest2.i conftest.out
6698 fi
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6700 $as_echo "$ac_cv_path_lt_DD" >&6; }
6701
6702
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6704 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6705 if ${lt_cv_truncate_bin+:} false; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   printf 0123456789abcdef0123456789abcdef >conftest.i
6709 cat conftest.i conftest.i >conftest2.i
6710 lt_cv_truncate_bin=
6711 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6712   cmp -s conftest.i conftest.out \
6713   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6714 fi
6715 rm -f conftest.i conftest2.i conftest.out
6716 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6717 fi
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6719 $as_echo "$lt_cv_truncate_bin" >&6; }
6720
6721
6722
6723
6724
6725
6726
6727 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6728 func_cc_basename ()
6729 {
6730     for cc_temp in $*""; do
6731       case $cc_temp in
6732         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6733         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6734         \-*) ;;
6735         *) break;;
6736       esac
6737     done
6738     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6739 }
6740
6741 # Check whether --enable-libtool-lock was given.
6742 if test "${enable_libtool_lock+set}" = set; then :
6743   enableval=$enable_libtool_lock;
6744 fi
6745
6746 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6747
6748 # Some flags need to be propagated to the compiler or linker for good
6749 # libtool support.
6750 case $host in
6751 ia64-*-hpux*)
6752   # Find out what ABI is being produced by ac_compile, and set mode
6753   # options accordingly.
6754   echo 'int i;' > conftest.$ac_ext
6755   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6756   (eval $ac_compile) 2>&5
6757   ac_status=$?
6758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759   test $ac_status = 0; }; then
6760     case `/usr/bin/file conftest.$ac_objext` in
6761       *ELF-32*)
6762         HPUX_IA64_MODE=32
6763         ;;
6764       *ELF-64*)
6765         HPUX_IA64_MODE=64
6766         ;;
6767     esac
6768   fi
6769   rm -rf conftest*
6770   ;;
6771 *-*-irix6*)
6772   # Find out what ABI is being produced by ac_compile, and set linker
6773   # options accordingly.
6774   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6775   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6776   (eval $ac_compile) 2>&5
6777   ac_status=$?
6778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779   test $ac_status = 0; }; then
6780     if test yes = "$lt_cv_prog_gnu_ld"; then
6781       case `/usr/bin/file conftest.$ac_objext` in
6782         *32-bit*)
6783           LD="${LD-ld} -melf32bsmip"
6784           ;;
6785         *N32*)
6786           LD="${LD-ld} -melf32bmipn32"
6787           ;;
6788         *64-bit*)
6789           LD="${LD-ld} -melf64bmip"
6790         ;;
6791       esac
6792     else
6793       case `/usr/bin/file conftest.$ac_objext` in
6794         *32-bit*)
6795           LD="${LD-ld} -32"
6796           ;;
6797         *N32*)
6798           LD="${LD-ld} -n32"
6799           ;;
6800         *64-bit*)
6801           LD="${LD-ld} -64"
6802           ;;
6803       esac
6804     fi
6805   fi
6806   rm -rf conftest*
6807   ;;
6808
6809 mips64*-*linux*)
6810   # Find out what ABI is being produced by ac_compile, and set linker
6811   # options accordingly.
6812   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6813   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6814   (eval $ac_compile) 2>&5
6815   ac_status=$?
6816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817   test $ac_status = 0; }; then
6818     emul=elf
6819     case `/usr/bin/file conftest.$ac_objext` in
6820       *32-bit*)
6821         emul="${emul}32"
6822         ;;
6823       *64-bit*)
6824         emul="${emul}64"
6825         ;;
6826     esac
6827     case `/usr/bin/file conftest.$ac_objext` in
6828       *MSB*)
6829         emul="${emul}btsmip"
6830         ;;
6831       *LSB*)
6832         emul="${emul}ltsmip"
6833         ;;
6834     esac
6835     case `/usr/bin/file conftest.$ac_objext` in
6836       *N32*)
6837         emul="${emul}n32"
6838         ;;
6839     esac
6840     LD="${LD-ld} -m $emul"
6841   fi
6842   rm -rf conftest*
6843   ;;
6844
6845 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6846 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6847   # Find out what ABI is being produced by ac_compile, and set linker
6848   # options accordingly.  Note that the listed cases only cover the
6849   # situations where additional linker options are needed (such as when
6850   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6851   # vice versa); the common cases where no linker options are needed do
6852   # not appear in the list.
6853   echo 'int i;' > conftest.$ac_ext
6854   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6855   (eval $ac_compile) 2>&5
6856   ac_status=$?
6857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858   test $ac_status = 0; }; then
6859     case `/usr/bin/file conftest.o` in
6860       *32-bit*)
6861         case $host in
6862           x86_64-*kfreebsd*-gnu)
6863             LD="${LD-ld} -m elf_i386_fbsd"
6864             ;;
6865           x86_64-*linux*)
6866             case `/usr/bin/file conftest.o` in
6867               *x86-64*)
6868                 LD="${LD-ld} -m elf32_x86_64"
6869                 ;;
6870               *)
6871                 LD="${LD-ld} -m elf_i386"
6872                 ;;
6873             esac
6874             ;;
6875           powerpc64le-*linux*)
6876             LD="${LD-ld} -m elf32lppclinux"
6877             ;;
6878           powerpc64-*linux*)
6879             LD="${LD-ld} -m elf32ppclinux"
6880             ;;
6881           s390x-*linux*)
6882             LD="${LD-ld} -m elf_s390"
6883             ;;
6884           sparc64-*linux*)
6885             LD="${LD-ld} -m elf32_sparc"
6886             ;;
6887         esac
6888         ;;
6889       *64-bit*)
6890         case $host in
6891           x86_64-*kfreebsd*-gnu)
6892             LD="${LD-ld} -m elf_x86_64_fbsd"
6893             ;;
6894           x86_64-*linux*)
6895             LD="${LD-ld} -m elf_x86_64"
6896             ;;
6897           powerpcle-*linux*)
6898             LD="${LD-ld} -m elf64lppc"
6899             ;;
6900           powerpc-*linux*)
6901             LD="${LD-ld} -m elf64ppc"
6902             ;;
6903           s390*-*linux*|s390*-*tpf*)
6904             LD="${LD-ld} -m elf64_s390"
6905             ;;
6906           sparc*-*linux*)
6907             LD="${LD-ld} -m elf64_sparc"
6908             ;;
6909         esac
6910         ;;
6911     esac
6912   fi
6913   rm -rf conftest*
6914   ;;
6915
6916 *-*-sco3.2v5*)
6917   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6918   SAVE_CFLAGS=$CFLAGS
6919   CFLAGS="$CFLAGS -belf"
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6921 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6922 if ${lt_cv_cc_needs_belf+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   ac_ext=c
6926 ac_cpp='$CPP $CPPFLAGS'
6927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6930
6931      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h.  */
6933
6934 int
6935 main ()
6936 {
6937
6938   ;
6939   return 0;
6940 }
6941 _ACEOF
6942 if ac_fn_c_try_link "$LINENO"; then :
6943   lt_cv_cc_needs_belf=yes
6944 else
6945   lt_cv_cc_needs_belf=no
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext \
6948     conftest$ac_exeext conftest.$ac_ext
6949      ac_ext=c
6950 ac_cpp='$CPP $CPPFLAGS'
6951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954
6955 fi
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6957 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6958   if test yes != "$lt_cv_cc_needs_belf"; then
6959     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6960     CFLAGS=$SAVE_CFLAGS
6961   fi
6962   ;;
6963 *-*solaris*)
6964   # Find out what ABI is being produced by ac_compile, and set linker
6965   # options accordingly.
6966   echo 'int i;' > conftest.$ac_ext
6967   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6968   (eval $ac_compile) 2>&5
6969   ac_status=$?
6970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971   test $ac_status = 0; }; then
6972     case `/usr/bin/file conftest.o` in
6973     *64-bit*)
6974       case $lt_cv_prog_gnu_ld in
6975       yes*)
6976         case $host in
6977         i?86-*-solaris*|x86_64-*-solaris*)
6978           LD="${LD-ld} -m elf_x86_64"
6979           ;;
6980         sparc*-*-solaris*)
6981           LD="${LD-ld} -m elf64_sparc"
6982           ;;
6983         esac
6984         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6985         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6986           LD=${LD-ld}_sol2
6987         fi
6988         ;;
6989       *)
6990         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6991           LD="${LD-ld} -64"
6992         fi
6993         ;;
6994       esac
6995       ;;
6996     esac
6997   fi
6998   rm -rf conftest*
6999   ;;
7000 esac
7001
7002 need_locks=$enable_libtool_lock
7003
7004 if test -n "$ac_tool_prefix"; then
7005   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}mt; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7010   $as_echo_n "(cached) " >&6
7011 else
7012   if test -n "$MANIFEST_TOOL"; then
7013   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020     for ac_exec_ext in '' $ac_executable_extensions; do
7021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027   done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7033 if test -n "$MANIFEST_TOOL"; then
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7035 $as_echo "$MANIFEST_TOOL" >&6; }
7036 else
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7044   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7045   # Extract the first word of "mt", so it can be a program name with args.
7046 set dummy mt; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   if test -n "$ac_ct_MANIFEST_TOOL"; then
7053   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060     for ac_exec_ext in '' $ac_executable_extensions; do
7061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067   done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7073 if test -n "$ac_ct_MANIFEST_TOOL"; then
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7075 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7076 else
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7082     MANIFEST_TOOL=":"
7083   else
7084     case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7091   fi
7092 else
7093   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7094 fi
7095
7096 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7098 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7099 if ${lt_cv_path_mainfest_tool+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   lt_cv_path_mainfest_tool=no
7103   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7104   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7105   cat conftest.err >&5
7106   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7107     lt_cv_path_mainfest_tool=yes
7108   fi
7109   rm -f conftest*
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7112 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7113 if test yes != "$lt_cv_path_mainfest_tool"; then
7114   MANIFEST_TOOL=:
7115 fi
7116
7117
7118
7119
7120
7121
7122   case $host_os in
7123     rhapsody* | darwin*)
7124     if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -n "$DSYMUTIL"; then
7133   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140     for ac_exec_ext in '' $ac_executable_extensions; do
7141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147   done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7153 if test -n "$DSYMUTIL"; then
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7155 $as_echo "$DSYMUTIL" >&6; }
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_DSYMUTIL"; then
7164   ac_ct_DSYMUTIL=$DSYMUTIL
7165   # Extract the first word of "dsymutil", so it can be a program name with args.
7166 set dummy dsymutil; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7170   $as_echo_n "(cached) " >&6
7171 else
7172   if test -n "$ac_ct_DSYMUTIL"; then
7173   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180     for ac_exec_ext in '' $ac_executable_extensions; do
7181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187   done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7193 if test -n "$ac_ct_DSYMUTIL"; then
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7195 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7196 else
7197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201   if test "x$ac_ct_DSYMUTIL" = x; then
7202     DSYMUTIL=":"
7203   else
7204     case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7209 esac
7210     DSYMUTIL=$ac_ct_DSYMUTIL
7211   fi
7212 else
7213   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7214 fi
7215
7216     if test -n "$ac_tool_prefix"; then
7217   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_NMEDIT+:} false; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   if test -n "$NMEDIT"; then
7225   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7234     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 NMEDIT=$ac_cv_prog_NMEDIT
7245 if test -n "$NMEDIT"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7247 $as_echo "$NMEDIT" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 fi
7255 if test -z "$ac_cv_prog_NMEDIT"; then
7256   ac_ct_NMEDIT=$NMEDIT
7257   # Extract the first word of "nmedit", so it can be a program name with args.
7258 set dummy nmedit; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$ac_ct_NMEDIT"; then
7265   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7285 if test -n "$ac_ct_NMEDIT"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7287 $as_echo "$ac_ct_NMEDIT" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293   if test "x$ac_ct_NMEDIT" = x; then
7294     NMEDIT=":"
7295   else
7296     case $cross_compiling:$ac_tool_warned in
7297 yes:)
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302     NMEDIT=$ac_ct_NMEDIT
7303   fi
7304 else
7305   NMEDIT="$ac_cv_prog_NMEDIT"
7306 fi
7307
7308     if test -n "$ac_tool_prefix"; then
7309   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_LIPO+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   if test -n "$LIPO"; then
7317   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324     for ac_exec_ext in '' $ac_executable_extensions; do
7325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331   done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 LIPO=$ac_cv_prog_LIPO
7337 if test -n "$LIPO"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7339 $as_echo "$LIPO" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345
7346 fi
7347 if test -z "$ac_cv_prog_LIPO"; then
7348   ac_ct_LIPO=$LIPO
7349   # Extract the first word of "lipo", so it can be a program name with args.
7350 set dummy lipo; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if test -n "$ac_ct_LIPO"; then
7357   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366     ac_cv_prog_ac_ct_LIPO="lipo"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7377 if test -n "$ac_ct_LIPO"; then
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7379 $as_echo "$ac_ct_LIPO" >&6; }
7380 else
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385   if test "x$ac_ct_LIPO" = x; then
7386     LIPO=":"
7387   else
7388     case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394     LIPO=$ac_ct_LIPO
7395   fi
7396 else
7397   LIPO="$ac_cv_prog_LIPO"
7398 fi
7399
7400     if test -n "$ac_tool_prefix"; then
7401   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}otool; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_OTOOL+:} false; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$OTOOL"; then
7409   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 OTOOL=$ac_cv_prog_OTOOL
7429 if test -n "$OTOOL"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7431 $as_echo "$OTOOL" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_OTOOL"; then
7440   ac_ct_OTOOL=$OTOOL
7441   # Extract the first word of "otool", so it can be a program name with args.
7442 set dummy otool; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   if test -n "$ac_ct_OTOOL"; then
7449   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458     ac_cv_prog_ac_ct_OTOOL="otool"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7469 if test -n "$ac_ct_OTOOL"; then
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7471 $as_echo "$ac_ct_OTOOL" >&6; }
7472 else
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477   if test "x$ac_ct_OTOOL" = x; then
7478     OTOOL=":"
7479   else
7480     case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486     OTOOL=$ac_ct_OTOOL
7487   fi
7488 else
7489   OTOOL="$ac_cv_prog_OTOOL"
7490 fi
7491
7492     if test -n "$ac_tool_prefix"; then
7493   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_OTOOL64+:} false; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$OTOOL64"; then
7501   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 OTOOL64=$ac_cv_prog_OTOOL64
7521 if test -n "$OTOOL64"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7523 $as_echo "$OTOOL64" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 fi
7531 if test -z "$ac_cv_prog_OTOOL64"; then
7532   ac_ct_OTOOL64=$OTOOL64
7533   # Extract the first word of "otool64", so it can be a program name with args.
7534 set dummy otool64; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   if test -n "$ac_ct_OTOOL64"; then
7541   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550     ac_cv_prog_ac_ct_OTOOL64="otool64"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7561 if test -n "$ac_ct_OTOOL64"; then
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7563 $as_echo "$ac_ct_OTOOL64" >&6; }
7564 else
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569   if test "x$ac_ct_OTOOL64" = x; then
7570     OTOOL64=":"
7571   else
7572     case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578     OTOOL64=$ac_ct_OTOOL64
7579   fi
7580 else
7581   OTOOL64="$ac_cv_prog_OTOOL64"
7582 fi
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7611 $as_echo_n "checking for -single_module linker flag... " >&6; }
7612 if ${lt_cv_apple_cc_single_mod+:} false; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   lt_cv_apple_cc_single_mod=no
7616       if test -z "$LT_MULTI_MODULE"; then
7617         # By default we will add the -single_module flag. You can override
7618         # by either setting the environment variable LT_MULTI_MODULE
7619         # non-empty at configure time, or by adding -multi_module to the
7620         # link flags.
7621         rm -rf libconftest.dylib*
7622         echo "int foo(void){return 1;}" > conftest.c
7623         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7624 -dynamiclib -Wl,-single_module conftest.c" >&5
7625         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7626           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7627         _lt_result=$?
7628         # If there is a non-empty error log, and "single_module"
7629         # appears in it, assume the flag caused a linker warning
7630         if test -s conftest.err && $GREP single_module conftest.err; then
7631           cat conftest.err >&5
7632         # Otherwise, if the output was created with a 0 exit code from
7633         # the compiler, it worked.
7634         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7635           lt_cv_apple_cc_single_mod=yes
7636         else
7637           cat conftest.err >&5
7638         fi
7639         rm -rf libconftest.dylib*
7640         rm -f conftest.*
7641       fi
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7644 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7645
7646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7647 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7648 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651   lt_cv_ld_exported_symbols_list=no
7652       save_LDFLAGS=$LDFLAGS
7653       echo "_main" > conftest.sym
7654       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7655       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h.  */
7657
7658 int
7659 main ()
7660 {
7661
7662   ;
7663   return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_link "$LINENO"; then :
7667   lt_cv_ld_exported_symbols_list=yes
7668 else
7669   lt_cv_ld_exported_symbols_list=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext \
7672     conftest$ac_exeext conftest.$ac_ext
7673         LDFLAGS=$save_LDFLAGS
7674
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7677 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7678
7679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7680 $as_echo_n "checking for -force_load linker flag... " >&6; }
7681 if ${lt_cv_ld_force_load+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   lt_cv_ld_force_load=no
7685       cat > conftest.c << _LT_EOF
7686 int forced_loaded() { return 2;}
7687 _LT_EOF
7688       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7689       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7690       echo "$AR cru libconftest.a conftest.o" >&5
7691       $AR cru libconftest.a conftest.o 2>&5
7692       echo "$RANLIB libconftest.a" >&5
7693       $RANLIB libconftest.a 2>&5
7694       cat > conftest.c << _LT_EOF
7695 int main() { return 0;}
7696 _LT_EOF
7697       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7698       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7699       _lt_result=$?
7700       if test -s conftest.err && $GREP force_load conftest.err; then
7701         cat conftest.err >&5
7702       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7703         lt_cv_ld_force_load=yes
7704       else
7705         cat conftest.err >&5
7706       fi
7707         rm -f conftest.err libconftest.a conftest conftest.c
7708         rm -rf conftest.dSYM
7709
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7712 $as_echo "$lt_cv_ld_force_load" >&6; }
7713     case $host_os in
7714     rhapsody* | darwin1.[012])
7715       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7716     darwin1.*)
7717       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7718     darwin*) # darwin 5.x on
7719       # if running on 10.5 or later, the deployment target defaults
7720       # to the OS version, if on x86, and 10.4, the deployment
7721       # target defaults to 10.4. Don't you love it?
7722       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7723         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7724           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7725         10.[012][,.]*)
7726           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7727         10.*)
7728           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7729       esac
7730     ;;
7731   esac
7732     if test yes = "$lt_cv_apple_cc_single_mod"; then
7733       _lt_dar_single_mod='$single_module'
7734     fi
7735     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7736       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7737     else
7738       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7739     fi
7740     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7741       _lt_dsymutil='~$DSYMUTIL $lib || :'
7742     else
7743       _lt_dsymutil=
7744     fi
7745     ;;
7746   esac
7747
7748 # func_munge_path_list VARIABLE PATH
7749 # -----------------------------------
7750 # VARIABLE is name of variable containing _space_ separated list of
7751 # directories to be munged by the contents of PATH, which is string
7752 # having a format:
7753 # "DIR[:DIR]:"
7754 #       string "DIR[ DIR]" will be prepended to VARIABLE
7755 # ":DIR[:DIR]"
7756 #       string "DIR[ DIR]" will be appended to VARIABLE
7757 # "DIRP[:DIRP]::[DIRA:]DIRA"
7758 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7759 #       "DIRA[ DIRA]" will be appended to VARIABLE
7760 # "DIR[:DIR]"
7761 #       VARIABLE will be replaced by "DIR[ DIR]"
7762 func_munge_path_list ()
7763 {
7764     case x$2 in
7765     x)
7766         ;;
7767     *:)
7768         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7769         ;;
7770     x:*)
7771         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7772         ;;
7773     *::*)
7774         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7775         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7776         ;;
7777     *)
7778         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7779         ;;
7780     esac
7781 }
7782
7783 ac_ext=c
7784 ac_cpp='$CPP $CPPFLAGS'
7785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7789 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7790 # On Suns, sometimes $CPP names a directory.
7791 if test -n "$CPP" && test -d "$CPP"; then
7792   CPP=
7793 fi
7794 if test -z "$CPP"; then
7795   if ${ac_cv_prog_CPP+:} false; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798       # Double quotes because CPP needs to be expanded
7799     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7800     do
7801       ac_preproc_ok=false
7802 for ac_c_preproc_warn_flag in '' yes
7803 do
7804   # Use a header file that comes with gcc, so configuring glibc
7805   # with a fresh cross-compiler works.
7806   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7807   # <limits.h> exists even on freestanding compilers.
7808   # On the NeXT, cc -E runs the code through the compiler's parser,
7809   # not just through cpp. "Syntax error" is here to catch this case.
7810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h.  */
7812 #ifdef __STDC__
7813 # include <limits.h>
7814 #else
7815 # include <assert.h>
7816 #endif
7817                      Syntax error
7818 _ACEOF
7819 if ac_fn_c_try_cpp "$LINENO"; then :
7820
7821 else
7822   # Broken: fails on valid input.
7823 continue
7824 fi
7825 rm -f conftest.err conftest.i conftest.$ac_ext
7826
7827   # OK, works on sane cases.  Now check whether nonexistent headers
7828   # can be detected and how.
7829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h.  */
7831 #include <ac_nonexistent.h>
7832 _ACEOF
7833 if ac_fn_c_try_cpp "$LINENO"; then :
7834   # Broken: success on invalid input.
7835 continue
7836 else
7837   # Passes both tests.
7838 ac_preproc_ok=:
7839 break
7840 fi
7841 rm -f conftest.err conftest.i conftest.$ac_ext
7842
7843 done
7844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7845 rm -f conftest.i conftest.err conftest.$ac_ext
7846 if $ac_preproc_ok; then :
7847   break
7848 fi
7849
7850     done
7851     ac_cv_prog_CPP=$CPP
7852
7853 fi
7854   CPP=$ac_cv_prog_CPP
7855 else
7856   ac_cv_prog_CPP=$CPP
7857 fi
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7859 $as_echo "$CPP" >&6; }
7860 ac_preproc_ok=false
7861 for ac_c_preproc_warn_flag in '' yes
7862 do
7863   # Use a header file that comes with gcc, so configuring glibc
7864   # with a fresh cross-compiler works.
7865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7866   # <limits.h> exists even on freestanding compilers.
7867   # On the NeXT, cc -E runs the code through the compiler's parser,
7868   # not just through cpp. "Syntax error" is here to catch this case.
7869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h.  */
7871 #ifdef __STDC__
7872 # include <limits.h>
7873 #else
7874 # include <assert.h>
7875 #endif
7876                      Syntax error
7877 _ACEOF
7878 if ac_fn_c_try_cpp "$LINENO"; then :
7879
7880 else
7881   # Broken: fails on valid input.
7882 continue
7883 fi
7884 rm -f conftest.err conftest.i conftest.$ac_ext
7885
7886   # OK, works on sane cases.  Now check whether nonexistent headers
7887   # can be detected and how.
7888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h.  */
7890 #include <ac_nonexistent.h>
7891 _ACEOF
7892 if ac_fn_c_try_cpp "$LINENO"; then :
7893   # Broken: success on invalid input.
7894 continue
7895 else
7896   # Passes both tests.
7897 ac_preproc_ok=:
7898 break
7899 fi
7900 rm -f conftest.err conftest.i conftest.$ac_ext
7901
7902 done
7903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7904 rm -f conftest.i conftest.err conftest.$ac_ext
7905 if $ac_preproc_ok; then :
7906
7907 else
7908   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7910 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7911 See \`config.log' for more details" "$LINENO" 5; }
7912 fi
7913
7914 ac_ext=c
7915 ac_cpp='$CPP $CPPFLAGS'
7916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7922 $as_echo_n "checking for ANSI C header files... " >&6; }
7923 if ${ac_cv_header_stdc+:} false; then :
7924   $as_echo_n "(cached) " >&6
7925 else
7926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h.  */
7928 #include <stdlib.h>
7929 #include <stdarg.h>
7930 #include <string.h>
7931 #include <float.h>
7932
7933 int
7934 main ()
7935 {
7936
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942   ac_cv_header_stdc=yes
7943 else
7944   ac_cv_header_stdc=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947
7948 if test $ac_cv_header_stdc = yes; then
7949   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h.  */
7952 #include <string.h>
7953
7954 _ACEOF
7955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7956   $EGREP "memchr" >/dev/null 2>&1; then :
7957
7958 else
7959   ac_cv_header_stdc=no
7960 fi
7961 rm -f conftest*
7962
7963 fi
7964
7965 if test $ac_cv_header_stdc = yes; then
7966   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h.  */
7969 #include <stdlib.h>
7970
7971 _ACEOF
7972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973   $EGREP "free" >/dev/null 2>&1; then :
7974
7975 else
7976   ac_cv_header_stdc=no
7977 fi
7978 rm -f conftest*
7979
7980 fi
7981
7982 if test $ac_cv_header_stdc = yes; then
7983   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7984   if test "$cross_compiling" = yes; then :
7985   :
7986 else
7987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h.  */
7989 #include <ctype.h>
7990 #include <stdlib.h>
7991 #if ((' ' & 0x0FF) == 0x020)
7992 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7993 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7994 #else
7995 # define ISLOWER(c) \
7996                    (('a' <= (c) && (c) <= 'i') \
7997                      || ('j' <= (c) && (c) <= 'r') \
7998                      || ('s' <= (c) && (c) <= 'z'))
7999 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8000 #endif
8001
8002 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8003 int
8004 main ()
8005 {
8006   int i;
8007   for (i = 0; i < 256; i++)
8008     if (XOR (islower (i), ISLOWER (i))
8009         || toupper (i) != TOUPPER (i))
8010       return 2;
8011   return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_run "$LINENO"; then :
8015
8016 else
8017   ac_cv_header_stdc=no
8018 fi
8019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8020   conftest.$ac_objext conftest.beam conftest.$ac_ext
8021 fi
8022
8023 fi
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8026 $as_echo "$ac_cv_header_stdc" >&6; }
8027 if test $ac_cv_header_stdc = yes; then
8028
8029 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8030
8031 fi
8032
8033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8035                   inttypes.h stdint.h unistd.h
8036 do :
8037   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8039 "
8040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8041   cat >>confdefs.h <<_ACEOF
8042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8043 _ACEOF
8044
8045 fi
8046
8047 done
8048
8049
8050 for ac_header in dlfcn.h
8051 do :
8052   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8053 "
8054 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8055   cat >>confdefs.h <<_ACEOF
8056 #define HAVE_DLFCN_H 1
8057 _ACEOF
8058
8059 fi
8060
8061 done
8062
8063
8064
8065
8066
8067 # Set options
8068 # Check whether --enable-static was given.
8069 if test "${enable_static+set}" = set; then :
8070   enableval=$enable_static; p=${PACKAGE-default}
8071     case $enableval in
8072     yes) enable_static=yes ;;
8073     no) enable_static=no ;;
8074     *)
8075      enable_static=no
8076       # Look at the argument we got.  We use all the common list separators.
8077       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8078       for pkg in $enableval; do
8079         IFS=$lt_save_ifs
8080         if test "X$pkg" = "X$p"; then
8081           enable_static=yes
8082         fi
8083       done
8084       IFS=$lt_save_ifs
8085       ;;
8086     esac
8087 else
8088   enable_static=no
8089 fi
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100         enable_dlopen=no
8101
8102
8103   enable_win32_dll=no
8104
8105
8106             # Check whether --enable-shared was given.
8107 if test "${enable_shared+set}" = set; then :
8108   enableval=$enable_shared; p=${PACKAGE-default}
8109     case $enableval in
8110     yes) enable_shared=yes ;;
8111     no) enable_shared=no ;;
8112     *)
8113       enable_shared=no
8114       # Look at the argument we got.  We use all the common list separators.
8115       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8116       for pkg in $enableval; do
8117         IFS=$lt_save_ifs
8118         if test "X$pkg" = "X$p"; then
8119           enable_shared=yes
8120         fi
8121       done
8122       IFS=$lt_save_ifs
8123       ;;
8124     esac
8125 else
8126   enable_shared=yes
8127 fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139 # Check whether --with-pic was given.
8140 if test "${with_pic+set}" = set; then :
8141   withval=$with_pic; lt_p=${PACKAGE-default}
8142     case $withval in
8143     yes|no) pic_mode=$withval ;;
8144     *)
8145       pic_mode=default
8146       # Look at the argument we got.  We use all the common list separators.
8147       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8148       for lt_pkg in $withval; do
8149         IFS=$lt_save_ifs
8150         if test "X$lt_pkg" = "X$lt_p"; then
8151           pic_mode=yes
8152         fi
8153       done
8154       IFS=$lt_save_ifs
8155       ;;
8156     esac
8157 else
8158   pic_mode=default
8159 fi
8160
8161
8162
8163
8164
8165
8166
8167
8168   # Check whether --enable-fast-install was given.
8169 if test "${enable_fast_install+set}" = set; then :
8170   enableval=$enable_fast_install; p=${PACKAGE-default}
8171     case $enableval in
8172     yes) enable_fast_install=yes ;;
8173     no) enable_fast_install=no ;;
8174     *)
8175       enable_fast_install=no
8176       # Look at the argument we got.  We use all the common list separators.
8177       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8178       for pkg in $enableval; do
8179         IFS=$lt_save_ifs
8180         if test "X$pkg" = "X$p"; then
8181           enable_fast_install=yes
8182         fi
8183       done
8184       IFS=$lt_save_ifs
8185       ;;
8186     esac
8187 else
8188   enable_fast_install=yes
8189 fi
8190
8191
8192
8193
8194
8195
8196
8197
8198   shared_archive_member_spec=
8199 case $host,$enable_shared in
8200 power*-*-aix[5-9]*,yes)
8201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8202 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8203
8204 # Check whether --with-aix-soname was given.
8205 if test "${with_aix_soname+set}" = set; then :
8206   withval=$with_aix_soname; case $withval in
8207     aix|svr4|both)
8208       ;;
8209     *)
8210       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8211       ;;
8212     esac
8213     lt_cv_with_aix_soname=$with_aix_soname
8214 else
8215   if ${lt_cv_with_aix_soname+:} false; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   lt_cv_with_aix_soname=aix
8219 fi
8220
8221     with_aix_soname=$lt_cv_with_aix_soname
8222 fi
8223
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8225 $as_echo "$with_aix_soname" >&6; }
8226   if test aix != "$with_aix_soname"; then
8227     # For the AIX way of multilib, we name the shared archive member
8228     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8229     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8230     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8231     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8232     if test 64 = "${OBJECT_MODE-32}"; then
8233       shared_archive_member_spec=shr_64
8234     else
8235       shared_archive_member_spec=shr
8236     fi
8237   fi
8238   ;;
8239 *)
8240   with_aix_soname=aix
8241   ;;
8242 esac
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 # This can be used to rebuild libtool when needed
8254 LIBTOOL_DEPS=$ltmain
8255
8256 # Always use our own libtool.
8257 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288 test -z "$LN_S" && LN_S="ln -s"
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303 if test -n "${ZSH_VERSION+set}"; then
8304    setopt NO_GLOB_SUBST
8305 fi
8306
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8308 $as_echo_n "checking for objdir... " >&6; }
8309 if ${lt_cv_objdir+:} false; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   rm -f .libs 2>/dev/null
8313 mkdir .libs 2>/dev/null
8314 if test -d .libs; then
8315   lt_cv_objdir=.libs
8316 else
8317   # MS-DOS does not allow filenames that begin with a dot.
8318   lt_cv_objdir=_libs
8319 fi
8320 rmdir .libs 2>/dev/null
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8323 $as_echo "$lt_cv_objdir" >&6; }
8324 objdir=$lt_cv_objdir
8325
8326
8327
8328
8329
8330 cat >>confdefs.h <<_ACEOF
8331 #define LT_OBJDIR "$lt_cv_objdir/"
8332 _ACEOF
8333
8334
8335
8336
8337 case $host_os in
8338 aix3*)
8339   # AIX sometimes has problems with the GCC collect2 program.  For some
8340   # reason, if we set the COLLECT_NAMES environment variable, the problems
8341   # vanish in a puff of smoke.
8342   if test set != "${COLLECT_NAMES+set}"; then
8343     COLLECT_NAMES=
8344     export COLLECT_NAMES
8345   fi
8346   ;;
8347 esac
8348
8349 # Global variables:
8350 ofile=libtool
8351 can_build_shared=yes
8352
8353 # All known linkers require a '.a' archive for static linking (except MSVC,
8354 # which needs '.lib').
8355 libext=a
8356
8357 with_gnu_ld=$lt_cv_prog_gnu_ld
8358
8359 old_CC=$CC
8360 old_CFLAGS=$CFLAGS
8361
8362 # Set sane defaults for various variables
8363 test -z "$CC" && CC=cc
8364 test -z "$LTCC" && LTCC=$CC
8365 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8366 test -z "$LD" && LD=ld
8367 test -z "$ac_objext" && ac_objext=o
8368
8369 func_cc_basename $compiler
8370 cc_basename=$func_cc_basename_result
8371
8372
8373 # Only perform the check for file, if the check method requires it
8374 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8375 case $deplibs_check_method in
8376 file_magic*)
8377   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8379 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8380 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8381   $as_echo_n "(cached) " >&6
8382 else
8383   case $MAGIC_CMD in
8384 [\\/*] |  ?:[\\/]*)
8385   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8386   ;;
8387 *)
8388   lt_save_MAGIC_CMD=$MAGIC_CMD
8389   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8390   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8391   for ac_dir in $ac_dummy; do
8392     IFS=$lt_save_ifs
8393     test -z "$ac_dir" && ac_dir=.
8394     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8395       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8396       if test -n "$file_magic_test_file"; then
8397         case $deplibs_check_method in
8398         "file_magic "*)
8399           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8400           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8401           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8402             $EGREP "$file_magic_regex" > /dev/null; then
8403             :
8404           else
8405             cat <<_LT_EOF 1>&2
8406
8407 *** Warning: the command libtool uses to detect shared libraries,
8408 *** $file_magic_cmd, produces output that libtool cannot recognize.
8409 *** The result is that libtool may fail to recognize shared libraries
8410 *** as such.  This will affect the creation of libtool libraries that
8411 *** depend on shared libraries, but programs linked with such libtool
8412 *** libraries will work regardless of this problem.  Nevertheless, you
8413 *** may want to report the problem to your system manager and/or to
8414 *** bug-libtool@gnu.org
8415
8416 _LT_EOF
8417           fi ;;
8418         esac
8419       fi
8420       break
8421     fi
8422   done
8423   IFS=$lt_save_ifs
8424   MAGIC_CMD=$lt_save_MAGIC_CMD
8425   ;;
8426 esac
8427 fi
8428
8429 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8430 if test -n "$MAGIC_CMD"; then
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8432 $as_echo "$MAGIC_CMD" >&6; }
8433 else
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438
8439
8440
8441
8442 if test -z "$lt_cv_path_MAGIC_CMD"; then
8443   if test -n "$ac_tool_prefix"; then
8444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8445 $as_echo_n "checking for file... " >&6; }
8446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8447   $as_echo_n "(cached) " >&6
8448 else
8449   case $MAGIC_CMD in
8450 [\\/*] |  ?:[\\/]*)
8451   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8452   ;;
8453 *)
8454   lt_save_MAGIC_CMD=$MAGIC_CMD
8455   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8456   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8457   for ac_dir in $ac_dummy; do
8458     IFS=$lt_save_ifs
8459     test -z "$ac_dir" && ac_dir=.
8460     if test -f "$ac_dir/file"; then
8461       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8462       if test -n "$file_magic_test_file"; then
8463         case $deplibs_check_method in
8464         "file_magic "*)
8465           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8466           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8467           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8468             $EGREP "$file_magic_regex" > /dev/null; then
8469             :
8470           else
8471             cat <<_LT_EOF 1>&2
8472
8473 *** Warning: the command libtool uses to detect shared libraries,
8474 *** $file_magic_cmd, produces output that libtool cannot recognize.
8475 *** The result is that libtool may fail to recognize shared libraries
8476 *** as such.  This will affect the creation of libtool libraries that
8477 *** depend on shared libraries, but programs linked with such libtool
8478 *** libraries will work regardless of this problem.  Nevertheless, you
8479 *** may want to report the problem to your system manager and/or to
8480 *** bug-libtool@gnu.org
8481
8482 _LT_EOF
8483           fi ;;
8484         esac
8485       fi
8486       break
8487     fi
8488   done
8489   IFS=$lt_save_ifs
8490   MAGIC_CMD=$lt_save_MAGIC_CMD
8491   ;;
8492 esac
8493 fi
8494
8495 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8496 if test -n "$MAGIC_CMD"; then
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8498 $as_echo "$MAGIC_CMD" >&6; }
8499 else
8500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8502 fi
8503
8504
8505   else
8506     MAGIC_CMD=:
8507   fi
8508 fi
8509
8510   fi
8511   ;;
8512 esac
8513
8514 # Use C for the default configuration in the libtool script
8515
8516 lt_save_CC=$CC
8517 ac_ext=c
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524 # Source file extension for C test sources.
8525 ac_ext=c
8526
8527 # Object file extension for compiled C test sources.
8528 objext=o
8529 objext=$objext
8530
8531 # Code to be used in simple compile tests
8532 lt_simple_compile_test_code="int some_variable = 0;"
8533
8534 # Code to be used in simple link tests
8535 lt_simple_link_test_code='int main(){return(0);}'
8536
8537
8538
8539
8540
8541
8542
8543 # If no C compiler was specified, use CC.
8544 LTCC=${LTCC-"$CC"}
8545
8546 # If no C compiler flags were specified, use CFLAGS.
8547 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8548
8549 # Allow CC to be a program name with arguments.
8550 compiler=$CC
8551
8552 # Save the default compiler, since it gets overwritten when the other
8553 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8554 compiler_DEFAULT=$CC
8555
8556 # save warnings/boilerplate of simple test code
8557 ac_outfile=conftest.$ac_objext
8558 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8559 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8560 _lt_compiler_boilerplate=`cat conftest.err`
8561 $RM conftest*
8562
8563 ac_outfile=conftest.$ac_objext
8564 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8565 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8566 _lt_linker_boilerplate=`cat conftest.err`
8567 $RM -r conftest*
8568
8569
8570 ## CAVEAT EMPTOR:
8571 ## There is no encapsulation within the following macros, do not change
8572 ## the running order or otherwise move them around unless you know exactly
8573 ## what you are doing...
8574 if test -n "$compiler"; then
8575
8576 lt_prog_compiler_no_builtin_flag=
8577
8578 if test yes = "$GCC"; then
8579   case $cc_basename in
8580   nvcc*)
8581     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8582   *)
8583     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8584   esac
8585
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8587 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8588 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   lt_cv_prog_compiler_rtti_exceptions=no
8592    ac_outfile=conftest.$ac_objext
8593    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8594    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8595    # Insert the option either (1) after the last *FLAGS variable, or
8596    # (2) before a word containing "conftest.", or (3) at the end.
8597    # Note that $ac_compile itself does not contain backslashes and begins
8598    # with a dollar sign (not a hyphen), so the echo should work correctly.
8599    # The option is referenced via a variable to avoid confusing sed.
8600    lt_compile=`echo "$ac_compile" | $SED \
8601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603    -e 's:$: $lt_compiler_flag:'`
8604    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8605    (eval "$lt_compile" 2>conftest.err)
8606    ac_status=$?
8607    cat conftest.err >&5
8608    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609    if (exit $ac_status) && test -s "$ac_outfile"; then
8610      # The compiler can only warn and ignore the option if not recognized
8611      # So say no if there are warnings other than the usual output.
8612      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8613      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8614      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8615        lt_cv_prog_compiler_rtti_exceptions=yes
8616      fi
8617    fi
8618    $RM conftest*
8619
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8622 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8623
8624 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8625     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8626 else
8627     :
8628 fi
8629
8630 fi
8631
8632
8633
8634
8635
8636
8637   lt_prog_compiler_wl=
8638 lt_prog_compiler_pic=
8639 lt_prog_compiler_static=
8640
8641
8642   if test yes = "$GCC"; then
8643     lt_prog_compiler_wl='-Wl,'
8644     lt_prog_compiler_static='-static'
8645
8646     case $host_os in
8647       aix*)
8648       # All AIX code is PIC.
8649       if test ia64 = "$host_cpu"; then
8650         # AIX 5 now supports IA64 processor
8651         lt_prog_compiler_static='-Bstatic'
8652       fi
8653       lt_prog_compiler_pic='-fPIC'
8654       ;;
8655
8656     amigaos*)
8657       case $host_cpu in
8658       powerpc)
8659             # see comment about AmigaOS4 .so support
8660             lt_prog_compiler_pic='-fPIC'
8661         ;;
8662       m68k)
8663             # FIXME: we need at least 68020 code to build shared libraries, but
8664             # adding the '-m68020' flag to GCC prevents building anything better,
8665             # like '-m68040'.
8666             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8667         ;;
8668       esac
8669       ;;
8670
8671     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8672       # PIC is the default for these OSes.
8673       ;;
8674
8675     mingw* | cygwin* | pw32* | os2* | cegcc*)
8676       # This hack is so that the source file can tell whether it is being
8677       # built for inclusion in a dll (and should export symbols for example).
8678       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8679       # (--disable-auto-import) libraries
8680       lt_prog_compiler_pic='-DDLL_EXPORT'
8681       case $host_os in
8682       os2*)
8683         lt_prog_compiler_static='$wl-static'
8684         ;;
8685       esac
8686       ;;
8687
8688     darwin* | rhapsody*)
8689       # PIC is the default on this platform
8690       # Common symbols not allowed in MH_DYLIB files
8691       lt_prog_compiler_pic='-fno-common'
8692       ;;
8693
8694     haiku*)
8695       # PIC is the default for Haiku.
8696       # The "-static" flag exists, but is broken.
8697       lt_prog_compiler_static=
8698       ;;
8699
8700     hpux*)
8701       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8702       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8703       # sets the default TLS model and affects inlining.
8704       case $host_cpu in
8705       hppa*64*)
8706         # +Z the default
8707         ;;
8708       *)
8709         lt_prog_compiler_pic='-fPIC'
8710         ;;
8711       esac
8712       ;;
8713
8714     interix[3-9]*)
8715       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8716       # Instead, we relocate shared libraries at runtime.
8717       ;;
8718
8719     msdosdjgpp*)
8720       # Just because we use GCC doesn't mean we suddenly get shared libraries
8721       # on systems that don't support them.
8722       lt_prog_compiler_can_build_shared=no
8723       enable_shared=no
8724       ;;
8725
8726     *nto* | *qnx*)
8727       # QNX uses GNU C++, but need to define -shared option too, otherwise
8728       # it will coredump.
8729       lt_prog_compiler_pic='-fPIC -shared'
8730       ;;
8731
8732     sysv4*MP*)
8733       if test -d /usr/nec; then
8734         lt_prog_compiler_pic=-Kconform_pic
8735       fi
8736       ;;
8737
8738     *)
8739       lt_prog_compiler_pic='-fPIC'
8740       ;;
8741     esac
8742
8743     case $cc_basename in
8744     nvcc*) # Cuda Compiler Driver 2.2
8745       lt_prog_compiler_wl='-Xlinker '
8746       if test -n "$lt_prog_compiler_pic"; then
8747         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8748       fi
8749       ;;
8750     esac
8751   else
8752     # PORTME Check for flag to pass linker flags through the system compiler.
8753     case $host_os in
8754     aix*)
8755       lt_prog_compiler_wl='-Wl,'
8756       if test ia64 = "$host_cpu"; then
8757         # AIX 5 now supports IA64 processor
8758         lt_prog_compiler_static='-Bstatic'
8759       else
8760         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8761       fi
8762       ;;
8763
8764     darwin* | rhapsody*)
8765       # PIC is the default on this platform
8766       # Common symbols not allowed in MH_DYLIB files
8767       lt_prog_compiler_pic='-fno-common'
8768       case $cc_basename in
8769       nagfor*)
8770         # NAG Fortran compiler
8771         lt_prog_compiler_wl='-Wl,-Wl,,'
8772         lt_prog_compiler_pic='-PIC'
8773         lt_prog_compiler_static='-Bstatic'
8774         ;;
8775       esac
8776       ;;
8777
8778     mingw* | cygwin* | pw32* | os2* | cegcc*)
8779       # This hack is so that the source file can tell whether it is being
8780       # built for inclusion in a dll (and should export symbols for example).
8781       lt_prog_compiler_pic='-DDLL_EXPORT'
8782       case $host_os in
8783       os2*)
8784         lt_prog_compiler_static='$wl-static'
8785         ;;
8786       esac
8787       ;;
8788
8789     hpux9* | hpux10* | hpux11*)
8790       lt_prog_compiler_wl='-Wl,'
8791       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8792       # not for PA HP-UX.
8793       case $host_cpu in
8794       hppa*64*|ia64*)
8795         # +Z the default
8796         ;;
8797       *)
8798         lt_prog_compiler_pic='+Z'
8799         ;;
8800       esac
8801       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8802       lt_prog_compiler_static='$wl-a ${wl}archive'
8803       ;;
8804
8805     irix5* | irix6* | nonstopux*)
8806       lt_prog_compiler_wl='-Wl,'
8807       # PIC (with -KPIC) is the default.
8808       lt_prog_compiler_static='-non_shared'
8809       ;;
8810
8811     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8812       case $cc_basename in
8813       # old Intel for x86_64, which still supported -KPIC.
8814       ecc*)
8815         lt_prog_compiler_wl='-Wl,'
8816         lt_prog_compiler_pic='-KPIC'
8817         lt_prog_compiler_static='-static'
8818         ;;
8819       # icc used to be incompatible with GCC.
8820       # ICC 10 doesn't accept -KPIC any more.
8821       icc* | ifort*)
8822         lt_prog_compiler_wl='-Wl,'
8823         lt_prog_compiler_pic='-fPIC'
8824         lt_prog_compiler_static='-static'
8825         ;;
8826       # Lahey Fortran 8.1.
8827       lf95*)
8828         lt_prog_compiler_wl='-Wl,'
8829         lt_prog_compiler_pic='--shared'
8830         lt_prog_compiler_static='--static'
8831         ;;
8832       nagfor*)
8833         # NAG Fortran compiler
8834         lt_prog_compiler_wl='-Wl,-Wl,,'
8835         lt_prog_compiler_pic='-PIC'
8836         lt_prog_compiler_static='-Bstatic'
8837         ;;
8838       tcc*)
8839         # Fabrice Bellard et al's Tiny C Compiler
8840         lt_prog_compiler_wl='-Wl,'
8841         lt_prog_compiler_pic='-fPIC'
8842         lt_prog_compiler_static='-static'
8843         ;;
8844       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8845         # Portland Group compilers (*not* the Pentium gcc compiler,
8846         # which looks to be a dead project)
8847         lt_prog_compiler_wl='-Wl,'
8848         lt_prog_compiler_pic='-fpic'
8849         lt_prog_compiler_static='-Bstatic'
8850         ;;
8851       ccc*)
8852         lt_prog_compiler_wl='-Wl,'
8853         # All Alpha code is PIC.
8854         lt_prog_compiler_static='-non_shared'
8855         ;;
8856       xl* | bgxl* | bgf* | mpixl*)
8857         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8858         lt_prog_compiler_wl='-Wl,'
8859         lt_prog_compiler_pic='-qpic'
8860         lt_prog_compiler_static='-qstaticlink'
8861         ;;
8862       *)
8863         case `$CC -V 2>&1 | sed 5q` in
8864         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8865           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8866           lt_prog_compiler_pic='-KPIC'
8867           lt_prog_compiler_static='-Bstatic'
8868           lt_prog_compiler_wl=''
8869           ;;
8870         *Sun\ F* | *Sun*Fortran*)
8871           lt_prog_compiler_pic='-KPIC'
8872           lt_prog_compiler_static='-Bstatic'
8873           lt_prog_compiler_wl='-Qoption ld '
8874           ;;
8875         *Sun\ C*)
8876           # Sun C 5.9
8877           lt_prog_compiler_pic='-KPIC'
8878           lt_prog_compiler_static='-Bstatic'
8879           lt_prog_compiler_wl='-Wl,'
8880           ;;
8881         *Intel*\ [CF]*Compiler*)
8882           lt_prog_compiler_wl='-Wl,'
8883           lt_prog_compiler_pic='-fPIC'
8884           lt_prog_compiler_static='-static'
8885           ;;
8886         *Portland\ Group*)
8887           lt_prog_compiler_wl='-Wl,'
8888           lt_prog_compiler_pic='-fpic'
8889           lt_prog_compiler_static='-Bstatic'
8890           ;;
8891         esac
8892         ;;
8893       esac
8894       ;;
8895
8896     newsos6)
8897       lt_prog_compiler_pic='-KPIC'
8898       lt_prog_compiler_static='-Bstatic'
8899       ;;
8900
8901     *nto* | *qnx*)
8902       # QNX uses GNU C++, but need to define -shared option too, otherwise
8903       # it will coredump.
8904       lt_prog_compiler_pic='-fPIC -shared'
8905       ;;
8906
8907     osf3* | osf4* | osf5*)
8908       lt_prog_compiler_wl='-Wl,'
8909       # All OSF/1 code is PIC.
8910       lt_prog_compiler_static='-non_shared'
8911       ;;
8912
8913     rdos*)
8914       lt_prog_compiler_static='-non_shared'
8915       ;;
8916
8917     solaris*)
8918       lt_prog_compiler_pic='-KPIC'
8919       lt_prog_compiler_static='-Bstatic'
8920       case $cc_basename in
8921       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8922         lt_prog_compiler_wl='-Qoption ld ';;
8923       *)
8924         lt_prog_compiler_wl='-Wl,';;
8925       esac
8926       ;;
8927
8928     sunos4*)
8929       lt_prog_compiler_wl='-Qoption ld '
8930       lt_prog_compiler_pic='-PIC'
8931       lt_prog_compiler_static='-Bstatic'
8932       ;;
8933
8934     sysv4 | sysv4.2uw2* | sysv4.3*)
8935       lt_prog_compiler_wl='-Wl,'
8936       lt_prog_compiler_pic='-KPIC'
8937       lt_prog_compiler_static='-Bstatic'
8938       ;;
8939
8940     sysv4*MP*)
8941       if test -d /usr/nec; then
8942         lt_prog_compiler_pic='-Kconform_pic'
8943         lt_prog_compiler_static='-Bstatic'
8944       fi
8945       ;;
8946
8947     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8948       lt_prog_compiler_wl='-Wl,'
8949       lt_prog_compiler_pic='-KPIC'
8950       lt_prog_compiler_static='-Bstatic'
8951       ;;
8952
8953     unicos*)
8954       lt_prog_compiler_wl='-Wl,'
8955       lt_prog_compiler_can_build_shared=no
8956       ;;
8957
8958     uts4*)
8959       lt_prog_compiler_pic='-pic'
8960       lt_prog_compiler_static='-Bstatic'
8961       ;;
8962
8963     *)
8964       lt_prog_compiler_can_build_shared=no
8965       ;;
8966     esac
8967   fi
8968
8969 case $host_os in
8970   # For platforms that do not support PIC, -DPIC is meaningless:
8971   *djgpp*)
8972     lt_prog_compiler_pic=
8973     ;;
8974   *)
8975     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8976     ;;
8977 esac
8978
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8980 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8981 if ${lt_cv_prog_compiler_pic+:} false; then :
8982   $as_echo_n "(cached) " >&6
8983 else
8984   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8985 fi
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8987 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8988 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8989
8990 #
8991 # Check to make sure the PIC flag actually works.
8992 #
8993 if test -n "$lt_prog_compiler_pic"; then
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8995 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8996 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   lt_cv_prog_compiler_pic_works=no
9000    ac_outfile=conftest.$ac_objext
9001    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9002    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9003    # Insert the option either (1) after the last *FLAGS variable, or
9004    # (2) before a word containing "conftest.", or (3) at the end.
9005    # Note that $ac_compile itself does not contain backslashes and begins
9006    # with a dollar sign (not a hyphen), so the echo should work correctly.
9007    # The option is referenced via a variable to avoid confusing sed.
9008    lt_compile=`echo "$ac_compile" | $SED \
9009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9011    -e 's:$: $lt_compiler_flag:'`
9012    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9013    (eval "$lt_compile" 2>conftest.err)
9014    ac_status=$?
9015    cat conftest.err >&5
9016    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017    if (exit $ac_status) && test -s "$ac_outfile"; then
9018      # The compiler can only warn and ignore the option if not recognized
9019      # So say no if there are warnings other than the usual output.
9020      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9021      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9022      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9023        lt_cv_prog_compiler_pic_works=yes
9024      fi
9025    fi
9026    $RM conftest*
9027
9028 fi
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9030 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9031
9032 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9033     case $lt_prog_compiler_pic in
9034      "" | " "*) ;;
9035      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9036      esac
9037 else
9038     lt_prog_compiler_pic=
9039      lt_prog_compiler_can_build_shared=no
9040 fi
9041
9042 fi
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054 #
9055 # Check to make sure the static flag actually works.
9056 #
9057 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9059 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9060 if ${lt_cv_prog_compiler_static_works+:} false; then :
9061   $as_echo_n "(cached) " >&6
9062 else
9063   lt_cv_prog_compiler_static_works=no
9064    save_LDFLAGS=$LDFLAGS
9065    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9066    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9068      # The linker can only warn and ignore the option if not recognized
9069      # So say no if there are warnings
9070      if test -s conftest.err; then
9071        # Append any errors to the config.log.
9072        cat conftest.err 1>&5
9073        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9074        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075        if diff conftest.exp conftest.er2 >/dev/null; then
9076          lt_cv_prog_compiler_static_works=yes
9077        fi
9078      else
9079        lt_cv_prog_compiler_static_works=yes
9080      fi
9081    fi
9082    $RM -r conftest*
9083    LDFLAGS=$save_LDFLAGS
9084
9085 fi
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9087 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9088
9089 if test yes = "$lt_cv_prog_compiler_static_works"; then
9090     :
9091 else
9092     lt_prog_compiler_static=
9093 fi
9094
9095
9096
9097
9098
9099
9100
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9102 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9103 if ${lt_cv_prog_compiler_c_o+:} false; then :
9104   $as_echo_n "(cached) " >&6
9105 else
9106   lt_cv_prog_compiler_c_o=no
9107    $RM -r conftest 2>/dev/null
9108    mkdir conftest
9109    cd conftest
9110    mkdir out
9111    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9112
9113    lt_compiler_flag="-o out/conftest2.$ac_objext"
9114    # Insert the option either (1) after the last *FLAGS variable, or
9115    # (2) before a word containing "conftest.", or (3) at the end.
9116    # Note that $ac_compile itself does not contain backslashes and begins
9117    # with a dollar sign (not a hyphen), so the echo should work correctly.
9118    lt_compile=`echo "$ac_compile" | $SED \
9119    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9121    -e 's:$: $lt_compiler_flag:'`
9122    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9123    (eval "$lt_compile" 2>out/conftest.err)
9124    ac_status=$?
9125    cat out/conftest.err >&5
9126    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9128    then
9129      # The compiler can only warn and ignore the option if not recognized
9130      # So say no if there are warnings
9131      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9132      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9133      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9134        lt_cv_prog_compiler_c_o=yes
9135      fi
9136    fi
9137    chmod u+w . 2>&5
9138    $RM conftest*
9139    # SGI C++ compiler will create directory out/ii_files/ for
9140    # template instantiation
9141    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9142    $RM out/* && rmdir out
9143    cd ..
9144    $RM -r conftest
9145    $RM conftest*
9146
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9149 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9150
9151
9152
9153
9154
9155
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9157 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9158 if ${lt_cv_prog_compiler_c_o+:} false; then :
9159   $as_echo_n "(cached) " >&6
9160 else
9161   lt_cv_prog_compiler_c_o=no
9162    $RM -r conftest 2>/dev/null
9163    mkdir conftest
9164    cd conftest
9165    mkdir out
9166    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9167
9168    lt_compiler_flag="-o out/conftest2.$ac_objext"
9169    # Insert the option either (1) after the last *FLAGS variable, or
9170    # (2) before a word containing "conftest.", or (3) at the end.
9171    # Note that $ac_compile itself does not contain backslashes and begins
9172    # with a dollar sign (not a hyphen), so the echo should work correctly.
9173    lt_compile=`echo "$ac_compile" | $SED \
9174    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9175    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9176    -e 's:$: $lt_compiler_flag:'`
9177    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9178    (eval "$lt_compile" 2>out/conftest.err)
9179    ac_status=$?
9180    cat out/conftest.err >&5
9181    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9183    then
9184      # The compiler can only warn and ignore the option if not recognized
9185      # So say no if there are warnings
9186      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9187      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9188      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9189        lt_cv_prog_compiler_c_o=yes
9190      fi
9191    fi
9192    chmod u+w . 2>&5
9193    $RM conftest*
9194    # SGI C++ compiler will create directory out/ii_files/ for
9195    # template instantiation
9196    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9197    $RM out/* && rmdir out
9198    cd ..
9199    $RM -r conftest
9200    $RM conftest*
9201
9202 fi
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9204 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9205
9206
9207
9208
9209 hard_links=nottested
9210 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9211   # do not overwrite the value of need_locks provided by the user
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9213 $as_echo_n "checking if we can lock with hard links... " >&6; }
9214   hard_links=yes
9215   $RM conftest*
9216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9217   touch conftest.a
9218   ln conftest.a conftest.b 2>&5 || hard_links=no
9219   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9221 $as_echo "$hard_links" >&6; }
9222   if test no = "$hard_links"; then
9223     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9224 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9225     need_locks=warn
9226   fi
9227 else
9228   need_locks=no
9229 fi
9230
9231
9232
9233
9234
9235
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9237 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9238
9239   runpath_var=
9240   allow_undefined_flag=
9241   always_export_symbols=no
9242   archive_cmds=
9243   archive_expsym_cmds=
9244   compiler_needs_object=no
9245   enable_shared_with_static_runtimes=no
9246   export_dynamic_flag_spec=
9247   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9248   hardcode_automatic=no
9249   hardcode_direct=no
9250   hardcode_direct_absolute=no
9251   hardcode_libdir_flag_spec=
9252   hardcode_libdir_separator=
9253   hardcode_minus_L=no
9254   hardcode_shlibpath_var=unsupported
9255   inherit_rpath=no
9256   link_all_deplibs=unknown
9257   module_cmds=
9258   module_expsym_cmds=
9259   old_archive_from_new_cmds=
9260   old_archive_from_expsyms_cmds=
9261   thread_safe_flag_spec=
9262   whole_archive_flag_spec=
9263   # include_expsyms should be a list of space-separated symbols to be *always*
9264   # included in the symbol list
9265   include_expsyms=
9266   # exclude_expsyms can be an extended regexp of symbols to exclude
9267   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9268   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9269   # as well as any symbol that contains 'd'.
9270   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9271   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9272   # platforms (ab)use it in PIC code, but their linkers get confused if
9273   # the symbol is explicitly referenced.  Since portable code cannot
9274   # rely on this symbol name, it's probably fine to never include it in
9275   # preloaded symbol tables.
9276   # Exclude shared library initialization/finalization symbols.
9277   extract_expsyms_cmds=
9278
9279   case $host_os in
9280   cygwin* | mingw* | pw32* | cegcc*)
9281     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9282     # When not using gcc, we currently assume that we are using
9283     # Microsoft Visual C++.
9284     if test yes != "$GCC"; then
9285       with_gnu_ld=no
9286     fi
9287     ;;
9288   interix*)
9289     # we just hope/assume this is gcc and not c89 (= MSVC++)
9290     with_gnu_ld=yes
9291     ;;
9292   openbsd* | bitrig*)
9293     with_gnu_ld=no
9294     ;;
9295   esac
9296
9297   ld_shlibs=yes
9298
9299   # On some targets, GNU ld is compatible enough with the native linker
9300   # that we're better off using the native interface for both.
9301   lt_use_gnu_ld_interface=no
9302   if test yes = "$with_gnu_ld"; then
9303     case $host_os in
9304       aix*)
9305         # The AIX port of GNU ld has always aspired to compatibility
9306         # with the native linker.  However, as the warning in the GNU ld
9307         # block says, versions before 2.19.5* couldn't really create working
9308         # shared libraries, regardless of the interface used.
9309         case `$LD -v 2>&1` in
9310           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9311           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9312           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9313           *)
9314             lt_use_gnu_ld_interface=yes
9315             ;;
9316         esac
9317         ;;
9318       *)
9319         lt_use_gnu_ld_interface=yes
9320         ;;
9321     esac
9322   fi
9323
9324   if test yes = "$lt_use_gnu_ld_interface"; then
9325     # If archive_cmds runs LD, not CC, wlarc should be empty
9326     wlarc='$wl'
9327
9328     # Set some defaults for GNU ld with shared library support. These
9329     # are reset later if shared libraries are not supported. Putting them
9330     # here allows them to be overridden if necessary.
9331     runpath_var=LD_RUN_PATH
9332     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9333     export_dynamic_flag_spec='$wl--export-dynamic'
9334     # ancient GNU ld didn't support --whole-archive et. al.
9335     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9336       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9337     else
9338       whole_archive_flag_spec=
9339     fi
9340     supports_anon_versioning=no
9341     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9342       *GNU\ gold*) supports_anon_versioning=yes ;;
9343       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9344       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9345       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9346       *\ 2.11.*) ;; # other 2.11 versions
9347       *) supports_anon_versioning=yes ;;
9348     esac
9349
9350     # See if GNU ld supports shared libraries.
9351     case $host_os in
9352     aix[3-9]*)
9353       # On AIX/PPC, the GNU linker is very broken
9354       if test ia64 != "$host_cpu"; then
9355         ld_shlibs=no
9356         cat <<_LT_EOF 1>&2
9357
9358 *** Warning: the GNU linker, at least up to release 2.19, is reported
9359 *** to be unable to reliably create shared libraries on AIX.
9360 *** Therefore, libtool is disabling shared libraries support.  If you
9361 *** really care for shared libraries, you may want to install binutils
9362 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9363 *** You will then need to restart the configuration process.
9364
9365 _LT_EOF
9366       fi
9367       ;;
9368
9369     amigaos*)
9370       case $host_cpu in
9371       powerpc)
9372             # see comment about AmigaOS4 .so support
9373             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9374             archive_expsym_cmds=''
9375         ;;
9376       m68k)
9377             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)'
9378             hardcode_libdir_flag_spec='-L$libdir'
9379             hardcode_minus_L=yes
9380         ;;
9381       esac
9382       ;;
9383
9384     beos*)
9385       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9386         allow_undefined_flag=unsupported
9387         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9388         # support --undefined.  This deserves some investigation.  FIXME
9389         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9390       else
9391         ld_shlibs=no
9392       fi
9393       ;;
9394
9395     cygwin* | mingw* | pw32* | cegcc*)
9396       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9397       # as there is no search path for DLLs.
9398       hardcode_libdir_flag_spec='-L$libdir'
9399       export_dynamic_flag_spec='$wl--export-all-symbols'
9400       allow_undefined_flag=unsupported
9401       always_export_symbols=no
9402       enable_shared_with_static_runtimes=yes
9403       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'
9404       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9405
9406       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9407         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9408         # If the export-symbols file already is a .def file, use it as
9409         # is; otherwise, prepend EXPORTS...
9410         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9411           cp $export_symbols $output_objdir/$soname.def;
9412         else
9413           echo EXPORTS > $output_objdir/$soname.def;
9414           cat $export_symbols >> $output_objdir/$soname.def;
9415         fi~
9416         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9417       else
9418         ld_shlibs=no
9419       fi
9420       ;;
9421
9422     haiku*)
9423       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9424       link_all_deplibs=yes
9425       ;;
9426
9427     os2*)
9428       hardcode_libdir_flag_spec='-L$libdir'
9429       hardcode_minus_L=yes
9430       allow_undefined_flag=unsupported
9431       shrext_cmds=.dll
9432       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9433         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9434         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9435         $ECHO EXPORTS >> $output_objdir/$libname.def~
9436         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9437         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9438         emximp -o $lib $output_objdir/$libname.def'
9439       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9440         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9441         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9442         $ECHO EXPORTS >> $output_objdir/$libname.def~
9443         prefix_cmds="$SED"~
9444         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9445           prefix_cmds="$prefix_cmds -e 1d";
9446         fi~
9447         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9448         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9449         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9450         emximp -o $lib $output_objdir/$libname.def'
9451       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9452       enable_shared_with_static_runtimes=yes
9453       ;;
9454
9455     interix[3-9]*)
9456       hardcode_direct=no
9457       hardcode_shlibpath_var=no
9458       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9459       export_dynamic_flag_spec='$wl-E'
9460       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9461       # Instead, shared libraries are loaded at an image base (0x10000000 by
9462       # default) and relocated if they conflict, which is a slow very memory
9463       # consuming and fragmenting process.  To avoid this, we pick a random,
9464       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9465       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9466       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9467       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'
9468       ;;
9469
9470     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9471       tmp_diet=no
9472       if test linux-dietlibc = "$host_os"; then
9473         case $cc_basename in
9474           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9475         esac
9476       fi
9477       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9478          && test no = "$tmp_diet"
9479       then
9480         tmp_addflag=' $pic_flag'
9481         tmp_sharedflag='-shared'
9482         case $cc_basename,$host_cpu in
9483         pgcc*)                          # Portland Group C compiler
9484           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'
9485           tmp_addflag=' $pic_flag'
9486           ;;
9487         pgf77* | pgf90* | pgf95* | pgfortran*)
9488                                         # Portland Group f77 and f90 compilers
9489           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'
9490           tmp_addflag=' $pic_flag -Mnomain' ;;
9491         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9492           tmp_addflag=' -i_dynamic' ;;
9493         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9494           tmp_addflag=' -i_dynamic -nofor_main' ;;
9495         ifc* | ifort*)                  # Intel Fortran compiler
9496           tmp_addflag=' -nofor_main' ;;
9497         lf95*)                          # Lahey Fortran 8.1
9498           whole_archive_flag_spec=
9499           tmp_sharedflag='--shared' ;;
9500         nagfor*)                        # NAGFOR 5.3
9501           tmp_sharedflag='-Wl,-shared' ;;
9502         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9503           tmp_sharedflag='-qmkshrobj'
9504           tmp_addflag= ;;
9505         nvcc*)  # Cuda Compiler Driver 2.2
9506           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'
9507           compiler_needs_object=yes
9508           ;;
9509         esac
9510         case `$CC -V 2>&1 | sed 5q` in
9511         *Sun\ C*)                       # Sun C 5.9
9512           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'
9513           compiler_needs_object=yes
9514           tmp_sharedflag='-G' ;;
9515         *Sun\ F*)                       # Sun Fortran 8.3
9516           tmp_sharedflag='-G' ;;
9517         esac
9518         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9519
9520         if test yes = "$supports_anon_versioning"; then
9521           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9522             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9523             echo "local: *; };" >> $output_objdir/$libname.ver~
9524             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9525         fi
9526
9527         case $cc_basename in
9528         tcc*)
9529           export_dynamic_flag_spec='-rdynamic'
9530           ;;
9531         xlf* | bgf* | bgxlf* | mpixlf*)
9532           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9533           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9534           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9535           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9536           if test yes = "$supports_anon_versioning"; then
9537             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9538               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9539               echo "local: *; };" >> $output_objdir/$libname.ver~
9540               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9541           fi
9542           ;;
9543         esac
9544       else
9545         ld_shlibs=no
9546       fi
9547       ;;
9548
9549     netbsd*)
9550       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9551         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9552         wlarc=
9553       else
9554         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9555         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9556       fi
9557       ;;
9558
9559     solaris*)
9560       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9561         ld_shlibs=no
9562         cat <<_LT_EOF 1>&2
9563
9564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9565 *** create shared libraries on Solaris systems.  Therefore, libtool
9566 *** is disabling shared libraries support.  We urge you to upgrade GNU
9567 *** binutils to release 2.9.1 or newer.  Another option is to modify
9568 *** your PATH or compiler configuration so that the native linker is
9569 *** used, and then restart.
9570
9571 _LT_EOF
9572       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9573         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9574         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9575       else
9576         ld_shlibs=no
9577       fi
9578       ;;
9579
9580     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9581       case `$LD -v 2>&1` in
9582         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9583         ld_shlibs=no
9584         cat <<_LT_EOF 1>&2
9585
9586 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9587 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9588 *** is disabling shared libraries support.  We urge you to upgrade GNU
9589 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9590 *** your PATH or compiler configuration so that the native linker is
9591 *** used, and then restart.
9592
9593 _LT_EOF
9594         ;;
9595         *)
9596           # For security reasons, it is highly recommended that you always
9597           # use absolute paths for naming shared libraries, and exclude the
9598           # DT_RUNPATH tag from executables and libraries.  But doing so
9599           # requires that you compile everything twice, which is a pain.
9600           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9601             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9602             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9603             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9604           else
9605             ld_shlibs=no
9606           fi
9607         ;;
9608       esac
9609       ;;
9610
9611     sunos4*)
9612       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9613       wlarc=
9614       hardcode_direct=yes
9615       hardcode_shlibpath_var=no
9616       ;;
9617
9618     *)
9619       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9620         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9621         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9622       else
9623         ld_shlibs=no
9624       fi
9625       ;;
9626     esac
9627
9628     if test no = "$ld_shlibs"; then
9629       runpath_var=
9630       hardcode_libdir_flag_spec=
9631       export_dynamic_flag_spec=
9632       whole_archive_flag_spec=
9633     fi
9634   else
9635     # PORTME fill in a description of your system's linker (not GNU ld)
9636     case $host_os in
9637     aix3*)
9638       allow_undefined_flag=unsupported
9639       always_export_symbols=yes
9640       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'
9641       # Note: this linker hardcodes the directories in LIBPATH if there
9642       # are no directories specified by -L.
9643       hardcode_minus_L=yes
9644       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9645         # Neither direct hardcoding nor static linking is supported with a
9646         # broken collect2.
9647         hardcode_direct=unsupported
9648       fi
9649       ;;
9650
9651     aix[4-9]*)
9652       if test ia64 = "$host_cpu"; then
9653         # On IA64, the linker does run time linking by default, so we don't
9654         # have to do anything special.
9655         aix_use_runtimelinking=no
9656         exp_sym_flag='-Bexport'
9657         no_entry_flag=
9658       else
9659         # If we're using GNU nm, then we don't want the "-C" option.
9660         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9661         # Without the "-l" option, or with the "-B" option, AIX nm treats
9662         # weak defined symbols like other global defined symbols, whereas
9663         # GNU nm marks them as "W".
9664         # While the 'weak' keyword is ignored in the Export File, we need
9665         # it in the Import File for the 'aix-soname' feature, so we have
9666         # to replace the "-B" option with "-P" for AIX nm.
9667         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9668           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'
9669         else
9670           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'
9671         fi
9672         aix_use_runtimelinking=no
9673
9674         # Test if we are trying to use run time linking or normal
9675         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9676         # have runtime linking enabled, and use it for executables.
9677         # For shared libraries, we enable/disable runtime linking
9678         # depending on the kind of the shared library created -
9679         # when "with_aix_soname,aix_use_runtimelinking" is:
9680         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9681         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9682         #            lib.a           static archive
9683         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9684         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9685         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9686         #            lib.a(lib.so.V) shared, rtl:no
9687         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9688         #            lib.a           static archive
9689         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9690           for ld_flag in $LDFLAGS; do
9691           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9692             aix_use_runtimelinking=yes
9693             break
9694           fi
9695           done
9696           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9697             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9698             # so we don't have lib.a shared libs to link our executables.
9699             # We have to force runtime linking in this case.
9700             aix_use_runtimelinking=yes
9701             LDFLAGS="$LDFLAGS -Wl,-brtl"
9702           fi
9703           ;;
9704         esac
9705
9706         exp_sym_flag='-bexport'
9707         no_entry_flag='-bnoentry'
9708       fi
9709
9710       # When large executables or shared objects are built, AIX ld can
9711       # have problems creating the table of contents.  If linking a library
9712       # or program results in "error TOC overflow" add -mminimal-toc to
9713       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9714       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9715
9716       archive_cmds=''
9717       hardcode_direct=yes
9718       hardcode_direct_absolute=yes
9719       hardcode_libdir_separator=':'
9720       link_all_deplibs=yes
9721       file_list_spec='$wl-f,'
9722       case $with_aix_soname,$aix_use_runtimelinking in
9723       aix,*) ;; # traditional, no import file
9724       svr4,* | *,yes) # use import file
9725         # The Import File defines what to hardcode.
9726         hardcode_direct=no
9727         hardcode_direct_absolute=no
9728         ;;
9729       esac
9730
9731       if test yes = "$GCC"; then
9732         case $host_os in aix4.[012]|aix4.[012].*)
9733         # We only want to do this on AIX 4.2 and lower, the check
9734         # below for broken collect2 doesn't work under 4.3+
9735           collect2name=`$CC -print-prog-name=collect2`
9736           if test -f "$collect2name" &&
9737            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9738           then
9739           # We have reworked collect2
9740           :
9741           else
9742           # We have old collect2
9743           hardcode_direct=unsupported
9744           # It fails to find uninstalled libraries when the uninstalled
9745           # path is not listed in the libpath.  Setting hardcode_minus_L
9746           # to unsupported forces relinking
9747           hardcode_minus_L=yes
9748           hardcode_libdir_flag_spec='-L$libdir'
9749           hardcode_libdir_separator=
9750           fi
9751           ;;
9752         esac
9753         shared_flag='-shared'
9754         if test yes = "$aix_use_runtimelinking"; then
9755           shared_flag="$shared_flag "'$wl-G'
9756         fi
9757         # Need to ensure runtime linking is disabled for the traditional
9758         # shared library, or the linker may eventually find shared libraries
9759         # /with/ Import File - we do not want to mix them.
9760         shared_flag_aix='-shared'
9761         shared_flag_svr4='-shared $wl-G'
9762       else
9763         # not using gcc
9764         if test ia64 = "$host_cpu"; then
9765         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9766         # chokes on -Wl,-G. The following line is correct:
9767           shared_flag='-G'
9768         else
9769           if test yes = "$aix_use_runtimelinking"; then
9770             shared_flag='$wl-G'
9771           else
9772             shared_flag='$wl-bM:SRE'
9773           fi
9774           shared_flag_aix='$wl-bM:SRE'
9775           shared_flag_svr4='$wl-G'
9776         fi
9777       fi
9778
9779       export_dynamic_flag_spec='$wl-bexpall'
9780       # It seems that -bexpall does not export symbols beginning with
9781       # underscore (_), so it is better to generate a list of symbols to export.
9782       always_export_symbols=yes
9783       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9784         # Warning - without using the other runtime loading flags (-brtl),
9785         # -berok will link without error, but may produce a broken library.
9786         allow_undefined_flag='-berok'
9787         # Determine the default libpath from the value encoded in an
9788         # empty executable.
9789         if test set = "${lt_cv_aix_libpath+set}"; then
9790   aix_libpath=$lt_cv_aix_libpath
9791 else
9792   if ${lt_cv_aix_libpath_+:} false; then :
9793   $as_echo_n "(cached) " >&6
9794 else
9795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h.  */
9797
9798 int
9799 main ()
9800 {
9801
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 if ac_fn_c_try_link "$LINENO"; then :
9807
9808   lt_aix_libpath_sed='
9809       /Import File Strings/,/^$/ {
9810           /^0/ {
9811               s/^0  *\([^ ]*\) *$/\1/
9812               p
9813           }
9814       }'
9815   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9816   # Check for a 64-bit object if we didn't find anything.
9817   if test -z "$lt_cv_aix_libpath_"; then
9818     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9819   fi
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext \
9822     conftest$ac_exeext conftest.$ac_ext
9823   if test -z "$lt_cv_aix_libpath_"; then
9824     lt_cv_aix_libpath_=/usr/lib:/lib
9825   fi
9826
9827 fi
9828
9829   aix_libpath=$lt_cv_aix_libpath_
9830 fi
9831
9832         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9833         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
9834       else
9835         if test ia64 = "$host_cpu"; then
9836           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9837           allow_undefined_flag="-z nodefs"
9838           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"
9839         else
9840          # Determine the default libpath from the value encoded in an
9841          # empty executable.
9842          if test set = "${lt_cv_aix_libpath+set}"; then
9843   aix_libpath=$lt_cv_aix_libpath
9844 else
9845   if ${lt_cv_aix_libpath_+:} false; then :
9846   $as_echo_n "(cached) " >&6
9847 else
9848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h.  */
9850
9851 int
9852 main ()
9853 {
9854
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 if ac_fn_c_try_link "$LINENO"; then :
9860
9861   lt_aix_libpath_sed='
9862       /Import File Strings/,/^$/ {
9863           /^0/ {
9864               s/^0  *\([^ ]*\) *$/\1/
9865               p
9866           }
9867       }'
9868   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9869   # Check for a 64-bit object if we didn't find anything.
9870   if test -z "$lt_cv_aix_libpath_"; then
9871     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9872   fi
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext \
9875     conftest$ac_exeext conftest.$ac_ext
9876   if test -z "$lt_cv_aix_libpath_"; then
9877     lt_cv_aix_libpath_=/usr/lib:/lib
9878   fi
9879
9880 fi
9881
9882   aix_libpath=$lt_cv_aix_libpath_
9883 fi
9884
9885          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9886           # Warning - without using the other run time loading flags,
9887           # -berok will link without error, but may produce a broken library.
9888           no_undefined_flag=' $wl-bernotok'
9889           allow_undefined_flag=' $wl-berok'
9890           if test yes = "$with_gnu_ld"; then
9891             # We only use this code for GNU lds that support --whole-archive.
9892             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9893           else
9894             # Exported symbols can be pulled into shared objects from archives
9895             whole_archive_flag_spec='$convenience'
9896           fi
9897           archive_cmds_need_lc=yes
9898           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9899           # -brtl affects multiple linker settings, -berok does not and is overridden later
9900           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9901           if test svr4 != "$with_aix_soname"; then
9902             # This is similar to how AIX traditionally builds its shared libraries.
9903             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'
9904           fi
9905           if test aix != "$with_aix_soname"; then
9906             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'
9907           else
9908             # used by -dlpreopen to get the symbols
9909             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9910           fi
9911           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9912         fi
9913       fi
9914       ;;
9915
9916     amigaos*)
9917       case $host_cpu in
9918       powerpc)
9919             # see comment about AmigaOS4 .so support
9920             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9921             archive_expsym_cmds=''
9922         ;;
9923       m68k)
9924             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)'
9925             hardcode_libdir_flag_spec='-L$libdir'
9926             hardcode_minus_L=yes
9927         ;;
9928       esac
9929       ;;
9930
9931     bsdi[45]*)
9932       export_dynamic_flag_spec=-rdynamic
9933       ;;
9934
9935     cygwin* | mingw* | pw32* | cegcc*)
9936       # When not using gcc, we currently assume that we are using
9937       # Microsoft Visual C++.
9938       # hardcode_libdir_flag_spec is actually meaningless, as there is
9939       # no search path for DLLs.
9940       case $cc_basename in
9941       cl*)
9942         # Native MSVC
9943         hardcode_libdir_flag_spec=' '
9944         allow_undefined_flag=unsupported
9945         always_export_symbols=yes
9946         file_list_spec='@'
9947         # Tell ltmain to make .lib files, not .a files.
9948         libext=lib
9949         # Tell ltmain to make .dll files, not .so files.
9950         shrext_cmds=.dll
9951         # FIXME: Setting linknames here is a bad hack.
9952         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9953         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9954             cp "$export_symbols" "$output_objdir/$soname.def";
9955             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9956           else
9957             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9958           fi~
9959           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9960           linknames='
9961         # The linker will not automatically build a static lib if we build a DLL.
9962         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9963         enable_shared_with_static_runtimes=yes
9964         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9965         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9966         # Don't use ranlib
9967         old_postinstall_cmds='chmod 644 $oldlib'
9968         postlink_cmds='lt_outputfile="@OUTPUT@"~
9969           lt_tool_outputfile="@TOOL_OUTPUT@"~
9970           case $lt_outputfile in
9971             *.exe|*.EXE) ;;
9972             *)
9973               lt_outputfile=$lt_outputfile.exe
9974               lt_tool_outputfile=$lt_tool_outputfile.exe
9975               ;;
9976           esac~
9977           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9978             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9979             $RM "$lt_outputfile.manifest";
9980           fi'
9981         ;;
9982       *)
9983         # Assume MSVC wrapper
9984         hardcode_libdir_flag_spec=' '
9985         allow_undefined_flag=unsupported
9986         # Tell ltmain to make .lib files, not .a files.
9987         libext=lib
9988         # Tell ltmain to make .dll files, not .so files.
9989         shrext_cmds=.dll
9990         # FIXME: Setting linknames here is a bad hack.
9991         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9992         # The linker will automatically build a .lib file if we build a DLL.
9993         old_archive_from_new_cmds='true'
9994         # FIXME: Should let the user specify the lib program.
9995         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9996         enable_shared_with_static_runtimes=yes
9997         ;;
9998       esac
9999       ;;
10000
10001     darwin* | rhapsody*)
10002
10003
10004   archive_cmds_need_lc=no
10005   hardcode_direct=no
10006   hardcode_automatic=yes
10007   hardcode_shlibpath_var=unsupported
10008   if test yes = "$lt_cv_ld_force_load"; then
10009     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\"`'
10010
10011   else
10012     whole_archive_flag_spec=''
10013   fi
10014   link_all_deplibs=yes
10015   allow_undefined_flag=$_lt_dar_allow_undefined
10016   case $cc_basename in
10017      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10018      *) _lt_dar_can_shared=$GCC ;;
10019   esac
10020   if test yes = "$_lt_dar_can_shared"; then
10021     output_verbose_link_cmd=func_echo_all
10022     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10023     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10024     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"
10025     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"
10026
10027   else
10028   ld_shlibs=no
10029   fi
10030
10031       ;;
10032
10033     dgux*)
10034       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035       hardcode_libdir_flag_spec='-L$libdir'
10036       hardcode_shlibpath_var=no
10037       ;;
10038
10039     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10040     # support.  Future versions do this automatically, but an explicit c++rt0.o
10041     # does not break anything, and helps significantly (at the cost of a little
10042     # extra space).
10043     freebsd2.2*)
10044       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10045       hardcode_libdir_flag_spec='-R$libdir'
10046       hardcode_direct=yes
10047       hardcode_shlibpath_var=no
10048       ;;
10049
10050     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10051     freebsd2.*)
10052       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10053       hardcode_direct=yes
10054       hardcode_minus_L=yes
10055       hardcode_shlibpath_var=no
10056       ;;
10057
10058     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10059     freebsd* | dragonfly*)
10060       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10061       hardcode_libdir_flag_spec='-R$libdir'
10062       hardcode_direct=yes
10063       hardcode_shlibpath_var=no
10064       ;;
10065
10066     hpux9*)
10067       if test yes = "$GCC"; then
10068         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'
10069       else
10070         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'
10071       fi
10072       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10073       hardcode_libdir_separator=:
10074       hardcode_direct=yes
10075
10076       # hardcode_minus_L: Not really in the search PATH,
10077       # but as the default location of the library.
10078       hardcode_minus_L=yes
10079       export_dynamic_flag_spec='$wl-E'
10080       ;;
10081
10082     hpux10*)
10083       if test yes,no = "$GCC,$with_gnu_ld"; then
10084         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10085       else
10086         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10087       fi
10088       if test no = "$with_gnu_ld"; then
10089         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10090         hardcode_libdir_separator=:
10091         hardcode_direct=yes
10092         hardcode_direct_absolute=yes
10093         export_dynamic_flag_spec='$wl-E'
10094         # hardcode_minus_L: Not really in the search PATH,
10095         # but as the default location of the library.
10096         hardcode_minus_L=yes
10097       fi
10098       ;;
10099
10100     hpux11*)
10101       if test yes,no = "$GCC,$with_gnu_ld"; then
10102         case $host_cpu in
10103         hppa*64*)
10104           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10105           ;;
10106         ia64*)
10107           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10108           ;;
10109         *)
10110           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10111           ;;
10112         esac
10113       else
10114         case $host_cpu in
10115         hppa*64*)
10116           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10117           ;;
10118         ia64*)
10119           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10120           ;;
10121         *)
10122
10123           # Older versions of the 11.00 compiler do not understand -b yet
10124           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10125           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10126 $as_echo_n "checking if $CC understands -b... " >&6; }
10127 if ${lt_cv_prog_compiler__b+:} false; then :
10128   $as_echo_n "(cached) " >&6
10129 else
10130   lt_cv_prog_compiler__b=no
10131    save_LDFLAGS=$LDFLAGS
10132    LDFLAGS="$LDFLAGS -b"
10133    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10134    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10135      # The linker can only warn and ignore the option if not recognized
10136      # So say no if there are warnings
10137      if test -s conftest.err; then
10138        # Append any errors to the config.log.
10139        cat conftest.err 1>&5
10140        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10141        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10142        if diff conftest.exp conftest.er2 >/dev/null; then
10143          lt_cv_prog_compiler__b=yes
10144        fi
10145      else
10146        lt_cv_prog_compiler__b=yes
10147      fi
10148    fi
10149    $RM -r conftest*
10150    LDFLAGS=$save_LDFLAGS
10151
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10154 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10155
10156 if test yes = "$lt_cv_prog_compiler__b"; then
10157     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10158 else
10159     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10160 fi
10161
10162           ;;
10163         esac
10164       fi
10165       if test no = "$with_gnu_ld"; then
10166         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10167         hardcode_libdir_separator=:
10168
10169         case $host_cpu in
10170         hppa*64*|ia64*)
10171           hardcode_direct=no
10172           hardcode_shlibpath_var=no
10173           ;;
10174         *)
10175           hardcode_direct=yes
10176           hardcode_direct_absolute=yes
10177           export_dynamic_flag_spec='$wl-E'
10178
10179           # hardcode_minus_L: Not really in the search PATH,
10180           # but as the default location of the library.
10181           hardcode_minus_L=yes
10182           ;;
10183         esac
10184       fi
10185       ;;
10186
10187     irix5* | irix6* | nonstopux*)
10188       if test yes = "$GCC"; then
10189         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'
10190         # Try to use the -exported_symbol ld option, if it does not
10191         # work, assume that -exports_file does not work either and
10192         # implicitly export all symbols.
10193         # This should be the same for all languages, so no per-tag cache variable.
10194         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10195 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10196 if ${lt_cv_irix_exported_symbol+:} false; then :
10197   $as_echo_n "(cached) " >&6
10198 else
10199   save_LDFLAGS=$LDFLAGS
10200            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10201            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h.  */
10203 int foo (void) { return 0; }
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206   lt_cv_irix_exported_symbol=yes
10207 else
10208   lt_cv_irix_exported_symbol=no
10209 fi
10210 rm -f core conftest.err conftest.$ac_objext \
10211     conftest$ac_exeext conftest.$ac_ext
10212            LDFLAGS=$save_LDFLAGS
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10215 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10216         if test yes = "$lt_cv_irix_exported_symbol"; then
10217           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'
10218         fi
10219       else
10220         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'
10221         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'
10222       fi
10223       archive_cmds_need_lc='no'
10224       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10225       hardcode_libdir_separator=:
10226       inherit_rpath=yes
10227       link_all_deplibs=yes
10228       ;;
10229
10230     linux*)
10231       case $cc_basename in
10232       tcc*)
10233         # Fabrice Bellard et al's Tiny C Compiler
10234         ld_shlibs=yes
10235         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10236         ;;
10237       esac
10238       ;;
10239
10240     netbsd*)
10241       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10242         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10243       else
10244         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10245       fi
10246       hardcode_libdir_flag_spec='-R$libdir'
10247       hardcode_direct=yes
10248       hardcode_shlibpath_var=no
10249       ;;
10250
10251     newsos6)
10252       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253       hardcode_direct=yes
10254       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10255       hardcode_libdir_separator=:
10256       hardcode_shlibpath_var=no
10257       ;;
10258
10259     *nto* | *qnx*)
10260       ;;
10261
10262     openbsd* | bitrig*)
10263       if test -f /usr/libexec/ld.so; then
10264         hardcode_direct=yes
10265         hardcode_shlibpath_var=no
10266         hardcode_direct_absolute=yes
10267         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10268           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10269           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10270           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10271           export_dynamic_flag_spec='$wl-E'
10272         else
10273           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10274           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10275         fi
10276       else
10277         ld_shlibs=no
10278       fi
10279       ;;
10280
10281     os2*)
10282       hardcode_libdir_flag_spec='-L$libdir'
10283       hardcode_minus_L=yes
10284       allow_undefined_flag=unsupported
10285       shrext_cmds=.dll
10286       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10287         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10288         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10289         $ECHO EXPORTS >> $output_objdir/$libname.def~
10290         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10291         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10292         emximp -o $lib $output_objdir/$libname.def'
10293       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10294         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10295         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10296         $ECHO EXPORTS >> $output_objdir/$libname.def~
10297         prefix_cmds="$SED"~
10298         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10299           prefix_cmds="$prefix_cmds -e 1d";
10300         fi~
10301         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10302         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10303         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10304         emximp -o $lib $output_objdir/$libname.def'
10305       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10306       enable_shared_with_static_runtimes=yes
10307       ;;
10308
10309     osf3*)
10310       if test yes = "$GCC"; then
10311         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10312         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'
10313       else
10314         allow_undefined_flag=' -expect_unresolved \*'
10315         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'
10316       fi
10317       archive_cmds_need_lc='no'
10318       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10319       hardcode_libdir_separator=:
10320       ;;
10321
10322     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10323       if test yes = "$GCC"; then
10324         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10325         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'
10326         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10327       else
10328         allow_undefined_flag=' -expect_unresolved \*'
10329         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'
10330         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~
10331           $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'
10332
10333         # Both c and cxx compiler support -rpath directly
10334         hardcode_libdir_flag_spec='-rpath $libdir'
10335       fi
10336       archive_cmds_need_lc='no'
10337       hardcode_libdir_separator=:
10338       ;;
10339
10340     solaris*)
10341       no_undefined_flag=' -z defs'
10342       if test yes = "$GCC"; then
10343         wlarc='$wl'
10344         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10345         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10346           $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'
10347       else
10348         case `$CC -V 2>&1` in
10349         *"Compilers 5.0"*)
10350           wlarc=''
10351           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10353             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10354           ;;
10355         *)
10356           wlarc='$wl'
10357           archive_cmds='$CC -G$allow_undefined_flag -h $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 -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10360           ;;
10361         esac
10362       fi
10363       hardcode_libdir_flag_spec='-R$libdir'
10364       hardcode_shlibpath_var=no
10365       case $host_os in
10366       solaris2.[0-5] | solaris2.[0-5].*) ;;
10367       *)
10368         # The compiler driver will combine and reorder linker options,
10369         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10370         # but is careful enough not to reorder.
10371         # Supported since Solaris 2.6 (maybe 2.5.1?)
10372         if test yes = "$GCC"; then
10373           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10374         else
10375           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10376         fi
10377         ;;
10378       esac
10379       link_all_deplibs=yes
10380       ;;
10381
10382     sunos4*)
10383       if test sequent = "$host_vendor"; then
10384         # Use $CC to link under sequent, because it throws in some extra .o
10385         # files that make .init and .fini sections work.
10386         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10387       else
10388         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10389       fi
10390       hardcode_libdir_flag_spec='-L$libdir'
10391       hardcode_direct=yes
10392       hardcode_minus_L=yes
10393       hardcode_shlibpath_var=no
10394       ;;
10395
10396     sysv4)
10397       case $host_vendor in
10398         sni)
10399           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400           hardcode_direct=yes # is this really true???
10401         ;;
10402         siemens)
10403           ## LD is ld it makes a PLAMLIB
10404           ## CC just makes a GrossModule.
10405           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10406           reload_cmds='$CC -r -o $output$reload_objs'
10407           hardcode_direct=no
10408         ;;
10409         motorola)
10410           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10411           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10412         ;;
10413       esac
10414       runpath_var='LD_RUN_PATH'
10415       hardcode_shlibpath_var=no
10416       ;;
10417
10418     sysv4.3*)
10419       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420       hardcode_shlibpath_var=no
10421       export_dynamic_flag_spec='-Bexport'
10422       ;;
10423
10424     sysv4*MP*)
10425       if test -d /usr/nec; then
10426         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427         hardcode_shlibpath_var=no
10428         runpath_var=LD_RUN_PATH
10429         hardcode_runpath_var=yes
10430         ld_shlibs=yes
10431       fi
10432       ;;
10433
10434     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10435       no_undefined_flag='$wl-z,text'
10436       archive_cmds_need_lc=no
10437       hardcode_shlibpath_var=no
10438       runpath_var='LD_RUN_PATH'
10439
10440       if test yes = "$GCC"; then
10441         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10442         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443       else
10444         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446       fi
10447       ;;
10448
10449     sysv5* | sco3.2v5* | sco5v6*)
10450       # Note: We CANNOT use -z defs as we might desire, because we do not
10451       # link with -lc, and that would cause any symbols used from libc to
10452       # always be unresolved, which means just about no library would
10453       # ever link correctly.  If we're not using GNU ld we use -z text
10454       # though, which does catch some bad symbols but isn't as heavy-handed
10455       # as -z defs.
10456       no_undefined_flag='$wl-z,text'
10457       allow_undefined_flag='$wl-z,nodefs'
10458       archive_cmds_need_lc=no
10459       hardcode_shlibpath_var=no
10460       hardcode_libdir_flag_spec='$wl-R,$libdir'
10461       hardcode_libdir_separator=':'
10462       link_all_deplibs=yes
10463       export_dynamic_flag_spec='$wl-Bexport'
10464       runpath_var='LD_RUN_PATH'
10465
10466       if test yes = "$GCC"; then
10467         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10468         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10469       else
10470         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472       fi
10473       ;;
10474
10475     uts4*)
10476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477       hardcode_libdir_flag_spec='-L$libdir'
10478       hardcode_shlibpath_var=no
10479       ;;
10480
10481     *)
10482       ld_shlibs=no
10483       ;;
10484     esac
10485
10486     if test sni = "$host_vendor"; then
10487       case $host in
10488       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10489         export_dynamic_flag_spec='$wl-Blargedynsym'
10490         ;;
10491       esac
10492     fi
10493   fi
10494
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10496 $as_echo "$ld_shlibs" >&6; }
10497 test no = "$ld_shlibs" && can_build_shared=no
10498
10499 with_gnu_ld=$with_gnu_ld
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515 #
10516 # Do we need to explicitly link libc?
10517 #
10518 case "x$archive_cmds_need_lc" in
10519 x|xyes)
10520   # Assume -lc should be added
10521   archive_cmds_need_lc=yes
10522
10523   if test yes,yes = "$GCC,$enable_shared"; then
10524     case $archive_cmds in
10525     *'~'*)
10526       # FIXME: we may have to deal with multi-command sequences.
10527       ;;
10528     '$CC '*)
10529       # Test whether the compiler implicitly links with -lc since on some
10530       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10531       # to ld, don't add -lc before -lgcc.
10532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10533 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10534 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10535   $as_echo_n "(cached) " >&6
10536 else
10537   $RM conftest*
10538         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10539
10540         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10541   (eval $ac_compile) 2>&5
10542   ac_status=$?
10543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544   test $ac_status = 0; } 2>conftest.err; then
10545           soname=conftest
10546           lib=conftest
10547           libobjs=conftest.$ac_objext
10548           deplibs=
10549           wl=$lt_prog_compiler_wl
10550           pic_flag=$lt_prog_compiler_pic
10551           compiler_flags=-v
10552           linker_flags=-v
10553           verstring=
10554           output_objdir=.
10555           libname=conftest
10556           lt_save_allow_undefined_flag=$allow_undefined_flag
10557           allow_undefined_flag=
10558           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10559   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10560   ac_status=$?
10561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562   test $ac_status = 0; }
10563           then
10564             lt_cv_archive_cmds_need_lc=no
10565           else
10566             lt_cv_archive_cmds_need_lc=yes
10567           fi
10568           allow_undefined_flag=$lt_save_allow_undefined_flag
10569         else
10570           cat conftest.err 1>&5
10571         fi
10572         $RM conftest*
10573
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10576 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10577       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10578       ;;
10579     esac
10580   fi
10581   ;;
10582 esac
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10736 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10737
10738 if test yes = "$GCC"; then
10739   case $host_os in
10740     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10741     *) lt_awk_arg='/^libraries:/' ;;
10742   esac
10743   case $host_os in
10744     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10745     *) lt_sed_strip_eq='s|=/|/|g' ;;
10746   esac
10747   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10748   case $lt_search_path_spec in
10749   *\;*)
10750     # if the path contains ";" then we assume it to be the separator
10751     # otherwise default to the standard path separator (i.e. ":") - it is
10752     # assumed that no part of a normal pathname contains ";" but that should
10753     # okay in the real world where ";" in dirpaths is itself problematic.
10754     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10755     ;;
10756   *)
10757     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10758     ;;
10759   esac
10760   # Ok, now we have the path, separated by spaces, we can step through it
10761   # and add multilib dir if necessary...
10762   lt_tmp_lt_search_path_spec=
10763   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10764   # ...but if some path component already ends with the multilib dir we assume
10765   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10766   case "$lt_multi_os_dir; $lt_search_path_spec " in
10767   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10768     lt_multi_os_dir=
10769     ;;
10770   esac
10771   for lt_sys_path in $lt_search_path_spec; do
10772     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10773       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10774     elif test -n "$lt_multi_os_dir"; then
10775       test -d "$lt_sys_path" && \
10776         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10777     fi
10778   done
10779   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10780 BEGIN {RS = " "; FS = "/|\n";} {
10781   lt_foo = "";
10782   lt_count = 0;
10783   for (lt_i = NF; lt_i > 0; lt_i--) {
10784     if ($lt_i != "" && $lt_i != ".") {
10785       if ($lt_i == "..") {
10786         lt_count++;
10787       } else {
10788         if (lt_count == 0) {
10789           lt_foo = "/" $lt_i lt_foo;
10790         } else {
10791           lt_count--;
10792         }
10793       }
10794     }
10795   }
10796   if (lt_foo != "") { lt_freq[lt_foo]++; }
10797   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10798 }'`
10799   # AWK program above erroneously prepends '/' to C:/dos/paths
10800   # for these hosts.
10801   case $host_os in
10802     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10803       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10804   esac
10805   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10806 else
10807   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10808 fi
10809 library_names_spec=
10810 libname_spec='lib$name'
10811 soname_spec=
10812 shrext_cmds=.so
10813 postinstall_cmds=
10814 postuninstall_cmds=
10815 finish_cmds=
10816 finish_eval=
10817 shlibpath_var=
10818 shlibpath_overrides_runpath=unknown
10819 version_type=none
10820 dynamic_linker="$host_os ld.so"
10821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10822 need_lib_prefix=unknown
10823 hardcode_into_libs=no
10824
10825 # when you set need_version to no, make sure it does not cause -set_version
10826 # flags to be left without arguments
10827 need_version=unknown
10828
10829
10830
10831 case $host_os in
10832 aix3*)
10833   version_type=linux # correct to gnu/linux during the next big refactor
10834   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10835   shlibpath_var=LIBPATH
10836
10837   # AIX 3 has no versioning support, so we append a major version to the name.
10838   soname_spec='$libname$release$shared_ext$major'
10839   ;;
10840
10841 aix[4-9]*)
10842   version_type=linux # correct to gnu/linux during the next big refactor
10843   need_lib_prefix=no
10844   need_version=no
10845   hardcode_into_libs=yes
10846   if test ia64 = "$host_cpu"; then
10847     # AIX 5 supports IA64
10848     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10849     shlibpath_var=LD_LIBRARY_PATH
10850   else
10851     # With GCC up to 2.95.x, collect2 would create an import file
10852     # for dependence libraries.  The import file would start with
10853     # the line '#! .'.  This would cause the generated library to
10854     # depend on '.', always an invalid library.  This was fixed in
10855     # development snapshots of GCC prior to 3.0.
10856     case $host_os in
10857       aix4 | aix4.[01] | aix4.[01].*)
10858       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10859            echo ' yes '
10860            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10861         :
10862       else
10863         can_build_shared=no
10864       fi
10865       ;;
10866     esac
10867     # Using Import Files as archive members, it is possible to support
10868     # filename-based versioning of shared library archives on AIX. While
10869     # this would work for both with and without runtime linking, it will
10870     # prevent static linking of such archives. So we do filename-based
10871     # shared library versioning with .so extension only, which is used
10872     # when both runtime linking and shared linking is enabled.
10873     # Unfortunately, runtime linking may impact performance, so we do
10874     # not want this to be the default eventually. Also, we use the
10875     # versioned .so libs for executables only if there is the -brtl
10876     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10877     # To allow for filename-based versioning support, we need to create
10878     # libNAME.so.V as an archive file, containing:
10879     # *) an Import File, referring to the versioned filename of the
10880     #    archive as well as the shared archive member, telling the
10881     #    bitwidth (32 or 64) of that shared object, and providing the
10882     #    list of exported symbols of that shared object, eventually
10883     #    decorated with the 'weak' keyword
10884     # *) the shared object with the F_LOADONLY flag set, to really avoid
10885     #    it being seen by the linker.
10886     # At run time we better use the real file rather than another symlink,
10887     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10888
10889     case $with_aix_soname,$aix_use_runtimelinking in
10890     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10891     # soname into executable. Probably we can add versioning support to
10892     # collect2, so additional links can be useful in future.
10893     aix,yes) # traditional libtool
10894       dynamic_linker='AIX unversionable lib.so'
10895       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10896       # instead of lib<name>.a to let people know that these are not
10897       # typical AIX shared libraries.
10898       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10899       ;;
10900     aix,no) # traditional AIX only
10901       dynamic_linker='AIX lib.a(lib.so.V)'
10902       # We preserve .a as extension for shared libraries through AIX4.2
10903       # and later when we are not doing run time linking.
10904       library_names_spec='$libname$release.a $libname.a'
10905       soname_spec='$libname$release$shared_ext$major'
10906       ;;
10907     svr4,*) # full svr4 only
10908       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10909       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10910       # We do not specify a path in Import Files, so LIBPATH fires.
10911       shlibpath_overrides_runpath=yes
10912       ;;
10913     *,yes) # both, prefer svr4
10914       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10915       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10916       # unpreferred sharedlib libNAME.a needs extra handling
10917       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"'
10918       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"'
10919       # We do not specify a path in Import Files, so LIBPATH fires.
10920       shlibpath_overrides_runpath=yes
10921       ;;
10922     *,no) # both, prefer aix
10923       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10924       library_names_spec='$libname$release.a $libname.a'
10925       soname_spec='$libname$release$shared_ext$major'
10926       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10927       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)'
10928       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"'
10929       ;;
10930     esac
10931     shlibpath_var=LIBPATH
10932   fi
10933   ;;
10934
10935 amigaos*)
10936   case $host_cpu in
10937   powerpc)
10938     # Since July 2007 AmigaOS4 officially supports .so libraries.
10939     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10940     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10941     ;;
10942   m68k)
10943     library_names_spec='$libname.ixlibrary $libname.a'
10944     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10945     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'
10946     ;;
10947   esac
10948   ;;
10949
10950 beos*)
10951   library_names_spec='$libname$shared_ext'
10952   dynamic_linker="$host_os ld.so"
10953   shlibpath_var=LIBRARY_PATH
10954   ;;
10955
10956 bsdi[45]*)
10957   version_type=linux # correct to gnu/linux during the next big refactor
10958   need_version=no
10959   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960   soname_spec='$libname$release$shared_ext$major'
10961   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10962   shlibpath_var=LD_LIBRARY_PATH
10963   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10964   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10965   # the default ld.so.conf also contains /usr/contrib/lib and
10966   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10967   # libtool to hard-code these into programs
10968   ;;
10969
10970 cygwin* | mingw* | pw32* | cegcc*)
10971   version_type=windows
10972   shrext_cmds=.dll
10973   need_version=no
10974   need_lib_prefix=no
10975
10976   case $GCC,$cc_basename in
10977   yes,*)
10978     # gcc
10979     library_names_spec='$libname.dll.a'
10980     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10981     postinstall_cmds='base_file=`basename \$file`~
10982       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10983       dldir=$destdir/`dirname \$dlpath`~
10984       test -d \$dldir || mkdir -p \$dldir~
10985       $install_prog $dir/$dlname \$dldir/$dlname~
10986       chmod a+x \$dldir/$dlname~
10987       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10988         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10989       fi'
10990     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10991       dlpath=$dir/\$dldll~
10992        $RM \$dlpath'
10993     shlibpath_overrides_runpath=yes
10994
10995     case $host_os in
10996     cygwin*)
10997       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10998       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10999
11000       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11001       ;;
11002     mingw* | cegcc*)
11003       # MinGW DLLs use traditional 'lib' prefix
11004       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11005       ;;
11006     pw32*)
11007       # pw32 DLLs use 'pw' prefix rather than 'lib'
11008       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11009       ;;
11010     esac
11011     dynamic_linker='Win32 ld.exe'
11012     ;;
11013
11014   *,cl*)
11015     # Native MSVC
11016     libname_spec='$name'
11017     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11018     library_names_spec='$libname.dll.lib'
11019
11020     case $build_os in
11021     mingw*)
11022       sys_lib_search_path_spec=
11023       lt_save_ifs=$IFS
11024       IFS=';'
11025       for lt_path in $LIB
11026       do
11027         IFS=$lt_save_ifs
11028         # Let DOS variable expansion print the short 8.3 style file name.
11029         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11030         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11031       done
11032       IFS=$lt_save_ifs
11033       # Convert to MSYS style.
11034       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11035       ;;
11036     cygwin*)
11037       # Convert to unix form, then to dos form, then back to unix form
11038       # but this time dos style (no spaces!) so that the unix form looks
11039       # like /cygdrive/c/PROGRA~1:/cygdr...
11040       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11041       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11042       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11043       ;;
11044     *)
11045       sys_lib_search_path_spec=$LIB
11046       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11047         # It is most probably a Windows format PATH.
11048         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11049       else
11050         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11051       fi
11052       # FIXME: find the short name or the path components, as spaces are
11053       # common. (e.g. "Program Files" -> "PROGRA~1")
11054       ;;
11055     esac
11056
11057     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11058     postinstall_cmds='base_file=`basename \$file`~
11059       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11060       dldir=$destdir/`dirname \$dlpath`~
11061       test -d \$dldir || mkdir -p \$dldir~
11062       $install_prog $dir/$dlname \$dldir/$dlname'
11063     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11064       dlpath=$dir/\$dldll~
11065        $RM \$dlpath'
11066     shlibpath_overrides_runpath=yes
11067     dynamic_linker='Win32 link.exe'
11068     ;;
11069
11070   *)
11071     # Assume MSVC wrapper
11072     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11073     dynamic_linker='Win32 ld.exe'
11074     ;;
11075   esac
11076   # FIXME: first we should search . and the directory the executable is in
11077   shlibpath_var=PATH
11078   ;;
11079
11080 darwin* | rhapsody*)
11081   dynamic_linker="$host_os dyld"
11082   version_type=darwin
11083   need_lib_prefix=no
11084   need_version=no
11085   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11086   soname_spec='$libname$release$major$shared_ext'
11087   shlibpath_overrides_runpath=yes
11088   shlibpath_var=DYLD_LIBRARY_PATH
11089   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11090
11091   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11092   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11093   ;;
11094
11095 dgux*)
11096   version_type=linux # correct to gnu/linux during the next big refactor
11097   need_lib_prefix=no
11098   need_version=no
11099   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11100   soname_spec='$libname$release$shared_ext$major'
11101   shlibpath_var=LD_LIBRARY_PATH
11102   ;;
11103
11104 freebsd* | dragonfly*)
11105   # DragonFly does not have aout.  When/if they implement a new
11106   # versioning mechanism, adjust this.
11107   if test -x /usr/bin/objformat; then
11108     objformat=`/usr/bin/objformat`
11109   else
11110     case $host_os in
11111     freebsd[23].*) objformat=aout ;;
11112     *) objformat=elf ;;
11113     esac
11114   fi
11115   version_type=freebsd-$objformat
11116   case $version_type in
11117     freebsd-elf*)
11118       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11119       soname_spec='$libname$release$shared_ext$major'
11120       need_version=no
11121       need_lib_prefix=no
11122       ;;
11123     freebsd-*)
11124       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11125       need_version=yes
11126       ;;
11127   esac
11128   shlibpath_var=LD_LIBRARY_PATH
11129   case $host_os in
11130   freebsd2.*)
11131     shlibpath_overrides_runpath=yes
11132     ;;
11133   freebsd3.[01]* | freebsdelf3.[01]*)
11134     shlibpath_overrides_runpath=yes
11135     hardcode_into_libs=yes
11136     ;;
11137   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11138   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11139     shlibpath_overrides_runpath=no
11140     hardcode_into_libs=yes
11141     ;;
11142   *) # from 4.6 on, and DragonFly
11143     shlibpath_overrides_runpath=yes
11144     hardcode_into_libs=yes
11145     ;;
11146   esac
11147   ;;
11148
11149 haiku*)
11150   version_type=linux # correct to gnu/linux during the next big refactor
11151   need_lib_prefix=no
11152   need_version=no
11153   dynamic_linker="$host_os runtime_loader"
11154   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155   soname_spec='$libname$release$shared_ext$major'
11156   shlibpath_var=LIBRARY_PATH
11157   shlibpath_overrides_runpath=no
11158   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11159   hardcode_into_libs=yes
11160   ;;
11161
11162 hpux9* | hpux10* | hpux11*)
11163   # Give a soname corresponding to the major version so that dld.sl refuses to
11164   # link against other versions.
11165   version_type=sunos
11166   need_lib_prefix=no
11167   need_version=no
11168   case $host_cpu in
11169   ia64*)
11170     shrext_cmds='.so'
11171     hardcode_into_libs=yes
11172     dynamic_linker="$host_os dld.so"
11173     shlibpath_var=LD_LIBRARY_PATH
11174     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11175     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11176     soname_spec='$libname$release$shared_ext$major'
11177     if test 32 = "$HPUX_IA64_MODE"; then
11178       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11179       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11180     else
11181       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11182       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11183     fi
11184     ;;
11185   hppa*64*)
11186     shrext_cmds='.sl'
11187     hardcode_into_libs=yes
11188     dynamic_linker="$host_os dld.sl"
11189     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11190     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11191     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11192     soname_spec='$libname$release$shared_ext$major'
11193     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11194     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11195     ;;
11196   *)
11197     shrext_cmds='.sl'
11198     dynamic_linker="$host_os dld.sl"
11199     shlibpath_var=SHLIB_PATH
11200     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11201     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202     soname_spec='$libname$release$shared_ext$major'
11203     ;;
11204   esac
11205   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11206   postinstall_cmds='chmod 555 $lib'
11207   # or fails outright, so override atomically:
11208   install_override_mode=555
11209   ;;
11210
11211 interix[3-9]*)
11212   version_type=linux # correct to gnu/linux during the next big refactor
11213   need_lib_prefix=no
11214   need_version=no
11215   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11216   soname_spec='$libname$release$shared_ext$major'
11217   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11218   shlibpath_var=LD_LIBRARY_PATH
11219   shlibpath_overrides_runpath=no
11220   hardcode_into_libs=yes
11221   ;;
11222
11223 irix5* | irix6* | nonstopux*)
11224   case $host_os in
11225     nonstopux*) version_type=nonstopux ;;
11226     *)
11227         if test yes = "$lt_cv_prog_gnu_ld"; then
11228                 version_type=linux # correct to gnu/linux during the next big refactor
11229         else
11230                 version_type=irix
11231         fi ;;
11232   esac
11233   need_lib_prefix=no
11234   need_version=no
11235   soname_spec='$libname$release$shared_ext$major'
11236   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11237   case $host_os in
11238   irix5* | nonstopux*)
11239     libsuff= shlibsuff=
11240     ;;
11241   *)
11242     case $LD in # libtool.m4 will add one of these switches to LD
11243     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11244       libsuff= shlibsuff= libmagic=32-bit;;
11245     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11246       libsuff=32 shlibsuff=N32 libmagic=N32;;
11247     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11248       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11249     *) libsuff= shlibsuff= libmagic=never-match;;
11250     esac
11251     ;;
11252   esac
11253   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11254   shlibpath_overrides_runpath=no
11255   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11256   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11257   hardcode_into_libs=yes
11258   ;;
11259
11260 # No shared lib support for Linux oldld, aout, or coff.
11261 linux*oldld* | linux*aout* | linux*coff*)
11262   dynamic_linker=no
11263   ;;
11264
11265 linux*android*)
11266   version_type=none # Android doesn't support versioned libraries.
11267   need_lib_prefix=no
11268   need_version=no
11269   library_names_spec='$libname$release$shared_ext'
11270   soname_spec='$libname$release$shared_ext'
11271   finish_cmds=
11272   shlibpath_var=LD_LIBRARY_PATH
11273   shlibpath_overrides_runpath=yes
11274
11275   # This implies no fast_install, which is unacceptable.
11276   # Some rework will be needed to allow for fast_install
11277   # before this can be enabled.
11278   hardcode_into_libs=yes
11279
11280   dynamic_linker='Android linker'
11281   # Don't embed -rpath directories since the linker doesn't support them.
11282   hardcode_libdir_flag_spec='-L$libdir'
11283   ;;
11284
11285 # This must be glibc/ELF.
11286 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11287   version_type=linux # correct to gnu/linux during the next big refactor
11288   need_lib_prefix=no
11289   need_version=no
11290   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11291   soname_spec='$libname$release$shared_ext$major'
11292   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11293   shlibpath_var=LD_LIBRARY_PATH
11294   shlibpath_overrides_runpath=no
11295
11296   # Some binutils ld are patched to set DT_RUNPATH
11297   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   lt_cv_shlibpath_overrides_runpath=no
11301     save_LDFLAGS=$LDFLAGS
11302     save_libdir=$libdir
11303     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11304          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h.  */
11307
11308 int
11309 main ()
11310 {
11311
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 if ac_fn_c_try_link "$LINENO"; then :
11317   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11318   lt_cv_shlibpath_overrides_runpath=yes
11319 fi
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext \
11322     conftest$ac_exeext conftest.$ac_ext
11323     LDFLAGS=$save_LDFLAGS
11324     libdir=$save_libdir
11325
11326 fi
11327
11328   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11329
11330   # This implies no fast_install, which is unacceptable.
11331   # Some rework will be needed to allow for fast_install
11332   # before this can be enabled.
11333   hardcode_into_libs=yes
11334
11335   # Add ABI-specific directories to the system library path.
11336   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11337
11338   # Ideally, we could use ldconfig to report *all* directores which are
11339   # searched for libraries, however this is still not possible.  Aside from not
11340   # being certain /sbin/ldconfig is available, command
11341   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11342   # even though it is searched at run-time.  Try to do the best guess by
11343   # appending ld.so.conf contents (and includes) to the search path.
11344   if test -f /etc/ld.so.conf; then
11345     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' ' '`
11346     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11347   fi
11348
11349   # We used to test for /lib/ld.so.1 and disable shared libraries on
11350   # powerpc, because MkLinux only supported shared libraries with the
11351   # GNU dynamic linker.  Since this was broken with cross compilers,
11352   # most powerpc-linux boxes support dynamic linking these days and
11353   # people can always --disable-shared, the test was removed, and we
11354   # assume the GNU/Linux dynamic linker is in use.
11355   dynamic_linker='GNU/Linux ld.so'
11356   ;;
11357
11358 netbsd*)
11359   version_type=sunos
11360   need_lib_prefix=no
11361   need_version=no
11362   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11363     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11364     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11365     dynamic_linker='NetBSD (a.out) ld.so'
11366   else
11367     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11368     soname_spec='$libname$release$shared_ext$major'
11369     dynamic_linker='NetBSD ld.elf_so'
11370   fi
11371   shlibpath_var=LD_LIBRARY_PATH
11372   shlibpath_overrides_runpath=yes
11373   hardcode_into_libs=yes
11374   ;;
11375
11376 newsos6)
11377   version_type=linux # correct to gnu/linux during the next big refactor
11378   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379   shlibpath_var=LD_LIBRARY_PATH
11380   shlibpath_overrides_runpath=yes
11381   ;;
11382
11383 *nto* | *qnx*)
11384   version_type=qnx
11385   need_lib_prefix=no
11386   need_version=no
11387   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11388   soname_spec='$libname$release$shared_ext$major'
11389   shlibpath_var=LD_LIBRARY_PATH
11390   shlibpath_overrides_runpath=no
11391   hardcode_into_libs=yes
11392   dynamic_linker='ldqnx.so'
11393   ;;
11394
11395 openbsd* | bitrig*)
11396   version_type=sunos
11397   sys_lib_dlsearch_path_spec=/usr/lib
11398   need_lib_prefix=no
11399   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11400     need_version=no
11401   else
11402     need_version=yes
11403   fi
11404   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11405   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11406   shlibpath_var=LD_LIBRARY_PATH
11407   shlibpath_overrides_runpath=yes
11408   ;;
11409
11410 os2*)
11411   libname_spec='$name'
11412   version_type=windows
11413   shrext_cmds=.dll
11414   need_version=no
11415   need_lib_prefix=no
11416   # OS/2 can only load a DLL with a base name of 8 characters or less.
11417   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11418     v=$($ECHO $release$versuffix | tr -d .-);
11419     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11420     $ECHO $n$v`$shared_ext'
11421   library_names_spec='${libname}_dll.$libext'
11422   dynamic_linker='OS/2 ld.exe'
11423   shlibpath_var=BEGINLIBPATH
11424   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11425   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11426   postinstall_cmds='base_file=`basename \$file`~
11427     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11428     dldir=$destdir/`dirname \$dlpath`~
11429     test -d \$dldir || mkdir -p \$dldir~
11430     $install_prog $dir/$dlname \$dldir/$dlname~
11431     chmod a+x \$dldir/$dlname~
11432     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11433       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11434     fi'
11435   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11436     dlpath=$dir/\$dldll~
11437     $RM \$dlpath'
11438   ;;
11439
11440 osf3* | osf4* | osf5*)
11441   version_type=osf
11442   need_lib_prefix=no
11443   need_version=no
11444   soname_spec='$libname$release$shared_ext$major'
11445   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11446   shlibpath_var=LD_LIBRARY_PATH
11447   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11448   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11449   ;;
11450
11451 rdos*)
11452   dynamic_linker=no
11453   ;;
11454
11455 solaris*)
11456   version_type=linux # correct to gnu/linux during the next big refactor
11457   need_lib_prefix=no
11458   need_version=no
11459   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11460   soname_spec='$libname$release$shared_ext$major'
11461   shlibpath_var=LD_LIBRARY_PATH
11462   shlibpath_overrides_runpath=yes
11463   hardcode_into_libs=yes
11464   # ldd complains unless libraries are executable
11465   postinstall_cmds='chmod +x $lib'
11466   ;;
11467
11468 sunos4*)
11469   version_type=sunos
11470   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11471   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   shlibpath_overrides_runpath=yes
11474   if test yes = "$with_gnu_ld"; then
11475     need_lib_prefix=no
11476   fi
11477   need_version=yes
11478   ;;
11479
11480 sysv4 | sysv4.3*)
11481   version_type=linux # correct to gnu/linux during the next big refactor
11482   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483   soname_spec='$libname$release$shared_ext$major'
11484   shlibpath_var=LD_LIBRARY_PATH
11485   case $host_vendor in
11486     sni)
11487       shlibpath_overrides_runpath=no
11488       need_lib_prefix=no
11489       runpath_var=LD_RUN_PATH
11490       ;;
11491     siemens)
11492       need_lib_prefix=no
11493       ;;
11494     motorola)
11495       need_lib_prefix=no
11496       need_version=no
11497       shlibpath_overrides_runpath=no
11498       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11499       ;;
11500   esac
11501   ;;
11502
11503 sysv4*MP*)
11504   if test -d /usr/nec; then
11505     version_type=linux # correct to gnu/linux during the next big refactor
11506     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11507     soname_spec='$libname$shared_ext.$major'
11508     shlibpath_var=LD_LIBRARY_PATH
11509   fi
11510   ;;
11511
11512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11513   version_type=sco
11514   need_lib_prefix=no
11515   need_version=no
11516   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11517   soname_spec='$libname$release$shared_ext$major'
11518   shlibpath_var=LD_LIBRARY_PATH
11519   shlibpath_overrides_runpath=yes
11520   hardcode_into_libs=yes
11521   if test yes = "$with_gnu_ld"; then
11522     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11523   else
11524     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11525     case $host_os in
11526       sco3.2v5*)
11527         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11528         ;;
11529     esac
11530   fi
11531   sys_lib_dlsearch_path_spec='/usr/lib'
11532   ;;
11533
11534 tpf*)
11535   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11536   version_type=linux # correct to gnu/linux during the next big refactor
11537   need_lib_prefix=no
11538   need_version=no
11539   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11540   shlibpath_var=LD_LIBRARY_PATH
11541   shlibpath_overrides_runpath=no
11542   hardcode_into_libs=yes
11543   ;;
11544
11545 uts4*)
11546   version_type=linux # correct to gnu/linux during the next big refactor
11547   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11548   soname_spec='$libname$release$shared_ext$major'
11549   shlibpath_var=LD_LIBRARY_PATH
11550   ;;
11551
11552 *)
11553   dynamic_linker=no
11554   ;;
11555 esac
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11557 $as_echo "$dynamic_linker" >&6; }
11558 test no = "$dynamic_linker" && can_build_shared=no
11559
11560 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11561 if test yes = "$GCC"; then
11562   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11563 fi
11564
11565 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11566   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11567 fi
11568
11569 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11570   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11571 fi
11572
11573 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11574 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11575
11576 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11577 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11578
11579 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11580 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11679 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11680 hardcode_action=
11681 if test -n "$hardcode_libdir_flag_spec" ||
11682    test -n "$runpath_var" ||
11683    test yes = "$hardcode_automatic"; then
11684
11685   # We can hardcode non-existent directories.
11686   if test no != "$hardcode_direct" &&
11687      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11688      # have to relink, otherwise we might link with an installed library
11689      # when we should be linking with a yet-to-be-installed one
11690      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11691      test no != "$hardcode_minus_L"; then
11692     # Linking always hardcodes the temporary library directory.
11693     hardcode_action=relink
11694   else
11695     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11696     hardcode_action=immediate
11697   fi
11698 else
11699   # We cannot hardcode anything, or else we can only hardcode existing
11700   # directories.
11701   hardcode_action=unsupported
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11704 $as_echo "$hardcode_action" >&6; }
11705
11706 if test relink = "$hardcode_action" ||
11707    test yes = "$inherit_rpath"; then
11708   # Fast installation is not supported
11709   enable_fast_install=no
11710 elif test yes = "$shlibpath_overrides_runpath" ||
11711      test no = "$enable_shared"; then
11712   # Fast installation is not necessary
11713   enable_fast_install=needless
11714 fi
11715
11716
11717
11718
11719
11720
11721   if test yes != "$enable_dlopen"; then
11722   enable_dlopen=unknown
11723   enable_dlopen_self=unknown
11724   enable_dlopen_self_static=unknown
11725 else
11726   lt_cv_dlopen=no
11727   lt_cv_dlopen_libs=
11728
11729   case $host_os in
11730   beos*)
11731     lt_cv_dlopen=load_add_on
11732     lt_cv_dlopen_libs=
11733     lt_cv_dlopen_self=yes
11734     ;;
11735
11736   mingw* | pw32* | cegcc*)
11737     lt_cv_dlopen=LoadLibrary
11738     lt_cv_dlopen_libs=
11739     ;;
11740
11741   cygwin*)
11742     lt_cv_dlopen=dlopen
11743     lt_cv_dlopen_libs=
11744     ;;
11745
11746   darwin*)
11747     # if libdl is installed we need to link against it
11748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11749 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11750 if ${ac_cv_lib_dl_dlopen+:} false; then :
11751   $as_echo_n "(cached) " >&6
11752 else
11753   ac_check_lib_save_LIBS=$LIBS
11754 LIBS="-ldl  $LIBS"
11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756 /* end confdefs.h.  */
11757
11758 /* Override any GCC internal prototype to avoid an error.
11759    Use char because int might match the return type of a GCC
11760    builtin and then its argument prototype would still apply.  */
11761 #ifdef __cplusplus
11762 extern "C"
11763 #endif
11764 char dlopen ();
11765 int
11766 main ()
11767 {
11768 return dlopen ();
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 if ac_fn_c_try_link "$LINENO"; then :
11774   ac_cv_lib_dl_dlopen=yes
11775 else
11776   ac_cv_lib_dl_dlopen=no
11777 fi
11778 rm -f core conftest.err conftest.$ac_objext \
11779     conftest$ac_exeext conftest.$ac_ext
11780 LIBS=$ac_check_lib_save_LIBS
11781 fi
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11783 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11784 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11785   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11786 else
11787
11788     lt_cv_dlopen=dyld
11789     lt_cv_dlopen_libs=
11790     lt_cv_dlopen_self=yes
11791
11792 fi
11793
11794     ;;
11795
11796   tpf*)
11797     # Don't try to run any link tests for TPF.  We know it's impossible
11798     # because TPF is a cross-compiler, and we know how we open DSOs.
11799     lt_cv_dlopen=dlopen
11800     lt_cv_dlopen_libs=
11801     lt_cv_dlopen_self=no
11802     ;;
11803
11804   *)
11805     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11806 if test "x$ac_cv_func_shl_load" = xyes; then :
11807   lt_cv_dlopen=shl_load
11808 else
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11810 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11811 if ${ac_cv_lib_dld_shl_load+:} false; then :
11812   $as_echo_n "(cached) " >&6
11813 else
11814   ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-ldld  $LIBS"
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h.  */
11818
11819 /* Override any GCC internal prototype to avoid an error.
11820    Use char because int might match the return type of a GCC
11821    builtin and then its argument prototype would still apply.  */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char shl_load ();
11826 int
11827 main ()
11828 {
11829 return shl_load ();
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835   ac_cv_lib_dld_shl_load=yes
11836 else
11837   ac_cv_lib_dld_shl_load=no
11838 fi
11839 rm -f core conftest.err conftest.$ac_objext \
11840     conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11844 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11845 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11846   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11847 else
11848   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11849 if test "x$ac_cv_func_dlopen" = xyes; then :
11850   lt_cv_dlopen=dlopen
11851 else
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11853 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11854 if ${ac_cv_lib_dl_dlopen+:} false; then :
11855   $as_echo_n "(cached) " >&6
11856 else
11857   ac_check_lib_save_LIBS=$LIBS
11858 LIBS="-ldl  $LIBS"
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h.  */
11861
11862 /* Override any GCC internal prototype to avoid an error.
11863    Use char because int might match the return type of a GCC
11864    builtin and then its argument prototype would still apply.  */
11865 #ifdef __cplusplus
11866 extern "C"
11867 #endif
11868 char dlopen ();
11869 int
11870 main ()
11871 {
11872 return dlopen ();
11873   ;
11874   return 0;
11875 }
11876 _ACEOF
11877 if ac_fn_c_try_link "$LINENO"; then :
11878   ac_cv_lib_dl_dlopen=yes
11879 else
11880   ac_cv_lib_dl_dlopen=no
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext \
11883     conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_lib_save_LIBS
11885 fi
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11887 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11888 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11889   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11890 else
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11892 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11893 if ${ac_cv_lib_svld_dlopen+:} false; then :
11894   $as_echo_n "(cached) " >&6
11895 else
11896   ac_check_lib_save_LIBS=$LIBS
11897 LIBS="-lsvld  $LIBS"
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h.  */
11900
11901 /* Override any GCC internal prototype to avoid an error.
11902    Use char because int might match the return type of a GCC
11903    builtin and then its argument prototype would still apply.  */
11904 #ifdef __cplusplus
11905 extern "C"
11906 #endif
11907 char dlopen ();
11908 int
11909 main ()
11910 {
11911 return dlopen ();
11912   ;
11913   return 0;
11914 }
11915 _ACEOF
11916 if ac_fn_c_try_link "$LINENO"; then :
11917   ac_cv_lib_svld_dlopen=yes
11918 else
11919   ac_cv_lib_svld_dlopen=no
11920 fi
11921 rm -f core conftest.err conftest.$ac_objext \
11922     conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11924 fi
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11926 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11927 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11928   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11929 else
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11931 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11932 if ${ac_cv_lib_dld_dld_link+:} false; then :
11933   $as_echo_n "(cached) " >&6
11934 else
11935   ac_check_lib_save_LIBS=$LIBS
11936 LIBS="-ldld  $LIBS"
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h.  */
11939
11940 /* Override any GCC internal prototype to avoid an error.
11941    Use char because int might match the return type of a GCC
11942    builtin and then its argument prototype would still apply.  */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char dld_link ();
11947 int
11948 main ()
11949 {
11950 return dld_link ();
11951   ;
11952   return 0;
11953 }
11954 _ACEOF
11955 if ac_fn_c_try_link "$LINENO"; then :
11956   ac_cv_lib_dld_dld_link=yes
11957 else
11958   ac_cv_lib_dld_dld_link=no
11959 fi
11960 rm -f core conftest.err conftest.$ac_objext \
11961     conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11965 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11966 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11967   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11968 fi
11969
11970
11971 fi
11972
11973
11974 fi
11975
11976
11977 fi
11978
11979
11980 fi
11981
11982
11983 fi
11984
11985     ;;
11986   esac
11987
11988   if test no = "$lt_cv_dlopen"; then
11989     enable_dlopen=no
11990   else
11991     enable_dlopen=yes
11992   fi
11993
11994   case $lt_cv_dlopen in
11995   dlopen)
11996     save_CPPFLAGS=$CPPFLAGS
11997     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11998
11999     save_LDFLAGS=$LDFLAGS
12000     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12001
12002     save_LIBS=$LIBS
12003     LIBS="$lt_cv_dlopen_libs $LIBS"
12004
12005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12006 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12007 if ${lt_cv_dlopen_self+:} false; then :
12008   $as_echo_n "(cached) " >&6
12009 else
12010           if test yes = "$cross_compiling"; then :
12011   lt_cv_dlopen_self=cross
12012 else
12013   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12014   lt_status=$lt_dlunknown
12015   cat > conftest.$ac_ext <<_LT_EOF
12016 #line $LINENO "configure"
12017 #include "confdefs.h"
12018
12019 #if HAVE_DLFCN_H
12020 #include <dlfcn.h>
12021 #endif
12022
12023 #include <stdio.h>
12024
12025 #ifdef RTLD_GLOBAL
12026 #  define LT_DLGLOBAL           RTLD_GLOBAL
12027 #else
12028 #  ifdef DL_GLOBAL
12029 #    define LT_DLGLOBAL         DL_GLOBAL
12030 #  else
12031 #    define LT_DLGLOBAL         0
12032 #  endif
12033 #endif
12034
12035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12036    find out it does not work in some platform. */
12037 #ifndef LT_DLLAZY_OR_NOW
12038 #  ifdef RTLD_LAZY
12039 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12040 #  else
12041 #    ifdef DL_LAZY
12042 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12043 #    else
12044 #      ifdef RTLD_NOW
12045 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12046 #      else
12047 #        ifdef DL_NOW
12048 #          define LT_DLLAZY_OR_NOW      DL_NOW
12049 #        else
12050 #          define LT_DLLAZY_OR_NOW      0
12051 #        endif
12052 #      endif
12053 #    endif
12054 #  endif
12055 #endif
12056
12057 /* When -fvisibility=hidden is used, assume the code has been annotated
12058    correspondingly for the symbols needed.  */
12059 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12060 int fnord () __attribute__((visibility("default")));
12061 #endif
12062
12063 int fnord () { return 42; }
12064 int main ()
12065 {
12066   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12067   int status = $lt_dlunknown;
12068
12069   if (self)
12070     {
12071       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12072       else
12073         {
12074           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12075           else puts (dlerror ());
12076         }
12077       /* dlclose (self); */
12078     }
12079   else
12080     puts (dlerror ());
12081
12082   return status;
12083 }
12084 _LT_EOF
12085   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12086   (eval $ac_link) 2>&5
12087   ac_status=$?
12088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12089   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12090     (./conftest; exit; ) >&5 2>/dev/null
12091     lt_status=$?
12092     case x$lt_status in
12093       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12094       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12095       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12096     esac
12097   else :
12098     # compilation failed
12099     lt_cv_dlopen_self=no
12100   fi
12101 fi
12102 rm -fr conftest*
12103
12104
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12107 $as_echo "$lt_cv_dlopen_self" >&6; }
12108
12109     if test yes = "$lt_cv_dlopen_self"; then
12110       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12111       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12112 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12113 if ${lt_cv_dlopen_self_static+:} false; then :
12114   $as_echo_n "(cached) " >&6
12115 else
12116           if test yes = "$cross_compiling"; then :
12117   lt_cv_dlopen_self_static=cross
12118 else
12119   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12120   lt_status=$lt_dlunknown
12121   cat > conftest.$ac_ext <<_LT_EOF
12122 #line $LINENO "configure"
12123 #include "confdefs.h"
12124
12125 #if HAVE_DLFCN_H
12126 #include <dlfcn.h>
12127 #endif
12128
12129 #include <stdio.h>
12130
12131 #ifdef RTLD_GLOBAL
12132 #  define LT_DLGLOBAL           RTLD_GLOBAL
12133 #else
12134 #  ifdef DL_GLOBAL
12135 #    define LT_DLGLOBAL         DL_GLOBAL
12136 #  else
12137 #    define LT_DLGLOBAL         0
12138 #  endif
12139 #endif
12140
12141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12142    find out it does not work in some platform. */
12143 #ifndef LT_DLLAZY_OR_NOW
12144 #  ifdef RTLD_LAZY
12145 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12146 #  else
12147 #    ifdef DL_LAZY
12148 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12149 #    else
12150 #      ifdef RTLD_NOW
12151 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12152 #      else
12153 #        ifdef DL_NOW
12154 #          define LT_DLLAZY_OR_NOW      DL_NOW
12155 #        else
12156 #          define LT_DLLAZY_OR_NOW      0
12157 #        endif
12158 #      endif
12159 #    endif
12160 #  endif
12161 #endif
12162
12163 /* When -fvisibility=hidden is used, assume the code has been annotated
12164    correspondingly for the symbols needed.  */
12165 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12166 int fnord () __attribute__((visibility("default")));
12167 #endif
12168
12169 int fnord () { return 42; }
12170 int main ()
12171 {
12172   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12173   int status = $lt_dlunknown;
12174
12175   if (self)
12176     {
12177       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12178       else
12179         {
12180           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12181           else puts (dlerror ());
12182         }
12183       /* dlclose (self); */
12184     }
12185   else
12186     puts (dlerror ());
12187
12188   return status;
12189 }
12190 _LT_EOF
12191   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12192   (eval $ac_link) 2>&5
12193   ac_status=$?
12194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12195   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12196     (./conftest; exit; ) >&5 2>/dev/null
12197     lt_status=$?
12198     case x$lt_status in
12199       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12200       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12201       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12202     esac
12203   else :
12204     # compilation failed
12205     lt_cv_dlopen_self_static=no
12206   fi
12207 fi
12208 rm -fr conftest*
12209
12210
12211 fi
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12213 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12214     fi
12215
12216     CPPFLAGS=$save_CPPFLAGS
12217     LDFLAGS=$save_LDFLAGS
12218     LIBS=$save_LIBS
12219     ;;
12220   esac
12221
12222   case $lt_cv_dlopen_self in
12223   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12224   *) enable_dlopen_self=unknown ;;
12225   esac
12226
12227   case $lt_cv_dlopen_self_static in
12228   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12229   *) enable_dlopen_self_static=unknown ;;
12230   esac
12231 fi
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249 striplib=
12250 old_striplib=
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12252 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12253 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12254   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12255   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12258 else
12259 # FIXME - insert some real tests, host_os isn't really good enough
12260   case $host_os in
12261   darwin*)
12262     if test -n "$STRIP"; then
12263       striplib="$STRIP -x"
12264       old_striplib="$STRIP -S"
12265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266 $as_echo "yes" >&6; }
12267     else
12268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12270     fi
12271     ;;
12272   *)
12273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275     ;;
12276   esac
12277 fi
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290   # Report what library types will actually be built
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12292 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12294 $as_echo "$can_build_shared" >&6; }
12295
12296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12297 $as_echo_n "checking whether to build shared libraries... " >&6; }
12298   test no = "$can_build_shared" && enable_shared=no
12299
12300   # On AIX, shared libraries and static libraries use the same namespace, and
12301   # are all built from PIC.
12302   case $host_os in
12303   aix3*)
12304     test yes = "$enable_shared" && enable_static=no
12305     if test -n "$RANLIB"; then
12306       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12307       postinstall_cmds='$RANLIB $lib'
12308     fi
12309     ;;
12310
12311   aix[4-9]*)
12312     if test ia64 != "$host_cpu"; then
12313       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12314       yes,aix,yes) ;;                   # shared object as lib.so file only
12315       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12316       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12317       esac
12318     fi
12319     ;;
12320   esac
12321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12322 $as_echo "$enable_shared" >&6; }
12323
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12325 $as_echo_n "checking whether to build static libraries... " >&6; }
12326   # Make sure either enable_shared or enable_static is yes.
12327   test yes = "$enable_shared" || enable_static=yes
12328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12329 $as_echo "$enable_static" >&6; }
12330
12331
12332
12333
12334 fi
12335 ac_ext=c
12336 ac_cpp='$CPP $CPPFLAGS'
12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12340
12341 CC=$lt_save_CC
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357         ac_config_commands="$ac_config_commands libtool"
12358
12359
12360
12361
12362 # Only expand once:
12363
12364
12365
12366 FRIBIDI_MAJOR_VERSION=1
12367 FRIBIDI_MINOR_VERSION=0
12368 FRIBIDI_MICRO_VERSION=8
12369 FRIBIDI_VERSION=1.0.8
12370 FRIBIDI_INTERFACE_VERSION=4
12371 FRIBIDI_INTERFACE_AGE=0
12372 FRIBIDI_BINARY_AGE=4
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382 FRIBIDI_MSVC_BUILD_PLACEHOLDER="#undef FRIBIDI_BUILT_WITH_MSVC"
12383
12384
12385 LT_VERSION_INFO=4:0:4
12386 LT_CURRENT_MINUS_AGE=0
12387
12388
12389
12390
12391
12392 # Checks for programs.
12393 ac_ext=c
12394 ac_cpp='$CPP $CPPFLAGS'
12395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12398 if test -n "$ac_tool_prefix"; then
12399   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if ${ac_cv_prog_CC+:} false; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   if test -n "$CC"; then
12407   ac_cv_prog_CC="$CC" # Let the user override the test.
12408 else
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12411 do
12412   IFS=$as_save_IFS
12413   test -z "$as_dir" && as_dir=.
12414     for ac_exec_ext in '' $ac_executable_extensions; do
12415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12416     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418     break 2
12419   fi
12420 done
12421   done
12422 IFS=$as_save_IFS
12423
12424 fi
12425 fi
12426 CC=$ac_cv_prog_CC
12427 if test -n "$CC"; then
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12429 $as_echo "$CC" >&6; }
12430 else
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 fi
12434
12435
12436 fi
12437 if test -z "$ac_cv_prog_CC"; then
12438   ac_ct_CC=$CC
12439   # Extract the first word of "gcc", so it can be a program name with args.
12440 set dummy gcc; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446   if test -n "$ac_ct_CC"; then
12447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12448 else
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12451 do
12452   IFS=$as_save_IFS
12453   test -z "$as_dir" && as_dir=.
12454     for ac_exec_ext in '' $ac_executable_extensions; do
12455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12456     ac_cv_prog_ac_ct_CC="gcc"
12457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458     break 2
12459   fi
12460 done
12461   done
12462 IFS=$as_save_IFS
12463
12464 fi
12465 fi
12466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12467 if test -n "$ac_ct_CC"; then
12468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12469 $as_echo "$ac_ct_CC" >&6; }
12470 else
12471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12473 fi
12474
12475   if test "x$ac_ct_CC" = x; then
12476     CC=""
12477   else
12478     case $cross_compiling:$ac_tool_warned in
12479 yes:)
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12482 ac_tool_warned=yes ;;
12483 esac
12484     CC=$ac_ct_CC
12485   fi
12486 else
12487   CC="$ac_cv_prog_CC"
12488 fi
12489
12490 if test -z "$CC"; then
12491           if test -n "$ac_tool_prefix"; then
12492     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12493 set dummy ${ac_tool_prefix}cc; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if ${ac_cv_prog_CC+:} false; then :
12497   $as_echo_n "(cached) " >&6
12498 else
12499   if test -n "$CC"; then
12500   ac_cv_prog_CC="$CC" # Let the user override the test.
12501 else
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12504 do
12505   IFS=$as_save_IFS
12506   test -z "$as_dir" && as_dir=.
12507     for ac_exec_ext in '' $ac_executable_extensions; do
12508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12509     ac_cv_prog_CC="${ac_tool_prefix}cc"
12510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511     break 2
12512   fi
12513 done
12514   done
12515 IFS=$as_save_IFS
12516
12517 fi
12518 fi
12519 CC=$ac_cv_prog_CC
12520 if test -n "$CC"; then
12521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12522 $as_echo "$CC" >&6; }
12523 else
12524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12526 fi
12527
12528
12529   fi
12530 fi
12531 if test -z "$CC"; then
12532   # Extract the first word of "cc", so it can be a program name with args.
12533 set dummy cc; ac_word=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if ${ac_cv_prog_CC+:} false; then :
12537   $as_echo_n "(cached) " >&6
12538 else
12539   if test -n "$CC"; then
12540   ac_cv_prog_CC="$CC" # Let the user override the test.
12541 else
12542   ac_prog_rejected=no
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12545 do
12546   IFS=$as_save_IFS
12547   test -z "$as_dir" && as_dir=.
12548     for ac_exec_ext in '' $ac_executable_extensions; do
12549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12550     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12551        ac_prog_rejected=yes
12552        continue
12553      fi
12554     ac_cv_prog_CC="cc"
12555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556     break 2
12557   fi
12558 done
12559   done
12560 IFS=$as_save_IFS
12561
12562 if test $ac_prog_rejected = yes; then
12563   # We found a bogon in the path, so make sure we never use it.
12564   set dummy $ac_cv_prog_CC
12565   shift
12566   if test $# != 0; then
12567     # We chose a different compiler from the bogus one.
12568     # However, it has the same basename, so the bogon will be chosen
12569     # first if we set CC to just the basename; use the full file name.
12570     shift
12571     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12572   fi
12573 fi
12574 fi
12575 fi
12576 CC=$ac_cv_prog_CC
12577 if test -n "$CC"; then
12578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12579 $as_echo "$CC" >&6; }
12580 else
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583 fi
12584
12585
12586 fi
12587 if test -z "$CC"; then
12588   if test -n "$ac_tool_prefix"; then
12589   for ac_prog in cl.exe
12590   do
12591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if ${ac_cv_prog_CC+:} false; then :
12596   $as_echo_n "(cached) " >&6
12597 else
12598   if test -n "$CC"; then
12599   ac_cv_prog_CC="$CC" # Let the user override the test.
12600 else
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12603 do
12604   IFS=$as_save_IFS
12605   test -z "$as_dir" && as_dir=.
12606     for ac_exec_ext in '' $ac_executable_extensions; do
12607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12608     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610     break 2
12611   fi
12612 done
12613   done
12614 IFS=$as_save_IFS
12615
12616 fi
12617 fi
12618 CC=$ac_cv_prog_CC
12619 if test -n "$CC"; then
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12621 $as_echo "$CC" >&6; }
12622 else
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626
12627
12628     test -n "$CC" && break
12629   done
12630 fi
12631 if test -z "$CC"; then
12632   ac_ct_CC=$CC
12633   for ac_prog in cl.exe
12634 do
12635   # Extract the first word of "$ac_prog", so it can be a program name with args.
12636 set dummy $ac_prog; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12640   $as_echo_n "(cached) " >&6
12641 else
12642   if test -n "$ac_ct_CC"; then
12643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12644 else
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12647 do
12648   IFS=$as_save_IFS
12649   test -z "$as_dir" && as_dir=.
12650     for ac_exec_ext in '' $ac_executable_extensions; do
12651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652     ac_cv_prog_ac_ct_CC="$ac_prog"
12653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654     break 2
12655   fi
12656 done
12657   done
12658 IFS=$as_save_IFS
12659
12660 fi
12661 fi
12662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12663 if test -n "$ac_ct_CC"; then
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12665 $as_echo "$ac_ct_CC" >&6; }
12666 else
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669 fi
12670
12671
12672   test -n "$ac_ct_CC" && break
12673 done
12674
12675   if test "x$ac_ct_CC" = x; then
12676     CC=""
12677   else
12678     case $cross_compiling:$ac_tool_warned in
12679 yes:)
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12682 ac_tool_warned=yes ;;
12683 esac
12684     CC=$ac_ct_CC
12685   fi
12686 fi
12687
12688 fi
12689
12690
12691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12693 as_fn_error $? "no acceptable C compiler found in \$PATH
12694 See \`config.log' for more details" "$LINENO" 5; }
12695
12696 # Provide some information about the compiler.
12697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12698 set X $ac_compile
12699 ac_compiler=$2
12700 for ac_option in --version -v -V -qversion; do
12701   { { ac_try="$ac_compiler $ac_option >&5"
12702 case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12707 $as_echo "$ac_try_echo"; } >&5
12708   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12709   ac_status=$?
12710   if test -s conftest.err; then
12711     sed '10a\
12712 ... rest of stderr output deleted ...
12713          10q' conftest.err >conftest.er1
12714     cat conftest.er1 >&5
12715   fi
12716   rm -f conftest.er1 conftest.err
12717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718   test $ac_status = 0; }
12719 done
12720
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12723 if ${ac_cv_c_compiler_gnu+:} false; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h.  */
12728
12729 int
12730 main ()
12731 {
12732 #ifndef __GNUC__
12733        choke me
12734 #endif
12735
12736   ;
12737   return 0;
12738 }
12739 _ACEOF
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741   ac_compiler_gnu=yes
12742 else
12743   ac_compiler_gnu=no
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12747
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12751 if test $ac_compiler_gnu = yes; then
12752   GCC=yes
12753 else
12754   GCC=
12755 fi
12756 ac_test_CFLAGS=${CFLAGS+set}
12757 ac_save_CFLAGS=$CFLAGS
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12760 if ${ac_cv_prog_cc_g+:} false; then :
12761   $as_echo_n "(cached) " >&6
12762 else
12763   ac_save_c_werror_flag=$ac_c_werror_flag
12764    ac_c_werror_flag=yes
12765    ac_cv_prog_cc_g=no
12766    CFLAGS="-g"
12767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h.  */
12769
12770 int
12771 main ()
12772 {
12773
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_compile "$LINENO"; then :
12779   ac_cv_prog_cc_g=yes
12780 else
12781   CFLAGS=""
12782       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h.  */
12784
12785 int
12786 main ()
12787 {
12788
12789   ;
12790   return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_c_try_compile "$LINENO"; then :
12794
12795 else
12796   ac_c_werror_flag=$ac_save_c_werror_flag
12797          CFLAGS="-g"
12798          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h.  */
12800
12801 int
12802 main ()
12803 {
12804
12805   ;
12806   return 0;
12807 }
12808 _ACEOF
12809 if ac_fn_c_try_compile "$LINENO"; then :
12810   ac_cv_prog_cc_g=yes
12811 fi
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 fi
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815 fi
12816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817    ac_c_werror_flag=$ac_save_c_werror_flag
12818 fi
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12820 $as_echo "$ac_cv_prog_cc_g" >&6; }
12821 if test "$ac_test_CFLAGS" = set; then
12822   CFLAGS=$ac_save_CFLAGS
12823 elif test $ac_cv_prog_cc_g = yes; then
12824   if test "$GCC" = yes; then
12825     CFLAGS="-g -O2"
12826   else
12827     CFLAGS="-g"
12828   fi
12829 else
12830   if test "$GCC" = yes; then
12831     CFLAGS="-O2"
12832   else
12833     CFLAGS=
12834   fi
12835 fi
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12838 if ${ac_cv_prog_cc_c89+:} false; then :
12839   $as_echo_n "(cached) " >&6
12840 else
12841   ac_cv_prog_cc_c89=no
12842 ac_save_CC=$CC
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h.  */
12845 #include <stdarg.h>
12846 #include <stdio.h>
12847 struct stat;
12848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12849 struct buf { int x; };
12850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12851 static char *e (p, i)
12852      char **p;
12853      int i;
12854 {
12855   return p[i];
12856 }
12857 static char *f (char * (*g) (char **, int), char **p, ...)
12858 {
12859   char *s;
12860   va_list v;
12861   va_start (v,p);
12862   s = g (p, va_arg (v,int));
12863   va_end (v);
12864   return s;
12865 }
12866
12867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12868    function prototypes and stuff, but not '\xHH' hex character constants.
12869    These don't provoke an error unfortunately, instead are silently treated
12870    as 'x'.  The following induces an error, until -std is added to get
12871    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12872    array size at least.  It's necessary to write '\x00'==0 to get something
12873    that's true only with -std.  */
12874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12875
12876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12877    inside strings and character constants.  */
12878 #define FOO(x) 'x'
12879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12880
12881 int test (int i, double x);
12882 struct s1 {int (*f) (int a);};
12883 struct s2 {int (*f) (double a);};
12884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12885 int argc;
12886 char **argv;
12887 int
12888 main ()
12889 {
12890 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12891   ;
12892   return 0;
12893 }
12894 _ACEOF
12895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12896         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12897 do
12898   CC="$ac_save_CC $ac_arg"
12899   if ac_fn_c_try_compile "$LINENO"; then :
12900   ac_cv_prog_cc_c89=$ac_arg
12901 fi
12902 rm -f core conftest.err conftest.$ac_objext
12903   test "x$ac_cv_prog_cc_c89" != "xno" && break
12904 done
12905 rm -f conftest.$ac_ext
12906 CC=$ac_save_CC
12907
12908 fi
12909 # AC_CACHE_VAL
12910 case "x$ac_cv_prog_cc_c89" in
12911   x)
12912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12913 $as_echo "none needed" >&6; } ;;
12914   xno)
12915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12916 $as_echo "unsupported" >&6; } ;;
12917   *)
12918     CC="$CC $ac_cv_prog_cc_c89"
12919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12921 esac
12922 if test "x$ac_cv_prog_cc_c89" != xno; then :
12923
12924 fi
12925
12926 ac_ext=c
12927 ac_cpp='$CPP $CPPFLAGS'
12928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12931
12932 ac_ext=c
12933 ac_cpp='$CPP $CPPFLAGS'
12934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12938 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12939 if ${am_cv_prog_cc_c_o+:} false; then :
12940   $as_echo_n "(cached) " >&6
12941 else
12942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h.  */
12944
12945 int
12946 main ()
12947 {
12948
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953   # Make sure it works both with $CC and with simple cc.
12954   # Following AC_PROG_CC_C_O, we do the test twice because some
12955   # compilers refuse to overwrite an existing .o file with -o,
12956   # though they will create one.
12957   am_cv_prog_cc_c_o=yes
12958   for am_i in 1 2; do
12959     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12960    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12961    ac_status=$?
12962    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963    (exit $ac_status); } \
12964          && test -f conftest2.$ac_objext; then
12965       : OK
12966     else
12967       am_cv_prog_cc_c_o=no
12968       break
12969     fi
12970   done
12971   rm -f core conftest*
12972   unset am_i
12973 fi
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12975 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12976 if test "$am_cv_prog_cc_c_o" != yes; then
12977    # Losing compiler, so override with the script.
12978    # FIXME: It is wrong to rewrite CC.
12979    # But if we don't then we get into trouble of one sort or another.
12980    # A longer-term fix would be to have automake use am__CC in this case,
12981    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12982    CC="$am_aux_dir/compile $CC"
12983 fi
12984 ac_ext=c
12985 ac_cpp='$CPP $CPPFLAGS'
12986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12989
12990
12991 depcc="$CC"   am_compiler_list=
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12994 $as_echo_n "checking dependency style of $depcc... " >&6; }
12995 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12996   $as_echo_n "(cached) " >&6
12997 else
12998   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12999   # We make a subdir and do the tests there.  Otherwise we can end up
13000   # making bogus files that we don't know about and never remove.  For
13001   # instance it was reported that on HP-UX the gcc test will end up
13002   # making a dummy file named 'D' -- because '-MD' means "put the output
13003   # in D".
13004   rm -rf conftest.dir
13005   mkdir conftest.dir
13006   # Copy depcomp to subdir because otherwise we won't find it if we're
13007   # using a relative directory.
13008   cp "$am_depcomp" conftest.dir
13009   cd conftest.dir
13010   # We will build objects and dependencies in a subdirectory because
13011   # it helps to detect inapplicable dependency modes.  For instance
13012   # both Tru64's cc and ICC support -MD to output dependencies as a
13013   # side effect of compilation, but ICC will put the dependencies in
13014   # the current directory while Tru64 will put them in the object
13015   # directory.
13016   mkdir sub
13017
13018   am_cv_CC_dependencies_compiler_type=none
13019   if test "$am_compiler_list" = ""; then
13020      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13021   fi
13022   am__universal=false
13023   case " $depcc " in #(
13024      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13025      esac
13026
13027   for depmode in $am_compiler_list; do
13028     # Setup a source with many dependencies, because some compilers
13029     # like to wrap large dependency lists on column 80 (with \), and
13030     # we should not choose a depcomp mode which is confused by this.
13031     #
13032     # We need to recreate these files for each test, as the compiler may
13033     # overwrite some of them when testing with obscure command lines.
13034     # This happens at least with the AIX C compiler.
13035     : > sub/conftest.c
13036     for i in 1 2 3 4 5 6; do
13037       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13038       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13039       # Solaris 10 /bin/sh.
13040       echo '/* dummy */' > sub/conftst$i.h
13041     done
13042     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13043
13044     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13045     # mode.  It turns out that the SunPro C++ compiler does not properly
13046     # handle '-M -o', and we need to detect this.  Also, some Intel
13047     # versions had trouble with output in subdirs.
13048     am__obj=sub/conftest.${OBJEXT-o}
13049     am__minus_obj="-o $am__obj"
13050     case $depmode in
13051     gcc)
13052       # This depmode causes a compiler race in universal mode.
13053       test "$am__universal" = false || continue
13054       ;;
13055     nosideeffect)
13056       # After this tag, mechanisms are not by side-effect, so they'll
13057       # only be used when explicitly requested.
13058       if test "x$enable_dependency_tracking" = xyes; then
13059         continue
13060       else
13061         break
13062       fi
13063       ;;
13064     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13065       # This compiler won't grok '-c -o', but also, the minuso test has
13066       # not run yet.  These depmodes are late enough in the game, and
13067       # so weak that their functioning should not be impacted.
13068       am__obj=conftest.${OBJEXT-o}
13069       am__minus_obj=
13070       ;;
13071     none) break ;;
13072     esac
13073     if depmode=$depmode \
13074        source=sub/conftest.c object=$am__obj \
13075        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13076        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13077          >/dev/null 2>conftest.err &&
13078        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13079        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13080        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13081        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13082       # icc doesn't choke on unknown options, it will just issue warnings
13083       # or remarks (even with -Werror).  So we grep stderr for any message
13084       # that says an option was ignored or not supported.
13085       # When given -MP, icc 7.0 and 7.1 complain thusly:
13086       #   icc: Command line warning: ignoring option '-M'; no argument required
13087       # The diagnosis changed in icc 8.0:
13088       #   icc: Command line remark: option '-MP' not supported
13089       if (grep 'ignoring option' conftest.err ||
13090           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13091         am_cv_CC_dependencies_compiler_type=$depmode
13092         break
13093       fi
13094     fi
13095   done
13096
13097   cd ..
13098   rm -rf conftest.dir
13099 else
13100   am_cv_CC_dependencies_compiler_type=none
13101 fi
13102
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13105 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13106 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13107
13108  if
13109   test "x$enable_dependency_tracking" != xno \
13110   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13111   am__fastdepCC_TRUE=
13112   am__fastdepCC_FALSE='#'
13113 else
13114   am__fastdepCC_TRUE='#'
13115   am__fastdepCC_FALSE=
13116 fi
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13128         if test -n "$ac_tool_prefix"; then
13129   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13130 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13134   $as_echo_n "(cached) " >&6
13135 else
13136   case $PKG_CONFIG in
13137   [\\/]* | ?:[\\/]*)
13138   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13139   ;;
13140   *)
13141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13143 do
13144   IFS=$as_save_IFS
13145   test -z "$as_dir" && as_dir=.
13146     for ac_exec_ext in '' $ac_executable_extensions; do
13147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13148     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150     break 2
13151   fi
13152 done
13153   done
13154 IFS=$as_save_IFS
13155
13156   ;;
13157 esac
13158 fi
13159 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13160 if test -n "$PKG_CONFIG"; then
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13162 $as_echo "$PKG_CONFIG" >&6; }
13163 else
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 $as_echo "no" >&6; }
13166 fi
13167
13168
13169 fi
13170 if test -z "$ac_cv_path_PKG_CONFIG"; then
13171   ac_pt_PKG_CONFIG=$PKG_CONFIG
13172   # Extract the first word of "pkg-config", so it can be a program name with args.
13173 set dummy pkg-config; ac_word=$2
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 $as_echo_n "checking for $ac_word... " >&6; }
13176 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13177   $as_echo_n "(cached) " >&6
13178 else
13179   case $ac_pt_PKG_CONFIG in
13180   [\\/]* | ?:[\\/]*)
13181   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13182   ;;
13183   *)
13184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13186 do
13187   IFS=$as_save_IFS
13188   test -z "$as_dir" && as_dir=.
13189     for ac_exec_ext in '' $ac_executable_extensions; do
13190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13191     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193     break 2
13194   fi
13195 done
13196   done
13197 IFS=$as_save_IFS
13198
13199   ;;
13200 esac
13201 fi
13202 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13203 if test -n "$ac_pt_PKG_CONFIG"; then
13204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13205 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13206 else
13207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13209 fi
13210
13211   if test "x$ac_pt_PKG_CONFIG" = x; then
13212     PKG_CONFIG=""
13213   else
13214     case $cross_compiling:$ac_tool_warned in
13215 yes:)
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13218 ac_tool_warned=yes ;;
13219 esac
13220     PKG_CONFIG=$ac_pt_PKG_CONFIG
13221   fi
13222 else
13223   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13224 fi
13225
13226 fi
13227 if test -n "$PKG_CONFIG"; then
13228         _pkg_min_version=0.9.0
13229         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13230 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13231         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13232                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13233 $as_echo "yes" >&6; }
13234         else
13235                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13237                 PKG_CONFIG=""
13238         fi
13239 fi
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
13241 $as_echo_n "checking for native Win32... " >&6; }
13242   case $build_os in
13243     mingw*) os_win32=yes ;;
13244     *) os_win32=no ;;
13245   esac
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
13247 $as_echo "$os_win32" >&6; }
13248  if test "$os_win32" = "yes"; then
13249   OS_WIN32_TRUE=
13250   OS_WIN32_FALSE='#'
13251 else
13252   OS_WIN32_TRUE='#'
13253   OS_WIN32_FALSE=
13254 fi
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
13257 $as_echo_n "checking for some Win32 platform... " >&6; }
13258   case $build_os in
13259     mingw*|cygwin*) platform_win32=yes ;;
13260     *) platform_win32=no ;;
13261   esac
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
13263 $as_echo "$platform_win32" >&6; }
13264  if test "$platform_win32" = "yes"; then
13265   PLATFORM_WIN32_TRUE=
13266   PLATFORM_WIN32_FALSE='#'
13267 else
13268   PLATFORM_WIN32_TRUE='#'
13269   PLATFORM_WIN32_FALSE=
13270 fi
13271
13272
13273
13274 # Checks for header files.
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13276 $as_echo_n "checking for ANSI C header files... " >&6; }
13277 if ${ac_cv_header_stdc+:} false; then :
13278   $as_echo_n "(cached) " >&6
13279 else
13280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h.  */
13282 #include <stdlib.h>
13283 #include <stdarg.h>
13284 #include <string.h>
13285 #include <float.h>
13286
13287 int
13288 main ()
13289 {
13290
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 if ac_fn_c_try_compile "$LINENO"; then :
13296   ac_cv_header_stdc=yes
13297 else
13298   ac_cv_header_stdc=no
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301
13302 if test $ac_cv_header_stdc = yes; then
13303   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h.  */
13306 #include <string.h>
13307
13308 _ACEOF
13309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13310   $EGREP "memchr" >/dev/null 2>&1; then :
13311
13312 else
13313   ac_cv_header_stdc=no
13314 fi
13315 rm -f conftest*
13316
13317 fi
13318
13319 if test $ac_cv_header_stdc = yes; then
13320   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h.  */
13323 #include <stdlib.h>
13324
13325 _ACEOF
13326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13327   $EGREP "free" >/dev/null 2>&1; then :
13328
13329 else
13330   ac_cv_header_stdc=no
13331 fi
13332 rm -f conftest*
13333
13334 fi
13335
13336 if test $ac_cv_header_stdc = yes; then
13337   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13338   if test "$cross_compiling" = yes; then :
13339   :
13340 else
13341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h.  */
13343 #include <ctype.h>
13344 #include <stdlib.h>
13345 #if ((' ' & 0x0FF) == 0x020)
13346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13348 #else
13349 # define ISLOWER(c) \
13350                    (('a' <= (c) && (c) <= 'i') \
13351                      || ('j' <= (c) && (c) <= 'r') \
13352                      || ('s' <= (c) && (c) <= 'z'))
13353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13354 #endif
13355
13356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13357 int
13358 main ()
13359 {
13360   int i;
13361   for (i = 0; i < 256; i++)
13362     if (XOR (islower (i), ISLOWER (i))
13363         || toupper (i) != TOUPPER (i))
13364       return 2;
13365   return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_c_try_run "$LINENO"; then :
13369
13370 else
13371   ac_cv_header_stdc=no
13372 fi
13373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13374   conftest.$ac_objext conftest.beam conftest.$ac_ext
13375 fi
13376
13377 fi
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13380 $as_echo "$ac_cv_header_stdc" >&6; }
13381 if test $ac_cv_header_stdc = yes; then
13382
13383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13384
13385 fi
13386
13387 for ac_header in stdlib.h string.h strings.h wchar.h asm/page.h sys/times.h
13388 do :
13389   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13390 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13392   cat >>confdefs.h <<_ACEOF
13393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13394 _ACEOF
13395
13396 fi
13397
13398 done
13399
13400
13401 # Checks for typedefs and structures.
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13403 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13404 if ${ac_cv_c_const+:} false; then :
13405   $as_echo_n "(cached) " >&6
13406 else
13407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h.  */
13409
13410 int
13411 main ()
13412 {
13413
13414 #ifndef __cplusplus
13415   /* Ultrix mips cc rejects this sort of thing.  */
13416   typedef int charset[2];
13417   const charset cs = { 0, 0 };
13418   /* SunOS 4.1.1 cc rejects this.  */
13419   char const *const *pcpcc;
13420   char **ppc;
13421   /* NEC SVR4.0.2 mips cc rejects this.  */
13422   struct point {int x, y;};
13423   static struct point const zero = {0,0};
13424   /* AIX XL C 1.02.0.0 rejects this.
13425      It does not let you subtract one const X* pointer from another in
13426      an arm of an if-expression whose if-part is not a constant
13427      expression */
13428   const char *g = "string";
13429   pcpcc = &g + (g ? g-g : 0);
13430   /* HPUX 7.0 cc rejects these. */
13431   ++pcpcc;
13432   ppc = (char**) pcpcc;
13433   pcpcc = (char const *const *) ppc;
13434   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13435     char tx;
13436     char *t = &tx;
13437     char const *s = 0 ? (char *) 0 : (char const *) 0;
13438
13439     *t++ = 0;
13440     if (s) return 0;
13441   }
13442   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13443     int x[] = {25, 17};
13444     const int *foo = &x[0];
13445     ++foo;
13446   }
13447   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13448     typedef const int *iptr;
13449     iptr p = 0;
13450     ++p;
13451   }
13452   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13453        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13454     struct s { int j; const int *ap[3]; } bx;
13455     struct s *b = &bx; b->j = 5;
13456   }
13457   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13458     const int foo = 10;
13459     if (!foo) return 0;
13460   }
13461   return !cs[0] && !zero.x;
13462 #endif
13463
13464   ;
13465   return 0;
13466 }
13467 _ACEOF
13468 if ac_fn_c_try_compile "$LINENO"; then :
13469   ac_cv_c_const=yes
13470 else
13471   ac_cv_c_const=no
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474 fi
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13476 $as_echo "$ac_cv_c_const" >&6; }
13477 if test $ac_cv_c_const = no; then
13478
13479 $as_echo "#define const /**/" >>confdefs.h
13480
13481 fi
13482
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
13484 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
13485 if ${ac_cv_c_stringize+:} false; then :
13486   $as_echo_n "(cached) " >&6
13487 else
13488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h.  */
13490 #define x(y) #y
13491
13492 char *s = x(teststring);
13493 _ACEOF
13494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13495   $EGREP "#teststring" >/dev/null 2>&1; then :
13496   ac_cv_c_stringize=no
13497 else
13498   ac_cv_c_stringize=yes
13499 fi
13500 rm -f conftest*
13501
13502 fi
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
13504 $as_echo "$ac_cv_c_stringize" >&6; }
13505 if test $ac_cv_c_stringize = yes; then
13506
13507 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
13508
13509 fi
13510
13511 # The cast to long int works around a bug in the HP C Compiler
13512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13514 # This bug is HP SR number 8606223364.
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13516 $as_echo_n "checking size of int... " >&6; }
13517 if ${ac_cv_sizeof_int+:} false; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13521
13522 else
13523   if test "$ac_cv_type_int" = yes; then
13524      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13526 as_fn_error 77 "cannot compute sizeof (int)
13527 See \`config.log' for more details" "$LINENO" 5; }
13528    else
13529      ac_cv_sizeof_int=0
13530    fi
13531 fi
13532
13533 fi
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13535 $as_echo "$ac_cv_sizeof_int" >&6; }
13536
13537
13538
13539 cat >>confdefs.h <<_ACEOF
13540 #define SIZEOF_INT $ac_cv_sizeof_int
13541 _ACEOF
13542
13543
13544 SIZEOF_INT=$ac_cv_sizeof_int
13545
13546 # The cast to long int works around a bug in the HP C Compiler
13547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13549 # This bug is HP SR number 8606223364.
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13551 $as_echo_n "checking size of short... " >&6; }
13552 if ${ac_cv_sizeof_short+:} false; then :
13553   $as_echo_n "(cached) " >&6
13554 else
13555   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13556
13557 else
13558   if test "$ac_cv_type_short" = yes; then
13559      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13561 as_fn_error 77 "cannot compute sizeof (short)
13562 See \`config.log' for more details" "$LINENO" 5; }
13563    else
13564      ac_cv_sizeof_short=0
13565    fi
13566 fi
13567
13568 fi
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13570 $as_echo "$ac_cv_sizeof_short" >&6; }
13571
13572
13573
13574 cat >>confdefs.h <<_ACEOF
13575 #define SIZEOF_SHORT $ac_cv_sizeof_short
13576 _ACEOF
13577
13578
13579 # The cast to long int works around a bug in the HP C Compiler
13580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13582 # This bug is HP SR number 8606223364.
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13584 $as_echo_n "checking size of void *... " >&6; }
13585 if ${ac_cv_sizeof_void_p+:} false; then :
13586   $as_echo_n "(cached) " >&6
13587 else
13588   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13589
13590 else
13591   if test "$ac_cv_type_void_p" = yes; then
13592      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13594 as_fn_error 77 "cannot compute sizeof (void *)
13595 See \`config.log' for more details" "$LINENO" 5; }
13596    else
13597      ac_cv_sizeof_void_p=0
13598    fi
13599 fi
13600
13601 fi
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13603 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13604
13605
13606
13607 cat >>confdefs.h <<_ACEOF
13608 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13609 _ACEOF
13610
13611
13612 # The cast to long int works around a bug in the HP C Compiler
13613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13615 # This bug is HP SR number 8606223364.
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13617 $as_echo_n "checking size of wchar_t... " >&6; }
13618 if ${ac_cv_sizeof_wchar_t+:} false; then :
13619   $as_echo_n "(cached) " >&6
13620 else
13621   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
13622
13623 else
13624   if test "$ac_cv_type_wchar_t" = yes; then
13625      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13627 as_fn_error 77 "cannot compute sizeof (wchar_t)
13628 See \`config.log' for more details" "$LINENO" 5; }
13629    else
13630      ac_cv_sizeof_wchar_t=0
13631    fi
13632 fi
13633
13634 fi
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13636 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
13637
13638
13639
13640 cat >>confdefs.h <<_ACEOF
13641 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
13642 _ACEOF
13643
13644
13645
13646
13647
13648 save_cross_compiling=$cross_compiling
13649 save_ac_tool_prefix=$ac_tool_prefix
13650 cross_compiling=no
13651 ac_tool_prefix=
13652
13653 ac_ext=c
13654 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
13655 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
13656 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
13657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13658 if test -n "$ac_tool_prefix"; then
13659   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662 $as_echo_n "checking for $ac_word... " >&6; }
13663 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13664   $as_echo_n "(cached) " >&6
13665 else
13666   if test -n "$CC_FOR_BUILD"; then
13667   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13668 else
13669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670 for as_dir in $PATH
13671 do
13672   IFS=$as_save_IFS
13673   test -z "$as_dir" && as_dir=.
13674     for ac_exec_ext in '' $ac_executable_extensions; do
13675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13676     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
13677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13678     break 2
13679   fi
13680 done
13681   done
13682 IFS=$as_save_IFS
13683
13684 fi
13685 fi
13686 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13687 if test -n "$CC_FOR_BUILD"; then
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13689 $as_echo "$CC_FOR_BUILD" >&6; }
13690 else
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 $as_echo "no" >&6; }
13693 fi
13694
13695
13696 fi
13697 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
13698   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
13699   # Extract the first word of "gcc", so it can be a program name with args.
13700 set dummy gcc; ac_word=$2
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13702 $as_echo_n "checking for $ac_word... " >&6; }
13703 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
13704   $as_echo_n "(cached) " >&6
13705 else
13706   if test -n "$ac_ct_CC_FOR_BUILD"; then
13707   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
13708 else
13709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13710 for as_dir in $PATH
13711 do
13712   IFS=$as_save_IFS
13713   test -z "$as_dir" && as_dir=.
13714     for ac_exec_ext in '' $ac_executable_extensions; do
13715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13716     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
13717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13718     break 2
13719   fi
13720 done
13721   done
13722 IFS=$as_save_IFS
13723
13724 fi
13725 fi
13726 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
13727 if test -n "$ac_ct_CC_FOR_BUILD"; then
13728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
13729 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
13730 else
13731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 $as_echo "no" >&6; }
13733 fi
13734
13735   if test "x$ac_ct_CC_FOR_BUILD" = x; then
13736     CC_FOR_BUILD=""
13737   else
13738     case $cross_compiling:$ac_tool_warned in
13739 yes:)
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
13741 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
13742 ac_tool_warned=yes ;;
13743 esac
13744     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
13745   fi
13746 else
13747   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
13748 fi
13749
13750 if test -z "$CC_FOR_BUILD"; then
13751           if test -n "$ac_tool_prefix"; then
13752     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13753 set dummy ${ac_tool_prefix}cc; ac_word=$2
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13755 $as_echo_n "checking for $ac_word... " >&6; }
13756 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13757   $as_echo_n "(cached) " >&6
13758 else
13759   if test -n "$CC_FOR_BUILD"; then
13760   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13761 else
13762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763 for as_dir in $PATH
13764 do
13765   IFS=$as_save_IFS
13766   test -z "$as_dir" && as_dir=.
13767     for ac_exec_ext in '' $ac_executable_extensions; do
13768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13769     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
13770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13771     break 2
13772   fi
13773 done
13774   done
13775 IFS=$as_save_IFS
13776
13777 fi
13778 fi
13779 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13780 if test -n "$CC_FOR_BUILD"; then
13781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13782 $as_echo "$CC_FOR_BUILD" >&6; }
13783 else
13784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 $as_echo "no" >&6; }
13786 fi
13787
13788
13789   fi
13790 fi
13791 if test -z "$CC_FOR_BUILD"; then
13792   # Extract the first word of "cc", so it can be a program name with args.
13793 set dummy cc; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13797   $as_echo_n "(cached) " >&6
13798 else
13799   if test -n "$CC_FOR_BUILD"; then
13800   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13801 else
13802   ac_prog_rejected=no
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806   IFS=$as_save_IFS
13807   test -z "$as_dir" && as_dir=.
13808     for ac_exec_ext in '' $ac_executable_extensions; do
13809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13811        ac_prog_rejected=yes
13812        continue
13813      fi
13814     ac_cv_prog_CC_FOR_BUILD="cc"
13815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13816     break 2
13817   fi
13818 done
13819   done
13820 IFS=$as_save_IFS
13821
13822 if test $ac_prog_rejected = yes; then
13823   # We found a bogon in the path, so make sure we never use it.
13824   set dummy $ac_cv_prog_CC_FOR_BUILD
13825   shift
13826   if test $# != 0; then
13827     # We chose a different compiler from the bogus one.
13828     # However, it has the same basename, so the bogon will be chosen
13829     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
13830     shift
13831     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
13832   fi
13833 fi
13834 fi
13835 fi
13836 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13837 if test -n "$CC_FOR_BUILD"; then
13838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13839 $as_echo "$CC_FOR_BUILD" >&6; }
13840 else
13841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13843 fi
13844
13845
13846 fi
13847 if test -z "$CC_FOR_BUILD"; then
13848   if test -n "$ac_tool_prefix"; then
13849   for ac_prog in cl.exe
13850   do
13851     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13854 $as_echo_n "checking for $ac_word... " >&6; }
13855 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13856   $as_echo_n "(cached) " >&6
13857 else
13858   if test -n "$CC_FOR_BUILD"; then
13859   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13860 else
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13863 do
13864   IFS=$as_save_IFS
13865   test -z "$as_dir" && as_dir=.
13866     for ac_exec_ext in '' $ac_executable_extensions; do
13867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13868     ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
13869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13870     break 2
13871   fi
13872 done
13873   done
13874 IFS=$as_save_IFS
13875
13876 fi
13877 fi
13878 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13879 if test -n "$CC_FOR_BUILD"; then
13880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13881 $as_echo "$CC_FOR_BUILD" >&6; }
13882 else
13883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884 $as_echo "no" >&6; }
13885 fi
13886
13887
13888     test -n "$CC_FOR_BUILD" && break
13889   done
13890 fi
13891 if test -z "$CC_FOR_BUILD"; then
13892   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
13893   for ac_prog in cl.exe
13894 do
13895   # Extract the first word of "$ac_prog", so it can be a program name with args.
13896 set dummy $ac_prog; ac_word=$2
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13898 $as_echo_n "checking for $ac_word... " >&6; }
13899 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
13900   $as_echo_n "(cached) " >&6
13901 else
13902   if test -n "$ac_ct_CC_FOR_BUILD"; then
13903   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
13904 else
13905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906 for as_dir in $PATH
13907 do
13908   IFS=$as_save_IFS
13909   test -z "$as_dir" && as_dir=.
13910     for ac_exec_ext in '' $ac_executable_extensions; do
13911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13912     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
13913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13914     break 2
13915   fi
13916 done
13917   done
13918 IFS=$as_save_IFS
13919
13920 fi
13921 fi
13922 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
13923 if test -n "$ac_ct_CC_FOR_BUILD"; then
13924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
13925 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
13926 else
13927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13928 $as_echo "no" >&6; }
13929 fi
13930
13931
13932   test -n "$ac_ct_CC_FOR_BUILD" && break
13933 done
13934
13935   if test "x$ac_ct_CC_FOR_BUILD" = x; then
13936     CC_FOR_BUILD=""
13937   else
13938     case $cross_compiling:$ac_tool_warned in
13939 yes:)
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
13941 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
13942 ac_tool_warned=yes ;;
13943 esac
13944     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
13945   fi
13946 fi
13947
13948 fi
13949
13950
13951 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13953 as_fn_error $? "no acceptable C compiler found in \$PATH
13954 See \`config.log' for more details" "$LINENO" 5; }
13955
13956 # Provide some information about the compiler.
13957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13958 set X $ac_build_compile
13959 ac_compiler=$2
13960 for ac_option in --version -v -V -qversion; do
13961   { { ac_try="$ac_compiler $ac_option >&5"
13962 case "(($ac_try" in
13963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964   *) ac_try_echo=$ac_try;;
13965 esac
13966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13967 $as_echo "$ac_try_echo"; } >&5
13968   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13969   ac_status=$?
13970   if test -s conftest.err; then
13971     sed '10a\
13972 ... rest of stderr output deleted ...
13973          10q' conftest.err >conftest.er1
13974     cat conftest.er1 >&5
13975   fi
13976   rm -f conftest.er1 conftest.err
13977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13978   test $ac_status = 0; }
13979 done
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13983 if ${ac_cv_c_compiler_gnu+:} false; then :
13984   $as_echo_n "(cached) " >&6
13985 else
13986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h.  */
13988
13989 int
13990 main ()
13991 {
13992 #ifndef __GNUC__
13993        choke me
13994 #endif
13995
13996   ;
13997   return 0;
13998 }
13999 _ACEOF
14000 if ac_fn_c_try_compile "$LINENO"; then :
14001   ac_compiler_gnu=yes
14002 else
14003   ac_compiler_gnu=no
14004 fi
14005 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14007
14008 fi
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14011 if test $ac_compiler_gnu = yes; then
14012   GCC=yes
14013 else
14014   GCC=
14015 fi
14016 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
14017 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
14019 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
14020 if ${ac_cv_build_prog_cc_g+:} false; then :
14021   $as_echo_n "(cached) " >&6
14022 else
14023   ac_save_c_werror_flag=$ac_c_werror_flag
14024    ac_c_werror_flag=yes
14025    ac_cv_build_prog_cc_g=no
14026    CFLAGS_FOR_BUILD="-g"
14027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h.  */
14029
14030 int
14031 main ()
14032 {
14033
14034   ;
14035   return 0;
14036 }
14037 _ACEOF
14038 if ac_fn_c_try_compile "$LINENO"; then :
14039   ac_cv_build_prog_cc_g=yes
14040 else
14041   CFLAGS_FOR_BUILD=""
14042       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h.  */
14044
14045 int
14046 main ()
14047 {
14048
14049   ;
14050   return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_compile "$LINENO"; then :
14054
14055 else
14056   ac_c_werror_flag=$ac_save_c_werror_flag
14057          CFLAGS_FOR_BUILD="-g"
14058          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h.  */
14060
14061 int
14062 main ()
14063 {
14064
14065   ;
14066   return 0;
14067 }
14068 _ACEOF
14069 if ac_fn_c_try_compile "$LINENO"; then :
14070   ac_cv_build_prog_cc_g=yes
14071 fi
14072 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14073 fi
14074 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14075 fi
14076 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14077    ac_c_werror_flag=$ac_save_c_werror_flag
14078 fi
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
14080 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
14081 if test "$ac_test_CFLAGS" = set; then
14082   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
14083 elif test $ac_cv_build_prog_cc_g = yes; then
14084   if test "$GCC" = yes; then
14085     CFLAGS_FOR_BUILD="-g -O2"
14086   else
14087     CFLAGS_FOR_BUILD="-g"
14088   fi
14089 else
14090   if test "$GCC" = yes; then
14091     CFLAGS_FOR_BUILD="-O2"
14092   else
14093     CFLAGS_FOR_BUILD=
14094   fi
14095 fi
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
14097 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
14098 if ${ac_cv_prog_cc_c89+:} false; then :
14099   $as_echo_n "(cached) " >&6
14100 else
14101   ac_cv_prog_cc_c89=no
14102 ac_save_CC=$CC_FOR_BUILD
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h.  */
14105 #include <stdarg.h>
14106 #include <stdio.h>
14107 struct stat;
14108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14109 struct buf { int x; };
14110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14111 static char *e (p, i)
14112      char **p;
14113      int i;
14114 {
14115   return p[i];
14116 }
14117 static char *f (char * (*g) (char **, int), char **p, ...)
14118 {
14119   char *s;
14120   va_list v;
14121   va_start (v,p);
14122   s = g (p, va_arg (v,int));
14123   va_end (v);
14124   return s;
14125 }
14126
14127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14128    function prototypes and stuff, but not '\xHH' hex character constants.
14129    These don't provoke an error unfortunately, instead are silently treated
14130    as 'x'.  The following induces an error, until -std is added to get
14131    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14132    array size at least.  It's necessary to write '\x00'==0 to get something
14133    that's true only with -std.  */
14134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14135
14136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14137    inside strings and character constants.  */
14138 #define FOO(x) 'x'
14139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14140
14141 int test (int i, double x);
14142 struct s1 {int (*f) (int a);};
14143 struct s2 {int (*f) (double a);};
14144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14145 int argc;
14146 char **argv;
14147 int
14148 main ()
14149 {
14150 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14156         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14157 do
14158   CC_FOR_BUILD="$ac_save_CC $ac_arg"
14159   if ac_fn_c_try_compile "$LINENO"; then :
14160   ac_cv_prog_cc_c89=$ac_arg
14161 fi
14162 rm -f core conftest.err conftest.$ac_build_objext
14163   test "x$ac_cv_prog_cc_c89" != "xno" && break
14164 done
14165 rm -f conftest.$ac_ext
14166 CC_FOR_BUILD=$ac_save_CC
14167
14168 fi
14169 # AC_CACHE_VAL
14170 case "x$ac_cv_prog_cc_c89" in
14171   x)
14172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14173 $as_echo "none needed" >&6; } ;;
14174   xno)
14175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14176 $as_echo "unsupported" >&6; } ;;
14177   *)
14178     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
14179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14180 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14181 esac
14182 if test "x$ac_cv_prog_cc_c89" != xno; then :
14183
14184 fi
14185
14186 ac_ext=c
14187 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14188 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14189 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14191
14192 ac_ext=c
14193 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14194 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14195 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
14198 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
14199 if ${am_cv_prog_cc_c_o+:} false; then :
14200   $as_echo_n "(cached) " >&6
14201 else
14202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h.  */
14204
14205 int
14206 main ()
14207 {
14208
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213   # Make sure it works both with $CC and with simple cc.
14214   # Following AC_PROG_CC_C_O, we do the test twice because some
14215   # compilers refuse to overwrite an existing .o file with -o,
14216   # though they will create one.
14217   am_cv_prog_cc_c_o=yes
14218   for am_i in 1 2; do
14219     if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
14220    ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
14221    ac_status=$?
14222    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223    (exit $ac_status); } \
14224          && test -f conftest2.$ac_build_objext; then
14225       : OK
14226     else
14227       am_cv_prog_cc_c_o=no
14228       break
14229     fi
14230   done
14231   rm -f core conftest*
14232   unset am_i
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14235 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14236 if test "$am_cv_prog_cc_c_o" != yes; then
14237    # Losing compiler, so override with the script.
14238    # FIXME: It is wrong to rewrite CC.
14239    # But if we don't then we get into trouble of one sort or another.
14240    # A longer-term fix would be to have automake use am__CC in this case,
14241    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14242    CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
14243 fi
14244 ac_ext=c
14245 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14246 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14247 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14249
14250
14251 depcc="$CC_FOR_BUILD"   am_compiler_list=
14252
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14254 $as_echo_n "checking dependency style of $depcc... " >&6; }
14255 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14256   $as_echo_n "(cached) " >&6
14257 else
14258   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14259   # We make a subdir and do the tests there.  Otherwise we can end up
14260   # making bogus files that we don't know about and never remove.  For
14261   # instance it was reported that on HP-UX the gcc test will end up
14262   # making a dummy file named 'D' -- because '-MD' means "put the output
14263   # in D".
14264   rm -rf conftest.dir
14265   mkdir conftest.dir
14266   # Copy depcomp to subdir because otherwise we won't find it if we're
14267   # using a relative directory.
14268   cp "$am_depcomp" conftest.dir
14269   cd conftest.dir
14270   # We will build objects and dependencies in a subdirectory because
14271   # it helps to detect inapplicable dependency modes.  For instance
14272   # both Tru64's cc and ICC support -MD to output dependencies as a
14273   # side effect of compilation, but ICC will put the dependencies in
14274   # the current directory while Tru64 will put them in the object
14275   # directory.
14276   mkdir sub
14277
14278   am_cv_CC_dependencies_compiler_type=none
14279   if test "$am_compiler_list" = ""; then
14280      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14281   fi
14282   am__universal=false
14283   case " $depcc " in #(
14284      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14285      esac
14286
14287   for depmode in $am_compiler_list; do
14288     # Setup a source with many dependencies, because some compilers
14289     # like to wrap large dependency lists on column 80 (with \), and
14290     # we should not choose a depcomp mode which is confused by this.
14291     #
14292     # We need to recreate these files for each test, as the compiler may
14293     # overwrite some of them when testing with obscure command lines.
14294     # This happens at least with the AIX C compiler.
14295     : > sub/conftest.c
14296     for i in 1 2 3 4 5 6; do
14297       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14298       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14299       # Solaris 10 /bin/sh.
14300       echo '/* dummy */' > sub/conftst$i.h
14301     done
14302     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14303
14304     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14305     # mode.  It turns out that the SunPro C++ compiler does not properly
14306     # handle '-M -o', and we need to detect this.  Also, some Intel
14307     # versions had trouble with output in subdirs.
14308     am__obj=sub/conftest.${OBJEXT-o}
14309     am__minus_obj="-o $am__obj"
14310     case $depmode in
14311     gcc)
14312       # This depmode causes a compiler race in universal mode.
14313       test "$am__universal" = false || continue
14314       ;;
14315     nosideeffect)
14316       # After this tag, mechanisms are not by side-effect, so they'll
14317       # only be used when explicitly requested.
14318       if test "x$enable_dependency_tracking" = xyes; then
14319         continue
14320       else
14321         break
14322       fi
14323       ;;
14324     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14325       # This compiler won't grok '-c -o', but also, the minuso test has
14326       # not run yet.  These depmodes are late enough in the game, and
14327       # so weak that their functioning should not be impacted.
14328       am__obj=conftest.${OBJEXT-o}
14329       am__minus_obj=
14330       ;;
14331     none) break ;;
14332     esac
14333     if depmode=$depmode \
14334        source=sub/conftest.c object=$am__obj \
14335        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14336        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14337          >/dev/null 2>conftest.err &&
14338        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14339        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14340        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14341        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14342       # icc doesn't choke on unknown options, it will just issue warnings
14343       # or remarks (even with -Werror).  So we grep stderr for any message
14344       # that says an option was ignored or not supported.
14345       # When given -MP, icc 7.0 and 7.1 complain thusly:
14346       #   icc: Command line warning: ignoring option '-M'; no argument required
14347       # The diagnosis changed in icc 8.0:
14348       #   icc: Command line remark: option '-MP' not supported
14349       if (grep 'ignoring option' conftest.err ||
14350           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14351         am_cv_CC_dependencies_compiler_type=$depmode
14352         break
14353       fi
14354     fi
14355   done
14356
14357   cd ..
14358   rm -rf conftest.dir
14359 else
14360   am_cv_CC_dependencies_compiler_type=none
14361 fi
14362
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14365 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14366 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14367
14368  if
14369   test "x$enable_dependency_tracking" != xno \
14370   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14371   am__fastdepCC_TRUE=
14372   am__fastdepCC_FALSE='#'
14373 else
14374   am__fastdepCC_TRUE='#'
14375   am__fastdepCC_FALSE=
14376 fi
14377
14378
14379 ac_ext=c
14380 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14381 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14382 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14385 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14386 # On Suns, sometimes $CPP names a directory.
14387 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
14388   CPP_FOR_BUILD=
14389 fi
14390 if test -z "$CPP_FOR_BUILD"; then
14391   if ${ac_cv_build_prog_CPP+:} false; then :
14392   $as_echo_n "(cached) " >&6
14393 else
14394       # Double quotes because CPP needs to be expanded
14395     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
14396     do
14397       ac_preproc_ok=false
14398 for ac_c_preproc_warn_flag in '' yes
14399 do
14400   # Use a header file that comes with gcc, so configuring glibc
14401   # with a fresh cross-compiler works.
14402   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14403   # <limits.h> exists even on freestanding compilers.
14404   # On the NeXT, cc -E runs the code through the compiler's parser,
14405   # not just through cpp. "Syntax error" is here to catch this case.
14406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h.  */
14408 #ifdef __STDC__
14409 # include <limits.h>
14410 #else
14411 # include <assert.h>
14412 #endif
14413                      Syntax error
14414 _ACEOF
14415 if ac_fn_c_try_cpp "$LINENO"; then :
14416
14417 else
14418   # Broken: fails on valid input.
14419 continue
14420 fi
14421 rm -f conftest.err conftest.i conftest.$ac_ext
14422
14423   # OK, works on sane cases.  Now check whether nonexistent headers
14424   # can be detected and how.
14425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h.  */
14427 #include <ac_nonexistent.h>
14428 _ACEOF
14429 if ac_fn_c_try_cpp "$LINENO"; then :
14430   # Broken: success on invalid input.
14431 continue
14432 else
14433   # Passes both tests.
14434 ac_preproc_ok=:
14435 break
14436 fi
14437 rm -f conftest.err conftest.i conftest.$ac_ext
14438
14439 done
14440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14441 rm -f conftest.i conftest.err conftest.$ac_ext
14442 if $ac_preproc_ok; then :
14443   break
14444 fi
14445
14446     done
14447     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
14448
14449 fi
14450   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
14451 else
14452   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
14453 fi
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
14455 $as_echo "$CPP_FOR_BUILD" >&6; }
14456 ac_preproc_ok=false
14457 for ac_c_preproc_warn_flag in '' yes
14458 do
14459   # Use a header file that comes with gcc, so configuring glibc
14460   # with a fresh cross-compiler works.
14461   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14462   # <limits.h> exists even on freestanding compilers.
14463   # On the NeXT, cc -E runs the code through the compiler's parser,
14464   # not just through cpp. "Syntax error" is here to catch this case.
14465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h.  */
14467 #ifdef __STDC__
14468 # include <limits.h>
14469 #else
14470 # include <assert.h>
14471 #endif
14472                      Syntax error
14473 _ACEOF
14474 if ac_fn_c_try_cpp "$LINENO"; then :
14475
14476 else
14477   # Broken: fails on valid input.
14478 continue
14479 fi
14480 rm -f conftest.err conftest.i conftest.$ac_ext
14481
14482   # OK, works on sane cases.  Now check whether nonexistent headers
14483   # can be detected and how.
14484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h.  */
14486 #include <ac_nonexistent.h>
14487 _ACEOF
14488 if ac_fn_c_try_cpp "$LINENO"; then :
14489   # Broken: success on invalid input.
14490 continue
14491 else
14492   # Passes both tests.
14493 ac_preproc_ok=:
14494 break
14495 fi
14496 rm -f conftest.err conftest.i conftest.$ac_ext
14497
14498 done
14499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14500 rm -f conftest.i conftest.err conftest.$ac_ext
14501 if $ac_preproc_ok; then :
14502
14503 else
14504   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14506 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
14507 See \`config.log' for more details" "$LINENO" 5; }
14508 fi
14509
14510 ac_ext=c
14511 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14512 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14513 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14515
14516
14517
14518 ac_tool_prefix=$save_ac_tool_prefix
14519 cross_compiling=$save_cross_compiling
14520
14521
14522 BUILD_EXEEXT=$ac_build_exeext
14523 BUILD_OBJEXT=$ac_build_objext
14524
14525
14526 # Checks for compiler characteristics.
14527 if test "x$GCC" = "xyes"; then
14528   CFLAGS="$CFLAGS -Wall -ansi "
14529 fi
14530
14531 # Checks for library functions.
14532 for ac_func in memmove memset strdup
14533 do :
14534   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14536 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14537   cat >>confdefs.h <<_ACEOF
14538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14539 _ACEOF
14540
14541 fi
14542 done
14543
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14545 $as_echo_n "checking return type of signal handlers... " >&6; }
14546 if ${ac_cv_type_signal+:} false; then :
14547   $as_echo_n "(cached) " >&6
14548 else
14549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h.  */
14551 #include <sys/types.h>
14552 #include <signal.h>
14553
14554 int
14555 main ()
14556 {
14557 return *(signal (0, 0)) (0) == 1;
14558   ;
14559   return 0;
14560 }
14561 _ACEOF
14562 if ac_fn_c_try_compile "$LINENO"; then :
14563   ac_cv_type_signal=int
14564 else
14565   ac_cv_type_signal=void
14566 fi
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14570 $as_echo "$ac_cv_type_signal" >&6; }
14571
14572 cat >>confdefs.h <<_ACEOF
14573 #define RETSIGTYPE $ac_cv_type_signal
14574 _ACEOF
14575
14576
14577
14578 # Checks for configure options
14579
14580 # --enable-debug
14581
14582 # Check whether --enable-debug was given.
14583 if test "${enable_debug+set}" = set; then :
14584   enableval=$enable_debug;
14585 else
14586   enable_debug=no
14587 fi
14588
14589 if test x$enable_debug = xyes; then
14590
14591 $as_echo "#define DEBUG 1" >>confdefs.h
14592
14593 fi
14594
14595 # --disable-deprecated
14596 # Check whether --enable-deprecated was given.
14597 if test "${enable_deprecated+set}" = set; then :
14598   enableval=$enable_deprecated;
14599 fi
14600
14601 if test x$enable_deprecated = xno; then
14602
14603 $as_echo "#define FRIBIDI_NO_DEPRECATED 1" >>confdefs.h
14604
14605 fi
14606
14607 # Generate output
14608 ac_config_files="$ac_config_files fribidi.pc lib/fribidi-config.h Makefile gen.tab/Makefile lib/Makefile bin/Makefile doc/Makefile test/Makefile test/unicode-conformance/Makefile"
14609
14610 cat >confcache <<\_ACEOF
14611 # This file is a shell script that caches the results of configure
14612 # tests run on this system so they can be shared between configure
14613 # scripts and configure runs, see configure's option --config-cache.
14614 # It is not useful on other systems.  If it contains results you don't
14615 # want to keep, you may remove or edit it.
14616 #
14617 # config.status only pays attention to the cache file if you give it
14618 # the --recheck option to rerun configure.
14619 #
14620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14622 # following values.
14623
14624 _ACEOF
14625
14626 # The following way of writing the cache mishandles newlines in values,
14627 # but we know of no workaround that is simple, portable, and efficient.
14628 # So, we kill variables containing newlines.
14629 # Ultrix sh set writes to stderr and can't be redirected directly,
14630 # and sets the high bit in the cache file unless we assign to the vars.
14631 (
14632   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14633     eval ac_val=\$$ac_var
14634     case $ac_val in #(
14635     *${as_nl}*)
14636       case $ac_var in #(
14637       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14638 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14639       esac
14640       case $ac_var in #(
14641       _ | IFS | as_nl) ;; #(
14642       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14643       *) { eval $ac_var=; unset $ac_var;} ;;
14644       esac ;;
14645     esac
14646   done
14647
14648   (set) 2>&1 |
14649     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14650     *${as_nl}ac_space=\ *)
14651       # `set' does not quote correctly, so add quotes: double-quote
14652       # substitution turns \\\\ into \\, and sed turns \\ into \.
14653       sed -n \
14654         "s/'/'\\\\''/g;
14655           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14656       ;; #(
14657     *)
14658       # `set' quotes correctly as required by POSIX, so do not add quotes.
14659       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14660       ;;
14661     esac |
14662     sort
14663 ) |
14664   sed '
14665      /^ac_cv_env_/b end
14666      t clear
14667      :clear
14668      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14669      t end
14670      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14671      :end' >>confcache
14672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14673   if test -w "$cache_file"; then
14674     if test "x$cache_file" != "x/dev/null"; then
14675       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14676 $as_echo "$as_me: updating cache $cache_file" >&6;}
14677       if test ! -f "$cache_file" || test -h "$cache_file"; then
14678         cat confcache >"$cache_file"
14679       else
14680         case $cache_file in #(
14681         */* | ?:*)
14682           mv -f confcache "$cache_file"$$ &&
14683           mv -f "$cache_file"$$ "$cache_file" ;; #(
14684         *)
14685           mv -f confcache "$cache_file" ;;
14686         esac
14687       fi
14688     fi
14689   else
14690     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14691 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14692   fi
14693 fi
14694 rm -f confcache
14695
14696 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14697 # Let make expand exec_prefix.
14698 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14699
14700 DEFS=-DHAVE_CONFIG_H
14701
14702 ac_libobjs=
14703 ac_ltlibobjs=
14704 U=
14705 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14706   # 1. Remove the extension, and $U if already installed.
14707   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14708   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14709   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14710   #    will be set to the directory where LIBOBJS objects are built.
14711   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14712   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14713 done
14714 LIBOBJS=$ac_libobjs
14715
14716 LTLIBOBJS=$ac_ltlibobjs
14717
14718
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14720 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14721    if test -n "$am_sleep_pid"; then
14722      # Hide warnings about reused PIDs.
14723      wait $am_sleep_pid 2>/dev/null
14724    fi
14725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14726 $as_echo "done" >&6; }
14727  if test -n "$EXEEXT"; then
14728   am__EXEEXT_TRUE=
14729   am__EXEEXT_FALSE='#'
14730 else
14731   am__EXEEXT_TRUE='#'
14732   am__EXEEXT_FALSE=
14733 fi
14734
14735 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14736   as_fn_error $? "conditional \"AMDEP\" was never defined.
14737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14738 fi
14739 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14740   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14742 fi
14743 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14744   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14746 fi
14747 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14748   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14750 fi
14751 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14752   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14754 fi
14755 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14756   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14758 fi
14759
14760 : "${CONFIG_STATUS=./config.status}"
14761 ac_write_fail=0
14762 ac_clean_files_save=$ac_clean_files
14763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14765 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14766 as_write_fail=0
14767 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14768 #! $SHELL
14769 # Generated by $as_me.
14770 # Run this file to recreate the current configuration.
14771 # Compiler output produced by configure, useful for debugging
14772 # configure, is in config.log if it exists.
14773
14774 debug=false
14775 ac_cs_recheck=false
14776 ac_cs_silent=false
14777
14778 SHELL=\${CONFIG_SHELL-$SHELL}
14779 export SHELL
14780 _ASEOF
14781 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14782 ## -------------------- ##
14783 ## M4sh Initialization. ##
14784 ## -------------------- ##
14785
14786 # Be more Bourne compatible
14787 DUALCASE=1; export DUALCASE # for MKS sh
14788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14789   emulate sh
14790   NULLCMD=:
14791   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14792   # is contrary to our usage.  Disable this feature.
14793   alias -g '${1+"$@"}'='"$@"'
14794   setopt NO_GLOB_SUBST
14795 else
14796   case `(set -o) 2>/dev/null` in #(
14797   *posix*) :
14798     set -o posix ;; #(
14799   *) :
14800      ;;
14801 esac
14802 fi
14803
14804
14805 as_nl='
14806 '
14807 export as_nl
14808 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14809 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14812 # Prefer a ksh shell builtin over an external printf program on Solaris,
14813 # but without wasting forks for bash or zsh.
14814 if test -z "$BASH_VERSION$ZSH_VERSION" \
14815     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14816   as_echo='print -r --'
14817   as_echo_n='print -rn --'
14818 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14819   as_echo='printf %s\n'
14820   as_echo_n='printf %s'
14821 else
14822   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14823     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14824     as_echo_n='/usr/ucb/echo -n'
14825   else
14826     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14827     as_echo_n_body='eval
14828       arg=$1;
14829       case $arg in #(
14830       *"$as_nl"*)
14831         expr "X$arg" : "X\\(.*\\)$as_nl";
14832         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14833       esac;
14834       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14835     '
14836     export as_echo_n_body
14837     as_echo_n='sh -c $as_echo_n_body as_echo'
14838   fi
14839   export as_echo_body
14840   as_echo='sh -c $as_echo_body as_echo'
14841 fi
14842
14843 # The user is always right.
14844 if test "${PATH_SEPARATOR+set}" != set; then
14845   PATH_SEPARATOR=:
14846   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14847     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14848       PATH_SEPARATOR=';'
14849   }
14850 fi
14851
14852
14853 # IFS
14854 # We need space, tab and new line, in precisely that order.  Quoting is
14855 # there to prevent editors from complaining about space-tab.
14856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14857 # splitting by setting IFS to empty value.)
14858 IFS=" ""        $as_nl"
14859
14860 # Find who we are.  Look in the path if we contain no directory separator.
14861 as_myself=
14862 case $0 in #((
14863   *[\\/]* ) as_myself=$0 ;;
14864   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14866 do
14867   IFS=$as_save_IFS
14868   test -z "$as_dir" && as_dir=.
14869     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14870   done
14871 IFS=$as_save_IFS
14872
14873      ;;
14874 esac
14875 # We did not find ourselves, most probably we were run as `sh COMMAND'
14876 # in which case we are not to be found in the path.
14877 if test "x$as_myself" = x; then
14878   as_myself=$0
14879 fi
14880 if test ! -f "$as_myself"; then
14881   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14882   exit 1
14883 fi
14884
14885 # Unset variables that we do not need and which cause bugs (e.g. in
14886 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14887 # suppresses any "Segmentation fault" message there.  '((' could
14888 # trigger a bug in pdksh 5.2.14.
14889 for as_var in BASH_ENV ENV MAIL MAILPATH
14890 do eval test x\${$as_var+set} = xset \
14891   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14892 done
14893 PS1='$ '
14894 PS2='> '
14895 PS4='+ '
14896
14897 # NLS nuisances.
14898 LC_ALL=C
14899 export LC_ALL
14900 LANGUAGE=C
14901 export LANGUAGE
14902
14903 # CDPATH.
14904 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14905
14906
14907 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14908 # ----------------------------------------
14909 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14910 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14911 # script with STATUS, using 1 if that was 0.
14912 as_fn_error ()
14913 {
14914   as_status=$1; test $as_status -eq 0 && as_status=1
14915   if test "$4"; then
14916     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14917     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14918   fi
14919   $as_echo "$as_me: error: $2" >&2
14920   as_fn_exit $as_status
14921 } # as_fn_error
14922
14923
14924 # as_fn_set_status STATUS
14925 # -----------------------
14926 # Set $? to STATUS, without forking.
14927 as_fn_set_status ()
14928 {
14929   return $1
14930 } # as_fn_set_status
14931
14932 # as_fn_exit STATUS
14933 # -----------------
14934 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14935 as_fn_exit ()
14936 {
14937   set +e
14938   as_fn_set_status $1
14939   exit $1
14940 } # as_fn_exit
14941
14942 # as_fn_unset VAR
14943 # ---------------
14944 # Portably unset VAR.
14945 as_fn_unset ()
14946 {
14947   { eval $1=; unset $1;}
14948 }
14949 as_unset=as_fn_unset
14950 # as_fn_append VAR VALUE
14951 # ----------------------
14952 # Append the text in VALUE to the end of the definition contained in VAR. Take
14953 # advantage of any shell optimizations that allow amortized linear growth over
14954 # repeated appends, instead of the typical quadratic growth present in naive
14955 # implementations.
14956 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14957   eval 'as_fn_append ()
14958   {
14959     eval $1+=\$2
14960   }'
14961 else
14962   as_fn_append ()
14963   {
14964     eval $1=\$$1\$2
14965   }
14966 fi # as_fn_append
14967
14968 # as_fn_arith ARG...
14969 # ------------------
14970 # Perform arithmetic evaluation on the ARGs, and store the result in the
14971 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14972 # must be portable across $(()) and expr.
14973 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14974   eval 'as_fn_arith ()
14975   {
14976     as_val=$(( $* ))
14977   }'
14978 else
14979   as_fn_arith ()
14980   {
14981     as_val=`expr "$@" || test $? -eq 1`
14982   }
14983 fi # as_fn_arith
14984
14985
14986 if expr a : '\(a\)' >/dev/null 2>&1 &&
14987    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14988   as_expr=expr
14989 else
14990   as_expr=false
14991 fi
14992
14993 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14994   as_basename=basename
14995 else
14996   as_basename=false
14997 fi
14998
14999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15000   as_dirname=dirname
15001 else
15002   as_dirname=false
15003 fi
15004
15005 as_me=`$as_basename -- "$0" ||
15006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15007          X"$0" : 'X\(//\)$' \| \
15008          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15009 $as_echo X/"$0" |
15010     sed '/^.*\/\([^/][^/]*\)\/*$/{
15011             s//\1/
15012             q
15013           }
15014           /^X\/\(\/\/\)$/{
15015             s//\1/
15016             q
15017           }
15018           /^X\/\(\/\).*/{
15019             s//\1/
15020             q
15021           }
15022           s/.*/./; q'`
15023
15024 # Avoid depending upon Character Ranges.
15025 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15026 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15027 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15028 as_cr_digits='0123456789'
15029 as_cr_alnum=$as_cr_Letters$as_cr_digits
15030
15031 ECHO_C= ECHO_N= ECHO_T=
15032 case `echo -n x` in #(((((
15033 -n*)
15034   case `echo 'xy\c'` in
15035   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15036   xy)  ECHO_C='\c';;
15037   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15038        ECHO_T=' ';;
15039   esac;;
15040 *)
15041   ECHO_N='-n';;
15042 esac
15043
15044 rm -f conf$$ conf$$.exe conf$$.file
15045 if test -d conf$$.dir; then
15046   rm -f conf$$.dir/conf$$.file
15047 else
15048   rm -f conf$$.dir
15049   mkdir conf$$.dir 2>/dev/null
15050 fi
15051 if (echo >conf$$.file) 2>/dev/null; then
15052   if ln -s conf$$.file conf$$ 2>/dev/null; then
15053     as_ln_s='ln -s'
15054     # ... but there are two gotchas:
15055     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15056     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15057     # In both cases, we have to default to `cp -pR'.
15058     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15059       as_ln_s='cp -pR'
15060   elif ln conf$$.file conf$$ 2>/dev/null; then
15061     as_ln_s=ln
15062   else
15063     as_ln_s='cp -pR'
15064   fi
15065 else
15066   as_ln_s='cp -pR'
15067 fi
15068 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15069 rmdir conf$$.dir 2>/dev/null
15070
15071
15072 # as_fn_mkdir_p
15073 # -------------
15074 # Create "$as_dir" as a directory, including parents if necessary.
15075 as_fn_mkdir_p ()
15076 {
15077
15078   case $as_dir in #(
15079   -*) as_dir=./$as_dir;;
15080   esac
15081   test -d "$as_dir" || eval $as_mkdir_p || {
15082     as_dirs=
15083     while :; do
15084       case $as_dir in #(
15085       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15086       *) as_qdir=$as_dir;;
15087       esac
15088       as_dirs="'$as_qdir' $as_dirs"
15089       as_dir=`$as_dirname -- "$as_dir" ||
15090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15091          X"$as_dir" : 'X\(//\)[^/]' \| \
15092          X"$as_dir" : 'X\(//\)$' \| \
15093          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15094 $as_echo X"$as_dir" |
15095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15096             s//\1/
15097             q
15098           }
15099           /^X\(\/\/\)[^/].*/{
15100             s//\1/
15101             q
15102           }
15103           /^X\(\/\/\)$/{
15104             s//\1/
15105             q
15106           }
15107           /^X\(\/\).*/{
15108             s//\1/
15109             q
15110           }
15111           s/.*/./; q'`
15112       test -d "$as_dir" && break
15113     done
15114     test -z "$as_dirs" || eval "mkdir $as_dirs"
15115   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15116
15117
15118 } # as_fn_mkdir_p
15119 if mkdir -p . 2>/dev/null; then
15120   as_mkdir_p='mkdir -p "$as_dir"'
15121 else
15122   test -d ./-p && rmdir ./-p
15123   as_mkdir_p=false
15124 fi
15125
15126
15127 # as_fn_executable_p FILE
15128 # -----------------------
15129 # Test if FILE is an executable regular file.
15130 as_fn_executable_p ()
15131 {
15132   test -f "$1" && test -x "$1"
15133 } # as_fn_executable_p
15134 as_test_x='test -x'
15135 as_executable_p=as_fn_executable_p
15136
15137 # Sed expression to map a string onto a valid CPP name.
15138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15139
15140 # Sed expression to map a string onto a valid variable name.
15141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15142
15143
15144 exec 6>&1
15145 ## ----------------------------------- ##
15146 ## Main body of $CONFIG_STATUS script. ##
15147 ## ----------------------------------- ##
15148 _ASEOF
15149 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15150
15151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15152 # Save the log message, to keep $0 and so on meaningful, and to
15153 # report actual input values of CONFIG_FILES etc. instead of their
15154 # values after options handling.
15155 ac_log="
15156 This file was extended by GNU FriBidi $as_me 1.0.8, which was
15157 generated by GNU Autoconf 2.69.  Invocation command line was
15158
15159   CONFIG_FILES    = $CONFIG_FILES
15160   CONFIG_HEADERS  = $CONFIG_HEADERS
15161   CONFIG_LINKS    = $CONFIG_LINKS
15162   CONFIG_COMMANDS = $CONFIG_COMMANDS
15163   $ $0 $@
15164
15165 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15166 "
15167
15168 _ACEOF
15169
15170 case $ac_config_files in *"
15171 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15172 esac
15173
15174 case $ac_config_headers in *"
15175 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15176 esac
15177
15178
15179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15180 # Files that config.status was made for.
15181 config_files="$ac_config_files"
15182 config_headers="$ac_config_headers"
15183 config_commands="$ac_config_commands"
15184
15185 _ACEOF
15186
15187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15188 ac_cs_usage="\
15189 \`$as_me' instantiates files and other configuration actions
15190 from templates according to the current configuration.  Unless the files
15191 and actions are specified as TAGs, all are instantiated by default.
15192
15193 Usage: $0 [OPTION]... [TAG]...
15194
15195   -h, --help       print this help, then exit
15196   -V, --version    print version number and configuration settings, then exit
15197       --config     print configuration, then exit
15198   -q, --quiet, --silent
15199                    do not print progress messages
15200   -d, --debug      don't remove temporary files
15201       --recheck    update $as_me by reconfiguring in the same conditions
15202       --file=FILE[:TEMPLATE]
15203                    instantiate the configuration file FILE
15204       --header=FILE[:TEMPLATE]
15205                    instantiate the configuration header FILE
15206
15207 Configuration files:
15208 $config_files
15209
15210 Configuration headers:
15211 $config_headers
15212
15213 Configuration commands:
15214 $config_commands
15215
15216 Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
15217 GNU FriBidi home page: <http://fribidi.org/>.
15218 General help using GNU software: <http://www.gnu.org/gethelp/>."
15219
15220 _ACEOF
15221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15223 ac_cs_version="\\
15224 GNU FriBidi config.status 1.0.8
15225 configured by $0, generated by GNU Autoconf 2.69,
15226   with options \\"\$ac_cs_config\\"
15227
15228 Copyright (C) 2012 Free Software Foundation, Inc.
15229 This config.status script is free software; the Free Software Foundation
15230 gives unlimited permission to copy, distribute and modify it."
15231
15232 ac_pwd='$ac_pwd'
15233 srcdir='$srcdir'
15234 INSTALL='$INSTALL'
15235 MKDIR_P='$MKDIR_P'
15236 AWK='$AWK'
15237 test -n "\$AWK" || AWK=awk
15238 _ACEOF
15239
15240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241 # The default lists apply if the user does not specify any file.
15242 ac_need_defaults=:
15243 while test $# != 0
15244 do
15245   case $1 in
15246   --*=?*)
15247     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15248     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15249     ac_shift=:
15250     ;;
15251   --*=)
15252     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15253     ac_optarg=
15254     ac_shift=:
15255     ;;
15256   *)
15257     ac_option=$1
15258     ac_optarg=$2
15259     ac_shift=shift
15260     ;;
15261   esac
15262
15263   case $ac_option in
15264   # Handling of the options.
15265   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15266     ac_cs_recheck=: ;;
15267   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15268     $as_echo "$ac_cs_version"; exit ;;
15269   --config | --confi | --conf | --con | --co | --c )
15270     $as_echo "$ac_cs_config"; exit ;;
15271   --debug | --debu | --deb | --de | --d | -d )
15272     debug=: ;;
15273   --file | --fil | --fi | --f )
15274     $ac_shift
15275     case $ac_optarg in
15276     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15277     '') as_fn_error $? "missing file argument" ;;
15278     esac
15279     as_fn_append CONFIG_FILES " '$ac_optarg'"
15280     ac_need_defaults=false;;
15281   --header | --heade | --head | --hea )
15282     $ac_shift
15283     case $ac_optarg in
15284     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15285     esac
15286     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15287     ac_need_defaults=false;;
15288   --he | --h)
15289     # Conflict between --help and --header
15290     as_fn_error $? "ambiguous option: \`$1'
15291 Try \`$0 --help' for more information.";;
15292   --help | --hel | -h )
15293     $as_echo "$ac_cs_usage"; exit ;;
15294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15295   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15296     ac_cs_silent=: ;;
15297
15298   # This is an error.
15299   -*) as_fn_error $? "unrecognized option: \`$1'
15300 Try \`$0 --help' for more information." ;;
15301
15302   *) as_fn_append ac_config_targets " $1"
15303      ac_need_defaults=false ;;
15304
15305   esac
15306   shift
15307 done
15308
15309 ac_configure_extra_args=
15310
15311 if $ac_cs_silent; then
15312   exec 6>/dev/null
15313   ac_configure_extra_args="$ac_configure_extra_args --silent"
15314 fi
15315
15316 _ACEOF
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 if \$ac_cs_recheck; then
15319   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15320   shift
15321   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15322   CONFIG_SHELL='$SHELL'
15323   export CONFIG_SHELL
15324   exec "\$@"
15325 fi
15326
15327 _ACEOF
15328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15329 exec 5>>config.log
15330 {
15331   echo
15332   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15333 ## Running $as_me. ##
15334 _ASBOX
15335   $as_echo "$ac_log"
15336 } >&5
15337
15338 _ACEOF
15339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15340 #
15341 # INIT-COMMANDS
15342 #
15343 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15344
15345
15346 # The HP-UX ksh and POSIX shell print the target directory to stdout
15347 # if CDPATH is set.
15348 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15349
15350 sed_quote_subst='$sed_quote_subst'
15351 double_quote_subst='$double_quote_subst'
15352 delay_variable_subst='$delay_variable_subst'
15353 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15354 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15355 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15356 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15357 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15358 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15359 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15360 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15361 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15362 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15363 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15364 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15365 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15366 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15367 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15368 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15369 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15370 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15371 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15372 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15373 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15374 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15375 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15376 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15377 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15378 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15379 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15380 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15381 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15382 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15383 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15384 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15385 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15386 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15387 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15388 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15389 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15390 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15391 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15392 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15393 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15394 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15395 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15396 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15397 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15398 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15399 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15400 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15401 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15402 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15403 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15404 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15405 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15406 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15407 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15408 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15409 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15410 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15411 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"`'
15412 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15413 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15414 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15415 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15416 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15417 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15418 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15419 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15420 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15421 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15422 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15423 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15424 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15425 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15426 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15427 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15428 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15429 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15430 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15431 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15432 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15433 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15434 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15435 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15436 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15437 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15438 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15439 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15440 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15441 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15442 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15443 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15444 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15445 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15446 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15447 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15448 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15449 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15450 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15451 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15452 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15453 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15454 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15455 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15456 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15457 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15458 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15459 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15460 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15461 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15462 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15463 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15464 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15465 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15466 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15467 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15468 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15469 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15470 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15471 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15472 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15473 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15474 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15475 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15476 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15477 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15478 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15479 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15480 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15481 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15482 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15483 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15484 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15485 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15486 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15487 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15488
15489 LTCC='$LTCC'
15490 LTCFLAGS='$LTCFLAGS'
15491 compiler='$compiler_DEFAULT'
15492
15493 # A function that is used when there is no print builtin or printf.
15494 func_fallback_echo ()
15495 {
15496   eval 'cat <<_LTECHO_EOF
15497 \$1
15498 _LTECHO_EOF'
15499 }
15500
15501 # Quote evaled strings.
15502 for var in SHELL \
15503 ECHO \
15504 PATH_SEPARATOR \
15505 SED \
15506 GREP \
15507 EGREP \
15508 FGREP \
15509 LD \
15510 NM \
15511 LN_S \
15512 lt_SP2NL \
15513 lt_NL2SP \
15514 reload_flag \
15515 OBJDUMP \
15516 deplibs_check_method \
15517 file_magic_cmd \
15518 file_magic_glob \
15519 want_nocaseglob \
15520 DLLTOOL \
15521 sharedlib_from_linklib_cmd \
15522 AR \
15523 AR_FLAGS \
15524 archiver_list_spec \
15525 STRIP \
15526 RANLIB \
15527 CC \
15528 CFLAGS \
15529 compiler \
15530 lt_cv_sys_global_symbol_pipe \
15531 lt_cv_sys_global_symbol_to_cdecl \
15532 lt_cv_sys_global_symbol_to_import \
15533 lt_cv_sys_global_symbol_to_c_name_address \
15534 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15535 lt_cv_nm_interface \
15536 nm_file_list_spec \
15537 lt_cv_truncate_bin \
15538 lt_prog_compiler_no_builtin_flag \
15539 lt_prog_compiler_pic \
15540 lt_prog_compiler_wl \
15541 lt_prog_compiler_static \
15542 lt_cv_prog_compiler_c_o \
15543 need_locks \
15544 MANIFEST_TOOL \
15545 DSYMUTIL \
15546 NMEDIT \
15547 LIPO \
15548 OTOOL \
15549 OTOOL64 \
15550 shrext_cmds \
15551 export_dynamic_flag_spec \
15552 whole_archive_flag_spec \
15553 compiler_needs_object \
15554 with_gnu_ld \
15555 allow_undefined_flag \
15556 no_undefined_flag \
15557 hardcode_libdir_flag_spec \
15558 hardcode_libdir_separator \
15559 exclude_expsyms \
15560 include_expsyms \
15561 file_list_spec \
15562 variables_saved_for_relink \
15563 libname_spec \
15564 library_names_spec \
15565 soname_spec \
15566 install_override_mode \
15567 finish_eval \
15568 old_striplib \
15569 striplib; do
15570     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15571     *[\\\\\\\`\\"\\\$]*)
15572       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15573       ;;
15574     *)
15575       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15576       ;;
15577     esac
15578 done
15579
15580 # Double-quote double-evaled strings.
15581 for var in reload_cmds \
15582 old_postinstall_cmds \
15583 old_postuninstall_cmds \
15584 old_archive_cmds \
15585 extract_expsyms_cmds \
15586 old_archive_from_new_cmds \
15587 old_archive_from_expsyms_cmds \
15588 archive_cmds \
15589 archive_expsym_cmds \
15590 module_cmds \
15591 module_expsym_cmds \
15592 export_symbols_cmds \
15593 prelink_cmds \
15594 postlink_cmds \
15595 postinstall_cmds \
15596 postuninstall_cmds \
15597 finish_cmds \
15598 sys_lib_search_path_spec \
15599 configure_time_dlsearch_path \
15600 configure_time_lt_sys_library_path; do
15601     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15602     *[\\\\\\\`\\"\\\$]*)
15603       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15604       ;;
15605     *)
15606       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15607       ;;
15608     esac
15609 done
15610
15611 ac_aux_dir='$ac_aux_dir'
15612
15613 # See if we are running on zsh, and set the options that allow our
15614 # commands through without removal of \ escapes INIT.
15615 if test -n "\${ZSH_VERSION+set}"; then
15616    setopt NO_GLOB_SUBST
15617 fi
15618
15619
15620     PACKAGE='$PACKAGE'
15621     VERSION='$VERSION'
15622     RM='$RM'
15623     ofile='$ofile'
15624
15625
15626
15627
15628 _ACEOF
15629
15630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15631
15632 # Handling of arguments.
15633 for ac_config_target in $ac_config_targets
15634 do
15635   case $ac_config_target in
15636     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15637     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15638     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15639     "fribidi.pc") CONFIG_FILES="$CONFIG_FILES fribidi.pc" ;;
15640     "lib/fribidi-config.h") CONFIG_FILES="$CONFIG_FILES lib/fribidi-config.h" ;;
15641     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15642     "gen.tab/Makefile") CONFIG_FILES="$CONFIG_FILES gen.tab/Makefile" ;;
15643     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15644     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
15645     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15646     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15647     "test/unicode-conformance/Makefile") CONFIG_FILES="$CONFIG_FILES test/unicode-conformance/Makefile" ;;
15648
15649   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15650   esac
15651 done
15652
15653
15654 # If the user did not use the arguments to specify the items to instantiate,
15655 # then the envvar interface is used.  Set only those that are not.
15656 # We use the long form for the default assignment because of an extremely
15657 # bizarre bug on SunOS 4.1.3.
15658 if $ac_need_defaults; then
15659   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15660   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15661   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15662 fi
15663
15664 # Have a temporary directory for convenience.  Make it in the build tree
15665 # simply because there is no reason against having it here, and in addition,
15666 # creating and moving files from /tmp can sometimes cause problems.
15667 # Hook for its removal unless debugging.
15668 # Note that there is a small window in which the directory will not be cleaned:
15669 # after its creation but before its name has been assigned to `$tmp'.
15670 $debug ||
15671 {
15672   tmp= ac_tmp=
15673   trap 'exit_status=$?
15674   : "${ac_tmp:=$tmp}"
15675   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15676 ' 0
15677   trap 'as_fn_exit 1' 1 2 13 15
15678 }
15679 # Create a (secure) tmp directory for tmp files.
15680
15681 {
15682   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15683   test -d "$tmp"
15684 }  ||
15685 {
15686   tmp=./conf$$-$RANDOM
15687   (umask 077 && mkdir "$tmp")
15688 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15689 ac_tmp=$tmp
15690
15691 # Set up the scripts for CONFIG_FILES section.
15692 # No need to generate them if there are no CONFIG_FILES.
15693 # This happens for instance with `./config.status config.h'.
15694 if test -n "$CONFIG_FILES"; then
15695
15696
15697 ac_cr=`echo X | tr X '\015'`
15698 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15699 # But we know of no other shell where ac_cr would be empty at this
15700 # point, so we can use a bashism as a fallback.
15701 if test "x$ac_cr" = x; then
15702   eval ac_cr=\$\'\\r\'
15703 fi
15704 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15705 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15706   ac_cs_awk_cr='\\r'
15707 else
15708   ac_cs_awk_cr=$ac_cr
15709 fi
15710
15711 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15712 _ACEOF
15713
15714
15715 {
15716   echo "cat >conf$$subs.awk <<_ACEOF" &&
15717   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15718   echo "_ACEOF"
15719 } >conf$$subs.sh ||
15720   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15721 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15722 ac_delim='%!_!# '
15723 for ac_last_try in false false false false false :; do
15724   . ./conf$$subs.sh ||
15725     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15726
15727   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15728   if test $ac_delim_n = $ac_delim_num; then
15729     break
15730   elif $ac_last_try; then
15731     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15732   else
15733     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15734   fi
15735 done
15736 rm -f conf$$subs.sh
15737
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15740 _ACEOF
15741 sed -n '
15742 h
15743 s/^/S["/; s/!.*/"]=/
15744 p
15745 g
15746 s/^[^!]*!//
15747 :repl
15748 t repl
15749 s/'"$ac_delim"'$//
15750 t delim
15751 :nl
15752 h
15753 s/\(.\{148\}\)..*/\1/
15754 t more1
15755 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15756 p
15757 n
15758 b repl
15759 :more1
15760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15761 p
15762 g
15763 s/.\{148\}//
15764 t nl
15765 :delim
15766 h
15767 s/\(.\{148\}\)..*/\1/
15768 t more2
15769 s/["\\]/\\&/g; s/^/"/; s/$/"/
15770 p
15771 b
15772 :more2
15773 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15774 p
15775 g
15776 s/.\{148\}//
15777 t delim
15778 ' <conf$$subs.awk | sed '
15779 /^[^""]/{
15780   N
15781   s/\n//
15782 }
15783 ' >>$CONFIG_STATUS || ac_write_fail=1
15784 rm -f conf$$subs.awk
15785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15786 _ACAWK
15787 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15788   for (key in S) S_is_set[key] = 1
15789   FS = "\a"
15790
15791 }
15792 {
15793   line = $ 0
15794   nfields = split(line, field, "@")
15795   substed = 0
15796   len = length(field[1])
15797   for (i = 2; i < nfields; i++) {
15798     key = field[i]
15799     keylen = length(key)
15800     if (S_is_set[key]) {
15801       value = S[key]
15802       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15803       len += length(value) + length(field[++i])
15804       substed = 1
15805     } else
15806       len += 1 + keylen
15807   }
15808
15809   print line
15810 }
15811
15812 _ACAWK
15813 _ACEOF
15814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15815 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15816   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15817 else
15818   cat
15819 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15820   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15821 _ACEOF
15822
15823 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15824 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15825 # trailing colons and then remove the whole line if VPATH becomes empty
15826 # (actually we leave an empty line to preserve line numbers).
15827 if test "x$srcdir" = x.; then
15828   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15829 h
15830 s///
15831 s/^/:/
15832 s/[      ]*$/:/
15833 s/:\$(srcdir):/:/g
15834 s/:\${srcdir}:/:/g
15835 s/:@srcdir@:/:/g
15836 s/^:*//
15837 s/:*$//
15838 x
15839 s/\(=[   ]*\).*/\1/
15840 G
15841 s/\n//
15842 s/^[^=]*=[       ]*$//
15843 }'
15844 fi
15845
15846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15847 fi # test -n "$CONFIG_FILES"
15848
15849 # Set up the scripts for CONFIG_HEADERS section.
15850 # No need to generate them if there are no CONFIG_HEADERS.
15851 # This happens for instance with `./config.status Makefile'.
15852 if test -n "$CONFIG_HEADERS"; then
15853 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15854 BEGIN {
15855 _ACEOF
15856
15857 # Transform confdefs.h into an awk script `defines.awk', embedded as
15858 # here-document in config.status, that substitutes the proper values into
15859 # config.h.in to produce config.h.
15860
15861 # Create a delimiter string that does not exist in confdefs.h, to ease
15862 # handling of long lines.
15863 ac_delim='%!_!# '
15864 for ac_last_try in false false :; do
15865   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15866   if test -z "$ac_tt"; then
15867     break
15868   elif $ac_last_try; then
15869     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15870   else
15871     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15872   fi
15873 done
15874
15875 # For the awk script, D is an array of macro values keyed by name,
15876 # likewise P contains macro parameters if any.  Preserve backslash
15877 # newline sequences.
15878
15879 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15880 sed -n '
15881 s/.\{148\}/&'"$ac_delim"'/g
15882 t rset
15883 :rset
15884 s/^[     ]*#[    ]*define[       ][      ]*/ /
15885 t def
15886 d
15887 :def
15888 s/\\$//
15889 t bsnl
15890 s/["\\]/\\&/g
15891 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15892 D["\1"]=" \3"/p
15893 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15894 d
15895 :bsnl
15896 s/["\\]/\\&/g
15897 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15898 D["\1"]=" \3\\\\\\n"\\/p
15899 t cont
15900 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15901 t cont
15902 d
15903 :cont
15904 n
15905 s/.\{148\}/&'"$ac_delim"'/g
15906 t clear
15907 :clear
15908 s/\\$//
15909 t bsnlc
15910 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15911 d
15912 :bsnlc
15913 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15914 b cont
15915 ' <confdefs.h | sed '
15916 s/'"$ac_delim"'/"\\\
15917 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15918
15919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15920   for (key in D) D_is_set[key] = 1
15921   FS = "\a"
15922 }
15923 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15924   line = \$ 0
15925   split(line, arg, " ")
15926   if (arg[1] == "#") {
15927     defundef = arg[2]
15928     mac1 = arg[3]
15929   } else {
15930     defundef = substr(arg[1], 2)
15931     mac1 = arg[2]
15932   }
15933   split(mac1, mac2, "(") #)
15934   macro = mac2[1]
15935   prefix = substr(line, 1, index(line, defundef) - 1)
15936   if (D_is_set[macro]) {
15937     # Preserve the white space surrounding the "#".
15938     print prefix "define", macro P[macro] D[macro]
15939     next
15940   } else {
15941     # Replace #undef with comments.  This is necessary, for example,
15942     # in the case of _POSIX_SOURCE, which is predefined and required
15943     # on some systems where configure will not decide to define it.
15944     if (defundef == "undef") {
15945       print "/*", prefix defundef, macro, "*/"
15946       next
15947     }
15948   }
15949 }
15950 { print }
15951 _ACAWK
15952 _ACEOF
15953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15955 fi # test -n "$CONFIG_HEADERS"
15956
15957
15958 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15959 shift
15960 for ac_tag
15961 do
15962   case $ac_tag in
15963   :[FHLC]) ac_mode=$ac_tag; continue;;
15964   esac
15965   case $ac_mode$ac_tag in
15966   :[FHL]*:*);;
15967   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15968   :[FH]-) ac_tag=-:-;;
15969   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15970   esac
15971   ac_save_IFS=$IFS
15972   IFS=:
15973   set x $ac_tag
15974   IFS=$ac_save_IFS
15975   shift
15976   ac_file=$1
15977   shift
15978
15979   case $ac_mode in
15980   :L) ac_source=$1;;
15981   :[FH])
15982     ac_file_inputs=
15983     for ac_f
15984     do
15985       case $ac_f in
15986       -) ac_f="$ac_tmp/stdin";;
15987       *) # Look for the file first in the build tree, then in the source tree
15988          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15989          # because $ac_f cannot contain `:'.
15990          test -f "$ac_f" ||
15991            case $ac_f in
15992            [\\/$]*) false;;
15993            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15994            esac ||
15995            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15996       esac
15997       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15998       as_fn_append ac_file_inputs " '$ac_f'"
15999     done
16000
16001     # Let's still pretend it is `configure' which instantiates (i.e., don't
16002     # use $as_me), people would be surprised to read:
16003     #    /* config.h.  Generated by config.status.  */
16004     configure_input='Generated from '`
16005           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16006         `' by configure.'
16007     if test x"$ac_file" != x-; then
16008       configure_input="$ac_file.  $configure_input"
16009       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16010 $as_echo "$as_me: creating $ac_file" >&6;}
16011     fi
16012     # Neutralize special characters interpreted by sed in replacement strings.
16013     case $configure_input in #(
16014     *\&* | *\|* | *\\* )
16015        ac_sed_conf_input=`$as_echo "$configure_input" |
16016        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16017     *) ac_sed_conf_input=$configure_input;;
16018     esac
16019
16020     case $ac_tag in
16021     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16022       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16023     esac
16024     ;;
16025   esac
16026
16027   ac_dir=`$as_dirname -- "$ac_file" ||
16028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16029          X"$ac_file" : 'X\(//\)[^/]' \| \
16030          X"$ac_file" : 'X\(//\)$' \| \
16031          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16032 $as_echo X"$ac_file" |
16033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16034             s//\1/
16035             q
16036           }
16037           /^X\(\/\/\)[^/].*/{
16038             s//\1/
16039             q
16040           }
16041           /^X\(\/\/\)$/{
16042             s//\1/
16043             q
16044           }
16045           /^X\(\/\).*/{
16046             s//\1/
16047             q
16048           }
16049           s/.*/./; q'`
16050   as_dir="$ac_dir"; as_fn_mkdir_p
16051   ac_builddir=.
16052
16053 case "$ac_dir" in
16054 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16055 *)
16056   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16057   # A ".." for each directory in $ac_dir_suffix.
16058   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16059   case $ac_top_builddir_sub in
16060   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16061   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16062   esac ;;
16063 esac
16064 ac_abs_top_builddir=$ac_pwd
16065 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16066 # for backward compatibility:
16067 ac_top_builddir=$ac_top_build_prefix
16068
16069 case $srcdir in
16070   .)  # We are building in place.
16071     ac_srcdir=.
16072     ac_top_srcdir=$ac_top_builddir_sub
16073     ac_abs_top_srcdir=$ac_pwd ;;
16074   [\\/]* | ?:[\\/]* )  # Absolute name.
16075     ac_srcdir=$srcdir$ac_dir_suffix;
16076     ac_top_srcdir=$srcdir
16077     ac_abs_top_srcdir=$srcdir ;;
16078   *) # Relative name.
16079     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16080     ac_top_srcdir=$ac_top_build_prefix$srcdir
16081     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16082 esac
16083 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16084
16085
16086   case $ac_mode in
16087   :F)
16088   #
16089   # CONFIG_FILE
16090   #
16091
16092   case $INSTALL in
16093   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16094   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16095   esac
16096   ac_MKDIR_P=$MKDIR_P
16097   case $MKDIR_P in
16098   [\\/$]* | ?:[\\/]* ) ;;
16099   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16100   esac
16101 _ACEOF
16102
16103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16104 # If the template does not know about datarootdir, expand it.
16105 # FIXME: This hack should be removed a few years after 2.60.
16106 ac_datarootdir_hack=; ac_datarootdir_seen=
16107 ac_sed_dataroot='
16108 /datarootdir/ {
16109   p
16110   q
16111 }
16112 /@datadir@/p
16113 /@docdir@/p
16114 /@infodir@/p
16115 /@localedir@/p
16116 /@mandir@/p'
16117 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16118 *datarootdir*) ac_datarootdir_seen=yes;;
16119 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16120   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16121 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16122 _ACEOF
16123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16124   ac_datarootdir_hack='
16125   s&@datadir@&$datadir&g
16126   s&@docdir@&$docdir&g
16127   s&@infodir@&$infodir&g
16128   s&@localedir@&$localedir&g
16129   s&@mandir@&$mandir&g
16130   s&\\\${datarootdir}&$datarootdir&g' ;;
16131 esac
16132 _ACEOF
16133
16134 # Neutralize VPATH when `$srcdir' = `.'.
16135 # Shell code in configure.ac might set extrasub.
16136 # FIXME: do we really want to maintain this feature?
16137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16138 ac_sed_extra="$ac_vpsub
16139 $extrasub
16140 _ACEOF
16141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16142 :t
16143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16144 s|@configure_input@|$ac_sed_conf_input|;t t
16145 s&@top_builddir@&$ac_top_builddir_sub&;t t
16146 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16147 s&@srcdir@&$ac_srcdir&;t t
16148 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16149 s&@top_srcdir@&$ac_top_srcdir&;t t
16150 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16151 s&@builddir@&$ac_builddir&;t t
16152 s&@abs_builddir@&$ac_abs_builddir&;t t
16153 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16154 s&@INSTALL@&$ac_INSTALL&;t t
16155 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16156 $ac_datarootdir_hack
16157 "
16158 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16159   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16160
16161 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16162   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16163   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16164       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16165   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16166 which seems to be undefined.  Please make sure it is defined" >&5
16167 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16168 which seems to be undefined.  Please make sure it is defined" >&2;}
16169
16170   rm -f "$ac_tmp/stdin"
16171   case $ac_file in
16172   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16173   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16174   esac \
16175   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16176  ;;
16177   :H)
16178   #
16179   # CONFIG_HEADER
16180   #
16181   if test x"$ac_file" != x-; then
16182     {
16183       $as_echo "/* $configure_input  */" \
16184       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16185     } >"$ac_tmp/config.h" \
16186       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16187     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16188       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16189 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16190     else
16191       rm -f "$ac_file"
16192       mv "$ac_tmp/config.h" "$ac_file" \
16193         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16194     fi
16195   else
16196     $as_echo "/* $configure_input  */" \
16197       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16198       || as_fn_error $? "could not create -" "$LINENO" 5
16199   fi
16200 # Compute "$ac_file"'s index in $config_headers.
16201 _am_arg="$ac_file"
16202 _am_stamp_count=1
16203 for _am_header in $config_headers :; do
16204   case $_am_header in
16205     $_am_arg | $_am_arg:* )
16206       break ;;
16207     * )
16208       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16209   esac
16210 done
16211 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16212 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16213          X"$_am_arg" : 'X\(//\)[^/]' \| \
16214          X"$_am_arg" : 'X\(//\)$' \| \
16215          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16216 $as_echo X"$_am_arg" |
16217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16218             s//\1/
16219             q
16220           }
16221           /^X\(\/\/\)[^/].*/{
16222             s//\1/
16223             q
16224           }
16225           /^X\(\/\/\)$/{
16226             s//\1/
16227             q
16228           }
16229           /^X\(\/\).*/{
16230             s//\1/
16231             q
16232           }
16233           s/.*/./; q'`/stamp-h$_am_stamp_count
16234  ;;
16235
16236   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16237 $as_echo "$as_me: executing $ac_file commands" >&6;}
16238  ;;
16239   esac
16240
16241
16242   case $ac_file$ac_mode in
16243     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16244   # Older Autoconf quotes --file arguments for eval, but not when files
16245   # are listed without --file.  Let's play safe and only enable the eval
16246   # if we detect the quoting.
16247   # TODO: see whether this extra hack can be removed once we start
16248   # requiring Autoconf 2.70 or later.
16249   case $CONFIG_FILES in #(
16250   *\'*) :
16251     eval set x "$CONFIG_FILES" ;; #(
16252   *) :
16253     set x $CONFIG_FILES ;; #(
16254   *) :
16255      ;;
16256 esac
16257   shift
16258   # Used to flag and report bootstrapping failures.
16259   am_rc=0
16260   for am_mf
16261   do
16262     # Strip MF so we end up with the name of the file.
16263     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16264     # Check whether this is an Automake generated Makefile which includes
16265     # dependency-tracking related rules and includes.
16266     # Grep'ing the whole file directly is not great: AIX grep has a line
16267     # limit of 2048, but all sed's we know have understand at least 4000.
16268     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16269       || continue
16270     am_dirpart=`$as_dirname -- "$am_mf" ||
16271 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16272          X"$am_mf" : 'X\(//\)[^/]' \| \
16273          X"$am_mf" : 'X\(//\)$' \| \
16274          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16275 $as_echo X"$am_mf" |
16276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16277             s//\1/
16278             q
16279           }
16280           /^X\(\/\/\)[^/].*/{
16281             s//\1/
16282             q
16283           }
16284           /^X\(\/\/\)$/{
16285             s//\1/
16286             q
16287           }
16288           /^X\(\/\).*/{
16289             s//\1/
16290             q
16291           }
16292           s/.*/./; q'`
16293     am_filepart=`$as_basename -- "$am_mf" ||
16294 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16295          X"$am_mf" : 'X\(//\)$' \| \
16296          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16297 $as_echo X/"$am_mf" |
16298     sed '/^.*\/\([^/][^/]*\)\/*$/{
16299             s//\1/
16300             q
16301           }
16302           /^X\/\(\/\/\)$/{
16303             s//\1/
16304             q
16305           }
16306           /^X\/\(\/\).*/{
16307             s//\1/
16308             q
16309           }
16310           s/.*/./; q'`
16311     { echo "$as_me:$LINENO: cd "$am_dirpart" \
16312       && sed -e '/# am--include-marker/d' "$am_filepart" \
16313         | $MAKE -f - am--depfiles" >&5
16314    (cd "$am_dirpart" \
16315       && sed -e '/# am--include-marker/d' "$am_filepart" \
16316         | $MAKE -f - am--depfiles) >&5 2>&5
16317    ac_status=$?
16318    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319    (exit $ac_status); } || am_rc=$?
16320   done
16321   if test $am_rc -ne 0; then
16322     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16324 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16325     for automatic dependency tracking.  Try re-running configure with the
16326     '--disable-dependency-tracking' option to at least be able to build
16327     the package (albeit without support for automatic dependency tracking).
16328 See \`config.log' for more details" "$LINENO" 5; }
16329   fi
16330   { am_dirpart=; unset am_dirpart;}
16331   { am_filepart=; unset am_filepart;}
16332   { am_mf=; unset am_mf;}
16333   { am_rc=; unset am_rc;}
16334   rm -f conftest-deps.mk
16335 }
16336  ;;
16337     "libtool":C)
16338
16339     # See if we are running on zsh, and set the options that allow our
16340     # commands through without removal of \ escapes.
16341     if test -n "${ZSH_VERSION+set}"; then
16342       setopt NO_GLOB_SUBST
16343     fi
16344
16345     cfgfile=${ofile}T
16346     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16347     $RM "$cfgfile"
16348
16349     cat <<_LT_EOF >> "$cfgfile"
16350 #! $SHELL
16351 # Generated automatically by $as_me ($PACKAGE) $VERSION
16352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16354
16355 # Provide generalized library-building support services.
16356 # Written by Gordon Matzigkeit, 1996
16357
16358 # Copyright (C) 2014 Free Software Foundation, Inc.
16359 # This is free software; see the source for copying conditions.  There is NO
16360 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16361
16362 # GNU Libtool is free software; you can redistribute it and/or modify
16363 # it under the terms of the GNU General Public License as published by
16364 # the Free Software Foundation; either version 2 of of the License, or
16365 # (at your option) any later version.
16366 #
16367 # As a special exception to the GNU General Public License, if you
16368 # distribute this file as part of a program or library that is built
16369 # using GNU Libtool, you may include this file under the  same
16370 # distribution terms that you use for the rest of that program.
16371 #
16372 # GNU Libtool is distributed in the hope that it will be useful, but
16373 # WITHOUT ANY WARRANTY; without even the implied warranty of
16374 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16375 # GNU General Public License for more details.
16376 #
16377 # You should have received a copy of the GNU General Public License
16378 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16379
16380
16381 # The names of the tagged configurations supported by this script.
16382 available_tags=''
16383
16384 # Configured defaults for sys_lib_dlsearch_path munging.
16385 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16386
16387 # ### BEGIN LIBTOOL CONFIG
16388
16389 # Which release of libtool.m4 was used?
16390 macro_version=$macro_version
16391 macro_revision=$macro_revision
16392
16393 # Whether or not to build static libraries.
16394 build_old_libs=$enable_static
16395
16396 # Whether or not to build shared libraries.
16397 build_libtool_libs=$enable_shared
16398
16399 # What type of objects to build.
16400 pic_mode=$pic_mode
16401
16402 # Whether or not to optimize for fast installation.
16403 fast_install=$enable_fast_install
16404
16405 # Shared archive member basename,for filename based shared library versioning on AIX.
16406 shared_archive_member_spec=$shared_archive_member_spec
16407
16408 # Shell to use when invoking shell scripts.
16409 SHELL=$lt_SHELL
16410
16411 # An echo program that protects backslashes.
16412 ECHO=$lt_ECHO
16413
16414 # The PATH separator for the build system.
16415 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16416
16417 # The host system.
16418 host_alias=$host_alias
16419 host=$host
16420 host_os=$host_os
16421
16422 # The build system.
16423 build_alias=$build_alias
16424 build=$build
16425 build_os=$build_os
16426
16427 # A sed program that does not truncate output.
16428 SED=$lt_SED
16429
16430 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16431 Xsed="\$SED -e 1s/^X//"
16432
16433 # A grep program that handles long lines.
16434 GREP=$lt_GREP
16435
16436 # An ERE matcher.
16437 EGREP=$lt_EGREP
16438
16439 # A literal string matcher.
16440 FGREP=$lt_FGREP
16441
16442 # A BSD- or MS-compatible name lister.
16443 NM=$lt_NM
16444
16445 # Whether we need soft or hard links.
16446 LN_S=$lt_LN_S
16447
16448 # What is the maximum length of a command?
16449 max_cmd_len=$max_cmd_len
16450
16451 # Object file suffix (normally "o").
16452 objext=$ac_objext
16453
16454 # Executable file suffix (normally "").
16455 exeext=$exeext
16456
16457 # whether the shell understands "unset".
16458 lt_unset=$lt_unset
16459
16460 # turn spaces into newlines.
16461 SP2NL=$lt_lt_SP2NL
16462
16463 # turn newlines into spaces.
16464 NL2SP=$lt_lt_NL2SP
16465
16466 # convert \$build file names to \$host format.
16467 to_host_file_cmd=$lt_cv_to_host_file_cmd
16468
16469 # convert \$build files to toolchain format.
16470 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16471
16472 # An object symbol dumper.
16473 OBJDUMP=$lt_OBJDUMP
16474
16475 # Method to check whether dependent libraries are shared objects.
16476 deplibs_check_method=$lt_deplibs_check_method
16477
16478 # Command to use when deplibs_check_method = "file_magic".
16479 file_magic_cmd=$lt_file_magic_cmd
16480
16481 # How to find potential files when deplibs_check_method = "file_magic".
16482 file_magic_glob=$lt_file_magic_glob
16483
16484 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16485 want_nocaseglob=$lt_want_nocaseglob
16486
16487 # DLL creation program.
16488 DLLTOOL=$lt_DLLTOOL
16489
16490 # Command to associate shared and link libraries.
16491 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16492
16493 # The archiver.
16494 AR=$lt_AR
16495
16496 # Flags to create an archive.
16497 AR_FLAGS=$lt_AR_FLAGS
16498
16499 # How to feed a file listing to the archiver.
16500 archiver_list_spec=$lt_archiver_list_spec
16501
16502 # A symbol stripping program.
16503 STRIP=$lt_STRIP
16504
16505 # Commands used to install an old-style archive.
16506 RANLIB=$lt_RANLIB
16507 old_postinstall_cmds=$lt_old_postinstall_cmds
16508 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16509
16510 # Whether to use a lock for old archive extraction.
16511 lock_old_archive_extraction=$lock_old_archive_extraction
16512
16513 # A C compiler.
16514 LTCC=$lt_CC
16515
16516 # LTCC compiler flags.
16517 LTCFLAGS=$lt_CFLAGS
16518
16519 # Take the output of nm and produce a listing of raw symbols and C names.
16520 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16521
16522 # Transform the output of nm in a proper C declaration.
16523 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16524
16525 # Transform the output of nm into a list of symbols to manually relocate.
16526 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16527
16528 # Transform the output of nm in a C name address pair.
16529 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16530
16531 # Transform the output of nm in a C name address pair when lib prefix is needed.
16532 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16533
16534 # The name lister interface.
16535 nm_interface=$lt_lt_cv_nm_interface
16536
16537 # Specify filename containing input files for \$NM.
16538 nm_file_list_spec=$lt_nm_file_list_spec
16539
16540 # The root where to search for dependent libraries,and where our libraries should be installed.
16541 lt_sysroot=$lt_sysroot
16542
16543 # Command to truncate a binary pipe.
16544 lt_truncate_bin=$lt_lt_cv_truncate_bin
16545
16546 # The name of the directory that contains temporary libtool files.
16547 objdir=$objdir
16548
16549 # Used to examine libraries when file_magic_cmd begins with "file".
16550 MAGIC_CMD=$MAGIC_CMD
16551
16552 # Must we lock files when doing compilation?
16553 need_locks=$lt_need_locks
16554
16555 # Manifest tool.
16556 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16557
16558 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16559 DSYMUTIL=$lt_DSYMUTIL
16560
16561 # Tool to change global to local symbols on Mac OS X.
16562 NMEDIT=$lt_NMEDIT
16563
16564 # Tool to manipulate fat objects and archives on Mac OS X.
16565 LIPO=$lt_LIPO
16566
16567 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16568 OTOOL=$lt_OTOOL
16569
16570 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16571 OTOOL64=$lt_OTOOL64
16572
16573 # Old archive suffix (normally "a").
16574 libext=$libext
16575
16576 # Shared library suffix (normally ".so").
16577 shrext_cmds=$lt_shrext_cmds
16578
16579 # The commands to extract the exported symbol list from a shared archive.
16580 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16581
16582 # Variables whose values should be saved in libtool wrapper scripts and
16583 # restored at link time.
16584 variables_saved_for_relink=$lt_variables_saved_for_relink
16585
16586 # Do we need the "lib" prefix for modules?
16587 need_lib_prefix=$need_lib_prefix
16588
16589 # Do we need a version for libraries?
16590 need_version=$need_version
16591
16592 # Library versioning type.
16593 version_type=$version_type
16594
16595 # Shared library runtime path variable.
16596 runpath_var=$runpath_var
16597
16598 # Shared library path variable.
16599 shlibpath_var=$shlibpath_var
16600
16601 # Is shlibpath searched before the hard-coded library search path?
16602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16603
16604 # Format of library name prefix.
16605 libname_spec=$lt_libname_spec
16606
16607 # List of archive names.  First name is the real one, the rest are links.
16608 # The last name is the one that the linker finds with -lNAME
16609 library_names_spec=$lt_library_names_spec
16610
16611 # The coded name of the library, if different from the real name.
16612 soname_spec=$lt_soname_spec
16613
16614 # Permission mode override for installation of shared libraries.
16615 install_override_mode=$lt_install_override_mode
16616
16617 # Command to use after installation of a shared archive.
16618 postinstall_cmds=$lt_postinstall_cmds
16619
16620 # Command to use after uninstallation of a shared archive.
16621 postuninstall_cmds=$lt_postuninstall_cmds
16622
16623 # Commands used to finish a libtool library installation in a directory.
16624 finish_cmds=$lt_finish_cmds
16625
16626 # As "finish_cmds", except a single script fragment to be evaled but
16627 # not shown.
16628 finish_eval=$lt_finish_eval
16629
16630 # Whether we should hardcode library paths into libraries.
16631 hardcode_into_libs=$hardcode_into_libs
16632
16633 # Compile-time system search path for libraries.
16634 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16635
16636 # Detected run-time system search path for libraries.
16637 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16638
16639 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16640 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16641
16642 # Whether dlopen is supported.
16643 dlopen_support=$enable_dlopen
16644
16645 # Whether dlopen of programs is supported.
16646 dlopen_self=$enable_dlopen_self
16647
16648 # Whether dlopen of statically linked programs is supported.
16649 dlopen_self_static=$enable_dlopen_self_static
16650
16651 # Commands to strip libraries.
16652 old_striplib=$lt_old_striplib
16653 striplib=$lt_striplib
16654
16655
16656 # The linker used to build libraries.
16657 LD=$lt_LD
16658
16659 # How to create reloadable object files.
16660 reload_flag=$lt_reload_flag
16661 reload_cmds=$lt_reload_cmds
16662
16663 # Commands used to build an old-style archive.
16664 old_archive_cmds=$lt_old_archive_cmds
16665
16666 # A language specific compiler.
16667 CC=$lt_compiler
16668
16669 # Is the compiler the GNU compiler?
16670 with_gcc=$GCC
16671
16672 # Compiler flag to turn off builtin functions.
16673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16674
16675 # Additional compiler flags for building library objects.
16676 pic_flag=$lt_lt_prog_compiler_pic
16677
16678 # How to pass a linker flag through the compiler.
16679 wl=$lt_lt_prog_compiler_wl
16680
16681 # Compiler flag to prevent dynamic linking.
16682 link_static_flag=$lt_lt_prog_compiler_static
16683
16684 # Does compiler simultaneously support -c and -o options?
16685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16686
16687 # Whether or not to add -lc for building shared libraries.
16688 build_libtool_need_lc=$archive_cmds_need_lc
16689
16690 # Whether or not to disallow shared libs when runtime libs are static.
16691 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16692
16693 # Compiler flag to allow reflexive dlopens.
16694 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16695
16696 # Compiler flag to generate shared objects directly from archives.
16697 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16698
16699 # Whether the compiler copes with passing no objects directly.
16700 compiler_needs_object=$lt_compiler_needs_object
16701
16702 # Create an old-style archive from a shared archive.
16703 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16704
16705 # Create a temporary old-style archive to link instead of a shared archive.
16706 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16707
16708 # Commands used to build a shared archive.
16709 archive_cmds=$lt_archive_cmds
16710 archive_expsym_cmds=$lt_archive_expsym_cmds
16711
16712 # Commands used to build a loadable module if different from building
16713 # a shared archive.
16714 module_cmds=$lt_module_cmds
16715 module_expsym_cmds=$lt_module_expsym_cmds
16716
16717 # Whether we are building with GNU ld or not.
16718 with_gnu_ld=$lt_with_gnu_ld
16719
16720 # Flag that allows shared libraries with undefined symbols to be built.
16721 allow_undefined_flag=$lt_allow_undefined_flag
16722
16723 # Flag that enforces no undefined symbols.
16724 no_undefined_flag=$lt_no_undefined_flag
16725
16726 # Flag to hardcode \$libdir into a binary during linking.
16727 # This must work even if \$libdir does not exist
16728 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16729
16730 # Whether we need a single "-rpath" flag with a separated argument.
16731 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16732
16733 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16734 # DIR into the resulting binary.
16735 hardcode_direct=$hardcode_direct
16736
16737 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16738 # DIR into the resulting binary and the resulting library dependency is
16739 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16740 # library is relocated.
16741 hardcode_direct_absolute=$hardcode_direct_absolute
16742
16743 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16744 # into the resulting binary.
16745 hardcode_minus_L=$hardcode_minus_L
16746
16747 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16748 # into the resulting binary.
16749 hardcode_shlibpath_var=$hardcode_shlibpath_var
16750
16751 # Set to "yes" if building a shared library automatically hardcodes DIR
16752 # into the library and all subsequent libraries and executables linked
16753 # against it.
16754 hardcode_automatic=$hardcode_automatic
16755
16756 # Set to yes if linker adds runtime paths of dependent libraries
16757 # to runtime path list.
16758 inherit_rpath=$inherit_rpath
16759
16760 # Whether libtool must link a program against all its dependency libraries.
16761 link_all_deplibs=$link_all_deplibs
16762
16763 # Set to "yes" if exported symbols are required.
16764 always_export_symbols=$always_export_symbols
16765
16766 # The commands to list exported symbols.
16767 export_symbols_cmds=$lt_export_symbols_cmds
16768
16769 # Symbols that should not be listed in the preloaded symbols.
16770 exclude_expsyms=$lt_exclude_expsyms
16771
16772 # Symbols that must always be exported.
16773 include_expsyms=$lt_include_expsyms
16774
16775 # Commands necessary for linking programs (against libraries) with templates.
16776 prelink_cmds=$lt_prelink_cmds
16777
16778 # Commands necessary for finishing linking programs.
16779 postlink_cmds=$lt_postlink_cmds
16780
16781 # Specify filename containing input files.
16782 file_list_spec=$lt_file_list_spec
16783
16784 # How to hardcode a shared library path into an executable.
16785 hardcode_action=$hardcode_action
16786
16787 # ### END LIBTOOL CONFIG
16788
16789 _LT_EOF
16790
16791     cat <<'_LT_EOF' >> "$cfgfile"
16792
16793 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16794
16795 # func_munge_path_list VARIABLE PATH
16796 # -----------------------------------
16797 # VARIABLE is name of variable containing _space_ separated list of
16798 # directories to be munged by the contents of PATH, which is string
16799 # having a format:
16800 # "DIR[:DIR]:"
16801 #       string "DIR[ DIR]" will be prepended to VARIABLE
16802 # ":DIR[:DIR]"
16803 #       string "DIR[ DIR]" will be appended to VARIABLE
16804 # "DIRP[:DIRP]::[DIRA:]DIRA"
16805 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16806 #       "DIRA[ DIRA]" will be appended to VARIABLE
16807 # "DIR[:DIR]"
16808 #       VARIABLE will be replaced by "DIR[ DIR]"
16809 func_munge_path_list ()
16810 {
16811     case x$2 in
16812     x)
16813         ;;
16814     *:)
16815         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16816         ;;
16817     x:*)
16818         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16819         ;;
16820     *::*)
16821         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16822         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16823         ;;
16824     *)
16825         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16826         ;;
16827     esac
16828 }
16829
16830
16831 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16832 func_cc_basename ()
16833 {
16834     for cc_temp in $*""; do
16835       case $cc_temp in
16836         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16837         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16838         \-*) ;;
16839         *) break;;
16840       esac
16841     done
16842     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16843 }
16844
16845
16846 # ### END FUNCTIONS SHARED WITH CONFIGURE
16847
16848 _LT_EOF
16849
16850   case $host_os in
16851   aix3*)
16852     cat <<\_LT_EOF >> "$cfgfile"
16853 # AIX sometimes has problems with the GCC collect2 program.  For some
16854 # reason, if we set the COLLECT_NAMES environment variable, the problems
16855 # vanish in a puff of smoke.
16856 if test set != "${COLLECT_NAMES+set}"; then
16857   COLLECT_NAMES=
16858   export COLLECT_NAMES
16859 fi
16860 _LT_EOF
16861     ;;
16862   esac
16863
16864
16865 ltmain=$ac_aux_dir/ltmain.sh
16866
16867
16868   # We use sed instead of cat because bash on DJGPP gets confused if
16869   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16870   # text mode, it properly converts lines to CR/LF.  This bash problem
16871   # is reportedly fixed, but why not run on old versions too?
16872   sed '$q' "$ltmain" >> "$cfgfile" \
16873      || (rm -f "$cfgfile"; exit 1)
16874
16875    mv -f "$cfgfile" "$ofile" ||
16876     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16877   chmod +x "$ofile"
16878
16879  ;;
16880
16881   esac
16882 done # for ac_tag
16883
16884
16885 as_fn_exit 0
16886 _ACEOF
16887 ac_clean_files=$ac_clean_files_save
16888
16889 test $ac_write_fail = 0 ||
16890   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16891
16892
16893 # configure is writing to config.log, and then calls config.status.
16894 # config.status does its own redirection, appending to config.log.
16895 # Unfortunately, on DOS this fails, as config.log is still kept open
16896 # by configure, so config.status won't be able to write to it; its
16897 # output is simply discarded.  So we exec the FD to /dev/null,
16898 # effectively closing config.log, so it can be properly (re)opened and
16899 # appended to by config.status.  When coming back to configure, we
16900 # need to make the FD available again.
16901 if test "$no_create" != yes; then
16902   ac_cs_success=:
16903   ac_config_status_args=
16904   test "$silent" = yes &&
16905     ac_config_status_args="$ac_config_status_args --quiet"
16906   exec 5>/dev/null
16907   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16908   exec 5>>config.log
16909   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16910   # would make configure fail if this is the last instruction.
16911   $ac_cs_success || as_fn_exit 1
16912 fi
16913 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16914   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16915 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16916 fi
16917