Imported Upstream version 0.19.4
[platform/upstream/fribidi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for GNU FriBidi 0.19.4.
4 #
5 # Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239   fi
240   exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258   { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267   return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275   set +e
276   as_fn_set_status $1
277   exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286   case $as_dir in #(
287   -*) as_dir=./$as_dir;;
288   esac
289   test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292       case $as_dir in #(
293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294       *) as_qdir=$as_dir;;
295       esac
296       as_dirs="'$as_qdir' $as_dirs"
297       as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299          X"$as_dir" : 'X\(//\)[^/]' \| \
300          X"$as_dir" : 'X\(//\)$' \| \
301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)[^/].*/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\).*/{
316             s//\1/
317             q
318           }
319           s/.*/./; q'`
320       test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334   eval 'as_fn_append ()
335   {
336     eval $1+=\$2
337   }'
338 else
339   as_fn_append ()
340   {
341     eval $1=\$$1\$2
342   }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351   eval 'as_fn_arith ()
352   {
353     as_val=$(( $* ))
354   }'
355 else
356   as_fn_arith ()
357   {
358     as_val=`expr "$@" || test $? -eq 1`
359   }
360 fi # as_fn_arith
361
362
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
368 as_fn_error ()
369 {
370   as_status=$?; test $as_status -eq 0 && as_status=1
371   if test "$3"; then
372     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374   fi
375   $as_echo "$as_me: error: $1" >&2
376   as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
381   as_expr=expr
382 else
383   as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387   as_basename=basename
388 else
389   as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393   as_dirname=dirname
394 else
395   as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400          X"$0" : 'X\(//\)$' \| \
401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\/\)$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\).*/{
412             s//\1/
413             q
414           }
415           s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425   as_lineno_1=$LINENO as_lineno_1a=$LINENO
426   as_lineno_2=$LINENO as_lineno_2a=$LINENO
427   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430   sed -n '
431     p
432     /[$]LINENO/=
433   ' <$as_myself |
434     sed '
435       s/[$]LINENO.*/&-/
436       t lineno
437       b
438       :lineno
439       N
440       :loop
441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442       t loop
443       s/-\n.*//
444     ' >$as_me.lineno &&
445   chmod +x "$as_me.lineno" ||
446     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448   # Don't try to exec as it changes $[0], causing all sort of problems
449   # (the dirname of $[0] is not the place where we might find the
450   # original and so on.  Autoconf is especially sensitive to this).
451   . "./$as_me.lineno"
452   # Exit status is that of the last command.
453   exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459   case `echo 'xy\c'` in
460   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461   xy)  ECHO_C='\c';;
462   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463        ECHO_T=' ';;
464   esac;;
465 *)
466   ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471   rm -f conf$$.dir/conf$$.file
472 else
473   rm -f conf$$.dir
474   mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477   if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484       as_ln_s='cp -p'
485   elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487   else
488     as_ln_s='cp -p'
489   fi
490 else
491   as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497   as_mkdir_p='mkdir -p "$as_dir"'
498 else
499   test -d ./-p && rmdir ./-p
500   as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504   as_test_x='test -x'
505 else
506   if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508   else
509     as_ls_L_option=
510   fi
511   as_test_x='
512     eval sh -c '\''
513       if test -d "$1"; then
514         test -d "$1/.";
515       else
516         case $1 in #(
517         -*)set "./$1";;
518         esac;
519         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520         ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522   '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$lt_ECHO in
538 X*--fallback-echo)
539   # Remove one level of quotation (which was required for Make).
540   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541   ;;
542 esac
543
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546   # Discard the --no-reexec flag, and continue.
547   shift
548 elif test "X$1" = X--fallback-echo; then
549   # Avoid inline document here, it may be left over
550   :
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552   # Yippee, $ECHO works!
553   :
554 else
555   # Restart under the correct shell.
556   exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560   # used as fallback echo
561   shift
562   cat <<_LT_EOF
563 $*
564 _LT_EOF
565   exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572 if test -z "$lt_ECHO"; then
573   if test "X${echo_test_string+set}" != Xset; then
574     # find a string as large as possible, as long as the shell can cope with it
575     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579       then
580         break
581       fi
582     done
583   fi
584
585   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587      test "X$echo_testing_string" = "X$echo_test_string"; then
588     :
589   else
590     # The Solaris, AIX, and Digital Unix default echo programs unquote
591     # backslashes.  This makes it impossible to quote backslashes using
592     #   echo "$something" | sed 's/\\/\\\\/g'
593     #
594     # So, first we look for a working echo in the user's PATH.
595
596     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597     for dir in $PATH /usr/ucb; do
598       IFS="$lt_save_ifs"
599       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602          test "X$echo_testing_string" = "X$echo_test_string"; then
603         ECHO="$dir/echo"
604         break
605       fi
606     done
607     IFS="$lt_save_ifs"
608
609     if test "X$ECHO" = Xecho; then
610       # We didn't find a better echo, so look for alternatives.
611       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613          test "X$echo_testing_string" = "X$echo_test_string"; then
614         # This shell has a builtin print -r that does the trick.
615         ECHO='print -r'
616       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617            test "X$CONFIG_SHELL" != X/bin/ksh; then
618         # If we have ksh, try running configure again with it.
619         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620         export ORIGINAL_CONFIG_SHELL
621         CONFIG_SHELL=/bin/ksh
622         export CONFIG_SHELL
623         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624       else
625         # Try using printf.
626         ECHO='printf %s\n'
627         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629            test "X$echo_testing_string" = "X$echo_test_string"; then
630           # Cool, printf works
631           :
632         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633              test "X$echo_testing_string" = 'X\t' &&
634              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635              test "X$echo_testing_string" = "X$echo_test_string"; then
636           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637           export CONFIG_SHELL
638           SHELL="$CONFIG_SHELL"
639           export SHELL
640           ECHO="$CONFIG_SHELL $0 --fallback-echo"
641         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642              test "X$echo_testing_string" = 'X\t' &&
643              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644              test "X$echo_testing_string" = "X$echo_test_string"; then
645           ECHO="$CONFIG_SHELL $0 --fallback-echo"
646         else
647           # maybe with a smaller string...
648           prev=:
649
650           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652             then
653               break
654             fi
655             prev="$cmd"
656           done
657
658           if test "$prev" != 'sed 50q "$0"'; then
659             echo_test_string=`eval $prev`
660             export echo_test_string
661             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662           else
663             # Oops.  We lost completely, so just stick with echo.
664             ECHO=echo
665           fi
666         fi
667       fi
668     fi
669   fi
670 fi
671
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 test -n "$DJDIR" || exec 7<&0 </dev/null
683 exec 6>&1
684
685 # Name of the host.
686 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690 #
691 # Initializations.
692 #
693 ac_default_prefix=/usr/local
694 ac_clean_files=
695 ac_config_libobj_dir=.
696 LIBOBJS=
697 cross_compiling=no
698 subdirs=
699 MFLAGS=
700 MAKEFLAGS=
701
702 # Identity of this package.
703 PACKAGE_NAME='GNU FriBidi'
704 PACKAGE_TARNAME='fribidi'
705 PACKAGE_VERSION='0.19.4'
706 PACKAGE_STRING='GNU FriBidi 0.19.4'
707 PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi'
708 PACKAGE_URL='http://fribidi.org/'
709
710 ac_unique_file="fribidi.pc.in"
711 # Factoring default headers for most tests.
712 ac_includes_default="\
713 #include <stdio.h>
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
716 #endif
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
719 #endif
720 #ifdef STDC_HEADERS
721 # include <stdlib.h>
722 # include <stddef.h>
723 #else
724 # ifdef HAVE_STDLIB_H
725 #  include <stdlib.h>
726 # endif
727 #endif
728 #ifdef HAVE_STRING_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #  include <memory.h>
731 # endif
732 # include <string.h>
733 #endif
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
736 #endif
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
739 #endif
740 #ifdef HAVE_STDINT_H
741 # include <stdint.h>
742 #endif
743 #ifdef HAVE_UNISTD_H
744 # include <unistd.h>
745 #endif"
746
747 ac_subst_vars='am__EXEEXT_FALSE
748 am__EXEEXT_TRUE
749 LTLIBOBJS
750 LIBOBJS
751 MISC_PACKAGES
752 MISC_LIBS
753 MISC_CFLAGS
754 FRIBIDI_USE_GLIB_FALSE
755 FRIBIDI_USE_GLIB_TRUE
756 FRIBIDI_USE_GLIB
757 GLIB_LIBS
758 GLIB_CFLAGS
759 PKG_CONFIG
760 FRIBIDI_CHARSETS_FALSE
761 FRIBIDI_CHARSETS_TRUE
762 FRIBIDI_CHARSETS
763 FRIBIDI_NO_DEPRECATED
764 SIZEOF_INT
765 PLATFORM_WIN32_FALSE
766 PLATFORM_WIN32_TRUE
767 OS_WIN32_FALSE
768 OS_WIN32_TRUE
769 LT_CURRENT_MINUS_AGE
770 LT_VERSION_INFO
771 FRIBIDI_BINARY_AGE
772 FRIBIDI_INTERFACE_AGE
773 FRIBIDI_INTERFACE_VERSION
774 FRIBIDI_VERSION
775 FRIBIDI_MICRO_VERSION
776 FRIBIDI_MINOR_VERSION
777 FRIBIDI_MAJOR_VERSION
778 CPP
779 OTOOL64
780 OTOOL
781 LIPO
782 NMEDIT
783 DSYMUTIL
784 lt_ECHO
785 RANLIB
786 AR
787 OBJDUMP
788 LN_S
789 NM
790 ac_ct_DUMPBIN
791 DUMPBIN
792 LD
793 FGREP
794 EGREP
795 GREP
796 SED
797 am__fastdepCC_FALSE
798 am__fastdepCC_TRUE
799 CCDEPMODE
800 AMDEPBACKSLASH
801 AMDEP_FALSE
802 AMDEP_TRUE
803 am__quote
804 am__include
805 DEPDIR
806 OBJEXT
807 EXEEXT
808 ac_ct_CC
809 CPPFLAGS
810 LDFLAGS
811 CFLAGS
812 CC
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 LIBTOOL
822 AM_BACKSLASH
823 AM_DEFAULT_VERBOSITY
824 am__untar
825 am__tar
826 AMTAR
827 am__leading_dot
828 SET_MAKE
829 AWK
830 mkdir_p
831 MKDIR_P
832 INSTALL_STRIP_PROGRAM
833 STRIP
834 install_sh
835 MAKEINFO
836 AUTOHEADER
837 AUTOMAKE
838 AUTOCONF
839 ACLOCAL
840 VERSION
841 PACKAGE
842 CYGPATH_W
843 am__isrc
844 INSTALL_DATA
845 INSTALL_SCRIPT
846 INSTALL_PROGRAM
847 target_alias
848 host_alias
849 build_alias
850 LIBS
851 ECHO_T
852 ECHO_N
853 ECHO_C
854 DEFS
855 mandir
856 localedir
857 libdir
858 psdir
859 pdfdir
860 dvidir
861 htmldir
862 infodir
863 docdir
864 oldincludedir
865 includedir
866 localstatedir
867 sharedstatedir
868 sysconfdir
869 datadir
870 datarootdir
871 libexecdir
872 sbindir
873 bindir
874 program_transform_name
875 prefix
876 exec_prefix
877 PACKAGE_URL
878 PACKAGE_BUGREPORT
879 PACKAGE_STRING
880 PACKAGE_VERSION
881 PACKAGE_TARNAME
882 PACKAGE_NAME
883 PATH_SEPARATOR
884 SHELL'
885 ac_subst_files=''
886 ac_user_opts='
887 enable_option_checking
888 enable_silent_rules
889 enable_static
890 enable_shared
891 with_pic
892 enable_fast_install
893 enable_dependency_tracking
894 with_gnu_ld
895 enable_libtool_lock
896 enable_debug
897 enable_deprecated
898 enable_malloc
899 enable_charsets
900 with_glib
901 '
902       ac_precious_vars='build_alias
903 host_alias
904 target_alias
905 CC
906 CFLAGS
907 LDFLAGS
908 LIBS
909 CPPFLAGS
910 CPP
911 PKG_CONFIG
912 GLIB_CFLAGS
913 GLIB_LIBS'
914
915
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
963
964 ac_prev=
965 ac_dashdash=
966 for ac_option
967 do
968   # If the previous option needs an argument, assign it.
969   if test -n "$ac_prev"; then
970     eval $ac_prev=\$ac_option
971     ac_prev=
972     continue
973   fi
974
975   case $ac_option in
976   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977   *)    ac_optarg=yes ;;
978   esac
979
980   # Accept the important Cygnus configure options, so we can diagnose typos.
981
982   case $ac_dashdash$ac_option in
983   --)
984     ac_dashdash=yes ;;
985
986   -bindir | --bindir | --bindi | --bind | --bin | --bi)
987     ac_prev=bindir ;;
988   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989     bindir=$ac_optarg ;;
990
991   -build | --build | --buil | --bui | --bu)
992     ac_prev=build_alias ;;
993   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994     build_alias=$ac_optarg ;;
995
996   -cache-file | --cache-file | --cache-fil | --cache-fi \
997   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998     ac_prev=cache_file ;;
999   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001     cache_file=$ac_optarg ;;
1002
1003   --config-cache | -C)
1004     cache_file=config.cache ;;
1005
1006   -datadir | --datadir | --datadi | --datad)
1007     ac_prev=datadir ;;
1008   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009     datadir=$ac_optarg ;;
1010
1011   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012   | --dataroo | --dataro | --datar)
1013     ac_prev=datarootdir ;;
1014   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016     datarootdir=$ac_optarg ;;
1017
1018   -disable-* | --disable-*)
1019     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022       as_fn_error "invalid feature name: $ac_useropt"
1023     ac_useropt_orig=$ac_useropt
1024     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025     case $ac_user_opts in
1026       *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030          ac_unrecognized_sep=', ';;
1031     esac
1032     eval enable_$ac_useropt=no ;;
1033
1034   -docdir | --docdir | --docdi | --doc | --do)
1035     ac_prev=docdir ;;
1036   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037     docdir=$ac_optarg ;;
1038
1039   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040     ac_prev=dvidir ;;
1041   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042     dvidir=$ac_optarg ;;
1043
1044   -enable-* | --enable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       as_fn_error "invalid feature name: $ac_useropt"
1049     ac_useropt_orig=$ac_useropt
1050     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051     case $ac_user_opts in
1052       *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062   | --exec | --exe | --ex)
1063     ac_prev=exec_prefix ;;
1064   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066   | --exec=* | --exe=* | --ex=*)
1067     exec_prefix=$ac_optarg ;;
1068
1069   -gas | --gas | --ga | --g)
1070     # Obsolete; use --with-gas.
1071     with_gas=yes ;;
1072
1073   -help | --help | --hel | --he | -h)
1074     ac_init_help=long ;;
1075   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076     ac_init_help=recursive ;;
1077   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078     ac_init_help=short ;;
1079
1080   -host | --host | --hos | --ho)
1081     ac_prev=host_alias ;;
1082   -host=* | --host=* | --hos=* | --ho=*)
1083     host_alias=$ac_optarg ;;
1084
1085   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086     ac_prev=htmldir ;;
1087   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088   | --ht=*)
1089     htmldir=$ac_optarg ;;
1090
1091   -includedir | --includedir | --includedi | --included | --include \
1092   | --includ | --inclu | --incl | --inc)
1093     ac_prev=includedir ;;
1094   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095   | --includ=* | --inclu=* | --incl=* | --inc=*)
1096     includedir=$ac_optarg ;;
1097
1098   -infodir | --infodir | --infodi | --infod | --info | --inf)
1099     ac_prev=infodir ;;
1100   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101     infodir=$ac_optarg ;;
1102
1103   -libdir | --libdir | --libdi | --libd)
1104     ac_prev=libdir ;;
1105   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106     libdir=$ac_optarg ;;
1107
1108   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109   | --libexe | --libex | --libe)
1110     ac_prev=libexecdir ;;
1111   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112   | --libexe=* | --libex=* | --libe=*)
1113     libexecdir=$ac_optarg ;;
1114
1115   -localedir | --localedir | --localedi | --localed | --locale)
1116     ac_prev=localedir ;;
1117   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118     localedir=$ac_optarg ;;
1119
1120   -localstatedir | --localstatedir | --localstatedi | --localstated \
1121   | --localstate | --localstat | --localsta | --localst | --locals)
1122     ac_prev=localstatedir ;;
1123   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125     localstatedir=$ac_optarg ;;
1126
1127   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128     ac_prev=mandir ;;
1129   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130     mandir=$ac_optarg ;;
1131
1132   -nfp | --nfp | --nf)
1133     # Obsolete; use --without-fp.
1134     with_fp=no ;;
1135
1136   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137   | --no-cr | --no-c | -n)
1138     no_create=yes ;;
1139
1140   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142     no_recursion=yes ;;
1143
1144   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146   | --oldin | --oldi | --old | --ol | --o)
1147     ac_prev=oldincludedir ;;
1148   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151     oldincludedir=$ac_optarg ;;
1152
1153   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154     ac_prev=prefix ;;
1155   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156     prefix=$ac_optarg ;;
1157
1158   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159   | --program-pre | --program-pr | --program-p)
1160     ac_prev=program_prefix ;;
1161   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163     program_prefix=$ac_optarg ;;
1164
1165   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166   | --program-suf | --program-su | --program-s)
1167     ac_prev=program_suffix ;;
1168   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170     program_suffix=$ac_optarg ;;
1171
1172   -program-transform-name | --program-transform-name \
1173   | --program-transform-nam | --program-transform-na \
1174   | --program-transform-n | --program-transform- \
1175   | --program-transform | --program-transfor \
1176   | --program-transfo | --program-transf \
1177   | --program-trans | --program-tran \
1178   | --progr-tra | --program-tr | --program-t)
1179     ac_prev=program_transform_name ;;
1180   -program-transform-name=* | --program-transform-name=* \
1181   | --program-transform-nam=* | --program-transform-na=* \
1182   | --program-transform-n=* | --program-transform-=* \
1183   | --program-transform=* | --program-transfor=* \
1184   | --program-transfo=* | --program-transf=* \
1185   | --program-trans=* | --program-tran=* \
1186   | --progr-tra=* | --program-tr=* | --program-t=*)
1187     program_transform_name=$ac_optarg ;;
1188
1189   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190     ac_prev=pdfdir ;;
1191   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192     pdfdir=$ac_optarg ;;
1193
1194   -psdir | --psdir | --psdi | --psd | --ps)
1195     ac_prev=psdir ;;
1196   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197     psdir=$ac_optarg ;;
1198
1199   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200   | -silent | --silent | --silen | --sile | --sil)
1201     silent=yes ;;
1202
1203   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204     ac_prev=sbindir ;;
1205   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206   | --sbi=* | --sb=*)
1207     sbindir=$ac_optarg ;;
1208
1209   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211   | --sharedst | --shareds | --shared | --share | --shar \
1212   | --sha | --sh)
1213     ac_prev=sharedstatedir ;;
1214   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217   | --sha=* | --sh=*)
1218     sharedstatedir=$ac_optarg ;;
1219
1220   -site | --site | --sit)
1221     ac_prev=site ;;
1222   -site=* | --site=* | --sit=*)
1223     site=$ac_optarg ;;
1224
1225   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226     ac_prev=srcdir ;;
1227   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228     srcdir=$ac_optarg ;;
1229
1230   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231   | --syscon | --sysco | --sysc | --sys | --sy)
1232     ac_prev=sysconfdir ;;
1233   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235     sysconfdir=$ac_optarg ;;
1236
1237   -target | --target | --targe | --targ | --tar | --ta | --t)
1238     ac_prev=target_alias ;;
1239   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240     target_alias=$ac_optarg ;;
1241
1242   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243     verbose=yes ;;
1244
1245   -version | --version | --versio | --versi | --vers | -V)
1246     ac_init_version=: ;;
1247
1248   -with-* | --with-*)
1249     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252       as_fn_error "invalid package name: $ac_useropt"
1253     ac_useropt_orig=$ac_useropt
1254     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255     case $ac_user_opts in
1256       *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260          ac_unrecognized_sep=', ';;
1261     esac
1262     eval with_$ac_useropt=\$ac_optarg ;;
1263
1264   -without-* | --without-*)
1265     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268       as_fn_error "invalid package name: $ac_useropt"
1269     ac_useropt_orig=$ac_useropt
1270     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271     case $ac_user_opts in
1272       *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276          ac_unrecognized_sep=', ';;
1277     esac
1278     eval with_$ac_useropt=no ;;
1279
1280   --x)
1281     # Obsolete; use --with-x.
1282     with_x=yes ;;
1283
1284   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285   | --x-incl | --x-inc | --x-in | --x-i)
1286     ac_prev=x_includes ;;
1287   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289     x_includes=$ac_optarg ;;
1290
1291   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293     ac_prev=x_libraries ;;
1294   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296     x_libraries=$ac_optarg ;;
1297
1298   -*) as_fn_error "unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information."
1300     ;;
1301
1302   *=*)
1303     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304     # Reject names that are not valid shell variable names.
1305     case $ac_envvar in #(
1306       '' | [0-9]* | *[!_$as_cr_alnum]* )
1307       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1308     esac
1309     eval $ac_envvar=\$ac_optarg
1310     export $ac_envvar ;;
1311
1312   *)
1313     # FIXME: should be removed in autoconf 3.0.
1314     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1318     ;;
1319
1320   esac
1321 done
1322
1323 if test -n "$ac_prev"; then
1324   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325   as_fn_error "missing argument to $ac_option"
1326 fi
1327
1328 if test -n "$ac_unrecognized_opts"; then
1329   case $enable_option_checking in
1330     no) ;;
1331     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1332     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333   esac
1334 fi
1335
1336 # Check all directory arguments for consistency.
1337 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338                 datadir sysconfdir sharedstatedir localstatedir includedir \
1339                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340                 libdir localedir mandir
1341 do
1342   eval ac_val=\$$ac_var
1343   # Remove trailing slashes.
1344   case $ac_val in
1345     */ )
1346       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347       eval $ac_var=\$ac_val;;
1348   esac
1349   # Be sure to have absolute directory names.
1350   case $ac_val in
1351     [\\/$]* | ?:[\\/]* )  continue;;
1352     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353   esac
1354   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1355 done
1356
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366   if test "x$build_alias" = x; then
1367     cross_compiling=maybe
1368     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369     If a cross compiler is detected then cross compile mode will be used." >&2
1370   elif test "x$build_alias" != "x$host_alias"; then
1371     cross_compiling=yes
1372   fi
1373 fi
1374
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378 test "$silent" = yes && exec 6>/dev/null
1379
1380
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384   as_fn_error "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386   as_fn_error "pwd does not report name of working directory"
1387
1388
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391   ac_srcdir_defaulted=yes
1392   # Try the directory containing this script, then the parent directory.
1393   ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395          X"$as_myself" : 'X\(//\)[^/]' \| \
1396          X"$as_myself" : 'X\(//\)$' \| \
1397          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\/\)[^/].*/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\).*/{
1412             s//\1/
1413             q
1414           }
1415           s/.*/./; q'`
1416   srcdir=$ac_confdir
1417   if test ! -r "$srcdir/$ac_unique_file"; then
1418     srcdir=..
1419   fi
1420 else
1421   ac_srcdir_defaulted=no
1422 fi
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1426 fi
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1430         pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433   srcdir=.
1434 fi
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443   eval ac_env_${ac_var}_value=\$${ac_var}
1444   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1447
1448 #
1449 # Report the --help message.
1450 #
1451 if test "$ac_init_help" = "long"; then
1452   # Omit some internal or obsolete options to make the list less imposing.
1453   # This message is too long to be a string in the A/UX 3.1 sh.
1454   cat <<_ACEOF
1455 \`configure' configures GNU FriBidi 0.19.4 to adapt to many kinds of systems.
1456
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462 Defaults for the options are specified in brackets.
1463
1464 Configuration:
1465   -h, --help              display this help and exit
1466       --help=short        display options specific to this package
1467       --help=recursive    display the short help of all the included packages
1468   -V, --version           display version information and exit
1469   -q, --quiet, --silent   do not print \`checking...' messages
1470       --cache-file=FILE   cache test results in FILE [disabled]
1471   -C, --config-cache      alias for \`--cache-file=config.cache'
1472   -n, --no-create         do not create output files
1473       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475 Installation directories:
1476   --prefix=PREFIX         install architecture-independent files in PREFIX
1477                           [$ac_default_prefix]
1478   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479                           [PREFIX]
1480
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1485
1486 For better control, use the options below.
1487
1488 Fine tuning of the installation directories:
1489   --bindir=DIR            user executables [EPREFIX/bin]
1490   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1491   --libexecdir=DIR        program executables [EPREFIX/libexec]
1492   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1493   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1494   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1495   --libdir=DIR            object code libraries [EPREFIX/lib]
1496   --includedir=DIR        C header files [PREFIX/include]
1497   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1498   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1499   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1500   --infodir=DIR           info documentation [DATAROOTDIR/info]
1501   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1502   --mandir=DIR            man documentation [DATAROOTDIR/man]
1503   --docdir=DIR            documentation root [DATAROOTDIR/doc/fribidi]
1504   --htmldir=DIR           html documentation [DOCDIR]
1505   --dvidir=DIR            dvi documentation [DOCDIR]
1506   --pdfdir=DIR            pdf documentation [DOCDIR]
1507   --psdir=DIR             ps documentation [DOCDIR]
1508 _ACEOF
1509
1510   cat <<\_ACEOF
1511
1512 Program names:
1513   --program-prefix=PREFIX            prepend PREFIX to installed program names
1514   --program-suffix=SUFFIX            append SUFFIX to installed program names
1515   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1516
1517 System types:
1518   --build=BUILD     configure for building on BUILD [guessed]
1519   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524   case $ac_init_help in
1525      short | recursive ) echo "Configuration of GNU FriBidi 0.19.4:";;
1526    esac
1527   cat <<\_ACEOF
1528
1529 Optional Features:
1530   --disable-option-checking  ignore unrecognized --enable/--with options
1531   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533   --enable-silent-rules          less verbose build output (undo: `make V=1')
1534   --disable-silent-rules         verbose build output (undo: `make V=0')
1535   --enable-static[=PKGS]  build static libraries [default=no]
1536   --enable-shared[=PKGS]  build shared libraries [default=yes]
1537   --enable-fast-install[=PKGS]
1538                           optimize for fast installation [default=yes]
1539   --disable-dependency-tracking  speeds up one-time build
1540   --enable-dependency-tracking   do not reject slow dependency extractors
1541   --disable-libtool-lock  avoid locking (might break parallel builds)
1542   --enable-debug          turn on debugging [default=yes]
1543   --disable-deprecated    do not build deprecated functionality
1544   --enable-malloc         use simple malloc instead of memory chunks
1545   --disable-charsets      exclude charset conversion routines from library
1546
1547 Optional Packages:
1548   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1549   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1550   --with-pic              try to use only PIC/non-PIC objects [default=use
1551                           both]
1552   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1553   --with-glib=[no/auto/yes]
1554                           use Glib [default=auto]
1555
1556 Some influential environment variables:
1557   CC          C compiler command
1558   CFLAGS      C compiler flags
1559   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560               nonstandard directory <lib dir>
1561   LIBS        libraries to pass to the linker, e.g. -l<library>
1562   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1563               you have headers in a nonstandard directory <include dir>
1564   CPP         C preprocessor
1565   PKG_CONFIG  path to pkg-config utility
1566   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1567   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1568
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1571
1572 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi>.
1573 GNU FriBidi home page: <http://fribidi.org/>.
1574 General help using GNU software: <http://www.gnu.org/gethelp/>.
1575 _ACEOF
1576 ac_status=$?
1577 fi
1578
1579 if test "$ac_init_help" = "recursive"; then
1580   # If there are subdirs, report their specific --help.
1581   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582     test -d "$ac_dir" ||
1583       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584       continue
1585     ac_builddir=.
1586
1587 case "$ac_dir" in
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *)
1590   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1591   # A ".." for each directory in $ac_dir_suffix.
1592   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593   case $ac_top_builddir_sub in
1594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596   esac ;;
1597 esac
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1602
1603 case $srcdir in
1604   .)  # We are building in place.
1605     ac_srcdir=.
1606     ac_top_srcdir=$ac_top_builddir_sub
1607     ac_abs_top_srcdir=$ac_pwd ;;
1608   [\\/]* | ?:[\\/]* )  # Absolute name.
1609     ac_srcdir=$srcdir$ac_dir_suffix;
1610     ac_top_srcdir=$srcdir
1611     ac_abs_top_srcdir=$srcdir ;;
1612   *) # Relative name.
1613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614     ac_top_srcdir=$ac_top_build_prefix$srcdir
1615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 esac
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619     cd "$ac_dir" || { ac_status=$?; continue; }
1620     # Check for guested configure.
1621     if test -f "$ac_srcdir/configure.gnu"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624     elif test -f "$ac_srcdir/configure"; then
1625       echo &&
1626       $SHELL "$ac_srcdir/configure" --help=recursive
1627     else
1628       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629     fi || ac_status=$?
1630     cd "$ac_pwd" || { ac_status=$?; break; }
1631   done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636   cat <<\_ACEOF
1637 GNU FriBidi configure 0.19.4
1638 generated by GNU Autoconf 2.65
1639
1640 Copyright (C) 2009 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644   exit
1645 fi
1646
1647 ## ------------------------ ##
1648 ## Autoconf initialization. ##
1649 ## ------------------------ ##
1650
1651 # ac_fn_c_try_compile LINENO
1652 # --------------------------
1653 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_compile ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   rm -f conftest.$ac_objext
1658   if { { ac_try="$ac_compile"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_compile") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } && {
1674          test -z "$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        } && test -s conftest.$ac_objext; then :
1677   ac_retval=0
1678 else
1679   $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682         ac_retval=1
1683 fi
1684   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_compile
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   rm -f conftest.$ac_objext conftest$ac_exeext
1696   if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_link") 2>conftest.err
1704   ac_status=$?
1705   if test -s conftest.err; then
1706     grep -v '^ *+' conftest.err >conftest.er1
1707     cat conftest.er1 >&5
1708     mv -f conftest.er1 conftest.err
1709   fi
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } && {
1712          test -z "$ac_c_werror_flag" ||
1713          test ! -s conftest.err
1714        } && test -s conftest$ac_exeext && {
1715          test "$cross_compiling" = yes ||
1716          $as_test_x conftest$ac_exeext
1717        }; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723         ac_retval=1
1724 fi
1725   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727   # interfere with the next link command; also delete a directory that is
1728   # left behind by Apple's compiler.  We do this before executing the actions.
1729   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731   as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_link
1734
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1740 {
1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745   $as_echo_n "(cached) " >&6
1746 else
1747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h.  */
1749 $4
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753   eval "$3=yes"
1754 else
1755   eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 fi
1759 eval ac_res=\$$3
1760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763
1764 } # ac_fn_c_check_header_compile
1765
1766 # ac_fn_c_try_cpp LINENO
1767 # ----------------------
1768 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_cpp ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if { { ac_try="$ac_cpp conftest.$ac_ext"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1780   ac_status=$?
1781   if test -s conftest.err; then
1782     grep -v '^ *+' conftest.err >conftest.er1
1783     cat conftest.er1 >&5
1784     mv -f conftest.er1 conftest.err
1785   fi
1786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787   test $ac_status = 0; } >/dev/null && {
1788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1789          test ! -s conftest.err
1790        }; then :
1791   ac_retval=0
1792 else
1793   $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796     ac_retval=1
1797 fi
1798   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799   as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_cpp
1802
1803 # ac_fn_c_try_run LINENO
1804 # ----------------------
1805 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806 # that executables *can* be run.
1807 ac_fn_c_try_run ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   if { { ac_try="$ac_link"
1811 case "(($ac_try" in
1812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813   *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817   (eval "$ac_link") 2>&5
1818   ac_status=$?
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821   { { case "(($ac_try" in
1822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823   *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827   (eval "$ac_try") 2>&5
1828   ac_status=$?
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; }; }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: program exited with status $ac_status" >&5
1834        $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837        ac_retval=$ac_status
1838 fi
1839   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841   as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_run
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1860 #define $2 innocuous_$2
1861
1862 /* System header to define __stub macros and hopefully few prototypes,
1863     which can conflict with char $2 (); below.
1864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865     <limits.h> exists even on freestanding compilers.  */
1866
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1872
1873 #undef $2
1874
1875 /* Override any GCC internal prototype to avoid an error.
1876    Use char because int might match the return type of a GCC
1877    builtin and then its argument prototype would still apply.  */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883     to always fail with ENOSYS.  Some functions are actually named
1884     something starting with __ and the normal name is an alias.  */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1888
1889 int
1890 main ()
1891 {
1892 return $2 ();
1893   ;
1894   return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898   eval "$3=yes"
1899 else
1900   eval "$3=no"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext \
1903     conftest$ac_exeext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$3
1906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909
1910 } # ac_fn_c_check_func
1911
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1916 # accordingly.
1917 ac_fn_c_check_header_mongrel ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924   $as_echo_n "(cached) " >&6
1925 fi
1926 eval ac_res=\$$3
1927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 else
1930   # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h.  */
1935 $4
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939   ac_header_compiler=yes
1940 else
1941   ac_header_compiler=no
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1946
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h.  */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955   ac_header_preproc=yes
1956 else
1957   ac_header_preproc=no
1958 fi
1959 rm -f conftest.err conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1962
1963 # So?  What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965   yes:no: )
1966     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970     ;;
1971   no:yes:* )
1972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 ( cat <<\_ASBOX
1983 ## ------------------------------------------------------------------------ ##
1984 ## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi ##
1985 ## ------------------------------------------------------------------------ ##
1986 _ASBOX
1987      ) | sed "s/^/$as_me: WARNING:     /" >&2
1988     ;;
1989 esac
1990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993   $as_echo_n "(cached) " >&6
1994 else
1995   eval "$3=\$ac_header_compiler"
1996 fi
1997 eval ac_res=\$$3
1998                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 fi
2001   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002
2003 } # ac_fn_c_check_header_mongrel
2004
2005 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2006 # --------------------------------------------
2007 # Tries to find the compile-time value of EXPR in a program that includes
2008 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2009 # computed
2010 ac_fn_c_compute_int ()
2011 {
2012   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013   if test "$cross_compiling" = yes; then
2014     # Depending upon the size, compute the lo and hi bounds.
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h.  */
2017 $4
2018 int
2019 main ()
2020 {
2021 static int test_array [1 - 2 * !(($2) >= 0)];
2022 test_array [0] = 0
2023
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029   ac_lo=0 ac_mid=0
2030   while :; do
2031     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h.  */
2033 $4
2034 int
2035 main ()
2036 {
2037 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2038 test_array [0] = 0
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045   ac_hi=$ac_mid; break
2046 else
2047   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2048                         if test $ac_lo -le $ac_mid; then
2049                           ac_lo= ac_hi=
2050                           break
2051                         fi
2052                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055   done
2056 else
2057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) < 0)];
2064 test_array [0] = 0
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   ac_hi=-1 ac_mid=-1
2072   while :; do
2073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h.  */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2080 test_array [0] = 0
2081
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087   ac_lo=$ac_mid; break
2088 else
2089   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2090                         if test $ac_mid -le $ac_hi; then
2091                           ac_lo= ac_hi=
2092                           break
2093                         fi
2094                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097   done
2098 else
2099   ac_lo= ac_hi=
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 # Binary search between lo and hi bounds.
2105 while test "x$ac_lo" != "x$ac_hi"; do
2106   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114 test_array [0] = 0
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   ac_hi=$ac_mid
2122 else
2123   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 done
2127 case $ac_lo in #((
2128 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2129 '') ac_retval=1 ;;
2130 esac
2131   else
2132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h.  */
2134 $4
2135 static long int longval () { return $2; }
2136 static unsigned long int ulongval () { return $2; }
2137 #include <stdio.h>
2138 #include <stdlib.h>
2139 int
2140 main ()
2141 {
2142
2143   FILE *f = fopen ("conftest.val", "w");
2144   if (! f)
2145     return 1;
2146   if (($2) < 0)
2147     {
2148       long int i = longval ();
2149       if (i != ($2))
2150         return 1;
2151       fprintf (f, "%ld", i);
2152     }
2153   else
2154     {
2155       unsigned long int i = ulongval ();
2156       if (i != ($2))
2157         return 1;
2158       fprintf (f, "%lu", i);
2159     }
2160   /* Do not output a trailing newline, as this causes \r\n confusion
2161      on some platforms.  */
2162   return ferror (f) || fclose (f) != 0;
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_run "$LINENO"; then :
2169   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2170 else
2171   ac_retval=1
2172 fi
2173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2174   conftest.$ac_objext conftest.beam conftest.$ac_ext
2175 rm -f conftest.val
2176
2177   fi
2178   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2179   as_fn_set_status $ac_retval
2180
2181 } # ac_fn_c_compute_int
2182 cat >config.log <<_ACEOF
2183 This file contains any messages produced by compilers while
2184 running configure, to aid debugging if configure makes a mistake.
2185
2186 It was created by GNU FriBidi $as_me 0.19.4, which was
2187 generated by GNU Autoconf 2.65.  Invocation command line was
2188
2189   $ $0 $@
2190
2191 _ACEOF
2192 exec 5>>config.log
2193 {
2194 cat <<_ASUNAME
2195 ## --------- ##
2196 ## Platform. ##
2197 ## --------- ##
2198
2199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2204
2205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2206 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2207
2208 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2209 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2211 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2212 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2213 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2214 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2215
2216 _ASUNAME
2217
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221   IFS=$as_save_IFS
2222   test -z "$as_dir" && as_dir=.
2223     $as_echo "PATH: $as_dir"
2224   done
2225 IFS=$as_save_IFS
2226
2227 } >&5
2228
2229 cat >&5 <<_ACEOF
2230
2231
2232 ## ----------- ##
2233 ## Core tests. ##
2234 ## ----------- ##
2235
2236 _ACEOF
2237
2238
2239 # Keep a trace of the command line.
2240 # Strip out --no-create and --no-recursion so they do not pile up.
2241 # Strip out --silent because we don't want to record it for future runs.
2242 # Also quote any args containing shell meta-characters.
2243 # Make two passes to allow for proper duplicate-argument suppression.
2244 ac_configure_args=
2245 ac_configure_args0=
2246 ac_configure_args1=
2247 ac_must_keep_next=false
2248 for ac_pass in 1 2
2249 do
2250   for ac_arg
2251   do
2252     case $ac_arg in
2253     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2254     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2255     | -silent | --silent | --silen | --sile | --sil)
2256       continue ;;
2257     *\'*)
2258       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2259     esac
2260     case $ac_pass in
2261     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2262     2)
2263       as_fn_append ac_configure_args1 " '$ac_arg'"
2264       if test $ac_must_keep_next = true; then
2265         ac_must_keep_next=false # Got value, back to normal.
2266       else
2267         case $ac_arg in
2268           *=* | --config-cache | -C | -disable-* | --disable-* \
2269           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2270           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2271           | -with-* | --with-* | -without-* | --without-* | --x)
2272             case "$ac_configure_args0 " in
2273               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2274             esac
2275             ;;
2276           -* ) ac_must_keep_next=true ;;
2277         esac
2278       fi
2279       as_fn_append ac_configure_args " '$ac_arg'"
2280       ;;
2281     esac
2282   done
2283 done
2284 { ac_configure_args0=; unset ac_configure_args0;}
2285 { ac_configure_args1=; unset ac_configure_args1;}
2286
2287 # When interrupted or exit'd, cleanup temporary files, and complete
2288 # config.log.  We remove comments because anyway the quotes in there
2289 # would cause problems or look ugly.
2290 # WARNING: Use '\'' to represent an apostrophe within the trap.
2291 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2292 trap 'exit_status=$?
2293   # Save into config.log some information that might help in debugging.
2294   {
2295     echo
2296
2297     cat <<\_ASBOX
2298 ## ---------------- ##
2299 ## Cache variables. ##
2300 ## ---------------- ##
2301 _ASBOX
2302     echo
2303     # The following way of writing the cache mishandles newlines in values,
2304 (
2305   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2306     eval ac_val=\$$ac_var
2307     case $ac_val in #(
2308     *${as_nl}*)
2309       case $ac_var in #(
2310       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2311 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2312       esac
2313       case $ac_var in #(
2314       _ | IFS | as_nl) ;; #(
2315       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2316       *) { eval $ac_var=; unset $ac_var;} ;;
2317       esac ;;
2318     esac
2319   done
2320   (set) 2>&1 |
2321     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2322     *${as_nl}ac_space=\ *)
2323       sed -n \
2324         "s/'\''/'\''\\\\'\'''\''/g;
2325           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2326       ;; #(
2327     *)
2328       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2329       ;;
2330     esac |
2331     sort
2332 )
2333     echo
2334
2335     cat <<\_ASBOX
2336 ## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##
2339 _ASBOX
2340     echo
2341     for ac_var in $ac_subst_vars
2342     do
2343       eval ac_val=\$$ac_var
2344       case $ac_val in
2345       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346       esac
2347       $as_echo "$ac_var='\''$ac_val'\''"
2348     done | sort
2349     echo
2350
2351     if test -n "$ac_subst_files"; then
2352       cat <<\_ASBOX
2353 ## ------------------- ##
2354 ## File substitutions. ##
2355 ## ------------------- ##
2356 _ASBOX
2357       echo
2358       for ac_var in $ac_subst_files
2359       do
2360         eval ac_val=\$$ac_var
2361         case $ac_val in
2362         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363         esac
2364         $as_echo "$ac_var='\''$ac_val'\''"
2365       done | sort
2366       echo
2367     fi
2368
2369     if test -s confdefs.h; then
2370       cat <<\_ASBOX
2371 ## ----------- ##
2372 ## confdefs.h. ##
2373 ## ----------- ##
2374 _ASBOX
2375       echo
2376       cat confdefs.h
2377       echo
2378     fi
2379     test "$ac_signal" != 0 &&
2380       $as_echo "$as_me: caught signal $ac_signal"
2381     $as_echo "$as_me: exit $exit_status"
2382   } >&5
2383   rm -f core *.core core.conftest.* &&
2384     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2385     exit $exit_status
2386 ' 0
2387 for ac_signal in 1 2 13 15; do
2388   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2389 done
2390 ac_signal=0
2391
2392 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2393 rm -f -r conftest* confdefs.h
2394
2395 $as_echo "/* confdefs.h */" > confdefs.h
2396
2397 # Predefined preprocessor variables.
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_NAME "$PACKAGE_NAME"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_STRING "$PACKAGE_STRING"
2413 _ACEOF
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2417 _ACEOF
2418
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_URL "$PACKAGE_URL"
2421 _ACEOF
2422
2423
2424 # Let the site file select an alternate cache file if it wants to.
2425 # Prefer an explicitly selected file to automatically selected ones.
2426 ac_site_file1=NONE
2427 ac_site_file2=NONE
2428 if test -n "$CONFIG_SITE"; then
2429   ac_site_file1=$CONFIG_SITE
2430 elif test "x$prefix" != xNONE; then
2431   ac_site_file1=$prefix/share/config.site
2432   ac_site_file2=$prefix/etc/config.site
2433 else
2434   ac_site_file1=$ac_default_prefix/share/config.site
2435   ac_site_file2=$ac_default_prefix/etc/config.site
2436 fi
2437 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2438 do
2439   test "x$ac_site_file" = xNONE && continue
2440   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2441     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2442 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2443     sed 's/^/| /' "$ac_site_file" >&5
2444     . "$ac_site_file"
2445   fi
2446 done
2447
2448 if test -r "$cache_file"; then
2449   # Some versions of bash will fail to source /dev/null (special files
2450   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2451   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2452     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2453 $as_echo "$as_me: loading cache $cache_file" >&6;}
2454     case $cache_file in
2455       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2456       *)                      . "./$cache_file";;
2457     esac
2458   fi
2459 else
2460   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2461 $as_echo "$as_me: creating cache $cache_file" >&6;}
2462   >$cache_file
2463 fi
2464
2465 # Check that the precious variables saved in the cache have kept the same
2466 # value.
2467 ac_cache_corrupted=false
2468 for ac_var in $ac_precious_vars; do
2469   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2470   eval ac_new_set=\$ac_env_${ac_var}_set
2471   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2472   eval ac_new_val=\$ac_env_${ac_var}_value
2473   case $ac_old_set,$ac_new_set in
2474     set,)
2475       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2476 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2477       ac_cache_corrupted=: ;;
2478     ,set)
2479       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2480 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2481       ac_cache_corrupted=: ;;
2482     ,);;
2483     *)
2484       if test "x$ac_old_val" != "x$ac_new_val"; then
2485         # differences in whitespace do not lead to failure.
2486         ac_old_val_w=`echo x $ac_old_val`
2487         ac_new_val_w=`echo x $ac_new_val`
2488         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2489           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2490 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2491           ac_cache_corrupted=:
2492         else
2493           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2494 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2495           eval $ac_var=\$ac_old_val
2496         fi
2497         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2498 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2499         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2500 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2501       fi;;
2502   esac
2503   # Pass precious variables to config.status.
2504   if test "$ac_new_set" = set; then
2505     case $ac_new_val in
2506     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2507     *) ac_arg=$ac_var=$ac_new_val ;;
2508     esac
2509     case " $ac_configure_args " in
2510       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2511       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2512     esac
2513   fi
2514 done
2515 if $ac_cache_corrupted; then
2516   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2519 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2520   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2521 fi
2522 ## -------------------- ##
2523 ## Main body of script. ##
2524 ## -------------------- ##
2525
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
2532
2533
2534
2535 ac_config_headers="$ac_config_headers config.h"
2536
2537
2538 am__api_version='1.11'
2539
2540 ac_aux_dir=
2541 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2542   for ac_t in install-sh install.sh shtool; do
2543     if test -f "$ac_dir/$ac_t"; then
2544       ac_aux_dir=$ac_dir
2545       ac_install_sh="$ac_aux_dir/$ac_t -c"
2546       break 2
2547     fi
2548   done
2549 done
2550 if test -z "$ac_aux_dir"; then
2551   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2552 fi
2553
2554 # These three variables are undocumented and unsupported,
2555 # and are intended to be withdrawn in a future Autoconf release.
2556 # They can cause serious problems if a builder's source tree is in a directory
2557 # whose full name contains unusual characters.
2558 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2559 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2560 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2561
2562
2563 # Find a good install program.  We prefer a C program (faster),
2564 # so one script is as good as another.  But avoid the broken or
2565 # incompatible versions:
2566 # SysV /etc/install, /usr/sbin/install
2567 # SunOS /usr/etc/install
2568 # IRIX /sbin/install
2569 # AIX /bin/install
2570 # AmigaOS /C/install, which installs bootblocks on floppy discs
2571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574 # OS/2's system install, which has a completely different semantic
2575 # ./install, which can be erroneously created by make from ./install.sh.
2576 # Reject install programs that cannot install multiple files.
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2578 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2579 if test -z "$INSTALL"; then
2580 if test "${ac_cv_path_install+set}" = set; then :
2581   $as_echo_n "(cached) " >&6
2582 else
2583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588     # Account for people who put trailing slashes in PATH elements.
2589 case $as_dir/ in #((
2590   ./ | .// | /[cC]/* | \
2591   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593   /usr/ucb/* ) ;;
2594   *)
2595     # OSF1 and SCO ODT 3.0 have their own names for install.
2596     # Don't use installbsd from OSF since it installs stuff as root
2597     # by default.
2598     for ac_prog in ginstall scoinst install; do
2599       for ac_exec_ext in '' $ac_executable_extensions; do
2600         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2601           if test $ac_prog = install &&
2602             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603             # AIX install.  It has an incompatible calling convention.
2604             :
2605           elif test $ac_prog = install &&
2606             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607             # program-specific install script used by HP pwplus--don't use.
2608             :
2609           else
2610             rm -rf conftest.one conftest.two conftest.dir
2611             echo one > conftest.one
2612             echo two > conftest.two
2613             mkdir conftest.dir
2614             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2615               test -s conftest.one && test -s conftest.two &&
2616               test -s conftest.dir/conftest.one &&
2617               test -s conftest.dir/conftest.two
2618             then
2619               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2620               break 3
2621             fi
2622           fi
2623         fi
2624       done
2625     done
2626     ;;
2627 esac
2628
2629   done
2630 IFS=$as_save_IFS
2631
2632 rm -rf conftest.one conftest.two conftest.dir
2633
2634 fi
2635   if test "${ac_cv_path_install+set}" = set; then
2636     INSTALL=$ac_cv_path_install
2637   else
2638     # As a last resort, use the slow shell script.  Don't cache a
2639     # value for INSTALL within a source directory, because that will
2640     # break other packages using the cache if that directory is
2641     # removed, or if the value is a relative name.
2642     INSTALL=$ac_install_sh
2643   fi
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2646 $as_echo "$INSTALL" >&6; }
2647
2648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649 # It thinks the first close brace ends the variable substitution.
2650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2651
2652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2653
2654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2657 $as_echo_n "checking whether build environment is sane... " >&6; }
2658 # Just in case
2659 sleep 1
2660 echo timestamp > conftest.file
2661 # Reject unsafe characters in $srcdir or the absolute working directory
2662 # name.  Accept space and tab only in the latter.
2663 am_lf='
2664 '
2665 case `pwd` in
2666   *[\\\"\#\$\&\'\`$am_lf]*)
2667     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2668 esac
2669 case $srcdir in
2670   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2671     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2672 esac
2673
2674 # Do `set' in a subshell so we don't clobber the current shell's
2675 # arguments.  Must try -L first in case configure is actually a
2676 # symlink; some systems play weird games with the mod time of symlinks
2677 # (eg FreeBSD returns the mod time of the symlink's containing
2678 # directory).
2679 if (
2680    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2681    if test "$*" = "X"; then
2682       # -L didn't work.
2683       set X `ls -t "$srcdir/configure" conftest.file`
2684    fi
2685    rm -f conftest.file
2686    if test "$*" != "X $srcdir/configure conftest.file" \
2687       && test "$*" != "X conftest.file $srcdir/configure"; then
2688
2689       # If neither matched, then we have a broken ls.  This can happen
2690       # if, for instance, CONFIG_SHELL is bash and it inherits a
2691       # broken ls alias from the environment.  This has actually
2692       # happened.  Such a system could not be considered "sane".
2693       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2694 alias in your environment" "$LINENO" 5
2695    fi
2696
2697    test "$2" = conftest.file
2698    )
2699 then
2700    # Ok.
2701    :
2702 else
2703    as_fn_error "newly created file is older than distributed files!
2704 Check your system clock" "$LINENO" 5
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2707 $as_echo "yes" >&6; }
2708 test "$program_prefix" != NONE &&
2709   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2710 # Use a double $ so make ignores it.
2711 test "$program_suffix" != NONE &&
2712   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2713 # Double any \ or $.
2714 # By default was `s,x,x', remove it if useless.
2715 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2716 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2717
2718 # expand $ac_aux_dir to an absolute path
2719 am_aux_dir=`cd $ac_aux_dir && pwd`
2720
2721 if test x"${MISSING+set}" != xset; then
2722   case $am_aux_dir in
2723   *\ * | *\     *)
2724     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2725   *)
2726     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2727   esac
2728 fi
2729 # Use eval to expand $SHELL
2730 if eval "$MISSING --run true"; then
2731   am_missing_run="$MISSING --run "
2732 else
2733   am_missing_run=
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2735 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2736 fi
2737
2738 if test x"${install_sh}" != xset; then
2739   case $am_aux_dir in
2740   *\ * | *\     *)
2741     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2742   *)
2743     install_sh="\${SHELL} $am_aux_dir/install-sh"
2744   esac
2745 fi
2746
2747 # Installed binaries are usually stripped using `strip' when the user
2748 # run `make install-strip'.  However `strip' might not be the right
2749 # tool to use in cross-compilation environments, therefore Automake
2750 # will honor the `STRIP' environment variable to overrule this program.
2751 if test "$cross_compiling" != no; then
2752   if test -n "$ac_tool_prefix"; then
2753   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2754 set dummy ${ac_tool_prefix}strip; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_STRIP+set}" = set; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   if test -n "$STRIP"; then
2761   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766   IFS=$as_save_IFS
2767   test -z "$as_dir" && as_dir=.
2768     for ac_exec_ext in '' $ac_executable_extensions; do
2769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772     break 2
2773   fi
2774 done
2775   done
2776 IFS=$as_save_IFS
2777
2778 fi
2779 fi
2780 STRIP=$ac_cv_prog_STRIP
2781 if test -n "$STRIP"; then
2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2783 $as_echo "$STRIP" >&6; }
2784 else
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2787 fi
2788
2789
2790 fi
2791 if test -z "$ac_cv_prog_STRIP"; then
2792   ac_ct_STRIP=$STRIP
2793   # Extract the first word of "strip", so it can be a program name with args.
2794 set dummy strip; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2798   $as_echo_n "(cached) " >&6
2799 else
2800   if test -n "$ac_ct_STRIP"; then
2801   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808     for ac_exec_ext in '' $ac_executable_extensions; do
2809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810     ac_cv_prog_ac_ct_STRIP="strip"
2811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812     break 2
2813   fi
2814 done
2815   done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2821 if test -n "$ac_ct_STRIP"; then
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2823 $as_echo "$ac_ct_STRIP" >&6; }
2824 else
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829   if test "x$ac_ct_STRIP" = x; then
2830     STRIP=":"
2831   else
2832     case $cross_compiling:$ac_tool_warned in
2833 yes:)
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836 ac_tool_warned=yes ;;
2837 esac
2838     STRIP=$ac_ct_STRIP
2839   fi
2840 else
2841   STRIP="$ac_cv_prog_STRIP"
2842 fi
2843
2844 fi
2845 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2846
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2848 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2849 if test -z "$MKDIR_P"; then
2850   if test "${ac_cv_path_mkdir+set}" = set; then :
2851   $as_echo_n "(cached) " >&6
2852 else
2853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858     for ac_prog in mkdir gmkdir; do
2859          for ac_exec_ext in '' $ac_executable_extensions; do
2860            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2861            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2862              'mkdir (GNU coreutils) '* | \
2863              'mkdir (coreutils) '* | \
2864              'mkdir (fileutils) '4.1*)
2865                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2866                break 3;;
2867            esac
2868          done
2869        done
2870   done
2871 IFS=$as_save_IFS
2872
2873 fi
2874
2875   test -d ./--version && rmdir ./--version
2876   if test "${ac_cv_path_mkdir+set}" = set; then
2877     MKDIR_P="$ac_cv_path_mkdir -p"
2878   else
2879     # As a last resort, use the slow shell script.  Don't cache a
2880     # value for MKDIR_P within a source directory, because that will
2881     # break other packages using the cache if that directory is
2882     # removed, or if the value is a relative name.
2883     MKDIR_P="$ac_install_sh -d"
2884   fi
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2887 $as_echo "$MKDIR_P" >&6; }
2888
2889 mkdir_p="$MKDIR_P"
2890 case $mkdir_p in
2891   [\\/$]* | ?:[\\/]*) ;;
2892   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2893 esac
2894
2895 for ac_prog in gawk mawk nawk awk
2896 do
2897   # Extract the first word of "$ac_prog", so it can be a program name with args.
2898 set dummy $ac_prog; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_AWK+set}" = set; then :
2902   $as_echo_n "(cached) " >&6
2903 else
2904   if test -n "$AWK"; then
2905   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910   IFS=$as_save_IFS
2911   test -z "$as_dir" && as_dir=.
2912     for ac_exec_ext in '' $ac_executable_extensions; do
2913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914     ac_cv_prog_AWK="$ac_prog"
2915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916     break 2
2917   fi
2918 done
2919   done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 AWK=$ac_cv_prog_AWK
2925 if test -n "$AWK"; then
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2927 $as_echo "$AWK" >&6; }
2928 else
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934   test -n "$AWK" && break
2935 done
2936
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2938 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2939 set x ${MAKE-make}
2940 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2941 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2942   $as_echo_n "(cached) " >&6
2943 else
2944   cat >conftest.make <<\_ACEOF
2945 SHELL = /bin/sh
2946 all:
2947         @echo '@@@%%%=$(MAKE)=@@@%%%'
2948 _ACEOF
2949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2950 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2951   *@@@%%%=?*=@@@%%%*)
2952     eval ac_cv_prog_make_${ac_make}_set=yes;;
2953   *)
2954     eval ac_cv_prog_make_${ac_make}_set=no;;
2955 esac
2956 rm -f conftest.make
2957 fi
2958 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960 $as_echo "yes" >&6; }
2961   SET_MAKE=
2962 else
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965   SET_MAKE="MAKE=${MAKE-make}"
2966 fi
2967
2968 rm -rf .tst 2>/dev/null
2969 mkdir .tst 2>/dev/null
2970 if test -d .tst; then
2971   am__leading_dot=.
2972 else
2973   am__leading_dot=_
2974 fi
2975 rmdir .tst 2>/dev/null
2976
2977 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2978   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2979   # is not polluted with repeated "-I."
2980   am__isrc=' -I$(srcdir)'
2981   # test to see if srcdir already configured
2982   if test -f $srcdir/config.status; then
2983     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2984   fi
2985 fi
2986
2987 # test whether we have cygpath
2988 if test -z "$CYGPATH_W"; then
2989   if (cygpath --version) >/dev/null 2>/dev/null; then
2990     CYGPATH_W='cygpath -w'
2991   else
2992     CYGPATH_W=echo
2993   fi
2994 fi
2995
2996
2997 # Define the identity of the package.
2998  PACKAGE='fribidi'
2999  VERSION='0.19.4'
3000
3001
3002 # Some tools Automake needs.
3003
3004 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3005
3006
3007 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3008
3009
3010 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3011
3012
3013 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3014
3015
3016 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3017
3018 # We need awk for the "check" target.  The system "awk" is bad on
3019 # some platforms.
3020 # Always define AMTAR for backward compatibility.
3021
3022 AMTAR=${AMTAR-"${am_missing_run}tar"}
3023
3024 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3025
3026
3027
3028
3029
3030 # Check whether --enable-silent-rules was given.
3031 if test "${enable_silent_rules+set}" = set; then :
3032   enableval=$enable_silent_rules;
3033 fi
3034
3035 case $enable_silent_rules in
3036 yes) AM_DEFAULT_VERBOSITY=0;;
3037 no)  AM_DEFAULT_VERBOSITY=1;;
3038 *)   AM_DEFAULT_VERBOSITY=0;;
3039 esac
3040 AM_BACKSLASH='\'
3041
3042
3043 # Initialize libtool
3044
3045 case `pwd` in
3046   *\ * | *\     *)
3047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3048 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3049 esac
3050
3051
3052
3053 macro_version='2.2.6b'
3054 macro_revision='1.3017'
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068 ltmain="$ac_aux_dir/ltmain.sh"
3069
3070 # Make sure we can run config.sub.
3071 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3072   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3073
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3075 $as_echo_n "checking build system type... " >&6; }
3076 if test "${ac_cv_build+set}" = set; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   ac_build_alias=$build_alias
3080 test "x$ac_build_alias" = x &&
3081   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3082 test "x$ac_build_alias" = x &&
3083   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3085   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3086
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3089 $as_echo "$ac_cv_build" >&6; }
3090 case $ac_cv_build in
3091 *-*-*) ;;
3092 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3093 esac
3094 build=$ac_cv_build
3095 ac_save_IFS=$IFS; IFS='-'
3096 set x $ac_cv_build
3097 shift
3098 build_cpu=$1
3099 build_vendor=$2
3100 shift; shift
3101 # Remember, the first character of IFS is used to create $*,
3102 # except with old shells:
3103 build_os=$*
3104 IFS=$ac_save_IFS
3105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3106
3107
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3109 $as_echo_n "checking host system type... " >&6; }
3110 if test "${ac_cv_host+set}" = set; then :
3111   $as_echo_n "(cached) " >&6
3112 else
3113   if test "x$host_alias" = x; then
3114   ac_cv_host=$ac_cv_build
3115 else
3116   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3117     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3118 fi
3119
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3122 $as_echo "$ac_cv_host" >&6; }
3123 case $ac_cv_host in
3124 *-*-*) ;;
3125 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3126 esac
3127 host=$ac_cv_host
3128 ac_save_IFS=$IFS; IFS='-'
3129 set x $ac_cv_host
3130 shift
3131 host_cpu=$1
3132 host_vendor=$2
3133 shift; shift
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3136 host_os=$*
3137 IFS=$ac_save_IFS
3138 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3139
3140
3141 DEPDIR="${am__leading_dot}deps"
3142
3143 ac_config_commands="$ac_config_commands depfiles"
3144
3145
3146 am_make=${MAKE-make}
3147 cat > confinc << 'END'
3148 am__doit:
3149         @echo this is the am__doit target
3150 .PHONY: am__doit
3151 END
3152 # If we don't find an include directive, just comment out the code.
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3154 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3155 am__include="#"
3156 am__quote=
3157 _am_result=none
3158 # First try GNU make style include.
3159 echo "include confinc" > confmf
3160 # Ignore all kinds of additional output from `make'.
3161 case `$am_make -s -f confmf 2> /dev/null` in #(
3162 *the\ am__doit\ target*)
3163   am__include=include
3164   am__quote=
3165   _am_result=GNU
3166   ;;
3167 esac
3168 # Now try BSD make style include.
3169 if test "$am__include" = "#"; then
3170    echo '.include "confinc"' > confmf
3171    case `$am_make -s -f confmf 2> /dev/null` in #(
3172    *the\ am__doit\ target*)
3173      am__include=.include
3174      am__quote="\""
3175      _am_result=BSD
3176      ;;
3177    esac
3178 fi
3179
3180
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3182 $as_echo "$_am_result" >&6; }
3183 rm -f confinc confmf
3184
3185 # Check whether --enable-dependency-tracking was given.
3186 if test "${enable_dependency_tracking+set}" = set; then :
3187   enableval=$enable_dependency_tracking;
3188 fi
3189
3190 if test "x$enable_dependency_tracking" != xno; then
3191   am_depcomp="$ac_aux_dir/depcomp"
3192   AMDEPBACKSLASH='\'
3193 fi
3194  if test "x$enable_dependency_tracking" != xno; then
3195   AMDEP_TRUE=
3196   AMDEP_FALSE='#'
3197 else
3198   AMDEP_TRUE='#'
3199   AMDEP_FALSE=
3200 fi
3201
3202
3203 ac_ext=c
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208 if test -n "$ac_tool_prefix"; then
3209   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if test "${ac_cv_prog_CC+set}" = set; then :
3214   $as_echo_n "(cached) " >&6
3215 else
3216   if test -n "$CC"; then
3217   ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222   IFS=$as_save_IFS
3223   test -z "$as_dir" && as_dir=.
3224     for ac_exec_ext in '' $ac_executable_extensions; do
3225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3226     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228     break 2
3229   fi
3230 done
3231   done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 $as_echo "$CC" >&6; }
3240 else
3241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$ac_cv_prog_CC"; then
3248   ac_ct_CC=$CC
3249   # Extract the first word of "gcc", so it can be a program name with args.
3250 set dummy gcc; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   if test -n "$ac_ct_CC"; then
3257   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264     for ac_exec_ext in '' $ac_executable_extensions; do
3265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266     ac_cv_prog_ac_ct_CC="gcc"
3267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268     break 2
3269   fi
3270 done
3271   done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3277 if test -n "$ac_ct_CC"; then
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3279 $as_echo "$ac_ct_CC" >&6; }
3280 else
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285   if test "x$ac_ct_CC" = x; then
3286     CC=""
3287   else
3288     case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3293 esac
3294     CC=$ac_ct_CC
3295   fi
3296 else
3297   CC="$ac_cv_prog_CC"
3298 fi
3299
3300 if test -z "$CC"; then
3301           if test -n "$ac_tool_prefix"; then
3302     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3303 set dummy ${ac_tool_prefix}cc; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if test "${ac_cv_prog_CC+set}" = set; then :
3307   $as_echo_n "(cached) " >&6
3308 else
3309   if test -n "$CC"; then
3310   ac_cv_prog_CC="$CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315   IFS=$as_save_IFS
3316   test -z "$as_dir" && as_dir=.
3317     for ac_exec_ext in '' $ac_executable_extensions; do
3318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319     ac_cv_prog_CC="${ac_tool_prefix}cc"
3320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321     break 2
3322   fi
3323 done
3324   done
3325 IFS=$as_save_IFS
3326
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339   fi
3340 fi
3341 if test -z "$CC"; then
3342   # Extract the first word of "cc", so it can be a program name with args.
3343 set dummy cc; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then :
3347   $as_echo_n "(cached) " >&6
3348 else
3349   if test -n "$CC"; then
3350   ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352   ac_prog_rejected=no
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3361        ac_prog_rejected=yes
3362        continue
3363      fi
3364     ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
3373   # We found a bogon in the path, so make sure we never use it.
3374   set dummy $ac_cv_prog_CC
3375   shift
3376   if test $# != 0; then
3377     # We chose a different compiler from the bogus one.
3378     # However, it has the same basename, so the bogon will be chosen
3379     # first if we set CC to just the basename; use the full file name.
3380     shift
3381     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3382   fi
3383 fi
3384 fi
3385 fi
3386 CC=$ac_cv_prog_CC
3387 if test -n "$CC"; then
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389 $as_echo "$CC" >&6; }
3390 else
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396 fi
3397 if test -z "$CC"; then
3398   if test -n "$ac_tool_prefix"; then
3399   for ac_prog in cl.exe
3400   do
3401     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if test "${ac_cv_prog_CC+set}" = set; then :
3406   $as_echo_n "(cached) " >&6
3407 else
3408   if test -n "$CC"; then
3409   ac_cv_prog_CC="$CC" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3413 do
3414   IFS=$as_save_IFS
3415   test -z "$as_dir" && as_dir=.
3416     for ac_exec_ext in '' $ac_executable_extensions; do
3417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3418     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420     break 2
3421   fi
3422 done
3423   done
3424 IFS=$as_save_IFS
3425
3426 fi
3427 fi
3428 CC=$ac_cv_prog_CC
3429 if test -n "$CC"; then
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3431 $as_echo "$CC" >&6; }
3432 else
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3435 fi
3436
3437
3438     test -n "$CC" && break
3439   done
3440 fi
3441 if test -z "$CC"; then
3442   ac_ct_CC=$CC
3443   for ac_prog in cl.exe
3444 do
3445   # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3450   $as_echo_n "(cached) " >&6
3451 else
3452   if test -n "$ac_ct_CC"; then
3453   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460     for ac_exec_ext in '' $ac_executable_extensions; do
3461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462     ac_cv_prog_ac_ct_CC="$ac_prog"
3463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467   done
3468 IFS=$as_save_IFS
3469
3470 fi
3471 fi
3472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3473 if test -n "$ac_ct_CC"; then
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3475 $as_echo "$ac_ct_CC" >&6; }
3476 else
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 fi
3480
3481
3482   test -n "$ac_ct_CC" && break
3483 done
3484
3485   if test "x$ac_ct_CC" = x; then
3486     CC=""
3487   else
3488     case $cross_compiling:$ac_tool_warned in
3489 yes:)
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3492 ac_tool_warned=yes ;;
3493 esac
3494     CC=$ac_ct_CC
3495   fi
3496 fi
3497
3498 fi
3499
3500
3501 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error "no acceptable C compiler found in \$PATH
3504 See \`config.log' for more details." "$LINENO" 5; }
3505
3506 # Provide some information about the compiler.
3507 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3508 set X $ac_compile
3509 ac_compiler=$2
3510 for ac_option in --version -v -V -qversion; do
3511   { { ac_try="$ac_compiler $ac_option >&5"
3512 case "(($ac_try" in
3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514   *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3519   ac_status=$?
3520   if test -s conftest.err; then
3521     sed '10a\
3522 ... rest of stderr output deleted ...
3523          10q' conftest.err >conftest.er1
3524     cat conftest.er1 >&5
3525   fi
3526   rm -f conftest.er1 conftest.err
3527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528   test $ac_status = 0; }
3529 done
3530
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h.  */
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 ac_clean_files_save=$ac_clean_files
3543 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3544 # Try to create an executable without -o first, disregard a.out.
3545 # It will help us diagnose broken compilers, and finding out an intuition
3546 # of exeext.
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3548 $as_echo_n "checking whether the C compiler works... " >&6; }
3549 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3550
3551 # The possible output files:
3552 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3553
3554 ac_rmfiles=
3555 for ac_file in $ac_files
3556 do
3557   case $ac_file in
3558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3559     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3560   esac
3561 done
3562 rm -f $ac_rmfiles
3563
3564 if { { ac_try="$ac_link_default"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571   (eval "$ac_link_default") 2>&5
3572   ac_status=$?
3573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574   test $ac_status = 0; }; then :
3575   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3576 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3577 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3578 # so that the user can short-circuit this test for compilers unknown to
3579 # Autoconf.
3580 for ac_file in $ac_files ''
3581 do
3582   test -f "$ac_file" || continue
3583   case $ac_file in
3584     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3585         ;;
3586     [ab].out )
3587         # We found the default executable, but exeext='' is most
3588         # certainly right.
3589         break;;
3590     *.* )
3591         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3592         then :; else
3593            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3594         fi
3595         # We set ac_cv_exeext here because the later test for it is not
3596         # safe: cross compilers may not add the suffix if given an `-o'
3597         # argument, so we may need to know it at that point already.
3598         # Even if this section looks crufty: it has the advantage of
3599         # actually working.
3600         break;;
3601     * )
3602         break;;
3603   esac
3604 done
3605 test "$ac_cv_exeext" = no && ac_cv_exeext=
3606
3607 else
3608   ac_file=''
3609 fi
3610 if test -z "$ac_file"; then :
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3613 $as_echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 { as_fn_set_status 77
3619 as_fn_error "C compiler cannot create executables
3620 See \`config.log' for more details." "$LINENO" 5; }; }
3621 else
3622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3623 $as_echo "yes" >&6; }
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3626 $as_echo_n "checking for C compiler default output file name... " >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3628 $as_echo "$ac_file" >&6; }
3629 ac_exeext=$ac_cv_exeext
3630
3631 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3632 ac_clean_files=$ac_clean_files_save
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3634 $as_echo_n "checking for suffix of executables... " >&6; }
3635 if { { ac_try="$ac_link"
3636 case "(($ac_try" in
3637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638   *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642   (eval "$ac_link") 2>&5
3643   ac_status=$?
3644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645   test $ac_status = 0; }; then :
3646   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3647 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3648 # work properly (i.e., refer to `conftest.exe'), while it won't with
3649 # `rm'.
3650 for ac_file in conftest.exe conftest conftest.*; do
3651   test -f "$ac_file" || continue
3652   case $ac_file in
3653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655           break;;
3656     * ) break;;
3657   esac
3658 done
3659 else
3660   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error "cannot compute suffix of executables: cannot compile and link
3663 See \`config.log' for more details." "$LINENO" 5; }
3664 fi
3665 rm -f conftest conftest$ac_cv_exeext
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3667 $as_echo "$ac_cv_exeext" >&6; }
3668
3669 rm -f conftest.$ac_ext
3670 EXEEXT=$ac_cv_exeext
3671 ac_exeext=$EXEEXT
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h.  */
3674 #include <stdio.h>
3675 int
3676 main ()
3677 {
3678 FILE *f = fopen ("conftest.out", "w");
3679  return ferror (f) || fclose (f) != 0;
3680
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 ac_clean_files="$ac_clean_files conftest.out"
3686 # Check that the compiler produces executables we can run.  If not, either
3687 # the compiler is broken, or we cross compile.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3689 $as_echo_n "checking whether we are cross compiling... " >&6; }
3690 if test "$cross_compiling" != yes; then
3691   { { ac_try="$ac_link"
3692 case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698   (eval "$ac_link") 2>&5
3699   ac_status=$?
3700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701   test $ac_status = 0; }
3702   if { ac_try='./conftest$ac_cv_exeext'
3703   { { case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709   (eval "$ac_try") 2>&5
3710   ac_status=$?
3711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712   test $ac_status = 0; }; }; then
3713     cross_compiling=no
3714   else
3715     if test "$cross_compiling" = maybe; then
3716         cross_compiling=yes
3717     else
3718         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error "cannot run C compiled programs.
3721 If you meant to cross compile, use \`--host'.
3722 See \`config.log' for more details." "$LINENO" 5; }
3723     fi
3724   fi
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3727 $as_echo "$cross_compiling" >&6; }
3728
3729 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3730 ac_clean_files=$ac_clean_files_save
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3732 $as_echo_n "checking for suffix of object files... " >&6; }
3733 if test "${ac_cv_objext+set}" = set; then :
3734   $as_echo_n "(cached) " >&6
3735 else
3736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h.  */
3738
3739 int
3740 main ()
3741 {
3742
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.o conftest.obj
3748 if { { ac_try="$ac_compile"
3749 case "(($ac_try" in
3750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751   *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755   (eval "$ac_compile") 2>&5
3756   ac_status=$?
3757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758   test $ac_status = 0; }; then :
3759   for ac_file in conftest.o conftest.obj conftest.*; do
3760   test -f "$ac_file" || continue;
3761   case $ac_file in
3762     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3763     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3764        break;;
3765   esac
3766 done
3767 else
3768   $as_echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error "cannot compute suffix of object files: cannot compile
3774 See \`config.log' for more details." "$LINENO" 5; }
3775 fi
3776 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3779 $as_echo "$ac_cv_objext" >&6; }
3780 OBJEXT=$ac_cv_objext
3781 ac_objext=$OBJEXT
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3783 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3784 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3785   $as_echo_n "(cached) " >&6
3786 else
3787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793 #ifndef __GNUC__
3794        choke me
3795 #endif
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802   ac_compiler_gnu=yes
3803 else
3804   ac_compiler_gnu=no
3805 fi
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3808
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3811 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3812 if test $ac_compiler_gnu = yes; then
3813   GCC=yes
3814 else
3815   GCC=
3816 fi
3817 ac_test_CFLAGS=${CFLAGS+set}
3818 ac_save_CFLAGS=$CFLAGS
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3820 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3821 if test "${ac_cv_prog_cc_g+set}" = set; then :
3822   $as_echo_n "(cached) " >&6
3823 else
3824   ac_save_c_werror_flag=$ac_c_werror_flag
3825    ac_c_werror_flag=yes
3826    ac_cv_prog_cc_g=no
3827    CFLAGS="-g"
3828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h.  */
3830
3831 int
3832 main ()
3833 {
3834
3835   ;
3836   return 0;
3837 }
3838 _ACEOF
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840   ac_cv_prog_cc_g=yes
3841 else
3842   CFLAGS=""
3843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h.  */
3845
3846 int
3847 main ()
3848 {
3849
3850   ;
3851   return 0;
3852 }
3853 _ACEOF
3854 if ac_fn_c_try_compile "$LINENO"; then :
3855
3856 else
3857   ac_c_werror_flag=$ac_save_c_werror_flag
3858          CFLAGS="-g"
3859          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h.  */
3861
3862 int
3863 main ()
3864 {
3865
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871   ac_cv_prog_cc_g=yes
3872 fi
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 fi
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 fi
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878    ac_c_werror_flag=$ac_save_c_werror_flag
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3881 $as_echo "$ac_cv_prog_cc_g" >&6; }
3882 if test "$ac_test_CFLAGS" = set; then
3883   CFLAGS=$ac_save_CFLAGS
3884 elif test $ac_cv_prog_cc_g = yes; then
3885   if test "$GCC" = yes; then
3886     CFLAGS="-g -O2"
3887   else
3888     CFLAGS="-g"
3889   fi
3890 else
3891   if test "$GCC" = yes; then
3892     CFLAGS="-O2"
3893   else
3894     CFLAGS=
3895   fi
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3898 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3899 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3900   $as_echo_n "(cached) " >&6
3901 else
3902   ac_cv_prog_cc_c89=no
3903 ac_save_CC=$CC
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906 #include <stdarg.h>
3907 #include <stdio.h>
3908 #include <sys/types.h>
3909 #include <sys/stat.h>
3910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3911 struct buf { int x; };
3912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3913 static char *e (p, i)
3914      char **p;
3915      int i;
3916 {
3917   return p[i];
3918 }
3919 static char *f (char * (*g) (char **, int), char **p, ...)
3920 {
3921   char *s;
3922   va_list v;
3923   va_start (v,p);
3924   s = g (p, va_arg (v,int));
3925   va_end (v);
3926   return s;
3927 }
3928
3929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3930    function prototypes and stuff, but not '\xHH' hex character constants.
3931    These don't provoke an error unfortunately, instead are silently treated
3932    as 'x'.  The following induces an error, until -std is added to get
3933    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3934    array size at least.  It's necessary to write '\x00'==0 to get something
3935    that's true only with -std.  */
3936 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3937
3938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3939    inside strings and character constants.  */
3940 #define FOO(x) 'x'
3941 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3942
3943 int test (int i, double x);
3944 struct s1 {int (*f) (int a);};
3945 struct s2 {int (*f) (double a);};
3946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3947 int argc;
3948 char **argv;
3949 int
3950 main ()
3951 {
3952 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3958         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3959 do
3960   CC="$ac_save_CC $ac_arg"
3961   if ac_fn_c_try_compile "$LINENO"; then :
3962   ac_cv_prog_cc_c89=$ac_arg
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext
3965   test "x$ac_cv_prog_cc_c89" != "xno" && break
3966 done
3967 rm -f conftest.$ac_ext
3968 CC=$ac_save_CC
3969
3970 fi
3971 # AC_CACHE_VAL
3972 case "x$ac_cv_prog_cc_c89" in
3973   x)
3974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3975 $as_echo "none needed" >&6; } ;;
3976   xno)
3977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3978 $as_echo "unsupported" >&6; } ;;
3979   *)
3980     CC="$CC $ac_cv_prog_cc_c89"
3981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3982 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3983 esac
3984 if test "x$ac_cv_prog_cc_c89" != xno; then :
3985
3986 fi
3987
3988 ac_ext=c
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
3994 depcc="$CC"   am_compiler_list=
3995
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3997 $as_echo_n "checking dependency style of $depcc... " >&6; }
3998 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4002   # We make a subdir and do the tests there.  Otherwise we can end up
4003   # making bogus files that we don't know about and never remove.  For
4004   # instance it was reported that on HP-UX the gcc test will end up
4005   # making a dummy file named `D' -- because `-MD' means `put the output
4006   # in D'.
4007   mkdir conftest.dir
4008   # Copy depcomp to subdir because otherwise we won't find it if we're
4009   # using a relative directory.
4010   cp "$am_depcomp" conftest.dir
4011   cd conftest.dir
4012   # We will build objects and dependencies in a subdirectory because
4013   # it helps to detect inapplicable dependency modes.  For instance
4014   # both Tru64's cc and ICC support -MD to output dependencies as a
4015   # side effect of compilation, but ICC will put the dependencies in
4016   # the current directory while Tru64 will put them in the object
4017   # directory.
4018   mkdir sub
4019
4020   am_cv_CC_dependencies_compiler_type=none
4021   if test "$am_compiler_list" = ""; then
4022      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4023   fi
4024   am__universal=false
4025   case " $depcc " in #(
4026      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4027      esac
4028
4029   for depmode in $am_compiler_list; do
4030     # Setup a source with many dependencies, because some compilers
4031     # like to wrap large dependency lists on column 80 (with \), and
4032     # we should not choose a depcomp mode which is confused by this.
4033     #
4034     # We need to recreate these files for each test, as the compiler may
4035     # overwrite some of them when testing with obscure command lines.
4036     # This happens at least with the AIX C compiler.
4037     : > sub/conftest.c
4038     for i in 1 2 3 4 5 6; do
4039       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4040       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4041       # Solaris 8's {/usr,}/bin/sh.
4042       touch sub/conftst$i.h
4043     done
4044     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4045
4046     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4047     # mode.  It turns out that the SunPro C++ compiler does not properly
4048     # handle `-M -o', and we need to detect this.  Also, some Intel
4049     # versions had trouble with output in subdirs
4050     am__obj=sub/conftest.${OBJEXT-o}
4051     am__minus_obj="-o $am__obj"
4052     case $depmode in
4053     gcc)
4054       # This depmode causes a compiler race in universal mode.
4055       test "$am__universal" = false || continue
4056       ;;
4057     nosideeffect)
4058       # after this tag, mechanisms are not by side-effect, so they'll
4059       # only be used when explicitly requested
4060       if test "x$enable_dependency_tracking" = xyes; then
4061         continue
4062       else
4063         break
4064       fi
4065       ;;
4066     msvisualcpp | msvcmsys)
4067       # This compiler won't grok `-c -o', but also, the minuso test has
4068       # not run yet.  These depmodes are late enough in the game, and
4069       # so weak that their functioning should not be impacted.
4070       am__obj=conftest.${OBJEXT-o}
4071       am__minus_obj=
4072       ;;
4073     none) break ;;
4074     esac
4075     if depmode=$depmode \
4076        source=sub/conftest.c object=$am__obj \
4077        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4078        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4079          >/dev/null 2>conftest.err &&
4080        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4081        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4082        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4083        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4084       # icc doesn't choke on unknown options, it will just issue warnings
4085       # or remarks (even with -Werror).  So we grep stderr for any message
4086       # that says an option was ignored or not supported.
4087       # When given -MP, icc 7.0 and 7.1 complain thusly:
4088       #   icc: Command line warning: ignoring option '-M'; no argument required
4089       # The diagnosis changed in icc 8.0:
4090       #   icc: Command line remark: option '-MP' not supported
4091       if (grep 'ignoring option' conftest.err ||
4092           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4093         am_cv_CC_dependencies_compiler_type=$depmode
4094         break
4095       fi
4096     fi
4097   done
4098
4099   cd ..
4100   rm -rf conftest.dir
4101 else
4102   am_cv_CC_dependencies_compiler_type=none
4103 fi
4104
4105 fi
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4107 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4108 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4109
4110  if
4111   test "x$enable_dependency_tracking" != xno \
4112   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4113   am__fastdepCC_TRUE=
4114   am__fastdepCC_FALSE='#'
4115 else
4116   am__fastdepCC_TRUE='#'
4117   am__fastdepCC_FALSE=
4118 fi
4119
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4122 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4123 if test "${ac_cv_path_SED+set}" = set; then :
4124   $as_echo_n "(cached) " >&6
4125 else
4126             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4127      for ac_i in 1 2 3 4 5 6 7; do
4128        ac_script="$ac_script$as_nl$ac_script"
4129      done
4130      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4131      { ac_script=; unset ac_script;}
4132      if test -z "$SED"; then
4133   ac_path_SED_found=false
4134   # Loop through the user's path and test for each of PROGNAME-LIST
4135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140     for ac_prog in sed gsed; do
4141     for ac_exec_ext in '' $ac_executable_extensions; do
4142       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4143       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4144 # Check for GNU ac_path_SED and select it if it is found.
4145   # Check for GNU $ac_path_SED
4146 case `"$ac_path_SED" --version 2>&1` in
4147 *GNU*)
4148   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4149 *)
4150   ac_count=0
4151   $as_echo_n 0123456789 >"conftest.in"
4152   while :
4153   do
4154     cat "conftest.in" "conftest.in" >"conftest.tmp"
4155     mv "conftest.tmp" "conftest.in"
4156     cp "conftest.in" "conftest.nl"
4157     $as_echo '' >> "conftest.nl"
4158     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160     as_fn_arith $ac_count + 1 && ac_count=$as_val
4161     if test $ac_count -gt ${ac_path_SED_max-0}; then
4162       # Best one so far, save it but keep looking for a better one
4163       ac_cv_path_SED="$ac_path_SED"
4164       ac_path_SED_max=$ac_count
4165     fi
4166     # 10*(2^10) chars as input seems more than enough
4167     test $ac_count -gt 10 && break
4168   done
4169   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170 esac
4171
4172       $ac_path_SED_found && break 3
4173     done
4174   done
4175   done
4176 IFS=$as_save_IFS
4177   if test -z "$ac_cv_path_SED"; then
4178     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4179   fi
4180 else
4181   ac_cv_path_SED=$SED
4182 fi
4183
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4186 $as_echo "$ac_cv_path_SED" >&6; }
4187  SED="$ac_cv_path_SED"
4188   rm -f conftest.sed
4189
4190 test -z "$SED" && SED=sed
4191 Xsed="$SED -e 1s/^X//"
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4204 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4205 if test "${ac_cv_path_GREP+set}" = set; then :
4206   $as_echo_n "(cached) " >&6
4207 else
4208   if test -z "$GREP"; then
4209   ac_path_GREP_found=false
4210   # Loop through the user's path and test for each of PROGNAME-LIST
4211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4213 do
4214   IFS=$as_save_IFS
4215   test -z "$as_dir" && as_dir=.
4216     for ac_prog in grep ggrep; do
4217     for ac_exec_ext in '' $ac_executable_extensions; do
4218       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4219       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4220 # Check for GNU ac_path_GREP and select it if it is found.
4221   # Check for GNU $ac_path_GREP
4222 case `"$ac_path_GREP" --version 2>&1` in
4223 *GNU*)
4224   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4225 *)
4226   ac_count=0
4227   $as_echo_n 0123456789 >"conftest.in"
4228   while :
4229   do
4230     cat "conftest.in" "conftest.in" >"conftest.tmp"
4231     mv "conftest.tmp" "conftest.in"
4232     cp "conftest.in" "conftest.nl"
4233     $as_echo 'GREP' >> "conftest.nl"
4234     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236     as_fn_arith $ac_count + 1 && ac_count=$as_val
4237     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4238       # Best one so far, save it but keep looking for a better one
4239       ac_cv_path_GREP="$ac_path_GREP"
4240       ac_path_GREP_max=$ac_count
4241     fi
4242     # 10*(2^10) chars as input seems more than enough
4243     test $ac_count -gt 10 && break
4244   done
4245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246 esac
4247
4248       $ac_path_GREP_found && break 3
4249     done
4250   done
4251   done
4252 IFS=$as_save_IFS
4253   if test -z "$ac_cv_path_GREP"; then
4254     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4255   fi
4256 else
4257   ac_cv_path_GREP=$GREP
4258 fi
4259
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4262 $as_echo "$ac_cv_path_GREP" >&6; }
4263  GREP="$ac_cv_path_GREP"
4264
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4267 $as_echo_n "checking for egrep... " >&6; }
4268 if test "${ac_cv_path_EGREP+set}" = set; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4272    then ac_cv_path_EGREP="$GREP -E"
4273    else
4274      if test -z "$EGREP"; then
4275   ac_path_EGREP_found=false
4276   # Loop through the user's path and test for each of PROGNAME-LIST
4277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282     for ac_prog in egrep; do
4283     for ac_exec_ext in '' $ac_executable_extensions; do
4284       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4285       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4286 # Check for GNU ac_path_EGREP and select it if it is found.
4287   # Check for GNU $ac_path_EGREP
4288 case `"$ac_path_EGREP" --version 2>&1` in
4289 *GNU*)
4290   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4291 *)
4292   ac_count=0
4293   $as_echo_n 0123456789 >"conftest.in"
4294   while :
4295   do
4296     cat "conftest.in" "conftest.in" >"conftest.tmp"
4297     mv "conftest.tmp" "conftest.in"
4298     cp "conftest.in" "conftest.nl"
4299     $as_echo 'EGREP' >> "conftest.nl"
4300     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302     as_fn_arith $ac_count + 1 && ac_count=$as_val
4303     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4304       # Best one so far, save it but keep looking for a better one
4305       ac_cv_path_EGREP="$ac_path_EGREP"
4306       ac_path_EGREP_max=$ac_count
4307     fi
4308     # 10*(2^10) chars as input seems more than enough
4309     test $ac_count -gt 10 && break
4310   done
4311   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312 esac
4313
4314       $ac_path_EGREP_found && break 3
4315     done
4316   done
4317   done
4318 IFS=$as_save_IFS
4319   if test -z "$ac_cv_path_EGREP"; then
4320     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4321   fi
4322 else
4323   ac_cv_path_EGREP=$EGREP
4324 fi
4325
4326    fi
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4329 $as_echo "$ac_cv_path_EGREP" >&6; }
4330  EGREP="$ac_cv_path_EGREP"
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4334 $as_echo_n "checking for fgrep... " >&6; }
4335 if test "${ac_cv_path_FGREP+set}" = set; then :
4336   $as_echo_n "(cached) " >&6
4337 else
4338   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4339    then ac_cv_path_FGREP="$GREP -F"
4340    else
4341      if test -z "$FGREP"; then
4342   ac_path_FGREP_found=false
4343   # Loop through the user's path and test for each of PROGNAME-LIST
4344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346 do
4347   IFS=$as_save_IFS
4348   test -z "$as_dir" && as_dir=.
4349     for ac_prog in fgrep; do
4350     for ac_exec_ext in '' $ac_executable_extensions; do
4351       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4352       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4353 # Check for GNU ac_path_FGREP and select it if it is found.
4354   # Check for GNU $ac_path_FGREP
4355 case `"$ac_path_FGREP" --version 2>&1` in
4356 *GNU*)
4357   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4358 *)
4359   ac_count=0
4360   $as_echo_n 0123456789 >"conftest.in"
4361   while :
4362   do
4363     cat "conftest.in" "conftest.in" >"conftest.tmp"
4364     mv "conftest.tmp" "conftest.in"
4365     cp "conftest.in" "conftest.nl"
4366     $as_echo 'FGREP' >> "conftest.nl"
4367     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369     as_fn_arith $ac_count + 1 && ac_count=$as_val
4370     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4371       # Best one so far, save it but keep looking for a better one
4372       ac_cv_path_FGREP="$ac_path_FGREP"
4373       ac_path_FGREP_max=$ac_count
4374     fi
4375     # 10*(2^10) chars as input seems more than enough
4376     test $ac_count -gt 10 && break
4377   done
4378   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379 esac
4380
4381       $ac_path_FGREP_found && break 3
4382     done
4383   done
4384   done
4385 IFS=$as_save_IFS
4386   if test -z "$ac_cv_path_FGREP"; then
4387     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388   fi
4389 else
4390   ac_cv_path_FGREP=$FGREP
4391 fi
4392
4393    fi
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4396 $as_echo "$ac_cv_path_FGREP" >&6; }
4397  FGREP="$ac_cv_path_FGREP"
4398
4399
4400 test -z "$GREP" && GREP=grep
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420 # Check whether --with-gnu-ld was given.
4421 if test "${with_gnu_ld+set}" = set; then :
4422   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4423 else
4424   with_gnu_ld=no
4425 fi
4426
4427 ac_prog=ld
4428 if test "$GCC" = yes; then
4429   # Check if gcc -print-prog-name=ld gives a path.
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4431 $as_echo_n "checking for ld used by $CC... " >&6; }
4432   case $host in
4433   *-*-mingw*)
4434     # gcc leaves a trailing carriage return which upsets mingw
4435     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4436   *)
4437     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4438   esac
4439   case $ac_prog in
4440     # Accept absolute paths.
4441     [\\/]* | ?:[\\/]*)
4442       re_direlt='/[^/][^/]*/\.\./'
4443       # Canonicalize the pathname of ld
4444       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4445       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4446         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4447       done
4448       test -z "$LD" && LD="$ac_prog"
4449       ;;
4450   "")
4451     # If it fails, then pretend we aren't using GCC.
4452     ac_prog=ld
4453     ;;
4454   *)
4455     # If it is relative, then search for the first ld in PATH.
4456     with_gnu_ld=unknown
4457     ;;
4458   esac
4459 elif test "$with_gnu_ld" = yes; then
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4461 $as_echo_n "checking for GNU ld... " >&6; }
4462 else
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4464 $as_echo_n "checking for non-GNU ld... " >&6; }
4465 fi
4466 if test "${lt_cv_path_LD+set}" = set; then :
4467   $as_echo_n "(cached) " >&6
4468 else
4469   if test -z "$LD"; then
4470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4471   for ac_dir in $PATH; do
4472     IFS="$lt_save_ifs"
4473     test -z "$ac_dir" && ac_dir=.
4474     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4475       lt_cv_path_LD="$ac_dir/$ac_prog"
4476       # Check to see if the program is GNU ld.  I'd rather use --version,
4477       # but apparently some variants of GNU ld only accept -v.
4478       # Break only if it was the GNU/non-GNU ld that we prefer.
4479       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4480       *GNU* | *'with BFD'*)
4481         test "$with_gnu_ld" != no && break
4482         ;;
4483       *)
4484         test "$with_gnu_ld" != yes && break
4485         ;;
4486       esac
4487     fi
4488   done
4489   IFS="$lt_save_ifs"
4490 else
4491   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4492 fi
4493 fi
4494
4495 LD="$lt_cv_path_LD"
4496 if test -n "$LD"; then
4497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4498 $as_echo "$LD" >&6; }
4499 else
4500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501 $as_echo "no" >&6; }
4502 fi
4503 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4505 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4506 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4507   $as_echo_n "(cached) " >&6
4508 else
4509   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4510 case `$LD -v 2>&1 </dev/null` in
4511 *GNU* | *'with BFD'*)
4512   lt_cv_prog_gnu_ld=yes
4513   ;;
4514 *)
4515   lt_cv_prog_gnu_ld=no
4516   ;;
4517 esac
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4520 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4521 with_gnu_ld=$lt_cv_prog_gnu_ld
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4532 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4533 if test "${lt_cv_path_NM+set}" = set; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   if test -n "$NM"; then
4537   # Let the user override the test.
4538   lt_cv_path_NM="$NM"
4539 else
4540   lt_nm_to_check="${ac_tool_prefix}nm"
4541   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4542     lt_nm_to_check="$lt_nm_to_check nm"
4543   fi
4544   for lt_tmp_nm in $lt_nm_to_check; do
4545     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4546     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4547       IFS="$lt_save_ifs"
4548       test -z "$ac_dir" && ac_dir=.
4549       tmp_nm="$ac_dir/$lt_tmp_nm"
4550       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4551         # Check to see if the nm accepts a BSD-compat flag.
4552         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4553         #   nm: unknown option "B" ignored
4554         # Tru64's nm complains that /dev/null is an invalid object file
4555         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4556         */dev/null* | *'Invalid file or object type'*)
4557           lt_cv_path_NM="$tmp_nm -B"
4558           break
4559           ;;
4560         *)
4561           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4562           */dev/null*)
4563             lt_cv_path_NM="$tmp_nm -p"
4564             break
4565             ;;
4566           *)
4567             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4568             continue # so that we can try to find one that supports BSD flags
4569             ;;
4570           esac
4571           ;;
4572         esac
4573       fi
4574     done
4575     IFS="$lt_save_ifs"
4576   done
4577   : ${lt_cv_path_NM=no}
4578 fi
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4581 $as_echo "$lt_cv_path_NM" >&6; }
4582 if test "$lt_cv_path_NM" != "no"; then
4583   NM="$lt_cv_path_NM"
4584 else
4585   # Didn't find any BSD compatible name lister, look for dumpbin.
4586   if test -n "$ac_tool_prefix"; then
4587   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4588   do
4589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   if test -n "$DUMPBIN"; then
4597   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611   done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 DUMPBIN=$ac_cv_prog_DUMPBIN
4617 if test -n "$DUMPBIN"; then
4618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4619 $as_echo "$DUMPBIN" >&6; }
4620 else
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624
4625
4626     test -n "$DUMPBIN" && break
4627   done
4628 fi
4629 if test -z "$DUMPBIN"; then
4630   ac_ct_DUMPBIN=$DUMPBIN
4631   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4632 do
4633   # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   if test -n "$ac_ct_DUMPBIN"; then
4641   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648     for ac_exec_ext in '' $ac_executable_extensions; do
4649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652     break 2
4653   fi
4654 done
4655   done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4661 if test -n "$ac_ct_DUMPBIN"; then
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4663 $as_echo "$ac_ct_DUMPBIN" >&6; }
4664 else
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668
4669
4670   test -n "$ac_ct_DUMPBIN" && break
4671 done
4672
4673   if test "x$ac_ct_DUMPBIN" = x; then
4674     DUMPBIN=":"
4675   else
4676     case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682     DUMPBIN=$ac_ct_DUMPBIN
4683   fi
4684 fi
4685
4686
4687   if test "$DUMPBIN" != ":"; then
4688     NM="$DUMPBIN"
4689   fi
4690 fi
4691 test -z "$NM" && NM=nm
4692
4693
4694
4695
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4699 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4700 if test "${lt_cv_nm_interface+set}" = set; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   lt_cv_nm_interface="BSD nm"
4704   echo "int some_variable = 0;" > conftest.$ac_ext
4705   (eval echo "\"\$as_me:4705: $ac_compile\"" >&5)
4706   (eval "$ac_compile" 2>conftest.err)
4707   cat conftest.err >&5
4708   (eval echo "\"\$as_me:4708: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4709   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4710   cat conftest.err >&5
4711   (eval echo "\"\$as_me:4711: output\"" >&5)
4712   cat conftest.out >&5
4713   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4714     lt_cv_nm_interface="MS dumpbin"
4715   fi
4716   rm -f conftest*
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4719 $as_echo "$lt_cv_nm_interface" >&6; }
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4722 $as_echo_n "checking whether ln -s works... " >&6; }
4723 LN_S=$as_ln_s
4724 if test "$LN_S" = "ln -s"; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4726 $as_echo "yes" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4729 $as_echo "no, using $LN_S" >&6; }
4730 fi
4731
4732 # find the maximum length of command line arguments
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4734 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4735 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738     i=0
4739   teststring="ABCD"
4740
4741   case $build_os in
4742   msdosdjgpp*)
4743     # On DJGPP, this test can blow up pretty badly due to problems in libc
4744     # (any single argument exceeding 2000 bytes causes a buffer overrun
4745     # during glob expansion).  Even if it were fixed, the result of this
4746     # check would be larger than it should be.
4747     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4748     ;;
4749
4750   gnu*)
4751     # Under GNU Hurd, this test is not required because there is
4752     # no limit to the length of command line arguments.
4753     # Libtool will interpret -1 as no limit whatsoever
4754     lt_cv_sys_max_cmd_len=-1;
4755     ;;
4756
4757   cygwin* | mingw* | cegcc*)
4758     # On Win9x/ME, this test blows up -- it succeeds, but takes
4759     # about 5 minutes as the teststring grows exponentially.
4760     # Worse, since 9x/ME are not pre-emptively multitasking,
4761     # you end up with a "frozen" computer, even though with patience
4762     # the test eventually succeeds (with a max line length of 256k).
4763     # Instead, let's just punt: use the minimum linelength reported by
4764     # all of the supported platforms: 8192 (on NT/2K/XP).
4765     lt_cv_sys_max_cmd_len=8192;
4766     ;;
4767
4768   amigaos*)
4769     # On AmigaOS with pdksh, this test takes hours, literally.
4770     # So we just punt and use a minimum line length of 8192.
4771     lt_cv_sys_max_cmd_len=8192;
4772     ;;
4773
4774   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4775     # This has been around since 386BSD, at least.  Likely further.
4776     if test -x /sbin/sysctl; then
4777       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4778     elif test -x /usr/sbin/sysctl; then
4779       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4780     else
4781       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4782     fi
4783     # And add a safety zone
4784     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4785     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4786     ;;
4787
4788   interix*)
4789     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4790     lt_cv_sys_max_cmd_len=196608
4791     ;;
4792
4793   osf*)
4794     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4795     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4796     # nice to cause kernel panics so lets avoid the loop below.
4797     # First set a reasonable default.
4798     lt_cv_sys_max_cmd_len=16384
4799     #
4800     if test -x /sbin/sysconfig; then
4801       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4802         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4803       esac
4804     fi
4805     ;;
4806   sco3.2v5*)
4807     lt_cv_sys_max_cmd_len=102400
4808     ;;
4809   sysv5* | sco5v6* | sysv4.2uw2*)
4810     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4811     if test -n "$kargmax"; then
4812       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4813     else
4814       lt_cv_sys_max_cmd_len=32768
4815     fi
4816     ;;
4817   *)
4818     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4819     if test -n "$lt_cv_sys_max_cmd_len"; then
4820       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4821       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4822     else
4823       # Make teststring a little bigger before we do anything with it.
4824       # a 1K string should be a reasonable start.
4825       for i in 1 2 3 4 5 6 7 8 ; do
4826         teststring=$teststring$teststring
4827       done
4828       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4829       # If test is not a shell built-in, we'll probably end up computing a
4830       # maximum length that is only half of the actual maximum length, but
4831       # we can't tell.
4832       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4833                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4834               test $i != 17 # 1/2 MB should be enough
4835       do
4836         i=`expr $i + 1`
4837         teststring=$teststring$teststring
4838       done
4839       # Only check the string length outside the loop.
4840       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4841       teststring=
4842       # Add a significant safety factor because C++ compilers can tack on
4843       # massive amounts of additional arguments before passing them to the
4844       # linker.  It appears as though 1/2 is a usable value.
4845       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4846     fi
4847     ;;
4848   esac
4849
4850 fi
4851
4852 if test -n $lt_cv_sys_max_cmd_len ; then
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4854 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4855 else
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4857 $as_echo "none" >&6; }
4858 fi
4859 max_cmd_len=$lt_cv_sys_max_cmd_len
4860
4861
4862
4863
4864
4865
4866 : ${CP="cp -f"}
4867 : ${MV="mv -f"}
4868 : ${RM="rm -f"}
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4871 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4872 # Try some XSI features
4873 xsi_shell=no
4874 ( _lt_dummy="a/b/c"
4875   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4876       = c,a/b,, \
4877     && eval 'test $(( 1 + 1 )) -eq 2 \
4878     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4879   && xsi_shell=yes
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4881 $as_echo "$xsi_shell" >&6; }
4882
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4885 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4886 lt_shell_append=no
4887 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4888     >/dev/null 2>&1 \
4889   && lt_shell_append=yes
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4891 $as_echo "$lt_shell_append" >&6; }
4892
4893
4894 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4895   lt_unset=unset
4896 else
4897   lt_unset=false
4898 fi
4899
4900
4901
4902
4903
4904 # test EBCDIC or ASCII
4905 case `echo X|tr X '\101'` in
4906  A) # ASCII based system
4907     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4908   lt_SP2NL='tr \040 \012'
4909   lt_NL2SP='tr \015\012 \040\040'
4910   ;;
4911  *) # EBCDIC based system
4912   lt_SP2NL='tr \100 \n'
4913   lt_NL2SP='tr \r\n \100\100'
4914   ;;
4915 esac
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4926 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4927 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4928   $as_echo_n "(cached) " >&6
4929 else
4930   lt_cv_ld_reload_flag='-r'
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4933 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4934 reload_flag=$lt_cv_ld_reload_flag
4935 case $reload_flag in
4936 "" | " "*) ;;
4937 *) reload_flag=" $reload_flag" ;;
4938 esac
4939 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4940 case $host_os in
4941   darwin*)
4942     if test "$GCC" = yes; then
4943       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4944     else
4945       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4946     fi
4947     ;;
4948 esac
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958 if test -n "$ac_tool_prefix"; then
4959   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4960 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4964   $as_echo_n "(cached) " >&6
4965 else
4966   if test -n "$OBJDUMP"; then
4967   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974     for ac_exec_ext in '' $ac_executable_extensions; do
4975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981   done
4982 IFS=$as_save_IFS
4983
4984 fi
4985 fi
4986 OBJDUMP=$ac_cv_prog_OBJDUMP
4987 if test -n "$OBJDUMP"; then
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4989 $as_echo "$OBJDUMP" >&6; }
4990 else
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4993 fi
4994
4995
4996 fi
4997 if test -z "$ac_cv_prog_OBJDUMP"; then
4998   ac_ct_OBJDUMP=$OBJDUMP
4999   # Extract the first word of "objdump", so it can be a program name with args.
5000 set dummy objdump; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5004   $as_echo_n "(cached) " >&6
5005 else
5006   if test -n "$ac_ct_OBJDUMP"; then
5007   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012   IFS=$as_save_IFS
5013   test -z "$as_dir" && as_dir=.
5014     for ac_exec_ext in '' $ac_executable_extensions; do
5015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018     break 2
5019   fi
5020 done
5021   done
5022 IFS=$as_save_IFS
5023
5024 fi
5025 fi
5026 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5027 if test -n "$ac_ct_OBJDUMP"; then
5028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5029 $as_echo "$ac_ct_OBJDUMP" >&6; }
5030 else
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035   if test "x$ac_ct_OBJDUMP" = x; then
5036     OBJDUMP="false"
5037   else
5038     case $cross_compiling:$ac_tool_warned in
5039 yes:)
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5042 ac_tool_warned=yes ;;
5043 esac
5044     OBJDUMP=$ac_ct_OBJDUMP
5045   fi
5046 else
5047   OBJDUMP="$ac_cv_prog_OBJDUMP"
5048 fi
5049
5050 test -z "$OBJDUMP" && OBJDUMP=objdump
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5061 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5062 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   lt_cv_file_magic_cmd='$MAGIC_CMD'
5066 lt_cv_file_magic_test_file=
5067 lt_cv_deplibs_check_method='unknown'
5068 # Need to set the preceding variable on all platforms that support
5069 # interlibrary dependencies.
5070 # 'none' -- dependencies not supported.
5071 # `unknown' -- same as none, but documents that we really don't know.
5072 # 'pass_all' -- all dependencies passed with no checks.
5073 # 'test_compile' -- check by making test program.
5074 # 'file_magic [[regex]]' -- check by looking for files in library path
5075 # which responds to the $file_magic_cmd with a given extended regex.
5076 # If you have `file' or equivalent on your system and you're not sure
5077 # whether `pass_all' will *always* work, you probably want this one.
5078
5079 case $host_os in
5080 aix[4-9]*)
5081   lt_cv_deplibs_check_method=pass_all
5082   ;;
5083
5084 beos*)
5085   lt_cv_deplibs_check_method=pass_all
5086   ;;
5087
5088 bsdi[45]*)
5089   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5090   lt_cv_file_magic_cmd='/usr/bin/file -L'
5091   lt_cv_file_magic_test_file=/shlib/libc.so
5092   ;;
5093
5094 cygwin*)
5095   # func_win32_libid is a shell function defined in ltmain.sh
5096   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5097   lt_cv_file_magic_cmd='func_win32_libid'
5098   ;;
5099
5100 mingw* | pw32*)
5101   # Base MSYS/MinGW do not provide the 'file' command needed by
5102   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5103   # unless we find 'file', for example because we are cross-compiling.
5104   if ( file / ) >/dev/null 2>&1; then
5105     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5106     lt_cv_file_magic_cmd='func_win32_libid'
5107   else
5108     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5109     lt_cv_file_magic_cmd='$OBJDUMP -f'
5110   fi
5111   ;;
5112
5113 cegcc)
5114   # use the weaker test based on 'objdump'. See mingw*.
5115   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5116   lt_cv_file_magic_cmd='$OBJDUMP -f'
5117   ;;
5118
5119 darwin* | rhapsody*)
5120   lt_cv_deplibs_check_method=pass_all
5121   ;;
5122
5123 freebsd* | dragonfly*)
5124   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5125     case $host_cpu in
5126     i*86 )
5127       # Not sure whether the presence of OpenBSD here was a mistake.
5128       # Let's accept both of them until this is cleared up.
5129       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5130       lt_cv_file_magic_cmd=/usr/bin/file
5131       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5132       ;;
5133     esac
5134   else
5135     lt_cv_deplibs_check_method=pass_all
5136   fi
5137   ;;
5138
5139 gnu*)
5140   lt_cv_deplibs_check_method=pass_all
5141   ;;
5142
5143 hpux10.20* | hpux11*)
5144   lt_cv_file_magic_cmd=/usr/bin/file
5145   case $host_cpu in
5146   ia64*)
5147     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5148     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5149     ;;
5150   hppa*64*)
5151     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5152     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5153     ;;
5154   *)
5155     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5156     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5157     ;;
5158   esac
5159   ;;
5160
5161 interix[3-9]*)
5162   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5163   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5164   ;;
5165
5166 irix5* | irix6* | nonstopux*)
5167   case $LD in
5168   *-32|*"-32 ") libmagic=32-bit;;
5169   *-n32|*"-n32 ") libmagic=N32;;
5170   *-64|*"-64 ") libmagic=64-bit;;
5171   *) libmagic=never-match;;
5172   esac
5173   lt_cv_deplibs_check_method=pass_all
5174   ;;
5175
5176 # This must be Linux ELF.
5177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5178   lt_cv_deplibs_check_method=pass_all
5179   ;;
5180
5181 netbsd* | netbsdelf*-gnu)
5182   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5183     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5184   else
5185     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5186   fi
5187   ;;
5188
5189 newos6*)
5190   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5191   lt_cv_file_magic_cmd=/usr/bin/file
5192   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5193   ;;
5194
5195 *nto* | *qnx*)
5196   lt_cv_deplibs_check_method=pass_all
5197   ;;
5198
5199 openbsd*)
5200   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5201     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5202   else
5203     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5204   fi
5205   ;;
5206
5207 osf3* | osf4* | osf5*)
5208   lt_cv_deplibs_check_method=pass_all
5209   ;;
5210
5211 rdos*)
5212   lt_cv_deplibs_check_method=pass_all
5213   ;;
5214
5215 solaris*)
5216   lt_cv_deplibs_check_method=pass_all
5217   ;;
5218
5219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5220   lt_cv_deplibs_check_method=pass_all
5221   ;;
5222
5223 sysv4 | sysv4.3*)
5224   case $host_vendor in
5225   motorola)
5226     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]'
5227     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5228     ;;
5229   ncr)
5230     lt_cv_deplibs_check_method=pass_all
5231     ;;
5232   sequent)
5233     lt_cv_file_magic_cmd='/bin/file'
5234     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5235     ;;
5236   sni)
5237     lt_cv_file_magic_cmd='/bin/file'
5238     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5239     lt_cv_file_magic_test_file=/lib/libc.so
5240     ;;
5241   siemens)
5242     lt_cv_deplibs_check_method=pass_all
5243     ;;
5244   pc)
5245     lt_cv_deplibs_check_method=pass_all
5246     ;;
5247   esac
5248   ;;
5249
5250 tpf*)
5251   lt_cv_deplibs_check_method=pass_all
5252   ;;
5253 esac
5254
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5257 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5258 file_magic_cmd=$lt_cv_file_magic_cmd
5259 deplibs_check_method=$lt_cv_deplibs_check_method
5260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 if test -n "$ac_tool_prefix"; then
5274   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5275 set dummy ${ac_tool_prefix}ar; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if test "${ac_cv_prog_AR+set}" = set; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   if test -n "$AR"; then
5282   ac_cv_prog_AR="$AR" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289     for ac_exec_ext in '' $ac_executable_extensions; do
5290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291     ac_cv_prog_AR="${ac_tool_prefix}ar"
5292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296   done
5297 IFS=$as_save_IFS
5298
5299 fi
5300 fi
5301 AR=$ac_cv_prog_AR
5302 if test -n "$AR"; then
5303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5304 $as_echo "$AR" >&6; }
5305 else
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5308 fi
5309
5310
5311 fi
5312 if test -z "$ac_cv_prog_AR"; then
5313   ac_ct_AR=$AR
5314   # Extract the first word of "ar", so it can be a program name with args.
5315 set dummy ar; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5319   $as_echo_n "(cached) " >&6
5320 else
5321   if test -n "$ac_ct_AR"; then
5322   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327   IFS=$as_save_IFS
5328   test -z "$as_dir" && as_dir=.
5329     for ac_exec_ext in '' $ac_executable_extensions; do
5330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331     ac_cv_prog_ac_ct_AR="ar"
5332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333     break 2
5334   fi
5335 done
5336   done
5337 IFS=$as_save_IFS
5338
5339 fi
5340 fi
5341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5342 if test -n "$ac_ct_AR"; then
5343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5344 $as_echo "$ac_ct_AR" >&6; }
5345 else
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5348 fi
5349
5350   if test "x$ac_ct_AR" = x; then
5351     AR="false"
5352   else
5353     case $cross_compiling:$ac_tool_warned in
5354 yes:)
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357 ac_tool_warned=yes ;;
5358 esac
5359     AR=$ac_ct_AR
5360   fi
5361 else
5362   AR="$ac_cv_prog_AR"
5363 fi
5364
5365 test -z "$AR" && AR=ar
5366 test -z "$AR_FLAGS" && AR_FLAGS=cru
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 if test -n "$ac_tool_prefix"; then
5379   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5380 set dummy ${ac_tool_prefix}strip; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_STRIP+set}" = set; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   if test -n "$STRIP"; then
5387   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394     for ac_exec_ext in '' $ac_executable_extensions; do
5395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401   done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 STRIP=$ac_cv_prog_STRIP
5407 if test -n "$STRIP"; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5409 $as_echo "$STRIP" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416 fi
5417 if test -z "$ac_cv_prog_STRIP"; then
5418   ac_ct_STRIP=$STRIP
5419   # Extract the first word of "strip", so it can be a program name with args.
5420 set dummy strip; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if test -n "$ac_ct_STRIP"; then
5427   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436     ac_cv_prog_ac_ct_STRIP="strip"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5447 if test -n "$ac_ct_STRIP"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5449 $as_echo "$ac_ct_STRIP" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455   if test "x$ac_ct_STRIP" = x; then
5456     STRIP=":"
5457   else
5458     case $cross_compiling:$ac_tool_warned in
5459 yes:)
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned=yes ;;
5463 esac
5464     STRIP=$ac_ct_STRIP
5465   fi
5466 else
5467   STRIP="$ac_cv_prog_STRIP"
5468 fi
5469
5470 test -z "$STRIP" && STRIP=:
5471
5472
5473
5474
5475
5476
5477 if test -n "$ac_tool_prefix"; then
5478   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   if test -n "$RANLIB"; then
5486   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493     for ac_exec_ext in '' $ac_executable_extensions; do
5494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500   done
5501 IFS=$as_save_IFS
5502
5503 fi
5504 fi
5505 RANLIB=$ac_cv_prog_RANLIB
5506 if test -n "$RANLIB"; then
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5508 $as_echo "$RANLIB" >&6; }
5509 else
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5512 fi
5513
5514
5515 fi
5516 if test -z "$ac_cv_prog_RANLIB"; then
5517   ac_ct_RANLIB=$RANLIB
5518   # Extract the first word of "ranlib", so it can be a program name with args.
5519 set dummy ranlib; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   if test -n "$ac_ct_RANLIB"; then
5526   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531   IFS=$as_save_IFS
5532   test -z "$as_dir" && as_dir=.
5533     for ac_exec_ext in '' $ac_executable_extensions; do
5534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535     ac_cv_prog_ac_ct_RANLIB="ranlib"
5536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537     break 2
5538   fi
5539 done
5540   done
5541 IFS=$as_save_IFS
5542
5543 fi
5544 fi
5545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5546 if test -n "$ac_ct_RANLIB"; then
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5548 $as_echo "$ac_ct_RANLIB" >&6; }
5549 else
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 fi
5553
5554   if test "x$ac_ct_RANLIB" = x; then
5555     RANLIB=":"
5556   else
5557     case $cross_compiling:$ac_tool_warned in
5558 yes:)
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5561 ac_tool_warned=yes ;;
5562 esac
5563     RANLIB=$ac_ct_RANLIB
5564   fi
5565 else
5566   RANLIB="$ac_cv_prog_RANLIB"
5567 fi
5568
5569 test -z "$RANLIB" && RANLIB=:
5570
5571
5572
5573
5574
5575
5576 # Determine commands to create old-style static archives.
5577 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5578 old_postinstall_cmds='chmod 644 $oldlib'
5579 old_postuninstall_cmds=
5580
5581 if test -n "$RANLIB"; then
5582   case $host_os in
5583   openbsd*)
5584     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5585     ;;
5586   *)
5587     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5588     ;;
5589   esac
5590   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5591 fi
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626 # If no C compiler was specified, use CC.
5627 LTCC=${LTCC-"$CC"}
5628
5629 # If no C compiler flags were specified, use CFLAGS.
5630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5631
5632 # Allow CC to be a program name with arguments.
5633 compiler=$CC
5634
5635
5636 # Check for command to grab the raw symbol name followed by C symbol from nm.
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5638 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5639 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642
5643 # These are sane defaults that work on at least a few old systems.
5644 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5645
5646 # Character class describing NM global symbol codes.
5647 symcode='[BCDEGRST]'
5648
5649 # Regexp to match symbols that can be accessed directly from C.
5650 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5651
5652 # Define system-specific variables.
5653 case $host_os in
5654 aix*)
5655   symcode='[BCDT]'
5656   ;;
5657 cygwin* | mingw* | pw32* | cegcc*)
5658   symcode='[ABCDGISTW]'
5659   ;;
5660 hpux*)
5661   if test "$host_cpu" = ia64; then
5662     symcode='[ABCDEGRST]'
5663   fi
5664   ;;
5665 irix* | nonstopux*)
5666   symcode='[BCDEGRST]'
5667   ;;
5668 osf*)
5669   symcode='[BCDEGQRST]'
5670   ;;
5671 solaris*)
5672   symcode='[BDRT]'
5673   ;;
5674 sco3.2v5*)
5675   symcode='[DT]'
5676   ;;
5677 sysv4.2uw2*)
5678   symcode='[DT]'
5679   ;;
5680 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5681   symcode='[ABDT]'
5682   ;;
5683 sysv4)
5684   symcode='[DFNSTU]'
5685   ;;
5686 esac
5687
5688 # If we're using GNU nm, then use its standard symbol codes.
5689 case `$NM -V 2>&1` in
5690 *GNU* | *'with BFD'*)
5691   symcode='[ABCDGIRSTW]' ;;
5692 esac
5693
5694 # Transform an extracted symbol line into a proper C declaration.
5695 # Some systems (esp. on ia64) link data and code symbols differently,
5696 # so use this general approach.
5697 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5698
5699 # Transform an extracted symbol line into symbol name and symbol address
5700 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5701 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5702
5703 # Handle CRLF in mingw tool chain
5704 opt_cr=
5705 case $build_os in
5706 mingw*)
5707   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5708   ;;
5709 esac
5710
5711 # Try without a prefix underscore, then with it.
5712 for ac_symprfx in "" "_"; do
5713
5714   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5715   symxfrm="\\1 $ac_symprfx\\2 \\2"
5716
5717   # Write the raw and C identifiers.
5718   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5719     # Fake it for dumpbin and say T for any non-static function
5720     # and D for any global variable.
5721     # Also find C++ and __fastcall symbols from MSVC++,
5722     # which start with @ or ?.
5723     lt_cv_sys_global_symbol_pipe="$AWK '"\
5724 "     {last_section=section; section=\$ 3};"\
5725 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5726 "     \$ 0!~/External *\|/{next};"\
5727 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5728 "     {if(hide[section]) next};"\
5729 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5730 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5731 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5732 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5733 "     ' prfx=^$ac_symprfx"
5734   else
5735     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5736   fi
5737
5738   # Check to see that the pipe works correctly.
5739   pipe_works=no
5740
5741   rm -f conftest*
5742   cat > conftest.$ac_ext <<_LT_EOF
5743 #ifdef __cplusplus
5744 extern "C" {
5745 #endif
5746 char nm_test_var;
5747 void nm_test_func(void);
5748 void nm_test_func(void){}
5749 #ifdef __cplusplus
5750 }
5751 #endif
5752 int main(){nm_test_var='a';nm_test_func();return(0);}
5753 _LT_EOF
5754
5755   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5756   (eval $ac_compile) 2>&5
5757   ac_status=$?
5758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5759   test $ac_status = 0; }; then
5760     # Now try to grab the symbols.
5761     nlist=conftest.nm
5762     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5763   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5764   ac_status=$?
5765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5766   test $ac_status = 0; } && test -s "$nlist"; then
5767       # Try sorting and uniquifying the output.
5768       if sort "$nlist" | uniq > "$nlist"T; then
5769         mv -f "$nlist"T "$nlist"
5770       else
5771         rm -f "$nlist"T
5772       fi
5773
5774       # Make sure that we snagged all the symbols we need.
5775       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5776         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5777           cat <<_LT_EOF > conftest.$ac_ext
5778 #ifdef __cplusplus
5779 extern "C" {
5780 #endif
5781
5782 _LT_EOF
5783           # Now generate the symbol file.
5784           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5785
5786           cat <<_LT_EOF >> conftest.$ac_ext
5787
5788 /* The mapping between symbol names and symbols.  */
5789 const struct {
5790   const char *name;
5791   void       *address;
5792 }
5793 lt__PROGRAM__LTX_preloaded_symbols[] =
5794 {
5795   { "@PROGRAM@", (void *) 0 },
5796 _LT_EOF
5797           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5798           cat <<\_LT_EOF >> conftest.$ac_ext
5799   {0, (void *) 0}
5800 };
5801
5802 /* This works around a problem in FreeBSD linker */
5803 #ifdef FREEBSD_WORKAROUND
5804 static const void *lt_preloaded_setup() {
5805   return lt__PROGRAM__LTX_preloaded_symbols;
5806 }
5807 #endif
5808
5809 #ifdef __cplusplus
5810 }
5811 #endif
5812 _LT_EOF
5813           # Now try linking the two files.
5814           mv conftest.$ac_objext conftstm.$ac_objext
5815           lt_save_LIBS="$LIBS"
5816           lt_save_CFLAGS="$CFLAGS"
5817           LIBS="conftstm.$ac_objext"
5818           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5819           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5820   (eval $ac_link) 2>&5
5821   ac_status=$?
5822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5824             pipe_works=yes
5825           fi
5826           LIBS="$lt_save_LIBS"
5827           CFLAGS="$lt_save_CFLAGS"
5828         else
5829           echo "cannot find nm_test_func in $nlist" >&5
5830         fi
5831       else
5832         echo "cannot find nm_test_var in $nlist" >&5
5833       fi
5834     else
5835       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5836     fi
5837   else
5838     echo "$progname: failed program was:" >&5
5839     cat conftest.$ac_ext >&5
5840   fi
5841   rm -rf conftest* conftst*
5842
5843   # Do not use the global_symbol_pipe unless it works.
5844   if test "$pipe_works" = yes; then
5845     break
5846   else
5847     lt_cv_sys_global_symbol_pipe=
5848   fi
5849 done
5850
5851 fi
5852
5853 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5854   lt_cv_sys_global_symbol_to_cdecl=
5855 fi
5856 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5858 $as_echo "failed" >&6; }
5859 else
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5861 $as_echo "ok" >&6; }
5862 fi
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 # Check whether --enable-libtool-lock was given.
5887 if test "${enable_libtool_lock+set}" = set; then :
5888   enableval=$enable_libtool_lock;
5889 fi
5890
5891 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5892
5893 # Some flags need to be propagated to the compiler or linker for good
5894 # libtool support.
5895 case $host in
5896 ia64-*-hpux*)
5897   # Find out which ABI we are using.
5898   echo 'int i;' > conftest.$ac_ext
5899   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5900   (eval $ac_compile) 2>&5
5901   ac_status=$?
5902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5903   test $ac_status = 0; }; then
5904     case `/usr/bin/file conftest.$ac_objext` in
5905       *ELF-32*)
5906         HPUX_IA64_MODE="32"
5907         ;;
5908       *ELF-64*)
5909         HPUX_IA64_MODE="64"
5910         ;;
5911     esac
5912   fi
5913   rm -rf conftest*
5914   ;;
5915 *-*-irix6*)
5916   # Find out which ABI we are using.
5917   echo '#line 5917 "configure"' > conftest.$ac_ext
5918   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5919   (eval $ac_compile) 2>&5
5920   ac_status=$?
5921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5922   test $ac_status = 0; }; then
5923     if test "$lt_cv_prog_gnu_ld" = yes; then
5924       case `/usr/bin/file conftest.$ac_objext` in
5925         *32-bit*)
5926           LD="${LD-ld} -melf32bsmip"
5927           ;;
5928         *N32*)
5929           LD="${LD-ld} -melf32bmipn32"
5930           ;;
5931         *64-bit*)
5932           LD="${LD-ld} -melf64bmip"
5933         ;;
5934       esac
5935     else
5936       case `/usr/bin/file conftest.$ac_objext` in
5937         *32-bit*)
5938           LD="${LD-ld} -32"
5939           ;;
5940         *N32*)
5941           LD="${LD-ld} -n32"
5942           ;;
5943         *64-bit*)
5944           LD="${LD-ld} -64"
5945           ;;
5946       esac
5947     fi
5948   fi
5949   rm -rf conftest*
5950   ;;
5951
5952 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5953 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5954   # Find out which ABI we are using.
5955   echo 'int i;' > conftest.$ac_ext
5956   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5957   (eval $ac_compile) 2>&5
5958   ac_status=$?
5959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5960   test $ac_status = 0; }; then
5961     case `/usr/bin/file conftest.o` in
5962       *32-bit*)
5963         case $host in
5964           x86_64-*kfreebsd*-gnu)
5965             LD="${LD-ld} -m elf_i386_fbsd"
5966             ;;
5967           x86_64-*linux*)
5968             LD="${LD-ld} -m elf_i386"
5969             ;;
5970           ppc64-*linux*|powerpc64-*linux*)
5971             LD="${LD-ld} -m elf32ppclinux"
5972             ;;
5973           s390x-*linux*)
5974             LD="${LD-ld} -m elf_s390"
5975             ;;
5976           sparc64-*linux*)
5977             LD="${LD-ld} -m elf32_sparc"
5978             ;;
5979         esac
5980         ;;
5981       *64-bit*)
5982         case $host in
5983           x86_64-*kfreebsd*-gnu)
5984             LD="${LD-ld} -m elf_x86_64_fbsd"
5985             ;;
5986           x86_64-*linux*)
5987             LD="${LD-ld} -m elf_x86_64"
5988             ;;
5989           ppc*-*linux*|powerpc*-*linux*)
5990             LD="${LD-ld} -m elf64ppc"
5991             ;;
5992           s390*-*linux*|s390*-*tpf*)
5993             LD="${LD-ld} -m elf64_s390"
5994             ;;
5995           sparc*-*linux*)
5996             LD="${LD-ld} -m elf64_sparc"
5997             ;;
5998         esac
5999         ;;
6000     esac
6001   fi
6002   rm -rf conftest*
6003   ;;
6004
6005 *-*-sco3.2v5*)
6006   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6007   SAVE_CFLAGS="$CFLAGS"
6008   CFLAGS="$CFLAGS -belf"
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6010 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6011 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6012   $as_echo_n "(cached) " >&6
6013 else
6014   ac_ext=c
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
6020      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h.  */
6022
6023 int
6024 main ()
6025 {
6026
6027   ;
6028   return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_link "$LINENO"; then :
6032   lt_cv_cc_needs_belf=yes
6033 else
6034   lt_cv_cc_needs_belf=no
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext \
6037     conftest$ac_exeext conftest.$ac_ext
6038      ac_ext=c
6039 ac_cpp='$CPP $CPPFLAGS'
6040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043
6044 fi
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6046 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6047   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6048     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6049     CFLAGS="$SAVE_CFLAGS"
6050   fi
6051   ;;
6052 sparc*-*solaris*)
6053   # Find out which ABI we are using.
6054   echo 'int i;' > conftest.$ac_ext
6055   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6056   (eval $ac_compile) 2>&5
6057   ac_status=$?
6058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059   test $ac_status = 0; }; then
6060     case `/usr/bin/file conftest.o` in
6061     *64-bit*)
6062       case $lt_cv_prog_gnu_ld in
6063       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6064       *)
6065         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6066           LD="${LD-ld} -64"
6067         fi
6068         ;;
6069       esac
6070       ;;
6071     esac
6072   fi
6073   rm -rf conftest*
6074   ;;
6075 esac
6076
6077 need_locks="$enable_libtool_lock"
6078
6079
6080   case $host_os in
6081     rhapsody* | darwin*)
6082     if test -n "$ac_tool_prefix"; then
6083   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6084 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090   if test -n "$DSYMUTIL"; then
6091   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098     for ac_exec_ext in '' $ac_executable_extensions; do
6099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102     break 2
6103   fi
6104 done
6105   done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6111 if test -n "$DSYMUTIL"; then
6112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6113 $as_echo "$DSYMUTIL" >&6; }
6114 else
6115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117 fi
6118
6119
6120 fi
6121 if test -z "$ac_cv_prog_DSYMUTIL"; then
6122   ac_ct_DSYMUTIL=$DSYMUTIL
6123   # Extract the first word of "dsymutil", so it can be a program name with args.
6124 set dummy dsymutil; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6128   $as_echo_n "(cached) " >&6
6129 else
6130   if test -n "$ac_ct_DSYMUTIL"; then
6131   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136   IFS=$as_save_IFS
6137   test -z "$as_dir" && as_dir=.
6138     for ac_exec_ext in '' $ac_executable_extensions; do
6139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142     break 2
6143   fi
6144 done
6145   done
6146 IFS=$as_save_IFS
6147
6148 fi
6149 fi
6150 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6151 if test -n "$ac_ct_DSYMUTIL"; then
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6153 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6154 else
6155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6157 fi
6158
6159   if test "x$ac_ct_DSYMUTIL" = x; then
6160     DSYMUTIL=":"
6161   else
6162     case $cross_compiling:$ac_tool_warned in
6163 yes:)
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6166 ac_tool_warned=yes ;;
6167 esac
6168     DSYMUTIL=$ac_ct_DSYMUTIL
6169   fi
6170 else
6171   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6172 fi
6173
6174     if test -n "$ac_tool_prefix"; then
6175   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6176 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6180   $as_echo_n "(cached) " >&6
6181 else
6182   if test -n "$NMEDIT"; then
6183   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190     for ac_exec_ext in '' $ac_executable_extensions; do
6191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197   done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 NMEDIT=$ac_cv_prog_NMEDIT
6203 if test -n "$NMEDIT"; then
6204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6205 $as_echo "$NMEDIT" >&6; }
6206 else
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209 fi
6210
6211
6212 fi
6213 if test -z "$ac_cv_prog_NMEDIT"; then
6214   ac_ct_NMEDIT=$NMEDIT
6215   # Extract the first word of "nmedit", so it can be a program name with args.
6216 set dummy nmedit; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6220   $as_echo_n "(cached) " >&6
6221 else
6222   if test -n "$ac_ct_NMEDIT"; then
6223   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230     for ac_exec_ext in '' $ac_executable_extensions; do
6231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6232     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234     break 2
6235   fi
6236 done
6237   done
6238 IFS=$as_save_IFS
6239
6240 fi
6241 fi
6242 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6243 if test -n "$ac_ct_NMEDIT"; then
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6245 $as_echo "$ac_ct_NMEDIT" >&6; }
6246 else
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6249 fi
6250
6251   if test "x$ac_ct_NMEDIT" = x; then
6252     NMEDIT=":"
6253   else
6254     case $cross_compiling:$ac_tool_warned in
6255 yes:)
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6258 ac_tool_warned=yes ;;
6259 esac
6260     NMEDIT=$ac_ct_NMEDIT
6261   fi
6262 else
6263   NMEDIT="$ac_cv_prog_NMEDIT"
6264 fi
6265
6266     if test -n "$ac_tool_prefix"; then
6267   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6268 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if test "${ac_cv_prog_LIPO+set}" = set; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   if test -n "$LIPO"; then
6275   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282     for ac_exec_ext in '' $ac_executable_extensions; do
6283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289   done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 LIPO=$ac_cv_prog_LIPO
6295 if test -n "$LIPO"; then
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6297 $as_echo "$LIPO" >&6; }
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303
6304 fi
6305 if test -z "$ac_cv_prog_LIPO"; then
6306   ac_ct_LIPO=$LIPO
6307   # Extract the first word of "lipo", so it can be a program name with args.
6308 set dummy lipo; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6312   $as_echo_n "(cached) " >&6
6313 else
6314   if test -n "$ac_ct_LIPO"; then
6315   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320   IFS=$as_save_IFS
6321   test -z "$as_dir" && as_dir=.
6322     for ac_exec_ext in '' $ac_executable_extensions; do
6323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324     ac_cv_prog_ac_ct_LIPO="lipo"
6325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326     break 2
6327   fi
6328 done
6329   done
6330 IFS=$as_save_IFS
6331
6332 fi
6333 fi
6334 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6335 if test -n "$ac_ct_LIPO"; then
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6337 $as_echo "$ac_ct_LIPO" >&6; }
6338 else
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6341 fi
6342
6343   if test "x$ac_ct_LIPO" = x; then
6344     LIPO=":"
6345   else
6346     case $cross_compiling:$ac_tool_warned in
6347 yes:)
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350 ac_tool_warned=yes ;;
6351 esac
6352     LIPO=$ac_ct_LIPO
6353   fi
6354 else
6355   LIPO="$ac_cv_prog_LIPO"
6356 fi
6357
6358     if test -n "$ac_tool_prefix"; then
6359   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}otool; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6364   $as_echo_n "(cached) " >&6
6365 else
6366   if test -n "$OTOOL"; then
6367   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372   IFS=$as_save_IFS
6373   test -z "$as_dir" && as_dir=.
6374     for ac_exec_ext in '' $ac_executable_extensions; do
6375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378     break 2
6379   fi
6380 done
6381   done
6382 IFS=$as_save_IFS
6383
6384 fi
6385 fi
6386 OTOOL=$ac_cv_prog_OTOOL
6387 if test -n "$OTOOL"; then
6388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6389 $as_echo "$OTOOL" >&6; }
6390 else
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395
6396 fi
6397 if test -z "$ac_cv_prog_OTOOL"; then
6398   ac_ct_OTOOL=$OTOOL
6399   # Extract the first word of "otool", so it can be a program name with args.
6400 set dummy otool; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   if test -n "$ac_ct_OTOOL"; then
6407   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414     for ac_exec_ext in '' $ac_executable_extensions; do
6415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416     ac_cv_prog_ac_ct_OTOOL="otool"
6417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421   done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6427 if test -n "$ac_ct_OTOOL"; then
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6429 $as_echo "$ac_ct_OTOOL" >&6; }
6430 else
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435   if test "x$ac_ct_OTOOL" = x; then
6436     OTOOL=":"
6437   else
6438     case $cross_compiling:$ac_tool_warned in
6439 yes:)
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442 ac_tool_warned=yes ;;
6443 esac
6444     OTOOL=$ac_ct_OTOOL
6445   fi
6446 else
6447   OTOOL="$ac_cv_prog_OTOOL"
6448 fi
6449
6450     if test -n "$ac_tool_prefix"; then
6451   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6452 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458   if test -n "$OTOOL64"; then
6459   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464   IFS=$as_save_IFS
6465   test -z "$as_dir" && as_dir=.
6466     for ac_exec_ext in '' $ac_executable_extensions; do
6467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470     break 2
6471   fi
6472 done
6473   done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 OTOOL64=$ac_cv_prog_OTOOL64
6479 if test -n "$OTOOL64"; then
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6481 $as_echo "$OTOOL64" >&6; }
6482 else
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487
6488 fi
6489 if test -z "$ac_cv_prog_OTOOL64"; then
6490   ac_ct_OTOOL64=$OTOOL64
6491   # Extract the first word of "otool64", so it can be a program name with args.
6492 set dummy otool64; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6496   $as_echo_n "(cached) " >&6
6497 else
6498   if test -n "$ac_ct_OTOOL64"; then
6499   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504   IFS=$as_save_IFS
6505   test -z "$as_dir" && as_dir=.
6506     for ac_exec_ext in '' $ac_executable_extensions; do
6507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508     ac_cv_prog_ac_ct_OTOOL64="otool64"
6509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510     break 2
6511   fi
6512 done
6513   done
6514 IFS=$as_save_IFS
6515
6516 fi
6517 fi
6518 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6519 if test -n "$ac_ct_OTOOL64"; then
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6521 $as_echo "$ac_ct_OTOOL64" >&6; }
6522 else
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6525 fi
6526
6527   if test "x$ac_ct_OTOOL64" = x; then
6528     OTOOL64=":"
6529   else
6530     case $cross_compiling:$ac_tool_warned in
6531 yes:)
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536     OTOOL64=$ac_ct_OTOOL64
6537   fi
6538 else
6539   OTOOL64="$ac_cv_prog_OTOOL64"
6540 fi
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6569 $as_echo_n "checking for -single_module linker flag... " >&6; }
6570 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   lt_cv_apple_cc_single_mod=no
6574       if test -z "${LT_MULTI_MODULE}"; then
6575         # By default we will add the -single_module flag. You can override
6576         # by either setting the environment variable LT_MULTI_MODULE
6577         # non-empty at configure time, or by adding -multi_module to the
6578         # link flags.
6579         rm -rf libconftest.dylib*
6580         echo "int foo(void){return 1;}" > conftest.c
6581         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6582 -dynamiclib -Wl,-single_module conftest.c" >&5
6583         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6584           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6585         _lt_result=$?
6586         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6587           lt_cv_apple_cc_single_mod=yes
6588         else
6589           cat conftest.err >&5
6590         fi
6591         rm -rf libconftest.dylib*
6592         rm -f conftest.*
6593       fi
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6596 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6598 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6599 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6600   $as_echo_n "(cached) " >&6
6601 else
6602   lt_cv_ld_exported_symbols_list=no
6603       save_LDFLAGS=$LDFLAGS
6604       echo "_main" > conftest.sym
6605       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6606       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h.  */
6608
6609 int
6610 main ()
6611 {
6612
6613   ;
6614   return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618   lt_cv_ld_exported_symbols_list=yes
6619 else
6620   lt_cv_ld_exported_symbols_list=no
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext \
6623     conftest$ac_exeext conftest.$ac_ext
6624         LDFLAGS="$save_LDFLAGS"
6625
6626 fi
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6628 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6629     case $host_os in
6630     rhapsody* | darwin1.[012])
6631       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6632     darwin1.*)
6633       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6634     darwin*) # darwin 5.x on
6635       # if running on 10.5 or later, the deployment target defaults
6636       # to the OS version, if on x86, and 10.4, the deployment
6637       # target defaults to 10.4. Don't you love it?
6638       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6639         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6640           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6641         10.[012]*)
6642           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6643         10.*)
6644           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6645       esac
6646     ;;
6647   esac
6648     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6649       _lt_dar_single_mod='$single_module'
6650     fi
6651     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6652       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6653     else
6654       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6655     fi
6656     if test "$DSYMUTIL" != ":"; then
6657       _lt_dsymutil='~$DSYMUTIL $lib || :'
6658     else
6659       _lt_dsymutil=
6660     fi
6661     ;;
6662   esac
6663
6664 ac_ext=c
6665 ac_cpp='$CPP $CPPFLAGS'
6666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6670 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6671 # On Suns, sometimes $CPP names a directory.
6672 if test -n "$CPP" && test -d "$CPP"; then
6673   CPP=
6674 fi
6675 if test -z "$CPP"; then
6676   if test "${ac_cv_prog_CPP+set}" = set; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679       # Double quotes because CPP needs to be expanded
6680     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6681     do
6682       ac_preproc_ok=false
6683 for ac_c_preproc_warn_flag in '' yes
6684 do
6685   # Use a header file that comes with gcc, so configuring glibc
6686   # with a fresh cross-compiler works.
6687   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6688   # <limits.h> exists even on freestanding compilers.
6689   # On the NeXT, cc -E runs the code through the compiler's parser,
6690   # not just through cpp. "Syntax error" is here to catch this case.
6691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h.  */
6693 #ifdef __STDC__
6694 # include <limits.h>
6695 #else
6696 # include <assert.h>
6697 #endif
6698                      Syntax error
6699 _ACEOF
6700 if ac_fn_c_try_cpp "$LINENO"; then :
6701
6702 else
6703   # Broken: fails on valid input.
6704 continue
6705 fi
6706 rm -f conftest.err conftest.$ac_ext
6707
6708   # OK, works on sane cases.  Now check whether nonexistent headers
6709   # can be detected and how.
6710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h.  */
6712 #include <ac_nonexistent.h>
6713 _ACEOF
6714 if ac_fn_c_try_cpp "$LINENO"; then :
6715   # Broken: success on invalid input.
6716 continue
6717 else
6718   # Passes both tests.
6719 ac_preproc_ok=:
6720 break
6721 fi
6722 rm -f conftest.err conftest.$ac_ext
6723
6724 done
6725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6726 rm -f conftest.err conftest.$ac_ext
6727 if $ac_preproc_ok; then :
6728   break
6729 fi
6730
6731     done
6732     ac_cv_prog_CPP=$CPP
6733
6734 fi
6735   CPP=$ac_cv_prog_CPP
6736 else
6737   ac_cv_prog_CPP=$CPP
6738 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6740 $as_echo "$CPP" >&6; }
6741 ac_preproc_ok=false
6742 for ac_c_preproc_warn_flag in '' yes
6743 do
6744   # Use a header file that comes with gcc, so configuring glibc
6745   # with a fresh cross-compiler works.
6746   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6747   # <limits.h> exists even on freestanding compilers.
6748   # On the NeXT, cc -E runs the code through the compiler's parser,
6749   # not just through cpp. "Syntax error" is here to catch this case.
6750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h.  */
6752 #ifdef __STDC__
6753 # include <limits.h>
6754 #else
6755 # include <assert.h>
6756 #endif
6757                      Syntax error
6758 _ACEOF
6759 if ac_fn_c_try_cpp "$LINENO"; then :
6760
6761 else
6762   # Broken: fails on valid input.
6763 continue
6764 fi
6765 rm -f conftest.err conftest.$ac_ext
6766
6767   # OK, works on sane cases.  Now check whether nonexistent headers
6768   # can be detected and how.
6769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h.  */
6771 #include <ac_nonexistent.h>
6772 _ACEOF
6773 if ac_fn_c_try_cpp "$LINENO"; then :
6774   # Broken: success on invalid input.
6775 continue
6776 else
6777   # Passes both tests.
6778 ac_preproc_ok=:
6779 break
6780 fi
6781 rm -f conftest.err conftest.$ac_ext
6782
6783 done
6784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6785 rm -f conftest.err conftest.$ac_ext
6786 if $ac_preproc_ok; then :
6787
6788 else
6789   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6791 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6792 See \`config.log' for more details." "$LINENO" 5; }
6793 fi
6794
6795 ac_ext=c
6796 ac_cpp='$CPP $CPPFLAGS'
6797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6800
6801
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6803 $as_echo_n "checking for ANSI C header files... " >&6; }
6804 if test "${ac_cv_header_stdc+set}" = set; then :
6805   $as_echo_n "(cached) " >&6
6806 else
6807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h.  */
6809 #include <stdlib.h>
6810 #include <stdarg.h>
6811 #include <string.h>
6812 #include <float.h>
6813
6814 int
6815 main ()
6816 {
6817
6818   ;
6819   return 0;
6820 }
6821 _ACEOF
6822 if ac_fn_c_try_compile "$LINENO"; then :
6823   ac_cv_header_stdc=yes
6824 else
6825   ac_cv_header_stdc=no
6826 fi
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828
6829 if test $ac_cv_header_stdc = yes; then
6830   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h.  */
6833 #include <string.h>
6834
6835 _ACEOF
6836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837   $EGREP "memchr" >/dev/null 2>&1; then :
6838
6839 else
6840   ac_cv_header_stdc=no
6841 fi
6842 rm -f conftest*
6843
6844 fi
6845
6846 if test $ac_cv_header_stdc = yes; then
6847   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h.  */
6850 #include <stdlib.h>
6851
6852 _ACEOF
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854   $EGREP "free" >/dev/null 2>&1; then :
6855
6856 else
6857   ac_cv_header_stdc=no
6858 fi
6859 rm -f conftest*
6860
6861 fi
6862
6863 if test $ac_cv_header_stdc = yes; then
6864   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6865   if test "$cross_compiling" = yes; then :
6866   :
6867 else
6868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h.  */
6870 #include <ctype.h>
6871 #include <stdlib.h>
6872 #if ((' ' & 0x0FF) == 0x020)
6873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6875 #else
6876 # define ISLOWER(c) \
6877                    (('a' <= (c) && (c) <= 'i') \
6878                      || ('j' <= (c) && (c) <= 'r') \
6879                      || ('s' <= (c) && (c) <= 'z'))
6880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6881 #endif
6882
6883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6884 int
6885 main ()
6886 {
6887   int i;
6888   for (i = 0; i < 256; i++)
6889     if (XOR (islower (i), ISLOWER (i))
6890         || toupper (i) != TOUPPER (i))
6891       return 2;
6892   return 0;
6893 }
6894 _ACEOF
6895 if ac_fn_c_try_run "$LINENO"; then :
6896
6897 else
6898   ac_cv_header_stdc=no
6899 fi
6900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6901   conftest.$ac_objext conftest.beam conftest.$ac_ext
6902 fi
6903
6904 fi
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6907 $as_echo "$ac_cv_header_stdc" >&6; }
6908 if test $ac_cv_header_stdc = yes; then
6909
6910 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6911
6912 fi
6913
6914 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6915 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6916                   inttypes.h stdint.h unistd.h
6917 do :
6918   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6919 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6920 "
6921 eval as_val=\$$as_ac_Header
6922    if test "x$as_val" = x""yes; then :
6923   cat >>confdefs.h <<_ACEOF
6924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6925 _ACEOF
6926
6927 fi
6928
6929 done
6930
6931
6932 for ac_header in dlfcn.h
6933 do :
6934   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6935 "
6936 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6937   cat >>confdefs.h <<_ACEOF
6938 #define HAVE_DLFCN_H 1
6939 _ACEOF
6940
6941 fi
6942
6943 done
6944
6945
6946
6947 # Set options
6948 # Check whether --enable-static was given.
6949 if test "${enable_static+set}" = set; then :
6950   enableval=$enable_static; p=${PACKAGE-default}
6951     case $enableval in
6952     yes) enable_static=yes ;;
6953     no) enable_static=no ;;
6954     *)
6955      enable_static=no
6956       # Look at the argument we got.  We use all the common list separators.
6957       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6958       for pkg in $enableval; do
6959         IFS="$lt_save_ifs"
6960         if test "X$pkg" = "X$p"; then
6961           enable_static=yes
6962         fi
6963       done
6964       IFS="$lt_save_ifs"
6965       ;;
6966     esac
6967 else
6968   enable_static=no
6969 fi
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980         enable_dlopen=no
6981
6982
6983   enable_win32_dll=no
6984
6985
6986             # Check whether --enable-shared was given.
6987 if test "${enable_shared+set}" = set; then :
6988   enableval=$enable_shared; p=${PACKAGE-default}
6989     case $enableval in
6990     yes) enable_shared=yes ;;
6991     no) enable_shared=no ;;
6992     *)
6993       enable_shared=no
6994       # Look at the argument we got.  We use all the common list separators.
6995       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6996       for pkg in $enableval; do
6997         IFS="$lt_save_ifs"
6998         if test "X$pkg" = "X$p"; then
6999           enable_shared=yes
7000         fi
7001       done
7002       IFS="$lt_save_ifs"
7003       ;;
7004     esac
7005 else
7006   enable_shared=yes
7007 fi
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019 # Check whether --with-pic was given.
7020 if test "${with_pic+set}" = set; then :
7021   withval=$with_pic; pic_mode="$withval"
7022 else
7023   pic_mode=default
7024 fi
7025
7026
7027 test -z "$pic_mode" && pic_mode=default
7028
7029
7030
7031
7032
7033
7034
7035   # Check whether --enable-fast-install was given.
7036 if test "${enable_fast_install+set}" = set; then :
7037   enableval=$enable_fast_install; p=${PACKAGE-default}
7038     case $enableval in
7039     yes) enable_fast_install=yes ;;
7040     no) enable_fast_install=no ;;
7041     *)
7042       enable_fast_install=no
7043       # Look at the argument we got.  We use all the common list separators.
7044       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7045       for pkg in $enableval; do
7046         IFS="$lt_save_ifs"
7047         if test "X$pkg" = "X$p"; then
7048           enable_fast_install=yes
7049         fi
7050       done
7051       IFS="$lt_save_ifs"
7052       ;;
7053     esac
7054 else
7055   enable_fast_install=yes
7056 fi
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068 # This can be used to rebuild libtool when needed
7069 LIBTOOL_DEPS="$ltmain"
7070
7071 # Always use our own libtool.
7072 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098 test -z "$LN_S" && LN_S="ln -s"
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113 if test -n "${ZSH_VERSION+set}" ; then
7114    setopt NO_GLOB_SUBST
7115 fi
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7118 $as_echo_n "checking for objdir... " >&6; }
7119 if test "${lt_cv_objdir+set}" = set; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   rm -f .libs 2>/dev/null
7123 mkdir .libs 2>/dev/null
7124 if test -d .libs; then
7125   lt_cv_objdir=.libs
7126 else
7127   # MS-DOS does not allow filenames that begin with a dot.
7128   lt_cv_objdir=_libs
7129 fi
7130 rmdir .libs 2>/dev/null
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7133 $as_echo "$lt_cv_objdir" >&6; }
7134 objdir=$lt_cv_objdir
7135
7136
7137
7138
7139
7140 cat >>confdefs.h <<_ACEOF
7141 #define LT_OBJDIR "$lt_cv_objdir/"
7142 _ACEOF
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 case $host_os in
7161 aix3*)
7162   # AIX sometimes has problems with the GCC collect2 program.  For some
7163   # reason, if we set the COLLECT_NAMES environment variable, the problems
7164   # vanish in a puff of smoke.
7165   if test "X${COLLECT_NAMES+set}" != Xset; then
7166     COLLECT_NAMES=
7167     export COLLECT_NAMES
7168   fi
7169   ;;
7170 esac
7171
7172 # Sed substitution that helps us do robust quoting.  It backslashifies
7173 # metacharacters that are still active within double-quoted strings.
7174 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7175
7176 # Same as above, but do not quote variable references.
7177 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7178
7179 # Sed substitution to delay expansion of an escaped shell variable in a
7180 # double_quote_subst'ed string.
7181 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7182
7183 # Sed substitution to delay expansion of an escaped single quote.
7184 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7185
7186 # Sed substitution to avoid accidental globbing in evaled expressions
7187 no_glob_subst='s/\*/\\\*/g'
7188
7189 # Global variables:
7190 ofile=libtool
7191 can_build_shared=yes
7192
7193 # All known linkers require a `.a' archive for static linking (except MSVC,
7194 # which needs '.lib').
7195 libext=a
7196
7197 with_gnu_ld="$lt_cv_prog_gnu_ld"
7198
7199 old_CC="$CC"
7200 old_CFLAGS="$CFLAGS"
7201
7202 # Set sane defaults for various variables
7203 test -z "$CC" && CC=cc
7204 test -z "$LTCC" && LTCC=$CC
7205 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7206 test -z "$LD" && LD=ld
7207 test -z "$ac_objext" && ac_objext=o
7208
7209 for cc_temp in $compiler""; do
7210   case $cc_temp in
7211     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7212     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7213     \-*) ;;
7214     *) break;;
7215   esac
7216 done
7217 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7218
7219
7220 # Only perform the check for file, if the check method requires it
7221 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7222 case $deplibs_check_method in
7223 file_magic*)
7224   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7226 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7228   $as_echo_n "(cached) " >&6
7229 else
7230   case $MAGIC_CMD in
7231 [\\/*] |  ?:[\\/]*)
7232   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7233   ;;
7234 *)
7235   lt_save_MAGIC_CMD="$MAGIC_CMD"
7236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7237   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7238   for ac_dir in $ac_dummy; do
7239     IFS="$lt_save_ifs"
7240     test -z "$ac_dir" && ac_dir=.
7241     if test -f $ac_dir/${ac_tool_prefix}file; then
7242       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7243       if test -n "$file_magic_test_file"; then
7244         case $deplibs_check_method in
7245         "file_magic "*)
7246           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7247           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7248           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7249             $EGREP "$file_magic_regex" > /dev/null; then
7250             :
7251           else
7252             cat <<_LT_EOF 1>&2
7253
7254 *** Warning: the command libtool uses to detect shared libraries,
7255 *** $file_magic_cmd, produces output that libtool cannot recognize.
7256 *** The result is that libtool may fail to recognize shared libraries
7257 *** as such.  This will affect the creation of libtool libraries that
7258 *** depend on shared libraries, but programs linked with such libtool
7259 *** libraries will work regardless of this problem.  Nevertheless, you
7260 *** may want to report the problem to your system manager and/or to
7261 *** bug-libtool@gnu.org
7262
7263 _LT_EOF
7264           fi ;;
7265         esac
7266       fi
7267       break
7268     fi
7269   done
7270   IFS="$lt_save_ifs"
7271   MAGIC_CMD="$lt_save_MAGIC_CMD"
7272   ;;
7273 esac
7274 fi
7275
7276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7277 if test -n "$MAGIC_CMD"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7279 $as_echo "$MAGIC_CMD" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286
7287
7288
7289 if test -z "$lt_cv_path_MAGIC_CMD"; then
7290   if test -n "$ac_tool_prefix"; then
7291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7292 $as_echo_n "checking for file... " >&6; }
7293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   case $MAGIC_CMD in
7297 [\\/*] |  ?:[\\/]*)
7298   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7299   ;;
7300 *)
7301   lt_save_MAGIC_CMD="$MAGIC_CMD"
7302   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7303   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7304   for ac_dir in $ac_dummy; do
7305     IFS="$lt_save_ifs"
7306     test -z "$ac_dir" && ac_dir=.
7307     if test -f $ac_dir/file; then
7308       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7309       if test -n "$file_magic_test_file"; then
7310         case $deplibs_check_method in
7311         "file_magic "*)
7312           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7313           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7314           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7315             $EGREP "$file_magic_regex" > /dev/null; then
7316             :
7317           else
7318             cat <<_LT_EOF 1>&2
7319
7320 *** Warning: the command libtool uses to detect shared libraries,
7321 *** $file_magic_cmd, produces output that libtool cannot recognize.
7322 *** The result is that libtool may fail to recognize shared libraries
7323 *** as such.  This will affect the creation of libtool libraries that
7324 *** depend on shared libraries, but programs linked with such libtool
7325 *** libraries will work regardless of this problem.  Nevertheless, you
7326 *** may want to report the problem to your system manager and/or to
7327 *** bug-libtool@gnu.org
7328
7329 _LT_EOF
7330           fi ;;
7331         esac
7332       fi
7333       break
7334     fi
7335   done
7336   IFS="$lt_save_ifs"
7337   MAGIC_CMD="$lt_save_MAGIC_CMD"
7338   ;;
7339 esac
7340 fi
7341
7342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7343 if test -n "$MAGIC_CMD"; then
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7345 $as_echo "$MAGIC_CMD" >&6; }
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352   else
7353     MAGIC_CMD=:
7354   fi
7355 fi
7356
7357   fi
7358   ;;
7359 esac
7360
7361 # Use C for the default configuration in the libtool script
7362
7363 lt_save_CC="$CC"
7364 ac_ext=c
7365 ac_cpp='$CPP $CPPFLAGS'
7366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369
7370
7371 # Source file extension for C test sources.
7372 ac_ext=c
7373
7374 # Object file extension for compiled C test sources.
7375 objext=o
7376 objext=$objext
7377
7378 # Code to be used in simple compile tests
7379 lt_simple_compile_test_code="int some_variable = 0;"
7380
7381 # Code to be used in simple link tests
7382 lt_simple_link_test_code='int main(){return(0);}'
7383
7384
7385
7386
7387
7388
7389
7390 # If no C compiler was specified, use CC.
7391 LTCC=${LTCC-"$CC"}
7392
7393 # If no C compiler flags were specified, use CFLAGS.
7394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7395
7396 # Allow CC to be a program name with arguments.
7397 compiler=$CC
7398
7399 # Save the default compiler, since it gets overwritten when the other
7400 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7401 compiler_DEFAULT=$CC
7402
7403 # save warnings/boilerplate of simple test code
7404 ac_outfile=conftest.$ac_objext
7405 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7407 _lt_compiler_boilerplate=`cat conftest.err`
7408 $RM conftest*
7409
7410 ac_outfile=conftest.$ac_objext
7411 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7413 _lt_linker_boilerplate=`cat conftest.err`
7414 $RM -r conftest*
7415
7416
7417 if test -n "$compiler"; then
7418
7419 lt_prog_compiler_no_builtin_flag=
7420
7421 if test "$GCC" = yes; then
7422   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7423
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7425 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7426 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   lt_cv_prog_compiler_rtti_exceptions=no
7430    ac_outfile=conftest.$ac_objext
7431    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7432    lt_compiler_flag="-fno-rtti -fno-exceptions"
7433    # Insert the option either (1) after the last *FLAGS variable, or
7434    # (2) before a word containing "conftest.", or (3) at the end.
7435    # Note that $ac_compile itself does not contain backslashes and begins
7436    # with a dollar sign (not a hyphen), so the echo should work correctly.
7437    # The option is referenced via a variable to avoid confusing sed.
7438    lt_compile=`echo "$ac_compile" | $SED \
7439    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7440    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7441    -e 's:$: $lt_compiler_flag:'`
7442    (eval echo "\"\$as_me:7442: $lt_compile\"" >&5)
7443    (eval "$lt_compile" 2>conftest.err)
7444    ac_status=$?
7445    cat conftest.err >&5
7446    echo "$as_me:7446: \$? = $ac_status" >&5
7447    if (exit $ac_status) && test -s "$ac_outfile"; then
7448      # The compiler can only warn and ignore the option if not recognized
7449      # So say no if there are warnings other than the usual output.
7450      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7451      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7452      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7453        lt_cv_prog_compiler_rtti_exceptions=yes
7454      fi
7455    fi
7456    $RM conftest*
7457
7458 fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7460 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7461
7462 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7463     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7464 else
7465     :
7466 fi
7467
7468 fi
7469
7470
7471
7472
7473
7474
7475   lt_prog_compiler_wl=
7476 lt_prog_compiler_pic=
7477 lt_prog_compiler_static=
7478
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7480 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7481
7482   if test "$GCC" = yes; then
7483     lt_prog_compiler_wl='-Wl,'
7484     lt_prog_compiler_static='-static'
7485
7486     case $host_os in
7487       aix*)
7488       # All AIX code is PIC.
7489       if test "$host_cpu" = ia64; then
7490         # AIX 5 now supports IA64 processor
7491         lt_prog_compiler_static='-Bstatic'
7492       fi
7493       ;;
7494
7495     amigaos*)
7496       case $host_cpu in
7497       powerpc)
7498             # see comment about AmigaOS4 .so support
7499             lt_prog_compiler_pic='-fPIC'
7500         ;;
7501       m68k)
7502             # FIXME: we need at least 68020 code to build shared libraries, but
7503             # adding the `-m68020' flag to GCC prevents building anything better,
7504             # like `-m68040'.
7505             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7506         ;;
7507       esac
7508       ;;
7509
7510     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7511       # PIC is the default for these OSes.
7512       ;;
7513
7514     mingw* | cygwin* | pw32* | os2* | cegcc*)
7515       # This hack is so that the source file can tell whether it is being
7516       # built for inclusion in a dll (and should export symbols for example).
7517       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7518       # (--disable-auto-import) libraries
7519       lt_prog_compiler_pic='-DDLL_EXPORT'
7520       ;;
7521
7522     darwin* | rhapsody*)
7523       # PIC is the default on this platform
7524       # Common symbols not allowed in MH_DYLIB files
7525       lt_prog_compiler_pic='-fno-common'
7526       ;;
7527
7528     hpux*)
7529       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7530       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7531       # sets the default TLS model and affects inlining.
7532       case $host_cpu in
7533       hppa*64*)
7534         # +Z the default
7535         ;;
7536       *)
7537         lt_prog_compiler_pic='-fPIC'
7538         ;;
7539       esac
7540       ;;
7541
7542     interix[3-9]*)
7543       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7544       # Instead, we relocate shared libraries at runtime.
7545       ;;
7546
7547     msdosdjgpp*)
7548       # Just because we use GCC doesn't mean we suddenly get shared libraries
7549       # on systems that don't support them.
7550       lt_prog_compiler_can_build_shared=no
7551       enable_shared=no
7552       ;;
7553
7554     *nto* | *qnx*)
7555       # QNX uses GNU C++, but need to define -shared option too, otherwise
7556       # it will coredump.
7557       lt_prog_compiler_pic='-fPIC -shared'
7558       ;;
7559
7560     sysv4*MP*)
7561       if test -d /usr/nec; then
7562         lt_prog_compiler_pic=-Kconform_pic
7563       fi
7564       ;;
7565
7566     *)
7567       lt_prog_compiler_pic='-fPIC'
7568       ;;
7569     esac
7570   else
7571     # PORTME Check for flag to pass linker flags through the system compiler.
7572     case $host_os in
7573     aix*)
7574       lt_prog_compiler_wl='-Wl,'
7575       if test "$host_cpu" = ia64; then
7576         # AIX 5 now supports IA64 processor
7577         lt_prog_compiler_static='-Bstatic'
7578       else
7579         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7580       fi
7581       ;;
7582
7583     mingw* | cygwin* | pw32* | os2* | cegcc*)
7584       # This hack is so that the source file can tell whether it is being
7585       # built for inclusion in a dll (and should export symbols for example).
7586       lt_prog_compiler_pic='-DDLL_EXPORT'
7587       ;;
7588
7589     hpux9* | hpux10* | hpux11*)
7590       lt_prog_compiler_wl='-Wl,'
7591       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7592       # not for PA HP-UX.
7593       case $host_cpu in
7594       hppa*64*|ia64*)
7595         # +Z the default
7596         ;;
7597       *)
7598         lt_prog_compiler_pic='+Z'
7599         ;;
7600       esac
7601       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7602       lt_prog_compiler_static='${wl}-a ${wl}archive'
7603       ;;
7604
7605     irix5* | irix6* | nonstopux*)
7606       lt_prog_compiler_wl='-Wl,'
7607       # PIC (with -KPIC) is the default.
7608       lt_prog_compiler_static='-non_shared'
7609       ;;
7610
7611     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7612       case $cc_basename in
7613       # old Intel for x86_64 which still supported -KPIC.
7614       ecc*)
7615         lt_prog_compiler_wl='-Wl,'
7616         lt_prog_compiler_pic='-KPIC'
7617         lt_prog_compiler_static='-static'
7618         ;;
7619       # icc used to be incompatible with GCC.
7620       # ICC 10 doesn't accept -KPIC any more.
7621       icc* | ifort*)
7622         lt_prog_compiler_wl='-Wl,'
7623         lt_prog_compiler_pic='-fPIC'
7624         lt_prog_compiler_static='-static'
7625         ;;
7626       # Lahey Fortran 8.1.
7627       lf95*)
7628         lt_prog_compiler_wl='-Wl,'
7629         lt_prog_compiler_pic='--shared'
7630         lt_prog_compiler_static='--static'
7631         ;;
7632       pgcc* | pgf77* | pgf90* | pgf95*)
7633         # Portland Group compilers (*not* the Pentium gcc compiler,
7634         # which looks to be a dead project)
7635         lt_prog_compiler_wl='-Wl,'
7636         lt_prog_compiler_pic='-fpic'
7637         lt_prog_compiler_static='-Bstatic'
7638         ;;
7639       ccc*)
7640         lt_prog_compiler_wl='-Wl,'
7641         # All Alpha code is PIC.
7642         lt_prog_compiler_static='-non_shared'
7643         ;;
7644       xl*)
7645         # IBM XL C 8.0/Fortran 10.1 on PPC
7646         lt_prog_compiler_wl='-Wl,'
7647         lt_prog_compiler_pic='-qpic'
7648         lt_prog_compiler_static='-qstaticlink'
7649         ;;
7650       *)
7651         case `$CC -V 2>&1 | sed 5q` in
7652         *Sun\ C*)
7653           # Sun C 5.9
7654           lt_prog_compiler_pic='-KPIC'
7655           lt_prog_compiler_static='-Bstatic'
7656           lt_prog_compiler_wl='-Wl,'
7657           ;;
7658         *Sun\ F*)
7659           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7660           lt_prog_compiler_pic='-KPIC'
7661           lt_prog_compiler_static='-Bstatic'
7662           lt_prog_compiler_wl=''
7663           ;;
7664         esac
7665         ;;
7666       esac
7667       ;;
7668
7669     newsos6)
7670       lt_prog_compiler_pic='-KPIC'
7671       lt_prog_compiler_static='-Bstatic'
7672       ;;
7673
7674     *nto* | *qnx*)
7675       # QNX uses GNU C++, but need to define -shared option too, otherwise
7676       # it will coredump.
7677       lt_prog_compiler_pic='-fPIC -shared'
7678       ;;
7679
7680     osf3* | osf4* | osf5*)
7681       lt_prog_compiler_wl='-Wl,'
7682       # All OSF/1 code is PIC.
7683       lt_prog_compiler_static='-non_shared'
7684       ;;
7685
7686     rdos*)
7687       lt_prog_compiler_static='-non_shared'
7688       ;;
7689
7690     solaris*)
7691       lt_prog_compiler_pic='-KPIC'
7692       lt_prog_compiler_static='-Bstatic'
7693       case $cc_basename in
7694       f77* | f90* | f95*)
7695         lt_prog_compiler_wl='-Qoption ld ';;
7696       *)
7697         lt_prog_compiler_wl='-Wl,';;
7698       esac
7699       ;;
7700
7701     sunos4*)
7702       lt_prog_compiler_wl='-Qoption ld '
7703       lt_prog_compiler_pic='-PIC'
7704       lt_prog_compiler_static='-Bstatic'
7705       ;;
7706
7707     sysv4 | sysv4.2uw2* | sysv4.3*)
7708       lt_prog_compiler_wl='-Wl,'
7709       lt_prog_compiler_pic='-KPIC'
7710       lt_prog_compiler_static='-Bstatic'
7711       ;;
7712
7713     sysv4*MP*)
7714       if test -d /usr/nec ;then
7715         lt_prog_compiler_pic='-Kconform_pic'
7716         lt_prog_compiler_static='-Bstatic'
7717       fi
7718       ;;
7719
7720     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7721       lt_prog_compiler_wl='-Wl,'
7722       lt_prog_compiler_pic='-KPIC'
7723       lt_prog_compiler_static='-Bstatic'
7724       ;;
7725
7726     unicos*)
7727       lt_prog_compiler_wl='-Wl,'
7728       lt_prog_compiler_can_build_shared=no
7729       ;;
7730
7731     uts4*)
7732       lt_prog_compiler_pic='-pic'
7733       lt_prog_compiler_static='-Bstatic'
7734       ;;
7735
7736     *)
7737       lt_prog_compiler_can_build_shared=no
7738       ;;
7739     esac
7740   fi
7741
7742 case $host_os in
7743   # For platforms which do not support PIC, -DPIC is meaningless:
7744   *djgpp*)
7745     lt_prog_compiler_pic=
7746     ;;
7747   *)
7748     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7749     ;;
7750 esac
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7752 $as_echo "$lt_prog_compiler_pic" >&6; }
7753
7754
7755
7756
7757
7758
7759 #
7760 # Check to make sure the PIC flag actually works.
7761 #
7762 if test -n "$lt_prog_compiler_pic"; then
7763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7764 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7765 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   lt_cv_prog_compiler_pic_works=no
7769    ac_outfile=conftest.$ac_objext
7770    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7771    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7772    # Insert the option either (1) after the last *FLAGS variable, or
7773    # (2) before a word containing "conftest.", or (3) at the end.
7774    # Note that $ac_compile itself does not contain backslashes and begins
7775    # with a dollar sign (not a hyphen), so the echo should work correctly.
7776    # The option is referenced via a variable to avoid confusing sed.
7777    lt_compile=`echo "$ac_compile" | $SED \
7778    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7779    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7780    -e 's:$: $lt_compiler_flag:'`
7781    (eval echo "\"\$as_me:7781: $lt_compile\"" >&5)
7782    (eval "$lt_compile" 2>conftest.err)
7783    ac_status=$?
7784    cat conftest.err >&5
7785    echo "$as_me:7785: \$? = $ac_status" >&5
7786    if (exit $ac_status) && test -s "$ac_outfile"; then
7787      # The compiler can only warn and ignore the option if not recognized
7788      # So say no if there are warnings other than the usual output.
7789      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7790      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7791      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7792        lt_cv_prog_compiler_pic_works=yes
7793      fi
7794    fi
7795    $RM conftest*
7796
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7799 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7800
7801 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7802     case $lt_prog_compiler_pic in
7803      "" | " "*) ;;
7804      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7805      esac
7806 else
7807     lt_prog_compiler_pic=
7808      lt_prog_compiler_can_build_shared=no
7809 fi
7810
7811 fi
7812
7813
7814
7815
7816
7817
7818 #
7819 # Check to make sure the static flag actually works.
7820 #
7821 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7823 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7824 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7825   $as_echo_n "(cached) " >&6
7826 else
7827   lt_cv_prog_compiler_static_works=no
7828    save_LDFLAGS="$LDFLAGS"
7829    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7830    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7831    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7832      # The linker can only warn and ignore the option if not recognized
7833      # So say no if there are warnings
7834      if test -s conftest.err; then
7835        # Append any errors to the config.log.
7836        cat conftest.err 1>&5
7837        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7838        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7839        if diff conftest.exp conftest.er2 >/dev/null; then
7840          lt_cv_prog_compiler_static_works=yes
7841        fi
7842      else
7843        lt_cv_prog_compiler_static_works=yes
7844      fi
7845    fi
7846    $RM -r conftest*
7847    LDFLAGS="$save_LDFLAGS"
7848
7849 fi
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7851 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7852
7853 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7854     :
7855 else
7856     lt_prog_compiler_static=
7857 fi
7858
7859
7860
7861
7862
7863
7864
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7866 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7867 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7868   $as_echo_n "(cached) " >&6
7869 else
7870   lt_cv_prog_compiler_c_o=no
7871    $RM -r conftest 2>/dev/null
7872    mkdir conftest
7873    cd conftest
7874    mkdir out
7875    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7876
7877    lt_compiler_flag="-o out/conftest2.$ac_objext"
7878    # Insert the option either (1) after the last *FLAGS variable, or
7879    # (2) before a word containing "conftest.", or (3) at the end.
7880    # Note that $ac_compile itself does not contain backslashes and begins
7881    # with a dollar sign (not a hyphen), so the echo should work correctly.
7882    lt_compile=`echo "$ac_compile" | $SED \
7883    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7884    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7885    -e 's:$: $lt_compiler_flag:'`
7886    (eval echo "\"\$as_me:7886: $lt_compile\"" >&5)
7887    (eval "$lt_compile" 2>out/conftest.err)
7888    ac_status=$?
7889    cat out/conftest.err >&5
7890    echo "$as_me:7890: \$? = $ac_status" >&5
7891    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7892    then
7893      # The compiler can only warn and ignore the option if not recognized
7894      # So say no if there are warnings
7895      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7896      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7897      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7898        lt_cv_prog_compiler_c_o=yes
7899      fi
7900    fi
7901    chmod u+w . 2>&5
7902    $RM conftest*
7903    # SGI C++ compiler will create directory out/ii_files/ for
7904    # template instantiation
7905    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7906    $RM out/* && rmdir out
7907    cd ..
7908    $RM -r conftest
7909    $RM conftest*
7910
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7913 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7914
7915
7916
7917
7918
7919
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7921 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7922 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7923   $as_echo_n "(cached) " >&6
7924 else
7925   lt_cv_prog_compiler_c_o=no
7926    $RM -r conftest 2>/dev/null
7927    mkdir conftest
7928    cd conftest
7929    mkdir out
7930    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7931
7932    lt_compiler_flag="-o out/conftest2.$ac_objext"
7933    # Insert the option either (1) after the last *FLAGS variable, or
7934    # (2) before a word containing "conftest.", or (3) at the end.
7935    # Note that $ac_compile itself does not contain backslashes and begins
7936    # with a dollar sign (not a hyphen), so the echo should work correctly.
7937    lt_compile=`echo "$ac_compile" | $SED \
7938    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7940    -e 's:$: $lt_compiler_flag:'`
7941    (eval echo "\"\$as_me:7941: $lt_compile\"" >&5)
7942    (eval "$lt_compile" 2>out/conftest.err)
7943    ac_status=$?
7944    cat out/conftest.err >&5
7945    echo "$as_me:7945: \$? = $ac_status" >&5
7946    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7947    then
7948      # The compiler can only warn and ignore the option if not recognized
7949      # So say no if there are warnings
7950      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7951      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7952      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7953        lt_cv_prog_compiler_c_o=yes
7954      fi
7955    fi
7956    chmod u+w . 2>&5
7957    $RM conftest*
7958    # SGI C++ compiler will create directory out/ii_files/ for
7959    # template instantiation
7960    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7961    $RM out/* && rmdir out
7962    cd ..
7963    $RM -r conftest
7964    $RM conftest*
7965
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7968 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7969
7970
7971
7972
7973 hard_links="nottested"
7974 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7975   # do not overwrite the value of need_locks provided by the user
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7977 $as_echo_n "checking if we can lock with hard links... " >&6; }
7978   hard_links=yes
7979   $RM conftest*
7980   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7981   touch conftest.a
7982   ln conftest.a conftest.b 2>&5 || hard_links=no
7983   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7985 $as_echo "$hard_links" >&6; }
7986   if test "$hard_links" = no; then
7987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7988 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7989     need_locks=warn
7990   fi
7991 else
7992   need_locks=no
7993 fi
7994
7995
7996
7997
7998
7999
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8001 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8002
8003   runpath_var=
8004   allow_undefined_flag=
8005   always_export_symbols=no
8006   archive_cmds=
8007   archive_expsym_cmds=
8008   compiler_needs_object=no
8009   enable_shared_with_static_runtimes=no
8010   export_dynamic_flag_spec=
8011   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8012   hardcode_automatic=no
8013   hardcode_direct=no
8014   hardcode_direct_absolute=no
8015   hardcode_libdir_flag_spec=
8016   hardcode_libdir_flag_spec_ld=
8017   hardcode_libdir_separator=
8018   hardcode_minus_L=no
8019   hardcode_shlibpath_var=unsupported
8020   inherit_rpath=no
8021   link_all_deplibs=unknown
8022   module_cmds=
8023   module_expsym_cmds=
8024   old_archive_from_new_cmds=
8025   old_archive_from_expsyms_cmds=
8026   thread_safe_flag_spec=
8027   whole_archive_flag_spec=
8028   # include_expsyms should be a list of space-separated symbols to be *always*
8029   # included in the symbol list
8030   include_expsyms=
8031   # exclude_expsyms can be an extended regexp of symbols to exclude
8032   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8033   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8034   # as well as any symbol that contains `d'.
8035   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8036   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8037   # platforms (ab)use it in PIC code, but their linkers get confused if
8038   # the symbol is explicitly referenced.  Since portable code cannot
8039   # rely on this symbol name, it's probably fine to never include it in
8040   # preloaded symbol tables.
8041   # Exclude shared library initialization/finalization symbols.
8042   extract_expsyms_cmds=
8043
8044   case $host_os in
8045   cygwin* | mingw* | pw32* | cegcc*)
8046     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8047     # When not using gcc, we currently assume that we are using
8048     # Microsoft Visual C++.
8049     if test "$GCC" != yes; then
8050       with_gnu_ld=no
8051     fi
8052     ;;
8053   interix*)
8054     # we just hope/assume this is gcc and not c89 (= MSVC++)
8055     with_gnu_ld=yes
8056     ;;
8057   openbsd*)
8058     with_gnu_ld=no
8059     ;;
8060   linux* | k*bsd*-gnu)
8061     link_all_deplibs=no
8062     ;;
8063   esac
8064
8065   ld_shlibs=yes
8066   if test "$with_gnu_ld" = yes; then
8067     # If archive_cmds runs LD, not CC, wlarc should be empty
8068     wlarc='${wl}'
8069
8070     # Set some defaults for GNU ld with shared library support. These
8071     # are reset later if shared libraries are not supported. Putting them
8072     # here allows them to be overridden if necessary.
8073     runpath_var=LD_RUN_PATH
8074     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8075     export_dynamic_flag_spec='${wl}--export-dynamic'
8076     # ancient GNU ld didn't support --whole-archive et. al.
8077     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8078       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8079     else
8080       whole_archive_flag_spec=
8081     fi
8082     supports_anon_versioning=no
8083     case `$LD -v 2>&1` in
8084       *GNU\ gold*) supports_anon_versioning=yes ;;
8085       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8086       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8087       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8088       *\ 2.11.*) ;; # other 2.11 versions
8089       *) supports_anon_versioning=yes ;;
8090     esac
8091
8092     # See if GNU ld supports shared libraries.
8093     case $host_os in
8094     aix[3-9]*)
8095       # On AIX/PPC, the GNU linker is very broken
8096       if test "$host_cpu" != ia64; then
8097         ld_shlibs=no
8098         cat <<_LT_EOF 1>&2
8099
8100 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8101 *** to be unable to reliably create shared libraries on AIX.
8102 *** Therefore, libtool is disabling shared libraries support.  If you
8103 *** really care for shared libraries, you may want to modify your PATH
8104 *** so that a non-GNU linker is found, and then restart.
8105
8106 _LT_EOF
8107       fi
8108       ;;
8109
8110     amigaos*)
8111       case $host_cpu in
8112       powerpc)
8113             # see comment about AmigaOS4 .so support
8114             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115             archive_expsym_cmds=''
8116         ;;
8117       m68k)
8118             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)'
8119             hardcode_libdir_flag_spec='-L$libdir'
8120             hardcode_minus_L=yes
8121         ;;
8122       esac
8123       ;;
8124
8125     beos*)
8126       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8127         allow_undefined_flag=unsupported
8128         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8129         # support --undefined.  This deserves some investigation.  FIXME
8130         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8131       else
8132         ld_shlibs=no
8133       fi
8134       ;;
8135
8136     cygwin* | mingw* | pw32* | cegcc*)
8137       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8138       # as there is no search path for DLLs.
8139       hardcode_libdir_flag_spec='-L$libdir'
8140       allow_undefined_flag=unsupported
8141       always_export_symbols=no
8142       enable_shared_with_static_runtimes=yes
8143       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8144
8145       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8146         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8147         # If the export-symbols file already is a .def file (1st line
8148         # is EXPORTS), use it as is; otherwise, prepend...
8149         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8150           cp $export_symbols $output_objdir/$soname.def;
8151         else
8152           echo EXPORTS > $output_objdir/$soname.def;
8153           cat $export_symbols >> $output_objdir/$soname.def;
8154         fi~
8155         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8156       else
8157         ld_shlibs=no
8158       fi
8159       ;;
8160
8161     interix[3-9]*)
8162       hardcode_direct=no
8163       hardcode_shlibpath_var=no
8164       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8165       export_dynamic_flag_spec='${wl}-E'
8166       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8167       # Instead, shared libraries are loaded at an image base (0x10000000 by
8168       # default) and relocated if they conflict, which is a slow very memory
8169       # consuming and fragmenting process.  To avoid this, we pick a random,
8170       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8171       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8172       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8173       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'
8174       ;;
8175
8176     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8177       tmp_diet=no
8178       if test "$host_os" = linux-dietlibc; then
8179         case $cc_basename in
8180           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8181         esac
8182       fi
8183       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8184          && test "$tmp_diet" = no
8185       then
8186         tmp_addflag=
8187         tmp_sharedflag='-shared'
8188         case $cc_basename,$host_cpu in
8189         pgcc*)                          # Portland Group C compiler
8190           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8191           tmp_addflag=' $pic_flag'
8192           ;;
8193         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8194           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8195           tmp_addflag=' $pic_flag -Mnomain' ;;
8196         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8197           tmp_addflag=' -i_dynamic' ;;
8198         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8199           tmp_addflag=' -i_dynamic -nofor_main' ;;
8200         ifc* | ifort*)                  # Intel Fortran compiler
8201           tmp_addflag=' -nofor_main' ;;
8202         lf95*)                          # Lahey Fortran 8.1
8203           whole_archive_flag_spec=
8204           tmp_sharedflag='--shared' ;;
8205         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8206           tmp_sharedflag='-qmkshrobj'
8207           tmp_addflag= ;;
8208         esac
8209         case `$CC -V 2>&1 | sed 5q` in
8210         *Sun\ C*)                       # Sun C 5.9
8211           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8212           compiler_needs_object=yes
8213           tmp_sharedflag='-G' ;;
8214         *Sun\ F*)                       # Sun Fortran 8.3
8215           tmp_sharedflag='-G' ;;
8216         esac
8217         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8218
8219         if test "x$supports_anon_versioning" = xyes; then
8220           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8221             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8222             echo "local: *; };" >> $output_objdir/$libname.ver~
8223             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8224         fi
8225
8226         case $cc_basename in
8227         xlf*)
8228           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8229           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8230           hardcode_libdir_flag_spec=
8231           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8232           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8233           if test "x$supports_anon_versioning" = xyes; then
8234             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8235               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8236               echo "local: *; };" >> $output_objdir/$libname.ver~
8237               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8238           fi
8239           ;;
8240         esac
8241       else
8242         ld_shlibs=no
8243       fi
8244       ;;
8245
8246     netbsd* | netbsdelf*-gnu)
8247       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8248         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8249         wlarc=
8250       else
8251         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8253       fi
8254       ;;
8255
8256     solaris*)
8257       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8258         ld_shlibs=no
8259         cat <<_LT_EOF 1>&2
8260
8261 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8262 *** create shared libraries on Solaris systems.  Therefore, libtool
8263 *** is disabling shared libraries support.  We urge you to upgrade GNU
8264 *** binutils to release 2.9.1 or newer.  Another option is to modify
8265 *** your PATH or compiler configuration so that the native linker is
8266 *** used, and then restart.
8267
8268 _LT_EOF
8269       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8270         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8272       else
8273         ld_shlibs=no
8274       fi
8275       ;;
8276
8277     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8278       case `$LD -v 2>&1` in
8279         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8280         ld_shlibs=no
8281         cat <<_LT_EOF 1>&2
8282
8283 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8284 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8285 *** is disabling shared libraries support.  We urge you to upgrade GNU
8286 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8287 *** your PATH or compiler configuration so that the native linker is
8288 *** used, and then restart.
8289
8290 _LT_EOF
8291         ;;
8292         *)
8293           # For security reasons, it is highly recommended that you always
8294           # use absolute paths for naming shared libraries, and exclude the
8295           # DT_RUNPATH tag from executables and libraries.  But doing so
8296           # requires that you compile everything twice, which is a pain.
8297           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8298             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8299             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8300             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8301           else
8302             ld_shlibs=no
8303           fi
8304         ;;
8305       esac
8306       ;;
8307
8308     sunos4*)
8309       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8310       wlarc=
8311       hardcode_direct=yes
8312       hardcode_shlibpath_var=no
8313       ;;
8314
8315     *)
8316       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8317         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319       else
8320         ld_shlibs=no
8321       fi
8322       ;;
8323     esac
8324
8325     if test "$ld_shlibs" = no; then
8326       runpath_var=
8327       hardcode_libdir_flag_spec=
8328       export_dynamic_flag_spec=
8329       whole_archive_flag_spec=
8330     fi
8331   else
8332     # PORTME fill in a description of your system's linker (not GNU ld)
8333     case $host_os in
8334     aix3*)
8335       allow_undefined_flag=unsupported
8336       always_export_symbols=yes
8337       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'
8338       # Note: this linker hardcodes the directories in LIBPATH if there
8339       # are no directories specified by -L.
8340       hardcode_minus_L=yes
8341       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8342         # Neither direct hardcoding nor static linking is supported with a
8343         # broken collect2.
8344         hardcode_direct=unsupported
8345       fi
8346       ;;
8347
8348     aix[4-9]*)
8349       if test "$host_cpu" = ia64; then
8350         # On IA64, the linker does run time linking by default, so we don't
8351         # have to do anything special.
8352         aix_use_runtimelinking=no
8353         exp_sym_flag='-Bexport'
8354         no_entry_flag=""
8355       else
8356         # If we're using GNU nm, then we don't want the "-C" option.
8357         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8358         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8359           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8360         else
8361           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8362         fi
8363         aix_use_runtimelinking=no
8364
8365         # Test if we are trying to use run time linking or normal
8366         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8367         # need to do runtime linking.
8368         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8369           for ld_flag in $LDFLAGS; do
8370           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8371             aix_use_runtimelinking=yes
8372             break
8373           fi
8374           done
8375           ;;
8376         esac
8377
8378         exp_sym_flag='-bexport'
8379         no_entry_flag='-bnoentry'
8380       fi
8381
8382       # When large executables or shared objects are built, AIX ld can
8383       # have problems creating the table of contents.  If linking a library
8384       # or program results in "error TOC overflow" add -mminimal-toc to
8385       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8386       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8387
8388       archive_cmds=''
8389       hardcode_direct=yes
8390       hardcode_direct_absolute=yes
8391       hardcode_libdir_separator=':'
8392       link_all_deplibs=yes
8393       file_list_spec='${wl}-f,'
8394
8395       if test "$GCC" = yes; then
8396         case $host_os in aix4.[012]|aix4.[012].*)
8397         # We only want to do this on AIX 4.2 and lower, the check
8398         # below for broken collect2 doesn't work under 4.3+
8399           collect2name=`${CC} -print-prog-name=collect2`
8400           if test -f "$collect2name" &&
8401            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8402           then
8403           # We have reworked collect2
8404           :
8405           else
8406           # We have old collect2
8407           hardcode_direct=unsupported
8408           # It fails to find uninstalled libraries when the uninstalled
8409           # path is not listed in the libpath.  Setting hardcode_minus_L
8410           # to unsupported forces relinking
8411           hardcode_minus_L=yes
8412           hardcode_libdir_flag_spec='-L$libdir'
8413           hardcode_libdir_separator=
8414           fi
8415           ;;
8416         esac
8417         shared_flag='-shared'
8418         if test "$aix_use_runtimelinking" = yes; then
8419           shared_flag="$shared_flag "'${wl}-G'
8420         fi
8421         link_all_deplibs=no
8422       else
8423         # not using gcc
8424         if test "$host_cpu" = ia64; then
8425         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8426         # chokes on -Wl,-G. The following line is correct:
8427           shared_flag='-G'
8428         else
8429           if test "$aix_use_runtimelinking" = yes; then
8430             shared_flag='${wl}-G'
8431           else
8432             shared_flag='${wl}-bM:SRE'
8433           fi
8434         fi
8435       fi
8436
8437       export_dynamic_flag_spec='${wl}-bexpall'
8438       # It seems that -bexpall does not export symbols beginning with
8439       # underscore (_), so it is better to generate a list of symbols to export.
8440       always_export_symbols=yes
8441       if test "$aix_use_runtimelinking" = yes; then
8442         # Warning - without using the other runtime loading flags (-brtl),
8443         # -berok will link without error, but may produce a broken library.
8444         allow_undefined_flag='-berok'
8445         # Determine the default libpath from the value encoded in an
8446         # empty executable.
8447         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h.  */
8449
8450 int
8451 main ()
8452 {
8453
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 if ac_fn_c_try_link "$LINENO"; then :
8459
8460 lt_aix_libpath_sed='
8461     /Import File Strings/,/^$/ {
8462         /^0/ {
8463             s/^0  *\(.*\)$/\1/
8464             p
8465         }
8466     }'
8467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8468 # Check for a 64-bit object if we didn't find anything.
8469 if test -z "$aix_libpath"; then
8470   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8471 fi
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext \
8474     conftest$ac_exeext conftest.$ac_ext
8475 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8476
8477         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8478         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8479       else
8480         if test "$host_cpu" = ia64; then
8481           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8482           allow_undefined_flag="-z nodefs"
8483           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"
8484         else
8485          # Determine the default libpath from the value encoded in an
8486          # empty executable.
8487          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h.  */
8489
8490 int
8491 main ()
8492 {
8493
8494   ;
8495   return 0;
8496 }
8497 _ACEOF
8498 if ac_fn_c_try_link "$LINENO"; then :
8499
8500 lt_aix_libpath_sed='
8501     /Import File Strings/,/^$/ {
8502         /^0/ {
8503             s/^0  *\(.*\)$/\1/
8504             p
8505         }
8506     }'
8507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8508 # Check for a 64-bit object if we didn't find anything.
8509 if test -z "$aix_libpath"; then
8510   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511 fi
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext \
8514     conftest$ac_exeext conftest.$ac_ext
8515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8516
8517          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8518           # Warning - without using the other run time loading flags,
8519           # -berok will link without error, but may produce a broken library.
8520           no_undefined_flag=' ${wl}-bernotok'
8521           allow_undefined_flag=' ${wl}-berok'
8522           # Exported symbols can be pulled into shared objects from archives
8523           whole_archive_flag_spec='$convenience'
8524           archive_cmds_need_lc=yes
8525           # This is similar to how AIX traditionally builds its shared libraries.
8526           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8527         fi
8528       fi
8529       ;;
8530
8531     amigaos*)
8532       case $host_cpu in
8533       powerpc)
8534             # see comment about AmigaOS4 .so support
8535             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8536             archive_expsym_cmds=''
8537         ;;
8538       m68k)
8539             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)'
8540             hardcode_libdir_flag_spec='-L$libdir'
8541             hardcode_minus_L=yes
8542         ;;
8543       esac
8544       ;;
8545
8546     bsdi[45]*)
8547       export_dynamic_flag_spec=-rdynamic
8548       ;;
8549
8550     cygwin* | mingw* | pw32* | cegcc*)
8551       # When not using gcc, we currently assume that we are using
8552       # Microsoft Visual C++.
8553       # hardcode_libdir_flag_spec is actually meaningless, as there is
8554       # no search path for DLLs.
8555       hardcode_libdir_flag_spec=' '
8556       allow_undefined_flag=unsupported
8557       # Tell ltmain to make .lib files, not .a files.
8558       libext=lib
8559       # Tell ltmain to make .dll files, not .so files.
8560       shrext_cmds=".dll"
8561       # FIXME: Setting linknames here is a bad hack.
8562       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8563       # The linker will automatically build a .lib file if we build a DLL.
8564       old_archive_from_new_cmds='true'
8565       # FIXME: Should let the user specify the lib program.
8566       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8567       fix_srcfile_path='`cygpath -w "$srcfile"`'
8568       enable_shared_with_static_runtimes=yes
8569       ;;
8570
8571     darwin* | rhapsody*)
8572
8573
8574   archive_cmds_need_lc=no
8575   hardcode_direct=no
8576   hardcode_automatic=yes
8577   hardcode_shlibpath_var=unsupported
8578   whole_archive_flag_spec=''
8579   link_all_deplibs=yes
8580   allow_undefined_flag="$_lt_dar_allow_undefined"
8581   case $cc_basename in
8582      ifort*) _lt_dar_can_shared=yes ;;
8583      *) _lt_dar_can_shared=$GCC ;;
8584   esac
8585   if test "$_lt_dar_can_shared" = "yes"; then
8586     output_verbose_link_cmd=echo
8587     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8588     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8589     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}"
8590     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}"
8591
8592   else
8593   ld_shlibs=no
8594   fi
8595
8596       ;;
8597
8598     dgux*)
8599       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600       hardcode_libdir_flag_spec='-L$libdir'
8601       hardcode_shlibpath_var=no
8602       ;;
8603
8604     freebsd1*)
8605       ld_shlibs=no
8606       ;;
8607
8608     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8609     # support.  Future versions do this automatically, but an explicit c++rt0.o
8610     # does not break anything, and helps significantly (at the cost of a little
8611     # extra space).
8612     freebsd2.2*)
8613       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8614       hardcode_libdir_flag_spec='-R$libdir'
8615       hardcode_direct=yes
8616       hardcode_shlibpath_var=no
8617       ;;
8618
8619     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8620     freebsd2*)
8621       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8622       hardcode_direct=yes
8623       hardcode_minus_L=yes
8624       hardcode_shlibpath_var=no
8625       ;;
8626
8627     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8628     freebsd* | dragonfly*)
8629       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8630       hardcode_libdir_flag_spec='-R$libdir'
8631       hardcode_direct=yes
8632       hardcode_shlibpath_var=no
8633       ;;
8634
8635     hpux9*)
8636       if test "$GCC" = yes; then
8637         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8638       else
8639         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8640       fi
8641       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8642       hardcode_libdir_separator=:
8643       hardcode_direct=yes
8644
8645       # hardcode_minus_L: Not really in the search PATH,
8646       # but as the default location of the library.
8647       hardcode_minus_L=yes
8648       export_dynamic_flag_spec='${wl}-E'
8649       ;;
8650
8651     hpux10*)
8652       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8653         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8654       else
8655         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8656       fi
8657       if test "$with_gnu_ld" = no; then
8658         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659         hardcode_libdir_flag_spec_ld='+b $libdir'
8660         hardcode_libdir_separator=:
8661         hardcode_direct=yes
8662         hardcode_direct_absolute=yes
8663         export_dynamic_flag_spec='${wl}-E'
8664         # hardcode_minus_L: Not really in the search PATH,
8665         # but as the default location of the library.
8666         hardcode_minus_L=yes
8667       fi
8668       ;;
8669
8670     hpux11*)
8671       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8672         case $host_cpu in
8673         hppa*64*)
8674           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8675           ;;
8676         ia64*)
8677           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8678           ;;
8679         *)
8680           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8681           ;;
8682         esac
8683       else
8684         case $host_cpu in
8685         hppa*64*)
8686           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687           ;;
8688         ia64*)
8689           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8690           ;;
8691         *)
8692           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8693           ;;
8694         esac
8695       fi
8696       if test "$with_gnu_ld" = no; then
8697         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8698         hardcode_libdir_separator=:
8699
8700         case $host_cpu in
8701         hppa*64*|ia64*)
8702           hardcode_direct=no
8703           hardcode_shlibpath_var=no
8704           ;;
8705         *)
8706           hardcode_direct=yes
8707           hardcode_direct_absolute=yes
8708           export_dynamic_flag_spec='${wl}-E'
8709
8710           # hardcode_minus_L: Not really in the search PATH,
8711           # but as the default location of the library.
8712           hardcode_minus_L=yes
8713           ;;
8714         esac
8715       fi
8716       ;;
8717
8718     irix5* | irix6* | nonstopux*)
8719       if test "$GCC" = yes; then
8720         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8721         # Try to use the -exported_symbol ld option, if it does not
8722         # work, assume that -exports_file does not work either and
8723         # implicitly export all symbols.
8724         save_LDFLAGS="$LDFLAGS"
8725         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8726         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h.  */
8728 int foo(void) {}
8729 _ACEOF
8730 if ac_fn_c_try_link "$LINENO"; then :
8731   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8732
8733 fi
8734 rm -f core conftest.err conftest.$ac_objext \
8735     conftest$ac_exeext conftest.$ac_ext
8736         LDFLAGS="$save_LDFLAGS"
8737       else
8738         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8739         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8740       fi
8741       archive_cmds_need_lc='no'
8742       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743       hardcode_libdir_separator=:
8744       inherit_rpath=yes
8745       link_all_deplibs=yes
8746       ;;
8747
8748     netbsd* | netbsdelf*-gnu)
8749       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8750         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8751       else
8752         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8753       fi
8754       hardcode_libdir_flag_spec='-R$libdir'
8755       hardcode_direct=yes
8756       hardcode_shlibpath_var=no
8757       ;;
8758
8759     newsos6)
8760       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8761       hardcode_direct=yes
8762       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8763       hardcode_libdir_separator=:
8764       hardcode_shlibpath_var=no
8765       ;;
8766
8767     *nto* | *qnx*)
8768       ;;
8769
8770     openbsd*)
8771       if test -f /usr/libexec/ld.so; then
8772         hardcode_direct=yes
8773         hardcode_shlibpath_var=no
8774         hardcode_direct_absolute=yes
8775         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8776           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8777           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8778           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8779           export_dynamic_flag_spec='${wl}-E'
8780         else
8781           case $host_os in
8782            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8783              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784              hardcode_libdir_flag_spec='-R$libdir'
8785              ;;
8786            *)
8787              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8788              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8789              ;;
8790           esac
8791         fi
8792       else
8793         ld_shlibs=no
8794       fi
8795       ;;
8796
8797     os2*)
8798       hardcode_libdir_flag_spec='-L$libdir'
8799       hardcode_minus_L=yes
8800       allow_undefined_flag=unsupported
8801       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8802       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8803       ;;
8804
8805     osf3*)
8806       if test "$GCC" = yes; then
8807         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8808         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8809       else
8810         allow_undefined_flag=' -expect_unresolved \*'
8811         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8812       fi
8813       archive_cmds_need_lc='no'
8814       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815       hardcode_libdir_separator=:
8816       ;;
8817
8818     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8819       if test "$GCC" = yes; then
8820         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8821         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8822         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8823       else
8824         allow_undefined_flag=' -expect_unresolved \*'
8825         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8826         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~
8827         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8828
8829         # Both c and cxx compiler support -rpath directly
8830         hardcode_libdir_flag_spec='-rpath $libdir'
8831       fi
8832       archive_cmds_need_lc='no'
8833       hardcode_libdir_separator=:
8834       ;;
8835
8836     solaris*)
8837       no_undefined_flag=' -z defs'
8838       if test "$GCC" = yes; then
8839         wlarc='${wl}'
8840         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8842           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8843       else
8844         case `$CC -V 2>&1` in
8845         *"Compilers 5.0"*)
8846           wlarc=''
8847           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8849           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8850           ;;
8851         *)
8852           wlarc='${wl}'
8853           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8854           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8855           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8856           ;;
8857         esac
8858       fi
8859       hardcode_libdir_flag_spec='-R$libdir'
8860       hardcode_shlibpath_var=no
8861       case $host_os in
8862       solaris2.[0-5] | solaris2.[0-5].*) ;;
8863       *)
8864         # The compiler driver will combine and reorder linker options,
8865         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8866         # but is careful enough not to reorder.
8867         # Supported since Solaris 2.6 (maybe 2.5.1?)
8868         if test "$GCC" = yes; then
8869           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8870         else
8871           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8872         fi
8873         ;;
8874       esac
8875       link_all_deplibs=yes
8876       ;;
8877
8878     sunos4*)
8879       if test "x$host_vendor" = xsequent; then
8880         # Use $CC to link under sequent, because it throws in some extra .o
8881         # files that make .init and .fini sections work.
8882         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8883       else
8884         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8885       fi
8886       hardcode_libdir_flag_spec='-L$libdir'
8887       hardcode_direct=yes
8888       hardcode_minus_L=yes
8889       hardcode_shlibpath_var=no
8890       ;;
8891
8892     sysv4)
8893       case $host_vendor in
8894         sni)
8895           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896           hardcode_direct=yes # is this really true???
8897         ;;
8898         siemens)
8899           ## LD is ld it makes a PLAMLIB
8900           ## CC just makes a GrossModule.
8901           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8902           reload_cmds='$CC -r -o $output$reload_objs'
8903           hardcode_direct=no
8904         ;;
8905         motorola)
8906           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8908         ;;
8909       esac
8910       runpath_var='LD_RUN_PATH'
8911       hardcode_shlibpath_var=no
8912       ;;
8913
8914     sysv4.3*)
8915       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916       hardcode_shlibpath_var=no
8917       export_dynamic_flag_spec='-Bexport'
8918       ;;
8919
8920     sysv4*MP*)
8921       if test -d /usr/nec; then
8922         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923         hardcode_shlibpath_var=no
8924         runpath_var=LD_RUN_PATH
8925         hardcode_runpath_var=yes
8926         ld_shlibs=yes
8927       fi
8928       ;;
8929
8930     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8931       no_undefined_flag='${wl}-z,text'
8932       archive_cmds_need_lc=no
8933       hardcode_shlibpath_var=no
8934       runpath_var='LD_RUN_PATH'
8935
8936       if test "$GCC" = yes; then
8937         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8938         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939       else
8940         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8941         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8942       fi
8943       ;;
8944
8945     sysv5* | sco3.2v5* | sco5v6*)
8946       # Note: We can NOT use -z defs as we might desire, because we do not
8947       # link with -lc, and that would cause any symbols used from libc to
8948       # always be unresolved, which means just about no library would
8949       # ever link correctly.  If we're not using GNU ld we use -z text
8950       # though, which does catch some bad symbols but isn't as heavy-handed
8951       # as -z defs.
8952       no_undefined_flag='${wl}-z,text'
8953       allow_undefined_flag='${wl}-z,nodefs'
8954       archive_cmds_need_lc=no
8955       hardcode_shlibpath_var=no
8956       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8957       hardcode_libdir_separator=':'
8958       link_all_deplibs=yes
8959       export_dynamic_flag_spec='${wl}-Bexport'
8960       runpath_var='LD_RUN_PATH'
8961
8962       if test "$GCC" = yes; then
8963         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8964         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965       else
8966         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8967         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8968       fi
8969       ;;
8970
8971     uts4*)
8972       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973       hardcode_libdir_flag_spec='-L$libdir'
8974       hardcode_shlibpath_var=no
8975       ;;
8976
8977     *)
8978       ld_shlibs=no
8979       ;;
8980     esac
8981
8982     if test x$host_vendor = xsni; then
8983       case $host in
8984       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8985         export_dynamic_flag_spec='${wl}-Blargedynsym'
8986         ;;
8987       esac
8988     fi
8989   fi
8990
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8992 $as_echo "$ld_shlibs" >&6; }
8993 test "$ld_shlibs" = no && can_build_shared=no
8994
8995 with_gnu_ld=$with_gnu_ld
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011 #
9012 # Do we need to explicitly link libc?
9013 #
9014 case "x$archive_cmds_need_lc" in
9015 x|xyes)
9016   # Assume -lc should be added
9017   archive_cmds_need_lc=yes
9018
9019   if test "$enable_shared" = yes && test "$GCC" = yes; then
9020     case $archive_cmds in
9021     *'~'*)
9022       # FIXME: we may have to deal with multi-command sequences.
9023       ;;
9024     '$CC '*)
9025       # Test whether the compiler implicitly links with -lc since on some
9026       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9027       # to ld, don't add -lc before -lgcc.
9028       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9029 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9030       $RM conftest*
9031       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9032
9033       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9034   (eval $ac_compile) 2>&5
9035   ac_status=$?
9036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9037   test $ac_status = 0; } 2>conftest.err; then
9038         soname=conftest
9039         lib=conftest
9040         libobjs=conftest.$ac_objext
9041         deplibs=
9042         wl=$lt_prog_compiler_wl
9043         pic_flag=$lt_prog_compiler_pic
9044         compiler_flags=-v
9045         linker_flags=-v
9046         verstring=
9047         output_objdir=.
9048         libname=conftest
9049         lt_save_allow_undefined_flag=$allow_undefined_flag
9050         allow_undefined_flag=
9051         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9052   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9053   ac_status=$?
9054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9055   test $ac_status = 0; }
9056         then
9057           archive_cmds_need_lc=no
9058         else
9059           archive_cmds_need_lc=yes
9060         fi
9061         allow_undefined_flag=$lt_save_allow_undefined_flag
9062       else
9063         cat conftest.err 1>&5
9064       fi
9065       $RM conftest*
9066       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9067 $as_echo "$archive_cmds_need_lc" >&6; }
9068       ;;
9069     esac
9070   fi
9071   ;;
9072 esac
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9231 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9232
9233 if test "$GCC" = yes; then
9234   case $host_os in
9235     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9236     *) lt_awk_arg="/^libraries:/" ;;
9237   esac
9238   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9239   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9240     # if the path contains ";" then we assume it to be the separator
9241     # otherwise default to the standard path separator (i.e. ":") - it is
9242     # assumed that no part of a normal pathname contains ";" but that should
9243     # okay in the real world where ";" in dirpaths is itself problematic.
9244     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9245   else
9246     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9247   fi
9248   # Ok, now we have the path, separated by spaces, we can step through it
9249   # and add multilib dir if necessary.
9250   lt_tmp_lt_search_path_spec=
9251   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9252   for lt_sys_path in $lt_search_path_spec; do
9253     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9254       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9255     else
9256       test -d "$lt_sys_path" && \
9257         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9258     fi
9259   done
9260   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9261 BEGIN {RS=" "; FS="/|\n";} {
9262   lt_foo="";
9263   lt_count=0;
9264   for (lt_i = NF; lt_i > 0; lt_i--) {
9265     if ($lt_i != "" && $lt_i != ".") {
9266       if ($lt_i == "..") {
9267         lt_count++;
9268       } else {
9269         if (lt_count == 0) {
9270           lt_foo="/" $lt_i lt_foo;
9271         } else {
9272           lt_count--;
9273         }
9274       }
9275     }
9276   }
9277   if (lt_foo != "") { lt_freq[lt_foo]++; }
9278   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9279 }'`
9280   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9281 else
9282   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9283 fi
9284 library_names_spec=
9285 libname_spec='lib$name'
9286 soname_spec=
9287 shrext_cmds=".so"
9288 postinstall_cmds=
9289 postuninstall_cmds=
9290 finish_cmds=
9291 finish_eval=
9292 shlibpath_var=
9293 shlibpath_overrides_runpath=unknown
9294 version_type=none
9295 dynamic_linker="$host_os ld.so"
9296 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9297 need_lib_prefix=unknown
9298 hardcode_into_libs=no
9299
9300 # when you set need_version to no, make sure it does not cause -set_version
9301 # flags to be left without arguments
9302 need_version=unknown
9303
9304 case $host_os in
9305 aix3*)
9306   version_type=linux
9307   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9308   shlibpath_var=LIBPATH
9309
9310   # AIX 3 has no versioning support, so we append a major version to the name.
9311   soname_spec='${libname}${release}${shared_ext}$major'
9312   ;;
9313
9314 aix[4-9]*)
9315   version_type=linux
9316   need_lib_prefix=no
9317   need_version=no
9318   hardcode_into_libs=yes
9319   if test "$host_cpu" = ia64; then
9320     # AIX 5 supports IA64
9321     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9322     shlibpath_var=LD_LIBRARY_PATH
9323   else
9324     # With GCC up to 2.95.x, collect2 would create an import file
9325     # for dependence libraries.  The import file would start with
9326     # the line `#! .'.  This would cause the generated library to
9327     # depend on `.', always an invalid library.  This was fixed in
9328     # development snapshots of GCC prior to 3.0.
9329     case $host_os in
9330       aix4 | aix4.[01] | aix4.[01].*)
9331       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9332            echo ' yes '
9333            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9334         :
9335       else
9336         can_build_shared=no
9337       fi
9338       ;;
9339     esac
9340     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9341     # soname into executable. Probably we can add versioning support to
9342     # collect2, so additional links can be useful in future.
9343     if test "$aix_use_runtimelinking" = yes; then
9344       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9345       # instead of lib<name>.a to let people know that these are not
9346       # typical AIX shared libraries.
9347       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348     else
9349       # We preserve .a as extension for shared libraries through AIX4.2
9350       # and later when we are not doing run time linking.
9351       library_names_spec='${libname}${release}.a $libname.a'
9352       soname_spec='${libname}${release}${shared_ext}$major'
9353     fi
9354     shlibpath_var=LIBPATH
9355   fi
9356   ;;
9357
9358 amigaos*)
9359   case $host_cpu in
9360   powerpc)
9361     # Since July 2007 AmigaOS4 officially supports .so libraries.
9362     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364     ;;
9365   m68k)
9366     library_names_spec='$libname.ixlibrary $libname.a'
9367     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9368     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9369     ;;
9370   esac
9371   ;;
9372
9373 beos*)
9374   library_names_spec='${libname}${shared_ext}'
9375   dynamic_linker="$host_os ld.so"
9376   shlibpath_var=LIBRARY_PATH
9377   ;;
9378
9379 bsdi[45]*)
9380   version_type=linux
9381   need_version=no
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383   soname_spec='${libname}${release}${shared_ext}$major'
9384   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9385   shlibpath_var=LD_LIBRARY_PATH
9386   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9387   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9388   # the default ld.so.conf also contains /usr/contrib/lib and
9389   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9390   # libtool to hard-code these into programs
9391   ;;
9392
9393 cygwin* | mingw* | pw32* | cegcc*)
9394   version_type=windows
9395   shrext_cmds=".dll"
9396   need_version=no
9397   need_lib_prefix=no
9398
9399   case $GCC,$host_os in
9400   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9401     library_names_spec='$libname.dll.a'
9402     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9403     postinstall_cmds='base_file=`basename \${file}`~
9404       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9405       dldir=$destdir/`dirname \$dlpath`~
9406       test -d \$dldir || mkdir -p \$dldir~
9407       $install_prog $dir/$dlname \$dldir/$dlname~
9408       chmod a+x \$dldir/$dlname~
9409       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9410         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9411       fi'
9412     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9413       dlpath=$dir/\$dldll~
9414        $RM \$dlpath'
9415     shlibpath_overrides_runpath=yes
9416
9417     case $host_os in
9418     cygwin*)
9419       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9420       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9421       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9422       ;;
9423     mingw* | cegcc*)
9424       # MinGW DLLs use traditional 'lib' prefix
9425       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9426       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9427       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9428         # It is most probably a Windows format PATH printed by
9429         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9430         # path with ; separators, and with drive letters. We can handle the
9431         # drive letters (cygwin fileutils understands them), so leave them,
9432         # especially as we might pass files found there to a mingw objdump,
9433         # which wouldn't understand a cygwinified path. Ahh.
9434         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9435       else
9436         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9437       fi
9438       ;;
9439     pw32*)
9440       # pw32 DLLs use 'pw' prefix rather than 'lib'
9441       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9442       ;;
9443     esac
9444     ;;
9445
9446   *)
9447     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9448     ;;
9449   esac
9450   dynamic_linker='Win32 ld.exe'
9451   # FIXME: first we should search . and the directory the executable is in
9452   shlibpath_var=PATH
9453   ;;
9454
9455 darwin* | rhapsody*)
9456   dynamic_linker="$host_os dyld"
9457   version_type=darwin
9458   need_lib_prefix=no
9459   need_version=no
9460   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9461   soname_spec='${libname}${release}${major}$shared_ext'
9462   shlibpath_overrides_runpath=yes
9463   shlibpath_var=DYLD_LIBRARY_PATH
9464   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9465
9466   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9467   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9468   ;;
9469
9470 dgux*)
9471   version_type=linux
9472   need_lib_prefix=no
9473   need_version=no
9474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9475   soname_spec='${libname}${release}${shared_ext}$major'
9476   shlibpath_var=LD_LIBRARY_PATH
9477   ;;
9478
9479 freebsd1*)
9480   dynamic_linker=no
9481   ;;
9482
9483 freebsd* | dragonfly*)
9484   # DragonFly does not have aout.  When/if they implement a new
9485   # versioning mechanism, adjust this.
9486   if test -x /usr/bin/objformat; then
9487     objformat=`/usr/bin/objformat`
9488   else
9489     case $host_os in
9490     freebsd[123]*) objformat=aout ;;
9491     *) objformat=elf ;;
9492     esac
9493   fi
9494   version_type=freebsd-$objformat
9495   case $version_type in
9496     freebsd-elf*)
9497       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9498       need_version=no
9499       need_lib_prefix=no
9500       ;;
9501     freebsd-*)
9502       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9503       need_version=yes
9504       ;;
9505   esac
9506   shlibpath_var=LD_LIBRARY_PATH
9507   case $host_os in
9508   freebsd2*)
9509     shlibpath_overrides_runpath=yes
9510     ;;
9511   freebsd3.[01]* | freebsdelf3.[01]*)
9512     shlibpath_overrides_runpath=yes
9513     hardcode_into_libs=yes
9514     ;;
9515   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9516   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9517     shlibpath_overrides_runpath=no
9518     hardcode_into_libs=yes
9519     ;;
9520   *) # from 4.6 on, and DragonFly
9521     shlibpath_overrides_runpath=yes
9522     hardcode_into_libs=yes
9523     ;;
9524   esac
9525   ;;
9526
9527 gnu*)
9528   version_type=linux
9529   need_lib_prefix=no
9530   need_version=no
9531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9532   soname_spec='${libname}${release}${shared_ext}$major'
9533   shlibpath_var=LD_LIBRARY_PATH
9534   hardcode_into_libs=yes
9535   ;;
9536
9537 hpux9* | hpux10* | hpux11*)
9538   # Give a soname corresponding to the major version so that dld.sl refuses to
9539   # link against other versions.
9540   version_type=sunos
9541   need_lib_prefix=no
9542   need_version=no
9543   case $host_cpu in
9544   ia64*)
9545     shrext_cmds='.so'
9546     hardcode_into_libs=yes
9547     dynamic_linker="$host_os dld.so"
9548     shlibpath_var=LD_LIBRARY_PATH
9549     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9550     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551     soname_spec='${libname}${release}${shared_ext}$major'
9552     if test "X$HPUX_IA64_MODE" = X32; then
9553       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9554     else
9555       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9556     fi
9557     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9558     ;;
9559   hppa*64*)
9560     shrext_cmds='.sl'
9561     hardcode_into_libs=yes
9562     dynamic_linker="$host_os dld.sl"
9563     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566     soname_spec='${libname}${release}${shared_ext}$major'
9567     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9569     ;;
9570   *)
9571     shrext_cmds='.sl'
9572     dynamic_linker="$host_os dld.sl"
9573     shlibpath_var=SHLIB_PATH
9574     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9575     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576     soname_spec='${libname}${release}${shared_ext}$major'
9577     ;;
9578   esac
9579   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9580   postinstall_cmds='chmod 555 $lib'
9581   ;;
9582
9583 interix[3-9]*)
9584   version_type=linux
9585   need_lib_prefix=no
9586   need_version=no
9587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9588   soname_spec='${libname}${release}${shared_ext}$major'
9589   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9590   shlibpath_var=LD_LIBRARY_PATH
9591   shlibpath_overrides_runpath=no
9592   hardcode_into_libs=yes
9593   ;;
9594
9595 irix5* | irix6* | nonstopux*)
9596   case $host_os in
9597     nonstopux*) version_type=nonstopux ;;
9598     *)
9599         if test "$lt_cv_prog_gnu_ld" = yes; then
9600                 version_type=linux
9601         else
9602                 version_type=irix
9603         fi ;;
9604   esac
9605   need_lib_prefix=no
9606   need_version=no
9607   soname_spec='${libname}${release}${shared_ext}$major'
9608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9609   case $host_os in
9610   irix5* | nonstopux*)
9611     libsuff= shlibsuff=
9612     ;;
9613   *)
9614     case $LD in # libtool.m4 will add one of these switches to LD
9615     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9616       libsuff= shlibsuff= libmagic=32-bit;;
9617     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9618       libsuff=32 shlibsuff=N32 libmagic=N32;;
9619     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9620       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9621     *) libsuff= shlibsuff= libmagic=never-match;;
9622     esac
9623     ;;
9624   esac
9625   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9626   shlibpath_overrides_runpath=no
9627   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9628   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9629   hardcode_into_libs=yes
9630   ;;
9631
9632 # No shared lib support for Linux oldld, aout, or coff.
9633 linux*oldld* | linux*aout* | linux*coff*)
9634   dynamic_linker=no
9635   ;;
9636
9637 # This must be Linux ELF.
9638 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9639   version_type=linux
9640   need_lib_prefix=no
9641   need_version=no
9642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643   soname_spec='${libname}${release}${shared_ext}$major'
9644   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9645   shlibpath_var=LD_LIBRARY_PATH
9646   shlibpath_overrides_runpath=no
9647   # Some binutils ld are patched to set DT_RUNPATH
9648   save_LDFLAGS=$LDFLAGS
9649   save_libdir=$libdir
9650   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9651        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h.  */
9654
9655 int
9656 main ()
9657 {
9658
9659   ;
9660   return 0;
9661 }
9662 _ACEOF
9663 if ac_fn_c_try_link "$LINENO"; then :
9664   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9665   shlibpath_overrides_runpath=yes
9666 fi
9667 fi
9668 rm -f core conftest.err conftest.$ac_objext \
9669     conftest$ac_exeext conftest.$ac_ext
9670   LDFLAGS=$save_LDFLAGS
9671   libdir=$save_libdir
9672
9673   # This implies no fast_install, which is unacceptable.
9674   # Some rework will be needed to allow for fast_install
9675   # before this can be enabled.
9676   hardcode_into_libs=yes
9677
9678   # Append ld.so.conf contents to the search path
9679   if test -f /etc/ld.so.conf; then
9680     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;/^$/d' | tr '\n' ' '`
9681     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9682   fi
9683
9684   # We used to test for /lib/ld.so.1 and disable shared libraries on
9685   # powerpc, because MkLinux only supported shared libraries with the
9686   # GNU dynamic linker.  Since this was broken with cross compilers,
9687   # most powerpc-linux boxes support dynamic linking these days and
9688   # people can always --disable-shared, the test was removed, and we
9689   # assume the GNU/Linux dynamic linker is in use.
9690   dynamic_linker='GNU/Linux ld.so'
9691   ;;
9692
9693 netbsdelf*-gnu)
9694   version_type=linux
9695   need_lib_prefix=no
9696   need_version=no
9697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9698   soname_spec='${libname}${release}${shared_ext}$major'
9699   shlibpath_var=LD_LIBRARY_PATH
9700   shlibpath_overrides_runpath=no
9701   hardcode_into_libs=yes
9702   dynamic_linker='NetBSD ld.elf_so'
9703   ;;
9704
9705 netbsd*)
9706   version_type=sunos
9707   need_lib_prefix=no
9708   need_version=no
9709   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9711     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9712     dynamic_linker='NetBSD (a.out) ld.so'
9713   else
9714     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9715     soname_spec='${libname}${release}${shared_ext}$major'
9716     dynamic_linker='NetBSD ld.elf_so'
9717   fi
9718   shlibpath_var=LD_LIBRARY_PATH
9719   shlibpath_overrides_runpath=yes
9720   hardcode_into_libs=yes
9721   ;;
9722
9723 newsos6)
9724   version_type=linux
9725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726   shlibpath_var=LD_LIBRARY_PATH
9727   shlibpath_overrides_runpath=yes
9728   ;;
9729
9730 *nto* | *qnx*)
9731   version_type=qnx
9732   need_lib_prefix=no
9733   need_version=no
9734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735   soname_spec='${libname}${release}${shared_ext}$major'
9736   shlibpath_var=LD_LIBRARY_PATH
9737   shlibpath_overrides_runpath=no
9738   hardcode_into_libs=yes
9739   dynamic_linker='ldqnx.so'
9740   ;;
9741
9742 openbsd*)
9743   version_type=sunos
9744   sys_lib_dlsearch_path_spec="/usr/lib"
9745   need_lib_prefix=no
9746   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9747   case $host_os in
9748     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9749     *)                          need_version=no  ;;
9750   esac
9751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9752   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9753   shlibpath_var=LD_LIBRARY_PATH
9754   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9755     case $host_os in
9756       openbsd2.[89] | openbsd2.[89].*)
9757         shlibpath_overrides_runpath=no
9758         ;;
9759       *)
9760         shlibpath_overrides_runpath=yes
9761         ;;
9762       esac
9763   else
9764     shlibpath_overrides_runpath=yes
9765   fi
9766   ;;
9767
9768 os2*)
9769   libname_spec='$name'
9770   shrext_cmds=".dll"
9771   need_lib_prefix=no
9772   library_names_spec='$libname${shared_ext} $libname.a'
9773   dynamic_linker='OS/2 ld.exe'
9774   shlibpath_var=LIBPATH
9775   ;;
9776
9777 osf3* | osf4* | osf5*)
9778   version_type=osf
9779   need_lib_prefix=no
9780   need_version=no
9781   soname_spec='${libname}${release}${shared_ext}$major'
9782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783   shlibpath_var=LD_LIBRARY_PATH
9784   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9785   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9786   ;;
9787
9788 rdos*)
9789   dynamic_linker=no
9790   ;;
9791
9792 solaris*)
9793   version_type=linux
9794   need_lib_prefix=no
9795   need_version=no
9796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797   soname_spec='${libname}${release}${shared_ext}$major'
9798   shlibpath_var=LD_LIBRARY_PATH
9799   shlibpath_overrides_runpath=yes
9800   hardcode_into_libs=yes
9801   # ldd complains unless libraries are executable
9802   postinstall_cmds='chmod +x $lib'
9803   ;;
9804
9805 sunos4*)
9806   version_type=sunos
9807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9808   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9809   shlibpath_var=LD_LIBRARY_PATH
9810   shlibpath_overrides_runpath=yes
9811   if test "$with_gnu_ld" = yes; then
9812     need_lib_prefix=no
9813   fi
9814   need_version=yes
9815   ;;
9816
9817 sysv4 | sysv4.3*)
9818   version_type=linux
9819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   shlibpath_var=LD_LIBRARY_PATH
9822   case $host_vendor in
9823     sni)
9824       shlibpath_overrides_runpath=no
9825       need_lib_prefix=no
9826       runpath_var=LD_RUN_PATH
9827       ;;
9828     siemens)
9829       need_lib_prefix=no
9830       ;;
9831     motorola)
9832       need_lib_prefix=no
9833       need_version=no
9834       shlibpath_overrides_runpath=no
9835       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9836       ;;
9837   esac
9838   ;;
9839
9840 sysv4*MP*)
9841   if test -d /usr/nec ;then
9842     version_type=linux
9843     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9844     soname_spec='$libname${shared_ext}.$major'
9845     shlibpath_var=LD_LIBRARY_PATH
9846   fi
9847   ;;
9848
9849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9850   version_type=freebsd-elf
9851   need_lib_prefix=no
9852   need_version=no
9853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9854   soname_spec='${libname}${release}${shared_ext}$major'
9855   shlibpath_var=LD_LIBRARY_PATH
9856   shlibpath_overrides_runpath=yes
9857   hardcode_into_libs=yes
9858   if test "$with_gnu_ld" = yes; then
9859     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9860   else
9861     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9862     case $host_os in
9863       sco3.2v5*)
9864         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9865         ;;
9866     esac
9867   fi
9868   sys_lib_dlsearch_path_spec='/usr/lib'
9869   ;;
9870
9871 tpf*)
9872   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9873   version_type=linux
9874   need_lib_prefix=no
9875   need_version=no
9876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877   shlibpath_var=LD_LIBRARY_PATH
9878   shlibpath_overrides_runpath=no
9879   hardcode_into_libs=yes
9880   ;;
9881
9882 uts4*)
9883   version_type=linux
9884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885   soname_spec='${libname}${release}${shared_ext}$major'
9886   shlibpath_var=LD_LIBRARY_PATH
9887   ;;
9888
9889 *)
9890   dynamic_linker=no
9891   ;;
9892 esac
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9894 $as_echo "$dynamic_linker" >&6; }
9895 test "$dynamic_linker" = no && can_build_shared=no
9896
9897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9898 if test "$GCC" = yes; then
9899   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9900 fi
9901
9902 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9903   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9904 fi
9905 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9906   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9907 fi
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9996 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9997 hardcode_action=
9998 if test -n "$hardcode_libdir_flag_spec" ||
9999    test -n "$runpath_var" ||
10000    test "X$hardcode_automatic" = "Xyes" ; then
10001
10002   # We can hardcode non-existent directories.
10003   if test "$hardcode_direct" != no &&
10004      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10005      # have to relink, otherwise we might link with an installed library
10006      # when we should be linking with a yet-to-be-installed one
10007      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10008      test "$hardcode_minus_L" != no; then
10009     # Linking always hardcodes the temporary library directory.
10010     hardcode_action=relink
10011   else
10012     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10013     hardcode_action=immediate
10014   fi
10015 else
10016   # We cannot hardcode anything, or else we can only hardcode existing
10017   # directories.
10018   hardcode_action=unsupported
10019 fi
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10021 $as_echo "$hardcode_action" >&6; }
10022
10023 if test "$hardcode_action" = relink ||
10024    test "$inherit_rpath" = yes; then
10025   # Fast installation is not supported
10026   enable_fast_install=no
10027 elif test "$shlibpath_overrides_runpath" = yes ||
10028      test "$enable_shared" = no; then
10029   # Fast installation is not necessary
10030   enable_fast_install=needless
10031 fi
10032
10033
10034
10035
10036
10037
10038   if test "x$enable_dlopen" != xyes; then
10039   enable_dlopen=unknown
10040   enable_dlopen_self=unknown
10041   enable_dlopen_self_static=unknown
10042 else
10043   lt_cv_dlopen=no
10044   lt_cv_dlopen_libs=
10045
10046   case $host_os in
10047   beos*)
10048     lt_cv_dlopen="load_add_on"
10049     lt_cv_dlopen_libs=
10050     lt_cv_dlopen_self=yes
10051     ;;
10052
10053   mingw* | pw32* | cegcc*)
10054     lt_cv_dlopen="LoadLibrary"
10055     lt_cv_dlopen_libs=
10056     ;;
10057
10058   cygwin*)
10059     lt_cv_dlopen="dlopen"
10060     lt_cv_dlopen_libs=
10061     ;;
10062
10063   darwin*)
10064   # if libdl is installed we need to link against it
10065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10068   $as_echo_n "(cached) " >&6
10069 else
10070   ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-ldl  $LIBS"
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h.  */
10074
10075 /* Override any GCC internal prototype to avoid an error.
10076    Use char because int might match the return type of a GCC
10077    builtin and then its argument prototype would still apply.  */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char dlopen ();
10082 int
10083 main ()
10084 {
10085 return dlopen ();
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 if ac_fn_c_try_link "$LINENO"; then :
10091   ac_cv_lib_dl_dlopen=yes
10092 else
10093   ac_cv_lib_dl_dlopen=no
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext \
10096     conftest$ac_exeext conftest.$ac_ext
10097 LIBS=$ac_check_lib_save_LIBS
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10101 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10102   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10103 else
10104
10105     lt_cv_dlopen="dyld"
10106     lt_cv_dlopen_libs=
10107     lt_cv_dlopen_self=yes
10108
10109 fi
10110
10111     ;;
10112
10113   *)
10114     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10115 if test "x$ac_cv_func_shl_load" = x""yes; then :
10116   lt_cv_dlopen="shl_load"
10117 else
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10119 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10120 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10121   $as_echo_n "(cached) " >&6
10122 else
10123   ac_check_lib_save_LIBS=$LIBS
10124 LIBS="-ldld  $LIBS"
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h.  */
10127
10128 /* Override any GCC internal prototype to avoid an error.
10129    Use char because int might match the return type of a GCC
10130    builtin and then its argument prototype would still apply.  */
10131 #ifdef __cplusplus
10132 extern "C"
10133 #endif
10134 char shl_load ();
10135 int
10136 main ()
10137 {
10138 return shl_load ();
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 if ac_fn_c_try_link "$LINENO"; then :
10144   ac_cv_lib_dld_shl_load=yes
10145 else
10146   ac_cv_lib_dld_shl_load=no
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext \
10149     conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10153 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10154 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10155   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10156 else
10157   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10158 if test "x$ac_cv_func_dlopen" = x""yes; then :
10159   lt_cv_dlopen="dlopen"
10160 else
10161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10163 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10164   $as_echo_n "(cached) " >&6
10165 else
10166   ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-ldl  $LIBS"
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h.  */
10170
10171 /* Override any GCC internal prototype to avoid an error.
10172    Use char because int might match the return type of a GCC
10173    builtin and then its argument prototype would still apply.  */
10174 #ifdef __cplusplus
10175 extern "C"
10176 #endif
10177 char dlopen ();
10178 int
10179 main ()
10180 {
10181 return dlopen ();
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"; then :
10187   ac_cv_lib_dl_dlopen=yes
10188 else
10189   ac_cv_lib_dl_dlopen=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext \
10192     conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10196 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10197 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10198   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10199 else
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10201 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10202 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10203   $as_echo_n "(cached) " >&6
10204 else
10205   ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-lsvld  $LIBS"
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h.  */
10209
10210 /* Override any GCC internal prototype to avoid an error.
10211    Use char because int might match the return type of a GCC
10212    builtin and then its argument prototype would still apply.  */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 char dlopen ();
10217 int
10218 main ()
10219 {
10220 return dlopen ();
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 if ac_fn_c_try_link "$LINENO"; then :
10226   ac_cv_lib_svld_dlopen=yes
10227 else
10228   ac_cv_lib_svld_dlopen=no
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext \
10231     conftest$ac_exeext conftest.$ac_ext
10232 LIBS=$ac_check_lib_save_LIBS
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10235 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10236 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10237   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10238 else
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10240 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10241 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10242   $as_echo_n "(cached) " >&6
10243 else
10244   ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-ldld  $LIBS"
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h.  */
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char dld_link ();
10256 int
10257 main ()
10258 {
10259 return dld_link ();
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265   ac_cv_lib_dld_dld_link=yes
10266 else
10267   ac_cv_lib_dld_dld_link=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext \
10270     conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10274 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10275 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10276   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10277 fi
10278
10279
10280 fi
10281
10282
10283 fi
10284
10285
10286 fi
10287
10288
10289 fi
10290
10291
10292 fi
10293
10294     ;;
10295   esac
10296
10297   if test "x$lt_cv_dlopen" != xno; then
10298     enable_dlopen=yes
10299   else
10300     enable_dlopen=no
10301   fi
10302
10303   case $lt_cv_dlopen in
10304   dlopen)
10305     save_CPPFLAGS="$CPPFLAGS"
10306     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10307
10308     save_LDFLAGS="$LDFLAGS"
10309     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10310
10311     save_LIBS="$LIBS"
10312     LIBS="$lt_cv_dlopen_libs $LIBS"
10313
10314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10315 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10316 if test "${lt_cv_dlopen_self+set}" = set; then :
10317   $as_echo_n "(cached) " >&6
10318 else
10319           if test "$cross_compiling" = yes; then :
10320   lt_cv_dlopen_self=cross
10321 else
10322   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10323   lt_status=$lt_dlunknown
10324   cat > conftest.$ac_ext <<_LT_EOF
10325 #line 10325 "configure"
10326 #include "confdefs.h"
10327
10328 #if HAVE_DLFCN_H
10329 #include <dlfcn.h>
10330 #endif
10331
10332 #include <stdio.h>
10333
10334 #ifdef RTLD_GLOBAL
10335 #  define LT_DLGLOBAL           RTLD_GLOBAL
10336 #else
10337 #  ifdef DL_GLOBAL
10338 #    define LT_DLGLOBAL         DL_GLOBAL
10339 #  else
10340 #    define LT_DLGLOBAL         0
10341 #  endif
10342 #endif
10343
10344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10345    find out it does not work in some platform. */
10346 #ifndef LT_DLLAZY_OR_NOW
10347 #  ifdef RTLD_LAZY
10348 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10349 #  else
10350 #    ifdef DL_LAZY
10351 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10352 #    else
10353 #      ifdef RTLD_NOW
10354 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10355 #      else
10356 #        ifdef DL_NOW
10357 #          define LT_DLLAZY_OR_NOW      DL_NOW
10358 #        else
10359 #          define LT_DLLAZY_OR_NOW      0
10360 #        endif
10361 #      endif
10362 #    endif
10363 #  endif
10364 #endif
10365
10366 void fnord() { int i=42;}
10367 int main ()
10368 {
10369   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10370   int status = $lt_dlunknown;
10371
10372   if (self)
10373     {
10374       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10375       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10376       /* dlclose (self); */
10377     }
10378   else
10379     puts (dlerror ());
10380
10381   return status;
10382 }
10383 _LT_EOF
10384   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10385   (eval $ac_link) 2>&5
10386   ac_status=$?
10387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10388   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10389     (./conftest; exit; ) >&5 2>/dev/null
10390     lt_status=$?
10391     case x$lt_status in
10392       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10393       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10394       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10395     esac
10396   else :
10397     # compilation failed
10398     lt_cv_dlopen_self=no
10399   fi
10400 fi
10401 rm -fr conftest*
10402
10403
10404 fi
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10406 $as_echo "$lt_cv_dlopen_self" >&6; }
10407
10408     if test "x$lt_cv_dlopen_self" = xyes; then
10409       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10410       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10411 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10412 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10413   $as_echo_n "(cached) " >&6
10414 else
10415           if test "$cross_compiling" = yes; then :
10416   lt_cv_dlopen_self_static=cross
10417 else
10418   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10419   lt_status=$lt_dlunknown
10420   cat > conftest.$ac_ext <<_LT_EOF
10421 #line 10421 "configure"
10422 #include "confdefs.h"
10423
10424 #if HAVE_DLFCN_H
10425 #include <dlfcn.h>
10426 #endif
10427
10428 #include <stdio.h>
10429
10430 #ifdef RTLD_GLOBAL
10431 #  define LT_DLGLOBAL           RTLD_GLOBAL
10432 #else
10433 #  ifdef DL_GLOBAL
10434 #    define LT_DLGLOBAL         DL_GLOBAL
10435 #  else
10436 #    define LT_DLGLOBAL         0
10437 #  endif
10438 #endif
10439
10440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10441    find out it does not work in some platform. */
10442 #ifndef LT_DLLAZY_OR_NOW
10443 #  ifdef RTLD_LAZY
10444 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10445 #  else
10446 #    ifdef DL_LAZY
10447 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10448 #    else
10449 #      ifdef RTLD_NOW
10450 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10451 #      else
10452 #        ifdef DL_NOW
10453 #          define LT_DLLAZY_OR_NOW      DL_NOW
10454 #        else
10455 #          define LT_DLLAZY_OR_NOW      0
10456 #        endif
10457 #      endif
10458 #    endif
10459 #  endif
10460 #endif
10461
10462 void fnord() { int i=42;}
10463 int main ()
10464 {
10465   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10466   int status = $lt_dlunknown;
10467
10468   if (self)
10469     {
10470       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10471       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10472       /* dlclose (self); */
10473     }
10474   else
10475     puts (dlerror ());
10476
10477   return status;
10478 }
10479 _LT_EOF
10480   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10481   (eval $ac_link) 2>&5
10482   ac_status=$?
10483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10484   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10485     (./conftest; exit; ) >&5 2>/dev/null
10486     lt_status=$?
10487     case x$lt_status in
10488       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10489       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10490       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10491     esac
10492   else :
10493     # compilation failed
10494     lt_cv_dlopen_self_static=no
10495   fi
10496 fi
10497 rm -fr conftest*
10498
10499
10500 fi
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10502 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10503     fi
10504
10505     CPPFLAGS="$save_CPPFLAGS"
10506     LDFLAGS="$save_LDFLAGS"
10507     LIBS="$save_LIBS"
10508     ;;
10509   esac
10510
10511   case $lt_cv_dlopen_self in
10512   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10513   *) enable_dlopen_self=unknown ;;
10514   esac
10515
10516   case $lt_cv_dlopen_self_static in
10517   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10518   *) enable_dlopen_self_static=unknown ;;
10519   esac
10520 fi
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538 striplib=
10539 old_striplib=
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10541 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10542 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10543   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10544   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10546 $as_echo "yes" >&6; }
10547 else
10548 # FIXME - insert some real tests, host_os isn't really good enough
10549   case $host_os in
10550   darwin*)
10551     if test -n "$STRIP" ; then
10552       striplib="$STRIP -x"
10553       old_striplib="$STRIP -S"
10554       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10555 $as_echo "yes" >&6; }
10556     else
10557       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10559     fi
10560     ;;
10561   *)
10562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564     ;;
10565   esac
10566 fi
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579   # Report which library types will actually be built
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10581 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10583 $as_echo "$can_build_shared" >&6; }
10584
10585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10586 $as_echo_n "checking whether to build shared libraries... " >&6; }
10587   test "$can_build_shared" = "no" && enable_shared=no
10588
10589   # On AIX, shared libraries and static libraries use the same namespace, and
10590   # are all built from PIC.
10591   case $host_os in
10592   aix3*)
10593     test "$enable_shared" = yes && enable_static=no
10594     if test -n "$RANLIB"; then
10595       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10596       postinstall_cmds='$RANLIB $lib'
10597     fi
10598     ;;
10599
10600   aix[4-9]*)
10601     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10602       test "$enable_shared" = yes && enable_static=no
10603     fi
10604     ;;
10605   esac
10606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10607 $as_echo "$enable_shared" >&6; }
10608
10609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10610 $as_echo_n "checking whether to build static libraries... " >&6; }
10611   # Make sure either enable_shared or enable_static is yes.
10612   test "$enable_shared" = yes || enable_static=yes
10613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10614 $as_echo "$enable_static" >&6; }
10615
10616
10617
10618
10619 fi
10620 ac_ext=c
10621 ac_cpp='$CPP $CPPFLAGS'
10622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10625
10626 CC="$lt_save_CC"
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640         ac_config_commands="$ac_config_commands libtool"
10641
10642
10643
10644
10645 # Only expand once:
10646
10647
10648
10649 FRIBIDI_MAJOR_VERSION=0
10650 FRIBIDI_MINOR_VERSION=19
10651 FRIBIDI_MICRO_VERSION=4
10652 FRIBIDI_VERSION=0.19.4
10653 FRIBIDI_INTERFACE_VERSION=3
10654 FRIBIDI_INTERFACE_AGE=3
10655 FRIBIDI_BINARY_AGE=3
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665 LT_VERSION_INFO=3:3:3
10666 LT_CURRENT_MINUS_AGE=0
10667
10668
10669
10670
10671
10672 # Checks for programs.
10673 ac_ext=c
10674 ac_cpp='$CPP $CPPFLAGS'
10675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10678 if test -n "$ac_tool_prefix"; then
10679   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10680 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682 $as_echo_n "checking for $ac_word... " >&6; }
10683 if test "${ac_cv_prog_CC+set}" = set; then :
10684   $as_echo_n "(cached) " >&6
10685 else
10686   if test -n "$CC"; then
10687   ac_cv_prog_CC="$CC" # Let the user override the test.
10688 else
10689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690 for as_dir in $PATH
10691 do
10692   IFS=$as_save_IFS
10693   test -z "$as_dir" && as_dir=.
10694     for ac_exec_ext in '' $ac_executable_extensions; do
10695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10696     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698     break 2
10699   fi
10700 done
10701   done
10702 IFS=$as_save_IFS
10703
10704 fi
10705 fi
10706 CC=$ac_cv_prog_CC
10707 if test -n "$CC"; then
10708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10709 $as_echo "$CC" >&6; }
10710 else
10711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "no" >&6; }
10713 fi
10714
10715
10716 fi
10717 if test -z "$ac_cv_prog_CC"; then
10718   ac_ct_CC=$CC
10719   # Extract the first word of "gcc", so it can be a program name with args.
10720 set dummy gcc; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10724   $as_echo_n "(cached) " >&6
10725 else
10726   if test -n "$ac_ct_CC"; then
10727   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10728 else
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10731 do
10732   IFS=$as_save_IFS
10733   test -z "$as_dir" && as_dir=.
10734     for ac_exec_ext in '' $ac_executable_extensions; do
10735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10736     ac_cv_prog_ac_ct_CC="gcc"
10737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738     break 2
10739   fi
10740 done
10741   done
10742 IFS=$as_save_IFS
10743
10744 fi
10745 fi
10746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10747 if test -n "$ac_ct_CC"; then
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10749 $as_echo "$ac_ct_CC" >&6; }
10750 else
10751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10753 fi
10754
10755   if test "x$ac_ct_CC" = x; then
10756     CC=""
10757   else
10758     case $cross_compiling:$ac_tool_warned in
10759 yes:)
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10762 ac_tool_warned=yes ;;
10763 esac
10764     CC=$ac_ct_CC
10765   fi
10766 else
10767   CC="$ac_cv_prog_CC"
10768 fi
10769
10770 if test -z "$CC"; then
10771           if test -n "$ac_tool_prefix"; then
10772     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10773 set dummy ${ac_tool_prefix}cc; ac_word=$2
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10775 $as_echo_n "checking for $ac_word... " >&6; }
10776 if test "${ac_cv_prog_CC+set}" = set; then :
10777   $as_echo_n "(cached) " >&6
10778 else
10779   if test -n "$CC"; then
10780   ac_cv_prog_CC="$CC" # Let the user override the test.
10781 else
10782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10783 for as_dir in $PATH
10784 do
10785   IFS=$as_save_IFS
10786   test -z "$as_dir" && as_dir=.
10787     for ac_exec_ext in '' $ac_executable_extensions; do
10788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10789     ac_cv_prog_CC="${ac_tool_prefix}cc"
10790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10791     break 2
10792   fi
10793 done
10794   done
10795 IFS=$as_save_IFS
10796
10797 fi
10798 fi
10799 CC=$ac_cv_prog_CC
10800 if test -n "$CC"; then
10801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10802 $as_echo "$CC" >&6; }
10803 else
10804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805 $as_echo "no" >&6; }
10806 fi
10807
10808
10809   fi
10810 fi
10811 if test -z "$CC"; then
10812   # Extract the first word of "cc", so it can be a program name with args.
10813 set dummy cc; ac_word=$2
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815 $as_echo_n "checking for $ac_word... " >&6; }
10816 if test "${ac_cv_prog_CC+set}" = set; then :
10817   $as_echo_n "(cached) " >&6
10818 else
10819   if test -n "$CC"; then
10820   ac_cv_prog_CC="$CC" # Let the user override the test.
10821 else
10822   ac_prog_rejected=no
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10825 do
10826   IFS=$as_save_IFS
10827   test -z "$as_dir" && as_dir=.
10828     for ac_exec_ext in '' $ac_executable_extensions; do
10829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10830     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10831        ac_prog_rejected=yes
10832        continue
10833      fi
10834     ac_cv_prog_CC="cc"
10835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836     break 2
10837   fi
10838 done
10839   done
10840 IFS=$as_save_IFS
10841
10842 if test $ac_prog_rejected = yes; then
10843   # We found a bogon in the path, so make sure we never use it.
10844   set dummy $ac_cv_prog_CC
10845   shift
10846   if test $# != 0; then
10847     # We chose a different compiler from the bogus one.
10848     # However, it has the same basename, so the bogon will be chosen
10849     # first if we set CC to just the basename; use the full file name.
10850     shift
10851     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10852   fi
10853 fi
10854 fi
10855 fi
10856 CC=$ac_cv_prog_CC
10857 if test -n "$CC"; then
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10859 $as_echo "$CC" >&6; }
10860 else
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10863 fi
10864
10865
10866 fi
10867 if test -z "$CC"; then
10868   if test -n "$ac_tool_prefix"; then
10869   for ac_prog in cl.exe
10870   do
10871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if test "${ac_cv_prog_CC+set}" = set; then :
10876   $as_echo_n "(cached) " >&6
10877 else
10878   if test -n "$CC"; then
10879   ac_cv_prog_CC="$CC" # Let the user override the test.
10880 else
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10883 do
10884   IFS=$as_save_IFS
10885   test -z "$as_dir" && as_dir=.
10886     for ac_exec_ext in '' $ac_executable_extensions; do
10887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10888     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890     break 2
10891   fi
10892 done
10893   done
10894 IFS=$as_save_IFS
10895
10896 fi
10897 fi
10898 CC=$ac_cv_prog_CC
10899 if test -n "$CC"; then
10900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10901 $as_echo "$CC" >&6; }
10902 else
10903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10905 fi
10906
10907
10908     test -n "$CC" && break
10909   done
10910 fi
10911 if test -z "$CC"; then
10912   ac_ct_CC=$CC
10913   for ac_prog in cl.exe
10914 do
10915   # Extract the first word of "$ac_prog", so it can be a program name with args.
10916 set dummy $ac_prog; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10920   $as_echo_n "(cached) " >&6
10921 else
10922   if test -n "$ac_ct_CC"; then
10923   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10924 else
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10927 do
10928   IFS=$as_save_IFS
10929   test -z "$as_dir" && as_dir=.
10930     for ac_exec_ext in '' $ac_executable_extensions; do
10931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10932     ac_cv_prog_ac_ct_CC="$ac_prog"
10933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934     break 2
10935   fi
10936 done
10937   done
10938 IFS=$as_save_IFS
10939
10940 fi
10941 fi
10942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10943 if test -n "$ac_ct_CC"; then
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10945 $as_echo "$ac_ct_CC" >&6; }
10946 else
10947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10949 fi
10950
10951
10952   test -n "$ac_ct_CC" && break
10953 done
10954
10955   if test "x$ac_ct_CC" = x; then
10956     CC=""
10957   else
10958     case $cross_compiling:$ac_tool_warned in
10959 yes:)
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10962 ac_tool_warned=yes ;;
10963 esac
10964     CC=$ac_ct_CC
10965   fi
10966 fi
10967
10968 fi
10969
10970
10971 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10973 as_fn_error "no acceptable C compiler found in \$PATH
10974 See \`config.log' for more details." "$LINENO" 5; }
10975
10976 # Provide some information about the compiler.
10977 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10978 set X $ac_compile
10979 ac_compiler=$2
10980 for ac_option in --version -v -V -qversion; do
10981   { { ac_try="$ac_compiler $ac_option >&5"
10982 case "(($ac_try" in
10983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984   *) ac_try_echo=$ac_try;;
10985 esac
10986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10987 $as_echo "$ac_try_echo"; } >&5
10988   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10989   ac_status=$?
10990   if test -s conftest.err; then
10991     sed '10a\
10992 ... rest of stderr output deleted ...
10993          10q' conftest.err >conftest.er1
10994     cat conftest.er1 >&5
10995   fi
10996   rm -f conftest.er1 conftest.err
10997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998   test $ac_status = 0; }
10999 done
11000
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11003 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11004   $as_echo_n "(cached) " >&6
11005 else
11006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h.  */
11008
11009 int
11010 main ()
11011 {
11012 #ifndef __GNUC__
11013        choke me
11014 #endif
11015
11016   ;
11017   return 0;
11018 }
11019 _ACEOF
11020 if ac_fn_c_try_compile "$LINENO"; then :
11021   ac_compiler_gnu=yes
11022 else
11023   ac_compiler_gnu=no
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11027
11028 fi
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11031 if test $ac_compiler_gnu = yes; then
11032   GCC=yes
11033 else
11034   GCC=
11035 fi
11036 ac_test_CFLAGS=${CFLAGS+set}
11037 ac_save_CFLAGS=$CFLAGS
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11040 if test "${ac_cv_prog_cc_g+set}" = set; then :
11041   $as_echo_n "(cached) " >&6
11042 else
11043   ac_save_c_werror_flag=$ac_c_werror_flag
11044    ac_c_werror_flag=yes
11045    ac_cv_prog_cc_g=no
11046    CFLAGS="-g"
11047    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h.  */
11049
11050 int
11051 main ()
11052 {
11053
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_compile "$LINENO"; then :
11059   ac_cv_prog_cc_g=yes
11060 else
11061   CFLAGS=""
11062       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h.  */
11064
11065 int
11066 main ()
11067 {
11068
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 if ac_fn_c_try_compile "$LINENO"; then :
11074
11075 else
11076   ac_c_werror_flag=$ac_save_c_werror_flag
11077          CFLAGS="-g"
11078          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h.  */
11080
11081 int
11082 main ()
11083 {
11084
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090   ac_cv_prog_cc_g=yes
11091 fi
11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 fi
11096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097    ac_c_werror_flag=$ac_save_c_werror_flag
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11100 $as_echo "$ac_cv_prog_cc_g" >&6; }
11101 if test "$ac_test_CFLAGS" = set; then
11102   CFLAGS=$ac_save_CFLAGS
11103 elif test $ac_cv_prog_cc_g = yes; then
11104   if test "$GCC" = yes; then
11105     CFLAGS="-g -O2"
11106   else
11107     CFLAGS="-g"
11108   fi
11109 else
11110   if test "$GCC" = yes; then
11111     CFLAGS="-O2"
11112   else
11113     CFLAGS=
11114   fi
11115 fi
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11117 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11118 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11119   $as_echo_n "(cached) " >&6
11120 else
11121   ac_cv_prog_cc_c89=no
11122 ac_save_CC=$CC
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h.  */
11125 #include <stdarg.h>
11126 #include <stdio.h>
11127 #include <sys/types.h>
11128 #include <sys/stat.h>
11129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11130 struct buf { int x; };
11131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11132 static char *e (p, i)
11133      char **p;
11134      int i;
11135 {
11136   return p[i];
11137 }
11138 static char *f (char * (*g) (char **, int), char **p, ...)
11139 {
11140   char *s;
11141   va_list v;
11142   va_start (v,p);
11143   s = g (p, va_arg (v,int));
11144   va_end (v);
11145   return s;
11146 }
11147
11148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11149    function prototypes and stuff, but not '\xHH' hex character constants.
11150    These don't provoke an error unfortunately, instead are silently treated
11151    as 'x'.  The following induces an error, until -std is added to get
11152    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11153    array size at least.  It's necessary to write '\x00'==0 to get something
11154    that's true only with -std.  */
11155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11156
11157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11158    inside strings and character constants.  */
11159 #define FOO(x) 'x'
11160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11161
11162 int test (int i, double x);
11163 struct s1 {int (*f) (int a);};
11164 struct s2 {int (*f) (double a);};
11165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11166 int argc;
11167 char **argv;
11168 int
11169 main ()
11170 {
11171 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11172   ;
11173   return 0;
11174 }
11175 _ACEOF
11176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11177         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11178 do
11179   CC="$ac_save_CC $ac_arg"
11180   if ac_fn_c_try_compile "$LINENO"; then :
11181   ac_cv_prog_cc_c89=$ac_arg
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext
11184   test "x$ac_cv_prog_cc_c89" != "xno" && break
11185 done
11186 rm -f conftest.$ac_ext
11187 CC=$ac_save_CC
11188
11189 fi
11190 # AC_CACHE_VAL
11191 case "x$ac_cv_prog_cc_c89" in
11192   x)
11193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11194 $as_echo "none needed" >&6; } ;;
11195   xno)
11196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11197 $as_echo "unsupported" >&6; } ;;
11198   *)
11199     CC="$CC $ac_cv_prog_cc_c89"
11200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11202 esac
11203 if test "x$ac_cv_prog_cc_c89" != xno; then :
11204
11205 fi
11206
11207 ac_ext=c
11208 ac_cpp='$CPP $CPPFLAGS'
11209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11212
11213 depcc="$CC"   am_compiler_list=
11214
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11216 $as_echo_n "checking dependency style of $depcc... " >&6; }
11217 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11218   $as_echo_n "(cached) " >&6
11219 else
11220   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11221   # We make a subdir and do the tests there.  Otherwise we can end up
11222   # making bogus files that we don't know about and never remove.  For
11223   # instance it was reported that on HP-UX the gcc test will end up
11224   # making a dummy file named `D' -- because `-MD' means `put the output
11225   # in D'.
11226   mkdir conftest.dir
11227   # Copy depcomp to subdir because otherwise we won't find it if we're
11228   # using a relative directory.
11229   cp "$am_depcomp" conftest.dir
11230   cd conftest.dir
11231   # We will build objects and dependencies in a subdirectory because
11232   # it helps to detect inapplicable dependency modes.  For instance
11233   # both Tru64's cc and ICC support -MD to output dependencies as a
11234   # side effect of compilation, but ICC will put the dependencies in
11235   # the current directory while Tru64 will put them in the object
11236   # directory.
11237   mkdir sub
11238
11239   am_cv_CC_dependencies_compiler_type=none
11240   if test "$am_compiler_list" = ""; then
11241      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11242   fi
11243   am__universal=false
11244   case " $depcc " in #(
11245      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11246      esac
11247
11248   for depmode in $am_compiler_list; do
11249     # Setup a source with many dependencies, because some compilers
11250     # like to wrap large dependency lists on column 80 (with \), and
11251     # we should not choose a depcomp mode which is confused by this.
11252     #
11253     # We need to recreate these files for each test, as the compiler may
11254     # overwrite some of them when testing with obscure command lines.
11255     # This happens at least with the AIX C compiler.
11256     : > sub/conftest.c
11257     for i in 1 2 3 4 5 6; do
11258       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11259       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11260       # Solaris 8's {/usr,}/bin/sh.
11261       touch sub/conftst$i.h
11262     done
11263     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11264
11265     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11266     # mode.  It turns out that the SunPro C++ compiler does not properly
11267     # handle `-M -o', and we need to detect this.  Also, some Intel
11268     # versions had trouble with output in subdirs
11269     am__obj=sub/conftest.${OBJEXT-o}
11270     am__minus_obj="-o $am__obj"
11271     case $depmode in
11272     gcc)
11273       # This depmode causes a compiler race in universal mode.
11274       test "$am__universal" = false || continue
11275       ;;
11276     nosideeffect)
11277       # after this tag, mechanisms are not by side-effect, so they'll
11278       # only be used when explicitly requested
11279       if test "x$enable_dependency_tracking" = xyes; then
11280         continue
11281       else
11282         break
11283       fi
11284       ;;
11285     msvisualcpp | msvcmsys)
11286       # This compiler won't grok `-c -o', but also, the minuso test has
11287       # not run yet.  These depmodes are late enough in the game, and
11288       # so weak that their functioning should not be impacted.
11289       am__obj=conftest.${OBJEXT-o}
11290       am__minus_obj=
11291       ;;
11292     none) break ;;
11293     esac
11294     if depmode=$depmode \
11295        source=sub/conftest.c object=$am__obj \
11296        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11297        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11298          >/dev/null 2>conftest.err &&
11299        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11300        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11301        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11302        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11303       # icc doesn't choke on unknown options, it will just issue warnings
11304       # or remarks (even with -Werror).  So we grep stderr for any message
11305       # that says an option was ignored or not supported.
11306       # When given -MP, icc 7.0 and 7.1 complain thusly:
11307       #   icc: Command line warning: ignoring option '-M'; no argument required
11308       # The diagnosis changed in icc 8.0:
11309       #   icc: Command line remark: option '-MP' not supported
11310       if (grep 'ignoring option' conftest.err ||
11311           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11312         am_cv_CC_dependencies_compiler_type=$depmode
11313         break
11314       fi
11315     fi
11316   done
11317
11318   cd ..
11319   rm -rf conftest.dir
11320 else
11321   am_cv_CC_dependencies_compiler_type=none
11322 fi
11323
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11326 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11327 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11328
11329  if
11330   test "x$enable_dependency_tracking" != xno \
11331   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11332   am__fastdepCC_TRUE=
11333   am__fastdepCC_FALSE='#'
11334 else
11335   am__fastdepCC_TRUE='#'
11336   am__fastdepCC_FALSE=
11337 fi
11338
11339
11340
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
11342 $as_echo_n "checking for native Win32... " >&6; }
11343   case $build_os in
11344     mingw*) os_win32=yes ;;
11345     *) os_win32=no ;;
11346   esac
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
11348 $as_echo "$os_win32" >&6; }
11349  if test "$os_win32" = "yes"; then
11350   OS_WIN32_TRUE=
11351   OS_WIN32_FALSE='#'
11352 else
11353   OS_WIN32_TRUE='#'
11354   OS_WIN32_FALSE=
11355 fi
11356
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
11358 $as_echo_n "checking for some Win32 platform... " >&6; }
11359   case $build_os in
11360     mingw*|cygwin*) platform_win32=yes ;;
11361     *) platform_win32=no ;;
11362   esac
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
11364 $as_echo "$platform_win32" >&6; }
11365  if test "$platform_win32" = "yes"; then
11366   PLATFORM_WIN32_TRUE=
11367   PLATFORM_WIN32_FALSE='#'
11368 else
11369   PLATFORM_WIN32_TRUE='#'
11370   PLATFORM_WIN32_FALSE=
11371 fi
11372
11373
11374
11375 # Checks for header files.
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11377 $as_echo_n "checking for ANSI C header files... " >&6; }
11378 if test "${ac_cv_header_stdc+set}" = set; then :
11379   $as_echo_n "(cached) " >&6
11380 else
11381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h.  */
11383 #include <stdlib.h>
11384 #include <stdarg.h>
11385 #include <string.h>
11386 #include <float.h>
11387
11388 int
11389 main ()
11390 {
11391
11392   ;
11393   return 0;
11394 }
11395 _ACEOF
11396 if ac_fn_c_try_compile "$LINENO"; then :
11397   ac_cv_header_stdc=yes
11398 else
11399   ac_cv_header_stdc=no
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402
11403 if test $ac_cv_header_stdc = yes; then
11404   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h.  */
11407 #include <string.h>
11408
11409 _ACEOF
11410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11411   $EGREP "memchr" >/dev/null 2>&1; then :
11412
11413 else
11414   ac_cv_header_stdc=no
11415 fi
11416 rm -f conftest*
11417
11418 fi
11419
11420 if test $ac_cv_header_stdc = yes; then
11421   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h.  */
11424 #include <stdlib.h>
11425
11426 _ACEOF
11427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11428   $EGREP "free" >/dev/null 2>&1; then :
11429
11430 else
11431   ac_cv_header_stdc=no
11432 fi
11433 rm -f conftest*
11434
11435 fi
11436
11437 if test $ac_cv_header_stdc = yes; then
11438   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11439   if test "$cross_compiling" = yes; then :
11440   :
11441 else
11442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h.  */
11444 #include <ctype.h>
11445 #include <stdlib.h>
11446 #if ((' ' & 0x0FF) == 0x020)
11447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11449 #else
11450 # define ISLOWER(c) \
11451                    (('a' <= (c) && (c) <= 'i') \
11452                      || ('j' <= (c) && (c) <= 'r') \
11453                      || ('s' <= (c) && (c) <= 'z'))
11454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11455 #endif
11456
11457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11458 int
11459 main ()
11460 {
11461   int i;
11462   for (i = 0; i < 256; i++)
11463     if (XOR (islower (i), ISLOWER (i))
11464         || toupper (i) != TOUPPER (i))
11465       return 2;
11466   return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_run "$LINENO"; then :
11470
11471 else
11472   ac_cv_header_stdc=no
11473 fi
11474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11475   conftest.$ac_objext conftest.beam conftest.$ac_ext
11476 fi
11477
11478 fi
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11481 $as_echo "$ac_cv_header_stdc" >&6; }
11482 if test $ac_cv_header_stdc = yes; then
11483
11484 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11485
11486 fi
11487
11488 for ac_header in stdlib.h string.h strings.h inttypes.h wchar.h asm/page.h sys/times.h
11489 do :
11490   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11491 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11492 eval as_val=\$$as_ac_Header
11493    if test "x$as_val" = x""yes; then :
11494   cat >>confdefs.h <<_ACEOF
11495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11496 _ACEOF
11497
11498 fi
11499
11500 done
11501
11502
11503 # Checks for typedefs and structures.
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11505 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11506 if test "${ac_cv_c_const+set}" = set; then :
11507   $as_echo_n "(cached) " >&6
11508 else
11509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h.  */
11511
11512 int
11513 main ()
11514 {
11515 /* FIXME: Include the comments suggested by Paul. */
11516 #ifndef __cplusplus
11517   /* Ultrix mips cc rejects this.  */
11518   typedef int charset[2];
11519   const charset cs;
11520   /* SunOS 4.1.1 cc rejects this.  */
11521   char const *const *pcpcc;
11522   char **ppc;
11523   /* NEC SVR4.0.2 mips cc rejects this.  */
11524   struct point {int x, y;};
11525   static struct point const zero = {0,0};
11526   /* AIX XL C 1.02.0.0 rejects this.
11527      It does not let you subtract one const X* pointer from another in
11528      an arm of an if-expression whose if-part is not a constant
11529      expression */
11530   const char *g = "string";
11531   pcpcc = &g + (g ? g-g : 0);
11532   /* HPUX 7.0 cc rejects these. */
11533   ++pcpcc;
11534   ppc = (char**) pcpcc;
11535   pcpcc = (char const *const *) ppc;
11536   { /* SCO 3.2v4 cc rejects this.  */
11537     char *t;
11538     char const *s = 0 ? (char *) 0 : (char const *) 0;
11539
11540     *t++ = 0;
11541     if (s) return 0;
11542   }
11543   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11544     int x[] = {25, 17};
11545     const int *foo = &x[0];
11546     ++foo;
11547   }
11548   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11549     typedef const int *iptr;
11550     iptr p = 0;
11551     ++p;
11552   }
11553   { /* AIX XL C 1.02.0.0 rejects this saying
11554        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11555     struct s { int j; const int *ap[3]; };
11556     struct s *b; b->j = 5;
11557   }
11558   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11559     const int foo = 10;
11560     if (!foo) return 0;
11561   }
11562   return !cs[0] && !zero.x;
11563 #endif
11564
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_compile "$LINENO"; then :
11570   ac_cv_c_const=yes
11571 else
11572   ac_cv_c_const=no
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575 fi
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11577 $as_echo "$ac_cv_c_const" >&6; }
11578 if test $ac_cv_c_const = no; then
11579
11580 $as_echo "#define const /**/" >>confdefs.h
11581
11582 fi
11583
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
11585 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
11586 if test "${ac_cv_c_stringize+set}" = set; then :
11587   $as_echo_n "(cached) " >&6
11588 else
11589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h.  */
11591 #define x(y) #y
11592
11593 char *s = x(teststring);
11594 _ACEOF
11595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11596   $EGREP "#teststring" >/dev/null 2>&1; then :
11597   ac_cv_c_stringize=no
11598 else
11599   ac_cv_c_stringize=yes
11600 fi
11601 rm -f conftest*
11602
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
11605 $as_echo "$ac_cv_c_stringize" >&6; }
11606 if test $ac_cv_c_stringize = yes; then
11607
11608 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
11609
11610 fi
11611
11612 # The cast to long int works around a bug in the HP C Compiler
11613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11615 # This bug is HP SR number 8606223364.
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11617 $as_echo_n "checking size of int... " >&6; }
11618 if test "${ac_cv_sizeof_int+set}" = set; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
11622
11623 else
11624   if test "$ac_cv_type_int" = yes; then
11625      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11627 { as_fn_set_status 77
11628 as_fn_error "cannot compute sizeof (int)
11629 See \`config.log' for more details." "$LINENO" 5; }; }
11630    else
11631      ac_cv_sizeof_int=0
11632    fi
11633 fi
11634
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11637 $as_echo "$ac_cv_sizeof_int" >&6; }
11638
11639
11640
11641 cat >>confdefs.h <<_ACEOF
11642 #define SIZEOF_INT $ac_cv_sizeof_int
11643 _ACEOF
11644
11645
11646 SIZEOF_INT=$ac_cv_sizeof_int
11647
11648 # The cast to long int works around a bug in the HP C Compiler
11649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11651 # This bug is HP SR number 8606223364.
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11653 $as_echo_n "checking size of short... " >&6; }
11654 if test "${ac_cv_sizeof_short+set}" = set; then :
11655   $as_echo_n "(cached) " >&6
11656 else
11657   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
11658
11659 else
11660   if test "$ac_cv_type_short" = yes; then
11661      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11663 { as_fn_set_status 77
11664 as_fn_error "cannot compute sizeof (short)
11665 See \`config.log' for more details." "$LINENO" 5; }; }
11666    else
11667      ac_cv_sizeof_short=0
11668    fi
11669 fi
11670
11671 fi
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11673 $as_echo "$ac_cv_sizeof_short" >&6; }
11674
11675
11676
11677 cat >>confdefs.h <<_ACEOF
11678 #define SIZEOF_SHORT $ac_cv_sizeof_short
11679 _ACEOF
11680
11681
11682 # The cast to long int works around a bug in the HP C Compiler
11683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11685 # This bug is HP SR number 8606223364.
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11687 $as_echo_n "checking size of void *... " >&6; }
11688 if test "${ac_cv_sizeof_void_p+set}" = set; then :
11689   $as_echo_n "(cached) " >&6
11690 else
11691   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
11692
11693 else
11694   if test "$ac_cv_type_void_p" = yes; then
11695      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11697 { as_fn_set_status 77
11698 as_fn_error "cannot compute sizeof (void *)
11699 See \`config.log' for more details." "$LINENO" 5; }; }
11700    else
11701      ac_cv_sizeof_void_p=0
11702    fi
11703 fi
11704
11705 fi
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11707 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11708
11709
11710
11711 cat >>confdefs.h <<_ACEOF
11712 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11713 _ACEOF
11714
11715
11716 # The cast to long int works around a bug in the HP C Compiler
11717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11719 # This bug is HP SR number 8606223364.
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
11721 $as_echo_n "checking size of wchar_t... " >&6; }
11722 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
11726
11727 else
11728   if test "$ac_cv_type_wchar_t" = yes; then
11729      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11731 { as_fn_set_status 77
11732 as_fn_error "cannot compute sizeof (wchar_t)
11733 See \`config.log' for more details." "$LINENO" 5; }; }
11734    else
11735      ac_cv_sizeof_wchar_t=0
11736    fi
11737 fi
11738
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
11741 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
11742
11743
11744
11745 cat >>confdefs.h <<_ACEOF
11746 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
11747 _ACEOF
11748
11749
11750
11751 # Checks for compiler characteristics.
11752 if test "x$GCC" = "xyes"; then
11753   CFLAGS="$CFLAGS -Wall -ansi "
11754 fi
11755
11756 # Checks for library functions.
11757 for ac_func in memmove memset strdup
11758 do :
11759   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11761 eval as_val=\$$as_ac_var
11762    if test "x$as_val" = x""yes; then :
11763   cat >>confdefs.h <<_ACEOF
11764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11765 _ACEOF
11766
11767 fi
11768 done
11769
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11771 $as_echo_n "checking return type of signal handlers... " >&6; }
11772 if test "${ac_cv_type_signal+set}" = set; then :
11773   $as_echo_n "(cached) " >&6
11774 else
11775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h.  */
11777 #include <sys/types.h>
11778 #include <signal.h>
11779
11780 int
11781 main ()
11782 {
11783 return *(signal (0, 0)) (0) == 1;
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 if ac_fn_c_try_compile "$LINENO"; then :
11789   ac_cv_type_signal=int
11790 else
11791   ac_cv_type_signal=void
11792 fi
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 fi
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11796 $as_echo "$ac_cv_type_signal" >&6; }
11797
11798 cat >>confdefs.h <<_ACEOF
11799 #define RETSIGTYPE $ac_cv_type_signal
11800 _ACEOF
11801
11802
11803
11804 # Checks for configure options
11805
11806 # --enable-debug
11807
11808 # Check whether --enable-debug was given.
11809 if test "${enable_debug+set}" = set; then :
11810   enableval=$enable_debug;
11811 else
11812   enable_debug=yes
11813 fi
11814
11815 if test x$enable_debug = xyes; then
11816
11817 $as_echo "#define DEBUG 1" >>confdefs.h
11818
11819 fi
11820
11821 # --disable-deprecated
11822 # Check whether --enable-deprecated was given.
11823 if test "${enable_deprecated+set}" = set; then :
11824   enableval=$enable_deprecated;
11825 fi
11826
11827 if test x$enable_deprecated = xno; then
11828         FRIBIDI_NO_DEPRECATED=1
11829 else
11830         FRIBIDI_NO_DEPRECATED=0
11831 fi
11832
11833
11834 # --enable-malloc
11835 # Check whether --enable-malloc was given.
11836 if test "${enable_malloc+set}" = set; then :
11837   enableval=$enable_malloc;
11838 fi
11839
11840 if test x$enable_malloc = xyes; then
11841
11842 $as_echo "#define USE_SIMPLE_MALLOC 1" >>confdefs.h
11843
11844 fi
11845
11846 # --disable-charsets
11847 # Check whether --enable-charsets was given.
11848 if test "${enable_charsets+set}" = set; then :
11849   enableval=$enable_charsets;
11850 fi
11851
11852 if test x$enable_charsets = xno; then
11853         FRIBIDI_CHARSETS=0
11854 else
11855         FRIBIDI_CHARSETS=1
11856 fi
11857
11858  if test x$FRIBIDI_CHARSETS = x1; then
11859   FRIBIDI_CHARSETS_TRUE=
11860   FRIBIDI_CHARSETS_FALSE='#'
11861 else
11862   FRIBIDI_CHARSETS_TRUE='#'
11863   FRIBIDI_CHARSETS_FALSE=
11864 fi
11865
11866
11867 # --with[out]-glib
11868
11869 # Check whether --with-glib was given.
11870 if test "${with_glib+set}" = set; then :
11871   withval=$with_glib;
11872 fi
11873
11874 GLIB_PACKAGE=glib-2.0
11875 GLIB_MINVERSION=2.4
11876 GLIB_LIBS=
11877 GLIB_CFLAGS=
11878 if test x$with_glib = xyes; then
11879
11880
11881 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11882         if test -n "$ac_tool_prefix"; then
11883   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11884 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   case $PKG_CONFIG in
11891   [\\/]* | ?:[\\/]*)
11892   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11893   ;;
11894   *)
11895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898   IFS=$as_save_IFS
11899   test -z "$as_dir" && as_dir=.
11900     for ac_exec_ext in '' $ac_executable_extensions; do
11901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11902     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904     break 2
11905   fi
11906 done
11907   done
11908 IFS=$as_save_IFS
11909
11910   ;;
11911 esac
11912 fi
11913 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11914 if test -n "$PKG_CONFIG"; then
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11916 $as_echo "$PKG_CONFIG" >&6; }
11917 else
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11920 fi
11921
11922
11923 fi
11924 if test -z "$ac_cv_path_PKG_CONFIG"; then
11925   ac_pt_PKG_CONFIG=$PKG_CONFIG
11926   # Extract the first word of "pkg-config", so it can be a program name with args.
11927 set dummy pkg-config; ac_word=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11931   $as_echo_n "(cached) " >&6
11932 else
11933   case $ac_pt_PKG_CONFIG in
11934   [\\/]* | ?:[\\/]*)
11935   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11936   ;;
11937   *)
11938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939 for as_dir in $PATH
11940 do
11941   IFS=$as_save_IFS
11942   test -z "$as_dir" && as_dir=.
11943     for ac_exec_ext in '' $ac_executable_extensions; do
11944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11945     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11947     break 2
11948   fi
11949 done
11950   done
11951 IFS=$as_save_IFS
11952
11953   ;;
11954 esac
11955 fi
11956 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11957 if test -n "$ac_pt_PKG_CONFIG"; then
11958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11959 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11960 else
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963 fi
11964
11965   if test "x$ac_pt_PKG_CONFIG" = x; then
11966     PKG_CONFIG=""
11967   else
11968     case $cross_compiling:$ac_tool_warned in
11969 yes:)
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11972 ac_tool_warned=yes ;;
11973 esac
11974     PKG_CONFIG=$ac_pt_PKG_CONFIG
11975   fi
11976 else
11977   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11978 fi
11979
11980 fi
11981 if test -n "$PKG_CONFIG"; then
11982         _pkg_min_version=0.9.0
11983         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11984 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11985         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11986                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987 $as_echo "yes" >&6; }
11988         else
11989                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991                 PKG_CONFIG=""
11992         fi
11993
11994 fi
11995
11996 pkg_failed=no
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
11998 $as_echo_n "checking for GLIB... " >&6; }
11999
12000 if test -n "$PKG_CONFIG"; then
12001     if test -n "$GLIB_CFLAGS"; then
12002         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12003     else
12004         if test -n "$PKG_CONFIG" && \
12005     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
12006   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
12007   ac_status=$?
12008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12009   test $ac_status = 0; }; then
12010   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
12011 else
12012   pkg_failed=yes
12013 fi
12014     fi
12015 else
12016         pkg_failed=untried
12017 fi
12018 if test -n "$PKG_CONFIG"; then
12019     if test -n "$GLIB_LIBS"; then
12020         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12021     else
12022         if test -n "$PKG_CONFIG" && \
12023     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
12024   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
12025   ac_status=$?
12026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12027   test $ac_status = 0; }; then
12028   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
12029 else
12030   pkg_failed=yes
12031 fi
12032     fi
12033 else
12034         pkg_failed=untried
12035 fi
12036
12037
12038
12039 if test $pkg_failed = yes; then
12040
12041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12042         _pkg_short_errors_supported=yes
12043 else
12044         _pkg_short_errors_supported=no
12045 fi
12046         if test $_pkg_short_errors_supported = yes; then
12047                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION"`
12048         else
12049                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION"`
12050         fi
12051         # Put the nasty error message in config.log where it belongs
12052         echo "$GLIB_PKG_ERRORS" >&5
12053
12054         as_fn_error "Package requirements ($GLIB_PACKAGE >= $GLIB_MINVERSION) were not met:
12055
12056 $GLIB_PKG_ERRORS
12057
12058 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12059 installed software in a non-standard prefix.
12060
12061 Alternatively, you may set the environment variables GLIB_CFLAGS
12062 and GLIB_LIBS to avoid the need to call pkg-config.
12063 See the pkg-config man page for more details.
12064 " "$LINENO" 5
12065 elif test $pkg_failed = untried; then
12066         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12068 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12069 is in your PATH or set the PKG_CONFIG environment variable to the full
12070 path to pkg-config.
12071
12072 Alternatively, you may set the environment variables GLIB_CFLAGS
12073 and GLIB_LIBS to avoid the need to call pkg-config.
12074 See the pkg-config man page for more details.
12075
12076 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12077 See \`config.log' for more details." "$LINENO" 5; }
12078 else
12079         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12080         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12082 $as_echo "yes" >&6; }
12083         :
12084 fi
12085         FRIBIDI_USE_GLIB=1
12086 else
12087 if test x$with_glib = xno; then
12088         FRIBIDI_USE_GLIB=0
12089 else
12090
12091 pkg_failed=no
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12093 $as_echo_n "checking for GLIB... " >&6; }
12094
12095 if test -n "$PKG_CONFIG"; then
12096     if test -n "$GLIB_CFLAGS"; then
12097         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12098     else
12099         if test -n "$PKG_CONFIG" && \
12100     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
12101   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
12102   ac_status=$?
12103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12104   test $ac_status = 0; }; then
12105   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
12106 else
12107   pkg_failed=yes
12108 fi
12109     fi
12110 else
12111         pkg_failed=untried
12112 fi
12113 if test -n "$PKG_CONFIG"; then
12114     if test -n "$GLIB_LIBS"; then
12115         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12116     else
12117         if test -n "$PKG_CONFIG" && \
12118     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_PACKAGE >= \$GLIB_MINVERSION\""; } >&5
12119   ($PKG_CONFIG --exists --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION") 2>&5
12120   ac_status=$?
12121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12122   test $ac_status = 0; }; then
12123   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_PACKAGE >= $GLIB_MINVERSION" 2>/dev/null`
12124 else
12125   pkg_failed=yes
12126 fi
12127     fi
12128 else
12129         pkg_failed=untried
12130 fi
12131
12132
12133
12134 if test $pkg_failed = yes; then
12135
12136 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12137         _pkg_short_errors_supported=yes
12138 else
12139         _pkg_short_errors_supported=no
12140 fi
12141         if test $_pkg_short_errors_supported = yes; then
12142                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION"`
12143         else
12144                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_PACKAGE >= $GLIB_MINVERSION"`
12145         fi
12146         # Put the nasty error message in config.log where it belongs
12147         echo "$GLIB_PKG_ERRORS" >&5
12148
12149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151                 FRIBIDI_USE_GLIB=0
12152 elif test $pkg_failed = untried; then
12153         FRIBIDI_USE_GLIB=0
12154 else
12155         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12156         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12158 $as_echo "yes" >&6; }
12159         FRIBIDI_USE_GLIB=1
12160 fi
12161 fi
12162 fi
12163 if test x$FRIBIDI_USE_GLIB = x0; then
12164         GLIB_PACKAGE=
12165 fi
12166
12167  if test x$FRIBIDI_USE_GLIB = x1; then
12168   FRIBIDI_USE_GLIB_TRUE=
12169   FRIBIDI_USE_GLIB_FALSE='#'
12170 else
12171   FRIBIDI_USE_GLIB_TRUE='#'
12172   FRIBIDI_USE_GLIB_FALSE=
12173 fi
12174
12175
12176
12177 MISC_CFLAGS="$GLIB_CFLAGS"
12178 MISC_LIBS="$GLIB_LIBS"
12179 MISC_PACKAGES="$GLIB_PACKAGE"
12180
12181
12182
12183
12184 # Generate output
12185 ac_config_files="$ac_config_files fribidi.pc lib/fribidi-config.h Makefile charset/Makefile gen.tab/Makefile lib/Makefile bin/Makefile doc/Makefile test/Makefile"
12186
12187 cat >confcache <<\_ACEOF
12188 # This file is a shell script that caches the results of configure
12189 # tests run on this system so they can be shared between configure
12190 # scripts and configure runs, see configure's option --config-cache.
12191 # It is not useful on other systems.  If it contains results you don't
12192 # want to keep, you may remove or edit it.
12193 #
12194 # config.status only pays attention to the cache file if you give it
12195 # the --recheck option to rerun configure.
12196 #
12197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12199 # following values.
12200
12201 _ACEOF
12202
12203 # The following way of writing the cache mishandles newlines in values,
12204 # but we know of no workaround that is simple, portable, and efficient.
12205 # So, we kill variables containing newlines.
12206 # Ultrix sh set writes to stderr and can't be redirected directly,
12207 # and sets the high bit in the cache file unless we assign to the vars.
12208 (
12209   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12210     eval ac_val=\$$ac_var
12211     case $ac_val in #(
12212     *${as_nl}*)
12213       case $ac_var in #(
12214       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12216       esac
12217       case $ac_var in #(
12218       _ | IFS | as_nl) ;; #(
12219       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12220       *) { eval $ac_var=; unset $ac_var;} ;;
12221       esac ;;
12222     esac
12223   done
12224
12225   (set) 2>&1 |
12226     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12227     *${as_nl}ac_space=\ *)
12228       # `set' does not quote correctly, so add quotes: double-quote
12229       # substitution turns \\\\ into \\, and sed turns \\ into \.
12230       sed -n \
12231         "s/'/'\\\\''/g;
12232           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12233       ;; #(
12234     *)
12235       # `set' quotes correctly as required by POSIX, so do not add quotes.
12236       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12237       ;;
12238     esac |
12239     sort
12240 ) |
12241   sed '
12242      /^ac_cv_env_/b end
12243      t clear
12244      :clear
12245      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12246      t end
12247      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12248      :end' >>confcache
12249 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12250   if test -w "$cache_file"; then
12251     test "x$cache_file" != "x/dev/null" &&
12252       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12253 $as_echo "$as_me: updating cache $cache_file" >&6;}
12254     cat confcache >$cache_file
12255   else
12256     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12257 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12258   fi
12259 fi
12260 rm -f confcache
12261
12262 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12263 # Let make expand exec_prefix.
12264 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12265
12266 DEFS=-DHAVE_CONFIG_H
12267
12268 ac_libobjs=
12269 ac_ltlibobjs=
12270 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12271   # 1. Remove the extension, and $U if already installed.
12272   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12273   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12274   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12275   #    will be set to the directory where LIBOBJS objects are built.
12276   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12277   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12278 done
12279 LIBOBJS=$ac_libobjs
12280
12281 LTLIBOBJS=$ac_ltlibobjs
12282
12283
12284  if test -n "$EXEEXT"; then
12285   am__EXEEXT_TRUE=
12286   am__EXEEXT_FALSE='#'
12287 else
12288   am__EXEEXT_TRUE='#'
12289   am__EXEEXT_FALSE=
12290 fi
12291
12292 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12293   as_fn_error "conditional \"AMDEP\" was never defined.
12294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12295 fi
12296 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12297   as_fn_error "conditional \"am__fastdepCC\" was never defined.
12298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12299 fi
12300 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12301   as_fn_error "conditional \"am__fastdepCC\" was never defined.
12302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12303 fi
12304 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
12305   as_fn_error "conditional \"OS_WIN32\" was never defined.
12306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12307 fi
12308 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
12309   as_fn_error "conditional \"PLATFORM_WIN32\" was never defined.
12310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12311 fi
12312 if test -z "${FRIBIDI_CHARSETS_TRUE}" && test -z "${FRIBIDI_CHARSETS_FALSE}"; then
12313   as_fn_error "conditional \"FRIBIDI_CHARSETS\" was never defined.
12314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12315 fi
12316 if test -z "${FRIBIDI_USE_GLIB_TRUE}" && test -z "${FRIBIDI_USE_GLIB_FALSE}"; then
12317   as_fn_error "conditional \"FRIBIDI_USE_GLIB\" was never defined.
12318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12319 fi
12320
12321 : ${CONFIG_STATUS=./config.status}
12322 ac_write_fail=0
12323 ac_clean_files_save=$ac_clean_files
12324 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12326 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12327 as_write_fail=0
12328 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12329 #! $SHELL
12330 # Generated by $as_me.
12331 # Run this file to recreate the current configuration.
12332 # Compiler output produced by configure, useful for debugging
12333 # configure, is in config.log if it exists.
12334
12335 debug=false
12336 ac_cs_recheck=false
12337 ac_cs_silent=false
12338
12339 SHELL=\${CONFIG_SHELL-$SHELL}
12340 export SHELL
12341 _ASEOF
12342 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12343 ## -------------------- ##
12344 ## M4sh Initialization. ##
12345 ## -------------------- ##
12346
12347 # Be more Bourne compatible
12348 DUALCASE=1; export DUALCASE # for MKS sh
12349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12350   emulate sh
12351   NULLCMD=:
12352   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12353   # is contrary to our usage.  Disable this feature.
12354   alias -g '${1+"$@"}'='"$@"'
12355   setopt NO_GLOB_SUBST
12356 else
12357   case `(set -o) 2>/dev/null` in #(
12358   *posix*) :
12359     set -o posix ;; #(
12360   *) :
12361      ;;
12362 esac
12363 fi
12364
12365
12366 as_nl='
12367 '
12368 export as_nl
12369 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12370 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12373 # Prefer a ksh shell builtin over an external printf program on Solaris,
12374 # but without wasting forks for bash or zsh.
12375 if test -z "$BASH_VERSION$ZSH_VERSION" \
12376     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12377   as_echo='print -r --'
12378   as_echo_n='print -rn --'
12379 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12380   as_echo='printf %s\n'
12381   as_echo_n='printf %s'
12382 else
12383   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12384     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12385     as_echo_n='/usr/ucb/echo -n'
12386   else
12387     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12388     as_echo_n_body='eval
12389       arg=$1;
12390       case $arg in #(
12391       *"$as_nl"*)
12392         expr "X$arg" : "X\\(.*\\)$as_nl";
12393         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12394       esac;
12395       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12396     '
12397     export as_echo_n_body
12398     as_echo_n='sh -c $as_echo_n_body as_echo'
12399   fi
12400   export as_echo_body
12401   as_echo='sh -c $as_echo_body as_echo'
12402 fi
12403
12404 # The user is always right.
12405 if test "${PATH_SEPARATOR+set}" != set; then
12406   PATH_SEPARATOR=:
12407   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12408     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12409       PATH_SEPARATOR=';'
12410   }
12411 fi
12412
12413
12414 # IFS
12415 # We need space, tab and new line, in precisely that order.  Quoting is
12416 # there to prevent editors from complaining about space-tab.
12417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12418 # splitting by setting IFS to empty value.)
12419 IFS=" ""        $as_nl"
12420
12421 # Find who we are.  Look in the path if we contain no directory separator.
12422 case $0 in #((
12423   *[\\/]* ) as_myself=$0 ;;
12424   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425 for as_dir in $PATH
12426 do
12427   IFS=$as_save_IFS
12428   test -z "$as_dir" && as_dir=.
12429     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12430   done
12431 IFS=$as_save_IFS
12432
12433      ;;
12434 esac
12435 # We did not find ourselves, most probably we were run as `sh COMMAND'
12436 # in which case we are not to be found in the path.
12437 if test "x$as_myself" = x; then
12438   as_myself=$0
12439 fi
12440 if test ! -f "$as_myself"; then
12441   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12442   exit 1
12443 fi
12444
12445 # Unset variables that we do not need and which cause bugs (e.g. in
12446 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12447 # suppresses any "Segmentation fault" message there.  '((' could
12448 # trigger a bug in pdksh 5.2.14.
12449 for as_var in BASH_ENV ENV MAIL MAILPATH
12450 do eval test x\${$as_var+set} = xset \
12451   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12452 done
12453 PS1='$ '
12454 PS2='> '
12455 PS4='+ '
12456
12457 # NLS nuisances.
12458 LC_ALL=C
12459 export LC_ALL
12460 LANGUAGE=C
12461 export LANGUAGE
12462
12463 # CDPATH.
12464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12465
12466
12467 # as_fn_error ERROR [LINENO LOG_FD]
12468 # ---------------------------------
12469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12471 # script with status $?, using 1 if that was 0.
12472 as_fn_error ()
12473 {
12474   as_status=$?; test $as_status -eq 0 && as_status=1
12475   if test "$3"; then
12476     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12477     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12478   fi
12479   $as_echo "$as_me: error: $1" >&2
12480   as_fn_exit $as_status
12481 } # as_fn_error
12482
12483
12484 # as_fn_set_status STATUS
12485 # -----------------------
12486 # Set $? to STATUS, without forking.
12487 as_fn_set_status ()
12488 {
12489   return $1
12490 } # as_fn_set_status
12491
12492 # as_fn_exit STATUS
12493 # -----------------
12494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12495 as_fn_exit ()
12496 {
12497   set +e
12498   as_fn_set_status $1
12499   exit $1
12500 } # as_fn_exit
12501
12502 # as_fn_unset VAR
12503 # ---------------
12504 # Portably unset VAR.
12505 as_fn_unset ()
12506 {
12507   { eval $1=; unset $1;}
12508 }
12509 as_unset=as_fn_unset
12510 # as_fn_append VAR VALUE
12511 # ----------------------
12512 # Append the text in VALUE to the end of the definition contained in VAR. Take
12513 # advantage of any shell optimizations that allow amortized linear growth over
12514 # repeated appends, instead of the typical quadratic growth present in naive
12515 # implementations.
12516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12517   eval 'as_fn_append ()
12518   {
12519     eval $1+=\$2
12520   }'
12521 else
12522   as_fn_append ()
12523   {
12524     eval $1=\$$1\$2
12525   }
12526 fi # as_fn_append
12527
12528 # as_fn_arith ARG...
12529 # ------------------
12530 # Perform arithmetic evaluation on the ARGs, and store the result in the
12531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12532 # must be portable across $(()) and expr.
12533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12534   eval 'as_fn_arith ()
12535   {
12536     as_val=$(( $* ))
12537   }'
12538 else
12539   as_fn_arith ()
12540   {
12541     as_val=`expr "$@" || test $? -eq 1`
12542   }
12543 fi # as_fn_arith
12544
12545
12546 if expr a : '\(a\)' >/dev/null 2>&1 &&
12547    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12548   as_expr=expr
12549 else
12550   as_expr=false
12551 fi
12552
12553 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12554   as_basename=basename
12555 else
12556   as_basename=false
12557 fi
12558
12559 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12560   as_dirname=dirname
12561 else
12562   as_dirname=false
12563 fi
12564
12565 as_me=`$as_basename -- "$0" ||
12566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12567          X"$0" : 'X\(//\)$' \| \
12568          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12569 $as_echo X/"$0" |
12570     sed '/^.*\/\([^/][^/]*\)\/*$/{
12571             s//\1/
12572             q
12573           }
12574           /^X\/\(\/\/\)$/{
12575             s//\1/
12576             q
12577           }
12578           /^X\/\(\/\).*/{
12579             s//\1/
12580             q
12581           }
12582           s/.*/./; q'`
12583
12584 # Avoid depending upon Character Ranges.
12585 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12586 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12587 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12588 as_cr_digits='0123456789'
12589 as_cr_alnum=$as_cr_Letters$as_cr_digits
12590
12591 ECHO_C= ECHO_N= ECHO_T=
12592 case `echo -n x` in #(((((
12593 -n*)
12594   case `echo 'xy\c'` in
12595   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12596   xy)  ECHO_C='\c';;
12597   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12598        ECHO_T=' ';;
12599   esac;;
12600 *)
12601   ECHO_N='-n';;
12602 esac
12603
12604 rm -f conf$$ conf$$.exe conf$$.file
12605 if test -d conf$$.dir; then
12606   rm -f conf$$.dir/conf$$.file
12607 else
12608   rm -f conf$$.dir
12609   mkdir conf$$.dir 2>/dev/null
12610 fi
12611 if (echo >conf$$.file) 2>/dev/null; then
12612   if ln -s conf$$.file conf$$ 2>/dev/null; then
12613     as_ln_s='ln -s'
12614     # ... but there are two gotchas:
12615     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12616     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12617     # In both cases, we have to default to `cp -p'.
12618     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12619       as_ln_s='cp -p'
12620   elif ln conf$$.file conf$$ 2>/dev/null; then
12621     as_ln_s=ln
12622   else
12623     as_ln_s='cp -p'
12624   fi
12625 else
12626   as_ln_s='cp -p'
12627 fi
12628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12629 rmdir conf$$.dir 2>/dev/null
12630
12631
12632 # as_fn_mkdir_p
12633 # -------------
12634 # Create "$as_dir" as a directory, including parents if necessary.
12635 as_fn_mkdir_p ()
12636 {
12637
12638   case $as_dir in #(
12639   -*) as_dir=./$as_dir;;
12640   esac
12641   test -d "$as_dir" || eval $as_mkdir_p || {
12642     as_dirs=
12643     while :; do
12644       case $as_dir in #(
12645       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12646       *) as_qdir=$as_dir;;
12647       esac
12648       as_dirs="'$as_qdir' $as_dirs"
12649       as_dir=`$as_dirname -- "$as_dir" ||
12650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12651          X"$as_dir" : 'X\(//\)[^/]' \| \
12652          X"$as_dir" : 'X\(//\)$' \| \
12653          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12654 $as_echo X"$as_dir" |
12655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12656             s//\1/
12657             q
12658           }
12659           /^X\(\/\/\)[^/].*/{
12660             s//\1/
12661             q
12662           }
12663           /^X\(\/\/\)$/{
12664             s//\1/
12665             q
12666           }
12667           /^X\(\/\).*/{
12668             s//\1/
12669             q
12670           }
12671           s/.*/./; q'`
12672       test -d "$as_dir" && break
12673     done
12674     test -z "$as_dirs" || eval "mkdir $as_dirs"
12675   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12676
12677
12678 } # as_fn_mkdir_p
12679 if mkdir -p . 2>/dev/null; then
12680   as_mkdir_p='mkdir -p "$as_dir"'
12681 else
12682   test -d ./-p && rmdir ./-p
12683   as_mkdir_p=false
12684 fi
12685
12686 if test -x / >/dev/null 2>&1; then
12687   as_test_x='test -x'
12688 else
12689   if ls -dL / >/dev/null 2>&1; then
12690     as_ls_L_option=L
12691   else
12692     as_ls_L_option=
12693   fi
12694   as_test_x='
12695     eval sh -c '\''
12696       if test -d "$1"; then
12697         test -d "$1/.";
12698       else
12699         case $1 in #(
12700         -*)set "./$1";;
12701         esac;
12702         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12703         ???[sx]*):;;*)false;;esac;fi
12704     '\'' sh
12705   '
12706 fi
12707 as_executable_p=$as_test_x
12708
12709 # Sed expression to map a string onto a valid CPP name.
12710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12711
12712 # Sed expression to map a string onto a valid variable name.
12713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12714
12715
12716 exec 6>&1
12717 ## ----------------------------------- ##
12718 ## Main body of $CONFIG_STATUS script. ##
12719 ## ----------------------------------- ##
12720 _ASEOF
12721 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12722
12723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12724 # Save the log message, to keep $0 and so on meaningful, and to
12725 # report actual input values of CONFIG_FILES etc. instead of their
12726 # values after options handling.
12727 ac_log="
12728 This file was extended by GNU FriBidi $as_me 0.19.4, which was
12729 generated by GNU Autoconf 2.65.  Invocation command line was
12730
12731   CONFIG_FILES    = $CONFIG_FILES
12732   CONFIG_HEADERS  = $CONFIG_HEADERS
12733   CONFIG_LINKS    = $CONFIG_LINKS
12734   CONFIG_COMMANDS = $CONFIG_COMMANDS
12735   $ $0 $@
12736
12737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12738 "
12739
12740 _ACEOF
12741
12742 case $ac_config_files in *"
12743 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12744 esac
12745
12746 case $ac_config_headers in *"
12747 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12748 esac
12749
12750
12751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12752 # Files that config.status was made for.
12753 config_files="$ac_config_files"
12754 config_headers="$ac_config_headers"
12755 config_commands="$ac_config_commands"
12756
12757 _ACEOF
12758
12759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12760 ac_cs_usage="\
12761 \`$as_me' instantiates files and other configuration actions
12762 from templates according to the current configuration.  Unless the files
12763 and actions are specified as TAGs, all are instantiated by default.
12764
12765 Usage: $0 [OPTION]... [TAG]...
12766
12767   -h, --help       print this help, then exit
12768   -V, --version    print version number and configuration settings, then exit
12769       --config     print configuration, then exit
12770   -q, --quiet, --silent
12771                    do not print progress messages
12772   -d, --debug      don't remove temporary files
12773       --recheck    update $as_me by reconfiguring in the same conditions
12774       --file=FILE[:TEMPLATE]
12775                    instantiate the configuration file FILE
12776       --header=FILE[:TEMPLATE]
12777                    instantiate the configuration header FILE
12778
12779 Configuration files:
12780 $config_files
12781
12782 Configuration headers:
12783 $config_headers
12784
12785 Configuration commands:
12786 $config_commands
12787
12788 Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=fribidi>.
12789 GNU FriBidi home page: <http://fribidi.org/>.
12790 General help using GNU software: <http://www.gnu.org/gethelp/>."
12791
12792 _ACEOF
12793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12794 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12795 ac_cs_version="\\
12796 GNU FriBidi config.status 0.19.4
12797 configured by $0, generated by GNU Autoconf 2.65,
12798   with options \\"\$ac_cs_config\\"
12799
12800 Copyright (C) 2009 Free Software Foundation, Inc.
12801 This config.status script is free software; the Free Software Foundation
12802 gives unlimited permission to copy, distribute and modify it."
12803
12804 ac_pwd='$ac_pwd'
12805 srcdir='$srcdir'
12806 INSTALL='$INSTALL'
12807 MKDIR_P='$MKDIR_P'
12808 AWK='$AWK'
12809 test -n "\$AWK" || AWK=awk
12810 _ACEOF
12811
12812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12813 # The default lists apply if the user does not specify any file.
12814 ac_need_defaults=:
12815 while test $# != 0
12816 do
12817   case $1 in
12818   --*=*)
12819     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12820     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12821     ac_shift=:
12822     ;;
12823   *)
12824     ac_option=$1
12825     ac_optarg=$2
12826     ac_shift=shift
12827     ;;
12828   esac
12829
12830   case $ac_option in
12831   # Handling of the options.
12832   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12833     ac_cs_recheck=: ;;
12834   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12835     $as_echo "$ac_cs_version"; exit ;;
12836   --config | --confi | --conf | --con | --co | --c )
12837     $as_echo "$ac_cs_config"; exit ;;
12838   --debug | --debu | --deb | --de | --d | -d )
12839     debug=: ;;
12840   --file | --fil | --fi | --f )
12841     $ac_shift
12842     case $ac_optarg in
12843     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12844     esac
12845     as_fn_append CONFIG_FILES " '$ac_optarg'"
12846     ac_need_defaults=false;;
12847   --header | --heade | --head | --hea )
12848     $ac_shift
12849     case $ac_optarg in
12850     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12851     esac
12852     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12853     ac_need_defaults=false;;
12854   --he | --h)
12855     # Conflict between --help and --header
12856     as_fn_error "ambiguous option: \`$1'
12857 Try \`$0 --help' for more information.";;
12858   --help | --hel | -h )
12859     $as_echo "$ac_cs_usage"; exit ;;
12860   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12861   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12862     ac_cs_silent=: ;;
12863
12864   # This is an error.
12865   -*) as_fn_error "unrecognized option: \`$1'
12866 Try \`$0 --help' for more information." ;;
12867
12868   *) as_fn_append ac_config_targets " $1"
12869      ac_need_defaults=false ;;
12870
12871   esac
12872   shift
12873 done
12874
12875 ac_configure_extra_args=
12876
12877 if $ac_cs_silent; then
12878   exec 6>/dev/null
12879   ac_configure_extra_args="$ac_configure_extra_args --silent"
12880 fi
12881
12882 _ACEOF
12883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12884 if \$ac_cs_recheck; then
12885   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12886   shift
12887   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12888   CONFIG_SHELL='$SHELL'
12889   export CONFIG_SHELL
12890   exec "\$@"
12891 fi
12892
12893 _ACEOF
12894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12895 exec 5>>config.log
12896 {
12897   echo
12898   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12899 ## Running $as_me. ##
12900 _ASBOX
12901   $as_echo "$ac_log"
12902 } >&5
12903
12904 _ACEOF
12905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12906 #
12907 # INIT-COMMANDS
12908 #
12909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12910
12911
12912 # The HP-UX ksh and POSIX shell print the target directory to stdout
12913 # if CDPATH is set.
12914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12915
12916 sed_quote_subst='$sed_quote_subst'
12917 double_quote_subst='$double_quote_subst'
12918 delay_variable_subst='$delay_variable_subst'
12919 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12920 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12921 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12922 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12923 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12924 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12925 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12926 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12927 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12928 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12929 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12930 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12931 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12932 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12933 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12934 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12935 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12936 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12937 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12938 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12939 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12940 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12941 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12942 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12943 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12944 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12945 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12946 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12947 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12948 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12949 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12950 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12951 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12952 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12953 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12954 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12955 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12956 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12957 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12958 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12959 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12960 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12961 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12962 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12963 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12964 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12965 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12966 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12967 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12968 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12969 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12970 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12971 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12972 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12973 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12974 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12975 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12976 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12977 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12978 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12979 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12980 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12981 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12982 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12983 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12984 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12985 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12986 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12987 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12988 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12989 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12990 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12991 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12992 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12993 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12994 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12995 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12996 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12997 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12998 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12999 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13000 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13001 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13002 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13003 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13004 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13005 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13006 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13007 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13008 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13009 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13010 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13011 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13012 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13013 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13014 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13015 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13016 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13017 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13018 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13019 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13020 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13021 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13022 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13023 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13024 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13025 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13026 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13027 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13028 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13029 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13030 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13031 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13032 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13033 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13034 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13035 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13036 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13037
13038 LTCC='$LTCC'
13039 LTCFLAGS='$LTCFLAGS'
13040 compiler='$compiler_DEFAULT'
13041
13042 # Quote evaled strings.
13043 for var in SED \
13044 GREP \
13045 EGREP \
13046 FGREP \
13047 LD \
13048 NM \
13049 LN_S \
13050 lt_SP2NL \
13051 lt_NL2SP \
13052 reload_flag \
13053 OBJDUMP \
13054 deplibs_check_method \
13055 file_magic_cmd \
13056 AR \
13057 AR_FLAGS \
13058 STRIP \
13059 RANLIB \
13060 CC \
13061 CFLAGS \
13062 compiler \
13063 lt_cv_sys_global_symbol_pipe \
13064 lt_cv_sys_global_symbol_to_cdecl \
13065 lt_cv_sys_global_symbol_to_c_name_address \
13066 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13067 SHELL \
13068 ECHO \
13069 lt_prog_compiler_no_builtin_flag \
13070 lt_prog_compiler_wl \
13071 lt_prog_compiler_pic \
13072 lt_prog_compiler_static \
13073 lt_cv_prog_compiler_c_o \
13074 need_locks \
13075 DSYMUTIL \
13076 NMEDIT \
13077 LIPO \
13078 OTOOL \
13079 OTOOL64 \
13080 shrext_cmds \
13081 export_dynamic_flag_spec \
13082 whole_archive_flag_spec \
13083 compiler_needs_object \
13084 with_gnu_ld \
13085 allow_undefined_flag \
13086 no_undefined_flag \
13087 hardcode_libdir_flag_spec \
13088 hardcode_libdir_flag_spec_ld \
13089 hardcode_libdir_separator \
13090 fix_srcfile_path \
13091 exclude_expsyms \
13092 include_expsyms \
13093 file_list_spec \
13094 variables_saved_for_relink \
13095 libname_spec \
13096 library_names_spec \
13097 soname_spec \
13098 finish_eval \
13099 old_striplib \
13100 striplib; do
13101     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13102     *[\\\\\\\`\\"\\\$]*)
13103       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13104       ;;
13105     *)
13106       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13107       ;;
13108     esac
13109 done
13110
13111 # Double-quote double-evaled strings.
13112 for var in reload_cmds \
13113 old_postinstall_cmds \
13114 old_postuninstall_cmds \
13115 old_archive_cmds \
13116 extract_expsyms_cmds \
13117 old_archive_from_new_cmds \
13118 old_archive_from_expsyms_cmds \
13119 archive_cmds \
13120 archive_expsym_cmds \
13121 module_cmds \
13122 module_expsym_cmds \
13123 export_symbols_cmds \
13124 prelink_cmds \
13125 postinstall_cmds \
13126 postuninstall_cmds \
13127 finish_cmds \
13128 sys_lib_search_path_spec \
13129 sys_lib_dlsearch_path_spec; do
13130     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13131     *[\\\\\\\`\\"\\\$]*)
13132       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13133       ;;
13134     *)
13135       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13136       ;;
13137     esac
13138 done
13139
13140 # Fix-up fallback echo if it was mangled by the above quoting rules.
13141 case \$lt_ECHO in
13142 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13143   ;;
13144 esac
13145
13146 ac_aux_dir='$ac_aux_dir'
13147 xsi_shell='$xsi_shell'
13148 lt_shell_append='$lt_shell_append'
13149
13150 # See if we are running on zsh, and set the options which allow our
13151 # commands through without removal of \ escapes INIT.
13152 if test -n "\${ZSH_VERSION+set}" ; then
13153    setopt NO_GLOB_SUBST
13154 fi
13155
13156
13157     PACKAGE='$PACKAGE'
13158     VERSION='$VERSION'
13159     TIMESTAMP='$TIMESTAMP'
13160     RM='$RM'
13161     ofile='$ofile'
13162
13163
13164
13165
13166 _ACEOF
13167
13168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13169
13170 # Handling of arguments.
13171 for ac_config_target in $ac_config_targets
13172 do
13173   case $ac_config_target in
13174     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13175     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13176     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13177     "fribidi.pc") CONFIG_FILES="$CONFIG_FILES fribidi.pc" ;;
13178     "lib/fribidi-config.h") CONFIG_FILES="$CONFIG_FILES lib/fribidi-config.h" ;;
13179     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13180     "charset/Makefile") CONFIG_FILES="$CONFIG_FILES charset/Makefile" ;;
13181     "gen.tab/Makefile") CONFIG_FILES="$CONFIG_FILES gen.tab/Makefile" ;;
13182     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13183     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13184     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13185     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13186
13187   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13188   esac
13189 done
13190
13191
13192 # If the user did not use the arguments to specify the items to instantiate,
13193 # then the envvar interface is used.  Set only those that are not.
13194 # We use the long form for the default assignment because of an extremely
13195 # bizarre bug on SunOS 4.1.3.
13196 if $ac_need_defaults; then
13197   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13198   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13199   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13200 fi
13201
13202 # Have a temporary directory for convenience.  Make it in the build tree
13203 # simply because there is no reason against having it here, and in addition,
13204 # creating and moving files from /tmp can sometimes cause problems.
13205 # Hook for its removal unless debugging.
13206 # Note that there is a small window in which the directory will not be cleaned:
13207 # after its creation but before its name has been assigned to `$tmp'.
13208 $debug ||
13209 {
13210   tmp=
13211   trap 'exit_status=$?
13212   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13213 ' 0
13214   trap 'as_fn_exit 1' 1 2 13 15
13215 }
13216 # Create a (secure) tmp directory for tmp files.
13217
13218 {
13219   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13220   test -n "$tmp" && test -d "$tmp"
13221 }  ||
13222 {
13223   tmp=./conf$$-$RANDOM
13224   (umask 077 && mkdir "$tmp")
13225 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13226
13227 # Set up the scripts for CONFIG_FILES section.
13228 # No need to generate them if there are no CONFIG_FILES.
13229 # This happens for instance with `./config.status config.h'.
13230 if test -n "$CONFIG_FILES"; then
13231
13232
13233 ac_cr=`echo X | tr X '\015'`
13234 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13235 # But we know of no other shell where ac_cr would be empty at this
13236 # point, so we can use a bashism as a fallback.
13237 if test "x$ac_cr" = x; then
13238   eval ac_cr=\$\'\\r\'
13239 fi
13240 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13241 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13242   ac_cs_awk_cr='\r'
13243 else
13244   ac_cs_awk_cr=$ac_cr
13245 fi
13246
13247 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13248 _ACEOF
13249
13250
13251 {
13252   echo "cat >conf$$subs.awk <<_ACEOF" &&
13253   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13254   echo "_ACEOF"
13255 } >conf$$subs.sh ||
13256   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13257 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13258 ac_delim='%!_!# '
13259 for ac_last_try in false false false false false :; do
13260   . ./conf$$subs.sh ||
13261     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13262
13263   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13264   if test $ac_delim_n = $ac_delim_num; then
13265     break
13266   elif $ac_last_try; then
13267     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13268   else
13269     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13270   fi
13271 done
13272 rm -f conf$$subs.sh
13273
13274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13275 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13276 _ACEOF
13277 sed -n '
13278 h
13279 s/^/S["/; s/!.*/"]=/
13280 p
13281 g
13282 s/^[^!]*!//
13283 :repl
13284 t repl
13285 s/'"$ac_delim"'$//
13286 t delim
13287 :nl
13288 h
13289 s/\(.\{148\}\)..*/\1/
13290 t more1
13291 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13292 p
13293 n
13294 b repl
13295 :more1
13296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13297 p
13298 g
13299 s/.\{148\}//
13300 t nl
13301 :delim
13302 h
13303 s/\(.\{148\}\)..*/\1/
13304 t more2
13305 s/["\\]/\\&/g; s/^/"/; s/$/"/
13306 p
13307 b
13308 :more2
13309 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13310 p
13311 g
13312 s/.\{148\}//
13313 t delim
13314 ' <conf$$subs.awk | sed '
13315 /^[^""]/{
13316   N
13317   s/\n//
13318 }
13319 ' >>$CONFIG_STATUS || ac_write_fail=1
13320 rm -f conf$$subs.awk
13321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13322 _ACAWK
13323 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13324   for (key in S) S_is_set[key] = 1
13325   FS = "\a"
13326
13327 }
13328 {
13329   line = $ 0
13330   nfields = split(line, field, "@")
13331   substed = 0
13332   len = length(field[1])
13333   for (i = 2; i < nfields; i++) {
13334     key = field[i]
13335     keylen = length(key)
13336     if (S_is_set[key]) {
13337       value = S[key]
13338       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13339       len += length(value) + length(field[++i])
13340       substed = 1
13341     } else
13342       len += 1 + keylen
13343   }
13344
13345   print line
13346 }
13347
13348 _ACAWK
13349 _ACEOF
13350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13351 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13352   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13353 else
13354   cat
13355 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13356   || as_fn_error "could not setup config files machinery" "$LINENO" 5
13357 _ACEOF
13358
13359 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13360 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13361 # trailing colons and then remove the whole line if VPATH becomes empty
13362 # (actually we leave an empty line to preserve line numbers).
13363 if test "x$srcdir" = x.; then
13364   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13365 s/:*\$(srcdir):*/:/
13366 s/:*\${srcdir}:*/:/
13367 s/:*@srcdir@:*/:/
13368 s/^\([^=]*=[     ]*\):*/\1/
13369 s/:*$//
13370 s/^[^=]*=[       ]*$//
13371 }'
13372 fi
13373
13374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13375 fi # test -n "$CONFIG_FILES"
13376
13377 # Set up the scripts for CONFIG_HEADERS section.
13378 # No need to generate them if there are no CONFIG_HEADERS.
13379 # This happens for instance with `./config.status Makefile'.
13380 if test -n "$CONFIG_HEADERS"; then
13381 cat >"$tmp/defines.awk" <<\_ACAWK ||
13382 BEGIN {
13383 _ACEOF
13384
13385 # Transform confdefs.h into an awk script `defines.awk', embedded as
13386 # here-document in config.status, that substitutes the proper values into
13387 # config.h.in to produce config.h.
13388
13389 # Create a delimiter string that does not exist in confdefs.h, to ease
13390 # handling of long lines.
13391 ac_delim='%!_!# '
13392 for ac_last_try in false false :; do
13393   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13394   if test -z "$ac_t"; then
13395     break
13396   elif $ac_last_try; then
13397     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13398   else
13399     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13400   fi
13401 done
13402
13403 # For the awk script, D is an array of macro values keyed by name,
13404 # likewise P contains macro parameters if any.  Preserve backslash
13405 # newline sequences.
13406
13407 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13408 sed -n '
13409 s/.\{148\}/&'"$ac_delim"'/g
13410 t rset
13411 :rset
13412 s/^[     ]*#[    ]*define[       ][      ]*/ /
13413 t def
13414 d
13415 :def
13416 s/\\$//
13417 t bsnl
13418 s/["\\]/\\&/g
13419 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13420 D["\1"]=" \3"/p
13421 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13422 d
13423 :bsnl
13424 s/["\\]/\\&/g
13425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13426 D["\1"]=" \3\\\\\\n"\\/p
13427 t cont
13428 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13429 t cont
13430 d
13431 :cont
13432 n
13433 s/.\{148\}/&'"$ac_delim"'/g
13434 t clear
13435 :clear
13436 s/\\$//
13437 t bsnlc
13438 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13439 d
13440 :bsnlc
13441 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13442 b cont
13443 ' <confdefs.h | sed '
13444 s/'"$ac_delim"'/"\\\
13445 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13446
13447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13448   for (key in D) D_is_set[key] = 1
13449   FS = "\a"
13450 }
13451 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13452   line = \$ 0
13453   split(line, arg, " ")
13454   if (arg[1] == "#") {
13455     defundef = arg[2]
13456     mac1 = arg[3]
13457   } else {
13458     defundef = substr(arg[1], 2)
13459     mac1 = arg[2]
13460   }
13461   split(mac1, mac2, "(") #)
13462   macro = mac2[1]
13463   prefix = substr(line, 1, index(line, defundef) - 1)
13464   if (D_is_set[macro]) {
13465     # Preserve the white space surrounding the "#".
13466     print prefix "define", macro P[macro] D[macro]
13467     next
13468   } else {
13469     # Replace #undef with comments.  This is necessary, for example,
13470     # in the case of _POSIX_SOURCE, which is predefined and required
13471     # on some systems where configure will not decide to define it.
13472     if (defundef == "undef") {
13473       print "/*", prefix defundef, macro, "*/"
13474       next
13475     }
13476   }
13477 }
13478 { print }
13479 _ACAWK
13480 _ACEOF
13481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13482   as_fn_error "could not setup config headers machinery" "$LINENO" 5
13483 fi # test -n "$CONFIG_HEADERS"
13484
13485
13486 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13487 shift
13488 for ac_tag
13489 do
13490   case $ac_tag in
13491   :[FHLC]) ac_mode=$ac_tag; continue;;
13492   esac
13493   case $ac_mode$ac_tag in
13494   :[FHL]*:*);;
13495   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13496   :[FH]-) ac_tag=-:-;;
13497   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13498   esac
13499   ac_save_IFS=$IFS
13500   IFS=:
13501   set x $ac_tag
13502   IFS=$ac_save_IFS
13503   shift
13504   ac_file=$1
13505   shift
13506
13507   case $ac_mode in
13508   :L) ac_source=$1;;
13509   :[FH])
13510     ac_file_inputs=
13511     for ac_f
13512     do
13513       case $ac_f in
13514       -) ac_f="$tmp/stdin";;
13515       *) # Look for the file first in the build tree, then in the source tree
13516          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13517          # because $ac_f cannot contain `:'.
13518          test -f "$ac_f" ||
13519            case $ac_f in
13520            [\\/$]*) false;;
13521            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13522            esac ||
13523            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13524       esac
13525       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13526       as_fn_append ac_file_inputs " '$ac_f'"
13527     done
13528
13529     # Let's still pretend it is `configure' which instantiates (i.e., don't
13530     # use $as_me), people would be surprised to read:
13531     #    /* config.h.  Generated by config.status.  */
13532     configure_input='Generated from '`
13533           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13534         `' by configure.'
13535     if test x"$ac_file" != x-; then
13536       configure_input="$ac_file.  $configure_input"
13537       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13538 $as_echo "$as_me: creating $ac_file" >&6;}
13539     fi
13540     # Neutralize special characters interpreted by sed in replacement strings.
13541     case $configure_input in #(
13542     *\&* | *\|* | *\\* )
13543        ac_sed_conf_input=`$as_echo "$configure_input" |
13544        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13545     *) ac_sed_conf_input=$configure_input;;
13546     esac
13547
13548     case $ac_tag in
13549     *:-:* | *:-) cat >"$tmp/stdin" \
13550       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13551     esac
13552     ;;
13553   esac
13554
13555   ac_dir=`$as_dirname -- "$ac_file" ||
13556 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13557          X"$ac_file" : 'X\(//\)[^/]' \| \
13558          X"$ac_file" : 'X\(//\)$' \| \
13559          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13560 $as_echo X"$ac_file" |
13561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13562             s//\1/
13563             q
13564           }
13565           /^X\(\/\/\)[^/].*/{
13566             s//\1/
13567             q
13568           }
13569           /^X\(\/\/\)$/{
13570             s//\1/
13571             q
13572           }
13573           /^X\(\/\).*/{
13574             s//\1/
13575             q
13576           }
13577           s/.*/./; q'`
13578   as_dir="$ac_dir"; as_fn_mkdir_p
13579   ac_builddir=.
13580
13581 case "$ac_dir" in
13582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13583 *)
13584   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13585   # A ".." for each directory in $ac_dir_suffix.
13586   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13587   case $ac_top_builddir_sub in
13588   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13589   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13590   esac ;;
13591 esac
13592 ac_abs_top_builddir=$ac_pwd
13593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13594 # for backward compatibility:
13595 ac_top_builddir=$ac_top_build_prefix
13596
13597 case $srcdir in
13598   .)  # We are building in place.
13599     ac_srcdir=.
13600     ac_top_srcdir=$ac_top_builddir_sub
13601     ac_abs_top_srcdir=$ac_pwd ;;
13602   [\\/]* | ?:[\\/]* )  # Absolute name.
13603     ac_srcdir=$srcdir$ac_dir_suffix;
13604     ac_top_srcdir=$srcdir
13605     ac_abs_top_srcdir=$srcdir ;;
13606   *) # Relative name.
13607     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13608     ac_top_srcdir=$ac_top_build_prefix$srcdir
13609     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13610 esac
13611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13612
13613
13614   case $ac_mode in
13615   :F)
13616   #
13617   # CONFIG_FILE
13618   #
13619
13620   case $INSTALL in
13621   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13622   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13623   esac
13624   ac_MKDIR_P=$MKDIR_P
13625   case $MKDIR_P in
13626   [\\/$]* | ?:[\\/]* ) ;;
13627   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13628   esac
13629 _ACEOF
13630
13631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13632 # If the template does not know about datarootdir, expand it.
13633 # FIXME: This hack should be removed a few years after 2.60.
13634 ac_datarootdir_hack=; ac_datarootdir_seen=
13635 ac_sed_dataroot='
13636 /datarootdir/ {
13637   p
13638   q
13639 }
13640 /@datadir@/p
13641 /@docdir@/p
13642 /@infodir@/p
13643 /@localedir@/p
13644 /@mandir@/p'
13645 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13646 *datarootdir*) ac_datarootdir_seen=yes;;
13647 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13648   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13649 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13650 _ACEOF
13651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13652   ac_datarootdir_hack='
13653   s&@datadir@&$datadir&g
13654   s&@docdir@&$docdir&g
13655   s&@infodir@&$infodir&g
13656   s&@localedir@&$localedir&g
13657   s&@mandir@&$mandir&g
13658   s&\\\${datarootdir}&$datarootdir&g' ;;
13659 esac
13660 _ACEOF
13661
13662 # Neutralize VPATH when `$srcdir' = `.'.
13663 # Shell code in configure.ac might set extrasub.
13664 # FIXME: do we really want to maintain this feature?
13665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13666 ac_sed_extra="$ac_vpsub
13667 $extrasub
13668 _ACEOF
13669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13670 :t
13671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13672 s|@configure_input@|$ac_sed_conf_input|;t t
13673 s&@top_builddir@&$ac_top_builddir_sub&;t t
13674 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13675 s&@srcdir@&$ac_srcdir&;t t
13676 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13677 s&@top_srcdir@&$ac_top_srcdir&;t t
13678 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13679 s&@builddir@&$ac_builddir&;t t
13680 s&@abs_builddir@&$ac_abs_builddir&;t t
13681 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13682 s&@INSTALL@&$ac_INSTALL&;t t
13683 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13684 $ac_datarootdir_hack
13685 "
13686 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13687   || as_fn_error "could not create $ac_file" "$LINENO" 5
13688
13689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13690   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13691   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13693 which seems to be undefined.  Please make sure it is defined." >&5
13694 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13695 which seems to be undefined.  Please make sure it is defined." >&2;}
13696
13697   rm -f "$tmp/stdin"
13698   case $ac_file in
13699   -) cat "$tmp/out" && rm -f "$tmp/out";;
13700   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13701   esac \
13702   || as_fn_error "could not create $ac_file" "$LINENO" 5
13703  ;;
13704   :H)
13705   #
13706   # CONFIG_HEADER
13707   #
13708   if test x"$ac_file" != x-; then
13709     {
13710       $as_echo "/* $configure_input  */" \
13711       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13712     } >"$tmp/config.h" \
13713       || as_fn_error "could not create $ac_file" "$LINENO" 5
13714     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13715       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13716 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13717     else
13718       rm -f "$ac_file"
13719       mv "$tmp/config.h" "$ac_file" \
13720         || as_fn_error "could not create $ac_file" "$LINENO" 5
13721     fi
13722   else
13723     $as_echo "/* $configure_input  */" \
13724       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13725       || as_fn_error "could not create -" "$LINENO" 5
13726   fi
13727 # Compute "$ac_file"'s index in $config_headers.
13728 _am_arg="$ac_file"
13729 _am_stamp_count=1
13730 for _am_header in $config_headers :; do
13731   case $_am_header in
13732     $_am_arg | $_am_arg:* )
13733       break ;;
13734     * )
13735       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13736   esac
13737 done
13738 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13739 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13740          X"$_am_arg" : 'X\(//\)[^/]' \| \
13741          X"$_am_arg" : 'X\(//\)$' \| \
13742          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13743 $as_echo X"$_am_arg" |
13744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13745             s//\1/
13746             q
13747           }
13748           /^X\(\/\/\)[^/].*/{
13749             s//\1/
13750             q
13751           }
13752           /^X\(\/\/\)$/{
13753             s//\1/
13754             q
13755           }
13756           /^X\(\/\).*/{
13757             s//\1/
13758             q
13759           }
13760           s/.*/./; q'`/stamp-h$_am_stamp_count
13761  ;;
13762
13763   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13764 $as_echo "$as_me: executing $ac_file commands" >&6;}
13765  ;;
13766   esac
13767
13768
13769   case $ac_file$ac_mode in
13770     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13771   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13772   # are listed without --file.  Let's play safe and only enable the eval
13773   # if we detect the quoting.
13774   case $CONFIG_FILES in
13775   *\'*) eval set x "$CONFIG_FILES" ;;
13776   *)   set x $CONFIG_FILES ;;
13777   esac
13778   shift
13779   for mf
13780   do
13781     # Strip MF so we end up with the name of the file.
13782     mf=`echo "$mf" | sed -e 's/:.*$//'`
13783     # Check whether this is an Automake generated Makefile or not.
13784     # We used to match only the files named `Makefile.in', but
13785     # some people rename them; so instead we look at the file content.
13786     # Grep'ing the first line is not enough: some people post-process
13787     # each Makefile.in and add a new line on top of each file to say so.
13788     # Grep'ing the whole file is not good either: AIX grep has a line
13789     # limit of 2048, but all sed's we know have understand at least 4000.
13790     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13791       dirpart=`$as_dirname -- "$mf" ||
13792 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13793          X"$mf" : 'X\(//\)[^/]' \| \
13794          X"$mf" : 'X\(//\)$' \| \
13795          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13796 $as_echo X"$mf" |
13797     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13798             s//\1/
13799             q
13800           }
13801           /^X\(\/\/\)[^/].*/{
13802             s//\1/
13803             q
13804           }
13805           /^X\(\/\/\)$/{
13806             s//\1/
13807             q
13808           }
13809           /^X\(\/\).*/{
13810             s//\1/
13811             q
13812           }
13813           s/.*/./; q'`
13814     else
13815       continue
13816     fi
13817     # Extract the definition of DEPDIR, am__include, and am__quote
13818     # from the Makefile without running `make'.
13819     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13820     test -z "$DEPDIR" && continue
13821     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13822     test -z "am__include" && continue
13823     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13824     # When using ansi2knr, U may be empty or an underscore; expand it
13825     U=`sed -n 's/^U = //p' < "$mf"`
13826     # Find all dependency output files, they are included files with
13827     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13828     # simplest approach to changing $(DEPDIR) to its actual value in the
13829     # expansion.
13830     for file in `sed -n "
13831       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13832          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13833       # Make sure the directory exists.
13834       test -f "$dirpart/$file" && continue
13835       fdir=`$as_dirname -- "$file" ||
13836 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13837          X"$file" : 'X\(//\)[^/]' \| \
13838          X"$file" : 'X\(//\)$' \| \
13839          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13840 $as_echo X"$file" |
13841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13842             s//\1/
13843             q
13844           }
13845           /^X\(\/\/\)[^/].*/{
13846             s//\1/
13847             q
13848           }
13849           /^X\(\/\/\)$/{
13850             s//\1/
13851             q
13852           }
13853           /^X\(\/\).*/{
13854             s//\1/
13855             q
13856           }
13857           s/.*/./; q'`
13858       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13859       # echo "creating $dirpart/$file"
13860       echo '# dummy' > "$dirpart/$file"
13861     done
13862   done
13863 }
13864  ;;
13865     "libtool":C)
13866
13867     # See if we are running on zsh, and set the options which allow our
13868     # commands through without removal of \ escapes.
13869     if test -n "${ZSH_VERSION+set}" ; then
13870       setopt NO_GLOB_SUBST
13871     fi
13872
13873     cfgfile="${ofile}T"
13874     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13875     $RM "$cfgfile"
13876
13877     cat <<_LT_EOF >> "$cfgfile"
13878 #! $SHELL
13879
13880 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13881 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13882 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13883 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13884 #
13885 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13886 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13887 #   Written by Gordon Matzigkeit, 1996
13888 #
13889 #   This file is part of GNU Libtool.
13890 #
13891 # GNU Libtool is free software; you can redistribute it and/or
13892 # modify it under the terms of the GNU General Public License as
13893 # published by the Free Software Foundation; either version 2 of
13894 # the License, or (at your option) any later version.
13895 #
13896 # As a special exception to the GNU General Public License,
13897 # if you distribute this file as part of a program or library that
13898 # is built using GNU Libtool, you may include this file under the
13899 # same distribution terms that you use for the rest of that program.
13900 #
13901 # GNU Libtool is distributed in the hope that it will be useful,
13902 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13903 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13904 # GNU General Public License for more details.
13905 #
13906 # You should have received a copy of the GNU General Public License
13907 # along with GNU Libtool; see the file COPYING.  If not, a copy
13908 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13909 # obtained by writing to the Free Software Foundation, Inc.,
13910 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13911
13912
13913 # The names of the tagged configurations supported by this script.
13914 available_tags=""
13915
13916 # ### BEGIN LIBTOOL CONFIG
13917
13918 # Which release of libtool.m4 was used?
13919 macro_version=$macro_version
13920 macro_revision=$macro_revision
13921
13922 # Whether or not to build static libraries.
13923 build_old_libs=$enable_static
13924
13925 # Whether or not to build shared libraries.
13926 build_libtool_libs=$enable_shared
13927
13928 # What type of objects to build.
13929 pic_mode=$pic_mode
13930
13931 # Whether or not to optimize for fast installation.
13932 fast_install=$enable_fast_install
13933
13934 # The host system.
13935 host_alias=$host_alias
13936 host=$host
13937 host_os=$host_os
13938
13939 # The build system.
13940 build_alias=$build_alias
13941 build=$build
13942 build_os=$build_os
13943
13944 # A sed program that does not truncate output.
13945 SED=$lt_SED
13946
13947 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13948 Xsed="\$SED -e 1s/^X//"
13949
13950 # A grep program that handles long lines.
13951 GREP=$lt_GREP
13952
13953 # An ERE matcher.
13954 EGREP=$lt_EGREP
13955
13956 # A literal string matcher.
13957 FGREP=$lt_FGREP
13958
13959 # A BSD- or MS-compatible name lister.
13960 NM=$lt_NM
13961
13962 # Whether we need soft or hard links.
13963 LN_S=$lt_LN_S
13964
13965 # What is the maximum length of a command?
13966 max_cmd_len=$max_cmd_len
13967
13968 # Object file suffix (normally "o").
13969 objext=$ac_objext
13970
13971 # Executable file suffix (normally "").
13972 exeext=$exeext
13973
13974 # whether the shell understands "unset".
13975 lt_unset=$lt_unset
13976
13977 # turn spaces into newlines.
13978 SP2NL=$lt_lt_SP2NL
13979
13980 # turn newlines into spaces.
13981 NL2SP=$lt_lt_NL2SP
13982
13983 # How to create reloadable object files.
13984 reload_flag=$lt_reload_flag
13985 reload_cmds=$lt_reload_cmds
13986
13987 # An object symbol dumper.
13988 OBJDUMP=$lt_OBJDUMP
13989
13990 # Method to check whether dependent libraries are shared objects.
13991 deplibs_check_method=$lt_deplibs_check_method
13992
13993 # Command to use when deplibs_check_method == "file_magic".
13994 file_magic_cmd=$lt_file_magic_cmd
13995
13996 # The archiver.
13997 AR=$lt_AR
13998 AR_FLAGS=$lt_AR_FLAGS
13999
14000 # A symbol stripping program.
14001 STRIP=$lt_STRIP
14002
14003 # Commands used to install an old-style archive.
14004 RANLIB=$lt_RANLIB
14005 old_postinstall_cmds=$lt_old_postinstall_cmds
14006 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14007
14008 # A C compiler.
14009 LTCC=$lt_CC
14010
14011 # LTCC compiler flags.
14012 LTCFLAGS=$lt_CFLAGS
14013
14014 # Take the output of nm and produce a listing of raw symbols and C names.
14015 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14016
14017 # Transform the output of nm in a proper C declaration.
14018 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14019
14020 # Transform the output of nm in a C name address pair.
14021 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14022
14023 # Transform the output of nm in a C name address pair when lib prefix is needed.
14024 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14025
14026 # The name of the directory that contains temporary libtool files.
14027 objdir=$objdir
14028
14029 # Shell to use when invoking shell scripts.
14030 SHELL=$lt_SHELL
14031
14032 # An echo program that does not interpret backslashes.
14033 ECHO=$lt_ECHO
14034
14035 # Used to examine libraries when file_magic_cmd begins with "file".
14036 MAGIC_CMD=$MAGIC_CMD
14037
14038 # Must we lock files when doing compilation?
14039 need_locks=$lt_need_locks
14040
14041 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14042 DSYMUTIL=$lt_DSYMUTIL
14043
14044 # Tool to change global to local symbols on Mac OS X.
14045 NMEDIT=$lt_NMEDIT
14046
14047 # Tool to manipulate fat objects and archives on Mac OS X.
14048 LIPO=$lt_LIPO
14049
14050 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14051 OTOOL=$lt_OTOOL
14052
14053 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14054 OTOOL64=$lt_OTOOL64
14055
14056 # Old archive suffix (normally "a").
14057 libext=$libext
14058
14059 # Shared library suffix (normally ".so").
14060 shrext_cmds=$lt_shrext_cmds
14061
14062 # The commands to extract the exported symbol list from a shared archive.
14063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14064
14065 # Variables whose values should be saved in libtool wrapper scripts and
14066 # restored at link time.
14067 variables_saved_for_relink=$lt_variables_saved_for_relink
14068
14069 # Do we need the "lib" prefix for modules?
14070 need_lib_prefix=$need_lib_prefix
14071
14072 # Do we need a version for libraries?
14073 need_version=$need_version
14074
14075 # Library versioning type.
14076 version_type=$version_type
14077
14078 # Shared library runtime path variable.
14079 runpath_var=$runpath_var
14080
14081 # Shared library path variable.
14082 shlibpath_var=$shlibpath_var
14083
14084 # Is shlibpath searched before the hard-coded library search path?
14085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14086
14087 # Format of library name prefix.
14088 libname_spec=$lt_libname_spec
14089
14090 # List of archive names.  First name is the real one, the rest are links.
14091 # The last name is the one that the linker finds with -lNAME
14092 library_names_spec=$lt_library_names_spec
14093
14094 # The coded name of the library, if different from the real name.
14095 soname_spec=$lt_soname_spec
14096
14097 # Command to use after installation of a shared archive.
14098 postinstall_cmds=$lt_postinstall_cmds
14099
14100 # Command to use after uninstallation of a shared archive.
14101 postuninstall_cmds=$lt_postuninstall_cmds
14102
14103 # Commands used to finish a libtool library installation in a directory.
14104 finish_cmds=$lt_finish_cmds
14105
14106 # As "finish_cmds", except a single script fragment to be evaled but
14107 # not shown.
14108 finish_eval=$lt_finish_eval
14109
14110 # Whether we should hardcode library paths into libraries.
14111 hardcode_into_libs=$hardcode_into_libs
14112
14113 # Compile-time system search path for libraries.
14114 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14115
14116 # Run-time system search path for libraries.
14117 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14118
14119 # Whether dlopen is supported.
14120 dlopen_support=$enable_dlopen
14121
14122 # Whether dlopen of programs is supported.
14123 dlopen_self=$enable_dlopen_self
14124
14125 # Whether dlopen of statically linked programs is supported.
14126 dlopen_self_static=$enable_dlopen_self_static
14127
14128 # Commands to strip libraries.
14129 old_striplib=$lt_old_striplib
14130 striplib=$lt_striplib
14131
14132
14133 # The linker used to build libraries.
14134 LD=$lt_LD
14135
14136 # Commands used to build an old-style archive.
14137 old_archive_cmds=$lt_old_archive_cmds
14138
14139 # A language specific compiler.
14140 CC=$lt_compiler
14141
14142 # Is the compiler the GNU compiler?
14143 with_gcc=$GCC
14144
14145 # Compiler flag to turn off builtin functions.
14146 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14147
14148 # How to pass a linker flag through the compiler.
14149 wl=$lt_lt_prog_compiler_wl
14150
14151 # Additional compiler flags for building library objects.
14152 pic_flag=$lt_lt_prog_compiler_pic
14153
14154 # Compiler flag to prevent dynamic linking.
14155 link_static_flag=$lt_lt_prog_compiler_static
14156
14157 # Does compiler simultaneously support -c and -o options?
14158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14159
14160 # Whether or not to add -lc for building shared libraries.
14161 build_libtool_need_lc=$archive_cmds_need_lc
14162
14163 # Whether or not to disallow shared libs when runtime libs are static.
14164 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14165
14166 # Compiler flag to allow reflexive dlopens.
14167 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14168
14169 # Compiler flag to generate shared objects directly from archives.
14170 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14171
14172 # Whether the compiler copes with passing no objects directly.
14173 compiler_needs_object=$lt_compiler_needs_object
14174
14175 # Create an old-style archive from a shared archive.
14176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14177
14178 # Create a temporary old-style archive to link instead of a shared archive.
14179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14180
14181 # Commands used to build a shared archive.
14182 archive_cmds=$lt_archive_cmds
14183 archive_expsym_cmds=$lt_archive_expsym_cmds
14184
14185 # Commands used to build a loadable module if different from building
14186 # a shared archive.
14187 module_cmds=$lt_module_cmds
14188 module_expsym_cmds=$lt_module_expsym_cmds
14189
14190 # Whether we are building with GNU ld or not.
14191 with_gnu_ld=$lt_with_gnu_ld
14192
14193 # Flag that allows shared libraries with undefined symbols to be built.
14194 allow_undefined_flag=$lt_allow_undefined_flag
14195
14196 # Flag that enforces no undefined symbols.
14197 no_undefined_flag=$lt_no_undefined_flag
14198
14199 # Flag to hardcode \$libdir into a binary during linking.
14200 # This must work even if \$libdir does not exist
14201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14202
14203 # If ld is used when linking, flag to hardcode \$libdir into a binary
14204 # during linking.  This must work even if \$libdir does not exist.
14205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14206
14207 # Whether we need a single "-rpath" flag with a separated argument.
14208 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14209
14210 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14211 # DIR into the resulting binary.
14212 hardcode_direct=$hardcode_direct
14213
14214 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14215 # DIR into the resulting binary and the resulting library dependency is
14216 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14217 # library is relocated.
14218 hardcode_direct_absolute=$hardcode_direct_absolute
14219
14220 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14221 # into the resulting binary.
14222 hardcode_minus_L=$hardcode_minus_L
14223
14224 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14225 # into the resulting binary.
14226 hardcode_shlibpath_var=$hardcode_shlibpath_var
14227
14228 # Set to "yes" if building a shared library automatically hardcodes DIR
14229 # into the library and all subsequent libraries and executables linked
14230 # against it.
14231 hardcode_automatic=$hardcode_automatic
14232
14233 # Set to yes if linker adds runtime paths of dependent libraries
14234 # to runtime path list.
14235 inherit_rpath=$inherit_rpath
14236
14237 # Whether libtool must link a program against all its dependency libraries.
14238 link_all_deplibs=$link_all_deplibs
14239
14240 # Fix the shell variable \$srcfile for the compiler.
14241 fix_srcfile_path=$lt_fix_srcfile_path
14242
14243 # Set to "yes" if exported symbols are required.
14244 always_export_symbols=$always_export_symbols
14245
14246 # The commands to list exported symbols.
14247 export_symbols_cmds=$lt_export_symbols_cmds
14248
14249 # Symbols that should not be listed in the preloaded symbols.
14250 exclude_expsyms=$lt_exclude_expsyms
14251
14252 # Symbols that must always be exported.
14253 include_expsyms=$lt_include_expsyms
14254
14255 # Commands necessary for linking programs (against libraries) with templates.
14256 prelink_cmds=$lt_prelink_cmds
14257
14258 # Specify filename containing input files.
14259 file_list_spec=$lt_file_list_spec
14260
14261 # How to hardcode a shared library path into an executable.
14262 hardcode_action=$hardcode_action
14263
14264 # ### END LIBTOOL CONFIG
14265
14266 _LT_EOF
14267
14268   case $host_os in
14269   aix3*)
14270     cat <<\_LT_EOF >> "$cfgfile"
14271 # AIX sometimes has problems with the GCC collect2 program.  For some
14272 # reason, if we set the COLLECT_NAMES environment variable, the problems
14273 # vanish in a puff of smoke.
14274 if test "X${COLLECT_NAMES+set}" != Xset; then
14275   COLLECT_NAMES=
14276   export COLLECT_NAMES
14277 fi
14278 _LT_EOF
14279     ;;
14280   esac
14281
14282
14283 ltmain="$ac_aux_dir/ltmain.sh"
14284
14285
14286   # We use sed instead of cat because bash on DJGPP gets confused if
14287   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14288   # text mode, it properly converts lines to CR/LF.  This bash problem
14289   # is reportedly fixed, but why not run on old versions too?
14290   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14291     || (rm -f "$cfgfile"; exit 1)
14292
14293   case $xsi_shell in
14294   yes)
14295     cat << \_LT_EOF >> "$cfgfile"
14296
14297 # func_dirname file append nondir_replacement
14298 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14299 # otherwise set result to NONDIR_REPLACEMENT.
14300 func_dirname ()
14301 {
14302   case ${1} in
14303     */*) func_dirname_result="${1%/*}${2}" ;;
14304     *  ) func_dirname_result="${3}" ;;
14305   esac
14306 }
14307
14308 # func_basename file
14309 func_basename ()
14310 {
14311   func_basename_result="${1##*/}"
14312 }
14313
14314 # func_dirname_and_basename file append nondir_replacement
14315 # perform func_basename and func_dirname in a single function
14316 # call:
14317 #   dirname:  Compute the dirname of FILE.  If nonempty,
14318 #             add APPEND to the result, otherwise set result
14319 #             to NONDIR_REPLACEMENT.
14320 #             value returned in "$func_dirname_result"
14321 #   basename: Compute filename of FILE.
14322 #             value retuned in "$func_basename_result"
14323 # Implementation must be kept synchronized with func_dirname
14324 # and func_basename. For efficiency, we do not delegate to
14325 # those functions but instead duplicate the functionality here.
14326 func_dirname_and_basename ()
14327 {
14328   case ${1} in
14329     */*) func_dirname_result="${1%/*}${2}" ;;
14330     *  ) func_dirname_result="${3}" ;;
14331   esac
14332   func_basename_result="${1##*/}"
14333 }
14334
14335 # func_stripname prefix suffix name
14336 # strip PREFIX and SUFFIX off of NAME.
14337 # PREFIX and SUFFIX must not contain globbing or regex special
14338 # characters, hashes, percent signs, but SUFFIX may contain a leading
14339 # dot (in which case that matches only a dot).
14340 func_stripname ()
14341 {
14342   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14343   # positional parameters, so assign one to ordinary parameter first.
14344   func_stripname_result=${3}
14345   func_stripname_result=${func_stripname_result#"${1}"}
14346   func_stripname_result=${func_stripname_result%"${2}"}
14347 }
14348
14349 # func_opt_split
14350 func_opt_split ()
14351 {
14352   func_opt_split_opt=${1%%=*}
14353   func_opt_split_arg=${1#*=}
14354 }
14355
14356 # func_lo2o object
14357 func_lo2o ()
14358 {
14359   case ${1} in
14360     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14361     *)    func_lo2o_result=${1} ;;
14362   esac
14363 }
14364
14365 # func_xform libobj-or-source
14366 func_xform ()
14367 {
14368   func_xform_result=${1%.*}.lo
14369 }
14370
14371 # func_arith arithmetic-term...
14372 func_arith ()
14373 {
14374   func_arith_result=$(( $* ))
14375 }
14376
14377 # func_len string
14378 # STRING may not start with a hyphen.
14379 func_len ()
14380 {
14381   func_len_result=${#1}
14382 }
14383
14384 _LT_EOF
14385     ;;
14386   *) # Bourne compatible functions.
14387     cat << \_LT_EOF >> "$cfgfile"
14388
14389 # func_dirname file append nondir_replacement
14390 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14391 # otherwise set result to NONDIR_REPLACEMENT.
14392 func_dirname ()
14393 {
14394   # Extract subdirectory from the argument.
14395   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14396   if test "X$func_dirname_result" = "X${1}"; then
14397     func_dirname_result="${3}"
14398   else
14399     func_dirname_result="$func_dirname_result${2}"
14400   fi
14401 }
14402
14403 # func_basename file
14404 func_basename ()
14405 {
14406   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14407 }
14408
14409
14410 # func_stripname prefix suffix name
14411 # strip PREFIX and SUFFIX off of NAME.
14412 # PREFIX and SUFFIX must not contain globbing or regex special
14413 # characters, hashes, percent signs, but SUFFIX may contain a leading
14414 # dot (in which case that matches only a dot).
14415 # func_strip_suffix prefix name
14416 func_stripname ()
14417 {
14418   case ${2} in
14419     .*) func_stripname_result=`$ECHO "X${3}" \
14420            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14421     *)  func_stripname_result=`$ECHO "X${3}" \
14422            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14423   esac
14424 }
14425
14426 # sed scripts:
14427 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14428 my_sed_long_arg='1s/^-[^=]*=//'
14429
14430 # func_opt_split
14431 func_opt_split ()
14432 {
14433   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14434   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14435 }
14436
14437 # func_lo2o object
14438 func_lo2o ()
14439 {
14440   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14441 }
14442
14443 # func_xform libobj-or-source
14444 func_xform ()
14445 {
14446   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14447 }
14448
14449 # func_arith arithmetic-term...
14450 func_arith ()
14451 {
14452   func_arith_result=`expr "$@"`
14453 }
14454
14455 # func_len string
14456 # STRING may not start with a hyphen.
14457 func_len ()
14458 {
14459   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14460 }
14461
14462 _LT_EOF
14463 esac
14464
14465 case $lt_shell_append in
14466   yes)
14467     cat << \_LT_EOF >> "$cfgfile"
14468
14469 # func_append var value
14470 # Append VALUE to the end of shell variable VAR.
14471 func_append ()
14472 {
14473   eval "$1+=\$2"
14474 }
14475 _LT_EOF
14476     ;;
14477   *)
14478     cat << \_LT_EOF >> "$cfgfile"
14479
14480 # func_append var value
14481 # Append VALUE to the end of shell variable VAR.
14482 func_append ()
14483 {
14484   eval "$1=\$$1\$2"
14485 }
14486
14487 _LT_EOF
14488     ;;
14489   esac
14490
14491
14492   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14493     || (rm -f "$cfgfile"; exit 1)
14494
14495   mv -f "$cfgfile" "$ofile" ||
14496     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14497   chmod +x "$ofile"
14498
14499  ;;
14500
14501   esac
14502 done # for ac_tag
14503
14504
14505 as_fn_exit 0
14506 _ACEOF
14507 ac_clean_files=$ac_clean_files_save
14508
14509 test $ac_write_fail = 0 ||
14510   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14511
14512
14513 # configure is writing to config.log, and then calls config.status.
14514 # config.status does its own redirection, appending to config.log.
14515 # Unfortunately, on DOS this fails, as config.log is still kept open
14516 # by configure, so config.status won't be able to write to it; its
14517 # output is simply discarded.  So we exec the FD to /dev/null,
14518 # effectively closing config.log, so it can be properly (re)opened and
14519 # appended to by config.status.  When coming back to configure, we
14520 # need to make the FD available again.
14521 if test "$no_create" != yes; then
14522   ac_cs_success=:
14523   ac_config_status_args=
14524   test "$silent" = yes &&
14525     ac_config_status_args="$ac_config_status_args --quiet"
14526   exec 5>/dev/null
14527   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14528   exec 5>>config.log
14529   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14530   # would make configure fail if this is the last instruction.
14531   $ac_cs_success || as_fn_exit $?
14532 fi
14533 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14534   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14535 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14536 fi
14537