version up to 1.0.2
[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.2.
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.2'
594 PACKAGE_STRING='GNU FriBidi 1.0.2'
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 FRIBIDI_ENABLE_DOC_FALSE
640 FRIBIDI_ENABLE_DOC_TRUE
641 C2MAN
642 LDFLAGS_FOR_BUILD
643 CPPFLAGS_FOR_BUILD
644 CFLAGS_FOR_BUILD
645 BUILD_OBJEXT
646 BUILD_EXEEXT
647 CPP_FOR_BUILD
648 ac_ct_CC_FOR_BUILD
649 CC_FOR_BUILD
650 SIZEOF_INT
651 PLATFORM_WIN32_FALSE
652 PLATFORM_WIN32_TRUE
653 OS_WIN32_FALSE
654 OS_WIN32_TRUE
655 PKG_CONFIG_LIBDIR
656 PKG_CONFIG_PATH
657 PKG_CONFIG
658 LT_CURRENT_MINUS_AGE
659 LT_VERSION_INFO
660 FRIBIDI_MSVC_BUILD_PLACEHOLDER
661 FRIBIDI_BINARY_AGE
662 FRIBIDI_INTERFACE_AGE
663 FRIBIDI_INTERFACE_VERSION
664 FRIBIDI_VERSION
665 FRIBIDI_MICRO_VERSION
666 FRIBIDI_MINOR_VERSION
667 FRIBIDI_MAJOR_VERSION
668 CPP
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 RANLIB
677 DLLTOOL
678 OBJDUMP
679 LN_S
680 NM
681 ac_ct_DUMPBIN
682 DUMPBIN
683 LD
684 FGREP
685 EGREP
686 GREP
687 SED
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 LIBTOOL
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 ac_ct_AR
715 AR
716 AM_BACKSLASH
717 AM_DEFAULT_VERBOSITY
718 AM_DEFAULT_V
719 AM_V
720 am__untar
721 am__tar
722 AMTAR
723 am__leading_dot
724 SET_MAKE
725 AWK
726 mkdir_p
727 MKDIR_P
728 INSTALL_STRIP_PROGRAM
729 STRIP
730 install_sh
731 MAKEINFO
732 AUTOHEADER
733 AUTOMAKE
734 AUTOCONF
735 ACLOCAL
736 VERSION
737 PACKAGE
738 CYGPATH_W
739 am__isrc
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 target_alias
744 host_alias
745 build_alias
746 LIBS
747 ECHO_T
748 ECHO_N
749 ECHO_C
750 DEFS
751 mandir
752 localedir
753 libdir
754 psdir
755 pdfdir
756 dvidir
757 htmldir
758 infodir
759 docdir
760 oldincludedir
761 includedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_URL
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL'
781 ac_subst_files=''
782 ac_user_opts='
783 enable_option_checking
784 enable_silent_rules
785 enable_dependency_tracking
786 enable_static
787 enable_shared
788 with_pic
789 enable_fast_install
790 with_aix_soname
791 with_gnu_ld
792 with_sysroot
793 enable_libtool_lock
794 enable_debug
795 enable_deprecated
796 enable_docs
797 '
798       ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 LT_SYS_LIBRARY_PATH
807 CPP
808 PKG_CONFIG
809 PKG_CONFIG_PATH
810 PKG_CONFIG_LIBDIR'
811
812
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
834
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
860
861 ac_prev=
862 ac_dashdash=
863 for ac_option
864 do
865   # If the previous option needs an argument, assign it.
866   if test -n "$ac_prev"; then
867     eval $ac_prev=\$ac_option
868     ac_prev=
869     continue
870   fi
871
872   case $ac_option in
873   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874   *=)   ac_optarg= ;;
875   *)    ac_optarg=yes ;;
876   esac
877
878   # Accept the important Cygnus configure options, so we can diagnose typos.
879
880   case $ac_dashdash$ac_option in
881   --)
882     ac_dashdash=yes ;;
883
884   -bindir | --bindir | --bindi | --bind | --bin | --bi)
885     ac_prev=bindir ;;
886   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887     bindir=$ac_optarg ;;
888
889   -build | --build | --buil | --bui | --bu)
890     ac_prev=build_alias ;;
891   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892     build_alias=$ac_optarg ;;
893
894   -cache-file | --cache-file | --cache-fil | --cache-fi \
895   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896     ac_prev=cache_file ;;
897   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899     cache_file=$ac_optarg ;;
900
901   --config-cache | -C)
902     cache_file=config.cache ;;
903
904   -datadir | --datadir | --datadi | --datad)
905     ac_prev=datadir ;;
906   -datadir=* | --datadir=* | --datadi=* | --datad=*)
907     datadir=$ac_optarg ;;
908
909   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910   | --dataroo | --dataro | --datar)
911     ac_prev=datarootdir ;;
912   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914     datarootdir=$ac_optarg ;;
915
916   -disable-* | --disable-*)
917     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918     # Reject names that are not valid shell variable names.
919     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920       as_fn_error $? "invalid feature name: $ac_useropt"
921     ac_useropt_orig=$ac_useropt
922     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923     case $ac_user_opts in
924       *"
925 "enable_$ac_useropt"
926 "*) ;;
927       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928          ac_unrecognized_sep=', ';;
929     esac
930     eval enable_$ac_useropt=no ;;
931
932   -docdir | --docdir | --docdi | --doc | --do)
933     ac_prev=docdir ;;
934   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935     docdir=$ac_optarg ;;
936
937   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938     ac_prev=dvidir ;;
939   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940     dvidir=$ac_optarg ;;
941
942   -enable-* | --enable-*)
943     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944     # Reject names that are not valid shell variable names.
945     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946       as_fn_error $? "invalid feature name: $ac_useropt"
947     ac_useropt_orig=$ac_useropt
948     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949     case $ac_user_opts in
950       *"
951 "enable_$ac_useropt"
952 "*) ;;
953       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954          ac_unrecognized_sep=', ';;
955     esac
956     eval enable_$ac_useropt=\$ac_optarg ;;
957
958   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960   | --exec | --exe | --ex)
961     ac_prev=exec_prefix ;;
962   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964   | --exec=* | --exe=* | --ex=*)
965     exec_prefix=$ac_optarg ;;
966
967   -gas | --gas | --ga | --g)
968     # Obsolete; use --with-gas.
969     with_gas=yes ;;
970
971   -help | --help | --hel | --he | -h)
972     ac_init_help=long ;;
973   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974     ac_init_help=recursive ;;
975   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976     ac_init_help=short ;;
977
978   -host | --host | --hos | --ho)
979     ac_prev=host_alias ;;
980   -host=* | --host=* | --hos=* | --ho=*)
981     host_alias=$ac_optarg ;;
982
983   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984     ac_prev=htmldir ;;
985   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986   | --ht=*)
987     htmldir=$ac_optarg ;;
988
989   -includedir | --includedir | --includedi | --included | --include \
990   | --includ | --inclu | --incl | --inc)
991     ac_prev=includedir ;;
992   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993   | --includ=* | --inclu=* | --incl=* | --inc=*)
994     includedir=$ac_optarg ;;
995
996   -infodir | --infodir | --infodi | --infod | --info | --inf)
997     ac_prev=infodir ;;
998   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999     infodir=$ac_optarg ;;
1000
1001   -libdir | --libdir | --libdi | --libd)
1002     ac_prev=libdir ;;
1003   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004     libdir=$ac_optarg ;;
1005
1006   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007   | --libexe | --libex | --libe)
1008     ac_prev=libexecdir ;;
1009   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010   | --libexe=* | --libex=* | --libe=*)
1011     libexecdir=$ac_optarg ;;
1012
1013   -localedir | --localedir | --localedi | --localed | --locale)
1014     ac_prev=localedir ;;
1015   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016     localedir=$ac_optarg ;;
1017
1018   -localstatedir | --localstatedir | --localstatedi | --localstated \
1019   | --localstate | --localstat | --localsta | --localst | --locals)
1020     ac_prev=localstatedir ;;
1021   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023     localstatedir=$ac_optarg ;;
1024
1025   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026     ac_prev=mandir ;;
1027   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028     mandir=$ac_optarg ;;
1029
1030   -nfp | --nfp | --nf)
1031     # Obsolete; use --without-fp.
1032     with_fp=no ;;
1033
1034   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035   | --no-cr | --no-c | -n)
1036     no_create=yes ;;
1037
1038   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040     no_recursion=yes ;;
1041
1042   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044   | --oldin | --oldi | --old | --ol | --o)
1045     ac_prev=oldincludedir ;;
1046   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049     oldincludedir=$ac_optarg ;;
1050
1051   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052     ac_prev=prefix ;;
1053   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054     prefix=$ac_optarg ;;
1055
1056   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057   | --program-pre | --program-pr | --program-p)
1058     ac_prev=program_prefix ;;
1059   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061     program_prefix=$ac_optarg ;;
1062
1063   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064   | --program-suf | --program-su | --program-s)
1065     ac_prev=program_suffix ;;
1066   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068     program_suffix=$ac_optarg ;;
1069
1070   -program-transform-name | --program-transform-name \
1071   | --program-transform-nam | --program-transform-na \
1072   | --program-transform-n | --program-transform- \
1073   | --program-transform | --program-transfor \
1074   | --program-transfo | --program-transf \
1075   | --program-trans | --program-tran \
1076   | --progr-tra | --program-tr | --program-t)
1077     ac_prev=program_transform_name ;;
1078   -program-transform-name=* | --program-transform-name=* \
1079   | --program-transform-nam=* | --program-transform-na=* \
1080   | --program-transform-n=* | --program-transform-=* \
1081   | --program-transform=* | --program-transfor=* \
1082   | --program-transfo=* | --program-transf=* \
1083   | --program-trans=* | --program-tran=* \
1084   | --progr-tra=* | --program-tr=* | --program-t=*)
1085     program_transform_name=$ac_optarg ;;
1086
1087   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088     ac_prev=pdfdir ;;
1089   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090     pdfdir=$ac_optarg ;;
1091
1092   -psdir | --psdir | --psdi | --psd | --ps)
1093     ac_prev=psdir ;;
1094   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095     psdir=$ac_optarg ;;
1096
1097   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098   | -silent | --silent | --silen | --sile | --sil)
1099     silent=yes ;;
1100
1101   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102     ac_prev=sbindir ;;
1103   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104   | --sbi=* | --sb=*)
1105     sbindir=$ac_optarg ;;
1106
1107   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109   | --sharedst | --shareds | --shared | --share | --shar \
1110   | --sha | --sh)
1111     ac_prev=sharedstatedir ;;
1112   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115   | --sha=* | --sh=*)
1116     sharedstatedir=$ac_optarg ;;
1117
1118   -site | --site | --sit)
1119     ac_prev=site ;;
1120   -site=* | --site=* | --sit=*)
1121     site=$ac_optarg ;;
1122
1123   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124     ac_prev=srcdir ;;
1125   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126     srcdir=$ac_optarg ;;
1127
1128   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129   | --syscon | --sysco | --sysc | --sys | --sy)
1130     ac_prev=sysconfdir ;;
1131   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133     sysconfdir=$ac_optarg ;;
1134
1135   -target | --target | --targe | --targ | --tar | --ta | --t)
1136     ac_prev=target_alias ;;
1137   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138     target_alias=$ac_optarg ;;
1139
1140   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141     verbose=yes ;;
1142
1143   -version | --version | --versio | --versi | --vers | -V)
1144     ac_init_version=: ;;
1145
1146   -with-* | --with-*)
1147     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150       as_fn_error $? "invalid package name: $ac_useropt"
1151     ac_useropt_orig=$ac_useropt
1152     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153     case $ac_user_opts in
1154       *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158          ac_unrecognized_sep=', ';;
1159     esac
1160     eval with_$ac_useropt=\$ac_optarg ;;
1161
1162   -without-* | --without-*)
1163     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166       as_fn_error $? "invalid package name: $ac_useropt"
1167     ac_useropt_orig=$ac_useropt
1168     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169     case $ac_user_opts in
1170       *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174          ac_unrecognized_sep=', ';;
1175     esac
1176     eval with_$ac_useropt=no ;;
1177
1178   --x)
1179     # Obsolete; use --with-x.
1180     with_x=yes ;;
1181
1182   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183   | --x-incl | --x-inc | --x-in | --x-i)
1184     ac_prev=x_includes ;;
1185   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187     x_includes=$ac_optarg ;;
1188
1189   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191     ac_prev=x_libraries ;;
1192   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194     x_libraries=$ac_optarg ;;
1195
1196   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1198     ;;
1199
1200   *=*)
1201     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202     # Reject names that are not valid shell variable names.
1203     case $ac_envvar in #(
1204       '' | [0-9]* | *[!_$as_cr_alnum]* )
1205       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206     esac
1207     eval $ac_envvar=\$ac_optarg
1208     export $ac_envvar ;;
1209
1210   *)
1211     # FIXME: should be removed in autoconf 3.0.
1212     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216     ;;
1217
1218   esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223   as_fn_error $? "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227   case $enable_option_checking in
1228     no) ;;
1229     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231   esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236                 datadir sysconfdir sharedstatedir localstatedir includedir \
1237                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238                 libdir localedir mandir
1239 do
1240   eval ac_val=\$$ac_var
1241   # Remove trailing slashes.
1242   case $ac_val in
1243     */ )
1244       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245       eval $ac_var=\$ac_val;;
1246   esac
1247   # Be sure to have absolute directory names.
1248   case $ac_val in
1249     [\\/$]* | ?:[\\/]* )  continue;;
1250     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251   esac
1252   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264   if test "x$build_alias" = x; then
1265     cross_compiling=maybe
1266   elif test "x$build_alias" != "x$host_alias"; then
1267     cross_compiling=yes
1268   fi
1269 fi
1270
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274 test "$silent" = yes && exec 6>/dev/null
1275
1276
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280   as_fn_error $? "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282   as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287   ac_srcdir_defaulted=yes
1288   # Try the directory containing this script, then the parent directory.
1289   ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291          X"$as_myself" : 'X\(//\)[^/]' \| \
1292          X"$as_myself" : 'X\(//\)$' \| \
1293          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296             s//\1/
1297             q
1298           }
1299           /^X\(\/\/\)[^/].*/{
1300             s//\1/
1301             q
1302           }
1303           /^X\(\/\/\)$/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\).*/{
1308             s//\1/
1309             q
1310           }
1311           s/.*/./; q'`
1312   srcdir=$ac_confdir
1313   if test ! -r "$srcdir/$ac_unique_file"; then
1314     srcdir=..
1315   fi
1316 else
1317   ac_srcdir_defaulted=no
1318 fi
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 fi
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326         pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329   srcdir=.
1330 fi
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339   eval ac_env_${ac_var}_value=\$${ac_var}
1340   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1343
1344 #
1345 # Report the --help message.
1346 #
1347 if test "$ac_init_help" = "long"; then
1348   # Omit some internal or obsolete options to make the list less imposing.
1349   # This message is too long to be a string in the A/UX 3.1 sh.
1350   cat <<_ACEOF
1351 \`configure' configures GNU FriBidi 1.0.2 to adapt to many kinds of systems.
1352
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE.  See below for descriptions of some of the useful variables.
1357
1358 Defaults for the options are specified in brackets.
1359
1360 Configuration:
1361   -h, --help              display this help and exit
1362       --help=short        display options specific to this package
1363       --help=recursive    display the short help of all the included packages
1364   -V, --version           display version information and exit
1365   -q, --quiet, --silent   do not print \`checking ...' messages
1366       --cache-file=FILE   cache test results in FILE [disabled]
1367   -C, --config-cache      alias for \`--cache-file=config.cache'
1368   -n, --no-create         do not create output files
1369       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1370
1371 Installation directories:
1372   --prefix=PREFIX         install architecture-independent files in PREFIX
1373                           [$ac_default_prefix]
1374   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1375                           [PREFIX]
1376
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1381
1382 For better control, use the options below.
1383
1384 Fine tuning of the installation directories:
1385   --bindir=DIR            user executables [EPREFIX/bin]
1386   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1387   --libexecdir=DIR        program executables [EPREFIX/libexec]
1388   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1389   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1390   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1391   --libdir=DIR            object code libraries [EPREFIX/lib]
1392   --includedir=DIR        C header files [PREFIX/include]
1393   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1394   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1395   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1396   --infodir=DIR           info documentation [DATAROOTDIR/info]
1397   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1398   --mandir=DIR            man documentation [DATAROOTDIR/man]
1399   --docdir=DIR            documentation root [DATAROOTDIR/doc/fribidi]
1400   --htmldir=DIR           html documentation [DOCDIR]
1401   --dvidir=DIR            dvi documentation [DOCDIR]
1402   --pdfdir=DIR            pdf documentation [DOCDIR]
1403   --psdir=DIR             ps documentation [DOCDIR]
1404 _ACEOF
1405
1406   cat <<\_ACEOF
1407
1408 Program names:
1409   --program-prefix=PREFIX            prepend PREFIX to installed program names
1410   --program-suffix=SUFFIX            append SUFFIX to installed program names
1411   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1412
1413 System types:
1414   --build=BUILD     configure for building on BUILD [guessed]
1415   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420   case $ac_init_help in
1421      short | recursive ) echo "Configuration of GNU FriBidi 1.0.2:";;
1422    esac
1423   cat <<\_ACEOF
1424
1425 Optional Features:
1426   --disable-option-checking  ignore unrecognized --enable/--with options
1427   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1428   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1429   --enable-silent-rules   less verbose build output (undo: "make V=1")
1430   --disable-silent-rules  verbose build output (undo: "make V=0")
1431   --enable-dependency-tracking
1432                           do not reject slow dependency extractors
1433   --disable-dependency-tracking
1434                           speeds up one-time build
1435   --enable-static[=PKGS]  build static libraries [default=no]
1436   --enable-shared[=PKGS]  build shared libraries [default=yes]
1437   --enable-fast-install[=PKGS]
1438                           optimize for fast installation [default=yes]
1439   --disable-libtool-lock  avoid locking (might break parallel builds)
1440   --enable-debug          turn on debugging [default=no]
1441   --disable-deprecated    do not build deprecated functionality
1442   --disable-docs          disable building documentation
1443
1444 Optional Packages:
1445   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1446   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1447   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1448                           both]
1449   --with-aix-soname=aix|svr4|both
1450                           shared library versioning (aka "SONAME") variant to
1451                           provide on AIX, [default=aix].
1452   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1453   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1454                           compiler's sysroot if not specified).
1455
1456 Some influential environment variables:
1457   CC          C compiler command
1458   CFLAGS      C compiler flags
1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460               nonstandard directory <lib dir>
1461   LIBS        libraries to pass to the linker, e.g. -l<library>
1462   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463               you have headers in a nonstandard directory <include dir>
1464   LT_SYS_LIBRARY_PATH
1465               User-defined run-time library search path.
1466   CPP         C preprocessor
1467   PKG_CONFIG  path to pkg-config utility
1468   PKG_CONFIG_PATH
1469               directories to add to pkg-config's search path
1470   PKG_CONFIG_LIBDIR
1471               path overriding pkg-config's built-in search path
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
1477 GNU FriBidi home page: <http://fribidi.org/>.
1478 General help using GNU software: <http://www.gnu.org/gethelp/>.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484   # If there are subdirs, report their specific --help.
1485   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486     test -d "$ac_dir" ||
1487       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488       continue
1489     ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495   # A ".." for each directory in $ac_dir_suffix.
1496   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497   case $ac_top_builddir_sub in
1498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500   esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508   .)  # We are building in place.
1509     ac_srcdir=.
1510     ac_top_srcdir=$ac_top_builddir_sub
1511     ac_abs_top_srcdir=$ac_pwd ;;
1512   [\\/]* | ?:[\\/]* )  # Absolute name.
1513     ac_srcdir=$srcdir$ac_dir_suffix;
1514     ac_top_srcdir=$srcdir
1515     ac_abs_top_srcdir=$srcdir ;;
1516   *) # Relative name.
1517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518     ac_top_srcdir=$ac_top_build_prefix$srcdir
1519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523     cd "$ac_dir" || { ac_status=$?; continue; }
1524     # Check for guested configure.
1525     if test -f "$ac_srcdir/configure.gnu"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528     elif test -f "$ac_srcdir/configure"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure" --help=recursive
1531     else
1532       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533     fi || ac_status=$?
1534     cd "$ac_pwd" || { ac_status=$?; break; }
1535   done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540   cat <<\_ACEOF
1541 GNU FriBidi configure 1.0.2
1542 generated by GNU Autoconf 2.69
1543
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548   exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561   rm -f conftest.$ac_objext
1562   if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565   *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569   (eval "$ac_compile") 2>conftest.err
1570   ac_status=$?
1571   if test -s conftest.err; then
1572     grep -v '^ *+' conftest.err >conftest.er1
1573     cat conftest.er1 >&5
1574     mv -f conftest.er1 conftest.err
1575   fi
1576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577   test $ac_status = 0; } && {
1578          test -z "$ac_c_werror_flag" ||
1579          test ! -s conftest.err
1580        } && test -s conftest.$ac_objext; then :
1581   ac_retval=0
1582 else
1583   $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586         ac_retval=1
1587 fi
1588   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589   as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_c_try_link LINENO
1594 # -----------------------
1595 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_link ()
1597 {
1598   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599   rm -f conftest.$ac_objext conftest$ac_exeext
1600   if { { ac_try="$ac_link"
1601 case "(($ac_try" in
1602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603   *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607   (eval "$ac_link") 2>conftest.err
1608   ac_status=$?
1609   if test -s conftest.err; then
1610     grep -v '^ *+' conftest.err >conftest.er1
1611     cat conftest.er1 >&5
1612     mv -f conftest.er1 conftest.err
1613   fi
1614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615   test $ac_status = 0; } && {
1616          test -z "$ac_c_werror_flag" ||
1617          test ! -s conftest.err
1618        } && test -s conftest$ac_exeext && {
1619          test "$cross_compiling" = yes ||
1620          test -x conftest$ac_exeext
1621        }; then :
1622   ac_retval=0
1623 else
1624   $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627         ac_retval=1
1628 fi
1629   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631   # interfere with the next link command; also delete a directory that is
1632   # left behind by Apple's compiler.  We do this before executing the actions.
1633   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_link
1638
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649   $as_echo_n "(cached) " >&6
1650 else
1651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h.  */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657   eval "$3=yes"
1658 else
1659   eval "$3=no"
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 fi
1663 eval ac_res=\$$3
1664                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668 } # ac_fn_c_check_header_compile
1669
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1674 {
1675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676   if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679   *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684   ac_status=$?
1685   if test -s conftest.err; then
1686     grep -v '^ *+' conftest.err >conftest.er1
1687     cat conftest.er1 >&5
1688     mv -f conftest.er1 conftest.err
1689   fi
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; } > conftest.i && {
1692          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693          test ! -s conftest.err
1694        }; then :
1695   ac_retval=0
1696 else
1697   $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700     ac_retval=1
1701 fi
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703   as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_cpp
1706
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714   if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717   *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721   (eval "$ac_link") 2>&5
1722   ac_status=$?
1723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725   { { case "(($ac_try" in
1726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727   *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731   (eval "$ac_try") 2>&5
1732   ac_status=$?
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; }; }; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: program exited with status $ac_status" >&5
1738        $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741        ac_retval=$ac_status
1742 fi
1743   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745   as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_run
1748
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758   $as_echo_n "(cached) " >&6
1759 else
1760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h.  */
1762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1764 #define $2 innocuous_$2
1765
1766 /* System header to define __stub macros and hopefully few prototypes,
1767     which can conflict with char $2 (); below.
1768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769     <limits.h> exists even on freestanding compilers.  */
1770
1771 #ifdef __STDC__
1772 # include <limits.h>
1773 #else
1774 # include <assert.h>
1775 #endif
1776
1777 #undef $2
1778
1779 /* Override any GCC internal prototype to avoid an error.
1780    Use char because int might match the return type of a GCC
1781    builtin and then its argument prototype would still apply.  */
1782 #ifdef __cplusplus
1783 extern "C"
1784 #endif
1785 char $2 ();
1786 /* The GNU C library defines this for functions which it implements
1787     to always fail with ENOSYS.  Some functions are actually named
1788     something starting with __ and the normal name is an alias.  */
1789 #if defined __stub_$2 || defined __stub___$2
1790 choke me
1791 #endif
1792
1793 int
1794 main ()
1795 {
1796 return $2 ();
1797   ;
1798   return 0;
1799 }
1800 _ACEOF
1801 if ac_fn_c_try_link "$LINENO"; then :
1802   eval "$3=yes"
1803 else
1804   eval "$3=no"
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext \
1807     conftest$ac_exeext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_c_check_func
1815
1816 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1819 # the include files in INCLUDES and setting the cache variable VAR
1820 # accordingly.
1821 ac_fn_c_check_header_mongrel ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   if eval \${$3+:} false; then :
1825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828   $as_echo_n "(cached) " >&6
1829 fi
1830 eval ac_res=\$$3
1831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 else
1834   # Is the header compilable?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1836 $as_echo_n "checking $2 usability... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h.  */
1839 $4
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843   ac_header_compiler=yes
1844 else
1845   ac_header_compiler=no
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1849 $as_echo "$ac_header_compiler" >&6; }
1850
1851 # Is the header present?
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1853 $as_echo_n "checking $2 presence... " >&6; }
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h.  */
1856 #include <$2>
1857 _ACEOF
1858 if ac_fn_c_try_cpp "$LINENO"; then :
1859   ac_header_preproc=yes
1860 else
1861   ac_header_preproc=no
1862 fi
1863 rm -f conftest.err conftest.i conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865 $as_echo "$ac_header_preproc" >&6; }
1866
1867 # So?  What about this header?
1868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1869   yes:no: )
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1871 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874     ;;
1875   no:yes:* )
1876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1877 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1879 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1881 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1883 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 ( $as_echo "## ------------------------------------------------------------ ##
1887 ## Report this to https://github.com/fribidi/fribidi/issues/new ##
1888 ## ------------------------------------------------------------ ##"
1889      ) | sed "s/^/$as_me: WARNING:     /" >&2
1890     ;;
1891 esac
1892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895   $as_echo_n "(cached) " >&6
1896 else
1897   eval "$3=\$ac_header_compiler"
1898 fi
1899 eval ac_res=\$$3
1900                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 fi
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_header_mongrel
1906
1907 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1908 # --------------------------------------------
1909 # Tries to find the compile-time value of EXPR in a program that includes
1910 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1911 # computed
1912 ac_fn_c_compute_int ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   if test "$cross_compiling" = yes; then
1916     # Depending upon the size, compute the lo and hi bounds.
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 $4
1920 int
1921 main ()
1922 {
1923 static int test_array [1 - 2 * !(($2) >= 0)];
1924 test_array [0] = 0;
1925 return test_array [0];
1926
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932   ac_lo=0 ac_mid=0
1933   while :; do
1934     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h.  */
1936 $4
1937 int
1938 main ()
1939 {
1940 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1941 test_array [0] = 0;
1942 return test_array [0];
1943
1944   ;
1945   return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949   ac_hi=$ac_mid; break
1950 else
1951   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1952                         if test $ac_lo -le $ac_mid; then
1953                           ac_lo= ac_hi=
1954                           break
1955                         fi
1956                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959   done
1960 else
1961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h.  */
1963 $4
1964 int
1965 main ()
1966 {
1967 static int test_array [1 - 2 * !(($2) < 0)];
1968 test_array [0] = 0;
1969 return test_array [0];
1970
1971   ;
1972   return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976   ac_hi=-1 ac_mid=-1
1977   while :; do
1978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h.  */
1980 $4
1981 int
1982 main ()
1983 {
1984 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1985 test_array [0] = 0;
1986 return test_array [0];
1987
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   ac_lo=$ac_mid; break
1994 else
1995   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1996                         if test $ac_mid -le $ac_hi; then
1997                           ac_lo= ac_hi=
1998                           break
1999                         fi
2000                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003   done
2004 else
2005   ac_lo= ac_hi=
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 # Binary search between lo and hi bounds.
2011 while test "x$ac_lo" != "x$ac_hi"; do
2012   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $4
2016 int
2017 main ()
2018 {
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020 test_array [0] = 0;
2021 return test_array [0];
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   ac_hi=$ac_mid
2029 else
2030   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 done
2034 case $ac_lo in #((
2035 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2036 '') ac_retval=1 ;;
2037 esac
2038   else
2039     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h.  */
2041 $4
2042 static long int longval () { return $2; }
2043 static unsigned long int ulongval () { return $2; }
2044 #include <stdio.h>
2045 #include <stdlib.h>
2046 int
2047 main ()
2048 {
2049
2050   FILE *f = fopen ("conftest.val", "w");
2051   if (! f)
2052     return 1;
2053   if (($2) < 0)
2054     {
2055       long int i = longval ();
2056       if (i != ($2))
2057         return 1;
2058       fprintf (f, "%ld", i);
2059     }
2060   else
2061     {
2062       unsigned long int i = ulongval ();
2063       if (i != ($2))
2064         return 1;
2065       fprintf (f, "%lu", i);
2066     }
2067   /* Do not output a trailing newline, as this causes \r\n confusion
2068      on some platforms.  */
2069   return ferror (f) || fclose (f) != 0;
2070
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_run "$LINENO"; then :
2076   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2077 else
2078   ac_retval=1
2079 fi
2080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2081   conftest.$ac_objext conftest.beam conftest.$ac_ext
2082 rm -f conftest.val
2083
2084   fi
2085   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086   as_fn_set_status $ac_retval
2087
2088 } # ac_fn_c_compute_int
2089 cat >config.log <<_ACEOF
2090 This file contains any messages produced by compilers while
2091 running configure, to aid debugging if configure makes a mistake.
2092
2093 It was created by GNU FriBidi $as_me 1.0.2, which was
2094 generated by GNU Autoconf 2.69.  Invocation command line was
2095
2096   $ $0 $@
2097
2098 _ACEOF
2099 exec 5>>config.log
2100 {
2101 cat <<_ASUNAME
2102 ## --------- ##
2103 ## Platform. ##
2104 ## --------- ##
2105
2106 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2107 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2108 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2109 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2110 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2111
2112 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2113 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2114
2115 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2116 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2117 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2118 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2119 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2120 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2121 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2122
2123 _ASUNAME
2124
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128   IFS=$as_save_IFS
2129   test -z "$as_dir" && as_dir=.
2130     $as_echo "PATH: $as_dir"
2131   done
2132 IFS=$as_save_IFS
2133
2134 } >&5
2135
2136 cat >&5 <<_ACEOF
2137
2138
2139 ## ----------- ##
2140 ## Core tests. ##
2141 ## ----------- ##
2142
2143 _ACEOF
2144
2145
2146 # Keep a trace of the command line.
2147 # Strip out --no-create and --no-recursion so they do not pile up.
2148 # Strip out --silent because we don't want to record it for future runs.
2149 # Also quote any args containing shell meta-characters.
2150 # Make two passes to allow for proper duplicate-argument suppression.
2151 ac_configure_args=
2152 ac_configure_args0=
2153 ac_configure_args1=
2154 ac_must_keep_next=false
2155 for ac_pass in 1 2
2156 do
2157   for ac_arg
2158   do
2159     case $ac_arg in
2160     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2161     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2162     | -silent | --silent | --silen | --sile | --sil)
2163       continue ;;
2164     *\'*)
2165       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2166     esac
2167     case $ac_pass in
2168     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2169     2)
2170       as_fn_append ac_configure_args1 " '$ac_arg'"
2171       if test $ac_must_keep_next = true; then
2172         ac_must_keep_next=false # Got value, back to normal.
2173       else
2174         case $ac_arg in
2175           *=* | --config-cache | -C | -disable-* | --disable-* \
2176           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2177           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2178           | -with-* | --with-* | -without-* | --without-* | --x)
2179             case "$ac_configure_args0 " in
2180               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2181             esac
2182             ;;
2183           -* ) ac_must_keep_next=true ;;
2184         esac
2185       fi
2186       as_fn_append ac_configure_args " '$ac_arg'"
2187       ;;
2188     esac
2189   done
2190 done
2191 { ac_configure_args0=; unset ac_configure_args0;}
2192 { ac_configure_args1=; unset ac_configure_args1;}
2193
2194 # When interrupted or exit'd, cleanup temporary files, and complete
2195 # config.log.  We remove comments because anyway the quotes in there
2196 # would cause problems or look ugly.
2197 # WARNING: Use '\'' to represent an apostrophe within the trap.
2198 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2199 trap 'exit_status=$?
2200   # Save into config.log some information that might help in debugging.
2201   {
2202     echo
2203
2204     $as_echo "## ---------------- ##
2205 ## Cache variables. ##
2206 ## ---------------- ##"
2207     echo
2208     # The following way of writing the cache mishandles newlines in values,
2209 (
2210   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2211     eval ac_val=\$$ac_var
2212     case $ac_val in #(
2213     *${as_nl}*)
2214       case $ac_var in #(
2215       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2217       esac
2218       case $ac_var in #(
2219       _ | IFS | as_nl) ;; #(
2220       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2221       *) { eval $ac_var=; unset $ac_var;} ;;
2222       esac ;;
2223     esac
2224   done
2225   (set) 2>&1 |
2226     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2227     *${as_nl}ac_space=\ *)
2228       sed -n \
2229         "s/'\''/'\''\\\\'\'''\''/g;
2230           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2231       ;; #(
2232     *)
2233       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2234       ;;
2235     esac |
2236     sort
2237 )
2238     echo
2239
2240     $as_echo "## ----------------- ##
2241 ## Output variables. ##
2242 ## ----------------- ##"
2243     echo
2244     for ac_var in $ac_subst_vars
2245     do
2246       eval ac_val=\$$ac_var
2247       case $ac_val in
2248       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249       esac
2250       $as_echo "$ac_var='\''$ac_val'\''"
2251     done | sort
2252     echo
2253
2254     if test -n "$ac_subst_files"; then
2255       $as_echo "## ------------------- ##
2256 ## File substitutions. ##
2257 ## ------------------- ##"
2258       echo
2259       for ac_var in $ac_subst_files
2260       do
2261         eval ac_val=\$$ac_var
2262         case $ac_val in
2263         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264         esac
2265         $as_echo "$ac_var='\''$ac_val'\''"
2266       done | sort
2267       echo
2268     fi
2269
2270     if test -s confdefs.h; then
2271       $as_echo "## ----------- ##
2272 ## confdefs.h. ##
2273 ## ----------- ##"
2274       echo
2275       cat confdefs.h
2276       echo
2277     fi
2278     test "$ac_signal" != 0 &&
2279       $as_echo "$as_me: caught signal $ac_signal"
2280     $as_echo "$as_me: exit $exit_status"
2281   } >&5
2282   rm -f core *.core core.conftest.* &&
2283     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2284     exit $exit_status
2285 ' 0
2286 for ac_signal in 1 2 13 15; do
2287   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2288 done
2289 ac_signal=0
2290
2291 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2292 rm -f -r conftest* confdefs.h
2293
2294 $as_echo "/* confdefs.h */" > confdefs.h
2295
2296 # Predefined preprocessor variables.
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_NAME "$PACKAGE_NAME"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_STRING "$PACKAGE_STRING"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_URL "$PACKAGE_URL"
2320 _ACEOF
2321
2322
2323 # Let the site file select an alternate cache file if it wants to.
2324 # Prefer an explicitly selected file to automatically selected ones.
2325 ac_site_file1=NONE
2326 ac_site_file2=NONE
2327 if test -n "$CONFIG_SITE"; then
2328   # We do not want a PATH search for config.site.
2329   case $CONFIG_SITE in #((
2330     -*)  ac_site_file1=./$CONFIG_SITE;;
2331     */*) ac_site_file1=$CONFIG_SITE;;
2332     *)   ac_site_file1=./$CONFIG_SITE;;
2333   esac
2334 elif test "x$prefix" != xNONE; then
2335   ac_site_file1=$prefix/share/config.site
2336   ac_site_file2=$prefix/etc/config.site
2337 else
2338   ac_site_file1=$ac_default_prefix/share/config.site
2339   ac_site_file2=$ac_default_prefix/etc/config.site
2340 fi
2341 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2342 do
2343   test "x$ac_site_file" = xNONE && continue
2344   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2345     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2346 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2347     sed 's/^/| /' "$ac_site_file" >&5
2348     . "$ac_site_file" \
2349       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 as_fn_error $? "failed to load site script $ac_site_file
2352 See \`config.log' for more details" "$LINENO" 5; }
2353   fi
2354 done
2355
2356 if test -r "$cache_file"; then
2357   # Some versions of bash will fail to source /dev/null (special files
2358   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2359   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2360     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2361 $as_echo "$as_me: loading cache $cache_file" >&6;}
2362     case $cache_file in
2363       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2364       *)                      . "./$cache_file";;
2365     esac
2366   fi
2367 else
2368   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2369 $as_echo "$as_me: creating cache $cache_file" >&6;}
2370   >$cache_file
2371 fi
2372
2373 # Check that the precious variables saved in the cache have kept the same
2374 # value.
2375 ac_cache_corrupted=false
2376 for ac_var in $ac_precious_vars; do
2377   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378   eval ac_new_set=\$ac_env_${ac_var}_set
2379   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380   eval ac_new_val=\$ac_env_${ac_var}_value
2381   case $ac_old_set,$ac_new_set in
2382     set,)
2383       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385       ac_cache_corrupted=: ;;
2386     ,set)
2387       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2389       ac_cache_corrupted=: ;;
2390     ,);;
2391     *)
2392       if test "x$ac_old_val" != "x$ac_new_val"; then
2393         # differences in whitespace do not lead to failure.
2394         ac_old_val_w=`echo x $ac_old_val`
2395         ac_new_val_w=`echo x $ac_new_val`
2396         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2397           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2399           ac_cache_corrupted=:
2400         else
2401           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2403           eval $ac_var=\$ac_old_val
2404         fi
2405         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2406 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2407         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2408 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2409       fi;;
2410   esac
2411   # Pass precious variables to config.status.
2412   if test "$ac_new_set" = set; then
2413     case $ac_new_val in
2414     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2415     *) ac_arg=$ac_var=$ac_new_val ;;
2416     esac
2417     case " $ac_configure_args " in
2418       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2419       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2420     esac
2421   fi
2422 done
2423 if $ac_cache_corrupted; then
2424   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2428   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2429 fi
2430 ## -------------------- ##
2431 ## Main body of script. ##
2432 ## -------------------- ##
2433
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439
2440
2441
2442
2443 ac_config_headers="$ac_config_headers config.h"
2444
2445
2446
2447 am__api_version='1.15'
2448
2449 ac_aux_dir=
2450 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451   if test -f "$ac_dir/install-sh"; then
2452     ac_aux_dir=$ac_dir
2453     ac_install_sh="$ac_aux_dir/install-sh -c"
2454     break
2455   elif test -f "$ac_dir/install.sh"; then
2456     ac_aux_dir=$ac_dir
2457     ac_install_sh="$ac_aux_dir/install.sh -c"
2458     break
2459   elif test -f "$ac_dir/shtool"; then
2460     ac_aux_dir=$ac_dir
2461     ac_install_sh="$ac_aux_dir/shtool install -c"
2462     break
2463   fi
2464 done
2465 if test -z "$ac_aux_dir"; then
2466   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2467 fi
2468
2469 # These three variables are undocumented and unsupported,
2470 # and are intended to be withdrawn in a future Autoconf release.
2471 # They can cause serious problems if a builder's source tree is in a directory
2472 # whose full name contains unusual characters.
2473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2475 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2476
2477
2478 # Find a good install program.  We prefer a C program (faster),
2479 # so one script is as good as another.  But avoid the broken or
2480 # incompatible versions:
2481 # SysV /etc/install, /usr/sbin/install
2482 # SunOS /usr/etc/install
2483 # IRIX /sbin/install
2484 # AIX /bin/install
2485 # AmigaOS /C/install, which installs bootblocks on floppy discs
2486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2489 # OS/2's system install, which has a completely different semantic
2490 # ./install, which can be erroneously created by make from ./install.sh.
2491 # Reject install programs that cannot install multiple files.
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2493 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2494 if test -z "$INSTALL"; then
2495 if ${ac_cv_path_install+:} false; then :
2496   $as_echo_n "(cached) " >&6
2497 else
2498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501   IFS=$as_save_IFS
2502   test -z "$as_dir" && as_dir=.
2503     # Account for people who put trailing slashes in PATH elements.
2504 case $as_dir/ in #((
2505   ./ | .// | /[cC]/* | \
2506   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2507   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2508   /usr/ucb/* ) ;;
2509   *)
2510     # OSF1 and SCO ODT 3.0 have their own names for install.
2511     # Don't use installbsd from OSF since it installs stuff as root
2512     # by default.
2513     for ac_prog in ginstall scoinst install; do
2514       for ac_exec_ext in '' $ac_executable_extensions; do
2515         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2516           if test $ac_prog = install &&
2517             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2518             # AIX install.  It has an incompatible calling convention.
2519             :
2520           elif test $ac_prog = install &&
2521             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522             # program-specific install script used by HP pwplus--don't use.
2523             :
2524           else
2525             rm -rf conftest.one conftest.two conftest.dir
2526             echo one > conftest.one
2527             echo two > conftest.two
2528             mkdir conftest.dir
2529             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2530               test -s conftest.one && test -s conftest.two &&
2531               test -s conftest.dir/conftest.one &&
2532               test -s conftest.dir/conftest.two
2533             then
2534               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535               break 3
2536             fi
2537           fi
2538         fi
2539       done
2540     done
2541     ;;
2542 esac
2543
2544   done
2545 IFS=$as_save_IFS
2546
2547 rm -rf conftest.one conftest.two conftest.dir
2548
2549 fi
2550   if test "${ac_cv_path_install+set}" = set; then
2551     INSTALL=$ac_cv_path_install
2552   else
2553     # As a last resort, use the slow shell script.  Don't cache a
2554     # value for INSTALL within a source directory, because that will
2555     # break other packages using the cache if that directory is
2556     # removed, or if the value is a relative name.
2557     INSTALL=$ac_install_sh
2558   fi
2559 fi
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2561 $as_echo "$INSTALL" >&6; }
2562
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2568
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2572 $as_echo_n "checking whether build environment is sane... " >&6; }
2573 # Reject unsafe characters in $srcdir or the absolute working directory
2574 # name.  Accept space and tab only in the latter.
2575 am_lf='
2576 '
2577 case `pwd` in
2578   *[\\\"\#\$\&\'\`$am_lf]*)
2579     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2580 esac
2581 case $srcdir in
2582   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2583     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2584 esac
2585
2586 # Do 'set' in a subshell so we don't clobber the current shell's
2587 # arguments.  Must try -L first in case configure is actually a
2588 # symlink; some systems play weird games with the mod time of symlinks
2589 # (eg FreeBSD returns the mod time of the symlink's containing
2590 # directory).
2591 if (
2592    am_has_slept=no
2593    for am_try in 1 2; do
2594      echo "timestamp, slept: $am_has_slept" > conftest.file
2595      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2596      if test "$*" = "X"; then
2597         # -L didn't work.
2598         set X `ls -t "$srcdir/configure" conftest.file`
2599      fi
2600      if test "$*" != "X $srcdir/configure conftest.file" \
2601         && test "$*" != "X conftest.file $srcdir/configure"; then
2602
2603         # If neither matched, then we have a broken ls.  This can happen
2604         # if, for instance, CONFIG_SHELL is bash and it inherits a
2605         # broken ls alias from the environment.  This has actually
2606         # happened.  Such a system could not be considered "sane".
2607         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2608   alias in your environment" "$LINENO" 5
2609      fi
2610      if test "$2" = conftest.file || test $am_try -eq 2; then
2611        break
2612      fi
2613      # Just in case.
2614      sleep 1
2615      am_has_slept=yes
2616    done
2617    test "$2" = conftest.file
2618    )
2619 then
2620    # Ok.
2621    :
2622 else
2623    as_fn_error $? "newly created file is older than distributed files!
2624 Check your system clock" "$LINENO" 5
2625 fi
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2628 # If we didn't sleep, we still need to ensure time stamps of config.status and
2629 # generated files are strictly newer.
2630 am_sleep_pid=
2631 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2632   ( sleep 1 ) &
2633   am_sleep_pid=$!
2634 fi
2635
2636 rm -f conftest.file
2637
2638 test "$program_prefix" != NONE &&
2639   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2640 # Use a double $ so make ignores it.
2641 test "$program_suffix" != NONE &&
2642   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2643 # Double any \ or $.
2644 # By default was `s,x,x', remove it if useless.
2645 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2646 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2647
2648 # Expand $ac_aux_dir to an absolute path.
2649 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2650
2651 if test x"${MISSING+set}" != xset; then
2652   case $am_aux_dir in
2653   *\ * | *\     *)
2654     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2655   *)
2656     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2657   esac
2658 fi
2659 # Use eval to expand $SHELL
2660 if eval "$MISSING --is-lightweight"; then
2661   am_missing_run="$MISSING "
2662 else
2663   am_missing_run=
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2665 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2666 fi
2667
2668 if test x"${install_sh+set}" != xset; then
2669   case $am_aux_dir in
2670   *\ * | *\     *)
2671     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2672   *)
2673     install_sh="\${SHELL} $am_aux_dir/install-sh"
2674   esac
2675 fi
2676
2677 # Installed binaries are usually stripped using 'strip' when the user
2678 # run "make install-strip".  However 'strip' might not be the right
2679 # tool to use in cross-compilation environments, therefore Automake
2680 # will honor the 'STRIP' environment variable to overrule this program.
2681 if test "$cross_compiling" != no; then
2682   if test -n "$ac_tool_prefix"; then
2683   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2684 set dummy ${ac_tool_prefix}strip; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_STRIP+:} false; then :
2688   $as_echo_n "(cached) " >&6
2689 else
2690   if test -n "$STRIP"; then
2691   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696   IFS=$as_save_IFS
2697   test -z "$as_dir" && as_dir=.
2698     for ac_exec_ext in '' $ac_executable_extensions; do
2699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702     break 2
2703   fi
2704 done
2705   done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 STRIP=$ac_cv_prog_STRIP
2711 if test -n "$STRIP"; then
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2713 $as_echo "$STRIP" >&6; }
2714 else
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719
2720 fi
2721 if test -z "$ac_cv_prog_STRIP"; then
2722   ac_ct_STRIP=$STRIP
2723   # Extract the first word of "strip", so it can be a program name with args.
2724 set dummy strip; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2728   $as_echo_n "(cached) " >&6
2729 else
2730   if test -n "$ac_ct_STRIP"; then
2731   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736   IFS=$as_save_IFS
2737   test -z "$as_dir" && as_dir=.
2738     for ac_exec_ext in '' $ac_executable_extensions; do
2739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740     ac_cv_prog_ac_ct_STRIP="strip"
2741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742     break 2
2743   fi
2744 done
2745   done
2746 IFS=$as_save_IFS
2747
2748 fi
2749 fi
2750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2751 if test -n "$ac_ct_STRIP"; then
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2753 $as_echo "$ac_ct_STRIP" >&6; }
2754 else
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2757 fi
2758
2759   if test "x$ac_ct_STRIP" = x; then
2760     STRIP=":"
2761   else
2762     case $cross_compiling:$ac_tool_warned in
2763 yes:)
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2766 ac_tool_warned=yes ;;
2767 esac
2768     STRIP=$ac_ct_STRIP
2769   fi
2770 else
2771   STRIP="$ac_cv_prog_STRIP"
2772 fi
2773
2774 fi
2775 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2778 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2779 if test -z "$MKDIR_P"; then
2780   if ${ac_cv_path_mkdir+:} false; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788     for ac_prog in mkdir gmkdir; do
2789          for ac_exec_ext in '' $ac_executable_extensions; do
2790            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2791            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2792              'mkdir (GNU coreutils) '* | \
2793              'mkdir (coreutils) '* | \
2794              'mkdir (fileutils) '4.1*)
2795                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2796                break 3;;
2797            esac
2798          done
2799        done
2800   done
2801 IFS=$as_save_IFS
2802
2803 fi
2804
2805   test -d ./--version && rmdir ./--version
2806   if test "${ac_cv_path_mkdir+set}" = set; then
2807     MKDIR_P="$ac_cv_path_mkdir -p"
2808   else
2809     # As a last resort, use the slow shell script.  Don't cache a
2810     # value for MKDIR_P within a source directory, because that will
2811     # break other packages using the cache if that directory is
2812     # removed, or if the value is a relative name.
2813     MKDIR_P="$ac_install_sh -d"
2814   fi
2815 fi
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2817 $as_echo "$MKDIR_P" >&6; }
2818
2819 for ac_prog in gawk mawk nawk awk
2820 do
2821   # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_AWK+:} false; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test -n "$AWK"; then
2829   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836     for ac_exec_ext in '' $ac_executable_extensions; do
2837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838     ac_cv_prog_AWK="$ac_prog"
2839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843   done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 AWK=$ac_cv_prog_AWK
2849 if test -n "$AWK"; then
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2851 $as_echo "$AWK" >&6; }
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857
2858   test -n "$AWK" && break
2859 done
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2862 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2863 set x ${MAKE-make}
2864 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2865 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2866   $as_echo_n "(cached) " >&6
2867 else
2868   cat >conftest.make <<\_ACEOF
2869 SHELL = /bin/sh
2870 all:
2871         @echo '@@@%%%=$(MAKE)=@@@%%%'
2872 _ACEOF
2873 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2874 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2875   *@@@%%%=?*=@@@%%%*)
2876     eval ac_cv_prog_make_${ac_make}_set=yes;;
2877   *)
2878     eval ac_cv_prog_make_${ac_make}_set=no;;
2879 esac
2880 rm -f conftest.make
2881 fi
2882 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884 $as_echo "yes" >&6; }
2885   SET_MAKE=
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889   SET_MAKE="MAKE=${MAKE-make}"
2890 fi
2891
2892 rm -rf .tst 2>/dev/null
2893 mkdir .tst 2>/dev/null
2894 if test -d .tst; then
2895   am__leading_dot=.
2896 else
2897   am__leading_dot=_
2898 fi
2899 rmdir .tst 2>/dev/null
2900
2901 # Check whether --enable-silent-rules was given.
2902 if test "${enable_silent_rules+set}" = set; then :
2903   enableval=$enable_silent_rules;
2904 fi
2905
2906 case $enable_silent_rules in # (((
2907   yes) AM_DEFAULT_VERBOSITY=0;;
2908    no) AM_DEFAULT_VERBOSITY=1;;
2909     *) AM_DEFAULT_VERBOSITY=1;;
2910 esac
2911 am_make=${MAKE-make}
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2913 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2914 if ${am_cv_make_support_nested_variables+:} false; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if $as_echo 'TRUE=$(BAR$(V))
2918 BAR0=false
2919 BAR1=true
2920 V=1
2921 am__doit:
2922         @$(TRUE)
2923 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2924   am_cv_make_support_nested_variables=yes
2925 else
2926   am_cv_make_support_nested_variables=no
2927 fi
2928 fi
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2930 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2931 if test $am_cv_make_support_nested_variables = yes; then
2932     AM_V='$(V)'
2933   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2934 else
2935   AM_V=$AM_DEFAULT_VERBOSITY
2936   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2937 fi
2938 AM_BACKSLASH='\'
2939
2940 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2941   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2942   # is not polluted with repeated "-I."
2943   am__isrc=' -I$(srcdir)'
2944   # test to see if srcdir already configured
2945   if test -f $srcdir/config.status; then
2946     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2947   fi
2948 fi
2949
2950 # test whether we have cygpath
2951 if test -z "$CYGPATH_W"; then
2952   if (cygpath --version) >/dev/null 2>/dev/null; then
2953     CYGPATH_W='cygpath -w'
2954   else
2955     CYGPATH_W=echo
2956   fi
2957 fi
2958
2959
2960 # Define the identity of the package.
2961  PACKAGE='fribidi'
2962  VERSION='1.0.2'
2963
2964
2965 # Some tools Automake needs.
2966
2967 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2968
2969
2970 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2971
2972
2973 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2974
2975
2976 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2977
2978
2979 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2980
2981 # For better backward compatibility.  To be removed once Automake 1.9.x
2982 # dies out for good.  For more background, see:
2983 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2984 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2985 mkdir_p='$(MKDIR_P)'
2986
2987 # We need awk for the "check" target (and possibly the TAP driver).  The
2988 # system "awk" is bad on some platforms.
2989 # Always define AMTAR for backward compatibility.  Yes, it's still used
2990 # in the wild :-(  We should find a proper way to deprecate it ...
2991 AMTAR='$${TAR-tar}'
2992
2993
2994 # We'll loop over all known methods to create a tar archive until one works.
2995 _am_tools='gnutar  pax cpio none'
2996
2997 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2998
2999
3000
3001
3002
3003
3004 # POSIX will say in a future version that running "rm -f" with no argument
3005 # is OK; and we want to be able to make that assumption in our Makefile
3006 # recipes.  So use an aggressive probe to check that the usage we want is
3007 # actually supported "in the wild" to an acceptable degree.
3008 # See automake bug#10828.
3009 # To make any issue more visible, cause the running configure to be aborted
3010 # by default if the 'rm' program in use doesn't match our expectations; the
3011 # user can still override this though.
3012 if rm -f && rm -fr && rm -rf; then : OK; else
3013   cat >&2 <<'END'
3014 Oops!
3015
3016 Your 'rm' program seems unable to run without file operands specified
3017 on the command line, even when the '-f' option is present.  This is contrary
3018 to the behaviour of most rm programs out there, and not conforming with
3019 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3020
3021 Please tell bug-automake@gnu.org about your system, including the value
3022 of your $PATH and any error possibly output before this message.  This
3023 can help us improve future automake versions.
3024
3025 END
3026   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3027     echo 'Configuration will proceed anyway, since you have set the' >&2
3028     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3029     echo >&2
3030   else
3031     cat >&2 <<'END'
3032 Aborting the configuration process, to ensure you take notice of the issue.
3033
3034 You can download and install GNU coreutils to get an 'rm' implementation
3035 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3036
3037 If you want to complete the configuration process using your problematic
3038 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3039 to "yes", and re-run configure.
3040
3041 END
3042     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3043   fi
3044 fi
3045
3046 # Check whether --enable-silent-rules was given.
3047 if test "${enable_silent_rules+set}" = set; then :
3048   enableval=$enable_silent_rules;
3049 fi
3050
3051 case $enable_silent_rules in # (((
3052   yes) AM_DEFAULT_VERBOSITY=0;;
3053    no) AM_DEFAULT_VERBOSITY=1;;
3054     *) AM_DEFAULT_VERBOSITY=0;;
3055 esac
3056 am_make=${MAKE-make}
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3058 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3059 if ${am_cv_make_support_nested_variables+:} false; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if $as_echo 'TRUE=$(BAR$(V))
3063 BAR0=false
3064 BAR1=true
3065 V=1
3066 am__doit:
3067         @$(TRUE)
3068 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3069   am_cv_make_support_nested_variables=yes
3070 else
3071   am_cv_make_support_nested_variables=no
3072 fi
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3075 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3076 if test $am_cv_make_support_nested_variables = yes; then
3077     AM_V='$(V)'
3078   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3079 else
3080   AM_V=$AM_DEFAULT_VERBOSITY
3081   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3082 fi
3083 AM_BACKSLASH='\'
3084
3085
3086 DEPDIR="${am__leading_dot}deps"
3087
3088 ac_config_commands="$ac_config_commands depfiles"
3089
3090
3091 am_make=${MAKE-make}
3092 cat > confinc << 'END'
3093 am__doit:
3094         @echo this is the am__doit target
3095 .PHONY: am__doit
3096 END
3097 # If we don't find an include directive, just comment out the code.
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3099 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3100 am__include="#"
3101 am__quote=
3102 _am_result=none
3103 # First try GNU make style include.
3104 echo "include confinc" > confmf
3105 # Ignore all kinds of additional output from 'make'.
3106 case `$am_make -s -f confmf 2> /dev/null` in #(
3107 *the\ am__doit\ target*)
3108   am__include=include
3109   am__quote=
3110   _am_result=GNU
3111   ;;
3112 esac
3113 # Now try BSD make style include.
3114 if test "$am__include" = "#"; then
3115    echo '.include "confinc"' > confmf
3116    case `$am_make -s -f confmf 2> /dev/null` in #(
3117    *the\ am__doit\ target*)
3118      am__include=.include
3119      am__quote="\""
3120      _am_result=BSD
3121      ;;
3122    esac
3123 fi
3124
3125
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3127 $as_echo "$_am_result" >&6; }
3128 rm -f confinc confmf
3129
3130 # Check whether --enable-dependency-tracking was given.
3131 if test "${enable_dependency_tracking+set}" = set; then :
3132   enableval=$enable_dependency_tracking;
3133 fi
3134
3135 if test "x$enable_dependency_tracking" != xno; then
3136   am_depcomp="$ac_aux_dir/depcomp"
3137   AMDEPBACKSLASH='\'
3138   am__nodep='_no'
3139 fi
3140  if test "x$enable_dependency_tracking" != xno; then
3141   AMDEP_TRUE=
3142   AMDEP_FALSE='#'
3143 else
3144   AMDEP_TRUE='#'
3145   AMDEP_FALSE=
3146 fi
3147
3148
3149 ac_ext=c
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154 if test -n "$ac_tool_prefix"; then
3155   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3156 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160   $as_echo_n "(cached) " >&6
3161 else
3162   if test -n "$CC"; then
3163   ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177   done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192 fi
3193 if test -z "$ac_cv_prog_CC"; then
3194   ac_ct_CC=$CC
3195   # Extract the first word of "gcc", so it can be a program name with args.
3196 set dummy gcc; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3200   $as_echo_n "(cached) " >&6
3201 else
3202   if test -n "$ac_ct_CC"; then
3203   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208   IFS=$as_save_IFS
3209   test -z "$as_dir" && as_dir=.
3210     for ac_exec_ext in '' $ac_executable_extensions; do
3211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212     ac_cv_prog_ac_ct_CC="gcc"
3213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214     break 2
3215   fi
3216 done
3217   done
3218 IFS=$as_save_IFS
3219
3220 fi
3221 fi
3222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3223 if test -n "$ac_ct_CC"; then
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3225 $as_echo "$ac_ct_CC" >&6; }
3226 else
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231   if test "x$ac_ct_CC" = x; then
3232     CC=""
3233   else
3234     case $cross_compiling:$ac_tool_warned in
3235 yes:)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238 ac_tool_warned=yes ;;
3239 esac
3240     CC=$ac_ct_CC
3241   fi
3242 else
3243   CC="$ac_cv_prog_CC"
3244 fi
3245
3246 if test -z "$CC"; then
3247           if test -n "$ac_tool_prefix"; then
3248     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3249 set dummy ${ac_tool_prefix}cc; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_CC+:} false; then :
3253   $as_echo_n "(cached) " >&6
3254 else
3255   if test -n "$CC"; then
3256   ac_cv_prog_CC="$CC" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261   IFS=$as_save_IFS
3262   test -z "$as_dir" && as_dir=.
3263     for ac_exec_ext in '' $ac_executable_extensions; do
3264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265     ac_cv_prog_CC="${ac_tool_prefix}cc"
3266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267     break 2
3268   fi
3269 done
3270   done
3271 IFS=$as_save_IFS
3272
3273 fi
3274 fi
3275 CC=$ac_cv_prog_CC
3276 if test -n "$CC"; then
3277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278 $as_echo "$CC" >&6; }
3279 else
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 fi
3283
3284
3285   fi
3286 fi
3287 if test -z "$CC"; then
3288   # Extract the first word of "cc", so it can be a program name with args.
3289 set dummy cc; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_CC+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   if test -n "$CC"; then
3296   ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298   ac_prog_rejected=no
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304     for ac_exec_ext in '' $ac_executable_extensions; do
3305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3307        ac_prog_rejected=yes
3308        continue
3309      fi
3310     ac_cv_prog_CC="cc"
3311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312     break 2
3313   fi
3314 done
3315   done
3316 IFS=$as_save_IFS
3317
3318 if test $ac_prog_rejected = yes; then
3319   # We found a bogon in the path, so make sure we never use it.
3320   set dummy $ac_cv_prog_CC
3321   shift
3322   if test $# != 0; then
3323     # We chose a different compiler from the bogus one.
3324     # However, it has the same basename, so the bogon will be chosen
3325     # first if we set CC to just the basename; use the full file name.
3326     shift
3327     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3328   fi
3329 fi
3330 fi
3331 fi
3332 CC=$ac_cv_prog_CC
3333 if test -n "$CC"; then
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3335 $as_echo "$CC" >&6; }
3336 else
3337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 fi
3340
3341
3342 fi
3343 if test -z "$CC"; then
3344   if test -n "$ac_tool_prefix"; then
3345   for ac_prog in cl.exe
3346   do
3347     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CC+:} false; then :
3352   $as_echo_n "(cached) " >&6
3353 else
3354   if test -n "$CC"; then
3355   ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362     for ac_exec_ext in '' $ac_executable_extensions; do
3363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366     break 2
3367   fi
3368 done
3369   done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3378 else
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384     test -n "$CC" && break
3385   done
3386 fi
3387 if test -z "$CC"; then
3388   ac_ct_CC=$CC
3389   for ac_prog in cl.exe
3390 do
3391   # Extract the first word of "$ac_prog", so it can be a program name with args.
3392 set dummy $ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   if test -n "$ac_ct_CC"; then
3399   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   test -z "$as_dir" && as_dir=.
3406     for ac_exec_ext in '' $ac_executable_extensions; do
3407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408     ac_cv_prog_ac_ct_CC="$ac_prog"
3409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410     break 2
3411   fi
3412 done
3413   done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419 if test -n "$ac_ct_CC"; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3421 $as_echo "$ac_ct_CC" >&6; }
3422 else
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428   test -n "$ac_ct_CC" && break
3429 done
3430
3431   if test "x$ac_ct_CC" = x; then
3432     CC=""
3433   else
3434     case $cross_compiling:$ac_tool_warned in
3435 yes:)
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3438 ac_tool_warned=yes ;;
3439 esac
3440     CC=$ac_ct_CC
3441   fi
3442 fi
3443
3444 fi
3445
3446
3447 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $? "no acceptable C compiler found in \$PATH
3450 See \`config.log' for more details" "$LINENO" 5; }
3451
3452 # Provide some information about the compiler.
3453 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3454 set X $ac_compile
3455 ac_compiler=$2
3456 for ac_option in --version -v -V -qversion; do
3457   { { ac_try="$ac_compiler $ac_option >&5"
3458 case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3465   ac_status=$?
3466   if test -s conftest.err; then
3467     sed '10a\
3468 ... rest of stderr output deleted ...
3469          10q' conftest.err >conftest.er1
3470     cat conftest.er1 >&5
3471   fi
3472   rm -f conftest.er1 conftest.err
3473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474   test $ac_status = 0; }
3475 done
3476
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 ac_clean_files_save=$ac_clean_files
3489 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3490 # Try to create an executable without -o first, disregard a.out.
3491 # It will help us diagnose broken compilers, and finding out an intuition
3492 # of exeext.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3494 $as_echo_n "checking whether the C compiler works... " >&6; }
3495 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3496
3497 # The possible output files:
3498 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3499
3500 ac_rmfiles=
3501 for ac_file in $ac_files
3502 do
3503   case $ac_file in
3504     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3506   esac
3507 done
3508 rm -f $ac_rmfiles
3509
3510 if { { ac_try="$ac_link_default"
3511 case "(($ac_try" in
3512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513   *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517   (eval "$ac_link_default") 2>&5
3518   ac_status=$?
3519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520   test $ac_status = 0; }; then :
3521   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3522 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3523 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3524 # so that the user can short-circuit this test for compilers unknown to
3525 # Autoconf.
3526 for ac_file in $ac_files ''
3527 do
3528   test -f "$ac_file" || continue
3529   case $ac_file in
3530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3531         ;;
3532     [ab].out )
3533         # We found the default executable, but exeext='' is most
3534         # certainly right.
3535         break;;
3536     *.* )
3537         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3538         then :; else
3539            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540         fi
3541         # We set ac_cv_exeext here because the later test for it is not
3542         # safe: cross compilers may not add the suffix if given an `-o'
3543         # argument, so we may need to know it at that point already.
3544         # Even if this section looks crufty: it has the advantage of
3545         # actually working.
3546         break;;
3547     * )
3548         break;;
3549   esac
3550 done
3551 test "$ac_cv_exeext" = no && ac_cv_exeext=
3552
3553 else
3554   ac_file=''
3555 fi
3556 if test -z "$ac_file"; then :
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error 77 "C compiler cannot create executables
3565 See \`config.log' for more details" "$LINENO" 5; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3568 $as_echo "yes" >&6; }
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3571 $as_echo_n "checking for C compiler default output file name... " >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 ac_exeext=$ac_cv_exeext
3575
3576 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3577 ac_clean_files=$ac_clean_files_save
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3579 $as_echo_n "checking for suffix of executables... " >&6; }
3580 if { { ac_try="$ac_link"
3581 case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587   (eval "$ac_link") 2>&5
3588   ac_status=$?
3589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590   test $ac_status = 0; }; then :
3591   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3592 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3593 # work properly (i.e., refer to `conftest.exe'), while it won't with
3594 # `rm'.
3595 for ac_file in conftest.exe conftest conftest.*; do
3596   test -f "$ac_file" || continue
3597   case $ac_file in
3598     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3599     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600           break;;
3601     * ) break;;
3602   esac
3603 done
3604 else
3605   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3608 See \`config.log' for more details" "$LINENO" 5; }
3609 fi
3610 rm -f conftest conftest$ac_cv_exeext
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3612 $as_echo "$ac_cv_exeext" >&6; }
3613
3614 rm -f conftest.$ac_ext
3615 EXEEXT=$ac_cv_exeext
3616 ac_exeext=$EXEEXT
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619 #include <stdio.h>
3620 int
3621 main ()
3622 {
3623 FILE *f = fopen ("conftest.out", "w");
3624  return ferror (f) || fclose (f) != 0;
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 ac_clean_files="$ac_clean_files conftest.out"
3631 # Check that the compiler produces executables we can run.  If not, either
3632 # the compiler is broken, or we cross compile.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3634 $as_echo_n "checking whether we are cross compiling... " >&6; }
3635 if test "$cross_compiling" != yes; then
3636   { { ac_try="$ac_link"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643   (eval "$ac_link") 2>&5
3644   ac_status=$?
3645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646   test $ac_status = 0; }
3647   if { ac_try='./conftest$ac_cv_exeext'
3648   { { case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654   (eval "$ac_try") 2>&5
3655   ac_status=$?
3656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657   test $ac_status = 0; }; }; then
3658     cross_compiling=no
3659   else
3660     if test "$cross_compiling" = maybe; then
3661         cross_compiling=yes
3662     else
3663         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $? "cannot run C compiled programs.
3666 If you meant to cross compile, use \`--host'.
3667 See \`config.log' for more details" "$LINENO" 5; }
3668     fi
3669   fi
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3672 $as_echo "$cross_compiling" >&6; }
3673
3674 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3675 ac_clean_files=$ac_clean_files_save
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3677 $as_echo_n "checking for suffix of object files... " >&6; }
3678 if ${ac_cv_objext+:} false; then :
3679   $as_echo_n "(cached) " >&6
3680 else
3681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.o conftest.obj
3693 if { { ac_try="$ac_compile"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700   (eval "$ac_compile") 2>&5
3701   ac_status=$?
3702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703   test $ac_status = 0; }; then :
3704   for ac_file in conftest.o conftest.obj conftest.*; do
3705   test -f "$ac_file" || continue;
3706   case $ac_file in
3707     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709        break;;
3710   esac
3711 done
3712 else
3713   $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error $? "cannot compute suffix of object files: cannot compile
3719 See \`config.log' for more details" "$LINENO" 5; }
3720 fi
3721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3724 $as_echo "$ac_cv_objext" >&6; }
3725 OBJEXT=$ac_cv_objext
3726 ac_objext=$OBJEXT
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3728 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3729 if ${ac_cv_c_compiler_gnu+:} false; then :
3730   $as_echo_n "(cached) " >&6
3731 else
3732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h.  */
3734
3735 int
3736 main ()
3737 {
3738 #ifndef __GNUC__
3739        choke me
3740 #endif
3741
3742   ;
3743   return 0;
3744 }
3745 _ACEOF
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747   ac_compiler_gnu=yes
3748 else
3749   ac_compiler_gnu=no
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3756 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3757 if test $ac_compiler_gnu = yes; then
3758   GCC=yes
3759 else
3760   GCC=
3761 fi
3762 ac_test_CFLAGS=${CFLAGS+set}
3763 ac_save_CFLAGS=$CFLAGS
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3765 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3766 if ${ac_cv_prog_cc_g+:} false; then :
3767   $as_echo_n "(cached) " >&6
3768 else
3769   ac_save_c_werror_flag=$ac_c_werror_flag
3770    ac_c_werror_flag=yes
3771    ac_cv_prog_cc_g=no
3772    CFLAGS="-g"
3773    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h.  */
3775
3776 int
3777 main ()
3778 {
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785   ac_cv_prog_cc_g=yes
3786 else
3787   CFLAGS=""
3788       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h.  */
3790
3791 int
3792 main ()
3793 {
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800
3801 else
3802   ac_c_werror_flag=$ac_save_c_werror_flag
3803          CFLAGS="-g"
3804          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h.  */
3806
3807 int
3808 main ()
3809 {
3810
3811   ;
3812   return 0;
3813 }
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816   ac_cv_prog_cc_g=yes
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 fi
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823    ac_c_werror_flag=$ac_save_c_werror_flag
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3826 $as_echo "$ac_cv_prog_cc_g" >&6; }
3827 if test "$ac_test_CFLAGS" = set; then
3828   CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830   if test "$GCC" = yes; then
3831     CFLAGS="-g -O2"
3832   else
3833     CFLAGS="-g"
3834   fi
3835 else
3836   if test "$GCC" = yes; then
3837     CFLAGS="-O2"
3838   else
3839     CFLAGS=
3840   fi
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3843 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3844 if ${ac_cv_prog_cc_c89+:} false; then :
3845   $as_echo_n "(cached) " >&6
3846 else
3847   ac_cv_prog_cc_c89=no
3848 ac_save_CC=$CC
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h.  */
3851 #include <stdarg.h>
3852 #include <stdio.h>
3853 struct stat;
3854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3855 struct buf { int x; };
3856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3857 static char *e (p, i)
3858      char **p;
3859      int i;
3860 {
3861   return p[i];
3862 }
3863 static char *f (char * (*g) (char **, int), char **p, ...)
3864 {
3865   char *s;
3866   va_list v;
3867   va_start (v,p);
3868   s = g (p, va_arg (v,int));
3869   va_end (v);
3870   return s;
3871 }
3872
3873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3874    function prototypes and stuff, but not '\xHH' hex character constants.
3875    These don't provoke an error unfortunately, instead are silently treated
3876    as 'x'.  The following induces an error, until -std is added to get
3877    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3878    array size at least.  It's necessary to write '\x00'==0 to get something
3879    that's true only with -std.  */
3880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3881
3882 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3883    inside strings and character constants.  */
3884 #define FOO(x) 'x'
3885 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3886
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891 int argc;
3892 char **argv;
3893 int
3894 main ()
3895 {
3896 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3902         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3903 do
3904   CC="$ac_save_CC $ac_arg"
3905   if ac_fn_c_try_compile "$LINENO"; then :
3906   ac_cv_prog_cc_c89=$ac_arg
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext
3909   test "x$ac_cv_prog_cc_c89" != "xno" && break
3910 done
3911 rm -f conftest.$ac_ext
3912 CC=$ac_save_CC
3913
3914 fi
3915 # AC_CACHE_VAL
3916 case "x$ac_cv_prog_cc_c89" in
3917   x)
3918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3919 $as_echo "none needed" >&6; } ;;
3920   xno)
3921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3922 $as_echo "unsupported" >&6; } ;;
3923   *)
3924     CC="$CC $ac_cv_prog_cc_c89"
3925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3926 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3927 esac
3928 if test "x$ac_cv_prog_cc_c89" != xno; then :
3929
3930 fi
3931
3932 ac_ext=c
3933 ac_cpp='$CPP $CPPFLAGS'
3934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3944 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3945 if ${am_cv_prog_cc_c_o+:} false; then :
3946   $as_echo_n "(cached) " >&6
3947 else
3948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959   # Make sure it works both with $CC and with simple cc.
3960   # Following AC_PROG_CC_C_O, we do the test twice because some
3961   # compilers refuse to overwrite an existing .o file with -o,
3962   # though they will create one.
3963   am_cv_prog_cc_c_o=yes
3964   for am_i in 1 2; do
3965     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3966    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3967    ac_status=$?
3968    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969    (exit $ac_status); } \
3970          && test -f conftest2.$ac_objext; then
3971       : OK
3972     else
3973       am_cv_prog_cc_c_o=no
3974       break
3975     fi
3976   done
3977   rm -f core conftest*
3978   unset am_i
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3981 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3982 if test "$am_cv_prog_cc_c_o" != yes; then
3983    # Losing compiler, so override with the script.
3984    # FIXME: It is wrong to rewrite CC.
3985    # But if we don't then we get into trouble of one sort or another.
3986    # A longer-term fix would be to have automake use am__CC in this case,
3987    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3988    CC="$am_aux_dir/compile $CC"
3989 fi
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995
3996
3997 depcc="$CC"   am_compiler_list=
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4000 $as_echo_n "checking dependency style of $depcc... " >&6; }
4001 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4005   # We make a subdir and do the tests there.  Otherwise we can end up
4006   # making bogus files that we don't know about and never remove.  For
4007   # instance it was reported that on HP-UX the gcc test will end up
4008   # making a dummy file named 'D' -- because '-MD' means "put the output
4009   # in D".
4010   rm -rf conftest.dir
4011   mkdir conftest.dir
4012   # Copy depcomp to subdir because otherwise we won't find it if we're
4013   # using a relative directory.
4014   cp "$am_depcomp" conftest.dir
4015   cd conftest.dir
4016   # We will build objects and dependencies in a subdirectory because
4017   # it helps to detect inapplicable dependency modes.  For instance
4018   # both Tru64's cc and ICC support -MD to output dependencies as a
4019   # side effect of compilation, but ICC will put the dependencies in
4020   # the current directory while Tru64 will put them in the object
4021   # directory.
4022   mkdir sub
4023
4024   am_cv_CC_dependencies_compiler_type=none
4025   if test "$am_compiler_list" = ""; then
4026      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4027   fi
4028   am__universal=false
4029   case " $depcc " in #(
4030      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4031      esac
4032
4033   for depmode in $am_compiler_list; do
4034     # Setup a source with many dependencies, because some compilers
4035     # like to wrap large dependency lists on column 80 (with \), and
4036     # we should not choose a depcomp mode which is confused by this.
4037     #
4038     # We need to recreate these files for each test, as the compiler may
4039     # overwrite some of them when testing with obscure command lines.
4040     # This happens at least with the AIX C compiler.
4041     : > sub/conftest.c
4042     for i in 1 2 3 4 5 6; do
4043       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4044       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4045       # Solaris 10 /bin/sh.
4046       echo '/* dummy */' > sub/conftst$i.h
4047     done
4048     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4049
4050     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4051     # mode.  It turns out that the SunPro C++ compiler does not properly
4052     # handle '-M -o', and we need to detect this.  Also, some Intel
4053     # versions had trouble with output in subdirs.
4054     am__obj=sub/conftest.${OBJEXT-o}
4055     am__minus_obj="-o $am__obj"
4056     case $depmode in
4057     gcc)
4058       # This depmode causes a compiler race in universal mode.
4059       test "$am__universal" = false || continue
4060       ;;
4061     nosideeffect)
4062       # After this tag, mechanisms are not by side-effect, so they'll
4063       # only be used when explicitly requested.
4064       if test "x$enable_dependency_tracking" = xyes; then
4065         continue
4066       else
4067         break
4068       fi
4069       ;;
4070     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4071       # This compiler won't grok '-c -o', but also, the minuso test has
4072       # not run yet.  These depmodes are late enough in the game, and
4073       # so weak that their functioning should not be impacted.
4074       am__obj=conftest.${OBJEXT-o}
4075       am__minus_obj=
4076       ;;
4077     none) break ;;
4078     esac
4079     if depmode=$depmode \
4080        source=sub/conftest.c object=$am__obj \
4081        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4082        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4083          >/dev/null 2>conftest.err &&
4084        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4085        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4086        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4087        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4088       # icc doesn't choke on unknown options, it will just issue warnings
4089       # or remarks (even with -Werror).  So we grep stderr for any message
4090       # that says an option was ignored or not supported.
4091       # When given -MP, icc 7.0 and 7.1 complain thusly:
4092       #   icc: Command line warning: ignoring option '-M'; no argument required
4093       # The diagnosis changed in icc 8.0:
4094       #   icc: Command line remark: option '-MP' not supported
4095       if (grep 'ignoring option' conftest.err ||
4096           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4097         am_cv_CC_dependencies_compiler_type=$depmode
4098         break
4099       fi
4100     fi
4101   done
4102
4103   cd ..
4104   rm -rf conftest.dir
4105 else
4106   am_cv_CC_dependencies_compiler_type=none
4107 fi
4108
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4111 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4112 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4113
4114  if
4115   test "x$enable_dependency_tracking" != xno \
4116   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4117   am__fastdepCC_TRUE=
4118   am__fastdepCC_FALSE='#'
4119 else
4120   am__fastdepCC_TRUE='#'
4121   am__fastdepCC_FALSE=
4122 fi
4123
4124
4125
4126 if test -n "$ac_tool_prefix"; then
4127   for ac_prog in ar lib "link -lib"
4128   do
4129     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_AR+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if test -n "$AR"; then
4137   ac_cv_prog_AR="$AR" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142   IFS=$as_save_IFS
4143   test -z "$as_dir" && as_dir=.
4144     for ac_exec_ext in '' $ac_executable_extensions; do
4145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151   done
4152 IFS=$as_save_IFS
4153
4154 fi
4155 fi
4156 AR=$ac_cv_prog_AR
4157 if test -n "$AR"; then
4158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4159 $as_echo "$AR" >&6; }
4160 else
4161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165
4166     test -n "$AR" && break
4167   done
4168 fi
4169 if test -z "$AR"; then
4170   ac_ct_AR=$AR
4171   for ac_prog in ar lib "link -lib"
4172 do
4173   # Extract the first word of "$ac_prog", so it can be a program name with args.
4174 set dummy $ac_prog; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   if test -n "$ac_ct_AR"; then
4181   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186   IFS=$as_save_IFS
4187   test -z "$as_dir" && as_dir=.
4188     for ac_exec_ext in '' $ac_executable_extensions; do
4189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190     ac_cv_prog_ac_ct_AR="$ac_prog"
4191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192     break 2
4193   fi
4194 done
4195   done
4196 IFS=$as_save_IFS
4197
4198 fi
4199 fi
4200 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4201 if test -n "$ac_ct_AR"; then
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4203 $as_echo "$ac_ct_AR" >&6; }
4204 else
4205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4207 fi
4208
4209
4210   test -n "$ac_ct_AR" && break
4211 done
4212
4213   if test "x$ac_ct_AR" = x; then
4214     AR="false"
4215   else
4216     case $cross_compiling:$ac_tool_warned in
4217 yes:)
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4220 ac_tool_warned=yes ;;
4221 esac
4222     AR=$ac_ct_AR
4223   fi
4224 fi
4225
4226 : ${AR=ar}
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4229 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4230 if ${am_cv_ar_interface+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
4239    am_cv_ar_interface=ar
4240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242 int some_variable = 0;
4243 _ACEOF
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4246       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4247   (eval $am_ar_try) 2>&5
4248   ac_status=$?
4249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250   test $ac_status = 0; }
4251       if test "$ac_status" -eq 0; then
4252         am_cv_ar_interface=ar
4253       else
4254         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4255         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4256   (eval $am_ar_try) 2>&5
4257   ac_status=$?
4258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4259   test $ac_status = 0; }
4260         if test "$ac_status" -eq 0; then
4261           am_cv_ar_interface=lib
4262         else
4263           am_cv_ar_interface=unknown
4264         fi
4265       fi
4266       rm -f conftest.lib libconftest.a
4267
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270    ac_ext=c
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4278 $as_echo "$am_cv_ar_interface" >&6; }
4279
4280 case $am_cv_ar_interface in
4281 ar)
4282   ;;
4283 lib)
4284   # Microsoft lib, so override with the ar-lib wrapper script.
4285   # FIXME: It is wrong to rewrite AR.
4286   # But if we don't then we get into trouble of one sort or another.
4287   # A longer-term fix would be to have automake use am__AR in this case,
4288   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4289   # similar.
4290   AR="$am_aux_dir/ar-lib $AR"
4291   ;;
4292 unknown)
4293   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4294   ;;
4295 esac
4296
4297
4298 # Initialize libtool
4299
4300 case `pwd` in
4301   *\ * | *\     *)
4302     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4303 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4304 esac
4305
4306
4307
4308 macro_version='2.4.6'
4309 macro_revision='2.4.6'
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323 ltmain=$ac_aux_dir/ltmain.sh
4324
4325 # Make sure we can run config.sub.
4326 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4327   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4330 $as_echo_n "checking build system type... " >&6; }
4331 if ${ac_cv_build+:} false; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   ac_build_alias=$build_alias
4335 test "x$ac_build_alias" = x &&
4336   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4337 test "x$ac_build_alias" = x &&
4338   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4339 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4340   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4341
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4344 $as_echo "$ac_cv_build" >&6; }
4345 case $ac_cv_build in
4346 *-*-*) ;;
4347 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4348 esac
4349 build=$ac_cv_build
4350 ac_save_IFS=$IFS; IFS='-'
4351 set x $ac_cv_build
4352 shift
4353 build_cpu=$1
4354 build_vendor=$2
4355 shift; shift
4356 # Remember, the first character of IFS is used to create $*,
4357 # except with old shells:
4358 build_os=$*
4359 IFS=$ac_save_IFS
4360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4364 $as_echo_n "checking host system type... " >&6; }
4365 if ${ac_cv_host+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   if test "x$host_alias" = x; then
4369   ac_cv_host=$ac_cv_build
4370 else
4371   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4372     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4373 fi
4374
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4377 $as_echo "$ac_cv_host" >&6; }
4378 case $ac_cv_host in
4379 *-*-*) ;;
4380 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4381 esac
4382 host=$ac_cv_host
4383 ac_save_IFS=$IFS; IFS='-'
4384 set x $ac_cv_host
4385 shift
4386 host_cpu=$1
4387 host_vendor=$2
4388 shift; shift
4389 # Remember, the first character of IFS is used to create $*,
4390 # except with old shells:
4391 host_os=$*
4392 IFS=$ac_save_IFS
4393 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4394
4395
4396 # Backslashify metacharacters that are still active within
4397 # double-quoted strings.
4398 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4399
4400 # Same as above, but do not quote variable references.
4401 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4402
4403 # Sed substitution to delay expansion of an escaped shell variable in a
4404 # double_quote_subst'ed string.
4405 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4406
4407 # Sed substitution to delay expansion of an escaped single quote.
4408 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4409
4410 # Sed substitution to avoid accidental globbing in evaled expressions
4411 no_glob_subst='s/\*/\\\*/g'
4412
4413 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4414 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4415 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4418 $as_echo_n "checking how to print strings... " >&6; }
4419 # Test print first, because it will be a builtin if present.
4420 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4421    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4422   ECHO='print -r --'
4423 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4424   ECHO='printf %s\n'
4425 else
4426   # Use this function as a fallback that always works.
4427   func_fallback_echo ()
4428   {
4429     eval 'cat <<_LTECHO_EOF
4430 $1
4431 _LTECHO_EOF'
4432   }
4433   ECHO='func_fallback_echo'
4434 fi
4435
4436 # func_echo_all arg...
4437 # Invoke $ECHO with all args, space-separated.
4438 func_echo_all ()
4439 {
4440     $ECHO ""
4441 }
4442
4443 case $ECHO in
4444   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4445 $as_echo "printf" >&6; } ;;
4446   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4447 $as_echo "print -r" >&6; } ;;
4448   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4449 $as_echo "cat" >&6; } ;;
4450 esac
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4466 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4467 if ${ac_cv_path_SED+:} false; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4471      for ac_i in 1 2 3 4 5 6 7; do
4472        ac_script="$ac_script$as_nl$ac_script"
4473      done
4474      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4475      { ac_script=; unset ac_script;}
4476      if test -z "$SED"; then
4477   ac_path_SED_found=false
4478   # Loop through the user's path and test for each of PROGNAME-LIST
4479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484     for ac_prog in sed gsed; do
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4487       as_fn_executable_p "$ac_path_SED" || continue
4488 # Check for GNU ac_path_SED and select it if it is found.
4489   # Check for GNU $ac_path_SED
4490 case `"$ac_path_SED" --version 2>&1` in
4491 *GNU*)
4492   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4493 *)
4494   ac_count=0
4495   $as_echo_n 0123456789 >"conftest.in"
4496   while :
4497   do
4498     cat "conftest.in" "conftest.in" >"conftest.tmp"
4499     mv "conftest.tmp" "conftest.in"
4500     cp "conftest.in" "conftest.nl"
4501     $as_echo '' >> "conftest.nl"
4502     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504     as_fn_arith $ac_count + 1 && ac_count=$as_val
4505     if test $ac_count -gt ${ac_path_SED_max-0}; then
4506       # Best one so far, save it but keep looking for a better one
4507       ac_cv_path_SED="$ac_path_SED"
4508       ac_path_SED_max=$ac_count
4509     fi
4510     # 10*(2^10) chars as input seems more than enough
4511     test $ac_count -gt 10 && break
4512   done
4513   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514 esac
4515
4516       $ac_path_SED_found && break 3
4517     done
4518   done
4519   done
4520 IFS=$as_save_IFS
4521   if test -z "$ac_cv_path_SED"; then
4522     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4523   fi
4524 else
4525   ac_cv_path_SED=$SED
4526 fi
4527
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4530 $as_echo "$ac_cv_path_SED" >&6; }
4531  SED="$ac_cv_path_SED"
4532   rm -f conftest.sed
4533
4534 test -z "$SED" && SED=sed
4535 Xsed="$SED -e 1s/^X//"
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4548 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4549 if ${ac_cv_path_GREP+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   if test -z "$GREP"; then
4553   ac_path_GREP_found=false
4554   # Loop through the user's path and test for each of PROGNAME-LIST
4555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_prog in grep ggrep; do
4561     for ac_exec_ext in '' $ac_executable_extensions; do
4562       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4563       as_fn_executable_p "$ac_path_GREP" || continue
4564 # Check for GNU ac_path_GREP and select it if it is found.
4565   # Check for GNU $ac_path_GREP
4566 case `"$ac_path_GREP" --version 2>&1` in
4567 *GNU*)
4568   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4569 *)
4570   ac_count=0
4571   $as_echo_n 0123456789 >"conftest.in"
4572   while :
4573   do
4574     cat "conftest.in" "conftest.in" >"conftest.tmp"
4575     mv "conftest.tmp" "conftest.in"
4576     cp "conftest.in" "conftest.nl"
4577     $as_echo 'GREP' >> "conftest.nl"
4578     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580     as_fn_arith $ac_count + 1 && ac_count=$as_val
4581     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4582       # Best one so far, save it but keep looking for a better one
4583       ac_cv_path_GREP="$ac_path_GREP"
4584       ac_path_GREP_max=$ac_count
4585     fi
4586     # 10*(2^10) chars as input seems more than enough
4587     test $ac_count -gt 10 && break
4588   done
4589   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 esac
4591
4592       $ac_path_GREP_found && break 3
4593     done
4594   done
4595   done
4596 IFS=$as_save_IFS
4597   if test -z "$ac_cv_path_GREP"; then
4598     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4599   fi
4600 else
4601   ac_cv_path_GREP=$GREP
4602 fi
4603
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4606 $as_echo "$ac_cv_path_GREP" >&6; }
4607  GREP="$ac_cv_path_GREP"
4608
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4611 $as_echo_n "checking for egrep... " >&6; }
4612 if ${ac_cv_path_EGREP+:} false; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4616    then ac_cv_path_EGREP="$GREP -E"
4617    else
4618      if test -z "$EGREP"; then
4619   ac_path_EGREP_found=false
4620   # Loop through the user's path and test for each of PROGNAME-LIST
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_prog in egrep; do
4627     for ac_exec_ext in '' $ac_executable_extensions; do
4628       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4629       as_fn_executable_p "$ac_path_EGREP" || continue
4630 # Check for GNU ac_path_EGREP and select it if it is found.
4631   # Check for GNU $ac_path_EGREP
4632 case `"$ac_path_EGREP" --version 2>&1` in
4633 *GNU*)
4634   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4635 *)
4636   ac_count=0
4637   $as_echo_n 0123456789 >"conftest.in"
4638   while :
4639   do
4640     cat "conftest.in" "conftest.in" >"conftest.tmp"
4641     mv "conftest.tmp" "conftest.in"
4642     cp "conftest.in" "conftest.nl"
4643     $as_echo 'EGREP' >> "conftest.nl"
4644     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646     as_fn_arith $ac_count + 1 && ac_count=$as_val
4647     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4648       # Best one so far, save it but keep looking for a better one
4649       ac_cv_path_EGREP="$ac_path_EGREP"
4650       ac_path_EGREP_max=$ac_count
4651     fi
4652     # 10*(2^10) chars as input seems more than enough
4653     test $ac_count -gt 10 && break
4654   done
4655   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4657
4658       $ac_path_EGREP_found && break 3
4659     done
4660   done
4661   done
4662 IFS=$as_save_IFS
4663   if test -z "$ac_cv_path_EGREP"; then
4664     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665   fi
4666 else
4667   ac_cv_path_EGREP=$EGREP
4668 fi
4669
4670    fi
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4673 $as_echo "$ac_cv_path_EGREP" >&6; }
4674  EGREP="$ac_cv_path_EGREP"
4675
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4678 $as_echo_n "checking for fgrep... " >&6; }
4679 if ${ac_cv_path_FGREP+:} false; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4683    then ac_cv_path_FGREP="$GREP -F"
4684    else
4685      if test -z "$FGREP"; then
4686   ac_path_FGREP_found=false
4687   # Loop through the user's path and test for each of PROGNAME-LIST
4688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693     for ac_prog in fgrep; do
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4696       as_fn_executable_p "$ac_path_FGREP" || continue
4697 # Check for GNU ac_path_FGREP and select it if it is found.
4698   # Check for GNU $ac_path_FGREP
4699 case `"$ac_path_FGREP" --version 2>&1` in
4700 *GNU*)
4701   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4702 *)
4703   ac_count=0
4704   $as_echo_n 0123456789 >"conftest.in"
4705   while :
4706   do
4707     cat "conftest.in" "conftest.in" >"conftest.tmp"
4708     mv "conftest.tmp" "conftest.in"
4709     cp "conftest.in" "conftest.nl"
4710     $as_echo 'FGREP' >> "conftest.nl"
4711     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713     as_fn_arith $ac_count + 1 && ac_count=$as_val
4714     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4715       # Best one so far, save it but keep looking for a better one
4716       ac_cv_path_FGREP="$ac_path_FGREP"
4717       ac_path_FGREP_max=$ac_count
4718     fi
4719     # 10*(2^10) chars as input seems more than enough
4720     test $ac_count -gt 10 && break
4721   done
4722   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4723 esac
4724
4725       $ac_path_FGREP_found && break 3
4726     done
4727   done
4728   done
4729 IFS=$as_save_IFS
4730   if test -z "$ac_cv_path_FGREP"; then
4731     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732   fi
4733 else
4734   ac_cv_path_FGREP=$FGREP
4735 fi
4736
4737    fi
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4740 $as_echo "$ac_cv_path_FGREP" >&6; }
4741  FGREP="$ac_cv_path_FGREP"
4742
4743
4744 test -z "$GREP" && GREP=grep
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 # Check whether --with-gnu-ld was given.
4765 if test "${with_gnu_ld+set}" = set; then :
4766   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4767 else
4768   with_gnu_ld=no
4769 fi
4770
4771 ac_prog=ld
4772 if test yes = "$GCC"; then
4773   # Check if gcc -print-prog-name=ld gives a path.
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4775 $as_echo_n "checking for ld used by $CC... " >&6; }
4776   case $host in
4777   *-*-mingw*)
4778     # gcc leaves a trailing carriage return, which upsets mingw
4779     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4780   *)
4781     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4782   esac
4783   case $ac_prog in
4784     # Accept absolute paths.
4785     [\\/]* | ?:[\\/]*)
4786       re_direlt='/[^/][^/]*/\.\./'
4787       # Canonicalize the pathname of ld
4788       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4789       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4790         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4791       done
4792       test -z "$LD" && LD=$ac_prog
4793       ;;
4794   "")
4795     # If it fails, then pretend we aren't using GCC.
4796     ac_prog=ld
4797     ;;
4798   *)
4799     # If it is relative, then search for the first ld in PATH.
4800     with_gnu_ld=unknown
4801     ;;
4802   esac
4803 elif test yes = "$with_gnu_ld"; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4805 $as_echo_n "checking for GNU ld... " >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4808 $as_echo_n "checking for non-GNU ld... " >&6; }
4809 fi
4810 if ${lt_cv_path_LD+:} false; then :
4811   $as_echo_n "(cached) " >&6
4812 else
4813   if test -z "$LD"; then
4814   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4815   for ac_dir in $PATH; do
4816     IFS=$lt_save_ifs
4817     test -z "$ac_dir" && ac_dir=.
4818     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4819       lt_cv_path_LD=$ac_dir/$ac_prog
4820       # Check to see if the program is GNU ld.  I'd rather use --version,
4821       # but apparently some variants of GNU ld only accept -v.
4822       # Break only if it was the GNU/non-GNU ld that we prefer.
4823       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4824       *GNU* | *'with BFD'*)
4825         test no != "$with_gnu_ld" && break
4826         ;;
4827       *)
4828         test yes != "$with_gnu_ld" && break
4829         ;;
4830       esac
4831     fi
4832   done
4833   IFS=$lt_save_ifs
4834 else
4835   lt_cv_path_LD=$LD # Let the user override the test with a path.
4836 fi
4837 fi
4838
4839 LD=$lt_cv_path_LD
4840 if test -n "$LD"; then
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4842 $as_echo "$LD" >&6; }
4843 else
4844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 fi
4847 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4849 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4850 if ${lt_cv_prog_gnu_ld+:} false; then :
4851   $as_echo_n "(cached) " >&6
4852 else
4853   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4854 case `$LD -v 2>&1 </dev/null` in
4855 *GNU* | *'with BFD'*)
4856   lt_cv_prog_gnu_ld=yes
4857   ;;
4858 *)
4859   lt_cv_prog_gnu_ld=no
4860   ;;
4861 esac
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4864 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4865 with_gnu_ld=$lt_cv_prog_gnu_ld
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4876 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4877 if ${lt_cv_path_NM+:} false; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   if test -n "$NM"; then
4881   # Let the user override the test.
4882   lt_cv_path_NM=$NM
4883 else
4884   lt_nm_to_check=${ac_tool_prefix}nm
4885   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4886     lt_nm_to_check="$lt_nm_to_check nm"
4887   fi
4888   for lt_tmp_nm in $lt_nm_to_check; do
4889     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4890     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4891       IFS=$lt_save_ifs
4892       test -z "$ac_dir" && ac_dir=.
4893       tmp_nm=$ac_dir/$lt_tmp_nm
4894       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4895         # Check to see if the nm accepts a BSD-compat flag.
4896         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4897         #   nm: unknown option "B" ignored
4898         # Tru64's nm complains that /dev/null is an invalid object file
4899         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4900         case $build_os in
4901         mingw*) lt_bad_file=conftest.nm/nofile ;;
4902         *) lt_bad_file=/dev/null ;;
4903         esac
4904         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4905         *$lt_bad_file* | *'Invalid file or object type'*)
4906           lt_cv_path_NM="$tmp_nm -B"
4907           break 2
4908           ;;
4909         *)
4910           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4911           */dev/null*)
4912             lt_cv_path_NM="$tmp_nm -p"
4913             break 2
4914             ;;
4915           *)
4916             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4917             continue # so that we can try to find one that supports BSD flags
4918             ;;
4919           esac
4920           ;;
4921         esac
4922       fi
4923     done
4924     IFS=$lt_save_ifs
4925   done
4926   : ${lt_cv_path_NM=no}
4927 fi
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4930 $as_echo "$lt_cv_path_NM" >&6; }
4931 if test no != "$lt_cv_path_NM"; then
4932   NM=$lt_cv_path_NM
4933 else
4934   # Didn't find any BSD compatible name lister, look for dumpbin.
4935   if test -n "$DUMPBIN"; then :
4936     # Let the user override the test.
4937   else
4938     if test -n "$ac_tool_prefix"; then
4939   for ac_prog in dumpbin "link -dump"
4940   do
4941     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_DUMPBIN+:} false; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   if test -n "$DUMPBIN"; then
4949   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963   done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 DUMPBIN=$ac_cv_prog_DUMPBIN
4969 if test -n "$DUMPBIN"; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4971 $as_echo "$DUMPBIN" >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976
4977
4978     test -n "$DUMPBIN" && break
4979   done
4980 fi
4981 if test -z "$DUMPBIN"; then
4982   ac_ct_DUMPBIN=$DUMPBIN
4983   for ac_prog in dumpbin "link -dump"
4984 do
4985   # Extract the first word of "$ac_prog", so it can be a program name with args.
4986 set dummy $ac_prog; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if test -n "$ac_ct_DUMPBIN"; then
4993   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000     for ac_exec_ext in '' $ac_executable_extensions; do
5001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007   done
5008 IFS=$as_save_IFS
5009
5010 fi
5011 fi
5012 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5013 if test -n "$ac_ct_DUMPBIN"; then
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5015 $as_echo "$ac_ct_DUMPBIN" >&6; }
5016 else
5017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5019 fi
5020
5021
5022   test -n "$ac_ct_DUMPBIN" && break
5023 done
5024
5025   if test "x$ac_ct_DUMPBIN" = x; then
5026     DUMPBIN=":"
5027   else
5028     case $cross_compiling:$ac_tool_warned in
5029 yes:)
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032 ac_tool_warned=yes ;;
5033 esac
5034     DUMPBIN=$ac_ct_DUMPBIN
5035   fi
5036 fi
5037
5038     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5039     *COFF*)
5040       DUMPBIN="$DUMPBIN -symbols -headers"
5041       ;;
5042     *)
5043       DUMPBIN=:
5044       ;;
5045     esac
5046   fi
5047
5048   if test : != "$DUMPBIN"; then
5049     NM=$DUMPBIN
5050   fi
5051 fi
5052 test -z "$NM" && NM=nm
5053
5054
5055
5056
5057
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5060 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5061 if ${lt_cv_nm_interface+:} false; then :
5062   $as_echo_n "(cached) " >&6
5063 else
5064   lt_cv_nm_interface="BSD nm"
5065   echo "int some_variable = 0;" > conftest.$ac_ext
5066   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5067   (eval "$ac_compile" 2>conftest.err)
5068   cat conftest.err >&5
5069   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5070   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5071   cat conftest.err >&5
5072   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5073   cat conftest.out >&5
5074   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5075     lt_cv_nm_interface="MS dumpbin"
5076   fi
5077   rm -f conftest*
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5080 $as_echo "$lt_cv_nm_interface" >&6; }
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5083 $as_echo_n "checking whether ln -s works... " >&6; }
5084 LN_S=$as_ln_s
5085 if test "$LN_S" = "ln -s"; then
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5087 $as_echo "yes" >&6; }
5088 else
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5090 $as_echo "no, using $LN_S" >&6; }
5091 fi
5092
5093 # find the maximum length of command line arguments
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5095 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5096 if ${lt_cv_sys_max_cmd_len+:} false; then :
5097   $as_echo_n "(cached) " >&6
5098 else
5099     i=0
5100   teststring=ABCD
5101
5102   case $build_os in
5103   msdosdjgpp*)
5104     # On DJGPP, this test can blow up pretty badly due to problems in libc
5105     # (any single argument exceeding 2000 bytes causes a buffer overrun
5106     # during glob expansion).  Even if it were fixed, the result of this
5107     # check would be larger than it should be.
5108     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5109     ;;
5110
5111   gnu*)
5112     # Under GNU Hurd, this test is not required because there is
5113     # no limit to the length of command line arguments.
5114     # Libtool will interpret -1 as no limit whatsoever
5115     lt_cv_sys_max_cmd_len=-1;
5116     ;;
5117
5118   cygwin* | mingw* | cegcc*)
5119     # On Win9x/ME, this test blows up -- it succeeds, but takes
5120     # about 5 minutes as the teststring grows exponentially.
5121     # Worse, since 9x/ME are not pre-emptively multitasking,
5122     # you end up with a "frozen" computer, even though with patience
5123     # the test eventually succeeds (with a max line length of 256k).
5124     # Instead, let's just punt: use the minimum linelength reported by
5125     # all of the supported platforms: 8192 (on NT/2K/XP).
5126     lt_cv_sys_max_cmd_len=8192;
5127     ;;
5128
5129   mint*)
5130     # On MiNT this can take a long time and run out of memory.
5131     lt_cv_sys_max_cmd_len=8192;
5132     ;;
5133
5134   amigaos*)
5135     # On AmigaOS with pdksh, this test takes hours, literally.
5136     # So we just punt and use a minimum line length of 8192.
5137     lt_cv_sys_max_cmd_len=8192;
5138     ;;
5139
5140   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5141     # This has been around since 386BSD, at least.  Likely further.
5142     if test -x /sbin/sysctl; then
5143       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5144     elif test -x /usr/sbin/sysctl; then
5145       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5146     else
5147       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5148     fi
5149     # And add a safety zone
5150     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5151     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5152     ;;
5153
5154   interix*)
5155     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5156     lt_cv_sys_max_cmd_len=196608
5157     ;;
5158
5159   os2*)
5160     # The test takes a long time on OS/2.
5161     lt_cv_sys_max_cmd_len=8192
5162     ;;
5163
5164   osf*)
5165     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5166     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5167     # nice to cause kernel panics so lets avoid the loop below.
5168     # First set a reasonable default.
5169     lt_cv_sys_max_cmd_len=16384
5170     #
5171     if test -x /sbin/sysconfig; then
5172       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5173         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5174       esac
5175     fi
5176     ;;
5177   sco3.2v5*)
5178     lt_cv_sys_max_cmd_len=102400
5179     ;;
5180   sysv5* | sco5v6* | sysv4.2uw2*)
5181     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5182     if test -n "$kargmax"; then
5183       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5184     else
5185       lt_cv_sys_max_cmd_len=32768
5186     fi
5187     ;;
5188   *)
5189     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5190     if test -n "$lt_cv_sys_max_cmd_len" && \
5191        test undefined != "$lt_cv_sys_max_cmd_len"; then
5192       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5193       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5194     else
5195       # Make teststring a little bigger before we do anything with it.
5196       # a 1K string should be a reasonable start.
5197       for i in 1 2 3 4 5 6 7 8; do
5198         teststring=$teststring$teststring
5199       done
5200       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5201       # If test is not a shell built-in, we'll probably end up computing a
5202       # maximum length that is only half of the actual maximum length, but
5203       # we can't tell.
5204       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5205                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5206               test 17 != "$i" # 1/2 MB should be enough
5207       do
5208         i=`expr $i + 1`
5209         teststring=$teststring$teststring
5210       done
5211       # Only check the string length outside the loop.
5212       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5213       teststring=
5214       # Add a significant safety factor because C++ compilers can tack on
5215       # massive amounts of additional arguments before passing them to the
5216       # linker.  It appears as though 1/2 is a usable value.
5217       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5218     fi
5219     ;;
5220   esac
5221
5222 fi
5223
5224 if test -n "$lt_cv_sys_max_cmd_len"; then
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5226 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5227 else
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5229 $as_echo "none" >&6; }
5230 fi
5231 max_cmd_len=$lt_cv_sys_max_cmd_len
5232
5233
5234
5235
5236
5237
5238 : ${CP="cp -f"}
5239 : ${MV="mv -f"}
5240 : ${RM="rm -f"}
5241
5242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5243   lt_unset=unset
5244 else
5245   lt_unset=false
5246 fi
5247
5248
5249
5250
5251
5252 # test EBCDIC or ASCII
5253 case `echo X|tr X '\101'` in
5254  A) # ASCII based system
5255     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5256   lt_SP2NL='tr \040 \012'
5257   lt_NL2SP='tr \015\012 \040\040'
5258   ;;
5259  *) # EBCDIC based system
5260   lt_SP2NL='tr \100 \n'
5261   lt_NL2SP='tr \r\n \100\100'
5262   ;;
5263 esac
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5274 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5275 if ${lt_cv_to_host_file_cmd+:} false; then :
5276   $as_echo_n "(cached) " >&6
5277 else
5278   case $host in
5279   *-*-mingw* )
5280     case $build in
5281       *-*-mingw* ) # actually msys
5282         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5283         ;;
5284       *-*-cygwin* )
5285         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5286         ;;
5287       * ) # otherwise, assume *nix
5288         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5289         ;;
5290     esac
5291     ;;
5292   *-*-cygwin* )
5293     case $build in
5294       *-*-mingw* ) # actually msys
5295         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5296         ;;
5297       *-*-cygwin* )
5298         lt_cv_to_host_file_cmd=func_convert_file_noop
5299         ;;
5300       * ) # otherwise, assume *nix
5301         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5302         ;;
5303     esac
5304     ;;
5305   * ) # unhandled hosts (and "normal" native builds)
5306     lt_cv_to_host_file_cmd=func_convert_file_noop
5307     ;;
5308 esac
5309
5310 fi
5311
5312 to_host_file_cmd=$lt_cv_to_host_file_cmd
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5314 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5315
5316
5317
5318
5319
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5321 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5322 if ${lt_cv_to_tool_file_cmd+:} false; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325   #assume ordinary cross tools, or native build.
5326 lt_cv_to_tool_file_cmd=func_convert_file_noop
5327 case $host in
5328   *-*-mingw* )
5329     case $build in
5330       *-*-mingw* ) # actually msys
5331         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5332         ;;
5333     esac
5334     ;;
5335 esac
5336
5337 fi
5338
5339 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5341 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5342
5343
5344
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5348 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5349 if ${lt_cv_ld_reload_flag+:} false; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   lt_cv_ld_reload_flag='-r'
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5355 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5356 reload_flag=$lt_cv_ld_reload_flag
5357 case $reload_flag in
5358 "" | " "*) ;;
5359 *) reload_flag=" $reload_flag" ;;
5360 esac
5361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5362 case $host_os in
5363   cygwin* | mingw* | pw32* | cegcc*)
5364     if test yes != "$GCC"; then
5365       reload_cmds=false
5366     fi
5367     ;;
5368   darwin*)
5369     if test yes = "$GCC"; then
5370       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5371     else
5372       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5373     fi
5374     ;;
5375 esac
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 if test -n "$ac_tool_prefix"; then
5386   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5387 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_OBJDUMP+:} false; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   if test -n "$OBJDUMP"; then
5394   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401     for ac_exec_ext in '' $ac_executable_extensions; do
5402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408   done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 OBJDUMP=$ac_cv_prog_OBJDUMP
5414 if test -n "$OBJDUMP"; then
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5416 $as_echo "$OBJDUMP" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421
5422
5423 fi
5424 if test -z "$ac_cv_prog_OBJDUMP"; then
5425   ac_ct_OBJDUMP=$OBJDUMP
5426   # Extract the first word of "objdump", so it can be a program name with args.
5427 set dummy objdump; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   if test -n "$ac_ct_OBJDUMP"; then
5434   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441     for ac_exec_ext in '' $ac_executable_extensions; do
5442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448   done
5449 IFS=$as_save_IFS
5450
5451 fi
5452 fi
5453 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5454 if test -n "$ac_ct_OBJDUMP"; then
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5456 $as_echo "$ac_ct_OBJDUMP" >&6; }
5457 else
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5460 fi
5461
5462   if test "x$ac_ct_OBJDUMP" = x; then
5463     OBJDUMP="false"
5464   else
5465     case $cross_compiling:$ac_tool_warned in
5466 yes:)
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471     OBJDUMP=$ac_ct_OBJDUMP
5472   fi
5473 else
5474   OBJDUMP="$ac_cv_prog_OBJDUMP"
5475 fi
5476
5477 test -z "$OBJDUMP" && OBJDUMP=objdump
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5488 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5489 if ${lt_cv_deplibs_check_method+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   lt_cv_file_magic_cmd='$MAGIC_CMD'
5493 lt_cv_file_magic_test_file=
5494 lt_cv_deplibs_check_method='unknown'
5495 # Need to set the preceding variable on all platforms that support
5496 # interlibrary dependencies.
5497 # 'none' -- dependencies not supported.
5498 # 'unknown' -- same as none, but documents that we really don't know.
5499 # 'pass_all' -- all dependencies passed with no checks.
5500 # 'test_compile' -- check by making test program.
5501 # 'file_magic [[regex]]' -- check by looking for files in library path
5502 # that responds to the $file_magic_cmd with a given extended regex.
5503 # If you have 'file' or equivalent on your system and you're not sure
5504 # whether 'pass_all' will *always* work, you probably want this one.
5505
5506 case $host_os in
5507 aix[4-9]*)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 beos*)
5512   lt_cv_deplibs_check_method=pass_all
5513   ;;
5514
5515 bsdi[45]*)
5516   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5517   lt_cv_file_magic_cmd='/usr/bin/file -L'
5518   lt_cv_file_magic_test_file=/shlib/libc.so
5519   ;;
5520
5521 cygwin*)
5522   # func_win32_libid is a shell function defined in ltmain.sh
5523   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5524   lt_cv_file_magic_cmd='func_win32_libid'
5525   ;;
5526
5527 mingw* | pw32*)
5528   # Base MSYS/MinGW do not provide the 'file' command needed by
5529   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5530   # unless we find 'file', for example because we are cross-compiling.
5531   if ( file / ) >/dev/null 2>&1; then
5532     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5533     lt_cv_file_magic_cmd='func_win32_libid'
5534   else
5535     # Keep this pattern in sync with the one in func_win32_libid.
5536     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5537     lt_cv_file_magic_cmd='$OBJDUMP -f'
5538   fi
5539   ;;
5540
5541 cegcc*)
5542   # use the weaker test based on 'objdump'. See mingw*.
5543   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5544   lt_cv_file_magic_cmd='$OBJDUMP -f'
5545   ;;
5546
5547 darwin* | rhapsody*)
5548   lt_cv_deplibs_check_method=pass_all
5549   ;;
5550
5551 freebsd* | dragonfly*)
5552   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5553     case $host_cpu in
5554     i*86 )
5555       # Not sure whether the presence of OpenBSD here was a mistake.
5556       # Let's accept both of them until this is cleared up.
5557       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5558       lt_cv_file_magic_cmd=/usr/bin/file
5559       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5560       ;;
5561     esac
5562   else
5563     lt_cv_deplibs_check_method=pass_all
5564   fi
5565   ;;
5566
5567 haiku*)
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570
5571 hpux10.20* | hpux11*)
5572   lt_cv_file_magic_cmd=/usr/bin/file
5573   case $host_cpu in
5574   ia64*)
5575     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5576     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5577     ;;
5578   hppa*64*)
5579     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]'
5580     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5581     ;;
5582   *)
5583     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5584     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5585     ;;
5586   esac
5587   ;;
5588
5589 interix[3-9]*)
5590   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5591   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5592   ;;
5593
5594 irix5* | irix6* | nonstopux*)
5595   case $LD in
5596   *-32|*"-32 ") libmagic=32-bit;;
5597   *-n32|*"-n32 ") libmagic=N32;;
5598   *-64|*"-64 ") libmagic=64-bit;;
5599   *) libmagic=never-match;;
5600   esac
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 # This must be glibc/ELF.
5605 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5606   lt_cv_deplibs_check_method=pass_all
5607   ;;
5608
5609 netbsd*)
5610   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5611     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5612   else
5613     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5614   fi
5615   ;;
5616
5617 newos6*)
5618   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5619   lt_cv_file_magic_cmd=/usr/bin/file
5620   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5621   ;;
5622
5623 *nto* | *qnx*)
5624   lt_cv_deplibs_check_method=pass_all
5625   ;;
5626
5627 openbsd* | bitrig*)
5628   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5629     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5630   else
5631     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5632   fi
5633   ;;
5634
5635 osf3* | osf4* | osf5*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 rdos*)
5640   lt_cv_deplibs_check_method=pass_all
5641   ;;
5642
5643 solaris*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 sysv4 | sysv4.3*)
5652   case $host_vendor in
5653   motorola)
5654     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]'
5655     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5656     ;;
5657   ncr)
5658     lt_cv_deplibs_check_method=pass_all
5659     ;;
5660   sequent)
5661     lt_cv_file_magic_cmd='/bin/file'
5662     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5663     ;;
5664   sni)
5665     lt_cv_file_magic_cmd='/bin/file'
5666     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5667     lt_cv_file_magic_test_file=/lib/libc.so
5668     ;;
5669   siemens)
5670     lt_cv_deplibs_check_method=pass_all
5671     ;;
5672   pc)
5673     lt_cv_deplibs_check_method=pass_all
5674     ;;
5675   esac
5676   ;;
5677
5678 tpf*)
5679   lt_cv_deplibs_check_method=pass_all
5680   ;;
5681 os2*)
5682   lt_cv_deplibs_check_method=pass_all
5683   ;;
5684 esac
5685
5686 fi
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5688 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5689
5690 file_magic_glob=
5691 want_nocaseglob=no
5692 if test "$build" = "$host"; then
5693   case $host_os in
5694   mingw* | pw32*)
5695     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5696       want_nocaseglob=yes
5697     else
5698       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5699     fi
5700     ;;
5701   esac
5702 fi
5703
5704 file_magic_cmd=$lt_cv_file_magic_cmd
5705 deplibs_check_method=$lt_cv_deplibs_check_method
5706 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 if test -n "$ac_tool_prefix"; then
5730   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_DLLTOOL+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   if test -n "$DLLTOOL"; then
5738   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 DLLTOOL=$ac_cv_prog_DLLTOOL
5758 if test -n "$DLLTOOL"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5760 $as_echo "$DLLTOOL" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766
5767 fi
5768 if test -z "$ac_cv_prog_DLLTOOL"; then
5769   ac_ct_DLLTOOL=$DLLTOOL
5770   # Extract the first word of "dlltool", so it can be a program name with args.
5771 set dummy dlltool; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   if test -n "$ac_ct_DLLTOOL"; then
5778   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783   IFS=$as_save_IFS
5784   test -z "$as_dir" && as_dir=.
5785     for ac_exec_ext in '' $ac_executable_extensions; do
5786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789     break 2
5790   fi
5791 done
5792   done
5793 IFS=$as_save_IFS
5794
5795 fi
5796 fi
5797 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5798 if test -n "$ac_ct_DLLTOOL"; then
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5800 $as_echo "$ac_ct_DLLTOOL" >&6; }
5801 else
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 fi
5805
5806   if test "x$ac_ct_DLLTOOL" = x; then
5807     DLLTOOL="false"
5808   else
5809     case $cross_compiling:$ac_tool_warned in
5810 yes:)
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5814 esac
5815     DLLTOOL=$ac_ct_DLLTOOL
5816   fi
5817 else
5818   DLLTOOL="$ac_cv_prog_DLLTOOL"
5819 fi
5820
5821 test -z "$DLLTOOL" && DLLTOOL=dlltool
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5833 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5834 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   lt_cv_sharedlib_from_linklib_cmd='unknown'
5838
5839 case $host_os in
5840 cygwin* | mingw* | pw32* | cegcc*)
5841   # two different shell functions defined in ltmain.sh;
5842   # decide which one to use based on capabilities of $DLLTOOL
5843   case `$DLLTOOL --help 2>&1` in
5844   *--identify-strict*)
5845     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5846     ;;
5847   *)
5848     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5849     ;;
5850   esac
5851   ;;
5852 *)
5853   # fallback: assume linklib IS sharedlib
5854   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5855   ;;
5856 esac
5857
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5860 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5861 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5862 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5863
5864
5865
5866
5867
5868
5869
5870 if test -n "$ac_tool_prefix"; then
5871   for ac_prog in ar
5872   do
5873     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_AR+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   if test -n "$AR"; then
5881   ac_cv_prog_AR="$AR" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888     for ac_exec_ext in '' $ac_executable_extensions; do
5889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895   done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 AR=$ac_cv_prog_AR
5901 if test -n "$AR"; then
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5903 $as_echo "$AR" >&6; }
5904 else
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910     test -n "$AR" && break
5911   done
5912 fi
5913 if test -z "$AR"; then
5914   ac_ct_AR=$AR
5915   for ac_prog in ar
5916 do
5917   # Extract the first word of "$ac_prog", so it can be a program name with args.
5918 set dummy $ac_prog; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   if test -n "$ac_ct_AR"; then
5925   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932     for ac_exec_ext in '' $ac_executable_extensions; do
5933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934     ac_cv_prog_ac_ct_AR="$ac_prog"
5935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939   done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5945 if test -n "$ac_ct_AR"; then
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5947 $as_echo "$ac_ct_AR" >&6; }
5948 else
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953
5954   test -n "$ac_ct_AR" && break
5955 done
5956
5957   if test "x$ac_ct_AR" = x; then
5958     AR="false"
5959   else
5960     case $cross_compiling:$ac_tool_warned in
5961 yes:)
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964 ac_tool_warned=yes ;;
5965 esac
5966     AR=$ac_ct_AR
5967   fi
5968 fi
5969
5970 : ${AR=ar}
5971 : ${AR_FLAGS=cru}
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5984 $as_echo_n "checking for archiver @FILE support... " >&6; }
5985 if ${lt_cv_ar_at_file+:} false; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   lt_cv_ar_at_file=no
5989    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h.  */
5991
5992 int
5993 main ()
5994 {
5995
5996   ;
5997   return 0;
5998 }
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001   echo conftest.$ac_objext > conftest.lst
6002       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6003       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6004   (eval $lt_ar_try) 2>&5
6005   ac_status=$?
6006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007   test $ac_status = 0; }
6008       if test 0 -eq "$ac_status"; then
6009         # Ensure the archiver fails upon bogus file names.
6010         rm -f conftest.$ac_objext libconftest.a
6011         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6012   (eval $lt_ar_try) 2>&5
6013   ac_status=$?
6014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6015   test $ac_status = 0; }
6016         if test 0 -ne "$ac_status"; then
6017           lt_cv_ar_at_file=@
6018         fi
6019       fi
6020       rm -f conftest.* libconftest.a
6021
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024
6025 fi
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6027 $as_echo "$lt_cv_ar_at_file" >&6; }
6028
6029 if test no = "$lt_cv_ar_at_file"; then
6030   archiver_list_spec=
6031 else
6032   archiver_list_spec=$lt_cv_ar_at_file
6033 fi
6034
6035
6036
6037
6038
6039
6040
6041 if test -n "$ac_tool_prefix"; then
6042   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}strip; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if ${ac_cv_prog_STRIP+:} false; then :
6047   $as_echo_n "(cached) " >&6
6048 else
6049   if test -n "$STRIP"; then
6050   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055   IFS=$as_save_IFS
6056   test -z "$as_dir" && as_dir=.
6057     for ac_exec_ext in '' $ac_executable_extensions; do
6058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6059     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061     break 2
6062   fi
6063 done
6064   done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 STRIP=$ac_cv_prog_STRIP
6070 if test -n "$STRIP"; then
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6072 $as_echo "$STRIP" >&6; }
6073 else
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077
6078
6079 fi
6080 if test -z "$ac_cv_prog_STRIP"; then
6081   ac_ct_STRIP=$STRIP
6082   # Extract the first word of "strip", so it can be a program name with args.
6083 set dummy strip; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6087   $as_echo_n "(cached) " >&6
6088 else
6089   if test -n "$ac_ct_STRIP"; then
6090   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095   IFS=$as_save_IFS
6096   test -z "$as_dir" && as_dir=.
6097     for ac_exec_ext in '' $ac_executable_extensions; do
6098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099     ac_cv_prog_ac_ct_STRIP="strip"
6100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101     break 2
6102   fi
6103 done
6104   done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6110 if test -n "$ac_ct_STRIP"; then
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6112 $as_echo "$ac_ct_STRIP" >&6; }
6113 else
6114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6116 fi
6117
6118   if test "x$ac_ct_STRIP" = x; then
6119     STRIP=":"
6120   else
6121     case $cross_compiling:$ac_tool_warned in
6122 yes:)
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6125 ac_tool_warned=yes ;;
6126 esac
6127     STRIP=$ac_ct_STRIP
6128   fi
6129 else
6130   STRIP="$ac_cv_prog_STRIP"
6131 fi
6132
6133 test -z "$STRIP" && STRIP=:
6134
6135
6136
6137
6138
6139
6140 if test -n "$ac_tool_prefix"; then
6141   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_RANLIB+:} false; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   if test -n "$RANLIB"; then
6149   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 RANLIB=$ac_cv_prog_RANLIB
6169 if test -n "$RANLIB"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6171 $as_echo "$RANLIB" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178 fi
6179 if test -z "$ac_cv_prog_RANLIB"; then
6180   ac_ct_RANLIB=$RANLIB
6181   # Extract the first word of "ranlib", so it can be a program name with args.
6182 set dummy ranlib; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if test -n "$ac_ct_RANLIB"; then
6189   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198     ac_cv_prog_ac_ct_RANLIB="ranlib"
6199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203   done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6209 if test -n "$ac_ct_RANLIB"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6211 $as_echo "$ac_ct_RANLIB" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217   if test "x$ac_ct_RANLIB" = x; then
6218     RANLIB=":"
6219   else
6220     case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226     RANLIB=$ac_ct_RANLIB
6227   fi
6228 else
6229   RANLIB="$ac_cv_prog_RANLIB"
6230 fi
6231
6232 test -z "$RANLIB" && RANLIB=:
6233
6234
6235
6236
6237
6238
6239 # Determine commands to create old-style static archives.
6240 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6241 old_postinstall_cmds='chmod 644 $oldlib'
6242 old_postuninstall_cmds=
6243
6244 if test -n "$RANLIB"; then
6245   case $host_os in
6246   bitrig* | openbsd*)
6247     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6248     ;;
6249   *)
6250     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6251     ;;
6252   esac
6253   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6254 fi
6255
6256 case $host_os in
6257   darwin*)
6258     lock_old_archive_extraction=yes ;;
6259   *)
6260     lock_old_archive_extraction=no ;;
6261 esac
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
6297
6298
6299
6300
6301 # If no C compiler was specified, use CC.
6302 LTCC=${LTCC-"$CC"}
6303
6304 # If no C compiler flags were specified, use CFLAGS.
6305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6306
6307 # Allow CC to be a program name with arguments.
6308 compiler=$CC
6309
6310
6311 # Check for command to grab the raw symbol name followed by C symbol from nm.
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6313 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6314 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6315   $as_echo_n "(cached) " >&6
6316 else
6317
6318 # These are sane defaults that work on at least a few old systems.
6319 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6320
6321 # Character class describing NM global symbol codes.
6322 symcode='[BCDEGRST]'
6323
6324 # Regexp to match symbols that can be accessed directly from C.
6325 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6326
6327 # Define system-specific variables.
6328 case $host_os in
6329 aix*)
6330   symcode='[BCDT]'
6331   ;;
6332 cygwin* | mingw* | pw32* | cegcc*)
6333   symcode='[ABCDGISTW]'
6334   ;;
6335 hpux*)
6336   if test ia64 = "$host_cpu"; then
6337     symcode='[ABCDEGRST]'
6338   fi
6339   ;;
6340 irix* | nonstopux*)
6341   symcode='[BCDEGRST]'
6342   ;;
6343 osf*)
6344   symcode='[BCDEGQRST]'
6345   ;;
6346 solaris*)
6347   symcode='[BDRT]'
6348   ;;
6349 sco3.2v5*)
6350   symcode='[DT]'
6351   ;;
6352 sysv4.2uw2*)
6353   symcode='[DT]'
6354   ;;
6355 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6356   symcode='[ABDT]'
6357   ;;
6358 sysv4)
6359   symcode='[DFNSTU]'
6360   ;;
6361 esac
6362
6363 # If we're using GNU nm, then use its standard symbol codes.
6364 case `$NM -V 2>&1` in
6365 *GNU* | *'with BFD'*)
6366   symcode='[ABCDGIRSTW]' ;;
6367 esac
6368
6369 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6370   # Gets list of data symbols to import.
6371   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6372   # Adjust the below global symbol transforms to fixup imported variables.
6373   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6374   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6375   lt_c_name_lib_hook="\
6376   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6377   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6378 else
6379   # Disable hooks by default.
6380   lt_cv_sys_global_symbol_to_import=
6381   lt_cdecl_hook=
6382   lt_c_name_hook=
6383   lt_c_name_lib_hook=
6384 fi
6385
6386 # Transform an extracted symbol line into a proper C declaration.
6387 # Some systems (esp. on ia64) link data and code symbols differently,
6388 # so use this general approach.
6389 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6390 $lt_cdecl_hook\
6391 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6392 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6393
6394 # Transform an extracted symbol line into symbol name and symbol address
6395 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6396 $lt_c_name_hook\
6397 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6398 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6399
6400 # Transform an extracted symbol line into symbol name with lib prefix and
6401 # symbol address.
6402 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6403 $lt_c_name_lib_hook\
6404 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6405 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6406 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6407
6408 # Handle CRLF in mingw tool chain
6409 opt_cr=
6410 case $build_os in
6411 mingw*)
6412   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6413   ;;
6414 esac
6415
6416 # Try without a prefix underscore, then with it.
6417 for ac_symprfx in "" "_"; do
6418
6419   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6420   symxfrm="\\1 $ac_symprfx\\2 \\2"
6421
6422   # Write the raw and C identifiers.
6423   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6424     # Fake it for dumpbin and say T for any non-static function,
6425     # D for any global variable and I for any imported variable.
6426     # Also find C++ and __fastcall symbols from MSVC++,
6427     # which start with @ or ?.
6428     lt_cv_sys_global_symbol_pipe="$AWK '"\
6429 "     {last_section=section; section=\$ 3};"\
6430 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6431 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6432 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6433 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6434 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6435 "     \$ 0!~/External *\|/{next};"\
6436 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6437 "     {if(hide[section]) next};"\
6438 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6439 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6440 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6441 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6442 "     ' prfx=^$ac_symprfx"
6443   else
6444     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6445   fi
6446   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6447
6448   # Check to see that the pipe works correctly.
6449   pipe_works=no
6450
6451   rm -f conftest*
6452   cat > conftest.$ac_ext <<_LT_EOF
6453 #ifdef __cplusplus
6454 extern "C" {
6455 #endif
6456 char nm_test_var;
6457 void nm_test_func(void);
6458 void nm_test_func(void){}
6459 #ifdef __cplusplus
6460 }
6461 #endif
6462 int main(){nm_test_var='a';nm_test_func();return(0);}
6463 _LT_EOF
6464
6465   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6466   (eval $ac_compile) 2>&5
6467   ac_status=$?
6468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469   test $ac_status = 0; }; then
6470     # Now try to grab the symbols.
6471     nlist=conftest.nm
6472     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6473   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6474   ac_status=$?
6475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476   test $ac_status = 0; } && test -s "$nlist"; then
6477       # Try sorting and uniquifying the output.
6478       if sort "$nlist" | uniq > "$nlist"T; then
6479         mv -f "$nlist"T "$nlist"
6480       else
6481         rm -f "$nlist"T
6482       fi
6483
6484       # Make sure that we snagged all the symbols we need.
6485       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6486         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6487           cat <<_LT_EOF > conftest.$ac_ext
6488 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6489 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6490 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6491    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6492 # define LT_DLSYM_CONST
6493 #elif defined __osf__
6494 /* This system does not cope well with relocations in const data.  */
6495 # define LT_DLSYM_CONST
6496 #else
6497 # define LT_DLSYM_CONST const
6498 #endif
6499
6500 #ifdef __cplusplus
6501 extern "C" {
6502 #endif
6503
6504 _LT_EOF
6505           # Now generate the symbol file.
6506           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6507
6508           cat <<_LT_EOF >> conftest.$ac_ext
6509
6510 /* The mapping between symbol names and symbols.  */
6511 LT_DLSYM_CONST struct {
6512   const char *name;
6513   void       *address;
6514 }
6515 lt__PROGRAM__LTX_preloaded_symbols[] =
6516 {
6517   { "@PROGRAM@", (void *) 0 },
6518 _LT_EOF
6519           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6520           cat <<\_LT_EOF >> conftest.$ac_ext
6521   {0, (void *) 0}
6522 };
6523
6524 /* This works around a problem in FreeBSD linker */
6525 #ifdef FREEBSD_WORKAROUND
6526 static const void *lt_preloaded_setup() {
6527   return lt__PROGRAM__LTX_preloaded_symbols;
6528 }
6529 #endif
6530
6531 #ifdef __cplusplus
6532 }
6533 #endif
6534 _LT_EOF
6535           # Now try linking the two files.
6536           mv conftest.$ac_objext conftstm.$ac_objext
6537           lt_globsym_save_LIBS=$LIBS
6538           lt_globsym_save_CFLAGS=$CFLAGS
6539           LIBS=conftstm.$ac_objext
6540           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6541           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6542   (eval $ac_link) 2>&5
6543   ac_status=$?
6544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6546             pipe_works=yes
6547           fi
6548           LIBS=$lt_globsym_save_LIBS
6549           CFLAGS=$lt_globsym_save_CFLAGS
6550         else
6551           echo "cannot find nm_test_func in $nlist" >&5
6552         fi
6553       else
6554         echo "cannot find nm_test_var in $nlist" >&5
6555       fi
6556     else
6557       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6558     fi
6559   else
6560     echo "$progname: failed program was:" >&5
6561     cat conftest.$ac_ext >&5
6562   fi
6563   rm -rf conftest* conftst*
6564
6565   # Do not use the global_symbol_pipe unless it works.
6566   if test yes = "$pipe_works"; then
6567     break
6568   else
6569     lt_cv_sys_global_symbol_pipe=
6570   fi
6571 done
6572
6573 fi
6574
6575 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6576   lt_cv_sys_global_symbol_to_cdecl=
6577 fi
6578 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6580 $as_echo "failed" >&6; }
6581 else
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6583 $as_echo "ok" >&6; }
6584 fi
6585
6586 # Response file support.
6587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6588   nm_file_list_spec='@'
6589 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6590   nm_file_list_spec='@'
6591 fi
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
6625
6626
6627
6628
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6630 $as_echo_n "checking for sysroot... " >&6; }
6631
6632 # Check whether --with-sysroot was given.
6633 if test "${with_sysroot+set}" = set; then :
6634   withval=$with_sysroot;
6635 else
6636   with_sysroot=no
6637 fi
6638
6639
6640 lt_sysroot=
6641 case $with_sysroot in #(
6642  yes)
6643    if test yes = "$GCC"; then
6644      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6645    fi
6646    ;; #(
6647  /*)
6648    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6649    ;; #(
6650  no|'')
6651    ;; #(
6652  *)
6653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6654 $as_echo "$with_sysroot" >&6; }
6655    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6656    ;;
6657 esac
6658
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6660 $as_echo "${lt_sysroot:-no}" >&6; }
6661
6662
6663
6664
6665
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6667 $as_echo_n "checking for a working dd... " >&6; }
6668 if ${ac_cv_path_lt_DD+:} false; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   printf 0123456789abcdef0123456789abcdef >conftest.i
6672 cat conftest.i conftest.i >conftest2.i
6673 : ${lt_DD:=$DD}
6674 if test -z "$lt_DD"; then
6675   ac_path_lt_DD_found=false
6676   # Loop through the user's path and test for each of PROGNAME-LIST
6677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682     for ac_prog in dd; do
6683     for ac_exec_ext in '' $ac_executable_extensions; do
6684       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6685       as_fn_executable_p "$ac_path_lt_DD" || continue
6686 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6687   cmp -s conftest.i conftest.out \
6688   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6689 fi
6690       $ac_path_lt_DD_found && break 3
6691     done
6692   done
6693   done
6694 IFS=$as_save_IFS
6695   if test -z "$ac_cv_path_lt_DD"; then
6696     :
6697   fi
6698 else
6699   ac_cv_path_lt_DD=$lt_DD
6700 fi
6701
6702 rm -f conftest.i conftest2.i conftest.out
6703 fi
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6705 $as_echo "$ac_cv_path_lt_DD" >&6; }
6706
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6709 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6710 if ${lt_cv_truncate_bin+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   printf 0123456789abcdef0123456789abcdef >conftest.i
6714 cat conftest.i conftest.i >conftest2.i
6715 lt_cv_truncate_bin=
6716 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6717   cmp -s conftest.i conftest.out \
6718   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6719 fi
6720 rm -f conftest.i conftest2.i conftest.out
6721 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6722 fi
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6724 $as_echo "$lt_cv_truncate_bin" >&6; }
6725
6726
6727
6728
6729
6730
6731
6732 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6733 func_cc_basename ()
6734 {
6735     for cc_temp in $*""; do
6736       case $cc_temp in
6737         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6738         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6739         \-*) ;;
6740         *) break;;
6741       esac
6742     done
6743     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6744 }
6745
6746 # Check whether --enable-libtool-lock was given.
6747 if test "${enable_libtool_lock+set}" = set; then :
6748   enableval=$enable_libtool_lock;
6749 fi
6750
6751 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6752
6753 # Some flags need to be propagated to the compiler or linker for good
6754 # libtool support.
6755 case $host in
6756 ia64-*-hpux*)
6757   # Find out what ABI is being produced by ac_compile, and set mode
6758   # options accordingly.
6759   echo 'int i;' > conftest.$ac_ext
6760   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6761   (eval $ac_compile) 2>&5
6762   ac_status=$?
6763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6764   test $ac_status = 0; }; then
6765     case `/usr/bin/file conftest.$ac_objext` in
6766       *ELF-32*)
6767         HPUX_IA64_MODE=32
6768         ;;
6769       *ELF-64*)
6770         HPUX_IA64_MODE=64
6771         ;;
6772     esac
6773   fi
6774   rm -rf conftest*
6775   ;;
6776 *-*-irix6*)
6777   # Find out what ABI is being produced by ac_compile, and set linker
6778   # options accordingly.
6779   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6780   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6781   (eval $ac_compile) 2>&5
6782   ac_status=$?
6783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784   test $ac_status = 0; }; then
6785     if test yes = "$lt_cv_prog_gnu_ld"; then
6786       case `/usr/bin/file conftest.$ac_objext` in
6787         *32-bit*)
6788           LD="${LD-ld} -melf32bsmip"
6789           ;;
6790         *N32*)
6791           LD="${LD-ld} -melf32bmipn32"
6792           ;;
6793         *64-bit*)
6794           LD="${LD-ld} -melf64bmip"
6795         ;;
6796       esac
6797     else
6798       case `/usr/bin/file conftest.$ac_objext` in
6799         *32-bit*)
6800           LD="${LD-ld} -32"
6801           ;;
6802         *N32*)
6803           LD="${LD-ld} -n32"
6804           ;;
6805         *64-bit*)
6806           LD="${LD-ld} -64"
6807           ;;
6808       esac
6809     fi
6810   fi
6811   rm -rf conftest*
6812   ;;
6813
6814 mips64*-*linux*)
6815   # Find out what ABI is being produced by ac_compile, and set linker
6816   # options accordingly.
6817   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6818   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6819   (eval $ac_compile) 2>&5
6820   ac_status=$?
6821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822   test $ac_status = 0; }; then
6823     emul=elf
6824     case `/usr/bin/file conftest.$ac_objext` in
6825       *32-bit*)
6826         emul="${emul}32"
6827         ;;
6828       *64-bit*)
6829         emul="${emul}64"
6830         ;;
6831     esac
6832     case `/usr/bin/file conftest.$ac_objext` in
6833       *MSB*)
6834         emul="${emul}btsmip"
6835         ;;
6836       *LSB*)
6837         emul="${emul}ltsmip"
6838         ;;
6839     esac
6840     case `/usr/bin/file conftest.$ac_objext` in
6841       *N32*)
6842         emul="${emul}n32"
6843         ;;
6844     esac
6845     LD="${LD-ld} -m $emul"
6846   fi
6847   rm -rf conftest*
6848   ;;
6849
6850 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6851 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6852   # Find out what ABI is being produced by ac_compile, and set linker
6853   # options accordingly.  Note that the listed cases only cover the
6854   # situations where additional linker options are needed (such as when
6855   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6856   # vice versa); the common cases where no linker options are needed do
6857   # not appear in the list.
6858   echo 'int i;' > conftest.$ac_ext
6859   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6860   (eval $ac_compile) 2>&5
6861   ac_status=$?
6862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863   test $ac_status = 0; }; then
6864     case `/usr/bin/file conftest.o` in
6865       *32-bit*)
6866         case $host in
6867           x86_64-*kfreebsd*-gnu)
6868             LD="${LD-ld} -m elf_i386_fbsd"
6869             ;;
6870           x86_64-*linux*)
6871             case `/usr/bin/file conftest.o` in
6872               *x86-64*)
6873                 LD="${LD-ld} -m elf32_x86_64"
6874                 ;;
6875               *)
6876                 LD="${LD-ld} -m elf_i386"
6877                 ;;
6878             esac
6879             ;;
6880           powerpc64le-*linux*)
6881             LD="${LD-ld} -m elf32lppclinux"
6882             ;;
6883           powerpc64-*linux*)
6884             LD="${LD-ld} -m elf32ppclinux"
6885             ;;
6886           s390x-*linux*)
6887             LD="${LD-ld} -m elf_s390"
6888             ;;
6889           sparc64-*linux*)
6890             LD="${LD-ld} -m elf32_sparc"
6891             ;;
6892         esac
6893         ;;
6894       *64-bit*)
6895         case $host in
6896           x86_64-*kfreebsd*-gnu)
6897             LD="${LD-ld} -m elf_x86_64_fbsd"
6898             ;;
6899           x86_64-*linux*)
6900             LD="${LD-ld} -m elf_x86_64"
6901             ;;
6902           powerpcle-*linux*)
6903             LD="${LD-ld} -m elf64lppc"
6904             ;;
6905           powerpc-*linux*)
6906             LD="${LD-ld} -m elf64ppc"
6907             ;;
6908           s390*-*linux*|s390*-*tpf*)
6909             LD="${LD-ld} -m elf64_s390"
6910             ;;
6911           sparc*-*linux*)
6912             LD="${LD-ld} -m elf64_sparc"
6913             ;;
6914         esac
6915         ;;
6916     esac
6917   fi
6918   rm -rf conftest*
6919   ;;
6920
6921 *-*-sco3.2v5*)
6922   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6923   SAVE_CFLAGS=$CFLAGS
6924   CFLAGS="$CFLAGS -belf"
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6926 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6927 if ${lt_cv_cc_needs_belf+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   ac_ext=c
6931 ac_cpp='$CPP $CPPFLAGS'
6932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6935
6936      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h.  */
6938
6939 int
6940 main ()
6941 {
6942
6943   ;
6944   return 0;
6945 }
6946 _ACEOF
6947 if ac_fn_c_try_link "$LINENO"; then :
6948   lt_cv_cc_needs_belf=yes
6949 else
6950   lt_cv_cc_needs_belf=no
6951 fi
6952 rm -f core conftest.err conftest.$ac_objext \
6953     conftest$ac_exeext conftest.$ac_ext
6954      ac_ext=c
6955 ac_cpp='$CPP $CPPFLAGS'
6956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6959
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6962 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6963   if test yes != "$lt_cv_cc_needs_belf"; then
6964     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6965     CFLAGS=$SAVE_CFLAGS
6966   fi
6967   ;;
6968 *-*solaris*)
6969   # Find out what ABI is being produced by ac_compile, and set linker
6970   # options accordingly.
6971   echo 'int i;' > conftest.$ac_ext
6972   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6973   (eval $ac_compile) 2>&5
6974   ac_status=$?
6975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6976   test $ac_status = 0; }; then
6977     case `/usr/bin/file conftest.o` in
6978     *64-bit*)
6979       case $lt_cv_prog_gnu_ld in
6980       yes*)
6981         case $host in
6982         i?86-*-solaris*|x86_64-*-solaris*)
6983           LD="${LD-ld} -m elf_x86_64"
6984           ;;
6985         sparc*-*-solaris*)
6986           LD="${LD-ld} -m elf64_sparc"
6987           ;;
6988         esac
6989         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6990         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6991           LD=${LD-ld}_sol2
6992         fi
6993         ;;
6994       *)
6995         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6996           LD="${LD-ld} -64"
6997         fi
6998         ;;
6999       esac
7000       ;;
7001     esac
7002   fi
7003   rm -rf conftest*
7004   ;;
7005 esac
7006
7007 need_locks=$enable_libtool_lock
7008
7009 if test -n "$ac_tool_prefix"; then
7010   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}mt; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   if test -n "$MANIFEST_TOOL"; then
7018   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023   IFS=$as_save_IFS
7024   test -z "$as_dir" && as_dir=.
7025     for ac_exec_ext in '' $ac_executable_extensions; do
7026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029     break 2
7030   fi
7031 done
7032   done
7033 IFS=$as_save_IFS
7034
7035 fi
7036 fi
7037 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7038 if test -n "$MANIFEST_TOOL"; then
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7040 $as_echo "$MANIFEST_TOOL" >&6; }
7041 else
7042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046
7047 fi
7048 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7049   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7050   # Extract the first word of "mt", so it can be a program name with args.
7051 set dummy mt; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7055   $as_echo_n "(cached) " >&6
7056 else
7057   if test -n "$ac_ct_MANIFEST_TOOL"; then
7058   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063   IFS=$as_save_IFS
7064   test -z "$as_dir" && as_dir=.
7065     for ac_exec_ext in '' $ac_executable_extensions; do
7066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069     break 2
7070   fi
7071 done
7072   done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7078 if test -n "$ac_ct_MANIFEST_TOOL"; then
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7080 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7081 else
7082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7087     MANIFEST_TOOL=":"
7088   else
7089     case $cross_compiling:$ac_tool_warned in
7090 yes:)
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7094 esac
7095     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7096   fi
7097 else
7098   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7099 fi
7100
7101 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7103 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7104 if ${lt_cv_path_mainfest_tool+:} false; then :
7105   $as_echo_n "(cached) " >&6
7106 else
7107   lt_cv_path_mainfest_tool=no
7108   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7109   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7110   cat conftest.err >&5
7111   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7112     lt_cv_path_mainfest_tool=yes
7113   fi
7114   rm -f conftest*
7115 fi
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7117 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7118 if test yes != "$lt_cv_path_mainfest_tool"; then
7119   MANIFEST_TOOL=:
7120 fi
7121
7122
7123
7124
7125
7126
7127   case $host_os in
7128     rhapsody* | darwin*)
7129     if test -n "$ac_tool_prefix"; then
7130   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7131 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7135   $as_echo_n "(cached) " >&6
7136 else
7137   if test -n "$DSYMUTIL"; then
7138   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143   IFS=$as_save_IFS
7144   test -z "$as_dir" && as_dir=.
7145     for ac_exec_ext in '' $ac_executable_extensions; do
7146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149     break 2
7150   fi
7151 done
7152   done
7153 IFS=$as_save_IFS
7154
7155 fi
7156 fi
7157 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7158 if test -n "$DSYMUTIL"; then
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7160 $as_echo "$DSYMUTIL" >&6; }
7161 else
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165
7166
7167 fi
7168 if test -z "$ac_cv_prog_DSYMUTIL"; then
7169   ac_ct_DSYMUTIL=$DSYMUTIL
7170   # Extract the first word of "dsymutil", so it can be a program name with args.
7171 set dummy dsymutil; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7175   $as_echo_n "(cached) " >&6
7176 else
7177   if test -n "$ac_ct_DSYMUTIL"; then
7178   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185     for ac_exec_ext in '' $ac_executable_extensions; do
7186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192   done
7193 IFS=$as_save_IFS
7194
7195 fi
7196 fi
7197 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7198 if test -n "$ac_ct_DSYMUTIL"; then
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7200 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7201 else
7202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7204 fi
7205
7206   if test "x$ac_ct_DSYMUTIL" = x; then
7207     DSYMUTIL=":"
7208   else
7209     case $cross_compiling:$ac_tool_warned in
7210 yes:)
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7213 ac_tool_warned=yes ;;
7214 esac
7215     DSYMUTIL=$ac_ct_DSYMUTIL
7216   fi
7217 else
7218   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7219 fi
7220
7221     if test -n "$ac_tool_prefix"; then
7222   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_NMEDIT+:} false; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   if test -n "$NMEDIT"; then
7230   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237     for ac_exec_ext in '' $ac_executable_extensions; do
7238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244   done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 NMEDIT=$ac_cv_prog_NMEDIT
7250 if test -n "$NMEDIT"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7252 $as_echo "$NMEDIT" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258
7259 fi
7260 if test -z "$ac_cv_prog_NMEDIT"; then
7261   ac_ct_NMEDIT=$NMEDIT
7262   # Extract the first word of "nmedit", so it can be a program name with args.
7263 set dummy nmedit; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   if test -n "$ac_ct_NMEDIT"; then
7270   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277     for ac_exec_ext in '' $ac_executable_extensions; do
7278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284   done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7290 if test -n "$ac_ct_NMEDIT"; then
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7292 $as_echo "$ac_ct_NMEDIT" >&6; }
7293 else
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298   if test "x$ac_ct_NMEDIT" = x; then
7299     NMEDIT=":"
7300   else
7301     case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307     NMEDIT=$ac_ct_NMEDIT
7308   fi
7309 else
7310   NMEDIT="$ac_cv_prog_NMEDIT"
7311 fi
7312
7313     if test -n "$ac_tool_prefix"; then
7314   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7315 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_LIPO+:} false; then :
7319   $as_echo_n "(cached) " >&6
7320 else
7321   if test -n "$LIPO"; then
7322   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329     for ac_exec_ext in '' $ac_executable_extensions; do
7330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336   done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 LIPO=$ac_cv_prog_LIPO
7342 if test -n "$LIPO"; then
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7344 $as_echo "$LIPO" >&6; }
7345 else
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350
7351 fi
7352 if test -z "$ac_cv_prog_LIPO"; then
7353   ac_ct_LIPO=$LIPO
7354   # Extract the first word of "lipo", so it can be a program name with args.
7355 set dummy lipo; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361   if test -n "$ac_ct_LIPO"; then
7362   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369     for ac_exec_ext in '' $ac_executable_extensions; do
7370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371     ac_cv_prog_ac_ct_LIPO="lipo"
7372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376   done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7382 if test -n "$ac_ct_LIPO"; then
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7384 $as_echo "$ac_ct_LIPO" >&6; }
7385 else
7386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390   if test "x$ac_ct_LIPO" = x; then
7391     LIPO=":"
7392   else
7393     case $cross_compiling:$ac_tool_warned in
7394 yes:)
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397 ac_tool_warned=yes ;;
7398 esac
7399     LIPO=$ac_ct_LIPO
7400   fi
7401 else
7402   LIPO="$ac_cv_prog_LIPO"
7403 fi
7404
7405     if test -n "$ac_tool_prefix"; then
7406   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}otool; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_OTOOL+:} false; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413   if test -n "$OTOOL"; then
7414   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421     for ac_exec_ext in '' $ac_executable_extensions; do
7422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428   done
7429 IFS=$as_save_IFS
7430
7431 fi
7432 fi
7433 OTOOL=$ac_cv_prog_OTOOL
7434 if test -n "$OTOOL"; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7436 $as_echo "$OTOOL" >&6; }
7437 else
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7440 fi
7441
7442
7443 fi
7444 if test -z "$ac_cv_prog_OTOOL"; then
7445   ac_ct_OTOOL=$OTOOL
7446   # Extract the first word of "otool", so it can be a program name with args.
7447 set dummy otool; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7451   $as_echo_n "(cached) " >&6
7452 else
7453   if test -n "$ac_ct_OTOOL"; then
7454   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7458 do
7459   IFS=$as_save_IFS
7460   test -z "$as_dir" && as_dir=.
7461     for ac_exec_ext in '' $ac_executable_extensions; do
7462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463     ac_cv_prog_ac_ct_OTOOL="otool"
7464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465     break 2
7466   fi
7467 done
7468   done
7469 IFS=$as_save_IFS
7470
7471 fi
7472 fi
7473 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7474 if test -n "$ac_ct_OTOOL"; then
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7476 $as_echo "$ac_ct_OTOOL" >&6; }
7477 else
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482   if test "x$ac_ct_OTOOL" = x; then
7483     OTOOL=":"
7484   else
7485     case $cross_compiling:$ac_tool_warned in
7486 yes:)
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491     OTOOL=$ac_ct_OTOOL
7492   fi
7493 else
7494   OTOOL="$ac_cv_prog_OTOOL"
7495 fi
7496
7497     if test -n "$ac_tool_prefix"; then
7498   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_OTOOL64+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   if test -n "$OTOOL64"; then
7506   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 OTOOL64=$ac_cv_prog_OTOOL64
7526 if test -n "$OTOOL64"; then
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7528 $as_echo "$OTOOL64" >&6; }
7529 else
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534
7535 fi
7536 if test -z "$ac_cv_prog_OTOOL64"; then
7537   ac_ct_OTOOL64=$OTOOL64
7538   # Extract the first word of "otool64", so it can be a program name with args.
7539 set dummy otool64; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   if test -n "$ac_ct_OTOOL64"; then
7546   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553     for ac_exec_ext in '' $ac_executable_extensions; do
7554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555     ac_cv_prog_ac_ct_OTOOL64="otool64"
7556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560   done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7566 if test -n "$ac_ct_OTOOL64"; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7568 $as_echo "$ac_ct_OTOOL64" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574   if test "x$ac_ct_OTOOL64" = x; then
7575     OTOOL64=":"
7576   else
7577     case $cross_compiling:$ac_tool_warned in
7578 yes:)
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581 ac_tool_warned=yes ;;
7582 esac
7583     OTOOL64=$ac_ct_OTOOL64
7584   fi
7585 else
7586   OTOOL64="$ac_cv_prog_OTOOL64"
7587 fi
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7616 $as_echo_n "checking for -single_module linker flag... " >&6; }
7617 if ${lt_cv_apple_cc_single_mod+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   lt_cv_apple_cc_single_mod=no
7621       if test -z "$LT_MULTI_MODULE"; then
7622         # By default we will add the -single_module flag. You can override
7623         # by either setting the environment variable LT_MULTI_MODULE
7624         # non-empty at configure time, or by adding -multi_module to the
7625         # link flags.
7626         rm -rf libconftest.dylib*
7627         echo "int foo(void){return 1;}" > conftest.c
7628         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7629 -dynamiclib -Wl,-single_module conftest.c" >&5
7630         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7631           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7632         _lt_result=$?
7633         # If there is a non-empty error log, and "single_module"
7634         # appears in it, assume the flag caused a linker warning
7635         if test -s conftest.err && $GREP single_module conftest.err; then
7636           cat conftest.err >&5
7637         # Otherwise, if the output was created with a 0 exit code from
7638         # the compiler, it worked.
7639         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7640           lt_cv_apple_cc_single_mod=yes
7641         else
7642           cat conftest.err >&5
7643         fi
7644         rm -rf libconftest.dylib*
7645         rm -f conftest.*
7646       fi
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7649 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7650
7651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7652 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7653 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656   lt_cv_ld_exported_symbols_list=no
7657       save_LDFLAGS=$LDFLAGS
7658       echo "_main" > conftest.sym
7659       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h.  */
7662
7663 int
7664 main ()
7665 {
7666
7667   ;
7668   return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_link "$LINENO"; then :
7672   lt_cv_ld_exported_symbols_list=yes
7673 else
7674   lt_cv_ld_exported_symbols_list=no
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext \
7677     conftest$ac_exeext conftest.$ac_ext
7678         LDFLAGS=$save_LDFLAGS
7679
7680 fi
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7682 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7683
7684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7685 $as_echo_n "checking for -force_load linker flag... " >&6; }
7686 if ${lt_cv_ld_force_load+:} false; then :
7687   $as_echo_n "(cached) " >&6
7688 else
7689   lt_cv_ld_force_load=no
7690       cat > conftest.c << _LT_EOF
7691 int forced_loaded() { return 2;}
7692 _LT_EOF
7693       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7694       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7695       echo "$AR cru libconftest.a conftest.o" >&5
7696       $AR cru libconftest.a conftest.o 2>&5
7697       echo "$RANLIB libconftest.a" >&5
7698       $RANLIB libconftest.a 2>&5
7699       cat > conftest.c << _LT_EOF
7700 int main() { return 0;}
7701 _LT_EOF
7702       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7703       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7704       _lt_result=$?
7705       if test -s conftest.err && $GREP force_load conftest.err; then
7706         cat conftest.err >&5
7707       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7708         lt_cv_ld_force_load=yes
7709       else
7710         cat conftest.err >&5
7711       fi
7712         rm -f conftest.err libconftest.a conftest conftest.c
7713         rm -rf conftest.dSYM
7714
7715 fi
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7717 $as_echo "$lt_cv_ld_force_load" >&6; }
7718     case $host_os in
7719     rhapsody* | darwin1.[012])
7720       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7721     darwin1.*)
7722       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7723     darwin*) # darwin 5.x on
7724       # if running on 10.5 or later, the deployment target defaults
7725       # to the OS version, if on x86, and 10.4, the deployment
7726       # target defaults to 10.4. Don't you love it?
7727       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7728         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7729           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7730         10.[012][,.]*)
7731           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7732         10.*)
7733           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7734       esac
7735     ;;
7736   esac
7737     if test yes = "$lt_cv_apple_cc_single_mod"; then
7738       _lt_dar_single_mod='$single_module'
7739     fi
7740     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7741       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7742     else
7743       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7744     fi
7745     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7746       _lt_dsymutil='~$DSYMUTIL $lib || :'
7747     else
7748       _lt_dsymutil=
7749     fi
7750     ;;
7751   esac
7752
7753 # func_munge_path_list VARIABLE PATH
7754 # -----------------------------------
7755 # VARIABLE is name of variable containing _space_ separated list of
7756 # directories to be munged by the contents of PATH, which is string
7757 # having a format:
7758 # "DIR[:DIR]:"
7759 #       string "DIR[ DIR]" will be prepended to VARIABLE
7760 # ":DIR[:DIR]"
7761 #       string "DIR[ DIR]" will be appended to VARIABLE
7762 # "DIRP[:DIRP]::[DIRA:]DIRA"
7763 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7764 #       "DIRA[ DIRA]" will be appended to VARIABLE
7765 # "DIR[:DIR]"
7766 #       VARIABLE will be replaced by "DIR[ DIR]"
7767 func_munge_path_list ()
7768 {
7769     case x$2 in
7770     x)
7771         ;;
7772     *:)
7773         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7774         ;;
7775     x:*)
7776         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7777         ;;
7778     *::*)
7779         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7780         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7781         ;;
7782     *)
7783         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7784         ;;
7785     esac
7786 }
7787
7788 ac_ext=c
7789 ac_cpp='$CPP $CPPFLAGS'
7790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7794 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7795 # On Suns, sometimes $CPP names a directory.
7796 if test -n "$CPP" && test -d "$CPP"; then
7797   CPP=
7798 fi
7799 if test -z "$CPP"; then
7800   if ${ac_cv_prog_CPP+:} false; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803       # Double quotes because CPP needs to be expanded
7804     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7805     do
7806       ac_preproc_ok=false
7807 for ac_c_preproc_warn_flag in '' yes
7808 do
7809   # Use a header file that comes with gcc, so configuring glibc
7810   # with a fresh cross-compiler works.
7811   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7812   # <limits.h> exists even on freestanding compilers.
7813   # On the NeXT, cc -E runs the code through the compiler's parser,
7814   # not just through cpp. "Syntax error" is here to catch this case.
7815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h.  */
7817 #ifdef __STDC__
7818 # include <limits.h>
7819 #else
7820 # include <assert.h>
7821 #endif
7822                      Syntax error
7823 _ACEOF
7824 if ac_fn_c_try_cpp "$LINENO"; then :
7825
7826 else
7827   # Broken: fails on valid input.
7828 continue
7829 fi
7830 rm -f conftest.err conftest.i conftest.$ac_ext
7831
7832   # OK, works on sane cases.  Now check whether nonexistent headers
7833   # can be detected and how.
7834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h.  */
7836 #include <ac_nonexistent.h>
7837 _ACEOF
7838 if ac_fn_c_try_cpp "$LINENO"; then :
7839   # Broken: success on invalid input.
7840 continue
7841 else
7842   # Passes both tests.
7843 ac_preproc_ok=:
7844 break
7845 fi
7846 rm -f conftest.err conftest.i conftest.$ac_ext
7847
7848 done
7849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7850 rm -f conftest.i conftest.err conftest.$ac_ext
7851 if $ac_preproc_ok; then :
7852   break
7853 fi
7854
7855     done
7856     ac_cv_prog_CPP=$CPP
7857
7858 fi
7859   CPP=$ac_cv_prog_CPP
7860 else
7861   ac_cv_prog_CPP=$CPP
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7864 $as_echo "$CPP" >&6; }
7865 ac_preproc_ok=false
7866 for ac_c_preproc_warn_flag in '' yes
7867 do
7868   # Use a header file that comes with gcc, so configuring glibc
7869   # with a fresh cross-compiler works.
7870   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7871   # <limits.h> exists even on freestanding compilers.
7872   # On the NeXT, cc -E runs the code through the compiler's parser,
7873   # not just through cpp. "Syntax error" is here to catch this case.
7874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h.  */
7876 #ifdef __STDC__
7877 # include <limits.h>
7878 #else
7879 # include <assert.h>
7880 #endif
7881                      Syntax error
7882 _ACEOF
7883 if ac_fn_c_try_cpp "$LINENO"; then :
7884
7885 else
7886   # Broken: fails on valid input.
7887 continue
7888 fi
7889 rm -f conftest.err conftest.i conftest.$ac_ext
7890
7891   # OK, works on sane cases.  Now check whether nonexistent headers
7892   # can be detected and how.
7893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h.  */
7895 #include <ac_nonexistent.h>
7896 _ACEOF
7897 if ac_fn_c_try_cpp "$LINENO"; then :
7898   # Broken: success on invalid input.
7899 continue
7900 else
7901   # Passes both tests.
7902 ac_preproc_ok=:
7903 break
7904 fi
7905 rm -f conftest.err conftest.i conftest.$ac_ext
7906
7907 done
7908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7909 rm -f conftest.i conftest.err conftest.$ac_ext
7910 if $ac_preproc_ok; then :
7911
7912 else
7913   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7915 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7916 See \`config.log' for more details" "$LINENO" 5; }
7917 fi
7918
7919 ac_ext=c
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7927 $as_echo_n "checking for ANSI C header files... " >&6; }
7928 if ${ac_cv_header_stdc+:} false; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h.  */
7933 #include <stdlib.h>
7934 #include <stdarg.h>
7935 #include <string.h>
7936 #include <float.h>
7937
7938 int
7939 main ()
7940 {
7941
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_compile "$LINENO"; then :
7947   ac_cv_header_stdc=yes
7948 else
7949   ac_cv_header_stdc=no
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952
7953 if test $ac_cv_header_stdc = yes; then
7954   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957 #include <string.h>
7958
7959 _ACEOF
7960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7961   $EGREP "memchr" >/dev/null 2>&1; then :
7962
7963 else
7964   ac_cv_header_stdc=no
7965 fi
7966 rm -f conftest*
7967
7968 fi
7969
7970 if test $ac_cv_header_stdc = yes; then
7971   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h.  */
7974 #include <stdlib.h>
7975
7976 _ACEOF
7977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7978   $EGREP "free" >/dev/null 2>&1; then :
7979
7980 else
7981   ac_cv_header_stdc=no
7982 fi
7983 rm -f conftest*
7984
7985 fi
7986
7987 if test $ac_cv_header_stdc = yes; then
7988   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7989   if test "$cross_compiling" = yes; then :
7990   :
7991 else
7992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h.  */
7994 #include <ctype.h>
7995 #include <stdlib.h>
7996 #if ((' ' & 0x0FF) == 0x020)
7997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7999 #else
8000 # define ISLOWER(c) \
8001                    (('a' <= (c) && (c) <= 'i') \
8002                      || ('j' <= (c) && (c) <= 'r') \
8003                      || ('s' <= (c) && (c) <= 'z'))
8004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8005 #endif
8006
8007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8008 int
8009 main ()
8010 {
8011   int i;
8012   for (i = 0; i < 256; i++)
8013     if (XOR (islower (i), ISLOWER (i))
8014         || toupper (i) != TOUPPER (i))
8015       return 2;
8016   return 0;
8017 }
8018 _ACEOF
8019 if ac_fn_c_try_run "$LINENO"; then :
8020
8021 else
8022   ac_cv_header_stdc=no
8023 fi
8024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8025   conftest.$ac_objext conftest.beam conftest.$ac_ext
8026 fi
8027
8028 fi
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8031 $as_echo "$ac_cv_header_stdc" >&6; }
8032 if test $ac_cv_header_stdc = yes; then
8033
8034 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8035
8036 fi
8037
8038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8040                   inttypes.h stdint.h unistd.h
8041 do :
8042   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8044 "
8045 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8046   cat >>confdefs.h <<_ACEOF
8047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8048 _ACEOF
8049
8050 fi
8051
8052 done
8053
8054
8055 for ac_header in dlfcn.h
8056 do :
8057   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8058 "
8059 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8060   cat >>confdefs.h <<_ACEOF
8061 #define HAVE_DLFCN_H 1
8062 _ACEOF
8063
8064 fi
8065
8066 done
8067
8068
8069
8070
8071
8072 # Set options
8073 # Check whether --enable-static was given.
8074 if test "${enable_static+set}" = set; then :
8075   enableval=$enable_static; p=${PACKAGE-default}
8076     case $enableval in
8077     yes) enable_static=yes ;;
8078     no) enable_static=no ;;
8079     *)
8080      enable_static=no
8081       # Look at the argument we got.  We use all the common list separators.
8082       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8083       for pkg in $enableval; do
8084         IFS=$lt_save_ifs
8085         if test "X$pkg" = "X$p"; then
8086           enable_static=yes
8087         fi
8088       done
8089       IFS=$lt_save_ifs
8090       ;;
8091     esac
8092 else
8093   enable_static=no
8094 fi
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105         enable_dlopen=no
8106
8107
8108   enable_win32_dll=no
8109
8110
8111             # Check whether --enable-shared was given.
8112 if test "${enable_shared+set}" = set; then :
8113   enableval=$enable_shared; p=${PACKAGE-default}
8114     case $enableval in
8115     yes) enable_shared=yes ;;
8116     no) enable_shared=no ;;
8117     *)
8118       enable_shared=no
8119       # Look at the argument we got.  We use all the common list separators.
8120       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8121       for pkg in $enableval; do
8122         IFS=$lt_save_ifs
8123         if test "X$pkg" = "X$p"; then
8124           enable_shared=yes
8125         fi
8126       done
8127       IFS=$lt_save_ifs
8128       ;;
8129     esac
8130 else
8131   enable_shared=yes
8132 fi
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144 # Check whether --with-pic was given.
8145 if test "${with_pic+set}" = set; then :
8146   withval=$with_pic; lt_p=${PACKAGE-default}
8147     case $withval in
8148     yes|no) pic_mode=$withval ;;
8149     *)
8150       pic_mode=default
8151       # Look at the argument we got.  We use all the common list separators.
8152       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8153       for lt_pkg in $withval; do
8154         IFS=$lt_save_ifs
8155         if test "X$lt_pkg" = "X$lt_p"; then
8156           pic_mode=yes
8157         fi
8158       done
8159       IFS=$lt_save_ifs
8160       ;;
8161     esac
8162 else
8163   pic_mode=default
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172
8173   # Check whether --enable-fast-install was given.
8174 if test "${enable_fast_install+set}" = set; then :
8175   enableval=$enable_fast_install; p=${PACKAGE-default}
8176     case $enableval in
8177     yes) enable_fast_install=yes ;;
8178     no) enable_fast_install=no ;;
8179     *)
8180       enable_fast_install=no
8181       # Look at the argument we got.  We use all the common list separators.
8182       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8183       for pkg in $enableval; do
8184         IFS=$lt_save_ifs
8185         if test "X$pkg" = "X$p"; then
8186           enable_fast_install=yes
8187         fi
8188       done
8189       IFS=$lt_save_ifs
8190       ;;
8191     esac
8192 else
8193   enable_fast_install=yes
8194 fi
8195
8196
8197
8198
8199
8200
8201
8202
8203   shared_archive_member_spec=
8204 case $host,$enable_shared in
8205 power*-*-aix[5-9]*,yes)
8206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8207 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8208
8209 # Check whether --with-aix-soname was given.
8210 if test "${with_aix_soname+set}" = set; then :
8211   withval=$with_aix_soname; case $withval in
8212     aix|svr4|both)
8213       ;;
8214     *)
8215       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8216       ;;
8217     esac
8218     lt_cv_with_aix_soname=$with_aix_soname
8219 else
8220   if ${lt_cv_with_aix_soname+:} false; then :
8221   $as_echo_n "(cached) " >&6
8222 else
8223   lt_cv_with_aix_soname=aix
8224 fi
8225
8226     with_aix_soname=$lt_cv_with_aix_soname
8227 fi
8228
8229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8230 $as_echo "$with_aix_soname" >&6; }
8231   if test aix != "$with_aix_soname"; then
8232     # For the AIX way of multilib, we name the shared archive member
8233     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8234     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8235     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8236     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8237     if test 64 = "${OBJECT_MODE-32}"; then
8238       shared_archive_member_spec=shr_64
8239     else
8240       shared_archive_member_spec=shr
8241     fi
8242   fi
8243   ;;
8244 *)
8245   with_aix_soname=aix
8246   ;;
8247 esac
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258 # This can be used to rebuild libtool when needed
8259 LIBTOOL_DEPS=$ltmain
8260
8261 # Always use our own libtool.
8262 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8289
8290
8291
8292
8293 test -z "$LN_S" && LN_S="ln -s"
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308 if test -n "${ZSH_VERSION+set}"; then
8309    setopt NO_GLOB_SUBST
8310 fi
8311
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8313 $as_echo_n "checking for objdir... " >&6; }
8314 if ${lt_cv_objdir+:} false; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   rm -f .libs 2>/dev/null
8318 mkdir .libs 2>/dev/null
8319 if test -d .libs; then
8320   lt_cv_objdir=.libs
8321 else
8322   # MS-DOS does not allow filenames that begin with a dot.
8323   lt_cv_objdir=_libs
8324 fi
8325 rmdir .libs 2>/dev/null
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8328 $as_echo "$lt_cv_objdir" >&6; }
8329 objdir=$lt_cv_objdir
8330
8331
8332
8333
8334
8335 cat >>confdefs.h <<_ACEOF
8336 #define LT_OBJDIR "$lt_cv_objdir/"
8337 _ACEOF
8338
8339
8340
8341
8342 case $host_os in
8343 aix3*)
8344   # AIX sometimes has problems with the GCC collect2 program.  For some
8345   # reason, if we set the COLLECT_NAMES environment variable, the problems
8346   # vanish in a puff of smoke.
8347   if test set != "${COLLECT_NAMES+set}"; then
8348     COLLECT_NAMES=
8349     export COLLECT_NAMES
8350   fi
8351   ;;
8352 esac
8353
8354 # Global variables:
8355 ofile=libtool
8356 can_build_shared=yes
8357
8358 # All known linkers require a '.a' archive for static linking (except MSVC,
8359 # which needs '.lib').
8360 libext=a
8361
8362 with_gnu_ld=$lt_cv_prog_gnu_ld
8363
8364 old_CC=$CC
8365 old_CFLAGS=$CFLAGS
8366
8367 # Set sane defaults for various variables
8368 test -z "$CC" && CC=cc
8369 test -z "$LTCC" && LTCC=$CC
8370 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8371 test -z "$LD" && LD=ld
8372 test -z "$ac_objext" && ac_objext=o
8373
8374 func_cc_basename $compiler
8375 cc_basename=$func_cc_basename_result
8376
8377
8378 # Only perform the check for file, if the check method requires it
8379 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8380 case $deplibs_check_method in
8381 file_magic*)
8382   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8384 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8385 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388   case $MAGIC_CMD in
8389 [\\/*] |  ?:[\\/]*)
8390   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8391   ;;
8392 *)
8393   lt_save_MAGIC_CMD=$MAGIC_CMD
8394   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8395   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8396   for ac_dir in $ac_dummy; do
8397     IFS=$lt_save_ifs
8398     test -z "$ac_dir" && ac_dir=.
8399     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8400       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8401       if test -n "$file_magic_test_file"; then
8402         case $deplibs_check_method in
8403         "file_magic "*)
8404           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8405           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8406           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8407             $EGREP "$file_magic_regex" > /dev/null; then
8408             :
8409           else
8410             cat <<_LT_EOF 1>&2
8411
8412 *** Warning: the command libtool uses to detect shared libraries,
8413 *** $file_magic_cmd, produces output that libtool cannot recognize.
8414 *** The result is that libtool may fail to recognize shared libraries
8415 *** as such.  This will affect the creation of libtool libraries that
8416 *** depend on shared libraries, but programs linked with such libtool
8417 *** libraries will work regardless of this problem.  Nevertheless, you
8418 *** may want to report the problem to your system manager and/or to
8419 *** bug-libtool@gnu.org
8420
8421 _LT_EOF
8422           fi ;;
8423         esac
8424       fi
8425       break
8426     fi
8427   done
8428   IFS=$lt_save_ifs
8429   MAGIC_CMD=$lt_save_MAGIC_CMD
8430   ;;
8431 esac
8432 fi
8433
8434 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8435 if test -n "$MAGIC_CMD"; then
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8437 $as_echo "$MAGIC_CMD" >&6; }
8438 else
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442
8443
8444
8445
8446
8447 if test -z "$lt_cv_path_MAGIC_CMD"; then
8448   if test -n "$ac_tool_prefix"; then
8449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8450 $as_echo_n "checking for file... " >&6; }
8451 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8452   $as_echo_n "(cached) " >&6
8453 else
8454   case $MAGIC_CMD in
8455 [\\/*] |  ?:[\\/]*)
8456   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8457   ;;
8458 *)
8459   lt_save_MAGIC_CMD=$MAGIC_CMD
8460   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8461   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8462   for ac_dir in $ac_dummy; do
8463     IFS=$lt_save_ifs
8464     test -z "$ac_dir" && ac_dir=.
8465     if test -f "$ac_dir/file"; then
8466       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8467       if test -n "$file_magic_test_file"; then
8468         case $deplibs_check_method in
8469         "file_magic "*)
8470           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8471           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8472           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8473             $EGREP "$file_magic_regex" > /dev/null; then
8474             :
8475           else
8476             cat <<_LT_EOF 1>&2
8477
8478 *** Warning: the command libtool uses to detect shared libraries,
8479 *** $file_magic_cmd, produces output that libtool cannot recognize.
8480 *** The result is that libtool may fail to recognize shared libraries
8481 *** as such.  This will affect the creation of libtool libraries that
8482 *** depend on shared libraries, but programs linked with such libtool
8483 *** libraries will work regardless of this problem.  Nevertheless, you
8484 *** may want to report the problem to your system manager and/or to
8485 *** bug-libtool@gnu.org
8486
8487 _LT_EOF
8488           fi ;;
8489         esac
8490       fi
8491       break
8492     fi
8493   done
8494   IFS=$lt_save_ifs
8495   MAGIC_CMD=$lt_save_MAGIC_CMD
8496   ;;
8497 esac
8498 fi
8499
8500 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8501 if test -n "$MAGIC_CMD"; then
8502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8503 $as_echo "$MAGIC_CMD" >&6; }
8504 else
8505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8507 fi
8508
8509
8510   else
8511     MAGIC_CMD=:
8512   fi
8513 fi
8514
8515   fi
8516   ;;
8517 esac
8518
8519 # Use C for the default configuration in the libtool script
8520
8521 lt_save_CC=$CC
8522 ac_ext=c
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8527
8528
8529 # Source file extension for C test sources.
8530 ac_ext=c
8531
8532 # Object file extension for compiled C test sources.
8533 objext=o
8534 objext=$objext
8535
8536 # Code to be used in simple compile tests
8537 lt_simple_compile_test_code="int some_variable = 0;"
8538
8539 # Code to be used in simple link tests
8540 lt_simple_link_test_code='int main(){return(0);}'
8541
8542
8543
8544
8545
8546
8547
8548 # If no C compiler was specified, use CC.
8549 LTCC=${LTCC-"$CC"}
8550
8551 # If no C compiler flags were specified, use CFLAGS.
8552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8553
8554 # Allow CC to be a program name with arguments.
8555 compiler=$CC
8556
8557 # Save the default compiler, since it gets overwritten when the other
8558 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8559 compiler_DEFAULT=$CC
8560
8561 # save warnings/boilerplate of simple test code
8562 ac_outfile=conftest.$ac_objext
8563 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8564 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8565 _lt_compiler_boilerplate=`cat conftest.err`
8566 $RM conftest*
8567
8568 ac_outfile=conftest.$ac_objext
8569 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8570 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8571 _lt_linker_boilerplate=`cat conftest.err`
8572 $RM -r conftest*
8573
8574
8575 ## CAVEAT EMPTOR:
8576 ## There is no encapsulation within the following macros, do not change
8577 ## the running order or otherwise move them around unless you know exactly
8578 ## what you are doing...
8579 if test -n "$compiler"; then
8580
8581 lt_prog_compiler_no_builtin_flag=
8582
8583 if test yes = "$GCC"; then
8584   case $cc_basename in
8585   nvcc*)
8586     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8587   *)
8588     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8589   esac
8590
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8592 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8593 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8594   $as_echo_n "(cached) " >&6
8595 else
8596   lt_cv_prog_compiler_rtti_exceptions=no
8597    ac_outfile=conftest.$ac_objext
8598    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8600    # Insert the option either (1) after the last *FLAGS variable, or
8601    # (2) before a word containing "conftest.", or (3) at the end.
8602    # Note that $ac_compile itself does not contain backslashes and begins
8603    # with a dollar sign (not a hyphen), so the echo should work correctly.
8604    # The option is referenced via a variable to avoid confusing sed.
8605    lt_compile=`echo "$ac_compile" | $SED \
8606    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8607    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8608    -e 's:$: $lt_compiler_flag:'`
8609    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8610    (eval "$lt_compile" 2>conftest.err)
8611    ac_status=$?
8612    cat conftest.err >&5
8613    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614    if (exit $ac_status) && test -s "$ac_outfile"; then
8615      # The compiler can only warn and ignore the option if not recognized
8616      # So say no if there are warnings other than the usual output.
8617      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8618      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8619      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8620        lt_cv_prog_compiler_rtti_exceptions=yes
8621      fi
8622    fi
8623    $RM conftest*
8624
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8627 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8628
8629 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8630     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8631 else
8632     :
8633 fi
8634
8635 fi
8636
8637
8638
8639
8640
8641
8642   lt_prog_compiler_wl=
8643 lt_prog_compiler_pic=
8644 lt_prog_compiler_static=
8645
8646
8647   if test yes = "$GCC"; then
8648     lt_prog_compiler_wl='-Wl,'
8649     lt_prog_compiler_static='-static'
8650
8651     case $host_os in
8652       aix*)
8653       # All AIX code is PIC.
8654       if test ia64 = "$host_cpu"; then
8655         # AIX 5 now supports IA64 processor
8656         lt_prog_compiler_static='-Bstatic'
8657       fi
8658       lt_prog_compiler_pic='-fPIC'
8659       ;;
8660
8661     amigaos*)
8662       case $host_cpu in
8663       powerpc)
8664             # see comment about AmigaOS4 .so support
8665             lt_prog_compiler_pic='-fPIC'
8666         ;;
8667       m68k)
8668             # FIXME: we need at least 68020 code to build shared libraries, but
8669             # adding the '-m68020' flag to GCC prevents building anything better,
8670             # like '-m68040'.
8671             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8672         ;;
8673       esac
8674       ;;
8675
8676     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8677       # PIC is the default for these OSes.
8678       ;;
8679
8680     mingw* | cygwin* | pw32* | os2* | cegcc*)
8681       # This hack is so that the source file can tell whether it is being
8682       # built for inclusion in a dll (and should export symbols for example).
8683       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8684       # (--disable-auto-import) libraries
8685       lt_prog_compiler_pic='-DDLL_EXPORT'
8686       case $host_os in
8687       os2*)
8688         lt_prog_compiler_static='$wl-static'
8689         ;;
8690       esac
8691       ;;
8692
8693     darwin* | rhapsody*)
8694       # PIC is the default on this platform
8695       # Common symbols not allowed in MH_DYLIB files
8696       lt_prog_compiler_pic='-fno-common'
8697       ;;
8698
8699     haiku*)
8700       # PIC is the default for Haiku.
8701       # The "-static" flag exists, but is broken.
8702       lt_prog_compiler_static=
8703       ;;
8704
8705     hpux*)
8706       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8707       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8708       # sets the default TLS model and affects inlining.
8709       case $host_cpu in
8710       hppa*64*)
8711         # +Z the default
8712         ;;
8713       *)
8714         lt_prog_compiler_pic='-fPIC'
8715         ;;
8716       esac
8717       ;;
8718
8719     interix[3-9]*)
8720       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8721       # Instead, we relocate shared libraries at runtime.
8722       ;;
8723
8724     msdosdjgpp*)
8725       # Just because we use GCC doesn't mean we suddenly get shared libraries
8726       # on systems that don't support them.
8727       lt_prog_compiler_can_build_shared=no
8728       enable_shared=no
8729       ;;
8730
8731     *nto* | *qnx*)
8732       # QNX uses GNU C++, but need to define -shared option too, otherwise
8733       # it will coredump.
8734       lt_prog_compiler_pic='-fPIC -shared'
8735       ;;
8736
8737     sysv4*MP*)
8738       if test -d /usr/nec; then
8739         lt_prog_compiler_pic=-Kconform_pic
8740       fi
8741       ;;
8742
8743     *)
8744       lt_prog_compiler_pic='-fPIC'
8745       ;;
8746     esac
8747
8748     case $cc_basename in
8749     nvcc*) # Cuda Compiler Driver 2.2
8750       lt_prog_compiler_wl='-Xlinker '
8751       if test -n "$lt_prog_compiler_pic"; then
8752         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8753       fi
8754       ;;
8755     esac
8756   else
8757     # PORTME Check for flag to pass linker flags through the system compiler.
8758     case $host_os in
8759     aix*)
8760       lt_prog_compiler_wl='-Wl,'
8761       if test ia64 = "$host_cpu"; then
8762         # AIX 5 now supports IA64 processor
8763         lt_prog_compiler_static='-Bstatic'
8764       else
8765         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8766       fi
8767       ;;
8768
8769     darwin* | rhapsody*)
8770       # PIC is the default on this platform
8771       # Common symbols not allowed in MH_DYLIB files
8772       lt_prog_compiler_pic='-fno-common'
8773       case $cc_basename in
8774       nagfor*)
8775         # NAG Fortran compiler
8776         lt_prog_compiler_wl='-Wl,-Wl,,'
8777         lt_prog_compiler_pic='-PIC'
8778         lt_prog_compiler_static='-Bstatic'
8779         ;;
8780       esac
8781       ;;
8782
8783     mingw* | cygwin* | pw32* | os2* | cegcc*)
8784       # This hack is so that the source file can tell whether it is being
8785       # built for inclusion in a dll (and should export symbols for example).
8786       lt_prog_compiler_pic='-DDLL_EXPORT'
8787       case $host_os in
8788       os2*)
8789         lt_prog_compiler_static='$wl-static'
8790         ;;
8791       esac
8792       ;;
8793
8794     hpux9* | hpux10* | hpux11*)
8795       lt_prog_compiler_wl='-Wl,'
8796       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8797       # not for PA HP-UX.
8798       case $host_cpu in
8799       hppa*64*|ia64*)
8800         # +Z the default
8801         ;;
8802       *)
8803         lt_prog_compiler_pic='+Z'
8804         ;;
8805       esac
8806       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8807       lt_prog_compiler_static='$wl-a ${wl}archive'
8808       ;;
8809
8810     irix5* | irix6* | nonstopux*)
8811       lt_prog_compiler_wl='-Wl,'
8812       # PIC (with -KPIC) is the default.
8813       lt_prog_compiler_static='-non_shared'
8814       ;;
8815
8816     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8817       case $cc_basename in
8818       # old Intel for x86_64, which still supported -KPIC.
8819       ecc*)
8820         lt_prog_compiler_wl='-Wl,'
8821         lt_prog_compiler_pic='-KPIC'
8822         lt_prog_compiler_static='-static'
8823         ;;
8824       # icc used to be incompatible with GCC.
8825       # ICC 10 doesn't accept -KPIC any more.
8826       icc* | ifort*)
8827         lt_prog_compiler_wl='-Wl,'
8828         lt_prog_compiler_pic='-fPIC'
8829         lt_prog_compiler_static='-static'
8830         ;;
8831       # Lahey Fortran 8.1.
8832       lf95*)
8833         lt_prog_compiler_wl='-Wl,'
8834         lt_prog_compiler_pic='--shared'
8835         lt_prog_compiler_static='--static'
8836         ;;
8837       nagfor*)
8838         # NAG Fortran compiler
8839         lt_prog_compiler_wl='-Wl,-Wl,,'
8840         lt_prog_compiler_pic='-PIC'
8841         lt_prog_compiler_static='-Bstatic'
8842         ;;
8843       tcc*)
8844         # Fabrice Bellard et al's Tiny C Compiler
8845         lt_prog_compiler_wl='-Wl,'
8846         lt_prog_compiler_pic='-fPIC'
8847         lt_prog_compiler_static='-static'
8848         ;;
8849       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8850         # Portland Group compilers (*not* the Pentium gcc compiler,
8851         # which looks to be a dead project)
8852         lt_prog_compiler_wl='-Wl,'
8853         lt_prog_compiler_pic='-fpic'
8854         lt_prog_compiler_static='-Bstatic'
8855         ;;
8856       ccc*)
8857         lt_prog_compiler_wl='-Wl,'
8858         # All Alpha code is PIC.
8859         lt_prog_compiler_static='-non_shared'
8860         ;;
8861       xl* | bgxl* | bgf* | mpixl*)
8862         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8863         lt_prog_compiler_wl='-Wl,'
8864         lt_prog_compiler_pic='-qpic'
8865         lt_prog_compiler_static='-qstaticlink'
8866         ;;
8867       *)
8868         case `$CC -V 2>&1 | sed 5q` in
8869         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8870           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8871           lt_prog_compiler_pic='-KPIC'
8872           lt_prog_compiler_static='-Bstatic'
8873           lt_prog_compiler_wl=''
8874           ;;
8875         *Sun\ F* | *Sun*Fortran*)
8876           lt_prog_compiler_pic='-KPIC'
8877           lt_prog_compiler_static='-Bstatic'
8878           lt_prog_compiler_wl='-Qoption ld '
8879           ;;
8880         *Sun\ C*)
8881           # Sun C 5.9
8882           lt_prog_compiler_pic='-KPIC'
8883           lt_prog_compiler_static='-Bstatic'
8884           lt_prog_compiler_wl='-Wl,'
8885           ;;
8886         *Intel*\ [CF]*Compiler*)
8887           lt_prog_compiler_wl='-Wl,'
8888           lt_prog_compiler_pic='-fPIC'
8889           lt_prog_compiler_static='-static'
8890           ;;
8891         *Portland\ Group*)
8892           lt_prog_compiler_wl='-Wl,'
8893           lt_prog_compiler_pic='-fpic'
8894           lt_prog_compiler_static='-Bstatic'
8895           ;;
8896         esac
8897         ;;
8898       esac
8899       ;;
8900
8901     newsos6)
8902       lt_prog_compiler_pic='-KPIC'
8903       lt_prog_compiler_static='-Bstatic'
8904       ;;
8905
8906     *nto* | *qnx*)
8907       # QNX uses GNU C++, but need to define -shared option too, otherwise
8908       # it will coredump.
8909       lt_prog_compiler_pic='-fPIC -shared'
8910       ;;
8911
8912     osf3* | osf4* | osf5*)
8913       lt_prog_compiler_wl='-Wl,'
8914       # All OSF/1 code is PIC.
8915       lt_prog_compiler_static='-non_shared'
8916       ;;
8917
8918     rdos*)
8919       lt_prog_compiler_static='-non_shared'
8920       ;;
8921
8922     solaris*)
8923       lt_prog_compiler_pic='-KPIC'
8924       lt_prog_compiler_static='-Bstatic'
8925       case $cc_basename in
8926       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8927         lt_prog_compiler_wl='-Qoption ld ';;
8928       *)
8929         lt_prog_compiler_wl='-Wl,';;
8930       esac
8931       ;;
8932
8933     sunos4*)
8934       lt_prog_compiler_wl='-Qoption ld '
8935       lt_prog_compiler_pic='-PIC'
8936       lt_prog_compiler_static='-Bstatic'
8937       ;;
8938
8939     sysv4 | sysv4.2uw2* | sysv4.3*)
8940       lt_prog_compiler_wl='-Wl,'
8941       lt_prog_compiler_pic='-KPIC'
8942       lt_prog_compiler_static='-Bstatic'
8943       ;;
8944
8945     sysv4*MP*)
8946       if test -d /usr/nec; then
8947         lt_prog_compiler_pic='-Kconform_pic'
8948         lt_prog_compiler_static='-Bstatic'
8949       fi
8950       ;;
8951
8952     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8953       lt_prog_compiler_wl='-Wl,'
8954       lt_prog_compiler_pic='-KPIC'
8955       lt_prog_compiler_static='-Bstatic'
8956       ;;
8957
8958     unicos*)
8959       lt_prog_compiler_wl='-Wl,'
8960       lt_prog_compiler_can_build_shared=no
8961       ;;
8962
8963     uts4*)
8964       lt_prog_compiler_pic='-pic'
8965       lt_prog_compiler_static='-Bstatic'
8966       ;;
8967
8968     *)
8969       lt_prog_compiler_can_build_shared=no
8970       ;;
8971     esac
8972   fi
8973
8974 case $host_os in
8975   # For platforms that do not support PIC, -DPIC is meaningless:
8976   *djgpp*)
8977     lt_prog_compiler_pic=
8978     ;;
8979   *)
8980     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8981     ;;
8982 esac
8983
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8986 if ${lt_cv_prog_compiler_pic+:} false; then :
8987   $as_echo_n "(cached) " >&6
8988 else
8989   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8990 fi
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8992 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8993 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8994
8995 #
8996 # Check to make sure the PIC flag actually works.
8997 #
8998 if test -n "$lt_prog_compiler_pic"; then
8999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9000 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9001 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9002   $as_echo_n "(cached) " >&6
9003 else
9004   lt_cv_prog_compiler_pic_works=no
9005    ac_outfile=conftest.$ac_objext
9006    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9008    # Insert the option either (1) after the last *FLAGS variable, or
9009    # (2) before a word containing "conftest.", or (3) at the end.
9010    # Note that $ac_compile itself does not contain backslashes and begins
9011    # with a dollar sign (not a hyphen), so the echo should work correctly.
9012    # The option is referenced via a variable to avoid confusing sed.
9013    lt_compile=`echo "$ac_compile" | $SED \
9014    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9015    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9016    -e 's:$: $lt_compiler_flag:'`
9017    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9018    (eval "$lt_compile" 2>conftest.err)
9019    ac_status=$?
9020    cat conftest.err >&5
9021    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022    if (exit $ac_status) && test -s "$ac_outfile"; then
9023      # The compiler can only warn and ignore the option if not recognized
9024      # So say no if there are warnings other than the usual output.
9025      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9026      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9027      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9028        lt_cv_prog_compiler_pic_works=yes
9029      fi
9030    fi
9031    $RM conftest*
9032
9033 fi
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9035 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9036
9037 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9038     case $lt_prog_compiler_pic in
9039      "" | " "*) ;;
9040      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9041      esac
9042 else
9043     lt_prog_compiler_pic=
9044      lt_prog_compiler_can_build_shared=no
9045 fi
9046
9047 fi
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059 #
9060 # Check to make sure the static flag actually works.
9061 #
9062 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9064 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9065 if ${lt_cv_prog_compiler_static_works+:} false; then :
9066   $as_echo_n "(cached) " >&6
9067 else
9068   lt_cv_prog_compiler_static_works=no
9069    save_LDFLAGS=$LDFLAGS
9070    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9071    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9072    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9073      # The linker can only warn and ignore the option if not recognized
9074      # So say no if there are warnings
9075      if test -s conftest.err; then
9076        # Append any errors to the config.log.
9077        cat conftest.err 1>&5
9078        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9079        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9080        if diff conftest.exp conftest.er2 >/dev/null; then
9081          lt_cv_prog_compiler_static_works=yes
9082        fi
9083      else
9084        lt_cv_prog_compiler_static_works=yes
9085      fi
9086    fi
9087    $RM -r conftest*
9088    LDFLAGS=$save_LDFLAGS
9089
9090 fi
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9092 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9093
9094 if test yes = "$lt_cv_prog_compiler_static_works"; then
9095     :
9096 else
9097     lt_prog_compiler_static=
9098 fi
9099
9100
9101
9102
9103
9104
9105
9106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9107 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9108 if ${lt_cv_prog_compiler_c_o+:} false; then :
9109   $as_echo_n "(cached) " >&6
9110 else
9111   lt_cv_prog_compiler_c_o=no
9112    $RM -r conftest 2>/dev/null
9113    mkdir conftest
9114    cd conftest
9115    mkdir out
9116    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117
9118    lt_compiler_flag="-o out/conftest2.$ac_objext"
9119    # Insert the option either (1) after the last *FLAGS variable, or
9120    # (2) before a word containing "conftest.", or (3) at the end.
9121    # Note that $ac_compile itself does not contain backslashes and begins
9122    # with a dollar sign (not a hyphen), so the echo should work correctly.
9123    lt_compile=`echo "$ac_compile" | $SED \
9124    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126    -e 's:$: $lt_compiler_flag:'`
9127    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9128    (eval "$lt_compile" 2>out/conftest.err)
9129    ac_status=$?
9130    cat out/conftest.err >&5
9131    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9133    then
9134      # The compiler can only warn and ignore the option if not recognized
9135      # So say no if there are warnings
9136      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9137      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9138      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9139        lt_cv_prog_compiler_c_o=yes
9140      fi
9141    fi
9142    chmod u+w . 2>&5
9143    $RM conftest*
9144    # SGI C++ compiler will create directory out/ii_files/ for
9145    # template instantiation
9146    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9147    $RM out/* && rmdir out
9148    cd ..
9149    $RM -r conftest
9150    $RM conftest*
9151
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9154 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9155
9156
9157
9158
9159
9160
9161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9162 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9163 if ${lt_cv_prog_compiler_c_o+:} false; then :
9164   $as_echo_n "(cached) " >&6
9165 else
9166   lt_cv_prog_compiler_c_o=no
9167    $RM -r conftest 2>/dev/null
9168    mkdir conftest
9169    cd conftest
9170    mkdir out
9171    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9172
9173    lt_compiler_flag="-o out/conftest2.$ac_objext"
9174    # Insert the option either (1) after the last *FLAGS variable, or
9175    # (2) before a word containing "conftest.", or (3) at the end.
9176    # Note that $ac_compile itself does not contain backslashes and begins
9177    # with a dollar sign (not a hyphen), so the echo should work correctly.
9178    lt_compile=`echo "$ac_compile" | $SED \
9179    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9180    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9181    -e 's:$: $lt_compiler_flag:'`
9182    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9183    (eval "$lt_compile" 2>out/conftest.err)
9184    ac_status=$?
9185    cat out/conftest.err >&5
9186    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9188    then
9189      # The compiler can only warn and ignore the option if not recognized
9190      # So say no if there are warnings
9191      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9192      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9193      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9194        lt_cv_prog_compiler_c_o=yes
9195      fi
9196    fi
9197    chmod u+w . 2>&5
9198    $RM conftest*
9199    # SGI C++ compiler will create directory out/ii_files/ for
9200    # template instantiation
9201    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9202    $RM out/* && rmdir out
9203    cd ..
9204    $RM -r conftest
9205    $RM conftest*
9206
9207 fi
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9209 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9210
9211
9212
9213
9214 hard_links=nottested
9215 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9216   # do not overwrite the value of need_locks provided by the user
9217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9218 $as_echo_n "checking if we can lock with hard links... " >&6; }
9219   hard_links=yes
9220   $RM conftest*
9221   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9222   touch conftest.a
9223   ln conftest.a conftest.b 2>&5 || hard_links=no
9224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9226 $as_echo "$hard_links" >&6; }
9227   if test no = "$hard_links"; then
9228     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9229 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9230     need_locks=warn
9231   fi
9232 else
9233   need_locks=no
9234 fi
9235
9236
9237
9238
9239
9240
9241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9242 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9243
9244   runpath_var=
9245   allow_undefined_flag=
9246   always_export_symbols=no
9247   archive_cmds=
9248   archive_expsym_cmds=
9249   compiler_needs_object=no
9250   enable_shared_with_static_runtimes=no
9251   export_dynamic_flag_spec=
9252   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9253   hardcode_automatic=no
9254   hardcode_direct=no
9255   hardcode_direct_absolute=no
9256   hardcode_libdir_flag_spec=
9257   hardcode_libdir_separator=
9258   hardcode_minus_L=no
9259   hardcode_shlibpath_var=unsupported
9260   inherit_rpath=no
9261   link_all_deplibs=unknown
9262   module_cmds=
9263   module_expsym_cmds=
9264   old_archive_from_new_cmds=
9265   old_archive_from_expsyms_cmds=
9266   thread_safe_flag_spec=
9267   whole_archive_flag_spec=
9268   # include_expsyms should be a list of space-separated symbols to be *always*
9269   # included in the symbol list
9270   include_expsyms=
9271   # exclude_expsyms can be an extended regexp of symbols to exclude
9272   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9273   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9274   # as well as any symbol that contains 'd'.
9275   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9276   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9277   # platforms (ab)use it in PIC code, but their linkers get confused if
9278   # the symbol is explicitly referenced.  Since portable code cannot
9279   # rely on this symbol name, it's probably fine to never include it in
9280   # preloaded symbol tables.
9281   # Exclude shared library initialization/finalization symbols.
9282   extract_expsyms_cmds=
9283
9284   case $host_os in
9285   cygwin* | mingw* | pw32* | cegcc*)
9286     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9287     # When not using gcc, we currently assume that we are using
9288     # Microsoft Visual C++.
9289     if test yes != "$GCC"; then
9290       with_gnu_ld=no
9291     fi
9292     ;;
9293   interix*)
9294     # we just hope/assume this is gcc and not c89 (= MSVC++)
9295     with_gnu_ld=yes
9296     ;;
9297   openbsd* | bitrig*)
9298     with_gnu_ld=no
9299     ;;
9300   esac
9301
9302   ld_shlibs=yes
9303
9304   # On some targets, GNU ld is compatible enough with the native linker
9305   # that we're better off using the native interface for both.
9306   lt_use_gnu_ld_interface=no
9307   if test yes = "$with_gnu_ld"; then
9308     case $host_os in
9309       aix*)
9310         # The AIX port of GNU ld has always aspired to compatibility
9311         # with the native linker.  However, as the warning in the GNU ld
9312         # block says, versions before 2.19.5* couldn't really create working
9313         # shared libraries, regardless of the interface used.
9314         case `$LD -v 2>&1` in
9315           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9316           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9317           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9318           *)
9319             lt_use_gnu_ld_interface=yes
9320             ;;
9321         esac
9322         ;;
9323       *)
9324         lt_use_gnu_ld_interface=yes
9325         ;;
9326     esac
9327   fi
9328
9329   if test yes = "$lt_use_gnu_ld_interface"; then
9330     # If archive_cmds runs LD, not CC, wlarc should be empty
9331     wlarc='$wl'
9332
9333     # Set some defaults for GNU ld with shared library support. These
9334     # are reset later if shared libraries are not supported. Putting them
9335     # here allows them to be overridden if necessary.
9336     runpath_var=LD_RUN_PATH
9337     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9338     export_dynamic_flag_spec='$wl--export-dynamic'
9339     # ancient GNU ld didn't support --whole-archive et. al.
9340     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9341       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9342     else
9343       whole_archive_flag_spec=
9344     fi
9345     supports_anon_versioning=no
9346     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9347       *GNU\ gold*) supports_anon_versioning=yes ;;
9348       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9349       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9350       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9351       *\ 2.11.*) ;; # other 2.11 versions
9352       *) supports_anon_versioning=yes ;;
9353     esac
9354
9355     # See if GNU ld supports shared libraries.
9356     case $host_os in
9357     aix[3-9]*)
9358       # On AIX/PPC, the GNU linker is very broken
9359       if test ia64 != "$host_cpu"; then
9360         ld_shlibs=no
9361         cat <<_LT_EOF 1>&2
9362
9363 *** Warning: the GNU linker, at least up to release 2.19, is reported
9364 *** to be unable to reliably create shared libraries on AIX.
9365 *** Therefore, libtool is disabling shared libraries support.  If you
9366 *** really care for shared libraries, you may want to install binutils
9367 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9368 *** You will then need to restart the configuration process.
9369
9370 _LT_EOF
9371       fi
9372       ;;
9373
9374     amigaos*)
9375       case $host_cpu in
9376       powerpc)
9377             # see comment about AmigaOS4 .so support
9378             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9379             archive_expsym_cmds=''
9380         ;;
9381       m68k)
9382             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)'
9383             hardcode_libdir_flag_spec='-L$libdir'
9384             hardcode_minus_L=yes
9385         ;;
9386       esac
9387       ;;
9388
9389     beos*)
9390       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9391         allow_undefined_flag=unsupported
9392         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9393         # support --undefined.  This deserves some investigation.  FIXME
9394         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9395       else
9396         ld_shlibs=no
9397       fi
9398       ;;
9399
9400     cygwin* | mingw* | pw32* | cegcc*)
9401       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9402       # as there is no search path for DLLs.
9403       hardcode_libdir_flag_spec='-L$libdir'
9404       export_dynamic_flag_spec='$wl--export-all-symbols'
9405       allow_undefined_flag=unsupported
9406       always_export_symbols=no
9407       enable_shared_with_static_runtimes=yes
9408       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'
9409       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9410
9411       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9412         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9413         # If the export-symbols file already is a .def file, use it as
9414         # is; otherwise, prepend EXPORTS...
9415         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9416           cp $export_symbols $output_objdir/$soname.def;
9417         else
9418           echo EXPORTS > $output_objdir/$soname.def;
9419           cat $export_symbols >> $output_objdir/$soname.def;
9420         fi~
9421         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9422       else
9423         ld_shlibs=no
9424       fi
9425       ;;
9426
9427     haiku*)
9428       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9429       link_all_deplibs=yes
9430       ;;
9431
9432     os2*)
9433       hardcode_libdir_flag_spec='-L$libdir'
9434       hardcode_minus_L=yes
9435       allow_undefined_flag=unsupported
9436       shrext_cmds=.dll
9437       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9438         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9439         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9440         $ECHO EXPORTS >> $output_objdir/$libname.def~
9441         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9442         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9443         emximp -o $lib $output_objdir/$libname.def'
9444       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9445         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9446         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9447         $ECHO EXPORTS >> $output_objdir/$libname.def~
9448         prefix_cmds="$SED"~
9449         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9450           prefix_cmds="$prefix_cmds -e 1d";
9451         fi~
9452         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9453         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9454         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9455         emximp -o $lib $output_objdir/$libname.def'
9456       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9457       enable_shared_with_static_runtimes=yes
9458       ;;
9459
9460     interix[3-9]*)
9461       hardcode_direct=no
9462       hardcode_shlibpath_var=no
9463       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9464       export_dynamic_flag_spec='$wl-E'
9465       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9466       # Instead, shared libraries are loaded at an image base (0x10000000 by
9467       # default) and relocated if they conflict, which is a slow very memory
9468       # consuming and fragmenting process.  To avoid this, we pick a random,
9469       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9470       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9471       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9472       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'
9473       ;;
9474
9475     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9476       tmp_diet=no
9477       if test linux-dietlibc = "$host_os"; then
9478         case $cc_basename in
9479           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9480         esac
9481       fi
9482       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9483          && test no = "$tmp_diet"
9484       then
9485         tmp_addflag=' $pic_flag'
9486         tmp_sharedflag='-shared'
9487         case $cc_basename,$host_cpu in
9488         pgcc*)                          # Portland Group C compiler
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'
9491           ;;
9492         pgf77* | pgf90* | pgf95* | pgfortran*)
9493                                         # Portland Group f77 and f90 compilers
9494           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'
9495           tmp_addflag=' $pic_flag -Mnomain' ;;
9496         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9497           tmp_addflag=' -i_dynamic' ;;
9498         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9499           tmp_addflag=' -i_dynamic -nofor_main' ;;
9500         ifc* | ifort*)                  # Intel Fortran compiler
9501           tmp_addflag=' -nofor_main' ;;
9502         lf95*)                          # Lahey Fortran 8.1
9503           whole_archive_flag_spec=
9504           tmp_sharedflag='--shared' ;;
9505         nagfor*)                        # NAGFOR 5.3
9506           tmp_sharedflag='-Wl,-shared' ;;
9507         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9508           tmp_sharedflag='-qmkshrobj'
9509           tmp_addflag= ;;
9510         nvcc*)  # Cuda Compiler Driver 2.2
9511           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'
9512           compiler_needs_object=yes
9513           ;;
9514         esac
9515         case `$CC -V 2>&1 | sed 5q` in
9516         *Sun\ C*)                       # Sun C 5.9
9517           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'
9518           compiler_needs_object=yes
9519           tmp_sharedflag='-G' ;;
9520         *Sun\ F*)                       # Sun Fortran 8.3
9521           tmp_sharedflag='-G' ;;
9522         esac
9523         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9524
9525         if test yes = "$supports_anon_versioning"; then
9526           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9527             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9528             echo "local: *; };" >> $output_objdir/$libname.ver~
9529             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9530         fi
9531
9532         case $cc_basename in
9533         tcc*)
9534           export_dynamic_flag_spec='-rdynamic'
9535           ;;
9536         xlf* | bgf* | bgxlf* | mpixlf*)
9537           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9538           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9539           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9540           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9541           if test yes = "$supports_anon_versioning"; then
9542             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9543               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9544               echo "local: *; };" >> $output_objdir/$libname.ver~
9545               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9546           fi
9547           ;;
9548         esac
9549       else
9550         ld_shlibs=no
9551       fi
9552       ;;
9553
9554     netbsd*)
9555       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9556         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9557         wlarc=
9558       else
9559         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9560         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9561       fi
9562       ;;
9563
9564     solaris*)
9565       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9566         ld_shlibs=no
9567         cat <<_LT_EOF 1>&2
9568
9569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9570 *** create shared libraries on Solaris systems.  Therefore, libtool
9571 *** is disabling shared libraries support.  We urge you to upgrade GNU
9572 *** binutils to release 2.9.1 or newer.  Another option is to modify
9573 *** your PATH or compiler configuration so that the native linker is
9574 *** used, and then restart.
9575
9576 _LT_EOF
9577       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9578         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9579         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9580       else
9581         ld_shlibs=no
9582       fi
9583       ;;
9584
9585     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9586       case `$LD -v 2>&1` in
9587         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9588         ld_shlibs=no
9589         cat <<_LT_EOF 1>&2
9590
9591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9592 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9593 *** is disabling shared libraries support.  We urge you to upgrade GNU
9594 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9595 *** your PATH or compiler configuration so that the native linker is
9596 *** used, and then restart.
9597
9598 _LT_EOF
9599         ;;
9600         *)
9601           # For security reasons, it is highly recommended that you always
9602           # use absolute paths for naming shared libraries, and exclude the
9603           # DT_RUNPATH tag from executables and libraries.  But doing so
9604           # requires that you compile everything twice, which is a pain.
9605           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9606             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9607             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9608             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9609           else
9610             ld_shlibs=no
9611           fi
9612         ;;
9613       esac
9614       ;;
9615
9616     sunos4*)
9617       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618       wlarc=
9619       hardcode_direct=yes
9620       hardcode_shlibpath_var=no
9621       ;;
9622
9623     *)
9624       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9625         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9626         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9627       else
9628         ld_shlibs=no
9629       fi
9630       ;;
9631     esac
9632
9633     if test no = "$ld_shlibs"; then
9634       runpath_var=
9635       hardcode_libdir_flag_spec=
9636       export_dynamic_flag_spec=
9637       whole_archive_flag_spec=
9638     fi
9639   else
9640     # PORTME fill in a description of your system's linker (not GNU ld)
9641     case $host_os in
9642     aix3*)
9643       allow_undefined_flag=unsupported
9644       always_export_symbols=yes
9645       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'
9646       # Note: this linker hardcodes the directories in LIBPATH if there
9647       # are no directories specified by -L.
9648       hardcode_minus_L=yes
9649       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9650         # Neither direct hardcoding nor static linking is supported with a
9651         # broken collect2.
9652         hardcode_direct=unsupported
9653       fi
9654       ;;
9655
9656     aix[4-9]*)
9657       if test ia64 = "$host_cpu"; then
9658         # On IA64, the linker does run time linking by default, so we don't
9659         # have to do anything special.
9660         aix_use_runtimelinking=no
9661         exp_sym_flag='-Bexport'
9662         no_entry_flag=
9663       else
9664         # If we're using GNU nm, then we don't want the "-C" option.
9665         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9666         # Without the "-l" option, or with the "-B" option, AIX nm treats
9667         # weak defined symbols like other global defined symbols, whereas
9668         # GNU nm marks them as "W".
9669         # While the 'weak' keyword is ignored in the Export File, we need
9670         # it in the Import File for the 'aix-soname' feature, so we have
9671         # to replace the "-B" option with "-P" for AIX nm.
9672         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9673           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'
9674         else
9675           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'
9676         fi
9677         aix_use_runtimelinking=no
9678
9679         # Test if we are trying to use run time linking or normal
9680         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9681         # have runtime linking enabled, and use it for executables.
9682         # For shared libraries, we enable/disable runtime linking
9683         # depending on the kind of the shared library created -
9684         # when "with_aix_soname,aix_use_runtimelinking" is:
9685         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9686         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9687         #            lib.a           static archive
9688         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9689         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9690         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9691         #            lib.a(lib.so.V) shared, rtl:no
9692         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9693         #            lib.a           static archive
9694         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9695           for ld_flag in $LDFLAGS; do
9696           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9697             aix_use_runtimelinking=yes
9698             break
9699           fi
9700           done
9701           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9702             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9703             # so we don't have lib.a shared libs to link our executables.
9704             # We have to force runtime linking in this case.
9705             aix_use_runtimelinking=yes
9706             LDFLAGS="$LDFLAGS -Wl,-brtl"
9707           fi
9708           ;;
9709         esac
9710
9711         exp_sym_flag='-bexport'
9712         no_entry_flag='-bnoentry'
9713       fi
9714
9715       # When large executables or shared objects are built, AIX ld can
9716       # have problems creating the table of contents.  If linking a library
9717       # or program results in "error TOC overflow" add -mminimal-toc to
9718       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9719       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9720
9721       archive_cmds=''
9722       hardcode_direct=yes
9723       hardcode_direct_absolute=yes
9724       hardcode_libdir_separator=':'
9725       link_all_deplibs=yes
9726       file_list_spec='$wl-f,'
9727       case $with_aix_soname,$aix_use_runtimelinking in
9728       aix,*) ;; # traditional, no import file
9729       svr4,* | *,yes) # use import file
9730         # The Import File defines what to hardcode.
9731         hardcode_direct=no
9732         hardcode_direct_absolute=no
9733         ;;
9734       esac
9735
9736       if test yes = "$GCC"; then
9737         case $host_os in aix4.[012]|aix4.[012].*)
9738         # We only want to do this on AIX 4.2 and lower, the check
9739         # below for broken collect2 doesn't work under 4.3+
9740           collect2name=`$CC -print-prog-name=collect2`
9741           if test -f "$collect2name" &&
9742            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9743           then
9744           # We have reworked collect2
9745           :
9746           else
9747           # We have old collect2
9748           hardcode_direct=unsupported
9749           # It fails to find uninstalled libraries when the uninstalled
9750           # path is not listed in the libpath.  Setting hardcode_minus_L
9751           # to unsupported forces relinking
9752           hardcode_minus_L=yes
9753           hardcode_libdir_flag_spec='-L$libdir'
9754           hardcode_libdir_separator=
9755           fi
9756           ;;
9757         esac
9758         shared_flag='-shared'
9759         if test yes = "$aix_use_runtimelinking"; then
9760           shared_flag="$shared_flag "'$wl-G'
9761         fi
9762         # Need to ensure runtime linking is disabled for the traditional
9763         # shared library, or the linker may eventually find shared libraries
9764         # /with/ Import File - we do not want to mix them.
9765         shared_flag_aix='-shared'
9766         shared_flag_svr4='-shared $wl-G'
9767       else
9768         # not using gcc
9769         if test ia64 = "$host_cpu"; then
9770         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9771         # chokes on -Wl,-G. The following line is correct:
9772           shared_flag='-G'
9773         else
9774           if test yes = "$aix_use_runtimelinking"; then
9775             shared_flag='$wl-G'
9776           else
9777             shared_flag='$wl-bM:SRE'
9778           fi
9779           shared_flag_aix='$wl-bM:SRE'
9780           shared_flag_svr4='$wl-G'
9781         fi
9782       fi
9783
9784       export_dynamic_flag_spec='$wl-bexpall'
9785       # It seems that -bexpall does not export symbols beginning with
9786       # underscore (_), so it is better to generate a list of symbols to export.
9787       always_export_symbols=yes
9788       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9789         # Warning - without using the other runtime loading flags (-brtl),
9790         # -berok will link without error, but may produce a broken library.
9791         allow_undefined_flag='-berok'
9792         # Determine the default libpath from the value encoded in an
9793         # empty executable.
9794         if test set = "${lt_cv_aix_libpath+set}"; then
9795   aix_libpath=$lt_cv_aix_libpath
9796 else
9797   if ${lt_cv_aix_libpath_+:} false; then :
9798   $as_echo_n "(cached) " >&6
9799 else
9800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h.  */
9802
9803 int
9804 main ()
9805 {
9806
9807   ;
9808   return 0;
9809 }
9810 _ACEOF
9811 if ac_fn_c_try_link "$LINENO"; then :
9812
9813   lt_aix_libpath_sed='
9814       /Import File Strings/,/^$/ {
9815           /^0/ {
9816               s/^0  *\([^ ]*\) *$/\1/
9817               p
9818           }
9819       }'
9820   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9821   # Check for a 64-bit object if we didn't find anything.
9822   if test -z "$lt_cv_aix_libpath_"; then
9823     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9824   fi
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext \
9827     conftest$ac_exeext conftest.$ac_ext
9828   if test -z "$lt_cv_aix_libpath_"; then
9829     lt_cv_aix_libpath_=/usr/lib:/lib
9830   fi
9831
9832 fi
9833
9834   aix_libpath=$lt_cv_aix_libpath_
9835 fi
9836
9837         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9838         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
9839       else
9840         if test ia64 = "$host_cpu"; then
9841           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9842           allow_undefined_flag="-z nodefs"
9843           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"
9844         else
9845          # Determine the default libpath from the value encoded in an
9846          # empty executable.
9847          if test set = "${lt_cv_aix_libpath+set}"; then
9848   aix_libpath=$lt_cv_aix_libpath
9849 else
9850   if ${lt_cv_aix_libpath_+:} false; then :
9851   $as_echo_n "(cached) " >&6
9852 else
9853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h.  */
9855
9856 int
9857 main ()
9858 {
9859
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 if ac_fn_c_try_link "$LINENO"; then :
9865
9866   lt_aix_libpath_sed='
9867       /Import File Strings/,/^$/ {
9868           /^0/ {
9869               s/^0  *\([^ ]*\) *$/\1/
9870               p
9871           }
9872       }'
9873   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9874   # Check for a 64-bit object if we didn't find anything.
9875   if test -z "$lt_cv_aix_libpath_"; then
9876     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9877   fi
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext \
9880     conftest$ac_exeext conftest.$ac_ext
9881   if test -z "$lt_cv_aix_libpath_"; then
9882     lt_cv_aix_libpath_=/usr/lib:/lib
9883   fi
9884
9885 fi
9886
9887   aix_libpath=$lt_cv_aix_libpath_
9888 fi
9889
9890          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9891           # Warning - without using the other run time loading flags,
9892           # -berok will link without error, but may produce a broken library.
9893           no_undefined_flag=' $wl-bernotok'
9894           allow_undefined_flag=' $wl-berok'
9895           if test yes = "$with_gnu_ld"; then
9896             # We only use this code for GNU lds that support --whole-archive.
9897             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9898           else
9899             # Exported symbols can be pulled into shared objects from archives
9900             whole_archive_flag_spec='$convenience'
9901           fi
9902           archive_cmds_need_lc=yes
9903           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9904           # -brtl affects multiple linker settings, -berok does not and is overridden later
9905           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9906           if test svr4 != "$with_aix_soname"; then
9907             # This is similar to how AIX traditionally builds its shared libraries.
9908             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'
9909           fi
9910           if test aix != "$with_aix_soname"; then
9911             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'
9912           else
9913             # used by -dlpreopen to get the symbols
9914             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9915           fi
9916           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9917         fi
9918       fi
9919       ;;
9920
9921     amigaos*)
9922       case $host_cpu in
9923       powerpc)
9924             # see comment about AmigaOS4 .so support
9925             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9926             archive_expsym_cmds=''
9927         ;;
9928       m68k)
9929             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)'
9930             hardcode_libdir_flag_spec='-L$libdir'
9931             hardcode_minus_L=yes
9932         ;;
9933       esac
9934       ;;
9935
9936     bsdi[45]*)
9937       export_dynamic_flag_spec=-rdynamic
9938       ;;
9939
9940     cygwin* | mingw* | pw32* | cegcc*)
9941       # When not using gcc, we currently assume that we are using
9942       # Microsoft Visual C++.
9943       # hardcode_libdir_flag_spec is actually meaningless, as there is
9944       # no search path for DLLs.
9945       case $cc_basename in
9946       cl*)
9947         # Native MSVC
9948         hardcode_libdir_flag_spec=' '
9949         allow_undefined_flag=unsupported
9950         always_export_symbols=yes
9951         file_list_spec='@'
9952         # Tell ltmain to make .lib files, not .a files.
9953         libext=lib
9954         # Tell ltmain to make .dll files, not .so files.
9955         shrext_cmds=.dll
9956         # FIXME: Setting linknames here is a bad hack.
9957         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9958         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9959             cp "$export_symbols" "$output_objdir/$soname.def";
9960             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9961           else
9962             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9963           fi~
9964           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9965           linknames='
9966         # The linker will not automatically build a static lib if we build a DLL.
9967         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9968         enable_shared_with_static_runtimes=yes
9969         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9970         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9971         # Don't use ranlib
9972         old_postinstall_cmds='chmod 644 $oldlib'
9973         postlink_cmds='lt_outputfile="@OUTPUT@"~
9974           lt_tool_outputfile="@TOOL_OUTPUT@"~
9975           case $lt_outputfile in
9976             *.exe|*.EXE) ;;
9977             *)
9978               lt_outputfile=$lt_outputfile.exe
9979               lt_tool_outputfile=$lt_tool_outputfile.exe
9980               ;;
9981           esac~
9982           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9983             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9984             $RM "$lt_outputfile.manifest";
9985           fi'
9986         ;;
9987       *)
9988         # Assume MSVC wrapper
9989         hardcode_libdir_flag_spec=' '
9990         allow_undefined_flag=unsupported
9991         # Tell ltmain to make .lib files, not .a files.
9992         libext=lib
9993         # Tell ltmain to make .dll files, not .so files.
9994         shrext_cmds=.dll
9995         # FIXME: Setting linknames here is a bad hack.
9996         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9997         # The linker will automatically build a .lib file if we build a DLL.
9998         old_archive_from_new_cmds='true'
9999         # FIXME: Should let the user specify the lib program.
10000         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10001         enable_shared_with_static_runtimes=yes
10002         ;;
10003       esac
10004       ;;
10005
10006     darwin* | rhapsody*)
10007
10008
10009   archive_cmds_need_lc=no
10010   hardcode_direct=no
10011   hardcode_automatic=yes
10012   hardcode_shlibpath_var=unsupported
10013   if test yes = "$lt_cv_ld_force_load"; then
10014     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\"`'
10015
10016   else
10017     whole_archive_flag_spec=''
10018   fi
10019   link_all_deplibs=yes
10020   allow_undefined_flag=$_lt_dar_allow_undefined
10021   case $cc_basename in
10022      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10023      *) _lt_dar_can_shared=$GCC ;;
10024   esac
10025   if test yes = "$_lt_dar_can_shared"; then
10026     output_verbose_link_cmd=func_echo_all
10027     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10028     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10029     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"
10030     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"
10031
10032   else
10033   ld_shlibs=no
10034   fi
10035
10036       ;;
10037
10038     dgux*)
10039       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040       hardcode_libdir_flag_spec='-L$libdir'
10041       hardcode_shlibpath_var=no
10042       ;;
10043
10044     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10045     # support.  Future versions do this automatically, but an explicit c++rt0.o
10046     # does not break anything, and helps significantly (at the cost of a little
10047     # extra space).
10048     freebsd2.2*)
10049       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10050       hardcode_libdir_flag_spec='-R$libdir'
10051       hardcode_direct=yes
10052       hardcode_shlibpath_var=no
10053       ;;
10054
10055     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10056     freebsd2.*)
10057       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10058       hardcode_direct=yes
10059       hardcode_minus_L=yes
10060       hardcode_shlibpath_var=no
10061       ;;
10062
10063     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10064     freebsd* | dragonfly*)
10065       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10066       hardcode_libdir_flag_spec='-R$libdir'
10067       hardcode_direct=yes
10068       hardcode_shlibpath_var=no
10069       ;;
10070
10071     hpux9*)
10072       if test yes = "$GCC"; then
10073         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'
10074       else
10075         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'
10076       fi
10077       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10078       hardcode_libdir_separator=:
10079       hardcode_direct=yes
10080
10081       # hardcode_minus_L: Not really in the search PATH,
10082       # but as the default location of the library.
10083       hardcode_minus_L=yes
10084       export_dynamic_flag_spec='$wl-E'
10085       ;;
10086
10087     hpux10*)
10088       if test yes,no = "$GCC,$with_gnu_ld"; then
10089         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10090       else
10091         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10092       fi
10093       if test no = "$with_gnu_ld"; then
10094         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10095         hardcode_libdir_separator=:
10096         hardcode_direct=yes
10097         hardcode_direct_absolute=yes
10098         export_dynamic_flag_spec='$wl-E'
10099         # hardcode_minus_L: Not really in the search PATH,
10100         # but as the default location of the library.
10101         hardcode_minus_L=yes
10102       fi
10103       ;;
10104
10105     hpux11*)
10106       if test yes,no = "$GCC,$with_gnu_ld"; then
10107         case $host_cpu in
10108         hppa*64*)
10109           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10110           ;;
10111         ia64*)
10112           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10113           ;;
10114         *)
10115           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10116           ;;
10117         esac
10118       else
10119         case $host_cpu in
10120         hppa*64*)
10121           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10122           ;;
10123         ia64*)
10124           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10125           ;;
10126         *)
10127
10128           # Older versions of the 11.00 compiler do not understand -b yet
10129           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10130           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10131 $as_echo_n "checking if $CC understands -b... " >&6; }
10132 if ${lt_cv_prog_compiler__b+:} false; then :
10133   $as_echo_n "(cached) " >&6
10134 else
10135   lt_cv_prog_compiler__b=no
10136    save_LDFLAGS=$LDFLAGS
10137    LDFLAGS="$LDFLAGS -b"
10138    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10139    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10140      # The linker can only warn and ignore the option if not recognized
10141      # So say no if there are warnings
10142      if test -s conftest.err; then
10143        # Append any errors to the config.log.
10144        cat conftest.err 1>&5
10145        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10146        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10147        if diff conftest.exp conftest.er2 >/dev/null; then
10148          lt_cv_prog_compiler__b=yes
10149        fi
10150      else
10151        lt_cv_prog_compiler__b=yes
10152      fi
10153    fi
10154    $RM -r conftest*
10155    LDFLAGS=$save_LDFLAGS
10156
10157 fi
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10159 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10160
10161 if test yes = "$lt_cv_prog_compiler__b"; then
10162     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10163 else
10164     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10165 fi
10166
10167           ;;
10168         esac
10169       fi
10170       if test no = "$with_gnu_ld"; then
10171         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10172         hardcode_libdir_separator=:
10173
10174         case $host_cpu in
10175         hppa*64*|ia64*)
10176           hardcode_direct=no
10177           hardcode_shlibpath_var=no
10178           ;;
10179         *)
10180           hardcode_direct=yes
10181           hardcode_direct_absolute=yes
10182           export_dynamic_flag_spec='$wl-E'
10183
10184           # hardcode_minus_L: Not really in the search PATH,
10185           # but as the default location of the library.
10186           hardcode_minus_L=yes
10187           ;;
10188         esac
10189       fi
10190       ;;
10191
10192     irix5* | irix6* | nonstopux*)
10193       if test yes = "$GCC"; then
10194         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'
10195         # Try to use the -exported_symbol ld option, if it does not
10196         # work, assume that -exports_file does not work either and
10197         # implicitly export all symbols.
10198         # This should be the same for all languages, so no per-tag cache variable.
10199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10200 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10201 if ${lt_cv_irix_exported_symbol+:} false; then :
10202   $as_echo_n "(cached) " >&6
10203 else
10204   save_LDFLAGS=$LDFLAGS
10205            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10206            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h.  */
10208 int foo (void) { return 0; }
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211   lt_cv_irix_exported_symbol=yes
10212 else
10213   lt_cv_irix_exported_symbol=no
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext \
10216     conftest$ac_exeext conftest.$ac_ext
10217            LDFLAGS=$save_LDFLAGS
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10220 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10221         if test yes = "$lt_cv_irix_exported_symbol"; then
10222           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'
10223         fi
10224       else
10225         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'
10226         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'
10227       fi
10228       archive_cmds_need_lc='no'
10229       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10230       hardcode_libdir_separator=:
10231       inherit_rpath=yes
10232       link_all_deplibs=yes
10233       ;;
10234
10235     linux*)
10236       case $cc_basename in
10237       tcc*)
10238         # Fabrice Bellard et al's Tiny C Compiler
10239         ld_shlibs=yes
10240         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10241         ;;
10242       esac
10243       ;;
10244
10245     netbsd*)
10246       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10247         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10248       else
10249         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10250       fi
10251       hardcode_libdir_flag_spec='-R$libdir'
10252       hardcode_direct=yes
10253       hardcode_shlibpath_var=no
10254       ;;
10255
10256     newsos6)
10257       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10258       hardcode_direct=yes
10259       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10260       hardcode_libdir_separator=:
10261       hardcode_shlibpath_var=no
10262       ;;
10263
10264     *nto* | *qnx*)
10265       ;;
10266
10267     openbsd* | bitrig*)
10268       if test -f /usr/libexec/ld.so; then
10269         hardcode_direct=yes
10270         hardcode_shlibpath_var=no
10271         hardcode_direct_absolute=yes
10272         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10273           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10274           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10275           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10276           export_dynamic_flag_spec='$wl-E'
10277         else
10278           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10279           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10280         fi
10281       else
10282         ld_shlibs=no
10283       fi
10284       ;;
10285
10286     os2*)
10287       hardcode_libdir_flag_spec='-L$libdir'
10288       hardcode_minus_L=yes
10289       allow_undefined_flag=unsupported
10290       shrext_cmds=.dll
10291       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10292         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10293         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10294         $ECHO EXPORTS >> $output_objdir/$libname.def~
10295         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10296         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10297         emximp -o $lib $output_objdir/$libname.def'
10298       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10299         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10300         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10301         $ECHO EXPORTS >> $output_objdir/$libname.def~
10302         prefix_cmds="$SED"~
10303         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10304           prefix_cmds="$prefix_cmds -e 1d";
10305         fi~
10306         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10307         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10308         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10309         emximp -o $lib $output_objdir/$libname.def'
10310       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10311       enable_shared_with_static_runtimes=yes
10312       ;;
10313
10314     osf3*)
10315       if test yes = "$GCC"; then
10316         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10317         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'
10318       else
10319         allow_undefined_flag=' -expect_unresolved \*'
10320         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'
10321       fi
10322       archive_cmds_need_lc='no'
10323       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10324       hardcode_libdir_separator=:
10325       ;;
10326
10327     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10328       if test yes = "$GCC"; then
10329         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10330         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'
10331         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10332       else
10333         allow_undefined_flag=' -expect_unresolved \*'
10334         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'
10335         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~
10336           $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'
10337
10338         # Both c and cxx compiler support -rpath directly
10339         hardcode_libdir_flag_spec='-rpath $libdir'
10340       fi
10341       archive_cmds_need_lc='no'
10342       hardcode_libdir_separator=:
10343       ;;
10344
10345     solaris*)
10346       no_undefined_flag=' -z defs'
10347       if test yes = "$GCC"; then
10348         wlarc='$wl'
10349         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10350         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10351           $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'
10352       else
10353         case `$CC -V 2>&1` in
10354         *"Compilers 5.0"*)
10355           wlarc=''
10356           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10358             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10359           ;;
10360         *)
10361           wlarc='$wl'
10362           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10363           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10364             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10365           ;;
10366         esac
10367       fi
10368       hardcode_libdir_flag_spec='-R$libdir'
10369       hardcode_shlibpath_var=no
10370       case $host_os in
10371       solaris2.[0-5] | solaris2.[0-5].*) ;;
10372       *)
10373         # The compiler driver will combine and reorder linker options,
10374         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10375         # but is careful enough not to reorder.
10376         # Supported since Solaris 2.6 (maybe 2.5.1?)
10377         if test yes = "$GCC"; then
10378           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10379         else
10380           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10381         fi
10382         ;;
10383       esac
10384       link_all_deplibs=yes
10385       ;;
10386
10387     sunos4*)
10388       if test sequent = "$host_vendor"; then
10389         # Use $CC to link under sequent, because it throws in some extra .o
10390         # files that make .init and .fini sections work.
10391         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10392       else
10393         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10394       fi
10395       hardcode_libdir_flag_spec='-L$libdir'
10396       hardcode_direct=yes
10397       hardcode_minus_L=yes
10398       hardcode_shlibpath_var=no
10399       ;;
10400
10401     sysv4)
10402       case $host_vendor in
10403         sni)
10404           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10405           hardcode_direct=yes # is this really true???
10406         ;;
10407         siemens)
10408           ## LD is ld it makes a PLAMLIB
10409           ## CC just makes a GrossModule.
10410           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10411           reload_cmds='$CC -r -o $output$reload_objs'
10412           hardcode_direct=no
10413         ;;
10414         motorola)
10415           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10417         ;;
10418       esac
10419       runpath_var='LD_RUN_PATH'
10420       hardcode_shlibpath_var=no
10421       ;;
10422
10423     sysv4.3*)
10424       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425       hardcode_shlibpath_var=no
10426       export_dynamic_flag_spec='-Bexport'
10427       ;;
10428
10429     sysv4*MP*)
10430       if test -d /usr/nec; then
10431         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432         hardcode_shlibpath_var=no
10433         runpath_var=LD_RUN_PATH
10434         hardcode_runpath_var=yes
10435         ld_shlibs=yes
10436       fi
10437       ;;
10438
10439     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10440       no_undefined_flag='$wl-z,text'
10441       archive_cmds_need_lc=no
10442       hardcode_shlibpath_var=no
10443       runpath_var='LD_RUN_PATH'
10444
10445       if test yes = "$GCC"; then
10446         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448       else
10449         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10451       fi
10452       ;;
10453
10454     sysv5* | sco3.2v5* | sco5v6*)
10455       # Note: We CANNOT use -z defs as we might desire, because we do not
10456       # link with -lc, and that would cause any symbols used from libc to
10457       # always be unresolved, which means just about no library would
10458       # ever link correctly.  If we're not using GNU ld we use -z text
10459       # though, which does catch some bad symbols but isn't as heavy-handed
10460       # as -z defs.
10461       no_undefined_flag='$wl-z,text'
10462       allow_undefined_flag='$wl-z,nodefs'
10463       archive_cmds_need_lc=no
10464       hardcode_shlibpath_var=no
10465       hardcode_libdir_flag_spec='$wl-R,$libdir'
10466       hardcode_libdir_separator=':'
10467       link_all_deplibs=yes
10468       export_dynamic_flag_spec='$wl-Bexport'
10469       runpath_var='LD_RUN_PATH'
10470
10471       if test yes = "$GCC"; then
10472         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10473         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474       else
10475         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10476         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10477       fi
10478       ;;
10479
10480     uts4*)
10481       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10482       hardcode_libdir_flag_spec='-L$libdir'
10483       hardcode_shlibpath_var=no
10484       ;;
10485
10486     *)
10487       ld_shlibs=no
10488       ;;
10489     esac
10490
10491     if test sni = "$host_vendor"; then
10492       case $host in
10493       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10494         export_dynamic_flag_spec='$wl-Blargedynsym'
10495         ;;
10496       esac
10497     fi
10498   fi
10499
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10501 $as_echo "$ld_shlibs" >&6; }
10502 test no = "$ld_shlibs" && can_build_shared=no
10503
10504 with_gnu_ld=$with_gnu_ld
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520 #
10521 # Do we need to explicitly link libc?
10522 #
10523 case "x$archive_cmds_need_lc" in
10524 x|xyes)
10525   # Assume -lc should be added
10526   archive_cmds_need_lc=yes
10527
10528   if test yes,yes = "$GCC,$enable_shared"; then
10529     case $archive_cmds in
10530     *'~'*)
10531       # FIXME: we may have to deal with multi-command sequences.
10532       ;;
10533     '$CC '*)
10534       # Test whether the compiler implicitly links with -lc since on some
10535       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10536       # to ld, don't add -lc before -lgcc.
10537       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10538 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10539 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10540   $as_echo_n "(cached) " >&6
10541 else
10542   $RM conftest*
10543         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10544
10545         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10546   (eval $ac_compile) 2>&5
10547   ac_status=$?
10548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549   test $ac_status = 0; } 2>conftest.err; then
10550           soname=conftest
10551           lib=conftest
10552           libobjs=conftest.$ac_objext
10553           deplibs=
10554           wl=$lt_prog_compiler_wl
10555           pic_flag=$lt_prog_compiler_pic
10556           compiler_flags=-v
10557           linker_flags=-v
10558           verstring=
10559           output_objdir=.
10560           libname=conftest
10561           lt_save_allow_undefined_flag=$allow_undefined_flag
10562           allow_undefined_flag=
10563           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10564   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10565   ac_status=$?
10566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10567   test $ac_status = 0; }
10568           then
10569             lt_cv_archive_cmds_need_lc=no
10570           else
10571             lt_cv_archive_cmds_need_lc=yes
10572           fi
10573           allow_undefined_flag=$lt_save_allow_undefined_flag
10574         else
10575           cat conftest.err 1>&5
10576         fi
10577         $RM conftest*
10578
10579 fi
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10581 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10582       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10583       ;;
10584     esac
10585   fi
10586   ;;
10587 esac
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
10736
10737
10738
10739
10740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10741 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10742
10743 if test yes = "$GCC"; then
10744   case $host_os in
10745     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10746     *) lt_awk_arg='/^libraries:/' ;;
10747   esac
10748   case $host_os in
10749     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10750     *) lt_sed_strip_eq='s|=/|/|g' ;;
10751   esac
10752   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10753   case $lt_search_path_spec in
10754   *\;*)
10755     # if the path contains ";" then we assume it to be the separator
10756     # otherwise default to the standard path separator (i.e. ":") - it is
10757     # assumed that no part of a normal pathname contains ";" but that should
10758     # okay in the real world where ";" in dirpaths is itself problematic.
10759     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10760     ;;
10761   *)
10762     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10763     ;;
10764   esac
10765   # Ok, now we have the path, separated by spaces, we can step through it
10766   # and add multilib dir if necessary...
10767   lt_tmp_lt_search_path_spec=
10768   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10769   # ...but if some path component already ends with the multilib dir we assume
10770   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10771   case "$lt_multi_os_dir; $lt_search_path_spec " in
10772   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10773     lt_multi_os_dir=
10774     ;;
10775   esac
10776   for lt_sys_path in $lt_search_path_spec; do
10777     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10778       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10779     elif test -n "$lt_multi_os_dir"; then
10780       test -d "$lt_sys_path" && \
10781         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10782     fi
10783   done
10784   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10785 BEGIN {RS = " "; FS = "/|\n";} {
10786   lt_foo = "";
10787   lt_count = 0;
10788   for (lt_i = NF; lt_i > 0; lt_i--) {
10789     if ($lt_i != "" && $lt_i != ".") {
10790       if ($lt_i == "..") {
10791         lt_count++;
10792       } else {
10793         if (lt_count == 0) {
10794           lt_foo = "/" $lt_i lt_foo;
10795         } else {
10796           lt_count--;
10797         }
10798       }
10799     }
10800   }
10801   if (lt_foo != "") { lt_freq[lt_foo]++; }
10802   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10803 }'`
10804   # AWK program above erroneously prepends '/' to C:/dos/paths
10805   # for these hosts.
10806   case $host_os in
10807     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10808       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10809   esac
10810   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10811 else
10812   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10813 fi
10814 library_names_spec=
10815 libname_spec='lib$name'
10816 soname_spec=
10817 shrext_cmds=.so
10818 postinstall_cmds=
10819 postuninstall_cmds=
10820 finish_cmds=
10821 finish_eval=
10822 shlibpath_var=
10823 shlibpath_overrides_runpath=unknown
10824 version_type=none
10825 dynamic_linker="$host_os ld.so"
10826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10827 need_lib_prefix=unknown
10828 hardcode_into_libs=no
10829
10830 # when you set need_version to no, make sure it does not cause -set_version
10831 # flags to be left without arguments
10832 need_version=unknown
10833
10834
10835
10836 case $host_os in
10837 aix3*)
10838   version_type=linux # correct to gnu/linux during the next big refactor
10839   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10840   shlibpath_var=LIBPATH
10841
10842   # AIX 3 has no versioning support, so we append a major version to the name.
10843   soname_spec='$libname$release$shared_ext$major'
10844   ;;
10845
10846 aix[4-9]*)
10847   version_type=linux # correct to gnu/linux during the next big refactor
10848   need_lib_prefix=no
10849   need_version=no
10850   hardcode_into_libs=yes
10851   if test ia64 = "$host_cpu"; then
10852     # AIX 5 supports IA64
10853     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10854     shlibpath_var=LD_LIBRARY_PATH
10855   else
10856     # With GCC up to 2.95.x, collect2 would create an import file
10857     # for dependence libraries.  The import file would start with
10858     # the line '#! .'.  This would cause the generated library to
10859     # depend on '.', always an invalid library.  This was fixed in
10860     # development snapshots of GCC prior to 3.0.
10861     case $host_os in
10862       aix4 | aix4.[01] | aix4.[01].*)
10863       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10864            echo ' yes '
10865            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10866         :
10867       else
10868         can_build_shared=no
10869       fi
10870       ;;
10871     esac
10872     # Using Import Files as archive members, it is possible to support
10873     # filename-based versioning of shared library archives on AIX. While
10874     # this would work for both with and without runtime linking, it will
10875     # prevent static linking of such archives. So we do filename-based
10876     # shared library versioning with .so extension only, which is used
10877     # when both runtime linking and shared linking is enabled.
10878     # Unfortunately, runtime linking may impact performance, so we do
10879     # not want this to be the default eventually. Also, we use the
10880     # versioned .so libs for executables only if there is the -brtl
10881     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10882     # To allow for filename-based versioning support, we need to create
10883     # libNAME.so.V as an archive file, containing:
10884     # *) an Import File, referring to the versioned filename of the
10885     #    archive as well as the shared archive member, telling the
10886     #    bitwidth (32 or 64) of that shared object, and providing the
10887     #    list of exported symbols of that shared object, eventually
10888     #    decorated with the 'weak' keyword
10889     # *) the shared object with the F_LOADONLY flag set, to really avoid
10890     #    it being seen by the linker.
10891     # At run time we better use the real file rather than another symlink,
10892     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10893
10894     case $with_aix_soname,$aix_use_runtimelinking in
10895     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10896     # soname into executable. Probably we can add versioning support to
10897     # collect2, so additional links can be useful in future.
10898     aix,yes) # traditional libtool
10899       dynamic_linker='AIX unversionable lib.so'
10900       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10901       # instead of lib<name>.a to let people know that these are not
10902       # typical AIX shared libraries.
10903       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904       ;;
10905     aix,no) # traditional AIX only
10906       dynamic_linker='AIX lib.a(lib.so.V)'
10907       # We preserve .a as extension for shared libraries through AIX4.2
10908       # and later when we are not doing run time linking.
10909       library_names_spec='$libname$release.a $libname.a'
10910       soname_spec='$libname$release$shared_ext$major'
10911       ;;
10912     svr4,*) # full svr4 only
10913       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10914       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10915       # We do not specify a path in Import Files, so LIBPATH fires.
10916       shlibpath_overrides_runpath=yes
10917       ;;
10918     *,yes) # both, prefer svr4
10919       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10920       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10921       # unpreferred sharedlib libNAME.a needs extra handling
10922       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"'
10923       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"'
10924       # We do not specify a path in Import Files, so LIBPATH fires.
10925       shlibpath_overrides_runpath=yes
10926       ;;
10927     *,no) # both, prefer aix
10928       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10929       library_names_spec='$libname$release.a $libname.a'
10930       soname_spec='$libname$release$shared_ext$major'
10931       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10932       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)'
10933       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"'
10934       ;;
10935     esac
10936     shlibpath_var=LIBPATH
10937   fi
10938   ;;
10939
10940 amigaos*)
10941   case $host_cpu in
10942   powerpc)
10943     # Since July 2007 AmigaOS4 officially supports .so libraries.
10944     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10945     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946     ;;
10947   m68k)
10948     library_names_spec='$libname.ixlibrary $libname.a'
10949     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10950     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'
10951     ;;
10952   esac
10953   ;;
10954
10955 beos*)
10956   library_names_spec='$libname$shared_ext'
10957   dynamic_linker="$host_os ld.so"
10958   shlibpath_var=LIBRARY_PATH
10959   ;;
10960
10961 bsdi[45]*)
10962   version_type=linux # correct to gnu/linux during the next big refactor
10963   need_version=no
10964   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10965   soname_spec='$libname$release$shared_ext$major'
10966   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10967   shlibpath_var=LD_LIBRARY_PATH
10968   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10969   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10970   # the default ld.so.conf also contains /usr/contrib/lib and
10971   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10972   # libtool to hard-code these into programs
10973   ;;
10974
10975 cygwin* | mingw* | pw32* | cegcc*)
10976   version_type=windows
10977   shrext_cmds=.dll
10978   need_version=no
10979   need_lib_prefix=no
10980
10981   case $GCC,$cc_basename in
10982   yes,*)
10983     # gcc
10984     library_names_spec='$libname.dll.a'
10985     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10986     postinstall_cmds='base_file=`basename \$file`~
10987       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10988       dldir=$destdir/`dirname \$dlpath`~
10989       test -d \$dldir || mkdir -p \$dldir~
10990       $install_prog $dir/$dlname \$dldir/$dlname~
10991       chmod a+x \$dldir/$dlname~
10992       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10993         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10994       fi'
10995     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10996       dlpath=$dir/\$dldll~
10997        $RM \$dlpath'
10998     shlibpath_overrides_runpath=yes
10999
11000     case $host_os in
11001     cygwin*)
11002       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11003       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11004
11005       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11006       ;;
11007     mingw* | cegcc*)
11008       # MinGW DLLs use traditional 'lib' prefix
11009       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11010       ;;
11011     pw32*)
11012       # pw32 DLLs use 'pw' prefix rather than 'lib'
11013       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11014       ;;
11015     esac
11016     dynamic_linker='Win32 ld.exe'
11017     ;;
11018
11019   *,cl*)
11020     # Native MSVC
11021     libname_spec='$name'
11022     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11023     library_names_spec='$libname.dll.lib'
11024
11025     case $build_os in
11026     mingw*)
11027       sys_lib_search_path_spec=
11028       lt_save_ifs=$IFS
11029       IFS=';'
11030       for lt_path in $LIB
11031       do
11032         IFS=$lt_save_ifs
11033         # Let DOS variable expansion print the short 8.3 style file name.
11034         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11035         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11036       done
11037       IFS=$lt_save_ifs
11038       # Convert to MSYS style.
11039       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11040       ;;
11041     cygwin*)
11042       # Convert to unix form, then to dos form, then back to unix form
11043       # but this time dos style (no spaces!) so that the unix form looks
11044       # like /cygdrive/c/PROGRA~1:/cygdr...
11045       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11046       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11047       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11048       ;;
11049     *)
11050       sys_lib_search_path_spec=$LIB
11051       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11052         # It is most probably a Windows format PATH.
11053         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11054       else
11055         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11056       fi
11057       # FIXME: find the short name or the path components, as spaces are
11058       # common. (e.g. "Program Files" -> "PROGRA~1")
11059       ;;
11060     esac
11061
11062     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11063     postinstall_cmds='base_file=`basename \$file`~
11064       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11065       dldir=$destdir/`dirname \$dlpath`~
11066       test -d \$dldir || mkdir -p \$dldir~
11067       $install_prog $dir/$dlname \$dldir/$dlname'
11068     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11069       dlpath=$dir/\$dldll~
11070        $RM \$dlpath'
11071     shlibpath_overrides_runpath=yes
11072     dynamic_linker='Win32 link.exe'
11073     ;;
11074
11075   *)
11076     # Assume MSVC wrapper
11077     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11078     dynamic_linker='Win32 ld.exe'
11079     ;;
11080   esac
11081   # FIXME: first we should search . and the directory the executable is in
11082   shlibpath_var=PATH
11083   ;;
11084
11085 darwin* | rhapsody*)
11086   dynamic_linker="$host_os dyld"
11087   version_type=darwin
11088   need_lib_prefix=no
11089   need_version=no
11090   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11091   soname_spec='$libname$release$major$shared_ext'
11092   shlibpath_overrides_runpath=yes
11093   shlibpath_var=DYLD_LIBRARY_PATH
11094   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11095
11096   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11097   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11098   ;;
11099
11100 dgux*)
11101   version_type=linux # correct to gnu/linux during the next big refactor
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11105   soname_spec='$libname$release$shared_ext$major'
11106   shlibpath_var=LD_LIBRARY_PATH
11107   ;;
11108
11109 freebsd* | dragonfly*)
11110   # DragonFly does not have aout.  When/if they implement a new
11111   # versioning mechanism, adjust this.
11112   if test -x /usr/bin/objformat; then
11113     objformat=`/usr/bin/objformat`
11114   else
11115     case $host_os in
11116     freebsd[23].*) objformat=aout ;;
11117     *) objformat=elf ;;
11118     esac
11119   fi
11120   version_type=freebsd-$objformat
11121   case $version_type in
11122     freebsd-elf*)
11123       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11124       soname_spec='$libname$release$shared_ext$major'
11125       need_version=no
11126       need_lib_prefix=no
11127       ;;
11128     freebsd-*)
11129       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11130       need_version=yes
11131       ;;
11132   esac
11133   shlibpath_var=LD_LIBRARY_PATH
11134   case $host_os in
11135   freebsd2.*)
11136     shlibpath_overrides_runpath=yes
11137     ;;
11138   freebsd3.[01]* | freebsdelf3.[01]*)
11139     shlibpath_overrides_runpath=yes
11140     hardcode_into_libs=yes
11141     ;;
11142   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11143   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11144     shlibpath_overrides_runpath=no
11145     hardcode_into_libs=yes
11146     ;;
11147   *) # from 4.6 on, and DragonFly
11148     shlibpath_overrides_runpath=yes
11149     hardcode_into_libs=yes
11150     ;;
11151   esac
11152   ;;
11153
11154 haiku*)
11155   version_type=linux # correct to gnu/linux during the next big refactor
11156   need_lib_prefix=no
11157   need_version=no
11158   dynamic_linker="$host_os runtime_loader"
11159   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11160   soname_spec='$libname$release$shared_ext$major'
11161   shlibpath_var=LIBRARY_PATH
11162   shlibpath_overrides_runpath=no
11163   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11164   hardcode_into_libs=yes
11165   ;;
11166
11167 hpux9* | hpux10* | hpux11*)
11168   # Give a soname corresponding to the major version so that dld.sl refuses to
11169   # link against other versions.
11170   version_type=sunos
11171   need_lib_prefix=no
11172   need_version=no
11173   case $host_cpu in
11174   ia64*)
11175     shrext_cmds='.so'
11176     hardcode_into_libs=yes
11177     dynamic_linker="$host_os dld.so"
11178     shlibpath_var=LD_LIBRARY_PATH
11179     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11180     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11181     soname_spec='$libname$release$shared_ext$major'
11182     if test 32 = "$HPUX_IA64_MODE"; then
11183       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11184       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11185     else
11186       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11187       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11188     fi
11189     ;;
11190   hppa*64*)
11191     shrext_cmds='.sl'
11192     hardcode_into_libs=yes
11193     dynamic_linker="$host_os dld.sl"
11194     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11195     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11196     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11197     soname_spec='$libname$release$shared_ext$major'
11198     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11199     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11200     ;;
11201   *)
11202     shrext_cmds='.sl'
11203     dynamic_linker="$host_os dld.sl"
11204     shlibpath_var=SHLIB_PATH
11205     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11206     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11207     soname_spec='$libname$release$shared_ext$major'
11208     ;;
11209   esac
11210   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11211   postinstall_cmds='chmod 555 $lib'
11212   # or fails outright, so override atomically:
11213   install_override_mode=555
11214   ;;
11215
11216 interix[3-9]*)
11217   version_type=linux # correct to gnu/linux during the next big refactor
11218   need_lib_prefix=no
11219   need_version=no
11220   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11221   soname_spec='$libname$release$shared_ext$major'
11222   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   shlibpath_overrides_runpath=no
11225   hardcode_into_libs=yes
11226   ;;
11227
11228 irix5* | irix6* | nonstopux*)
11229   case $host_os in
11230     nonstopux*) version_type=nonstopux ;;
11231     *)
11232         if test yes = "$lt_cv_prog_gnu_ld"; then
11233                 version_type=linux # correct to gnu/linux during the next big refactor
11234         else
11235                 version_type=irix
11236         fi ;;
11237   esac
11238   need_lib_prefix=no
11239   need_version=no
11240   soname_spec='$libname$release$shared_ext$major'
11241   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11242   case $host_os in
11243   irix5* | nonstopux*)
11244     libsuff= shlibsuff=
11245     ;;
11246   *)
11247     case $LD in # libtool.m4 will add one of these switches to LD
11248     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11249       libsuff= shlibsuff= libmagic=32-bit;;
11250     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11251       libsuff=32 shlibsuff=N32 libmagic=N32;;
11252     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11253       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11254     *) libsuff= shlibsuff= libmagic=never-match;;
11255     esac
11256     ;;
11257   esac
11258   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11259   shlibpath_overrides_runpath=no
11260   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11261   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11262   hardcode_into_libs=yes
11263   ;;
11264
11265 # No shared lib support for Linux oldld, aout, or coff.
11266 linux*oldld* | linux*aout* | linux*coff*)
11267   dynamic_linker=no
11268   ;;
11269
11270 linux*android*)
11271   version_type=none # Android doesn't support versioned libraries.
11272   need_lib_prefix=no
11273   need_version=no
11274   library_names_spec='$libname$release$shared_ext'
11275   soname_spec='$libname$release$shared_ext'
11276   finish_cmds=
11277   shlibpath_var=LD_LIBRARY_PATH
11278   shlibpath_overrides_runpath=yes
11279
11280   # This implies no fast_install, which is unacceptable.
11281   # Some rework will be needed to allow for fast_install
11282   # before this can be enabled.
11283   hardcode_into_libs=yes
11284
11285   dynamic_linker='Android linker'
11286   # Don't embed -rpath directories since the linker doesn't support them.
11287   hardcode_libdir_flag_spec='-L$libdir'
11288   ;;
11289
11290 # This must be glibc/ELF.
11291 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11292   version_type=linux # correct to gnu/linux during the next big refactor
11293   need_lib_prefix=no
11294   need_version=no
11295   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11296   soname_spec='$libname$release$shared_ext$major'
11297   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11298   shlibpath_var=LD_LIBRARY_PATH
11299   shlibpath_overrides_runpath=no
11300
11301   # Some binutils ld are patched to set DT_RUNPATH
11302   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   lt_cv_shlibpath_overrides_runpath=no
11306     save_LDFLAGS=$LDFLAGS
11307     save_libdir=$libdir
11308     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11309          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h.  */
11312
11313 int
11314 main ()
11315 {
11316
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11323   lt_cv_shlibpath_overrides_runpath=yes
11324 fi
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext \
11327     conftest$ac_exeext conftest.$ac_ext
11328     LDFLAGS=$save_LDFLAGS
11329     libdir=$save_libdir
11330
11331 fi
11332
11333   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11334
11335   # This implies no fast_install, which is unacceptable.
11336   # Some rework will be needed to allow for fast_install
11337   # before this can be enabled.
11338   hardcode_into_libs=yes
11339
11340   # Add ABI-specific directories to the system library path.
11341   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11342
11343   # Ideally, we could use ldconfig to report *all* directores which are
11344   # searched for libraries, however this is still not possible.  Aside from not
11345   # being certain /sbin/ldconfig is available, command
11346   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11347   # even though it is searched at run-time.  Try to do the best guess by
11348   # appending ld.so.conf contents (and includes) to the search path.
11349   if test -f /etc/ld.so.conf; then
11350     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' ' '`
11351     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11352   fi
11353
11354   # We used to test for /lib/ld.so.1 and disable shared libraries on
11355   # powerpc, because MkLinux only supported shared libraries with the
11356   # GNU dynamic linker.  Since this was broken with cross compilers,
11357   # most powerpc-linux boxes support dynamic linking these days and
11358   # people can always --disable-shared, the test was removed, and we
11359   # assume the GNU/Linux dynamic linker is in use.
11360   dynamic_linker='GNU/Linux ld.so'
11361   ;;
11362
11363 netbsd*)
11364   version_type=sunos
11365   need_lib_prefix=no
11366   need_version=no
11367   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11368     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11369     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11370     dynamic_linker='NetBSD (a.out) ld.so'
11371   else
11372     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11373     soname_spec='$libname$release$shared_ext$major'
11374     dynamic_linker='NetBSD ld.elf_so'
11375   fi
11376   shlibpath_var=LD_LIBRARY_PATH
11377   shlibpath_overrides_runpath=yes
11378   hardcode_into_libs=yes
11379   ;;
11380
11381 newsos6)
11382   version_type=linux # correct to gnu/linux during the next big refactor
11383   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11384   shlibpath_var=LD_LIBRARY_PATH
11385   shlibpath_overrides_runpath=yes
11386   ;;
11387
11388 *nto* | *qnx*)
11389   version_type=qnx
11390   need_lib_prefix=no
11391   need_version=no
11392   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11393   soname_spec='$libname$release$shared_ext$major'
11394   shlibpath_var=LD_LIBRARY_PATH
11395   shlibpath_overrides_runpath=no
11396   hardcode_into_libs=yes
11397   dynamic_linker='ldqnx.so'
11398   ;;
11399
11400 openbsd* | bitrig*)
11401   version_type=sunos
11402   sys_lib_dlsearch_path_spec=/usr/lib
11403   need_lib_prefix=no
11404   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11405     need_version=no
11406   else
11407     need_version=yes
11408   fi
11409   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11410   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11411   shlibpath_var=LD_LIBRARY_PATH
11412   shlibpath_overrides_runpath=yes
11413   ;;
11414
11415 os2*)
11416   libname_spec='$name'
11417   version_type=windows
11418   shrext_cmds=.dll
11419   need_version=no
11420   need_lib_prefix=no
11421   # OS/2 can only load a DLL with a base name of 8 characters or less.
11422   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11423     v=$($ECHO $release$versuffix | tr -d .-);
11424     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11425     $ECHO $n$v`$shared_ext'
11426   library_names_spec='${libname}_dll.$libext'
11427   dynamic_linker='OS/2 ld.exe'
11428   shlibpath_var=BEGINLIBPATH
11429   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11430   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11431   postinstall_cmds='base_file=`basename \$file`~
11432     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11433     dldir=$destdir/`dirname \$dlpath`~
11434     test -d \$dldir || mkdir -p \$dldir~
11435     $install_prog $dir/$dlname \$dldir/$dlname~
11436     chmod a+x \$dldir/$dlname~
11437     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11438       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11439     fi'
11440   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11441     dlpath=$dir/\$dldll~
11442     $RM \$dlpath'
11443   ;;
11444
11445 osf3* | osf4* | osf5*)
11446   version_type=osf
11447   need_lib_prefix=no
11448   need_version=no
11449   soname_spec='$libname$release$shared_ext$major'
11450   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451   shlibpath_var=LD_LIBRARY_PATH
11452   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11453   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11454   ;;
11455
11456 rdos*)
11457   dynamic_linker=no
11458   ;;
11459
11460 solaris*)
11461   version_type=linux # correct to gnu/linux during the next big refactor
11462   need_lib_prefix=no
11463   need_version=no
11464   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465   soname_spec='$libname$release$shared_ext$major'
11466   shlibpath_var=LD_LIBRARY_PATH
11467   shlibpath_overrides_runpath=yes
11468   hardcode_into_libs=yes
11469   # ldd complains unless libraries are executable
11470   postinstall_cmds='chmod +x $lib'
11471   ;;
11472
11473 sunos4*)
11474   version_type=sunos
11475   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11477   shlibpath_var=LD_LIBRARY_PATH
11478   shlibpath_overrides_runpath=yes
11479   if test yes = "$with_gnu_ld"; then
11480     need_lib_prefix=no
11481   fi
11482   need_version=yes
11483   ;;
11484
11485 sysv4 | sysv4.3*)
11486   version_type=linux # correct to gnu/linux during the next big refactor
11487   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11488   soname_spec='$libname$release$shared_ext$major'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   case $host_vendor in
11491     sni)
11492       shlibpath_overrides_runpath=no
11493       need_lib_prefix=no
11494       runpath_var=LD_RUN_PATH
11495       ;;
11496     siemens)
11497       need_lib_prefix=no
11498       ;;
11499     motorola)
11500       need_lib_prefix=no
11501       need_version=no
11502       shlibpath_overrides_runpath=no
11503       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11504       ;;
11505   esac
11506   ;;
11507
11508 sysv4*MP*)
11509   if test -d /usr/nec; then
11510     version_type=linux # correct to gnu/linux during the next big refactor
11511     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11512     soname_spec='$libname$shared_ext.$major'
11513     shlibpath_var=LD_LIBRARY_PATH
11514   fi
11515   ;;
11516
11517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11518   version_type=sco
11519   need_lib_prefix=no
11520   need_version=no
11521   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11522   soname_spec='$libname$release$shared_ext$major'
11523   shlibpath_var=LD_LIBRARY_PATH
11524   shlibpath_overrides_runpath=yes
11525   hardcode_into_libs=yes
11526   if test yes = "$with_gnu_ld"; then
11527     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11528   else
11529     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11530     case $host_os in
11531       sco3.2v5*)
11532         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11533         ;;
11534     esac
11535   fi
11536   sys_lib_dlsearch_path_spec='/usr/lib'
11537   ;;
11538
11539 tpf*)
11540   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11541   version_type=linux # correct to gnu/linux during the next big refactor
11542   need_lib_prefix=no
11543   need_version=no
11544   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11545   shlibpath_var=LD_LIBRARY_PATH
11546   shlibpath_overrides_runpath=no
11547   hardcode_into_libs=yes
11548   ;;
11549
11550 uts4*)
11551   version_type=linux # correct to gnu/linux during the next big refactor
11552   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553   soname_spec='$libname$release$shared_ext$major'
11554   shlibpath_var=LD_LIBRARY_PATH
11555   ;;
11556
11557 *)
11558   dynamic_linker=no
11559   ;;
11560 esac
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11562 $as_echo "$dynamic_linker" >&6; }
11563 test no = "$dynamic_linker" && can_build_shared=no
11564
11565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11566 if test yes = "$GCC"; then
11567   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11568 fi
11569
11570 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11571   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11572 fi
11573
11574 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11575   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11576 fi
11577
11578 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11579 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11580
11581 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11582 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11583
11584 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11585 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11679
11680
11681
11682
11683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11684 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11685 hardcode_action=
11686 if test -n "$hardcode_libdir_flag_spec" ||
11687    test -n "$runpath_var" ||
11688    test yes = "$hardcode_automatic"; then
11689
11690   # We can hardcode non-existent directories.
11691   if test no != "$hardcode_direct" &&
11692      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11693      # have to relink, otherwise we might link with an installed library
11694      # when we should be linking with a yet-to-be-installed one
11695      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11696      test no != "$hardcode_minus_L"; then
11697     # Linking always hardcodes the temporary library directory.
11698     hardcode_action=relink
11699   else
11700     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11701     hardcode_action=immediate
11702   fi
11703 else
11704   # We cannot hardcode anything, or else we can only hardcode existing
11705   # directories.
11706   hardcode_action=unsupported
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11709 $as_echo "$hardcode_action" >&6; }
11710
11711 if test relink = "$hardcode_action" ||
11712    test yes = "$inherit_rpath"; then
11713   # Fast installation is not supported
11714   enable_fast_install=no
11715 elif test yes = "$shlibpath_overrides_runpath" ||
11716      test no = "$enable_shared"; then
11717   # Fast installation is not necessary
11718   enable_fast_install=needless
11719 fi
11720
11721
11722
11723
11724
11725
11726   if test yes != "$enable_dlopen"; then
11727   enable_dlopen=unknown
11728   enable_dlopen_self=unknown
11729   enable_dlopen_self_static=unknown
11730 else
11731   lt_cv_dlopen=no
11732   lt_cv_dlopen_libs=
11733
11734   case $host_os in
11735   beos*)
11736     lt_cv_dlopen=load_add_on
11737     lt_cv_dlopen_libs=
11738     lt_cv_dlopen_self=yes
11739     ;;
11740
11741   mingw* | pw32* | cegcc*)
11742     lt_cv_dlopen=LoadLibrary
11743     lt_cv_dlopen_libs=
11744     ;;
11745
11746   cygwin*)
11747     lt_cv_dlopen=dlopen
11748     lt_cv_dlopen_libs=
11749     ;;
11750
11751   darwin*)
11752     # if libdl is installed we need to link against it
11753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11754 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11755 if ${ac_cv_lib_dl_dlopen+:} false; then :
11756   $as_echo_n "(cached) " >&6
11757 else
11758   ac_check_lib_save_LIBS=$LIBS
11759 LIBS="-ldl  $LIBS"
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h.  */
11762
11763 /* Override any GCC internal prototype to avoid an error.
11764    Use char because int might match the return type of a GCC
11765    builtin and then its argument prototype would still apply.  */
11766 #ifdef __cplusplus
11767 extern "C"
11768 #endif
11769 char dlopen ();
11770 int
11771 main ()
11772 {
11773 return dlopen ();
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 if ac_fn_c_try_link "$LINENO"; then :
11779   ac_cv_lib_dl_dlopen=yes
11780 else
11781   ac_cv_lib_dl_dlopen=no
11782 fi
11783 rm -f core conftest.err conftest.$ac_objext \
11784     conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11788 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11789 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11790   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11791 else
11792
11793     lt_cv_dlopen=dyld
11794     lt_cv_dlopen_libs=
11795     lt_cv_dlopen_self=yes
11796
11797 fi
11798
11799     ;;
11800
11801   tpf*)
11802     # Don't try to run any link tests for TPF.  We know it's impossible
11803     # because TPF is a cross-compiler, and we know how we open DSOs.
11804     lt_cv_dlopen=dlopen
11805     lt_cv_dlopen_libs=
11806     lt_cv_dlopen_self=no
11807     ;;
11808
11809   *)
11810     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11811 if test "x$ac_cv_func_shl_load" = xyes; then :
11812   lt_cv_dlopen=shl_load
11813 else
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11815 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11816 if ${ac_cv_lib_dld_shl_load+:} false; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   ac_check_lib_save_LIBS=$LIBS
11820 LIBS="-ldld  $LIBS"
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h.  */
11823
11824 /* Override any GCC internal prototype to avoid an error.
11825    Use char because int might match the return type of a GCC
11826    builtin and then its argument prototype would still apply.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char shl_load ();
11831 int
11832 main ()
11833 {
11834 return shl_load ();
11835   ;
11836   return 0;
11837 }
11838 _ACEOF
11839 if ac_fn_c_try_link "$LINENO"; then :
11840   ac_cv_lib_dld_shl_load=yes
11841 else
11842   ac_cv_lib_dld_shl_load=no
11843 fi
11844 rm -f core conftest.err conftest.$ac_objext \
11845     conftest$ac_exeext conftest.$ac_ext
11846 LIBS=$ac_check_lib_save_LIBS
11847 fi
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11849 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11850 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11851   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11852 else
11853   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11854 if test "x$ac_cv_func_dlopen" = xyes; then :
11855   lt_cv_dlopen=dlopen
11856 else
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11859 if ${ac_cv_lib_dl_dlopen+:} false; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862   ac_check_lib_save_LIBS=$LIBS
11863 LIBS="-ldl  $LIBS"
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h.  */
11866
11867 /* Override any GCC internal prototype to avoid an error.
11868    Use char because int might match the return type of a GCC
11869    builtin and then its argument prototype would still apply.  */
11870 #ifdef __cplusplus
11871 extern "C"
11872 #endif
11873 char dlopen ();
11874 int
11875 main ()
11876 {
11877 return dlopen ();
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 if ac_fn_c_try_link "$LINENO"; then :
11883   ac_cv_lib_dl_dlopen=yes
11884 else
11885   ac_cv_lib_dl_dlopen=no
11886 fi
11887 rm -f core conftest.err conftest.$ac_objext \
11888     conftest$ac_exeext conftest.$ac_ext
11889 LIBS=$ac_check_lib_save_LIBS
11890 fi
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11892 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11893 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11894   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11895 else
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11897 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11898 if ${ac_cv_lib_svld_dlopen+:} false; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   ac_check_lib_save_LIBS=$LIBS
11902 LIBS="-lsvld  $LIBS"
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h.  */
11905
11906 /* Override any GCC internal prototype to avoid an error.
11907    Use char because int might match the return type of a GCC
11908    builtin and then its argument prototype would still apply.  */
11909 #ifdef __cplusplus
11910 extern "C"
11911 #endif
11912 char dlopen ();
11913 int
11914 main ()
11915 {
11916 return dlopen ();
11917   ;
11918   return 0;
11919 }
11920 _ACEOF
11921 if ac_fn_c_try_link "$LINENO"; then :
11922   ac_cv_lib_svld_dlopen=yes
11923 else
11924   ac_cv_lib_svld_dlopen=no
11925 fi
11926 rm -f core conftest.err conftest.$ac_objext \
11927     conftest$ac_exeext conftest.$ac_ext
11928 LIBS=$ac_check_lib_save_LIBS
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11931 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11932 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11933   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11934 else
11935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11936 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11937 if ${ac_cv_lib_dld_dld_link+:} false; then :
11938   $as_echo_n "(cached) " >&6
11939 else
11940   ac_check_lib_save_LIBS=$LIBS
11941 LIBS="-ldld  $LIBS"
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h.  */
11944
11945 /* Override any GCC internal prototype to avoid an error.
11946    Use char because int might match the return type of a GCC
11947    builtin and then its argument prototype would still apply.  */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char dld_link ();
11952 int
11953 main ()
11954 {
11955 return dld_link ();
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961   ac_cv_lib_dld_dld_link=yes
11962 else
11963   ac_cv_lib_dld_dld_link=no
11964 fi
11965 rm -f core conftest.err conftest.$ac_objext \
11966     conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_check_lib_save_LIBS
11968 fi
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11970 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11971 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11972   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11973 fi
11974
11975
11976 fi
11977
11978
11979 fi
11980
11981
11982 fi
11983
11984
11985 fi
11986
11987
11988 fi
11989
11990     ;;
11991   esac
11992
11993   if test no = "$lt_cv_dlopen"; then
11994     enable_dlopen=no
11995   else
11996     enable_dlopen=yes
11997   fi
11998
11999   case $lt_cv_dlopen in
12000   dlopen)
12001     save_CPPFLAGS=$CPPFLAGS
12002     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12003
12004     save_LDFLAGS=$LDFLAGS
12005     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12006
12007     save_LIBS=$LIBS
12008     LIBS="$lt_cv_dlopen_libs $LIBS"
12009
12010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12011 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12012 if ${lt_cv_dlopen_self+:} false; then :
12013   $as_echo_n "(cached) " >&6
12014 else
12015           if test yes = "$cross_compiling"; then :
12016   lt_cv_dlopen_self=cross
12017 else
12018   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12019   lt_status=$lt_dlunknown
12020   cat > conftest.$ac_ext <<_LT_EOF
12021 #line $LINENO "configure"
12022 #include "confdefs.h"
12023
12024 #if HAVE_DLFCN_H
12025 #include <dlfcn.h>
12026 #endif
12027
12028 #include <stdio.h>
12029
12030 #ifdef RTLD_GLOBAL
12031 #  define LT_DLGLOBAL           RTLD_GLOBAL
12032 #else
12033 #  ifdef DL_GLOBAL
12034 #    define LT_DLGLOBAL         DL_GLOBAL
12035 #  else
12036 #    define LT_DLGLOBAL         0
12037 #  endif
12038 #endif
12039
12040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12041    find out it does not work in some platform. */
12042 #ifndef LT_DLLAZY_OR_NOW
12043 #  ifdef RTLD_LAZY
12044 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12045 #  else
12046 #    ifdef DL_LAZY
12047 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12048 #    else
12049 #      ifdef RTLD_NOW
12050 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12051 #      else
12052 #        ifdef DL_NOW
12053 #          define LT_DLLAZY_OR_NOW      DL_NOW
12054 #        else
12055 #          define LT_DLLAZY_OR_NOW      0
12056 #        endif
12057 #      endif
12058 #    endif
12059 #  endif
12060 #endif
12061
12062 /* When -fvisibility=hidden is used, assume the code has been annotated
12063    correspondingly for the symbols needed.  */
12064 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12065 int fnord () __attribute__((visibility("default")));
12066 #endif
12067
12068 int fnord () { return 42; }
12069 int main ()
12070 {
12071   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12072   int status = $lt_dlunknown;
12073
12074   if (self)
12075     {
12076       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12077       else
12078         {
12079           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12080           else puts (dlerror ());
12081         }
12082       /* dlclose (self); */
12083     }
12084   else
12085     puts (dlerror ());
12086
12087   return status;
12088 }
12089 _LT_EOF
12090   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12091   (eval $ac_link) 2>&5
12092   ac_status=$?
12093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12094   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12095     (./conftest; exit; ) >&5 2>/dev/null
12096     lt_status=$?
12097     case x$lt_status in
12098       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12099       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12100       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12101     esac
12102   else :
12103     # compilation failed
12104     lt_cv_dlopen_self=no
12105   fi
12106 fi
12107 rm -fr conftest*
12108
12109
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12112 $as_echo "$lt_cv_dlopen_self" >&6; }
12113
12114     if test yes = "$lt_cv_dlopen_self"; then
12115       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12116       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12117 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12118 if ${lt_cv_dlopen_self_static+:} false; then :
12119   $as_echo_n "(cached) " >&6
12120 else
12121           if test yes = "$cross_compiling"; then :
12122   lt_cv_dlopen_self_static=cross
12123 else
12124   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12125   lt_status=$lt_dlunknown
12126   cat > conftest.$ac_ext <<_LT_EOF
12127 #line $LINENO "configure"
12128 #include "confdefs.h"
12129
12130 #if HAVE_DLFCN_H
12131 #include <dlfcn.h>
12132 #endif
12133
12134 #include <stdio.h>
12135
12136 #ifdef RTLD_GLOBAL
12137 #  define LT_DLGLOBAL           RTLD_GLOBAL
12138 #else
12139 #  ifdef DL_GLOBAL
12140 #    define LT_DLGLOBAL         DL_GLOBAL
12141 #  else
12142 #    define LT_DLGLOBAL         0
12143 #  endif
12144 #endif
12145
12146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12147    find out it does not work in some platform. */
12148 #ifndef LT_DLLAZY_OR_NOW
12149 #  ifdef RTLD_LAZY
12150 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12151 #  else
12152 #    ifdef DL_LAZY
12153 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12154 #    else
12155 #      ifdef RTLD_NOW
12156 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12157 #      else
12158 #        ifdef DL_NOW
12159 #          define LT_DLLAZY_OR_NOW      DL_NOW
12160 #        else
12161 #          define LT_DLLAZY_OR_NOW      0
12162 #        endif
12163 #      endif
12164 #    endif
12165 #  endif
12166 #endif
12167
12168 /* When -fvisibility=hidden is used, assume the code has been annotated
12169    correspondingly for the symbols needed.  */
12170 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12171 int fnord () __attribute__((visibility("default")));
12172 #endif
12173
12174 int fnord () { return 42; }
12175 int main ()
12176 {
12177   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12178   int status = $lt_dlunknown;
12179
12180   if (self)
12181     {
12182       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12183       else
12184         {
12185           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12186           else puts (dlerror ());
12187         }
12188       /* dlclose (self); */
12189     }
12190   else
12191     puts (dlerror ());
12192
12193   return status;
12194 }
12195 _LT_EOF
12196   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12197   (eval $ac_link) 2>&5
12198   ac_status=$?
12199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12200   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12201     (./conftest; exit; ) >&5 2>/dev/null
12202     lt_status=$?
12203     case x$lt_status in
12204       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12205       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12206       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12207     esac
12208   else :
12209     # compilation failed
12210     lt_cv_dlopen_self_static=no
12211   fi
12212 fi
12213 rm -fr conftest*
12214
12215
12216 fi
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12218 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12219     fi
12220
12221     CPPFLAGS=$save_CPPFLAGS
12222     LDFLAGS=$save_LDFLAGS
12223     LIBS=$save_LIBS
12224     ;;
12225   esac
12226
12227   case $lt_cv_dlopen_self in
12228   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12229   *) enable_dlopen_self=unknown ;;
12230   esac
12231
12232   case $lt_cv_dlopen_self_static in
12233   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12234   *) enable_dlopen_self_static=unknown ;;
12235   esac
12236 fi
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254 striplib=
12255 old_striplib=
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12257 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12258 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12259   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12260   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12262 $as_echo "yes" >&6; }
12263 else
12264 # FIXME - insert some real tests, host_os isn't really good enough
12265   case $host_os in
12266   darwin*)
12267     if test -n "$STRIP"; then
12268       striplib="$STRIP -x"
12269       old_striplib="$STRIP -S"
12270       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12271 $as_echo "yes" >&6; }
12272     else
12273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275     fi
12276     ;;
12277   *)
12278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12280     ;;
12281   esac
12282 fi
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295   # Report what library types will actually be built
12296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12297 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12299 $as_echo "$can_build_shared" >&6; }
12300
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12302 $as_echo_n "checking whether to build shared libraries... " >&6; }
12303   test no = "$can_build_shared" && enable_shared=no
12304
12305   # On AIX, shared libraries and static libraries use the same namespace, and
12306   # are all built from PIC.
12307   case $host_os in
12308   aix3*)
12309     test yes = "$enable_shared" && enable_static=no
12310     if test -n "$RANLIB"; then
12311       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12312       postinstall_cmds='$RANLIB $lib'
12313     fi
12314     ;;
12315
12316   aix[4-9]*)
12317     if test ia64 != "$host_cpu"; then
12318       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12319       yes,aix,yes) ;;                   # shared object as lib.so file only
12320       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12321       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12322       esac
12323     fi
12324     ;;
12325   esac
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12327 $as_echo "$enable_shared" >&6; }
12328
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12330 $as_echo_n "checking whether to build static libraries... " >&6; }
12331   # Make sure either enable_shared or enable_static is yes.
12332   test yes = "$enable_shared" || enable_static=yes
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12334 $as_echo "$enable_static" >&6; }
12335
12336
12337
12338
12339 fi
12340 ac_ext=c
12341 ac_cpp='$CPP $CPPFLAGS'
12342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12345
12346 CC=$lt_save_CC
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362         ac_config_commands="$ac_config_commands libtool"
12363
12364
12365
12366
12367 # Only expand once:
12368
12369
12370
12371 FRIBIDI_MAJOR_VERSION=1
12372 FRIBIDI_MINOR_VERSION=0
12373 FRIBIDI_MICRO_VERSION=2
12374 FRIBIDI_VERSION=1.0.2
12375 FRIBIDI_INTERFACE_VERSION=4
12376 FRIBIDI_INTERFACE_AGE=0
12377 FRIBIDI_BINARY_AGE=4
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387 FRIBIDI_MSVC_BUILD_PLACEHOLDER="#undef FRIBIDI_BUILT_WITH_MSVC"
12388
12389
12390 LT_VERSION_INFO=4:0:4
12391 LT_CURRENT_MINUS_AGE=0
12392
12393
12394
12395
12396
12397 # Checks for programs.
12398 ac_ext=c
12399 ac_cpp='$CPP $CPPFLAGS'
12400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12403 if test -n "$ac_tool_prefix"; then
12404   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407 $as_echo_n "checking for $ac_word... " >&6; }
12408 if ${ac_cv_prog_CC+:} false; then :
12409   $as_echo_n "(cached) " >&6
12410 else
12411   if test -n "$CC"; then
12412   ac_cv_prog_CC="$CC" # Let the user override the test.
12413 else
12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415 for as_dir in $PATH
12416 do
12417   IFS=$as_save_IFS
12418   test -z "$as_dir" && as_dir=.
12419     for ac_exec_ext in '' $ac_executable_extensions; do
12420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12421     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423     break 2
12424   fi
12425 done
12426   done
12427 IFS=$as_save_IFS
12428
12429 fi
12430 fi
12431 CC=$ac_cv_prog_CC
12432 if test -n "$CC"; then
12433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12434 $as_echo "$CC" >&6; }
12435 else
12436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12438 fi
12439
12440
12441 fi
12442 if test -z "$ac_cv_prog_CC"; then
12443   ac_ct_CC=$CC
12444   # Extract the first word of "gcc", so it can be a program name with args.
12445 set dummy gcc; ac_word=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12449   $as_echo_n "(cached) " >&6
12450 else
12451   if test -n "$ac_ct_CC"; then
12452   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12453 else
12454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12456 do
12457   IFS=$as_save_IFS
12458   test -z "$as_dir" && as_dir=.
12459     for ac_exec_ext in '' $ac_executable_extensions; do
12460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12461     ac_cv_prog_ac_ct_CC="gcc"
12462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463     break 2
12464   fi
12465 done
12466   done
12467 IFS=$as_save_IFS
12468
12469 fi
12470 fi
12471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12472 if test -n "$ac_ct_CC"; then
12473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12474 $as_echo "$ac_ct_CC" >&6; }
12475 else
12476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12478 fi
12479
12480   if test "x$ac_ct_CC" = x; then
12481     CC=""
12482   else
12483     case $cross_compiling:$ac_tool_warned in
12484 yes:)
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12487 ac_tool_warned=yes ;;
12488 esac
12489     CC=$ac_ct_CC
12490   fi
12491 else
12492   CC="$ac_cv_prog_CC"
12493 fi
12494
12495 if test -z "$CC"; then
12496           if test -n "$ac_tool_prefix"; then
12497     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12498 set dummy ${ac_tool_prefix}cc; ac_word=$2
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12500 $as_echo_n "checking for $ac_word... " >&6; }
12501 if ${ac_cv_prog_CC+:} false; then :
12502   $as_echo_n "(cached) " >&6
12503 else
12504   if test -n "$CC"; then
12505   ac_cv_prog_CC="$CC" # Let the user override the test.
12506 else
12507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508 for as_dir in $PATH
12509 do
12510   IFS=$as_save_IFS
12511   test -z "$as_dir" && as_dir=.
12512     for ac_exec_ext in '' $ac_executable_extensions; do
12513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12514     ac_cv_prog_CC="${ac_tool_prefix}cc"
12515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12516     break 2
12517   fi
12518 done
12519   done
12520 IFS=$as_save_IFS
12521
12522 fi
12523 fi
12524 CC=$ac_cv_prog_CC
12525 if test -n "$CC"; then
12526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12527 $as_echo "$CC" >&6; }
12528 else
12529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530 $as_echo "no" >&6; }
12531 fi
12532
12533
12534   fi
12535 fi
12536 if test -z "$CC"; then
12537   # Extract the first word of "cc", so it can be a program name with args.
12538 set dummy cc; ac_word=$2
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 $as_echo_n "checking for $ac_word... " >&6; }
12541 if ${ac_cv_prog_CC+:} false; then :
12542   $as_echo_n "(cached) " >&6
12543 else
12544   if test -n "$CC"; then
12545   ac_cv_prog_CC="$CC" # Let the user override the test.
12546 else
12547   ac_prog_rejected=no
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12550 do
12551   IFS=$as_save_IFS
12552   test -z "$as_dir" && as_dir=.
12553     for ac_exec_ext in '' $ac_executable_extensions; do
12554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12555     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12556        ac_prog_rejected=yes
12557        continue
12558      fi
12559     ac_cv_prog_CC="cc"
12560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561     break 2
12562   fi
12563 done
12564   done
12565 IFS=$as_save_IFS
12566
12567 if test $ac_prog_rejected = yes; then
12568   # We found a bogon in the path, so make sure we never use it.
12569   set dummy $ac_cv_prog_CC
12570   shift
12571   if test $# != 0; then
12572     # We chose a different compiler from the bogus one.
12573     # However, it has the same basename, so the bogon will be chosen
12574     # first if we set CC to just the basename; use the full file name.
12575     shift
12576     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12577   fi
12578 fi
12579 fi
12580 fi
12581 CC=$ac_cv_prog_CC
12582 if test -n "$CC"; then
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12584 $as_echo "$CC" >&6; }
12585 else
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588 fi
12589
12590
12591 fi
12592 if test -z "$CC"; then
12593   if test -n "$ac_tool_prefix"; then
12594   for ac_prog in cl.exe
12595   do
12596     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599 $as_echo_n "checking for $ac_word... " >&6; }
12600 if ${ac_cv_prog_CC+:} false; then :
12601   $as_echo_n "(cached) " >&6
12602 else
12603   if test -n "$CC"; then
12604   ac_cv_prog_CC="$CC" # Let the user override the test.
12605 else
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12608 do
12609   IFS=$as_save_IFS
12610   test -z "$as_dir" && as_dir=.
12611     for ac_exec_ext in '' $ac_executable_extensions; do
12612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12613     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615     break 2
12616   fi
12617 done
12618   done
12619 IFS=$as_save_IFS
12620
12621 fi
12622 fi
12623 CC=$ac_cv_prog_CC
12624 if test -n "$CC"; then
12625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12626 $as_echo "$CC" >&6; }
12627 else
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630 fi
12631
12632
12633     test -n "$CC" && break
12634   done
12635 fi
12636 if test -z "$CC"; then
12637   ac_ct_CC=$CC
12638   for ac_prog in cl.exe
12639 do
12640   # Extract the first word of "$ac_prog", so it can be a program name with args.
12641 set dummy $ac_prog; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647   if test -n "$ac_ct_CC"; then
12648   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12649 else
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12652 do
12653   IFS=$as_save_IFS
12654   test -z "$as_dir" && as_dir=.
12655     for ac_exec_ext in '' $ac_executable_extensions; do
12656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12657     ac_cv_prog_ac_ct_CC="$ac_prog"
12658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659     break 2
12660   fi
12661 done
12662   done
12663 IFS=$as_save_IFS
12664
12665 fi
12666 fi
12667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12668 if test -n "$ac_ct_CC"; then
12669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12670 $as_echo "$ac_ct_CC" >&6; }
12671 else
12672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12674 fi
12675
12676
12677   test -n "$ac_ct_CC" && break
12678 done
12679
12680   if test "x$ac_ct_CC" = x; then
12681     CC=""
12682   else
12683     case $cross_compiling:$ac_tool_warned in
12684 yes:)
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12687 ac_tool_warned=yes ;;
12688 esac
12689     CC=$ac_ct_CC
12690   fi
12691 fi
12692
12693 fi
12694
12695
12696 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12698 as_fn_error $? "no acceptable C compiler found in \$PATH
12699 See \`config.log' for more details" "$LINENO" 5; }
12700
12701 # Provide some information about the compiler.
12702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12703 set X $ac_compile
12704 ac_compiler=$2
12705 for ac_option in --version -v -V -qversion; do
12706   { { ac_try="$ac_compiler $ac_option >&5"
12707 case "(($ac_try" in
12708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709   *) ac_try_echo=$ac_try;;
12710 esac
12711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12712 $as_echo "$ac_try_echo"; } >&5
12713   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12714   ac_status=$?
12715   if test -s conftest.err; then
12716     sed '10a\
12717 ... rest of stderr output deleted ...
12718          10q' conftest.err >conftest.er1
12719     cat conftest.er1 >&5
12720   fi
12721   rm -f conftest.er1 conftest.err
12722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12723   test $ac_status = 0; }
12724 done
12725
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12727 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12728 if ${ac_cv_c_compiler_gnu+:} false; then :
12729   $as_echo_n "(cached) " >&6
12730 else
12731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h.  */
12733
12734 int
12735 main ()
12736 {
12737 #ifndef __GNUC__
12738        choke me
12739 #endif
12740
12741   ;
12742   return 0;
12743 }
12744 _ACEOF
12745 if ac_fn_c_try_compile "$LINENO"; then :
12746   ac_compiler_gnu=yes
12747 else
12748   ac_compiler_gnu=no
12749 fi
12750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12752
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12755 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12756 if test $ac_compiler_gnu = yes; then
12757   GCC=yes
12758 else
12759   GCC=
12760 fi
12761 ac_test_CFLAGS=${CFLAGS+set}
12762 ac_save_CFLAGS=$CFLAGS
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12764 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12765 if ${ac_cv_prog_cc_g+:} false; then :
12766   $as_echo_n "(cached) " >&6
12767 else
12768   ac_save_c_werror_flag=$ac_c_werror_flag
12769    ac_c_werror_flag=yes
12770    ac_cv_prog_cc_g=no
12771    CFLAGS="-g"
12772    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h.  */
12774
12775 int
12776 main ()
12777 {
12778
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 if ac_fn_c_try_compile "$LINENO"; then :
12784   ac_cv_prog_cc_g=yes
12785 else
12786   CFLAGS=""
12787       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h.  */
12789
12790 int
12791 main ()
12792 {
12793
12794   ;
12795   return 0;
12796 }
12797 _ACEOF
12798 if ac_fn_c_try_compile "$LINENO"; then :
12799
12800 else
12801   ac_c_werror_flag=$ac_save_c_werror_flag
12802          CFLAGS="-g"
12803          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h.  */
12805
12806 int
12807 main ()
12808 {
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815   ac_cv_prog_cc_g=yes
12816 fi
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 fi
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822    ac_c_werror_flag=$ac_save_c_werror_flag
12823 fi
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12825 $as_echo "$ac_cv_prog_cc_g" >&6; }
12826 if test "$ac_test_CFLAGS" = set; then
12827   CFLAGS=$ac_save_CFLAGS
12828 elif test $ac_cv_prog_cc_g = yes; then
12829   if test "$GCC" = yes; then
12830     CFLAGS="-g -O2"
12831   else
12832     CFLAGS="-g"
12833   fi
12834 else
12835   if test "$GCC" = yes; then
12836     CFLAGS="-O2"
12837   else
12838     CFLAGS=
12839   fi
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12842 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12843 if ${ac_cv_prog_cc_c89+:} false; then :
12844   $as_echo_n "(cached) " >&6
12845 else
12846   ac_cv_prog_cc_c89=no
12847 ac_save_CC=$CC
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h.  */
12850 #include <stdarg.h>
12851 #include <stdio.h>
12852 struct stat;
12853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12854 struct buf { int x; };
12855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12856 static char *e (p, i)
12857      char **p;
12858      int i;
12859 {
12860   return p[i];
12861 }
12862 static char *f (char * (*g) (char **, int), char **p, ...)
12863 {
12864   char *s;
12865   va_list v;
12866   va_start (v,p);
12867   s = g (p, va_arg (v,int));
12868   va_end (v);
12869   return s;
12870 }
12871
12872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12873    function prototypes and stuff, but not '\xHH' hex character constants.
12874    These don't provoke an error unfortunately, instead are silently treated
12875    as 'x'.  The following induces an error, until -std is added to get
12876    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12877    array size at least.  It's necessary to write '\x00'==0 to get something
12878    that's true only with -std.  */
12879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12880
12881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12882    inside strings and character constants.  */
12883 #define FOO(x) 'x'
12884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12885
12886 int test (int i, double x);
12887 struct s1 {int (*f) (int a);};
12888 struct s2 {int (*f) (double a);};
12889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12890 int argc;
12891 char **argv;
12892 int
12893 main ()
12894 {
12895 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12896   ;
12897   return 0;
12898 }
12899 _ACEOF
12900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12901         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12902 do
12903   CC="$ac_save_CC $ac_arg"
12904   if ac_fn_c_try_compile "$LINENO"; then :
12905   ac_cv_prog_cc_c89=$ac_arg
12906 fi
12907 rm -f core conftest.err conftest.$ac_objext
12908   test "x$ac_cv_prog_cc_c89" != "xno" && break
12909 done
12910 rm -f conftest.$ac_ext
12911 CC=$ac_save_CC
12912
12913 fi
12914 # AC_CACHE_VAL
12915 case "x$ac_cv_prog_cc_c89" in
12916   x)
12917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12918 $as_echo "none needed" >&6; } ;;
12919   xno)
12920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12921 $as_echo "unsupported" >&6; } ;;
12922   *)
12923     CC="$CC $ac_cv_prog_cc_c89"
12924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12925 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12926 esac
12927 if test "x$ac_cv_prog_cc_c89" != xno; then :
12928
12929 fi
12930
12931 ac_ext=c
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937 ac_ext=c
12938 ac_cpp='$CPP $CPPFLAGS'
12939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12943 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12944 if ${am_cv_prog_cc_c_o+:} false; then :
12945   $as_echo_n "(cached) " >&6
12946 else
12947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h.  */
12949
12950 int
12951 main ()
12952 {
12953
12954   ;
12955   return 0;
12956 }
12957 _ACEOF
12958   # Make sure it works both with $CC and with simple cc.
12959   # Following AC_PROG_CC_C_O, we do the test twice because some
12960   # compilers refuse to overwrite an existing .o file with -o,
12961   # though they will create one.
12962   am_cv_prog_cc_c_o=yes
12963   for am_i in 1 2; do
12964     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12965    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12966    ac_status=$?
12967    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968    (exit $ac_status); } \
12969          && test -f conftest2.$ac_objext; then
12970       : OK
12971     else
12972       am_cv_prog_cc_c_o=no
12973       break
12974     fi
12975   done
12976   rm -f core conftest*
12977   unset am_i
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12980 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12981 if test "$am_cv_prog_cc_c_o" != yes; then
12982    # Losing compiler, so override with the script.
12983    # FIXME: It is wrong to rewrite CC.
12984    # But if we don't then we get into trouble of one sort or another.
12985    # A longer-term fix would be to have automake use am__CC in this case,
12986    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12987    CC="$am_aux_dir/compile $CC"
12988 fi
12989 ac_ext=c
12990 ac_cpp='$CPP $CPPFLAGS'
12991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12994
12995
12996 depcc="$CC"   am_compiler_list=
12997
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12999 $as_echo_n "checking dependency style of $depcc... " >&6; }
13000 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13001   $as_echo_n "(cached) " >&6
13002 else
13003   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13004   # We make a subdir and do the tests there.  Otherwise we can end up
13005   # making bogus files that we don't know about and never remove.  For
13006   # instance it was reported that on HP-UX the gcc test will end up
13007   # making a dummy file named 'D' -- because '-MD' means "put the output
13008   # in D".
13009   rm -rf conftest.dir
13010   mkdir conftest.dir
13011   # Copy depcomp to subdir because otherwise we won't find it if we're
13012   # using a relative directory.
13013   cp "$am_depcomp" conftest.dir
13014   cd conftest.dir
13015   # We will build objects and dependencies in a subdirectory because
13016   # it helps to detect inapplicable dependency modes.  For instance
13017   # both Tru64's cc and ICC support -MD to output dependencies as a
13018   # side effect of compilation, but ICC will put the dependencies in
13019   # the current directory while Tru64 will put them in the object
13020   # directory.
13021   mkdir sub
13022
13023   am_cv_CC_dependencies_compiler_type=none
13024   if test "$am_compiler_list" = ""; then
13025      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13026   fi
13027   am__universal=false
13028   case " $depcc " in #(
13029      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13030      esac
13031
13032   for depmode in $am_compiler_list; do
13033     # Setup a source with many dependencies, because some compilers
13034     # like to wrap large dependency lists on column 80 (with \), and
13035     # we should not choose a depcomp mode which is confused by this.
13036     #
13037     # We need to recreate these files for each test, as the compiler may
13038     # overwrite some of them when testing with obscure command lines.
13039     # This happens at least with the AIX C compiler.
13040     : > sub/conftest.c
13041     for i in 1 2 3 4 5 6; do
13042       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13043       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13044       # Solaris 10 /bin/sh.
13045       echo '/* dummy */' > sub/conftst$i.h
13046     done
13047     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13048
13049     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13050     # mode.  It turns out that the SunPro C++ compiler does not properly
13051     # handle '-M -o', and we need to detect this.  Also, some Intel
13052     # versions had trouble with output in subdirs.
13053     am__obj=sub/conftest.${OBJEXT-o}
13054     am__minus_obj="-o $am__obj"
13055     case $depmode in
13056     gcc)
13057       # This depmode causes a compiler race in universal mode.
13058       test "$am__universal" = false || continue
13059       ;;
13060     nosideeffect)
13061       # After this tag, mechanisms are not by side-effect, so they'll
13062       # only be used when explicitly requested.
13063       if test "x$enable_dependency_tracking" = xyes; then
13064         continue
13065       else
13066         break
13067       fi
13068       ;;
13069     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13070       # This compiler won't grok '-c -o', but also, the minuso test has
13071       # not run yet.  These depmodes are late enough in the game, and
13072       # so weak that their functioning should not be impacted.
13073       am__obj=conftest.${OBJEXT-o}
13074       am__minus_obj=
13075       ;;
13076     none) break ;;
13077     esac
13078     if depmode=$depmode \
13079        source=sub/conftest.c object=$am__obj \
13080        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13081        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13082          >/dev/null 2>conftest.err &&
13083        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13084        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13085        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13086        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13087       # icc doesn't choke on unknown options, it will just issue warnings
13088       # or remarks (even with -Werror).  So we grep stderr for any message
13089       # that says an option was ignored or not supported.
13090       # When given -MP, icc 7.0 and 7.1 complain thusly:
13091       #   icc: Command line warning: ignoring option '-M'; no argument required
13092       # The diagnosis changed in icc 8.0:
13093       #   icc: Command line remark: option '-MP' not supported
13094       if (grep 'ignoring option' conftest.err ||
13095           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13096         am_cv_CC_dependencies_compiler_type=$depmode
13097         break
13098       fi
13099     fi
13100   done
13101
13102   cd ..
13103   rm -rf conftest.dir
13104 else
13105   am_cv_CC_dependencies_compiler_type=none
13106 fi
13107
13108 fi
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13112
13113  if
13114   test "x$enable_dependency_tracking" != xno \
13115   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13116   am__fastdepCC_TRUE=
13117   am__fastdepCC_FALSE='#'
13118 else
13119   am__fastdepCC_TRUE='#'
13120   am__fastdepCC_FALSE=
13121 fi
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13133         if test -n "$ac_tool_prefix"; then
13134   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13135 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13139   $as_echo_n "(cached) " >&6
13140 else
13141   case $PKG_CONFIG in
13142   [\\/]* | ?:[\\/]*)
13143   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13144   ;;
13145   *)
13146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13148 do
13149   IFS=$as_save_IFS
13150   test -z "$as_dir" && as_dir=.
13151     for ac_exec_ext in '' $ac_executable_extensions; do
13152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13153     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155     break 2
13156   fi
13157 done
13158   done
13159 IFS=$as_save_IFS
13160
13161   ;;
13162 esac
13163 fi
13164 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13165 if test -n "$PKG_CONFIG"; then
13166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13167 $as_echo "$PKG_CONFIG" >&6; }
13168 else
13169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13171 fi
13172
13173
13174 fi
13175 if test -z "$ac_cv_path_PKG_CONFIG"; then
13176   ac_pt_PKG_CONFIG=$PKG_CONFIG
13177   # Extract the first word of "pkg-config", so it can be a program name with args.
13178 set dummy pkg-config; ac_word=$2
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180 $as_echo_n "checking for $ac_word... " >&6; }
13181 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13182   $as_echo_n "(cached) " >&6
13183 else
13184   case $ac_pt_PKG_CONFIG in
13185   [\\/]* | ?:[\\/]*)
13186   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13187   ;;
13188   *)
13189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13191 do
13192   IFS=$as_save_IFS
13193   test -z "$as_dir" && as_dir=.
13194     for ac_exec_ext in '' $ac_executable_extensions; do
13195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13196     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198     break 2
13199   fi
13200 done
13201   done
13202 IFS=$as_save_IFS
13203
13204   ;;
13205 esac
13206 fi
13207 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13208 if test -n "$ac_pt_PKG_CONFIG"; then
13209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13210 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13211 else
13212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213 $as_echo "no" >&6; }
13214 fi
13215
13216   if test "x$ac_pt_PKG_CONFIG" = x; then
13217     PKG_CONFIG=""
13218   else
13219     case $cross_compiling:$ac_tool_warned in
13220 yes:)
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13223 ac_tool_warned=yes ;;
13224 esac
13225     PKG_CONFIG=$ac_pt_PKG_CONFIG
13226   fi
13227 else
13228   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13229 fi
13230
13231 fi
13232 if test -n "$PKG_CONFIG"; then
13233         _pkg_min_version=0.9.0
13234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13235 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13236         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13237                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13238 $as_echo "yes" >&6; }
13239         else
13240                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13242                 PKG_CONFIG=""
13243         fi
13244 fi
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
13246 $as_echo_n "checking for native Win32... " >&6; }
13247   case $build_os in
13248     mingw*) os_win32=yes ;;
13249     *) os_win32=no ;;
13250   esac
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
13252 $as_echo "$os_win32" >&6; }
13253  if test "$os_win32" = "yes"; then
13254   OS_WIN32_TRUE=
13255   OS_WIN32_FALSE='#'
13256 else
13257   OS_WIN32_TRUE='#'
13258   OS_WIN32_FALSE=
13259 fi
13260
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
13262 $as_echo_n "checking for some Win32 platform... " >&6; }
13263   case $build_os in
13264     mingw*|cygwin*) platform_win32=yes ;;
13265     *) platform_win32=no ;;
13266   esac
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
13268 $as_echo "$platform_win32" >&6; }
13269  if test "$platform_win32" = "yes"; then
13270   PLATFORM_WIN32_TRUE=
13271   PLATFORM_WIN32_FALSE='#'
13272 else
13273   PLATFORM_WIN32_TRUE='#'
13274   PLATFORM_WIN32_FALSE=
13275 fi
13276
13277
13278
13279 # Checks for header files.
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13281 $as_echo_n "checking for ANSI C header files... " >&6; }
13282 if ${ac_cv_header_stdc+:} false; then :
13283   $as_echo_n "(cached) " >&6
13284 else
13285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h.  */
13287 #include <stdlib.h>
13288 #include <stdarg.h>
13289 #include <string.h>
13290 #include <float.h>
13291
13292 int
13293 main ()
13294 {
13295
13296   ;
13297   return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_c_try_compile "$LINENO"; then :
13301   ac_cv_header_stdc=yes
13302 else
13303   ac_cv_header_stdc=no
13304 fi
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306
13307 if test $ac_cv_header_stdc = yes; then
13308   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h.  */
13311 #include <string.h>
13312
13313 _ACEOF
13314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13315   $EGREP "memchr" >/dev/null 2>&1; then :
13316
13317 else
13318   ac_cv_header_stdc=no
13319 fi
13320 rm -f conftest*
13321
13322 fi
13323
13324 if test $ac_cv_header_stdc = yes; then
13325   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h.  */
13328 #include <stdlib.h>
13329
13330 _ACEOF
13331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13332   $EGREP "free" >/dev/null 2>&1; then :
13333
13334 else
13335   ac_cv_header_stdc=no
13336 fi
13337 rm -f conftest*
13338
13339 fi
13340
13341 if test $ac_cv_header_stdc = yes; then
13342   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13343   if test "$cross_compiling" = yes; then :
13344   :
13345 else
13346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h.  */
13348 #include <ctype.h>
13349 #include <stdlib.h>
13350 #if ((' ' & 0x0FF) == 0x020)
13351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13353 #else
13354 # define ISLOWER(c) \
13355                    (('a' <= (c) && (c) <= 'i') \
13356                      || ('j' <= (c) && (c) <= 'r') \
13357                      || ('s' <= (c) && (c) <= 'z'))
13358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13359 #endif
13360
13361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13362 int
13363 main ()
13364 {
13365   int i;
13366   for (i = 0; i < 256; i++)
13367     if (XOR (islower (i), ISLOWER (i))
13368         || toupper (i) != TOUPPER (i))
13369       return 2;
13370   return 0;
13371 }
13372 _ACEOF
13373 if ac_fn_c_try_run "$LINENO"; then :
13374
13375 else
13376   ac_cv_header_stdc=no
13377 fi
13378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13379   conftest.$ac_objext conftest.beam conftest.$ac_ext
13380 fi
13381
13382 fi
13383 fi
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13385 $as_echo "$ac_cv_header_stdc" >&6; }
13386 if test $ac_cv_header_stdc = yes; then
13387
13388 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13389
13390 fi
13391
13392 for ac_header in stdlib.h string.h strings.h wchar.h asm/page.h sys/times.h
13393 do :
13394   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13395 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13397   cat >>confdefs.h <<_ACEOF
13398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13399 _ACEOF
13400
13401 fi
13402
13403 done
13404
13405
13406 # Checks for typedefs and structures.
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13408 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13409 if ${ac_cv_c_const+:} false; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h.  */
13414
13415 int
13416 main ()
13417 {
13418
13419 #ifndef __cplusplus
13420   /* Ultrix mips cc rejects this sort of thing.  */
13421   typedef int charset[2];
13422   const charset cs = { 0, 0 };
13423   /* SunOS 4.1.1 cc rejects this.  */
13424   char const *const *pcpcc;
13425   char **ppc;
13426   /* NEC SVR4.0.2 mips cc rejects this.  */
13427   struct point {int x, y;};
13428   static struct point const zero = {0,0};
13429   /* AIX XL C 1.02.0.0 rejects this.
13430      It does not let you subtract one const X* pointer from another in
13431      an arm of an if-expression whose if-part is not a constant
13432      expression */
13433   const char *g = "string";
13434   pcpcc = &g + (g ? g-g : 0);
13435   /* HPUX 7.0 cc rejects these. */
13436   ++pcpcc;
13437   ppc = (char**) pcpcc;
13438   pcpcc = (char const *const *) ppc;
13439   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13440     char tx;
13441     char *t = &tx;
13442     char const *s = 0 ? (char *) 0 : (char const *) 0;
13443
13444     *t++ = 0;
13445     if (s) return 0;
13446   }
13447   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13448     int x[] = {25, 17};
13449     const int *foo = &x[0];
13450     ++foo;
13451   }
13452   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13453     typedef const int *iptr;
13454     iptr p = 0;
13455     ++p;
13456   }
13457   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13458        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13459     struct s { int j; const int *ap[3]; } bx;
13460     struct s *b = &bx; b->j = 5;
13461   }
13462   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13463     const int foo = 10;
13464     if (!foo) return 0;
13465   }
13466   return !cs[0] && !zero.x;
13467 #endif
13468
13469   ;
13470   return 0;
13471 }
13472 _ACEOF
13473 if ac_fn_c_try_compile "$LINENO"; then :
13474   ac_cv_c_const=yes
13475 else
13476   ac_cv_c_const=no
13477 fi
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 fi
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13481 $as_echo "$ac_cv_c_const" >&6; }
13482 if test $ac_cv_c_const = no; then
13483
13484 $as_echo "#define const /**/" >>confdefs.h
13485
13486 fi
13487
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
13489 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
13490 if ${ac_cv_c_stringize+:} false; then :
13491   $as_echo_n "(cached) " >&6
13492 else
13493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h.  */
13495 #define x(y) #y
13496
13497 char *s = x(teststring);
13498 _ACEOF
13499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13500   $EGREP "#teststring" >/dev/null 2>&1; then :
13501   ac_cv_c_stringize=no
13502 else
13503   ac_cv_c_stringize=yes
13504 fi
13505 rm -f conftest*
13506
13507 fi
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
13509 $as_echo "$ac_cv_c_stringize" >&6; }
13510 if test $ac_cv_c_stringize = yes; then
13511
13512 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
13513
13514 fi
13515
13516 # The cast to long int works around a bug in the HP C Compiler
13517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13519 # This bug is HP SR number 8606223364.
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13521 $as_echo_n "checking size of int... " >&6; }
13522 if ${ac_cv_sizeof_int+:} false; then :
13523   $as_echo_n "(cached) " >&6
13524 else
13525   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13526
13527 else
13528   if test "$ac_cv_type_int" = yes; then
13529      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13531 as_fn_error 77 "cannot compute sizeof (int)
13532 See \`config.log' for more details" "$LINENO" 5; }
13533    else
13534      ac_cv_sizeof_int=0
13535    fi
13536 fi
13537
13538 fi
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13540 $as_echo "$ac_cv_sizeof_int" >&6; }
13541
13542
13543
13544 cat >>confdefs.h <<_ACEOF
13545 #define SIZEOF_INT $ac_cv_sizeof_int
13546 _ACEOF
13547
13548
13549 SIZEOF_INT=$ac_cv_sizeof_int
13550
13551 # The cast to long int works around a bug in the HP C Compiler
13552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13554 # This bug is HP SR number 8606223364.
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13556 $as_echo_n "checking size of short... " >&6; }
13557 if ${ac_cv_sizeof_short+:} false; then :
13558   $as_echo_n "(cached) " >&6
13559 else
13560   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13561
13562 else
13563   if test "$ac_cv_type_short" = yes; then
13564      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13566 as_fn_error 77 "cannot compute sizeof (short)
13567 See \`config.log' for more details" "$LINENO" 5; }
13568    else
13569      ac_cv_sizeof_short=0
13570    fi
13571 fi
13572
13573 fi
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13575 $as_echo "$ac_cv_sizeof_short" >&6; }
13576
13577
13578
13579 cat >>confdefs.h <<_ACEOF
13580 #define SIZEOF_SHORT $ac_cv_sizeof_short
13581 _ACEOF
13582
13583
13584 # The cast to long int works around a bug in the HP C Compiler
13585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13587 # This bug is HP SR number 8606223364.
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13589 $as_echo_n "checking size of void *... " >&6; }
13590 if ${ac_cv_sizeof_void_p+:} false; then :
13591   $as_echo_n "(cached) " >&6
13592 else
13593   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13594
13595 else
13596   if test "$ac_cv_type_void_p" = yes; then
13597      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13599 as_fn_error 77 "cannot compute sizeof (void *)
13600 See \`config.log' for more details" "$LINENO" 5; }
13601    else
13602      ac_cv_sizeof_void_p=0
13603    fi
13604 fi
13605
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13608 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13609
13610
13611
13612 cat >>confdefs.h <<_ACEOF
13613 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13614 _ACEOF
13615
13616
13617 # The cast to long int works around a bug in the HP C Compiler
13618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13620 # This bug is HP SR number 8606223364.
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
13622 $as_echo_n "checking size of wchar_t... " >&6; }
13623 if ${ac_cv_sizeof_wchar_t+:} false; then :
13624   $as_echo_n "(cached) " >&6
13625 else
13626   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
13627
13628 else
13629   if test "$ac_cv_type_wchar_t" = yes; then
13630      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13632 as_fn_error 77 "cannot compute sizeof (wchar_t)
13633 See \`config.log' for more details" "$LINENO" 5; }
13634    else
13635      ac_cv_sizeof_wchar_t=0
13636    fi
13637 fi
13638
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
13641 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
13642
13643
13644
13645 cat >>confdefs.h <<_ACEOF
13646 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
13647 _ACEOF
13648
13649
13650
13651
13652
13653 save_cross_compiling=$cross_compiling
13654 save_ac_tool_prefix=$ac_tool_prefix
13655 cross_compiling=no
13656 ac_tool_prefix=
13657
13658 ac_ext=c
13659 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
13660 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
13661 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'
13662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13663 if test -n "$ac_tool_prefix"; then
13664   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667 $as_echo_n "checking for $ac_word... " >&6; }
13668 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13669   $as_echo_n "(cached) " >&6
13670 else
13671   if test -n "$CC_FOR_BUILD"; then
13672   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13673 else
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13676 do
13677   IFS=$as_save_IFS
13678   test -z "$as_dir" && as_dir=.
13679     for ac_exec_ext in '' $ac_executable_extensions; do
13680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
13682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13683     break 2
13684   fi
13685 done
13686   done
13687 IFS=$as_save_IFS
13688
13689 fi
13690 fi
13691 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13692 if test -n "$CC_FOR_BUILD"; then
13693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13694 $as_echo "$CC_FOR_BUILD" >&6; }
13695 else
13696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13697 $as_echo "no" >&6; }
13698 fi
13699
13700
13701 fi
13702 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
13703   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
13704   # Extract the first word of "gcc", so it can be a program name with args.
13705 set dummy gcc; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
13709   $as_echo_n "(cached) " >&6
13710 else
13711   if test -n "$ac_ct_CC_FOR_BUILD"; then
13712   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
13713 else
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13716 do
13717   IFS=$as_save_IFS
13718   test -z "$as_dir" && as_dir=.
13719     for ac_exec_ext in '' $ac_executable_extensions; do
13720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13721     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
13722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13723     break 2
13724   fi
13725 done
13726   done
13727 IFS=$as_save_IFS
13728
13729 fi
13730 fi
13731 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
13732 if test -n "$ac_ct_CC_FOR_BUILD"; then
13733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
13734 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
13735 else
13736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13738 fi
13739
13740   if test "x$ac_ct_CC_FOR_BUILD" = x; then
13741     CC_FOR_BUILD=""
13742   else
13743     case $cross_compiling:$ac_tool_warned in
13744 yes:)
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
13746 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
13747 ac_tool_warned=yes ;;
13748 esac
13749     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
13750   fi
13751 else
13752   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
13753 fi
13754
13755 if test -z "$CC_FOR_BUILD"; then
13756           if test -n "$ac_tool_prefix"; then
13757     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13758 set dummy ${ac_tool_prefix}cc; ac_word=$2
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13760 $as_echo_n "checking for $ac_word... " >&6; }
13761 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13762   $as_echo_n "(cached) " >&6
13763 else
13764   if test -n "$CC_FOR_BUILD"; then
13765   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13766 else
13767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13768 for as_dir in $PATH
13769 do
13770   IFS=$as_save_IFS
13771   test -z "$as_dir" && as_dir=.
13772     for ac_exec_ext in '' $ac_executable_extensions; do
13773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13774     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
13775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13776     break 2
13777   fi
13778 done
13779   done
13780 IFS=$as_save_IFS
13781
13782 fi
13783 fi
13784 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13785 if test -n "$CC_FOR_BUILD"; then
13786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13787 $as_echo "$CC_FOR_BUILD" >&6; }
13788 else
13789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790 $as_echo "no" >&6; }
13791 fi
13792
13793
13794   fi
13795 fi
13796 if test -z "$CC_FOR_BUILD"; then
13797   # Extract the first word of "cc", so it can be a program name with args.
13798 set dummy cc; ac_word=$2
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13800 $as_echo_n "checking for $ac_word... " >&6; }
13801 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13802   $as_echo_n "(cached) " >&6
13803 else
13804   if test -n "$CC_FOR_BUILD"; then
13805   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13806 else
13807   ac_prog_rejected=no
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13810 do
13811   IFS=$as_save_IFS
13812   test -z "$as_dir" && as_dir=.
13813     for ac_exec_ext in '' $ac_executable_extensions; do
13814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13815     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13816        ac_prog_rejected=yes
13817        continue
13818      fi
13819     ac_cv_prog_CC_FOR_BUILD="cc"
13820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821     break 2
13822   fi
13823 done
13824   done
13825 IFS=$as_save_IFS
13826
13827 if test $ac_prog_rejected = yes; then
13828   # We found a bogon in the path, so make sure we never use it.
13829   set dummy $ac_cv_prog_CC_FOR_BUILD
13830   shift
13831   if test $# != 0; then
13832     # We chose a different compiler from the bogus one.
13833     # However, it has the same basename, so the bogon will be chosen
13834     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
13835     shift
13836     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
13837   fi
13838 fi
13839 fi
13840 fi
13841 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13842 if test -n "$CC_FOR_BUILD"; then
13843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13844 $as_echo "$CC_FOR_BUILD" >&6; }
13845 else
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850
13851 fi
13852 if test -z "$CC_FOR_BUILD"; then
13853   if test -n "$ac_tool_prefix"; then
13854   for ac_prog in cl.exe
13855   do
13856     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13859 $as_echo_n "checking for $ac_word... " >&6; }
13860 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
13861   $as_echo_n "(cached) " >&6
13862 else
13863   if test -n "$CC_FOR_BUILD"; then
13864   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13865 else
13866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13867 for as_dir in $PATH
13868 do
13869   IFS=$as_save_IFS
13870   test -z "$as_dir" && as_dir=.
13871     for ac_exec_ext in '' $ac_executable_extensions; do
13872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13873     ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
13874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13875     break 2
13876   fi
13877 done
13878   done
13879 IFS=$as_save_IFS
13880
13881 fi
13882 fi
13883 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13884 if test -n "$CC_FOR_BUILD"; then
13885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13886 $as_echo "$CC_FOR_BUILD" >&6; }
13887 else
13888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889 $as_echo "no" >&6; }
13890 fi
13891
13892
13893     test -n "$CC_FOR_BUILD" && break
13894   done
13895 fi
13896 if test -z "$CC_FOR_BUILD"; then
13897   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
13898   for ac_prog in cl.exe
13899 do
13900   # Extract the first word of "$ac_prog", so it can be a program name with args.
13901 set dummy $ac_prog; ac_word=$2
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13903 $as_echo_n "checking for $ac_word... " >&6; }
13904 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
13905   $as_echo_n "(cached) " >&6
13906 else
13907   if test -n "$ac_ct_CC_FOR_BUILD"; then
13908   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
13909 else
13910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911 for as_dir in $PATH
13912 do
13913   IFS=$as_save_IFS
13914   test -z "$as_dir" && as_dir=.
13915     for ac_exec_ext in '' $ac_executable_extensions; do
13916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13917     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
13918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13919     break 2
13920   fi
13921 done
13922   done
13923 IFS=$as_save_IFS
13924
13925 fi
13926 fi
13927 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
13928 if test -n "$ac_ct_CC_FOR_BUILD"; then
13929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
13930 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
13931 else
13932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13934 fi
13935
13936
13937   test -n "$ac_ct_CC_FOR_BUILD" && break
13938 done
13939
13940   if test "x$ac_ct_CC_FOR_BUILD" = x; then
13941     CC_FOR_BUILD=""
13942   else
13943     case $cross_compiling:$ac_tool_warned in
13944 yes:)
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
13946 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
13947 ac_tool_warned=yes ;;
13948 esac
13949     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
13950   fi
13951 fi
13952
13953 fi
13954
13955
13956 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13958 as_fn_error $? "no acceptable C compiler found in \$PATH
13959 See \`config.log' for more details" "$LINENO" 5; }
13960
13961 # Provide some information about the compiler.
13962 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13963 set X $ac_build_compile
13964 ac_compiler=$2
13965 for ac_option in --version -v -V -qversion; do
13966   { { ac_try="$ac_compiler $ac_option >&5"
13967 case "(($ac_try" in
13968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969   *) ac_try_echo=$ac_try;;
13970 esac
13971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13972 $as_echo "$ac_try_echo"; } >&5
13973   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13974   ac_status=$?
13975   if test -s conftest.err; then
13976     sed '10a\
13977 ... rest of stderr output deleted ...
13978          10q' conftest.err >conftest.er1
13979     cat conftest.er1 >&5
13980   fi
13981   rm -f conftest.er1 conftest.err
13982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13983   test $ac_status = 0; }
13984 done
13985
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13987 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13988 if ${ac_cv_c_compiler_gnu+:} false; then :
13989   $as_echo_n "(cached) " >&6
13990 else
13991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h.  */
13993
13994 int
13995 main ()
13996 {
13997 #ifndef __GNUC__
13998        choke me
13999 #endif
14000
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 if ac_fn_c_try_compile "$LINENO"; then :
14006   ac_compiler_gnu=yes
14007 else
14008   ac_compiler_gnu=no
14009 fi
14010 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14012
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14015 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14016 if test $ac_compiler_gnu = yes; then
14017   GCC=yes
14018 else
14019   GCC=
14020 fi
14021 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
14022 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
14024 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
14025 if ${ac_cv_build_prog_cc_g+:} false; then :
14026   $as_echo_n "(cached) " >&6
14027 else
14028   ac_save_c_werror_flag=$ac_c_werror_flag
14029    ac_c_werror_flag=yes
14030    ac_cv_build_prog_cc_g=no
14031    CFLAGS_FOR_BUILD="-g"
14032    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h.  */
14034
14035 int
14036 main ()
14037 {
14038
14039   ;
14040   return 0;
14041 }
14042 _ACEOF
14043 if ac_fn_c_try_compile "$LINENO"; then :
14044   ac_cv_build_prog_cc_g=yes
14045 else
14046   CFLAGS_FOR_BUILD=""
14047       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h.  */
14049
14050 int
14051 main ()
14052 {
14053
14054   ;
14055   return 0;
14056 }
14057 _ACEOF
14058 if ac_fn_c_try_compile "$LINENO"; then :
14059
14060 else
14061   ac_c_werror_flag=$ac_save_c_werror_flag
14062          CFLAGS_FOR_BUILD="-g"
14063          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h.  */
14065
14066 int
14067 main ()
14068 {
14069
14070   ;
14071   return 0;
14072 }
14073 _ACEOF
14074 if ac_fn_c_try_compile "$LINENO"; then :
14075   ac_cv_build_prog_cc_g=yes
14076 fi
14077 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14078 fi
14079 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14080 fi
14081 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14082    ac_c_werror_flag=$ac_save_c_werror_flag
14083 fi
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
14085 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
14086 if test "$ac_test_CFLAGS" = set; then
14087   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
14088 elif test $ac_cv_build_prog_cc_g = yes; then
14089   if test "$GCC" = yes; then
14090     CFLAGS_FOR_BUILD="-g -O2"
14091   else
14092     CFLAGS_FOR_BUILD="-g"
14093   fi
14094 else
14095   if test "$GCC" = yes; then
14096     CFLAGS_FOR_BUILD="-O2"
14097   else
14098     CFLAGS_FOR_BUILD=
14099   fi
14100 fi
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
14102 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
14103 if ${ac_cv_prog_cc_c89+:} false; then :
14104   $as_echo_n "(cached) " >&6
14105 else
14106   ac_cv_prog_cc_c89=no
14107 ac_save_CC=$CC_FOR_BUILD
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h.  */
14110 #include <stdarg.h>
14111 #include <stdio.h>
14112 struct stat;
14113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14114 struct buf { int x; };
14115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14116 static char *e (p, i)
14117      char **p;
14118      int i;
14119 {
14120   return p[i];
14121 }
14122 static char *f (char * (*g) (char **, int), char **p, ...)
14123 {
14124   char *s;
14125   va_list v;
14126   va_start (v,p);
14127   s = g (p, va_arg (v,int));
14128   va_end (v);
14129   return s;
14130 }
14131
14132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14133    function prototypes and stuff, but not '\xHH' hex character constants.
14134    These don't provoke an error unfortunately, instead are silently treated
14135    as 'x'.  The following induces an error, until -std is added to get
14136    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14137    array size at least.  It's necessary to write '\x00'==0 to get something
14138    that's true only with -std.  */
14139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14140
14141 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14142    inside strings and character constants.  */
14143 #define FOO(x) 'x'
14144 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14145
14146 int test (int i, double x);
14147 struct s1 {int (*f) (int a);};
14148 struct s2 {int (*f) (double a);};
14149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14150 int argc;
14151 char **argv;
14152 int
14153 main ()
14154 {
14155 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14161         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14162 do
14163   CC_FOR_BUILD="$ac_save_CC $ac_arg"
14164   if ac_fn_c_try_compile "$LINENO"; then :
14165   ac_cv_prog_cc_c89=$ac_arg
14166 fi
14167 rm -f core conftest.err conftest.$ac_build_objext
14168   test "x$ac_cv_prog_cc_c89" != "xno" && break
14169 done
14170 rm -f conftest.$ac_ext
14171 CC_FOR_BUILD=$ac_save_CC
14172
14173 fi
14174 # AC_CACHE_VAL
14175 case "x$ac_cv_prog_cc_c89" in
14176   x)
14177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14178 $as_echo "none needed" >&6; } ;;
14179   xno)
14180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14181 $as_echo "unsupported" >&6; } ;;
14182   *)
14183     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
14184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14185 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14186 esac
14187 if test "x$ac_cv_prog_cc_c89" != xno; then :
14188
14189 fi
14190
14191 ac_ext=c
14192 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14193 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14194 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'
14195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14196
14197 ac_ext=c
14198 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14199 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14200 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'
14201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
14203 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
14204 if ${am_cv_prog_cc_c_o+:} false; then :
14205   $as_echo_n "(cached) " >&6
14206 else
14207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h.  */
14209
14210 int
14211 main ()
14212 {
14213
14214   ;
14215   return 0;
14216 }
14217 _ACEOF
14218   # Make sure it works both with $CC and with simple cc.
14219   # Following AC_PROG_CC_C_O, we do the test twice because some
14220   # compilers refuse to overwrite an existing .o file with -o,
14221   # though they will create one.
14222   am_cv_prog_cc_c_o=yes
14223   for am_i in 1 2; do
14224     if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
14225    ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
14226    ac_status=$?
14227    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228    (exit $ac_status); } \
14229          && test -f conftest2.$ac_build_objext; then
14230       : OK
14231     else
14232       am_cv_prog_cc_c_o=no
14233       break
14234     fi
14235   done
14236   rm -f core conftest*
14237   unset am_i
14238 fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14240 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14241 if test "$am_cv_prog_cc_c_o" != yes; then
14242    # Losing compiler, so override with the script.
14243    # FIXME: It is wrong to rewrite CC.
14244    # But if we don't then we get into trouble of one sort or another.
14245    # A longer-term fix would be to have automake use am__CC in this case,
14246    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14247    CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
14248 fi
14249 ac_ext=c
14250 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14251 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14252 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'
14253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14254
14255
14256 depcc="$CC_FOR_BUILD"   am_compiler_list=
14257
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14259 $as_echo_n "checking dependency style of $depcc... " >&6; }
14260 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14261   $as_echo_n "(cached) " >&6
14262 else
14263   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14264   # We make a subdir and do the tests there.  Otherwise we can end up
14265   # making bogus files that we don't know about and never remove.  For
14266   # instance it was reported that on HP-UX the gcc test will end up
14267   # making a dummy file named 'D' -- because '-MD' means "put the output
14268   # in D".
14269   rm -rf conftest.dir
14270   mkdir conftest.dir
14271   # Copy depcomp to subdir because otherwise we won't find it if we're
14272   # using a relative directory.
14273   cp "$am_depcomp" conftest.dir
14274   cd conftest.dir
14275   # We will build objects and dependencies in a subdirectory because
14276   # it helps to detect inapplicable dependency modes.  For instance
14277   # both Tru64's cc and ICC support -MD to output dependencies as a
14278   # side effect of compilation, but ICC will put the dependencies in
14279   # the current directory while Tru64 will put them in the object
14280   # directory.
14281   mkdir sub
14282
14283   am_cv_CC_dependencies_compiler_type=none
14284   if test "$am_compiler_list" = ""; then
14285      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14286   fi
14287   am__universal=false
14288   case " $depcc " in #(
14289      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14290      esac
14291
14292   for depmode in $am_compiler_list; do
14293     # Setup a source with many dependencies, because some compilers
14294     # like to wrap large dependency lists on column 80 (with \), and
14295     # we should not choose a depcomp mode which is confused by this.
14296     #
14297     # We need to recreate these files for each test, as the compiler may
14298     # overwrite some of them when testing with obscure command lines.
14299     # This happens at least with the AIX C compiler.
14300     : > sub/conftest.c
14301     for i in 1 2 3 4 5 6; do
14302       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14303       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14304       # Solaris 10 /bin/sh.
14305       echo '/* dummy */' > sub/conftst$i.h
14306     done
14307     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14308
14309     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14310     # mode.  It turns out that the SunPro C++ compiler does not properly
14311     # handle '-M -o', and we need to detect this.  Also, some Intel
14312     # versions had trouble with output in subdirs.
14313     am__obj=sub/conftest.${OBJEXT-o}
14314     am__minus_obj="-o $am__obj"
14315     case $depmode in
14316     gcc)
14317       # This depmode causes a compiler race in universal mode.
14318       test "$am__universal" = false || continue
14319       ;;
14320     nosideeffect)
14321       # After this tag, mechanisms are not by side-effect, so they'll
14322       # only be used when explicitly requested.
14323       if test "x$enable_dependency_tracking" = xyes; then
14324         continue
14325       else
14326         break
14327       fi
14328       ;;
14329     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14330       # This compiler won't grok '-c -o', but also, the minuso test has
14331       # not run yet.  These depmodes are late enough in the game, and
14332       # so weak that their functioning should not be impacted.
14333       am__obj=conftest.${OBJEXT-o}
14334       am__minus_obj=
14335       ;;
14336     none) break ;;
14337     esac
14338     if depmode=$depmode \
14339        source=sub/conftest.c object=$am__obj \
14340        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14341        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14342          >/dev/null 2>conftest.err &&
14343        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14344        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14345        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14346        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14347       # icc doesn't choke on unknown options, it will just issue warnings
14348       # or remarks (even with -Werror).  So we grep stderr for any message
14349       # that says an option was ignored or not supported.
14350       # When given -MP, icc 7.0 and 7.1 complain thusly:
14351       #   icc: Command line warning: ignoring option '-M'; no argument required
14352       # The diagnosis changed in icc 8.0:
14353       #   icc: Command line remark: option '-MP' not supported
14354       if (grep 'ignoring option' conftest.err ||
14355           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14356         am_cv_CC_dependencies_compiler_type=$depmode
14357         break
14358       fi
14359     fi
14360   done
14361
14362   cd ..
14363   rm -rf conftest.dir
14364 else
14365   am_cv_CC_dependencies_compiler_type=none
14366 fi
14367
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14370 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14371 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14372
14373  if
14374   test "x$enable_dependency_tracking" != xno \
14375   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14376   am__fastdepCC_TRUE=
14377   am__fastdepCC_FALSE='#'
14378 else
14379   am__fastdepCC_TRUE='#'
14380   am__fastdepCC_FALSE=
14381 fi
14382
14383
14384 ac_ext=c
14385 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14386 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14387 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'
14388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14390 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14391 # On Suns, sometimes $CPP names a directory.
14392 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
14393   CPP_FOR_BUILD=
14394 fi
14395 if test -z "$CPP_FOR_BUILD"; then
14396   if ${ac_cv_build_prog_CPP+:} false; then :
14397   $as_echo_n "(cached) " >&6
14398 else
14399       # Double quotes because CPP needs to be expanded
14400     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
14401     do
14402       ac_preproc_ok=false
14403 for ac_c_preproc_warn_flag in '' yes
14404 do
14405   # Use a header file that comes with gcc, so configuring glibc
14406   # with a fresh cross-compiler works.
14407   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14408   # <limits.h> exists even on freestanding compilers.
14409   # On the NeXT, cc -E runs the code through the compiler's parser,
14410   # not just through cpp. "Syntax error" is here to catch this case.
14411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h.  */
14413 #ifdef __STDC__
14414 # include <limits.h>
14415 #else
14416 # include <assert.h>
14417 #endif
14418                      Syntax error
14419 _ACEOF
14420 if ac_fn_c_try_cpp "$LINENO"; then :
14421
14422 else
14423   # Broken: fails on valid input.
14424 continue
14425 fi
14426 rm -f conftest.err conftest.i conftest.$ac_ext
14427
14428   # OK, works on sane cases.  Now check whether nonexistent headers
14429   # can be detected and how.
14430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h.  */
14432 #include <ac_nonexistent.h>
14433 _ACEOF
14434 if ac_fn_c_try_cpp "$LINENO"; then :
14435   # Broken: success on invalid input.
14436 continue
14437 else
14438   # Passes both tests.
14439 ac_preproc_ok=:
14440 break
14441 fi
14442 rm -f conftest.err conftest.i conftest.$ac_ext
14443
14444 done
14445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14446 rm -f conftest.i conftest.err conftest.$ac_ext
14447 if $ac_preproc_ok; then :
14448   break
14449 fi
14450
14451     done
14452     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
14453
14454 fi
14455   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
14456 else
14457   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
14458 fi
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
14460 $as_echo "$CPP_FOR_BUILD" >&6; }
14461 ac_preproc_ok=false
14462 for ac_c_preproc_warn_flag in '' yes
14463 do
14464   # Use a header file that comes with gcc, so configuring glibc
14465   # with a fresh cross-compiler works.
14466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14467   # <limits.h> exists even on freestanding compilers.
14468   # On the NeXT, cc -E runs the code through the compiler's parser,
14469   # not just through cpp. "Syntax error" is here to catch this case.
14470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h.  */
14472 #ifdef __STDC__
14473 # include <limits.h>
14474 #else
14475 # include <assert.h>
14476 #endif
14477                      Syntax error
14478 _ACEOF
14479 if ac_fn_c_try_cpp "$LINENO"; then :
14480
14481 else
14482   # Broken: fails on valid input.
14483 continue
14484 fi
14485 rm -f conftest.err conftest.i conftest.$ac_ext
14486
14487   # OK, works on sane cases.  Now check whether nonexistent headers
14488   # can be detected and how.
14489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h.  */
14491 #include <ac_nonexistent.h>
14492 _ACEOF
14493 if ac_fn_c_try_cpp "$LINENO"; then :
14494   # Broken: success on invalid input.
14495 continue
14496 else
14497   # Passes both tests.
14498 ac_preproc_ok=:
14499 break
14500 fi
14501 rm -f conftest.err conftest.i conftest.$ac_ext
14502
14503 done
14504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14505 rm -f conftest.i conftest.err conftest.$ac_ext
14506 if $ac_preproc_ok; then :
14507
14508 else
14509   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14511 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
14512 See \`config.log' for more details" "$LINENO" 5; }
14513 fi
14514
14515 ac_ext=c
14516 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14517 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14518 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'
14519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14520
14521
14522
14523 ac_tool_prefix=$save_ac_tool_prefix
14524 cross_compiling=$save_cross_compiling
14525
14526
14527 BUILD_EXEEXT=$ac_build_exeext
14528 BUILD_OBJEXT=$ac_build_objext
14529
14530
14531 # Checks for compiler characteristics.
14532 if test "x$GCC" = "xyes"; then
14533   CFLAGS="$CFLAGS -Wall -ansi "
14534 fi
14535
14536 # Checks for library functions.
14537 for ac_func in memmove memset strdup
14538 do :
14539   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14541 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14542   cat >>confdefs.h <<_ACEOF
14543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14544 _ACEOF
14545
14546 fi
14547 done
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14550 $as_echo_n "checking return type of signal handlers... " >&6; }
14551 if ${ac_cv_type_signal+:} false; then :
14552   $as_echo_n "(cached) " >&6
14553 else
14554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h.  */
14556 #include <sys/types.h>
14557 #include <signal.h>
14558
14559 int
14560 main ()
14561 {
14562 return *(signal (0, 0)) (0) == 1;
14563   ;
14564   return 0;
14565 }
14566 _ACEOF
14567 if ac_fn_c_try_compile "$LINENO"; then :
14568   ac_cv_type_signal=int
14569 else
14570   ac_cv_type_signal=void
14571 fi
14572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 fi
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14575 $as_echo "$ac_cv_type_signal" >&6; }
14576
14577 cat >>confdefs.h <<_ACEOF
14578 #define RETSIGTYPE $ac_cv_type_signal
14579 _ACEOF
14580
14581
14582
14583 # Checks for configure options
14584
14585 # --enable-debug
14586
14587 # Check whether --enable-debug was given.
14588 if test "${enable_debug+set}" = set; then :
14589   enableval=$enable_debug;
14590 else
14591   enable_debug=no
14592 fi
14593
14594 if test x$enable_debug = xyes; then
14595
14596 $as_echo "#define DEBUG 1" >>confdefs.h
14597
14598 fi
14599
14600 # --disable-deprecated
14601 # Check whether --enable-deprecated was given.
14602 if test "${enable_deprecated+set}" = set; then :
14603   enableval=$enable_deprecated;
14604 fi
14605
14606 if test x$enable_deprecated = xno; then
14607
14608 $as_echo "#define FRIBIDI_NO_DEPRECATED 1" >>confdefs.h
14609
14610 fi
14611
14612 # --disable-docs
14613 # Check whether --enable-docs was given.
14614 if test "${enable_docs+set}" = set; then :
14615   enableval=$enable_docs;
14616 else
14617   enable_docs=yes
14618 fi
14619
14620 if test x$enable_docs = xyes; then
14621         for ac_prog in c2man
14622 do
14623   # Extract the first word of "$ac_prog", so it can be a program name with args.
14624 set dummy $ac_prog; ac_word=$2
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14626 $as_echo_n "checking for $ac_word... " >&6; }
14627 if ${ac_cv_prog_C2MAN+:} false; then :
14628   $as_echo_n "(cached) " >&6
14629 else
14630   if test -n "$C2MAN"; then
14631   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
14632 else
14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634 for as_dir in $PATH
14635 do
14636   IFS=$as_save_IFS
14637   test -z "$as_dir" && as_dir=.
14638     for ac_exec_ext in '' $ac_executable_extensions; do
14639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640     ac_cv_prog_C2MAN="$ac_prog"
14641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14642     break 2
14643   fi
14644 done
14645   done
14646 IFS=$as_save_IFS
14647
14648 fi
14649 fi
14650 C2MAN=$ac_cv_prog_C2MAN
14651 if test -n "$C2MAN"; then
14652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $C2MAN" >&5
14653 $as_echo "$C2MAN" >&6; }
14654 else
14655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 $as_echo "no" >&6; }
14657 fi
14658
14659
14660   test -n "$C2MAN" && break
14661 done
14662
14663         if test -z "$C2MAN"; then
14664                 as_fn_error $? "c2man is required to build documentation" "$LINENO" 5
14665         fi
14666 fi
14667  if test -n "$C2MAN"; then
14668   FRIBIDI_ENABLE_DOC_TRUE=
14669   FRIBIDI_ENABLE_DOC_FALSE='#'
14670 else
14671   FRIBIDI_ENABLE_DOC_TRUE='#'
14672   FRIBIDI_ENABLE_DOC_FALSE=
14673 fi
14674
14675
14676 # Generate output
14677 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"
14678
14679 cat >confcache <<\_ACEOF
14680 # This file is a shell script that caches the results of configure
14681 # tests run on this system so they can be shared between configure
14682 # scripts and configure runs, see configure's option --config-cache.
14683 # It is not useful on other systems.  If it contains results you don't
14684 # want to keep, you may remove or edit it.
14685 #
14686 # config.status only pays attention to the cache file if you give it
14687 # the --recheck option to rerun configure.
14688 #
14689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14691 # following values.
14692
14693 _ACEOF
14694
14695 # The following way of writing the cache mishandles newlines in values,
14696 # but we know of no workaround that is simple, portable, and efficient.
14697 # So, we kill variables containing newlines.
14698 # Ultrix sh set writes to stderr and can't be redirected directly,
14699 # and sets the high bit in the cache file unless we assign to the vars.
14700 (
14701   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14702     eval ac_val=\$$ac_var
14703     case $ac_val in #(
14704     *${as_nl}*)
14705       case $ac_var in #(
14706       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14708       esac
14709       case $ac_var in #(
14710       _ | IFS | as_nl) ;; #(
14711       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14712       *) { eval $ac_var=; unset $ac_var;} ;;
14713       esac ;;
14714     esac
14715   done
14716
14717   (set) 2>&1 |
14718     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14719     *${as_nl}ac_space=\ *)
14720       # `set' does not quote correctly, so add quotes: double-quote
14721       # substitution turns \\\\ into \\, and sed turns \\ into \.
14722       sed -n \
14723         "s/'/'\\\\''/g;
14724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14725       ;; #(
14726     *)
14727       # `set' quotes correctly as required by POSIX, so do not add quotes.
14728       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14729       ;;
14730     esac |
14731     sort
14732 ) |
14733   sed '
14734      /^ac_cv_env_/b end
14735      t clear
14736      :clear
14737      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14738      t end
14739      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14740      :end' >>confcache
14741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14742   if test -w "$cache_file"; then
14743     if test "x$cache_file" != "x/dev/null"; then
14744       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14745 $as_echo "$as_me: updating cache $cache_file" >&6;}
14746       if test ! -f "$cache_file" || test -h "$cache_file"; then
14747         cat confcache >"$cache_file"
14748       else
14749         case $cache_file in #(
14750         */* | ?:*)
14751           mv -f confcache "$cache_file"$$ &&
14752           mv -f "$cache_file"$$ "$cache_file" ;; #(
14753         *)
14754           mv -f confcache "$cache_file" ;;
14755         esac
14756       fi
14757     fi
14758   else
14759     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14761   fi
14762 fi
14763 rm -f confcache
14764
14765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14766 # Let make expand exec_prefix.
14767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14768
14769 DEFS=-DHAVE_CONFIG_H
14770
14771 ac_libobjs=
14772 ac_ltlibobjs=
14773 U=
14774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14775   # 1. Remove the extension, and $U if already installed.
14776   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14777   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14778   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14779   #    will be set to the directory where LIBOBJS objects are built.
14780   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14781   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14782 done
14783 LIBOBJS=$ac_libobjs
14784
14785 LTLIBOBJS=$ac_ltlibobjs
14786
14787
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14789 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14790    if test -n "$am_sleep_pid"; then
14791      # Hide warnings about reused PIDs.
14792      wait $am_sleep_pid 2>/dev/null
14793    fi
14794    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14795 $as_echo "done" >&6; }
14796  if test -n "$EXEEXT"; then
14797   am__EXEEXT_TRUE=
14798   am__EXEEXT_FALSE='#'
14799 else
14800   am__EXEEXT_TRUE='#'
14801   am__EXEEXT_FALSE=
14802 fi
14803
14804 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14805   as_fn_error $? "conditional \"AMDEP\" was never defined.
14806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14807 fi
14808 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14809   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14811 fi
14812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14813   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14815 fi
14816 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14817   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14819 fi
14820 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14821   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14823 fi
14824 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14825   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14827 fi
14828 if test -z "${FRIBIDI_ENABLE_DOC_TRUE}" && test -z "${FRIBIDI_ENABLE_DOC_FALSE}"; then
14829   as_fn_error $? "conditional \"FRIBIDI_ENABLE_DOC\" was never defined.
14830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14831 fi
14832
14833 : "${CONFIG_STATUS=./config.status}"
14834 ac_write_fail=0
14835 ac_clean_files_save=$ac_clean_files
14836 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14838 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14839 as_write_fail=0
14840 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14841 #! $SHELL
14842 # Generated by $as_me.
14843 # Run this file to recreate the current configuration.
14844 # Compiler output produced by configure, useful for debugging
14845 # configure, is in config.log if it exists.
14846
14847 debug=false
14848 ac_cs_recheck=false
14849 ac_cs_silent=false
14850
14851 SHELL=\${CONFIG_SHELL-$SHELL}
14852 export SHELL
14853 _ASEOF
14854 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14855 ## -------------------- ##
14856 ## M4sh Initialization. ##
14857 ## -------------------- ##
14858
14859 # Be more Bourne compatible
14860 DUALCASE=1; export DUALCASE # for MKS sh
14861 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14862   emulate sh
14863   NULLCMD=:
14864   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14865   # is contrary to our usage.  Disable this feature.
14866   alias -g '${1+"$@"}'='"$@"'
14867   setopt NO_GLOB_SUBST
14868 else
14869   case `(set -o) 2>/dev/null` in #(
14870   *posix*) :
14871     set -o posix ;; #(
14872   *) :
14873      ;;
14874 esac
14875 fi
14876
14877
14878 as_nl='
14879 '
14880 export as_nl
14881 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14882 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14885 # Prefer a ksh shell builtin over an external printf program on Solaris,
14886 # but without wasting forks for bash or zsh.
14887 if test -z "$BASH_VERSION$ZSH_VERSION" \
14888     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14889   as_echo='print -r --'
14890   as_echo_n='print -rn --'
14891 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14892   as_echo='printf %s\n'
14893   as_echo_n='printf %s'
14894 else
14895   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14896     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14897     as_echo_n='/usr/ucb/echo -n'
14898   else
14899     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14900     as_echo_n_body='eval
14901       arg=$1;
14902       case $arg in #(
14903       *"$as_nl"*)
14904         expr "X$arg" : "X\\(.*\\)$as_nl";
14905         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14906       esac;
14907       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14908     '
14909     export as_echo_n_body
14910     as_echo_n='sh -c $as_echo_n_body as_echo'
14911   fi
14912   export as_echo_body
14913   as_echo='sh -c $as_echo_body as_echo'
14914 fi
14915
14916 # The user is always right.
14917 if test "${PATH_SEPARATOR+set}" != set; then
14918   PATH_SEPARATOR=:
14919   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14920     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14921       PATH_SEPARATOR=';'
14922   }
14923 fi
14924
14925
14926 # IFS
14927 # We need space, tab and new line, in precisely that order.  Quoting is
14928 # there to prevent editors from complaining about space-tab.
14929 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14930 # splitting by setting IFS to empty value.)
14931 IFS=" ""        $as_nl"
14932
14933 # Find who we are.  Look in the path if we contain no directory separator.
14934 as_myself=
14935 case $0 in #((
14936   *[\\/]* ) as_myself=$0 ;;
14937   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938 for as_dir in $PATH
14939 do
14940   IFS=$as_save_IFS
14941   test -z "$as_dir" && as_dir=.
14942     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14943   done
14944 IFS=$as_save_IFS
14945
14946      ;;
14947 esac
14948 # We did not find ourselves, most probably we were run as `sh COMMAND'
14949 # in which case we are not to be found in the path.
14950 if test "x$as_myself" = x; then
14951   as_myself=$0
14952 fi
14953 if test ! -f "$as_myself"; then
14954   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14955   exit 1
14956 fi
14957
14958 # Unset variables that we do not need and which cause bugs (e.g. in
14959 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14960 # suppresses any "Segmentation fault" message there.  '((' could
14961 # trigger a bug in pdksh 5.2.14.
14962 for as_var in BASH_ENV ENV MAIL MAILPATH
14963 do eval test x\${$as_var+set} = xset \
14964   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14965 done
14966 PS1='$ '
14967 PS2='> '
14968 PS4='+ '
14969
14970 # NLS nuisances.
14971 LC_ALL=C
14972 export LC_ALL
14973 LANGUAGE=C
14974 export LANGUAGE
14975
14976 # CDPATH.
14977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14978
14979
14980 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14981 # ----------------------------------------
14982 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14983 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14984 # script with STATUS, using 1 if that was 0.
14985 as_fn_error ()
14986 {
14987   as_status=$1; test $as_status -eq 0 && as_status=1
14988   if test "$4"; then
14989     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14990     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14991   fi
14992   $as_echo "$as_me: error: $2" >&2
14993   as_fn_exit $as_status
14994 } # as_fn_error
14995
14996
14997 # as_fn_set_status STATUS
14998 # -----------------------
14999 # Set $? to STATUS, without forking.
15000 as_fn_set_status ()
15001 {
15002   return $1
15003 } # as_fn_set_status
15004
15005 # as_fn_exit STATUS
15006 # -----------------
15007 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15008 as_fn_exit ()
15009 {
15010   set +e
15011   as_fn_set_status $1
15012   exit $1
15013 } # as_fn_exit
15014
15015 # as_fn_unset VAR
15016 # ---------------
15017 # Portably unset VAR.
15018 as_fn_unset ()
15019 {
15020   { eval $1=; unset $1;}
15021 }
15022 as_unset=as_fn_unset
15023 # as_fn_append VAR VALUE
15024 # ----------------------
15025 # Append the text in VALUE to the end of the definition contained in VAR. Take
15026 # advantage of any shell optimizations that allow amortized linear growth over
15027 # repeated appends, instead of the typical quadratic growth present in naive
15028 # implementations.
15029 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15030   eval 'as_fn_append ()
15031   {
15032     eval $1+=\$2
15033   }'
15034 else
15035   as_fn_append ()
15036   {
15037     eval $1=\$$1\$2
15038   }
15039 fi # as_fn_append
15040
15041 # as_fn_arith ARG...
15042 # ------------------
15043 # Perform arithmetic evaluation on the ARGs, and store the result in the
15044 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15045 # must be portable across $(()) and expr.
15046 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15047   eval 'as_fn_arith ()
15048   {
15049     as_val=$(( $* ))
15050   }'
15051 else
15052   as_fn_arith ()
15053   {
15054     as_val=`expr "$@" || test $? -eq 1`
15055   }
15056 fi # as_fn_arith
15057
15058
15059 if expr a : '\(a\)' >/dev/null 2>&1 &&
15060    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15061   as_expr=expr
15062 else
15063   as_expr=false
15064 fi
15065
15066 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15067   as_basename=basename
15068 else
15069   as_basename=false
15070 fi
15071
15072 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15073   as_dirname=dirname
15074 else
15075   as_dirname=false
15076 fi
15077
15078 as_me=`$as_basename -- "$0" ||
15079 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15080          X"$0" : 'X\(//\)$' \| \
15081          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15082 $as_echo X/"$0" |
15083     sed '/^.*\/\([^/][^/]*\)\/*$/{
15084             s//\1/
15085             q
15086           }
15087           /^X\/\(\/\/\)$/{
15088             s//\1/
15089             q
15090           }
15091           /^X\/\(\/\).*/{
15092             s//\1/
15093             q
15094           }
15095           s/.*/./; q'`
15096
15097 # Avoid depending upon Character Ranges.
15098 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15099 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15100 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15101 as_cr_digits='0123456789'
15102 as_cr_alnum=$as_cr_Letters$as_cr_digits
15103
15104 ECHO_C= ECHO_N= ECHO_T=
15105 case `echo -n x` in #(((((
15106 -n*)
15107   case `echo 'xy\c'` in
15108   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15109   xy)  ECHO_C='\c';;
15110   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15111        ECHO_T=' ';;
15112   esac;;
15113 *)
15114   ECHO_N='-n';;
15115 esac
15116
15117 rm -f conf$$ conf$$.exe conf$$.file
15118 if test -d conf$$.dir; then
15119   rm -f conf$$.dir/conf$$.file
15120 else
15121   rm -f conf$$.dir
15122   mkdir conf$$.dir 2>/dev/null
15123 fi
15124 if (echo >conf$$.file) 2>/dev/null; then
15125   if ln -s conf$$.file conf$$ 2>/dev/null; then
15126     as_ln_s='ln -s'
15127     # ... but there are two gotchas:
15128     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15129     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15130     # In both cases, we have to default to `cp -pR'.
15131     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15132       as_ln_s='cp -pR'
15133   elif ln conf$$.file conf$$ 2>/dev/null; then
15134     as_ln_s=ln
15135   else
15136     as_ln_s='cp -pR'
15137   fi
15138 else
15139   as_ln_s='cp -pR'
15140 fi
15141 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15142 rmdir conf$$.dir 2>/dev/null
15143
15144
15145 # as_fn_mkdir_p
15146 # -------------
15147 # Create "$as_dir" as a directory, including parents if necessary.
15148 as_fn_mkdir_p ()
15149 {
15150
15151   case $as_dir in #(
15152   -*) as_dir=./$as_dir;;
15153   esac
15154   test -d "$as_dir" || eval $as_mkdir_p || {
15155     as_dirs=
15156     while :; do
15157       case $as_dir in #(
15158       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15159       *) as_qdir=$as_dir;;
15160       esac
15161       as_dirs="'$as_qdir' $as_dirs"
15162       as_dir=`$as_dirname -- "$as_dir" ||
15163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15164          X"$as_dir" : 'X\(//\)[^/]' \| \
15165          X"$as_dir" : 'X\(//\)$' \| \
15166          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15167 $as_echo X"$as_dir" |
15168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15169             s//\1/
15170             q
15171           }
15172           /^X\(\/\/\)[^/].*/{
15173             s//\1/
15174             q
15175           }
15176           /^X\(\/\/\)$/{
15177             s//\1/
15178             q
15179           }
15180           /^X\(\/\).*/{
15181             s//\1/
15182             q
15183           }
15184           s/.*/./; q'`
15185       test -d "$as_dir" && break
15186     done
15187     test -z "$as_dirs" || eval "mkdir $as_dirs"
15188   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15189
15190
15191 } # as_fn_mkdir_p
15192 if mkdir -p . 2>/dev/null; then
15193   as_mkdir_p='mkdir -p "$as_dir"'
15194 else
15195   test -d ./-p && rmdir ./-p
15196   as_mkdir_p=false
15197 fi
15198
15199
15200 # as_fn_executable_p FILE
15201 # -----------------------
15202 # Test if FILE is an executable regular file.
15203 as_fn_executable_p ()
15204 {
15205   test -f "$1" && test -x "$1"
15206 } # as_fn_executable_p
15207 as_test_x='test -x'
15208 as_executable_p=as_fn_executable_p
15209
15210 # Sed expression to map a string onto a valid CPP name.
15211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15212
15213 # Sed expression to map a string onto a valid variable name.
15214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15215
15216
15217 exec 6>&1
15218 ## ----------------------------------- ##
15219 ## Main body of $CONFIG_STATUS script. ##
15220 ## ----------------------------------- ##
15221 _ASEOF
15222 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15223
15224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15225 # Save the log message, to keep $0 and so on meaningful, and to
15226 # report actual input values of CONFIG_FILES etc. instead of their
15227 # values after options handling.
15228 ac_log="
15229 This file was extended by GNU FriBidi $as_me 1.0.2, which was
15230 generated by GNU Autoconf 2.69.  Invocation command line was
15231
15232   CONFIG_FILES    = $CONFIG_FILES
15233   CONFIG_HEADERS  = $CONFIG_HEADERS
15234   CONFIG_LINKS    = $CONFIG_LINKS
15235   CONFIG_COMMANDS = $CONFIG_COMMANDS
15236   $ $0 $@
15237
15238 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15239 "
15240
15241 _ACEOF
15242
15243 case $ac_config_files in *"
15244 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15245 esac
15246
15247 case $ac_config_headers in *"
15248 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15249 esac
15250
15251
15252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15253 # Files that config.status was made for.
15254 config_files="$ac_config_files"
15255 config_headers="$ac_config_headers"
15256 config_commands="$ac_config_commands"
15257
15258 _ACEOF
15259
15260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15261 ac_cs_usage="\
15262 \`$as_me' instantiates files and other configuration actions
15263 from templates according to the current configuration.  Unless the files
15264 and actions are specified as TAGs, all are instantiated by default.
15265
15266 Usage: $0 [OPTION]... [TAG]...
15267
15268   -h, --help       print this help, then exit
15269   -V, --version    print version number and configuration settings, then exit
15270       --config     print configuration, then exit
15271   -q, --quiet, --silent
15272                    do not print progress messages
15273   -d, --debug      don't remove temporary files
15274       --recheck    update $as_me by reconfiguring in the same conditions
15275       --file=FILE[:TEMPLATE]
15276                    instantiate the configuration file FILE
15277       --header=FILE[:TEMPLATE]
15278                    instantiate the configuration header FILE
15279
15280 Configuration files:
15281 $config_files
15282
15283 Configuration headers:
15284 $config_headers
15285
15286 Configuration commands:
15287 $config_commands
15288
15289 Report bugs to <https://github.com/fribidi/fribidi/issues/new>.
15290 GNU FriBidi home page: <http://fribidi.org/>.
15291 General help using GNU software: <http://www.gnu.org/gethelp/>."
15292
15293 _ACEOF
15294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15295 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15296 ac_cs_version="\\
15297 GNU FriBidi config.status 1.0.2
15298 configured by $0, generated by GNU Autoconf 2.69,
15299   with options \\"\$ac_cs_config\\"
15300
15301 Copyright (C) 2012 Free Software Foundation, Inc.
15302 This config.status script is free software; the Free Software Foundation
15303 gives unlimited permission to copy, distribute and modify it."
15304
15305 ac_pwd='$ac_pwd'
15306 srcdir='$srcdir'
15307 INSTALL='$INSTALL'
15308 MKDIR_P='$MKDIR_P'
15309 AWK='$AWK'
15310 test -n "\$AWK" || AWK=awk
15311 _ACEOF
15312
15313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15314 # The default lists apply if the user does not specify any file.
15315 ac_need_defaults=:
15316 while test $# != 0
15317 do
15318   case $1 in
15319   --*=?*)
15320     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15321     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15322     ac_shift=:
15323     ;;
15324   --*=)
15325     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15326     ac_optarg=
15327     ac_shift=:
15328     ;;
15329   *)
15330     ac_option=$1
15331     ac_optarg=$2
15332     ac_shift=shift
15333     ;;
15334   esac
15335
15336   case $ac_option in
15337   # Handling of the options.
15338   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15339     ac_cs_recheck=: ;;
15340   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15341     $as_echo "$ac_cs_version"; exit ;;
15342   --config | --confi | --conf | --con | --co | --c )
15343     $as_echo "$ac_cs_config"; exit ;;
15344   --debug | --debu | --deb | --de | --d | -d )
15345     debug=: ;;
15346   --file | --fil | --fi | --f )
15347     $ac_shift
15348     case $ac_optarg in
15349     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15350     '') as_fn_error $? "missing file argument" ;;
15351     esac
15352     as_fn_append CONFIG_FILES " '$ac_optarg'"
15353     ac_need_defaults=false;;
15354   --header | --heade | --head | --hea )
15355     $ac_shift
15356     case $ac_optarg in
15357     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15358     esac
15359     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15360     ac_need_defaults=false;;
15361   --he | --h)
15362     # Conflict between --help and --header
15363     as_fn_error $? "ambiguous option: \`$1'
15364 Try \`$0 --help' for more information.";;
15365   --help | --hel | -h )
15366     $as_echo "$ac_cs_usage"; exit ;;
15367   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15368   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15369     ac_cs_silent=: ;;
15370
15371   # This is an error.
15372   -*) as_fn_error $? "unrecognized option: \`$1'
15373 Try \`$0 --help' for more information." ;;
15374
15375   *) as_fn_append ac_config_targets " $1"
15376      ac_need_defaults=false ;;
15377
15378   esac
15379   shift
15380 done
15381
15382 ac_configure_extra_args=
15383
15384 if $ac_cs_silent; then
15385   exec 6>/dev/null
15386   ac_configure_extra_args="$ac_configure_extra_args --silent"
15387 fi
15388
15389 _ACEOF
15390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15391 if \$ac_cs_recheck; then
15392   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15393   shift
15394   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15395   CONFIG_SHELL='$SHELL'
15396   export CONFIG_SHELL
15397   exec "\$@"
15398 fi
15399
15400 _ACEOF
15401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15402 exec 5>>config.log
15403 {
15404   echo
15405   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15406 ## Running $as_me. ##
15407 _ASBOX
15408   $as_echo "$ac_log"
15409 } >&5
15410
15411 _ACEOF
15412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15413 #
15414 # INIT-COMMANDS
15415 #
15416 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15417
15418
15419 # The HP-UX ksh and POSIX shell print the target directory to stdout
15420 # if CDPATH is set.
15421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15422
15423 sed_quote_subst='$sed_quote_subst'
15424 double_quote_subst='$double_quote_subst'
15425 delay_variable_subst='$delay_variable_subst'
15426 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15427 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15428 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15429 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15430 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15431 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15432 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15433 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15434 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15435 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15436 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15437 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15438 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15439 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15440 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15441 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15442 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15443 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15444 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15445 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15446 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15447 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15448 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15449 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15450 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15451 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15452 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15453 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15454 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15455 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15456 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15457 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15458 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15459 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15460 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15461 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15462 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15463 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15464 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15465 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15466 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15467 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15468 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15469 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15470 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15471 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15472 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15473 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15474 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15475 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15476 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15477 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15478 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15479 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15480 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15481 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15482 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15483 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15484 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"`'
15485 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15486 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15487 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15488 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15489 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15490 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15491 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15492 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15493 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15494 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15495 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15496 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15497 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15498 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15499 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15500 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15501 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15502 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15503 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15504 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15505 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15506 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15507 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15508 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15509 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15510 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15511 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15512 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15513 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15514 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15515 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15516 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15517 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15518 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15519 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15520 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15521 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15522 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15523 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15524 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15525 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15526 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15527 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15528 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15529 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15530 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15531 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15532 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15533 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15534 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15535 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15536 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15537 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15538 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15539 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15540 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15541 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15542 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15543 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15544 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15545 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15546 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15547 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15548 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15549 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15550 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15551 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15552 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15553 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15554 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15555 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15556 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15557 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15558 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15559 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15560 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15561
15562 LTCC='$LTCC'
15563 LTCFLAGS='$LTCFLAGS'
15564 compiler='$compiler_DEFAULT'
15565
15566 # A function that is used when there is no print builtin or printf.
15567 func_fallback_echo ()
15568 {
15569   eval 'cat <<_LTECHO_EOF
15570 \$1
15571 _LTECHO_EOF'
15572 }
15573
15574 # Quote evaled strings.
15575 for var in SHELL \
15576 ECHO \
15577 PATH_SEPARATOR \
15578 SED \
15579 GREP \
15580 EGREP \
15581 FGREP \
15582 LD \
15583 NM \
15584 LN_S \
15585 lt_SP2NL \
15586 lt_NL2SP \
15587 reload_flag \
15588 OBJDUMP \
15589 deplibs_check_method \
15590 file_magic_cmd \
15591 file_magic_glob \
15592 want_nocaseglob \
15593 DLLTOOL \
15594 sharedlib_from_linklib_cmd \
15595 AR \
15596 AR_FLAGS \
15597 archiver_list_spec \
15598 STRIP \
15599 RANLIB \
15600 CC \
15601 CFLAGS \
15602 compiler \
15603 lt_cv_sys_global_symbol_pipe \
15604 lt_cv_sys_global_symbol_to_cdecl \
15605 lt_cv_sys_global_symbol_to_import \
15606 lt_cv_sys_global_symbol_to_c_name_address \
15607 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15608 lt_cv_nm_interface \
15609 nm_file_list_spec \
15610 lt_cv_truncate_bin \
15611 lt_prog_compiler_no_builtin_flag \
15612 lt_prog_compiler_pic \
15613 lt_prog_compiler_wl \
15614 lt_prog_compiler_static \
15615 lt_cv_prog_compiler_c_o \
15616 need_locks \
15617 MANIFEST_TOOL \
15618 DSYMUTIL \
15619 NMEDIT \
15620 LIPO \
15621 OTOOL \
15622 OTOOL64 \
15623 shrext_cmds \
15624 export_dynamic_flag_spec \
15625 whole_archive_flag_spec \
15626 compiler_needs_object \
15627 with_gnu_ld \
15628 allow_undefined_flag \
15629 no_undefined_flag \
15630 hardcode_libdir_flag_spec \
15631 hardcode_libdir_separator \
15632 exclude_expsyms \
15633 include_expsyms \
15634 file_list_spec \
15635 variables_saved_for_relink \
15636 libname_spec \
15637 library_names_spec \
15638 soname_spec \
15639 install_override_mode \
15640 finish_eval \
15641 old_striplib \
15642 striplib; do
15643     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15644     *[\\\\\\\`\\"\\\$]*)
15645       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15646       ;;
15647     *)
15648       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15649       ;;
15650     esac
15651 done
15652
15653 # Double-quote double-evaled strings.
15654 for var in reload_cmds \
15655 old_postinstall_cmds \
15656 old_postuninstall_cmds \
15657 old_archive_cmds \
15658 extract_expsyms_cmds \
15659 old_archive_from_new_cmds \
15660 old_archive_from_expsyms_cmds \
15661 archive_cmds \
15662 archive_expsym_cmds \
15663 module_cmds \
15664 module_expsym_cmds \
15665 export_symbols_cmds \
15666 prelink_cmds \
15667 postlink_cmds \
15668 postinstall_cmds \
15669 postuninstall_cmds \
15670 finish_cmds \
15671 sys_lib_search_path_spec \
15672 configure_time_dlsearch_path \
15673 configure_time_lt_sys_library_path; do
15674     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15675     *[\\\\\\\`\\"\\\$]*)
15676       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15677       ;;
15678     *)
15679       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15680       ;;
15681     esac
15682 done
15683
15684 ac_aux_dir='$ac_aux_dir'
15685
15686 # See if we are running on zsh, and set the options that allow our
15687 # commands through without removal of \ escapes INIT.
15688 if test -n "\${ZSH_VERSION+set}"; then
15689    setopt NO_GLOB_SUBST
15690 fi
15691
15692
15693     PACKAGE='$PACKAGE'
15694     VERSION='$VERSION'
15695     RM='$RM'
15696     ofile='$ofile'
15697
15698
15699
15700
15701 _ACEOF
15702
15703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15704
15705 # Handling of arguments.
15706 for ac_config_target in $ac_config_targets
15707 do
15708   case $ac_config_target in
15709     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15710     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15711     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15712     "fribidi.pc") CONFIG_FILES="$CONFIG_FILES fribidi.pc" ;;
15713     "lib/fribidi-config.h") CONFIG_FILES="$CONFIG_FILES lib/fribidi-config.h" ;;
15714     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15715     "gen.tab/Makefile") CONFIG_FILES="$CONFIG_FILES gen.tab/Makefile" ;;
15716     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15717     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
15718     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15719     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15720     "test/unicode-conformance/Makefile") CONFIG_FILES="$CONFIG_FILES test/unicode-conformance/Makefile" ;;
15721
15722   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15723   esac
15724 done
15725
15726
15727 # If the user did not use the arguments to specify the items to instantiate,
15728 # then the envvar interface is used.  Set only those that are not.
15729 # We use the long form for the default assignment because of an extremely
15730 # bizarre bug on SunOS 4.1.3.
15731 if $ac_need_defaults; then
15732   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15733   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15734   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15735 fi
15736
15737 # Have a temporary directory for convenience.  Make it in the build tree
15738 # simply because there is no reason against having it here, and in addition,
15739 # creating and moving files from /tmp can sometimes cause problems.
15740 # Hook for its removal unless debugging.
15741 # Note that there is a small window in which the directory will not be cleaned:
15742 # after its creation but before its name has been assigned to `$tmp'.
15743 $debug ||
15744 {
15745   tmp= ac_tmp=
15746   trap 'exit_status=$?
15747   : "${ac_tmp:=$tmp}"
15748   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15749 ' 0
15750   trap 'as_fn_exit 1' 1 2 13 15
15751 }
15752 # Create a (secure) tmp directory for tmp files.
15753
15754 {
15755   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15756   test -d "$tmp"
15757 }  ||
15758 {
15759   tmp=./conf$$-$RANDOM
15760   (umask 077 && mkdir "$tmp")
15761 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15762 ac_tmp=$tmp
15763
15764 # Set up the scripts for CONFIG_FILES section.
15765 # No need to generate them if there are no CONFIG_FILES.
15766 # This happens for instance with `./config.status config.h'.
15767 if test -n "$CONFIG_FILES"; then
15768
15769
15770 ac_cr=`echo X | tr X '\015'`
15771 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15772 # But we know of no other shell where ac_cr would be empty at this
15773 # point, so we can use a bashism as a fallback.
15774 if test "x$ac_cr" = x; then
15775   eval ac_cr=\$\'\\r\'
15776 fi
15777 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15778 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15779   ac_cs_awk_cr='\\r'
15780 else
15781   ac_cs_awk_cr=$ac_cr
15782 fi
15783
15784 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15785 _ACEOF
15786
15787
15788 {
15789   echo "cat >conf$$subs.awk <<_ACEOF" &&
15790   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15791   echo "_ACEOF"
15792 } >conf$$subs.sh ||
15793   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15794 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15795 ac_delim='%!_!# '
15796 for ac_last_try in false false false false false :; do
15797   . ./conf$$subs.sh ||
15798     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15799
15800   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15801   if test $ac_delim_n = $ac_delim_num; then
15802     break
15803   elif $ac_last_try; then
15804     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15805   else
15806     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15807   fi
15808 done
15809 rm -f conf$$subs.sh
15810
15811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15812 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15813 _ACEOF
15814 sed -n '
15815 h
15816 s/^/S["/; s/!.*/"]=/
15817 p
15818 g
15819 s/^[^!]*!//
15820 :repl
15821 t repl
15822 s/'"$ac_delim"'$//
15823 t delim
15824 :nl
15825 h
15826 s/\(.\{148\}\)..*/\1/
15827 t more1
15828 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15829 p
15830 n
15831 b repl
15832 :more1
15833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15834 p
15835 g
15836 s/.\{148\}//
15837 t nl
15838 :delim
15839 h
15840 s/\(.\{148\}\)..*/\1/
15841 t more2
15842 s/["\\]/\\&/g; s/^/"/; s/$/"/
15843 p
15844 b
15845 :more2
15846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15847 p
15848 g
15849 s/.\{148\}//
15850 t delim
15851 ' <conf$$subs.awk | sed '
15852 /^[^""]/{
15853   N
15854   s/\n//
15855 }
15856 ' >>$CONFIG_STATUS || ac_write_fail=1
15857 rm -f conf$$subs.awk
15858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15859 _ACAWK
15860 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15861   for (key in S) S_is_set[key] = 1
15862   FS = "\a"
15863
15864 }
15865 {
15866   line = $ 0
15867   nfields = split(line, field, "@")
15868   substed = 0
15869   len = length(field[1])
15870   for (i = 2; i < nfields; i++) {
15871     key = field[i]
15872     keylen = length(key)
15873     if (S_is_set[key]) {
15874       value = S[key]
15875       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15876       len += length(value) + length(field[++i])
15877       substed = 1
15878     } else
15879       len += 1 + keylen
15880   }
15881
15882   print line
15883 }
15884
15885 _ACAWK
15886 _ACEOF
15887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15889   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15890 else
15891   cat
15892 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15893   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15894 _ACEOF
15895
15896 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15897 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15898 # trailing colons and then remove the whole line if VPATH becomes empty
15899 # (actually we leave an empty line to preserve line numbers).
15900 if test "x$srcdir" = x.; then
15901   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15902 h
15903 s///
15904 s/^/:/
15905 s/[      ]*$/:/
15906 s/:\$(srcdir):/:/g
15907 s/:\${srcdir}:/:/g
15908 s/:@srcdir@:/:/g
15909 s/^:*//
15910 s/:*$//
15911 x
15912 s/\(=[   ]*\).*/\1/
15913 G
15914 s/\n//
15915 s/^[^=]*=[       ]*$//
15916 }'
15917 fi
15918
15919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15920 fi # test -n "$CONFIG_FILES"
15921
15922 # Set up the scripts for CONFIG_HEADERS section.
15923 # No need to generate them if there are no CONFIG_HEADERS.
15924 # This happens for instance with `./config.status Makefile'.
15925 if test -n "$CONFIG_HEADERS"; then
15926 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15927 BEGIN {
15928 _ACEOF
15929
15930 # Transform confdefs.h into an awk script `defines.awk', embedded as
15931 # here-document in config.status, that substitutes the proper values into
15932 # config.h.in to produce config.h.
15933
15934 # Create a delimiter string that does not exist in confdefs.h, to ease
15935 # handling of long lines.
15936 ac_delim='%!_!# '
15937 for ac_last_try in false false :; do
15938   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15939   if test -z "$ac_tt"; then
15940     break
15941   elif $ac_last_try; then
15942     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15943   else
15944     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15945   fi
15946 done
15947
15948 # For the awk script, D is an array of macro values keyed by name,
15949 # likewise P contains macro parameters if any.  Preserve backslash
15950 # newline sequences.
15951
15952 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15953 sed -n '
15954 s/.\{148\}/&'"$ac_delim"'/g
15955 t rset
15956 :rset
15957 s/^[     ]*#[    ]*define[       ][      ]*/ /
15958 t def
15959 d
15960 :def
15961 s/\\$//
15962 t bsnl
15963 s/["\\]/\\&/g
15964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15965 D["\1"]=" \3"/p
15966 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15967 d
15968 :bsnl
15969 s/["\\]/\\&/g
15970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15971 D["\1"]=" \3\\\\\\n"\\/p
15972 t cont
15973 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15974 t cont
15975 d
15976 :cont
15977 n
15978 s/.\{148\}/&'"$ac_delim"'/g
15979 t clear
15980 :clear
15981 s/\\$//
15982 t bsnlc
15983 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15984 d
15985 :bsnlc
15986 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15987 b cont
15988 ' <confdefs.h | sed '
15989 s/'"$ac_delim"'/"\\\
15990 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15991
15992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15993   for (key in D) D_is_set[key] = 1
15994   FS = "\a"
15995 }
15996 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15997   line = \$ 0
15998   split(line, arg, " ")
15999   if (arg[1] == "#") {
16000     defundef = arg[2]
16001     mac1 = arg[3]
16002   } else {
16003     defundef = substr(arg[1], 2)
16004     mac1 = arg[2]
16005   }
16006   split(mac1, mac2, "(") #)
16007   macro = mac2[1]
16008   prefix = substr(line, 1, index(line, defundef) - 1)
16009   if (D_is_set[macro]) {
16010     # Preserve the white space surrounding the "#".
16011     print prefix "define", macro P[macro] D[macro]
16012     next
16013   } else {
16014     # Replace #undef with comments.  This is necessary, for example,
16015     # in the case of _POSIX_SOURCE, which is predefined and required
16016     # on some systems where configure will not decide to define it.
16017     if (defundef == "undef") {
16018       print "/*", prefix defundef, macro, "*/"
16019       next
16020     }
16021   }
16022 }
16023 { print }
16024 _ACAWK
16025 _ACEOF
16026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16028 fi # test -n "$CONFIG_HEADERS"
16029
16030
16031 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16032 shift
16033 for ac_tag
16034 do
16035   case $ac_tag in
16036   :[FHLC]) ac_mode=$ac_tag; continue;;
16037   esac
16038   case $ac_mode$ac_tag in
16039   :[FHL]*:*);;
16040   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16041   :[FH]-) ac_tag=-:-;;
16042   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16043   esac
16044   ac_save_IFS=$IFS
16045   IFS=:
16046   set x $ac_tag
16047   IFS=$ac_save_IFS
16048   shift
16049   ac_file=$1
16050   shift
16051
16052   case $ac_mode in
16053   :L) ac_source=$1;;
16054   :[FH])
16055     ac_file_inputs=
16056     for ac_f
16057     do
16058       case $ac_f in
16059       -) ac_f="$ac_tmp/stdin";;
16060       *) # Look for the file first in the build tree, then in the source tree
16061          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16062          # because $ac_f cannot contain `:'.
16063          test -f "$ac_f" ||
16064            case $ac_f in
16065            [\\/$]*) false;;
16066            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16067            esac ||
16068            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16069       esac
16070       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16071       as_fn_append ac_file_inputs " '$ac_f'"
16072     done
16073
16074     # Let's still pretend it is `configure' which instantiates (i.e., don't
16075     # use $as_me), people would be surprised to read:
16076     #    /* config.h.  Generated by config.status.  */
16077     configure_input='Generated from '`
16078           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16079         `' by configure.'
16080     if test x"$ac_file" != x-; then
16081       configure_input="$ac_file.  $configure_input"
16082       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16083 $as_echo "$as_me: creating $ac_file" >&6;}
16084     fi
16085     # Neutralize special characters interpreted by sed in replacement strings.
16086     case $configure_input in #(
16087     *\&* | *\|* | *\\* )
16088        ac_sed_conf_input=`$as_echo "$configure_input" |
16089        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16090     *) ac_sed_conf_input=$configure_input;;
16091     esac
16092
16093     case $ac_tag in
16094     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16095       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16096     esac
16097     ;;
16098   esac
16099
16100   ac_dir=`$as_dirname -- "$ac_file" ||
16101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16102          X"$ac_file" : 'X\(//\)[^/]' \| \
16103          X"$ac_file" : 'X\(//\)$' \| \
16104          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16105 $as_echo X"$ac_file" |
16106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16107             s//\1/
16108             q
16109           }
16110           /^X\(\/\/\)[^/].*/{
16111             s//\1/
16112             q
16113           }
16114           /^X\(\/\/\)$/{
16115             s//\1/
16116             q
16117           }
16118           /^X\(\/\).*/{
16119             s//\1/
16120             q
16121           }
16122           s/.*/./; q'`
16123   as_dir="$ac_dir"; as_fn_mkdir_p
16124   ac_builddir=.
16125
16126 case "$ac_dir" in
16127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16128 *)
16129   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16130   # A ".." for each directory in $ac_dir_suffix.
16131   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16132   case $ac_top_builddir_sub in
16133   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16134   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16135   esac ;;
16136 esac
16137 ac_abs_top_builddir=$ac_pwd
16138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16139 # for backward compatibility:
16140 ac_top_builddir=$ac_top_build_prefix
16141
16142 case $srcdir in
16143   .)  # We are building in place.
16144     ac_srcdir=.
16145     ac_top_srcdir=$ac_top_builddir_sub
16146     ac_abs_top_srcdir=$ac_pwd ;;
16147   [\\/]* | ?:[\\/]* )  # Absolute name.
16148     ac_srcdir=$srcdir$ac_dir_suffix;
16149     ac_top_srcdir=$srcdir
16150     ac_abs_top_srcdir=$srcdir ;;
16151   *) # Relative name.
16152     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16153     ac_top_srcdir=$ac_top_build_prefix$srcdir
16154     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16155 esac
16156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16157
16158
16159   case $ac_mode in
16160   :F)
16161   #
16162   # CONFIG_FILE
16163   #
16164
16165   case $INSTALL in
16166   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16167   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16168   esac
16169   ac_MKDIR_P=$MKDIR_P
16170   case $MKDIR_P in
16171   [\\/$]* | ?:[\\/]* ) ;;
16172   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16173   esac
16174 _ACEOF
16175
16176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16177 # If the template does not know about datarootdir, expand it.
16178 # FIXME: This hack should be removed a few years after 2.60.
16179 ac_datarootdir_hack=; ac_datarootdir_seen=
16180 ac_sed_dataroot='
16181 /datarootdir/ {
16182   p
16183   q
16184 }
16185 /@datadir@/p
16186 /@docdir@/p
16187 /@infodir@/p
16188 /@localedir@/p
16189 /@mandir@/p'
16190 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16191 *datarootdir*) ac_datarootdir_seen=yes;;
16192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16193   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16194 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16195 _ACEOF
16196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16197   ac_datarootdir_hack='
16198   s&@datadir@&$datadir&g
16199   s&@docdir@&$docdir&g
16200   s&@infodir@&$infodir&g
16201   s&@localedir@&$localedir&g
16202   s&@mandir@&$mandir&g
16203   s&\\\${datarootdir}&$datarootdir&g' ;;
16204 esac
16205 _ACEOF
16206
16207 # Neutralize VPATH when `$srcdir' = `.'.
16208 # Shell code in configure.ac might set extrasub.
16209 # FIXME: do we really want to maintain this feature?
16210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16211 ac_sed_extra="$ac_vpsub
16212 $extrasub
16213 _ACEOF
16214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16215 :t
16216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16217 s|@configure_input@|$ac_sed_conf_input|;t t
16218 s&@top_builddir@&$ac_top_builddir_sub&;t t
16219 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16220 s&@srcdir@&$ac_srcdir&;t t
16221 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16222 s&@top_srcdir@&$ac_top_srcdir&;t t
16223 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16224 s&@builddir@&$ac_builddir&;t t
16225 s&@abs_builddir@&$ac_abs_builddir&;t t
16226 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16227 s&@INSTALL@&$ac_INSTALL&;t t
16228 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16229 $ac_datarootdir_hack
16230 "
16231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16232   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16233
16234 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16235   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16236   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16237       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16238   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16239 which seems to be undefined.  Please make sure it is defined" >&5
16240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16241 which seems to be undefined.  Please make sure it is defined" >&2;}
16242
16243   rm -f "$ac_tmp/stdin"
16244   case $ac_file in
16245   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16246   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16247   esac \
16248   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16249  ;;
16250   :H)
16251   #
16252   # CONFIG_HEADER
16253   #
16254   if test x"$ac_file" != x-; then
16255     {
16256       $as_echo "/* $configure_input  */" \
16257       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16258     } >"$ac_tmp/config.h" \
16259       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16260     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16261       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16262 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16263     else
16264       rm -f "$ac_file"
16265       mv "$ac_tmp/config.h" "$ac_file" \
16266         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16267     fi
16268   else
16269     $as_echo "/* $configure_input  */" \
16270       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16271       || as_fn_error $? "could not create -" "$LINENO" 5
16272   fi
16273 # Compute "$ac_file"'s index in $config_headers.
16274 _am_arg="$ac_file"
16275 _am_stamp_count=1
16276 for _am_header in $config_headers :; do
16277   case $_am_header in
16278     $_am_arg | $_am_arg:* )
16279       break ;;
16280     * )
16281       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16282   esac
16283 done
16284 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16285 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16286          X"$_am_arg" : 'X\(//\)[^/]' \| \
16287          X"$_am_arg" : 'X\(//\)$' \| \
16288          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16289 $as_echo X"$_am_arg" |
16290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16291             s//\1/
16292             q
16293           }
16294           /^X\(\/\/\)[^/].*/{
16295             s//\1/
16296             q
16297           }
16298           /^X\(\/\/\)$/{
16299             s//\1/
16300             q
16301           }
16302           /^X\(\/\).*/{
16303             s//\1/
16304             q
16305           }
16306           s/.*/./; q'`/stamp-h$_am_stamp_count
16307  ;;
16308
16309   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16310 $as_echo "$as_me: executing $ac_file commands" >&6;}
16311  ;;
16312   esac
16313
16314
16315   case $ac_file$ac_mode in
16316     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16317   # Older Autoconf quotes --file arguments for eval, but not when files
16318   # are listed without --file.  Let's play safe and only enable the eval
16319   # if we detect the quoting.
16320   case $CONFIG_FILES in
16321   *\'*) eval set x "$CONFIG_FILES" ;;
16322   *)   set x $CONFIG_FILES ;;
16323   esac
16324   shift
16325   for mf
16326   do
16327     # Strip MF so we end up with the name of the file.
16328     mf=`echo "$mf" | sed -e 's/:.*$//'`
16329     # Check whether this is an Automake generated Makefile or not.
16330     # We used to match only the files named 'Makefile.in', but
16331     # some people rename them; so instead we look at the file content.
16332     # Grep'ing the first line is not enough: some people post-process
16333     # each Makefile.in and add a new line on top of each file to say so.
16334     # Grep'ing the whole file is not good either: AIX grep has a line
16335     # limit of 2048, but all sed's we know have understand at least 4000.
16336     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16337       dirpart=`$as_dirname -- "$mf" ||
16338 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16339          X"$mf" : 'X\(//\)[^/]' \| \
16340          X"$mf" : 'X\(//\)$' \| \
16341          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16342 $as_echo X"$mf" |
16343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16344             s//\1/
16345             q
16346           }
16347           /^X\(\/\/\)[^/].*/{
16348             s//\1/
16349             q
16350           }
16351           /^X\(\/\/\)$/{
16352             s//\1/
16353             q
16354           }
16355           /^X\(\/\).*/{
16356             s//\1/
16357             q
16358           }
16359           s/.*/./; q'`
16360     else
16361       continue
16362     fi
16363     # Extract the definition of DEPDIR, am__include, and am__quote
16364     # from the Makefile without running 'make'.
16365     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16366     test -z "$DEPDIR" && continue
16367     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16368     test -z "$am__include" && continue
16369     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16370     # Find all dependency output files, they are included files with
16371     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16372     # simplest approach to changing $(DEPDIR) to its actual value in the
16373     # expansion.
16374     for file in `sed -n "
16375       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16376          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16377       # Make sure the directory exists.
16378       test -f "$dirpart/$file" && continue
16379       fdir=`$as_dirname -- "$file" ||
16380 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16381          X"$file" : 'X\(//\)[^/]' \| \
16382          X"$file" : 'X\(//\)$' \| \
16383          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16384 $as_echo X"$file" |
16385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16386             s//\1/
16387             q
16388           }
16389           /^X\(\/\/\)[^/].*/{
16390             s//\1/
16391             q
16392           }
16393           /^X\(\/\/\)$/{
16394             s//\1/
16395             q
16396           }
16397           /^X\(\/\).*/{
16398             s//\1/
16399             q
16400           }
16401           s/.*/./; q'`
16402       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16403       # echo "creating $dirpart/$file"
16404       echo '# dummy' > "$dirpart/$file"
16405     done
16406   done
16407 }
16408  ;;
16409     "libtool":C)
16410
16411     # See if we are running on zsh, and set the options that allow our
16412     # commands through without removal of \ escapes.
16413     if test -n "${ZSH_VERSION+set}"; then
16414       setopt NO_GLOB_SUBST
16415     fi
16416
16417     cfgfile=${ofile}T
16418     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16419     $RM "$cfgfile"
16420
16421     cat <<_LT_EOF >> "$cfgfile"
16422 #! $SHELL
16423 # Generated automatically by $as_me ($PACKAGE) $VERSION
16424 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16425 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16426
16427 # Provide generalized library-building support services.
16428 # Written by Gordon Matzigkeit, 1996
16429
16430 # Copyright (C) 2014 Free Software Foundation, Inc.
16431 # This is free software; see the source for copying conditions.  There is NO
16432 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16433
16434 # GNU Libtool is free software; you can redistribute it and/or modify
16435 # it under the terms of the GNU General Public License as published by
16436 # the Free Software Foundation; either version 2 of of the License, or
16437 # (at your option) any later version.
16438 #
16439 # As a special exception to the GNU General Public License, if you
16440 # distribute this file as part of a program or library that is built
16441 # using GNU Libtool, you may include this file under the  same
16442 # distribution terms that you use for the rest of that program.
16443 #
16444 # GNU Libtool is distributed in the hope that it will be useful, but
16445 # WITHOUT ANY WARRANTY; without even the implied warranty of
16446 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16447 # GNU General Public License for more details.
16448 #
16449 # You should have received a copy of the GNU General Public License
16450 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16451
16452
16453 # The names of the tagged configurations supported by this script.
16454 available_tags=''
16455
16456 # Configured defaults for sys_lib_dlsearch_path munging.
16457 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16458
16459 # ### BEGIN LIBTOOL CONFIG
16460
16461 # Which release of libtool.m4 was used?
16462 macro_version=$macro_version
16463 macro_revision=$macro_revision
16464
16465 # Whether or not to build static libraries.
16466 build_old_libs=$enable_static
16467
16468 # Whether or not to build shared libraries.
16469 build_libtool_libs=$enable_shared
16470
16471 # What type of objects to build.
16472 pic_mode=$pic_mode
16473
16474 # Whether or not to optimize for fast installation.
16475 fast_install=$enable_fast_install
16476
16477 # Shared archive member basename,for filename based shared library versioning on AIX.
16478 shared_archive_member_spec=$shared_archive_member_spec
16479
16480 # Shell to use when invoking shell scripts.
16481 SHELL=$lt_SHELL
16482
16483 # An echo program that protects backslashes.
16484 ECHO=$lt_ECHO
16485
16486 # The PATH separator for the build system.
16487 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16488
16489 # The host system.
16490 host_alias=$host_alias
16491 host=$host
16492 host_os=$host_os
16493
16494 # The build system.
16495 build_alias=$build_alias
16496 build=$build
16497 build_os=$build_os
16498
16499 # A sed program that does not truncate output.
16500 SED=$lt_SED
16501
16502 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16503 Xsed="\$SED -e 1s/^X//"
16504
16505 # A grep program that handles long lines.
16506 GREP=$lt_GREP
16507
16508 # An ERE matcher.
16509 EGREP=$lt_EGREP
16510
16511 # A literal string matcher.
16512 FGREP=$lt_FGREP
16513
16514 # A BSD- or MS-compatible name lister.
16515 NM=$lt_NM
16516
16517 # Whether we need soft or hard links.
16518 LN_S=$lt_LN_S
16519
16520 # What is the maximum length of a command?
16521 max_cmd_len=$max_cmd_len
16522
16523 # Object file suffix (normally "o").
16524 objext=$ac_objext
16525
16526 # Executable file suffix (normally "").
16527 exeext=$exeext
16528
16529 # whether the shell understands "unset".
16530 lt_unset=$lt_unset
16531
16532 # turn spaces into newlines.
16533 SP2NL=$lt_lt_SP2NL
16534
16535 # turn newlines into spaces.
16536 NL2SP=$lt_lt_NL2SP
16537
16538 # convert \$build file names to \$host format.
16539 to_host_file_cmd=$lt_cv_to_host_file_cmd
16540
16541 # convert \$build files to toolchain format.
16542 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16543
16544 # An object symbol dumper.
16545 OBJDUMP=$lt_OBJDUMP
16546
16547 # Method to check whether dependent libraries are shared objects.
16548 deplibs_check_method=$lt_deplibs_check_method
16549
16550 # Command to use when deplibs_check_method = "file_magic".
16551 file_magic_cmd=$lt_file_magic_cmd
16552
16553 # How to find potential files when deplibs_check_method = "file_magic".
16554 file_magic_glob=$lt_file_magic_glob
16555
16556 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16557 want_nocaseglob=$lt_want_nocaseglob
16558
16559 # DLL creation program.
16560 DLLTOOL=$lt_DLLTOOL
16561
16562 # Command to associate shared and link libraries.
16563 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16564
16565 # The archiver.
16566 AR=$lt_AR
16567
16568 # Flags to create an archive.
16569 AR_FLAGS=$lt_AR_FLAGS
16570
16571 # How to feed a file listing to the archiver.
16572 archiver_list_spec=$lt_archiver_list_spec
16573
16574 # A symbol stripping program.
16575 STRIP=$lt_STRIP
16576
16577 # Commands used to install an old-style archive.
16578 RANLIB=$lt_RANLIB
16579 old_postinstall_cmds=$lt_old_postinstall_cmds
16580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16581
16582 # Whether to use a lock for old archive extraction.
16583 lock_old_archive_extraction=$lock_old_archive_extraction
16584
16585 # A C compiler.
16586 LTCC=$lt_CC
16587
16588 # LTCC compiler flags.
16589 LTCFLAGS=$lt_CFLAGS
16590
16591 # Take the output of nm and produce a listing of raw symbols and C names.
16592 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16593
16594 # Transform the output of nm in a proper C declaration.
16595 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16596
16597 # Transform the output of nm into a list of symbols to manually relocate.
16598 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16599
16600 # Transform the output of nm in a C name address pair.
16601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16602
16603 # Transform the output of nm in a C name address pair when lib prefix is needed.
16604 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16605
16606 # The name lister interface.
16607 nm_interface=$lt_lt_cv_nm_interface
16608
16609 # Specify filename containing input files for \$NM.
16610 nm_file_list_spec=$lt_nm_file_list_spec
16611
16612 # The root where to search for dependent libraries,and where our libraries should be installed.
16613 lt_sysroot=$lt_sysroot
16614
16615 # Command to truncate a binary pipe.
16616 lt_truncate_bin=$lt_lt_cv_truncate_bin
16617
16618 # The name of the directory that contains temporary libtool files.
16619 objdir=$objdir
16620
16621 # Used to examine libraries when file_magic_cmd begins with "file".
16622 MAGIC_CMD=$MAGIC_CMD
16623
16624 # Must we lock files when doing compilation?
16625 need_locks=$lt_need_locks
16626
16627 # Manifest tool.
16628 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16629
16630 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16631 DSYMUTIL=$lt_DSYMUTIL
16632
16633 # Tool to change global to local symbols on Mac OS X.
16634 NMEDIT=$lt_NMEDIT
16635
16636 # Tool to manipulate fat objects and archives on Mac OS X.
16637 LIPO=$lt_LIPO
16638
16639 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16640 OTOOL=$lt_OTOOL
16641
16642 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16643 OTOOL64=$lt_OTOOL64
16644
16645 # Old archive suffix (normally "a").
16646 libext=$libext
16647
16648 # Shared library suffix (normally ".so").
16649 shrext_cmds=$lt_shrext_cmds
16650
16651 # The commands to extract the exported symbol list from a shared archive.
16652 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16653
16654 # Variables whose values should be saved in libtool wrapper scripts and
16655 # restored at link time.
16656 variables_saved_for_relink=$lt_variables_saved_for_relink
16657
16658 # Do we need the "lib" prefix for modules?
16659 need_lib_prefix=$need_lib_prefix
16660
16661 # Do we need a version for libraries?
16662 need_version=$need_version
16663
16664 # Library versioning type.
16665 version_type=$version_type
16666
16667 # Shared library runtime path variable.
16668 runpath_var=$runpath_var
16669
16670 # Shared library path variable.
16671 shlibpath_var=$shlibpath_var
16672
16673 # Is shlibpath searched before the hard-coded library search path?
16674 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16675
16676 # Format of library name prefix.
16677 libname_spec=$lt_libname_spec
16678
16679 # List of archive names.  First name is the real one, the rest are links.
16680 # The last name is the one that the linker finds with -lNAME
16681 library_names_spec=$lt_library_names_spec
16682
16683 # The coded name of the library, if different from the real name.
16684 soname_spec=$lt_soname_spec
16685
16686 # Permission mode override for installation of shared libraries.
16687 install_override_mode=$lt_install_override_mode
16688
16689 # Command to use after installation of a shared archive.
16690 postinstall_cmds=$lt_postinstall_cmds
16691
16692 # Command to use after uninstallation of a shared archive.
16693 postuninstall_cmds=$lt_postuninstall_cmds
16694
16695 # Commands used to finish a libtool library installation in a directory.
16696 finish_cmds=$lt_finish_cmds
16697
16698 # As "finish_cmds", except a single script fragment to be evaled but
16699 # not shown.
16700 finish_eval=$lt_finish_eval
16701
16702 # Whether we should hardcode library paths into libraries.
16703 hardcode_into_libs=$hardcode_into_libs
16704
16705 # Compile-time system search path for libraries.
16706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16707
16708 # Detected run-time system search path for libraries.
16709 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16710
16711 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16712 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16713
16714 # Whether dlopen is supported.
16715 dlopen_support=$enable_dlopen
16716
16717 # Whether dlopen of programs is supported.
16718 dlopen_self=$enable_dlopen_self
16719
16720 # Whether dlopen of statically linked programs is supported.
16721 dlopen_self_static=$enable_dlopen_self_static
16722
16723 # Commands to strip libraries.
16724 old_striplib=$lt_old_striplib
16725 striplib=$lt_striplib
16726
16727
16728 # The linker used to build libraries.
16729 LD=$lt_LD
16730
16731 # How to create reloadable object files.
16732 reload_flag=$lt_reload_flag
16733 reload_cmds=$lt_reload_cmds
16734
16735 # Commands used to build an old-style archive.
16736 old_archive_cmds=$lt_old_archive_cmds
16737
16738 # A language specific compiler.
16739 CC=$lt_compiler
16740
16741 # Is the compiler the GNU compiler?
16742 with_gcc=$GCC
16743
16744 # Compiler flag to turn off builtin functions.
16745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16746
16747 # Additional compiler flags for building library objects.
16748 pic_flag=$lt_lt_prog_compiler_pic
16749
16750 # How to pass a linker flag through the compiler.
16751 wl=$lt_lt_prog_compiler_wl
16752
16753 # Compiler flag to prevent dynamic linking.
16754 link_static_flag=$lt_lt_prog_compiler_static
16755
16756 # Does compiler simultaneously support -c and -o options?
16757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16758
16759 # Whether or not to add -lc for building shared libraries.
16760 build_libtool_need_lc=$archive_cmds_need_lc
16761
16762 # Whether or not to disallow shared libs when runtime libs are static.
16763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16764
16765 # Compiler flag to allow reflexive dlopens.
16766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16767
16768 # Compiler flag to generate shared objects directly from archives.
16769 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16770
16771 # Whether the compiler copes with passing no objects directly.
16772 compiler_needs_object=$lt_compiler_needs_object
16773
16774 # Create an old-style archive from a shared archive.
16775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16776
16777 # Create a temporary old-style archive to link instead of a shared archive.
16778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16779
16780 # Commands used to build a shared archive.
16781 archive_cmds=$lt_archive_cmds
16782 archive_expsym_cmds=$lt_archive_expsym_cmds
16783
16784 # Commands used to build a loadable module if different from building
16785 # a shared archive.
16786 module_cmds=$lt_module_cmds
16787 module_expsym_cmds=$lt_module_expsym_cmds
16788
16789 # Whether we are building with GNU ld or not.
16790 with_gnu_ld=$lt_with_gnu_ld
16791
16792 # Flag that allows shared libraries with undefined symbols to be built.
16793 allow_undefined_flag=$lt_allow_undefined_flag
16794
16795 # Flag that enforces no undefined symbols.
16796 no_undefined_flag=$lt_no_undefined_flag
16797
16798 # Flag to hardcode \$libdir into a binary during linking.
16799 # This must work even if \$libdir does not exist
16800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16801
16802 # Whether we need a single "-rpath" flag with a separated argument.
16803 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16804
16805 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16806 # DIR into the resulting binary.
16807 hardcode_direct=$hardcode_direct
16808
16809 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16810 # DIR into the resulting binary and the resulting library dependency is
16811 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16812 # library is relocated.
16813 hardcode_direct_absolute=$hardcode_direct_absolute
16814
16815 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16816 # into the resulting binary.
16817 hardcode_minus_L=$hardcode_minus_L
16818
16819 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16820 # into the resulting binary.
16821 hardcode_shlibpath_var=$hardcode_shlibpath_var
16822
16823 # Set to "yes" if building a shared library automatically hardcodes DIR
16824 # into the library and all subsequent libraries and executables linked
16825 # against it.
16826 hardcode_automatic=$hardcode_automatic
16827
16828 # Set to yes if linker adds runtime paths of dependent libraries
16829 # to runtime path list.
16830 inherit_rpath=$inherit_rpath
16831
16832 # Whether libtool must link a program against all its dependency libraries.
16833 link_all_deplibs=$link_all_deplibs
16834
16835 # Set to "yes" if exported symbols are required.
16836 always_export_symbols=$always_export_symbols
16837
16838 # The commands to list exported symbols.
16839 export_symbols_cmds=$lt_export_symbols_cmds
16840
16841 # Symbols that should not be listed in the preloaded symbols.
16842 exclude_expsyms=$lt_exclude_expsyms
16843
16844 # Symbols that must always be exported.
16845 include_expsyms=$lt_include_expsyms
16846
16847 # Commands necessary for linking programs (against libraries) with templates.
16848 prelink_cmds=$lt_prelink_cmds
16849
16850 # Commands necessary for finishing linking programs.
16851 postlink_cmds=$lt_postlink_cmds
16852
16853 # Specify filename containing input files.
16854 file_list_spec=$lt_file_list_spec
16855
16856 # How to hardcode a shared library path into an executable.
16857 hardcode_action=$hardcode_action
16858
16859 # ### END LIBTOOL CONFIG
16860
16861 _LT_EOF
16862
16863     cat <<'_LT_EOF' >> "$cfgfile"
16864
16865 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16866
16867 # func_munge_path_list VARIABLE PATH
16868 # -----------------------------------
16869 # VARIABLE is name of variable containing _space_ separated list of
16870 # directories to be munged by the contents of PATH, which is string
16871 # having a format:
16872 # "DIR[:DIR]:"
16873 #       string "DIR[ DIR]" will be prepended to VARIABLE
16874 # ":DIR[:DIR]"
16875 #       string "DIR[ DIR]" will be appended to VARIABLE
16876 # "DIRP[:DIRP]::[DIRA:]DIRA"
16877 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16878 #       "DIRA[ DIRA]" will be appended to VARIABLE
16879 # "DIR[:DIR]"
16880 #       VARIABLE will be replaced by "DIR[ DIR]"
16881 func_munge_path_list ()
16882 {
16883     case x$2 in
16884     x)
16885         ;;
16886     *:)
16887         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16888         ;;
16889     x:*)
16890         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16891         ;;
16892     *::*)
16893         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16894         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16895         ;;
16896     *)
16897         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16898         ;;
16899     esac
16900 }
16901
16902
16903 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16904 func_cc_basename ()
16905 {
16906     for cc_temp in $*""; do
16907       case $cc_temp in
16908         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16909         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16910         \-*) ;;
16911         *) break;;
16912       esac
16913     done
16914     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16915 }
16916
16917
16918 # ### END FUNCTIONS SHARED WITH CONFIGURE
16919
16920 _LT_EOF
16921
16922   case $host_os in
16923   aix3*)
16924     cat <<\_LT_EOF >> "$cfgfile"
16925 # AIX sometimes has problems with the GCC collect2 program.  For some
16926 # reason, if we set the COLLECT_NAMES environment variable, the problems
16927 # vanish in a puff of smoke.
16928 if test set != "${COLLECT_NAMES+set}"; then
16929   COLLECT_NAMES=
16930   export COLLECT_NAMES
16931 fi
16932 _LT_EOF
16933     ;;
16934   esac
16935
16936
16937 ltmain=$ac_aux_dir/ltmain.sh
16938
16939
16940   # We use sed instead of cat because bash on DJGPP gets confused if
16941   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16942   # text mode, it properly converts lines to CR/LF.  This bash problem
16943   # is reportedly fixed, but why not run on old versions too?
16944   sed '$q' "$ltmain" >> "$cfgfile" \
16945      || (rm -f "$cfgfile"; exit 1)
16946
16947    mv -f "$cfgfile" "$ofile" ||
16948     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16949   chmod +x "$ofile"
16950
16951  ;;
16952
16953   esac
16954 done # for ac_tag
16955
16956
16957 as_fn_exit 0
16958 _ACEOF
16959 ac_clean_files=$ac_clean_files_save
16960
16961 test $ac_write_fail = 0 ||
16962   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16963
16964
16965 # configure is writing to config.log, and then calls config.status.
16966 # config.status does its own redirection, appending to config.log.
16967 # Unfortunately, on DOS this fails, as config.log is still kept open
16968 # by configure, so config.status won't be able to write to it; its
16969 # output is simply discarded.  So we exec the FD to /dev/null,
16970 # effectively closing config.log, so it can be properly (re)opened and
16971 # appended to by config.status.  When coming back to configure, we
16972 # need to make the FD available again.
16973 if test "$no_create" != yes; then
16974   ac_cs_success=:
16975   ac_config_status_args=
16976   test "$silent" = yes &&
16977     ac_config_status_args="$ac_config_status_args --quiet"
16978   exec 5>/dev/null
16979   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16980   exec 5>>config.log
16981   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16982   # would make configure fail if this is the last instruction.
16983   $ac_cs_success || as_fn_exit 1
16984 fi
16985 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16986   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16987 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16988 fi
16989