Update tag value for tizen 2.0 build
[external/libidn.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for GNU Libidn 1.15.
4 #
5 # Report bugs to <bug-libidn@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, 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 # Copyright (c) 2002-2008 Simon Josefsson <simon@josefsson.org>.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
20
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24   emulate sh
25   NULLCMD=:
26   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27   # is contrary to our usage.  Disable this feature.
28   alias -g '${1+"$@"}'='"$@"'
29   setopt NO_GLOB_SUBST
30 else
31   case `(set -o) 2>/dev/null` in #(
32   *posix*) :
33     set -o posix ;; #(
34   *) :
35      ;;
36 esac
37 fi
38
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='print -r --'
52   as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54   as_echo='printf %s\n'
55   as_echo_n='printf %s'
56 else
57   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59     as_echo_n='/usr/ucb/echo -n'
60   else
61     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62     as_echo_n_body='eval
63       arg=$1;
64       case $arg in #(
65       *"$as_nl"*)
66         expr "X$arg" : "X\\(.*\\)$as_nl";
67         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68       esac;
69       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70     '
71     export as_echo_n_body
72     as_echo_n='sh -c $as_echo_n_body as_echo'
73   fi
74   export as_echo_body
75   as_echo='sh -c $as_echo_body as_echo'
76 fi
77
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
80   PATH_SEPARATOR=:
81   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83       PATH_SEPARATOR=';'
84   }
85 fi
86
87
88 # IFS
89 # We need space, tab and new line, in precisely that order.  Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" ""        $as_nl"
94
95 # Find who we are.  Look in the path if we contain no directory separator.
96 case $0 in #((
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104   done
105 IFS=$as_save_IFS
106
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there.  '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142   emulate sh
143   NULLCMD=:
144   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145   # is contrary to our usage.  Disable this feature.
146   alias -g '\${1+\"\$@\"}'='\"\$@\"'
147   setopt NO_GLOB_SUBST
148 else
149   case \`(set -o) 2>/dev/null\` in #(
150   *posix*) :
151     set -o posix ;; #(
152   *) :
153      ;;
154 esac
155 fi
156 "
157   as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171   exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179   if (eval "$as_required") 2>/dev/null; then :
180   as_have_required=yes
181 else
182   as_have_required=no
183 fi
184   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186 else
187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 as_found=false
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 do
191   IFS=$as_save_IFS
192   test -z "$as_dir" && as_dir=.
193   as_found=:
194   case $as_dir in #(
195          /*)
196            for as_base in sh bash ksh sh5; do
197              # Try only shells that exist, to save several forks.
198              as_shell=$as_dir/$as_base
199              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   CONFIG_SHELL=$as_shell as_have_required=yes
202                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   break 2
204 fi
205 fi
206            done;;
207        esac
208   as_found=false
209 done
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212   CONFIG_SHELL=$SHELL as_have_required=yes
213 fi; }
214 IFS=$as_save_IFS
215
216
217       if test "x$CONFIG_SHELL" != x; then :
218   # We cannot yet assume a decent shell, so we have to provide a
219         # neutralization value for shells without unset; and this also
220         # works around shells that cannot unset nonexistent variables.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 fi
227
228     if test x$as_have_required = xno; then :
229   $as_echo "$0: This script requires a shell more modern than all"
230   $as_echo "$0: the shells that I found on your system."
231   if test x${ZSH_VERSION+set} = xset ; then
232     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234   else
235     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-libidn@gnu.org
236 $0: about your system, including any error possibly output
237 $0: before this message. Then install a modern shell, or
238 $0: manually run the script under such a shell if you do
239 $0: have one."
240   fi
241   exit 1
242 fi
243 fi
244 fi
245 SHELL=${CONFIG_SHELL-/bin/sh}
246 export SHELL
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE= GREP_OPTIONS=
249 unset CLICOLOR_FORCE GREP_OPTIONS
250
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
254 # as_fn_unset VAR
255 # ---------------
256 # Portably unset VAR.
257 as_fn_unset ()
258 {
259   { eval $1=; unset $1;}
260 }
261 as_unset=as_fn_unset
262
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
266 as_fn_set_status ()
267 {
268   return $1
269 } # as_fn_set_status
270
271 # as_fn_exit STATUS
272 # -----------------
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
274 as_fn_exit ()
275 {
276   set +e
277   as_fn_set_status $1
278   exit $1
279 } # as_fn_exit
280
281 # as_fn_mkdir_p
282 # -------------
283 # Create "$as_dir" as a directory, including parents if necessary.
284 as_fn_mkdir_p ()
285 {
286
287   case $as_dir in #(
288   -*) as_dir=./$as_dir;;
289   esac
290   test -d "$as_dir" || eval $as_mkdir_p || {
291     as_dirs=
292     while :; do
293       case $as_dir in #(
294       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295       *) as_qdir=$as_dir;;
296       esac
297       as_dirs="'$as_qdir' $as_dirs"
298       as_dir=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300          X"$as_dir" : 'X\(//\)[^/]' \| \
301          X"$as_dir" : 'X\(//\)$' \| \
302          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)[^/].*/{
309             s//\1/
310             q
311           }
312           /^X\(\/\/\)$/{
313             s//\1/
314             q
315           }
316           /^X\(\/\).*/{
317             s//\1/
318             q
319           }
320           s/.*/./; q'`
321       test -d "$as_dir" && break
322     done
323     test -z "$as_dirs" || eval "mkdir $as_dirs"
324   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
325
326
327 } # as_fn_mkdir_p
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
333 # implementations.
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335   eval 'as_fn_append ()
336   {
337     eval $1+=\$2
338   }'
339 else
340   as_fn_append ()
341   {
342     eval $1=\$$1\$2
343   }
344 fi # as_fn_append
345
346 # as_fn_arith ARG...
347 # ------------------
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352   eval 'as_fn_arith ()
353   {
354     as_val=$(( $* ))
355   }'
356 else
357   as_fn_arith ()
358   {
359     as_val=`expr "$@" || test $? -eq 1`
360   }
361 fi # as_fn_arith
362
363
364 # as_fn_error STATUS ERROR [LINENO LOG_FD]
365 # ----------------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with STATUS, using 1 if that was 0.
369 as_fn_error ()
370 {
371   as_status=$1; test $as_status -eq 0 && as_status=1
372   if test "$4"; then
373     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
375   fi
376   $as_echo "$as_me: error: $2" >&2
377   as_fn_exit $as_status
378 } # as_fn_error
379
380 if expr a : '\(a\)' >/dev/null 2>&1 &&
381    test "X`expr 00001 : '.*\(...\)'`" = X001; then
382   as_expr=expr
383 else
384   as_expr=false
385 fi
386
387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388   as_basename=basename
389 else
390   as_basename=false
391 fi
392
393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394   as_dirname=dirname
395 else
396   as_dirname=false
397 fi
398
399 as_me=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401          X"$0" : 'X\(//\)$' \| \
402          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 $as_echo X/"$0" |
404     sed '/^.*\/\([^/][^/]*\)\/*$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\/\)$/{
409             s//\1/
410             q
411           }
412           /^X\/\(\/\).*/{
413             s//\1/
414             q
415           }
416           s/.*/./; q'`
417
418 # Avoid depending upon Character Ranges.
419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits='0123456789'
423 as_cr_alnum=$as_cr_Letters$as_cr_digits
424
425
426   as_lineno_1=$LINENO as_lineno_1a=$LINENO
427   as_lineno_2=$LINENO as_lineno_2a=$LINENO
428   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
431   sed -n '
432     p
433     /[$]LINENO/=
434   ' <$as_myself |
435     sed '
436       s/[$]LINENO.*/&-/
437       t lineno
438       b
439       :lineno
440       N
441       :loop
442       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443       t loop
444       s/-\n.*//
445     ' >$as_me.lineno &&
446   chmod +x "$as_me.lineno" ||
447     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448
449   # Don't try to exec as it changes $[0], causing all sort of problems
450   # (the dirname of $[0] is not the place where we might find the
451   # original and so on.  Autoconf is especially sensitive to this).
452   . "./$as_me.lineno"
453   # Exit status is that of the last command.
454   exit
455 }
456
457 ECHO_C= ECHO_N= ECHO_T=
458 case `echo -n x` in #(((((
459 -n*)
460   case `echo 'xy\c'` in
461   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
462   xy)  ECHO_C='\c';;
463   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
464        ECHO_T=' ';;
465   esac;;
466 *)
467   ECHO_N='-n';;
468 esac
469
470 rm -f conf$$ conf$$.exe conf$$.file
471 if test -d conf$$.dir; then
472   rm -f conf$$.dir/conf$$.file
473 else
474   rm -f conf$$.dir
475   mkdir conf$$.dir 2>/dev/null
476 fi
477 if (echo >conf$$.file) 2>/dev/null; then
478   if ln -s conf$$.file conf$$ 2>/dev/null; then
479     as_ln_s='ln -s'
480     # ... but there are two gotchas:
481     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483     # In both cases, we have to default to `cp -p'.
484     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485       as_ln_s='cp -p'
486   elif ln conf$$.file conf$$ 2>/dev/null; then
487     as_ln_s=ln
488   else
489     as_ln_s='cp -p'
490   fi
491 else
492   as_ln_s='cp -p'
493 fi
494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495 rmdir conf$$.dir 2>/dev/null
496
497 if mkdir -p . 2>/dev/null; then
498   as_mkdir_p='mkdir -p "$as_dir"'
499 else
500   test -d ./-p && rmdir ./-p
501   as_mkdir_p=false
502 fi
503
504 if test -x / >/dev/null 2>&1; then
505   as_test_x='test -x'
506 else
507   if ls -dL / >/dev/null 2>&1; then
508     as_ls_L_option=L
509   else
510     as_ls_L_option=
511   fi
512   as_test_x='
513     eval sh -c '\''
514       if test -d "$1"; then
515         test -d "$1/.";
516       else
517         case $1 in #(
518         -*)set "./$1";;
519         esac;
520         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521         ???[sx]*):;;*)false;;esac;fi
522     '\'' sh
523   '
524 fi
525 as_executable_p=$as_test_x
526
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532
533
534
535 # Check that we are running under the correct shell.
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538 case X$lt_ECHO in
539 X*--fallback-echo)
540   # Remove one level of quotation (which was required for Make).
541   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542   ;;
543 esac
544
545 ECHO=${lt_ECHO-echo}
546 if test "X$1" = X--no-reexec; then
547   # Discard the --no-reexec flag, and continue.
548   shift
549 elif test "X$1" = X--fallback-echo; then
550   # Avoid inline document here, it may be left over
551   :
552 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
553   # Yippee, $ECHO works!
554   :
555 else
556   # Restart under the correct shell.
557   exec $SHELL "$0" --no-reexec ${1+"$@"}
558 fi
559
560 if test "X$1" = X--fallback-echo; then
561   # used as fallback echo
562   shift
563   cat <<_LT_EOF
564 $*
565 _LT_EOF
566   exit 0
567 fi
568
569 # The HP-UX ksh and POSIX shell print the target directory to stdout
570 # if CDPATH is set.
571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
572
573 if test -z "$lt_ECHO"; then
574   if test "X${echo_test_string+set}" != Xset; then
575     # find a string as large as possible, as long as the shell can cope with it
576     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
577       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
578       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
579          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
580       then
581         break
582       fi
583     done
584   fi
585
586   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
587      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
588      test "X$echo_testing_string" = "X$echo_test_string"; then
589     :
590   else
591     # The Solaris, AIX, and Digital Unix default echo programs unquote
592     # backslashes.  This makes it impossible to quote backslashes using
593     #   echo "$something" | sed 's/\\/\\\\/g'
594     #
595     # So, first we look for a working echo in the user's PATH.
596
597     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
598     for dir in $PATH /usr/ucb; do
599       IFS="$lt_save_ifs"
600       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
601          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
602          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
603          test "X$echo_testing_string" = "X$echo_test_string"; then
604         ECHO="$dir/echo"
605         break
606       fi
607     done
608     IFS="$lt_save_ifs"
609
610     if test "X$ECHO" = Xecho; then
611       # We didn't find a better echo, so look for alternatives.
612       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
613          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
614          test "X$echo_testing_string" = "X$echo_test_string"; then
615         # This shell has a builtin print -r that does the trick.
616         ECHO='print -r'
617       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
618            test "X$CONFIG_SHELL" != X/bin/ksh; then
619         # If we have ksh, try running configure again with it.
620         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
621         export ORIGINAL_CONFIG_SHELL
622         CONFIG_SHELL=/bin/ksh
623         export CONFIG_SHELL
624         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
625       else
626         # Try using printf.
627         ECHO='printf %s\n'
628         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630            test "X$echo_testing_string" = "X$echo_test_string"; then
631           # Cool, printf works
632           :
633         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
634              test "X$echo_testing_string" = 'X\t' &&
635              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
636              test "X$echo_testing_string" = "X$echo_test_string"; then
637           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
638           export CONFIG_SHELL
639           SHELL="$CONFIG_SHELL"
640           export SHELL
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
643              test "X$echo_testing_string" = 'X\t' &&
644              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
645              test "X$echo_testing_string" = "X$echo_test_string"; then
646           ECHO="$CONFIG_SHELL $0 --fallback-echo"
647         else
648           # maybe with a smaller string...
649           prev=:
650
651           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
652             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
653             then
654               break
655             fi
656             prev="$cmd"
657           done
658
659           if test "$prev" != 'sed 50q "$0"'; then
660             echo_test_string=`eval $prev`
661             export echo_test_string
662             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
663           else
664             # Oops.  We lost completely, so just stick with echo.
665             ECHO=echo
666           fi
667         fi
668       fi
669     fi
670   fi
671 fi
672
673 # Copy echo and quote the copy suitably for passing to libtool from
674 # the Makefile, instead of quoting the original, which is used later.
675 lt_ECHO=$ECHO
676 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
677    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 fi
679
680
681
682
683 test -n "$DJDIR" || exec 7<&0 </dev/null
684 exec 6>&1
685
686 # Name of the host.
687 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
688 # so uname gets run too.
689 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690
691 #
692 # Initializations.
693 #
694 ac_default_prefix=/usr/local
695 ac_clean_files=
696 ac_config_libobj_dir=.
697 LIBOBJS=
698 cross_compiling=no
699 subdirs=
700 MFLAGS=
701 MAKEFLAGS=
702
703 # Identity of this package.
704 PACKAGE_NAME='GNU Libidn'
705 PACKAGE_TARNAME='libidn'
706 PACKAGE_VERSION='1.15'
707 PACKAGE_STRING='GNU Libidn 1.15'
708 PACKAGE_BUGREPORT='bug-libidn@gnu.org'
709 PACKAGE_URL='http://www.gnu.org/software/libidn/'
710
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 gt_needs=
748 ac_header_list=
749 ac_subst_vars='lgltests_LTLIBOBJS
750 lgltests_LIBOBJS
751 lgl_LTLIBOBJS
752 lgl_LIBOBJS
753 gltests_LTLIBOBJS
754 gltests_LIBOBJS
755 gl_LTLIBOBJS
756 gl_LIBOBJS
757 am__EXEEXT_FALSE
758 am__EXEEXT_TRUE
759 LTLIBOBJS
760 LIBOBJS
761 WSTACK_CFLAGS
762 WERROR_CFLAGS
763 VALGRIND
764 CSHARP_FALSE
765 CSHARP_TRUE
766 JAVA_FALSE
767 JAVA_TRUE
768 GJDOC
769 JAR
770 am__fastdepGCJ_FALSE
771 am__fastdepGCJ_TRUE
772 GCJDEPMODE
773 GCJFLAGS
774 ac_ct_GCJ
775 GCJ
776 GTK_DOC_USE_REBASE_FALSE
777 GTK_DOC_USE_REBASE_TRUE
778 GTK_DOC_USE_LIBTOOL_FALSE
779 GTK_DOC_USE_LIBTOOL_TRUE
780 GTK_DOC_BUILD_PDF_FALSE
781 GTK_DOC_BUILD_PDF_TRUE
782 GTK_DOC_BUILD_HTML_FALSE
783 GTK_DOC_BUILD_HTML_TRUE
784 ENABLE_GTK_DOC_FALSE
785 ENABLE_GTK_DOC_TRUE
786 PKG_CONFIG
787 HTML_DIR
788 GTKDOC_MKPDF
789 GTKDOC_REBASE
790 GTKDOC_CHECK
791 TLD_FALSE
792 TLD_TRUE
793 LIBTESTS_LIBDEPS
794 LOCALE_TR_UTF8
795 LOCALE_FR
796 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
797 NEXT_WCHAR_H
798 HAVE_WCHAR_H
799 HAVE_WINT_T
800 WCHAR_H
801 REPLACE_WCWIDTH
802 REPLACE_WCSNRTOMBS
803 REPLACE_WCSRTOMBS
804 REPLACE_WCRTOMB
805 REPLACE_MBSNRTOWCS
806 REPLACE_MBSRTOWCS
807 REPLACE_MBRLEN
808 REPLACE_MBRTOWC
809 REPLACE_MBSINIT
810 REPLACE_WCTOB
811 REPLACE_BTOWC
812 REPLACE_MBSTATE_T
813 HAVE_DECL_WCWIDTH
814 HAVE_DECL_WCTOB
815 HAVE_WCSNRTOMBS
816 HAVE_WCSRTOMBS
817 HAVE_WCRTOMB
818 HAVE_MBSNRTOWCS
819 HAVE_MBSRTOWCS
820 HAVE_MBRLEN
821 HAVE_MBRTOWC
822 HAVE_MBSINIT
823 HAVE_BTOWC
824 GNULIB_WCWIDTH
825 GNULIB_WCSNRTOMBS
826 GNULIB_WCSRTOMBS
827 GNULIB_WCRTOMB
828 GNULIB_MBSNRTOWCS
829 GNULIB_MBSRTOWCS
830 GNULIB_MBRLEN
831 GNULIB_MBRTOWC
832 GNULIB_MBSINIT
833 GNULIB_WCTOB
834 GNULIB_BTOWC
835 STDINT_H
836 WINT_T_SUFFIX
837 WCHAR_T_SUFFIX
838 SIG_ATOMIC_T_SUFFIX
839 SIZE_T_SUFFIX
840 PTRDIFF_T_SUFFIX
841 HAVE_SIGNED_WINT_T
842 HAVE_SIGNED_WCHAR_T
843 HAVE_SIGNED_SIG_ATOMIC_T
844 BITSIZEOF_WINT_T
845 BITSIZEOF_WCHAR_T
846 BITSIZEOF_SIG_ATOMIC_T
847 BITSIZEOF_SIZE_T
848 BITSIZEOF_PTRDIFF_T
849 HAVE_SYS_BITYPES_H
850 HAVE_SYS_INTTYPES_H
851 HAVE_STDINT_H
852 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
853 NEXT_STDINT_H
854 HAVE_SYS_TYPES_H
855 HAVE_INTTYPES_H
856 HAVE_UNSIGNED_LONG_LONG_INT
857 HAVE_LONG_LONG_INT
858 HAVE__BOOL
859 STDBOOL_H
860 APPLE_UNIVERSAL_BUILD
861 HAVE_VISIBILITY
862 CFLAG_VISIBILITY
863 HAVE_LD_VERSION_SCRIPT_FALSE
864 HAVE_LD_VERSION_SCRIPT_TRUE
865 HAVE_LD_OUTPUT_DEF_FALSE
866 HAVE_LD_OUTPUT_DEF_TRUE
867 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
868 NEXT_ICONV_H
869 ICONV_H
870 REPLACE_ICONV_UTF
871 REPLACE_ICONV_OPEN
872 REPLACE_ICONV
873 abs_aux_dir
874 WARN_CFLAGS
875 HAVE_UNISTD_H
876 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
877 NEXT_UNISTD_H
878 UNISTD_H_HAVE_WINSOCK2_H
879 REPLACE_WRITE
880 REPLACE_LSEEK
881 REPLACE_LCHOWN
882 REPLACE_GETPAGESIZE
883 REPLACE_GETCWD
884 REPLACE_FCHDIR
885 REPLACE_CLOSE
886 REPLACE_CHOWN
887 HAVE_SYS_PARAM_H
888 HAVE_OS_H
889 HAVE_DECL_GETLOGIN_R
890 HAVE_DECL_ENVIRON
891 HAVE_SLEEP
892 HAVE_READLINK
893 HAVE_LINK
894 HAVE_GETUSERSHELL
895 HAVE_GETPAGESIZE
896 HAVE_GETHOSTNAME
897 HAVE_GETDTABLESIZE
898 HAVE_GETDOMAINNAME
899 HAVE_FTRUNCATE
900 HAVE_FSYNC
901 HAVE_EUIDACCESS
902 HAVE_DUP2
903 GNULIB_WRITE
904 GNULIB_UNISTD_H_SIGPIPE
905 GNULIB_SLEEP
906 GNULIB_READLINK
907 GNULIB_LSEEK
908 GNULIB_LINK
909 GNULIB_LCHOWN
910 GNULIB_GETUSERSHELL
911 GNULIB_GETPAGESIZE
912 GNULIB_GETLOGIN_R
913 GNULIB_GETHOSTNAME
914 GNULIB_GETDTABLESIZE
915 GNULIB_GETDOMAINNAME
916 GNULIB_GETCWD
917 GNULIB_FTRUNCATE
918 GNULIB_FSYNC
919 GNULIB_FCHDIR
920 GNULIB_EUIDACCESS
921 GNULIB_ENVIRON
922 GNULIB_DUP2
923 GNULIB_CLOSE
924 GNULIB_CHOWN
925 NEXT_AS_FIRST_DIRECTIVE_STRING_H
926 NEXT_STRING_H
927 REPLACE_STRSIGNAL
928 REPLACE_STRERROR
929 REPLACE_STRCASESTR
930 REPLACE_STRSTR
931 REPLACE_STRDUP
932 REPLACE_MEMMEM
933 HAVE_STRVERSCMP
934 HAVE_DECL_STRSIGNAL
935 HAVE_DECL_STRERROR
936 HAVE_DECL_STRTOK_R
937 HAVE_STRCASESTR
938 HAVE_STRSEP
939 HAVE_STRPBRK
940 HAVE_DECL_STRNLEN
941 HAVE_DECL_STRNDUP
942 HAVE_STRNDUP
943 HAVE_DECL_STRDUP
944 HAVE_STRCHRNUL
945 HAVE_STPNCPY
946 HAVE_STPCPY
947 HAVE_RAWMEMCHR
948 HAVE_DECL_MEMRCHR
949 HAVE_MEMPCPY
950 HAVE_DECL_MEMMEM
951 GNULIB_STRVERSCMP
952 GNULIB_STRSIGNAL
953 GNULIB_STRERROR
954 GNULIB_MBSTOK_R
955 GNULIB_MBSSEP
956 GNULIB_MBSSPN
957 GNULIB_MBSPBRK
958 GNULIB_MBSCSPN
959 GNULIB_MBSCASESTR
960 GNULIB_MBSPCASECMP
961 GNULIB_MBSNCASECMP
962 GNULIB_MBSCASECMP
963 GNULIB_MBSSTR
964 GNULIB_MBSRCHR
965 GNULIB_MBSCHR
966 GNULIB_MBSNLEN
967 GNULIB_MBSLEN
968 GNULIB_STRTOK_R
969 GNULIB_STRCASESTR
970 GNULIB_STRSTR
971 GNULIB_STRSEP
972 GNULIB_STRPBRK
973 GNULIB_STRNLEN
974 GNULIB_STRNDUP
975 GNULIB_STRDUP
976 GNULIB_STRCHRNUL
977 GNULIB_STPNCPY
978 GNULIB_STPCPY
979 GNULIB_RAWMEMCHR
980 GNULIB_MEMRCHR
981 GNULIB_MEMPCPY
982 GNULIB_MEMMEM
983 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
984 NEXT_STDARG_H
985 STDARG_H
986 PMCCABE
987 GETOPT_H
988 EOVERFLOW_VALUE
989 EOVERFLOW_HIDDEN
990 ENOLINK_VALUE
991 ENOLINK_HIDDEN
992 EMULTIHOP_VALUE
993 EMULTIHOP_HIDDEN
994 ERRNO_H
995 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
996 NEXT_ERRNO_H
997 PRAGMA_SYSTEM_HEADER
998 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
999 INCLUDE_NEXT
1000 CSHARPCOMPFLAGS
1001 HAVE_CSC
1002 HAVE_MCS
1003 HAVE_CSCC
1004 HAVE_CSC_IN_PATH
1005 HAVE_MCS_IN_PATH
1006 HAVE_CSCC_IN_PATH
1007 CSHARP_CHOICE
1008 GL_COND_LIBTOOL_FALSE
1009 GL_COND_LIBTOOL_TRUE
1010 lispdir
1011 EMACSLOADPATH
1012 EMACS
1013 POSUB
1014 LTLIBINTL
1015 LIBINTL
1016 INTLLIBS
1017 LTLIBICONV
1018 LIBICONV
1019 INTL_MACOSX_LIBS
1020 XGETTEXT_EXTRA_OPTIONS
1021 MSGMERGE
1022 XGETTEXT_015
1023 XGETTEXT
1024 GMSGFMT_015
1025 MSGFMT_015
1026 GMSGFMT
1027 MSGFMT
1028 GETTEXT_MACRO_VERSION
1029 USE_NLS
1030 HELP2MAN
1031 PERL
1032 OTOOL64
1033 OTOOL
1034 LIPO
1035 NMEDIT
1036 DSYMUTIL
1037 lt_ECHO
1038 AR
1039 LN_S
1040 NM
1041 ac_ct_DUMPBIN
1042 DUMPBIN
1043 LD
1044 FGREP
1045 SED
1046 LIBTOOL
1047 EGREP
1048 GREP
1049 CPP
1050 RANLIB
1051 am__fastdepCC_FALSE
1052 am__fastdepCC_TRUE
1053 CCDEPMODE
1054 AMDEPBACKSLASH
1055 AMDEP_FALSE
1056 AMDEP_TRUE
1057 am__quote
1058 am__include
1059 DEPDIR
1060 OBJEXT
1061 EXEEXT
1062 ac_ct_CC
1063 CPPFLAGS
1064 LDFLAGS
1065 CFLAGS
1066 CC
1067 OBJDUMP
1068 DLLTOOL
1069 AS
1070 host_os
1071 host_vendor
1072 host_cpu
1073 host
1074 build_os
1075 build_vendor
1076 build_cpu
1077 build
1078 am__untar
1079 am__tar
1080 AMTAR
1081 am__leading_dot
1082 SET_MAKE
1083 AWK
1084 mkdir_p
1085 MKDIR_P
1086 INSTALL_STRIP_PROGRAM
1087 STRIP
1088 install_sh
1089 MAKEINFO
1090 AUTOHEADER
1091 AUTOMAKE
1092 AUTOCONF
1093 ACLOCAL
1094 VERSION
1095 PACKAGE
1096 CYGPATH_W
1097 am__isrc
1098 INSTALL_DATA
1099 INSTALL_SCRIPT
1100 INSTALL_PROGRAM
1101 DLL_VERSION
1102 LT_AGE
1103 LT_REVISION
1104 LT_CURRENT
1105 target_alias
1106 host_alias
1107 build_alias
1108 LIBS
1109 ECHO_T
1110 ECHO_N
1111 ECHO_C
1112 DEFS
1113 mandir
1114 localedir
1115 libdir
1116 psdir
1117 pdfdir
1118 dvidir
1119 htmldir
1120 infodir
1121 docdir
1122 oldincludedir
1123 includedir
1124 localstatedir
1125 sharedstatedir
1126 sysconfdir
1127 datadir
1128 datarootdir
1129 libexecdir
1130 sbindir
1131 bindir
1132 program_transform_name
1133 prefix
1134 exec_prefix
1135 PACKAGE_URL
1136 PACKAGE_BUGREPORT
1137 PACKAGE_STRING
1138 PACKAGE_VERSION
1139 PACKAGE_TARNAME
1140 PACKAGE_NAME
1141 PATH_SEPARATOR
1142 SHELL'
1143 ac_subst_files=''
1144 ac_user_opts='
1145 enable_option_checking
1146 enable_dependency_tracking
1147 enable_shared
1148 enable_static
1149 with_pic
1150 enable_fast_install
1151 with_gnu_ld
1152 enable_libtool_lock
1153 enable_nls
1154 enable_rpath
1155 with_libiconv_prefix
1156 with_libintl_prefix
1157 with_lispdir
1158 enable_csharp
1159 with_packager
1160 with_packager_version
1161 with_packager_bug_reports
1162 enable_ld_version_script
1163 enable_tld
1164 with_html_dir
1165 enable_gtk_doc
1166 enable_gtk_doc_html
1167 enable_gtk_doc_pdf
1168 enable_java
1169 enable_valgrind_tests
1170 enable_gcc_warnings
1171 '
1172       ac_precious_vars='build_alias
1173 host_alias
1174 target_alias
1175 CC
1176 CFLAGS
1177 LDFLAGS
1178 LIBS
1179 CPPFLAGS
1180 CPP
1181 EMACS
1182 EMACSLOADPATH
1183 PKG_CONFIG'
1184
1185
1186 # Initialize some variables set by options.
1187 ac_init_help=
1188 ac_init_version=false
1189 ac_unrecognized_opts=
1190 ac_unrecognized_sep=
1191 # The variables have the same names as the options, with
1192 # dashes changed to underlines.
1193 cache_file=/dev/null
1194 exec_prefix=NONE
1195 no_create=
1196 no_recursion=
1197 prefix=NONE
1198 program_prefix=NONE
1199 program_suffix=NONE
1200 program_transform_name=s,x,x,
1201 silent=
1202 site=
1203 srcdir=
1204 verbose=
1205 x_includes=NONE
1206 x_libraries=NONE
1207
1208 # Installation directory options.
1209 # These are left unexpanded so users can "make install exec_prefix=/foo"
1210 # and all the variables that are supposed to be based on exec_prefix
1211 # by default will actually change.
1212 # Use braces instead of parens because sh, perl, etc. also accept them.
1213 # (The list follows the same order as the GNU Coding Standards.)
1214 bindir='${exec_prefix}/bin'
1215 sbindir='${exec_prefix}/sbin'
1216 libexecdir='${exec_prefix}/libexec'
1217 datarootdir='${prefix}/share'
1218 datadir='${datarootdir}'
1219 sysconfdir='${prefix}/etc'
1220 sharedstatedir='${prefix}/com'
1221 localstatedir='${prefix}/var'
1222 includedir='${prefix}/include'
1223 oldincludedir='/usr/include'
1224 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1225 infodir='${datarootdir}/info'
1226 htmldir='${docdir}'
1227 dvidir='${docdir}'
1228 pdfdir='${docdir}'
1229 psdir='${docdir}'
1230 libdir='${exec_prefix}/lib'
1231 localedir='${datarootdir}/locale'
1232 mandir='${datarootdir}/man'
1233
1234 ac_prev=
1235 ac_dashdash=
1236 for ac_option
1237 do
1238   # If the previous option needs an argument, assign it.
1239   if test -n "$ac_prev"; then
1240     eval $ac_prev=\$ac_option
1241     ac_prev=
1242     continue
1243   fi
1244
1245   case $ac_option in
1246   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1247   *=)   ac_optarg= ;;
1248   *)    ac_optarg=yes ;;
1249   esac
1250
1251   # Accept the important Cygnus configure options, so we can diagnose typos.
1252
1253   case $ac_dashdash$ac_option in
1254   --)
1255     ac_dashdash=yes ;;
1256
1257   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1258     ac_prev=bindir ;;
1259   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1260     bindir=$ac_optarg ;;
1261
1262   -build | --build | --buil | --bui | --bu)
1263     ac_prev=build_alias ;;
1264   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1265     build_alias=$ac_optarg ;;
1266
1267   -cache-file | --cache-file | --cache-fil | --cache-fi \
1268   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1269     ac_prev=cache_file ;;
1270   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1271   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1272     cache_file=$ac_optarg ;;
1273
1274   --config-cache | -C)
1275     cache_file=config.cache ;;
1276
1277   -datadir | --datadir | --datadi | --datad)
1278     ac_prev=datadir ;;
1279   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1280     datadir=$ac_optarg ;;
1281
1282   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1283   | --dataroo | --dataro | --datar)
1284     ac_prev=datarootdir ;;
1285   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1286   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1287     datarootdir=$ac_optarg ;;
1288
1289   -disable-* | --disable-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error $? "invalid feature name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "enable_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval enable_$ac_useropt=no ;;
1304
1305   -docdir | --docdir | --docdi | --doc | --do)
1306     ac_prev=docdir ;;
1307   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1308     docdir=$ac_optarg ;;
1309
1310   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1311     ac_prev=dvidir ;;
1312   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1313     dvidir=$ac_optarg ;;
1314
1315   -enable-* | --enable-*)
1316     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1317     # Reject names that are not valid shell variable names.
1318     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319       as_fn_error $? "invalid feature name: $ac_useropt"
1320     ac_useropt_orig=$ac_useropt
1321     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322     case $ac_user_opts in
1323       *"
1324 "enable_$ac_useropt"
1325 "*) ;;
1326       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1327          ac_unrecognized_sep=', ';;
1328     esac
1329     eval enable_$ac_useropt=\$ac_optarg ;;
1330
1331   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1332   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1333   | --exec | --exe | --ex)
1334     ac_prev=exec_prefix ;;
1335   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1336   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1337   | --exec=* | --exe=* | --ex=*)
1338     exec_prefix=$ac_optarg ;;
1339
1340   -gas | --gas | --ga | --g)
1341     # Obsolete; use --with-gas.
1342     with_gas=yes ;;
1343
1344   -help | --help | --hel | --he | -h)
1345     ac_init_help=long ;;
1346   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1347     ac_init_help=recursive ;;
1348   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1349     ac_init_help=short ;;
1350
1351   -host | --host | --hos | --ho)
1352     ac_prev=host_alias ;;
1353   -host=* | --host=* | --hos=* | --ho=*)
1354     host_alias=$ac_optarg ;;
1355
1356   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1357     ac_prev=htmldir ;;
1358   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1359   | --ht=*)
1360     htmldir=$ac_optarg ;;
1361
1362   -includedir | --includedir | --includedi | --included | --include \
1363   | --includ | --inclu | --incl | --inc)
1364     ac_prev=includedir ;;
1365   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1366   | --includ=* | --inclu=* | --incl=* | --inc=*)
1367     includedir=$ac_optarg ;;
1368
1369   -infodir | --infodir | --infodi | --infod | --info | --inf)
1370     ac_prev=infodir ;;
1371   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1372     infodir=$ac_optarg ;;
1373
1374   -libdir | --libdir | --libdi | --libd)
1375     ac_prev=libdir ;;
1376   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1377     libdir=$ac_optarg ;;
1378
1379   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1380   | --libexe | --libex | --libe)
1381     ac_prev=libexecdir ;;
1382   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1383   | --libexe=* | --libex=* | --libe=*)
1384     libexecdir=$ac_optarg ;;
1385
1386   -localedir | --localedir | --localedi | --localed | --locale)
1387     ac_prev=localedir ;;
1388   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1389     localedir=$ac_optarg ;;
1390
1391   -localstatedir | --localstatedir | --localstatedi | --localstated \
1392   | --localstate | --localstat | --localsta | --localst | --locals)
1393     ac_prev=localstatedir ;;
1394   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1395   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1396     localstatedir=$ac_optarg ;;
1397
1398   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1399     ac_prev=mandir ;;
1400   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1401     mandir=$ac_optarg ;;
1402
1403   -nfp | --nfp | --nf)
1404     # Obsolete; use --without-fp.
1405     with_fp=no ;;
1406
1407   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1408   | --no-cr | --no-c | -n)
1409     no_create=yes ;;
1410
1411   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1412   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1413     no_recursion=yes ;;
1414
1415   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1416   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1417   | --oldin | --oldi | --old | --ol | --o)
1418     ac_prev=oldincludedir ;;
1419   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1420   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1421   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1422     oldincludedir=$ac_optarg ;;
1423
1424   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1425     ac_prev=prefix ;;
1426   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1427     prefix=$ac_optarg ;;
1428
1429   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1430   | --program-pre | --program-pr | --program-p)
1431     ac_prev=program_prefix ;;
1432   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1433   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1434     program_prefix=$ac_optarg ;;
1435
1436   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1437   | --program-suf | --program-su | --program-s)
1438     ac_prev=program_suffix ;;
1439   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1440   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1441     program_suffix=$ac_optarg ;;
1442
1443   -program-transform-name | --program-transform-name \
1444   | --program-transform-nam | --program-transform-na \
1445   | --program-transform-n | --program-transform- \
1446   | --program-transform | --program-transfor \
1447   | --program-transfo | --program-transf \
1448   | --program-trans | --program-tran \
1449   | --progr-tra | --program-tr | --program-t)
1450     ac_prev=program_transform_name ;;
1451   -program-transform-name=* | --program-transform-name=* \
1452   | --program-transform-nam=* | --program-transform-na=* \
1453   | --program-transform-n=* | --program-transform-=* \
1454   | --program-transform=* | --program-transfor=* \
1455   | --program-transfo=* | --program-transf=* \
1456   | --program-trans=* | --program-tran=* \
1457   | --progr-tra=* | --program-tr=* | --program-t=*)
1458     program_transform_name=$ac_optarg ;;
1459
1460   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1461     ac_prev=pdfdir ;;
1462   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1463     pdfdir=$ac_optarg ;;
1464
1465   -psdir | --psdir | --psdi | --psd | --ps)
1466     ac_prev=psdir ;;
1467   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1468     psdir=$ac_optarg ;;
1469
1470   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1471   | -silent | --silent | --silen | --sile | --sil)
1472     silent=yes ;;
1473
1474   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1475     ac_prev=sbindir ;;
1476   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1477   | --sbi=* | --sb=*)
1478     sbindir=$ac_optarg ;;
1479
1480   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1481   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1482   | --sharedst | --shareds | --shared | --share | --shar \
1483   | --sha | --sh)
1484     ac_prev=sharedstatedir ;;
1485   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1486   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1487   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1488   | --sha=* | --sh=*)
1489     sharedstatedir=$ac_optarg ;;
1490
1491   -site | --site | --sit)
1492     ac_prev=site ;;
1493   -site=* | --site=* | --sit=*)
1494     site=$ac_optarg ;;
1495
1496   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1497     ac_prev=srcdir ;;
1498   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1499     srcdir=$ac_optarg ;;
1500
1501   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1502   | --syscon | --sysco | --sysc | --sys | --sy)
1503     ac_prev=sysconfdir ;;
1504   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1505   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1506     sysconfdir=$ac_optarg ;;
1507
1508   -target | --target | --targe | --targ | --tar | --ta | --t)
1509     ac_prev=target_alias ;;
1510   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1511     target_alias=$ac_optarg ;;
1512
1513   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1514     verbose=yes ;;
1515
1516   -version | --version | --versio | --versi | --vers | -V)
1517     ac_init_version=: ;;
1518
1519   -with-* | --with-*)
1520     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1521     # Reject names that are not valid shell variable names.
1522     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1523       as_fn_error $? "invalid package name: $ac_useropt"
1524     ac_useropt_orig=$ac_useropt
1525     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1526     case $ac_user_opts in
1527       *"
1528 "with_$ac_useropt"
1529 "*) ;;
1530       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1531          ac_unrecognized_sep=', ';;
1532     esac
1533     eval with_$ac_useropt=\$ac_optarg ;;
1534
1535   -without-* | --without-*)
1536     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1537     # Reject names that are not valid shell variable names.
1538     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1539       as_fn_error $? "invalid package name: $ac_useropt"
1540     ac_useropt_orig=$ac_useropt
1541     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1542     case $ac_user_opts in
1543       *"
1544 "with_$ac_useropt"
1545 "*) ;;
1546       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1547          ac_unrecognized_sep=', ';;
1548     esac
1549     eval with_$ac_useropt=no ;;
1550
1551   --x)
1552     # Obsolete; use --with-x.
1553     with_x=yes ;;
1554
1555   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1556   | --x-incl | --x-inc | --x-in | --x-i)
1557     ac_prev=x_includes ;;
1558   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1559   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1560     x_includes=$ac_optarg ;;
1561
1562   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1563   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1564     ac_prev=x_libraries ;;
1565   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1566   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1567     x_libraries=$ac_optarg ;;
1568
1569   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1570 Try \`$0 --help' for more information"
1571     ;;
1572
1573   *=*)
1574     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1575     # Reject names that are not valid shell variable names.
1576     case $ac_envvar in #(
1577       '' | [0-9]* | *[!_$as_cr_alnum]* )
1578       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1579     esac
1580     eval $ac_envvar=\$ac_optarg
1581     export $ac_envvar ;;
1582
1583   *)
1584     # FIXME: should be removed in autoconf 3.0.
1585     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1586     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1587       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1588     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1589     ;;
1590
1591   esac
1592 done
1593
1594 if test -n "$ac_prev"; then
1595   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1596   as_fn_error $? "missing argument to $ac_option"
1597 fi
1598
1599 if test -n "$ac_unrecognized_opts"; then
1600   case $enable_option_checking in
1601     no) ;;
1602     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1603     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1604   esac
1605 fi
1606
1607 # Check all directory arguments for consistency.
1608 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1609                 datadir sysconfdir sharedstatedir localstatedir includedir \
1610                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1611                 libdir localedir mandir
1612 do
1613   eval ac_val=\$$ac_var
1614   # Remove trailing slashes.
1615   case $ac_val in
1616     */ )
1617       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1618       eval $ac_var=\$ac_val;;
1619   esac
1620   # Be sure to have absolute directory names.
1621   case $ac_val in
1622     [\\/$]* | ?:[\\/]* )  continue;;
1623     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1624   esac
1625   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1626 done
1627
1628 # There might be people who depend on the old broken behavior: `$host'
1629 # used to hold the argument of --host etc.
1630 # FIXME: To remove some day.
1631 build=$build_alias
1632 host=$host_alias
1633 target=$target_alias
1634
1635 # FIXME: To remove some day.
1636 if test "x$host_alias" != x; then
1637   if test "x$build_alias" = x; then
1638     cross_compiling=maybe
1639     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1640     If a cross compiler is detected then cross compile mode will be used" >&2
1641   elif test "x$build_alias" != "x$host_alias"; then
1642     cross_compiling=yes
1643   fi
1644 fi
1645
1646 ac_tool_prefix=
1647 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1648
1649 test "$silent" = yes && exec 6>/dev/null
1650
1651
1652 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1653 ac_ls_di=`ls -di .` &&
1654 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1655   as_fn_error $? "working directory cannot be determined"
1656 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1657   as_fn_error $? "pwd does not report name of working directory"
1658
1659
1660 # Find the source files, if location was not specified.
1661 if test -z "$srcdir"; then
1662   ac_srcdir_defaulted=yes
1663   # Try the directory containing this script, then the parent directory.
1664   ac_confdir=`$as_dirname -- "$as_myself" ||
1665 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1666          X"$as_myself" : 'X\(//\)[^/]' \| \
1667          X"$as_myself" : 'X\(//\)$' \| \
1668          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1669 $as_echo X"$as_myself" |
1670     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1671             s//\1/
1672             q
1673           }
1674           /^X\(\/\/\)[^/].*/{
1675             s//\1/
1676             q
1677           }
1678           /^X\(\/\/\)$/{
1679             s//\1/
1680             q
1681           }
1682           /^X\(\/\).*/{
1683             s//\1/
1684             q
1685           }
1686           s/.*/./; q'`
1687   srcdir=$ac_confdir
1688   if test ! -r "$srcdir/$ac_unique_file"; then
1689     srcdir=..
1690   fi
1691 else
1692   ac_srcdir_defaulted=no
1693 fi
1694 if test ! -r "$srcdir/$ac_unique_file"; then
1695   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1696   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1697 fi
1698 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1699 ac_abs_confdir=`(
1700         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1701         pwd)`
1702 # When building in place, set srcdir=.
1703 if test "$ac_abs_confdir" = "$ac_pwd"; then
1704   srcdir=.
1705 fi
1706 # Remove unnecessary trailing slashes from srcdir.
1707 # Double slashes in file names in object file debugging info
1708 # mess up M-x gdb in Emacs.
1709 case $srcdir in
1710 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1711 esac
1712 for ac_var in $ac_precious_vars; do
1713   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1714   eval ac_env_${ac_var}_value=\$${ac_var}
1715   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1716   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1717 done
1718
1719 #
1720 # Report the --help message.
1721 #
1722 if test "$ac_init_help" = "long"; then
1723   # Omit some internal or obsolete options to make the list less imposing.
1724   # This message is too long to be a string in the A/UX 3.1 sh.
1725   cat <<_ACEOF
1726 \`configure' configures GNU Libidn 1.15 to adapt to many kinds of systems.
1727
1728 Usage: $0 [OPTION]... [VAR=VALUE]...
1729
1730 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1731 VAR=VALUE.  See below for descriptions of some of the useful variables.
1732
1733 Defaults for the options are specified in brackets.
1734
1735 Configuration:
1736   -h, --help              display this help and exit
1737       --help=short        display options specific to this package
1738       --help=recursive    display the short help of all the included packages
1739   -V, --version           display version information and exit
1740   -q, --quiet, --silent   do not print \`checking ...' messages
1741       --cache-file=FILE   cache test results in FILE [disabled]
1742   -C, --config-cache      alias for \`--cache-file=config.cache'
1743   -n, --no-create         do not create output files
1744       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1745
1746 Installation directories:
1747   --prefix=PREFIX         install architecture-independent files in PREFIX
1748                           [$ac_default_prefix]
1749   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1750                           [PREFIX]
1751
1752 By default, \`make install' will install all the files in
1753 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1754 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1755 for instance \`--prefix=\$HOME'.
1756
1757 For better control, use the options below.
1758
1759 Fine tuning of the installation directories:
1760   --bindir=DIR            user executables [EPREFIX/bin]
1761   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1762   --libexecdir=DIR        program executables [EPREFIX/libexec]
1763   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1764   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1765   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1766   --libdir=DIR            object code libraries [EPREFIX/lib]
1767   --includedir=DIR        C header files [PREFIX/include]
1768   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1769   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1770   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1771   --infodir=DIR           info documentation [DATAROOTDIR/info]
1772   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1773   --mandir=DIR            man documentation [DATAROOTDIR/man]
1774   --docdir=DIR            documentation root [DATAROOTDIR/doc/libidn]
1775   --htmldir=DIR           html documentation [DOCDIR]
1776   --dvidir=DIR            dvi documentation [DOCDIR]
1777   --pdfdir=DIR            pdf documentation [DOCDIR]
1778   --psdir=DIR             ps documentation [DOCDIR]
1779 _ACEOF
1780
1781   cat <<\_ACEOF
1782
1783 Program names:
1784   --program-prefix=PREFIX            prepend PREFIX to installed program names
1785   --program-suffix=SUFFIX            append SUFFIX to installed program names
1786   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1787
1788 System types:
1789   --build=BUILD     configure for building on BUILD [guessed]
1790   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1791 _ACEOF
1792 fi
1793
1794 if test -n "$ac_init_help"; then
1795   case $ac_init_help in
1796      short | recursive ) echo "Configuration of GNU Libidn 1.15:";;
1797    esac
1798   cat <<\_ACEOF
1799
1800 Optional Features:
1801   --disable-option-checking  ignore unrecognized --enable/--with options
1802   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1803   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1804   --disable-dependency-tracking  speeds up one-time build
1805   --enable-dependency-tracking   do not reject slow dependency extractors
1806   --enable-shared[=PKGS]  build shared libraries [default=yes]
1807   --enable-static[=PKGS]  build static libraries [default=yes]
1808   --enable-fast-install[=PKGS]
1809                           optimize for fast installation [default=yes]
1810   --disable-libtool-lock  avoid locking (might break parallel builds)
1811   --disable-nls           do not use Native Language Support
1812   --disable-rpath         do not hardcode runtime library paths
1813   --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
1814   --enable-ld-version-script
1815                           enable linker version script (default is enabled
1816                           when possible)
1817   --disable-tld           disable TLD code
1818   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1819   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1820   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1821   --enable-java           enable Java API
1822   --enable-valgrind-tests run self tests under valgrind
1823   --enable-gcc-warnings   turn on lots of GCC warnings (for developers)
1824
1825 Optional Packages:
1826   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1827   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1828   --with-pic              try to use only PIC/non-PIC objects [default=use
1829                           both]
1830   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1831   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1832   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1833   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1834   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1835   --without-libintl-prefix     don't search for libintl in includedir and libdir
1836   --with-lispdir          override the default lisp directory
1837   --with-packager         String identifying the packager of this software
1838   --with-packager-version Packager-specific version information
1839   --with-packager-bug-reports
1840                           Packager info for bug reports (URL/e-mail/...)
1841   --with-html-dir=PATH    path to installed docs
1842
1843 Some influential environment variables:
1844   CC          C compiler command
1845   CFLAGS      C compiler flags
1846   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1847               nonstandard directory <lib dir>
1848   LIBS        libraries to pass to the linker, e.g. -l<library>
1849   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1850               you have headers in a nonstandard directory <include dir>
1851   CPP         C preprocessor
1852   EMACS       the Emacs editor command
1853   EMACSLOADPATH
1854               the Emacs library search path
1855   PKG_CONFIG  path to pkg-config utility
1856
1857 Use these variables to override the choices made by `configure' or to help
1858 it to find libraries and programs with nonstandard names/locations.
1859
1860 Report bugs to <bug-libidn@gnu.org>.
1861 GNU Libidn home page: <http://www.gnu.org/software/libidn/>.
1862 General help using GNU software: <http://www.gnu.org/gethelp/>.
1863 _ACEOF
1864 ac_status=$?
1865 fi
1866
1867 if test "$ac_init_help" = "recursive"; then
1868   # If there are subdirs, report their specific --help.
1869   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1870     test -d "$ac_dir" ||
1871       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1872       continue
1873     ac_builddir=.
1874
1875 case "$ac_dir" in
1876 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1877 *)
1878   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1879   # A ".." for each directory in $ac_dir_suffix.
1880   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1881   case $ac_top_builddir_sub in
1882   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1883   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1884   esac ;;
1885 esac
1886 ac_abs_top_builddir=$ac_pwd
1887 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1888 # for backward compatibility:
1889 ac_top_builddir=$ac_top_build_prefix
1890
1891 case $srcdir in
1892   .)  # We are building in place.
1893     ac_srcdir=.
1894     ac_top_srcdir=$ac_top_builddir_sub
1895     ac_abs_top_srcdir=$ac_pwd ;;
1896   [\\/]* | ?:[\\/]* )  # Absolute name.
1897     ac_srcdir=$srcdir$ac_dir_suffix;
1898     ac_top_srcdir=$srcdir
1899     ac_abs_top_srcdir=$srcdir ;;
1900   *) # Relative name.
1901     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1902     ac_top_srcdir=$ac_top_build_prefix$srcdir
1903     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1904 esac
1905 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1906
1907     cd "$ac_dir" || { ac_status=$?; continue; }
1908     # Check for guested configure.
1909     if test -f "$ac_srcdir/configure.gnu"; then
1910       echo &&
1911       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1912     elif test -f "$ac_srcdir/configure"; then
1913       echo &&
1914       $SHELL "$ac_srcdir/configure" --help=recursive
1915     else
1916       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1917     fi || ac_status=$?
1918     cd "$ac_pwd" || { ac_status=$?; break; }
1919   done
1920 fi
1921
1922 test -n "$ac_init_help" && exit $ac_status
1923 if $ac_init_version; then
1924   cat <<\_ACEOF
1925 GNU Libidn configure 1.15
1926 generated by GNU Autoconf 2.67
1927
1928 Copyright (C) 2010 Free Software Foundation, Inc.
1929 This configure script is free software; the Free Software Foundation
1930 gives unlimited permission to copy, distribute and modify it.
1931
1932 Copyright (c) 2002-2008 Simon Josefsson <simon@josefsson.org>.
1933 _ACEOF
1934   exit
1935 fi
1936
1937 ## ------------------------ ##
1938 ## Autoconf initialization. ##
1939 ## ------------------------ ##
1940
1941 # ac_fn_c_try_compile LINENO
1942 # --------------------------
1943 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_compile ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   rm -f conftest.$ac_objext
1948   if { { ac_try="$ac_compile"
1949 case "(($ac_try" in
1950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951   *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955   (eval "$ac_compile") 2>conftest.err
1956   ac_status=$?
1957   if test -s conftest.err; then
1958     grep -v '^ *+' conftest.err >conftest.er1
1959     cat conftest.er1 >&5
1960     mv -f conftest.er1 conftest.err
1961   fi
1962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963   test $ac_status = 0; } && {
1964          test -z "$ac_c_werror_flag" ||
1965          test ! -s conftest.err
1966        } && test -s conftest.$ac_objext; then :
1967   ac_retval=0
1968 else
1969   $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972         ac_retval=1
1973 fi
1974   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975   as_fn_set_status $ac_retval
1976
1977 } # ac_fn_c_try_compile
1978
1979 # ac_fn_c_try_cpp LINENO
1980 # ----------------------
1981 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_c_try_cpp ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   if { { ac_try="$ac_cpp conftest.$ac_ext"
1986 case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993   ac_status=$?
1994   if test -s conftest.err; then
1995     grep -v '^ *+' conftest.err >conftest.er1
1996     cat conftest.er1 >&5
1997     mv -f conftest.er1 conftest.err
1998   fi
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; } > conftest.i && {
2001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2002          test ! -s conftest.err
2003        }; then :
2004   ac_retval=0
2005 else
2006   $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009     ac_retval=1
2010 fi
2011   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012   as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_cpp
2015
2016 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2019 # the include files in INCLUDES and setting the cache variable VAR
2020 # accordingly.
2021 ac_fn_c_check_header_mongrel ()
2022 {
2023   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024   if eval "test \"\${$3+set}\"" = set; then :
2025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval "test \"\${$3+set}\"" = set; then :
2028   $as_echo_n "(cached) " >&6
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 else
2034   # Is the header compilable?
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2036 $as_echo_n "checking $2 usability... " >&6; }
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 #include <$2>
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043   ac_header_compiler=yes
2044 else
2045   ac_header_compiler=no
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2049 $as_echo "$ac_header_compiler" >&6; }
2050
2051 # Is the header present?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2053 $as_echo_n "checking $2 presence... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_c_try_cpp "$LINENO"; then :
2059   ac_header_preproc=yes
2060 else
2061   ac_header_preproc=no
2062 fi
2063 rm -f conftest.err conftest.i conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2065 $as_echo "$ac_header_preproc" >&6; }
2066
2067 # So?  What about this header?
2068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2069   yes:no: )
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2071 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074     ;;
2075   no:yes:* )
2076     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2077 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2078     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2079 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2080     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2081 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2082     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2083 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086 ( $as_echo "## --------------------------------- ##
2087 ## Report this to bug-libidn@gnu.org ##
2088 ## --------------------------------- ##"
2089      ) | sed "s/^/$as_me: WARNING:     /" >&2
2090     ;;
2091 esac
2092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval "test \"\${$3+set}\"" = set; then :
2095   $as_echo_n "(cached) " >&6
2096 else
2097   eval "$3=\$ac_header_compiler"
2098 fi
2099 eval ac_res=\$$3
2100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 fi
2103   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104
2105 } # ac_fn_c_check_header_mongrel
2106
2107 # ac_fn_c_try_run LINENO
2108 # ----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2110 # that executables *can* be run.
2111 ac_fn_c_try_run ()
2112 {
2113   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114   if { { ac_try="$ac_link"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121   (eval "$ac_link") 2>&5
2122   ac_status=$?
2123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2125   { { case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131   (eval "$ac_try") 2>&5
2132   ac_status=$?
2133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134   test $ac_status = 0; }; }; then :
2135   ac_retval=0
2136 else
2137   $as_echo "$as_me: program exited with status $ac_status" >&5
2138        $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141        ac_retval=$ac_status
2142 fi
2143   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145   as_fn_set_status $ac_retval
2146
2147 } # ac_fn_c_try_run
2148
2149 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists and can be compiled using the include files in
2152 # INCLUDES, setting the cache variable VAR accordingly.
2153 ac_fn_c_check_header_compile ()
2154 {
2155   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval "test \"\${$3+set}\"" = set; then :
2159   $as_echo_n "(cached) " >&6
2160 else
2161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167   eval "$3=yes"
2168 else
2169   eval "$3=no"
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 fi
2173 eval ac_res=\$$3
2174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2177
2178 } # ac_fn_c_check_header_compile
2179
2180 # ac_fn_c_try_link LINENO
2181 # -----------------------
2182 # Try to link conftest.$ac_ext, and return whether this succeeded.
2183 ac_fn_c_try_link ()
2184 {
2185   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186   rm -f conftest.$ac_objext conftest$ac_exeext
2187   if { { ac_try="$ac_link"
2188 case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194   (eval "$ac_link") 2>conftest.err
2195   ac_status=$?
2196   if test -s conftest.err; then
2197     grep -v '^ *+' conftest.err >conftest.er1
2198     cat conftest.er1 >&5
2199     mv -f conftest.er1 conftest.err
2200   fi
2201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202   test $ac_status = 0; } && {
2203          test -z "$ac_c_werror_flag" ||
2204          test ! -s conftest.err
2205        } && test -s conftest$ac_exeext && {
2206          test "$cross_compiling" = yes ||
2207          $as_test_x conftest$ac_exeext
2208        }; then :
2209   ac_retval=0
2210 else
2211   $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214         ac_retval=1
2215 fi
2216   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2217   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2218   # interfere with the next link command; also delete a directory that is
2219   # left behind by Apple's compiler.  We do this before executing the actions.
2220   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2221   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222   as_fn_set_status $ac_retval
2223
2224 } # ac_fn_c_try_link
2225
2226 # ac_fn_c_check_func LINENO FUNC VAR
2227 # ----------------------------------
2228 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2229 ac_fn_c_check_func ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if eval "test \"\${$3+set}\"" = set; then :
2235   $as_echo_n "(cached) " >&6
2236 else
2237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2241 #define $2 innocuous_$2
2242
2243 /* System header to define __stub macros and hopefully few prototypes,
2244     which can conflict with char $2 (); below.
2245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2246     <limits.h> exists even on freestanding compilers.  */
2247
2248 #ifdef __STDC__
2249 # include <limits.h>
2250 #else
2251 # include <assert.h>
2252 #endif
2253
2254 #undef $2
2255
2256 /* Override any GCC internal prototype to avoid an error.
2257    Use char because int might match the return type of a GCC
2258    builtin and then its argument prototype would still apply.  */
2259 #ifdef __cplusplus
2260 extern "C"
2261 #endif
2262 char $2 ();
2263 /* The GNU C library defines this for functions which it implements
2264     to always fail with ENOSYS.  Some functions are actually named
2265     something starting with __ and the normal name is an alias.  */
2266 #if defined __stub_$2 || defined __stub___$2
2267 choke me
2268 #endif
2269
2270 int
2271 main ()
2272 {
2273 return $2 ();
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_link "$LINENO"; then :
2279   eval "$3=yes"
2280 else
2281   eval "$3=no"
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext \
2284     conftest$ac_exeext conftest.$ac_ext
2285 fi
2286 eval ac_res=\$$3
2287                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290
2291 } # ac_fn_c_check_func
2292
2293 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2294 # --------------------------------------------
2295 # Tries to find the compile-time value of EXPR in a program that includes
2296 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2297 # computed
2298 ac_fn_c_compute_int ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   if test "$cross_compiling" = yes; then
2302     # Depending upon the size, compute the lo and hi bounds.
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h.  */
2305 $4
2306 int
2307 main ()
2308 {
2309 static int test_array [1 - 2 * !(($2) >= 0)];
2310 test_array [0] = 0
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317   ac_lo=0 ac_mid=0
2318   while :; do
2319     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h.  */
2321 $4
2322 int
2323 main ()
2324 {
2325 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2326 test_array [0] = 0
2327
2328   ;
2329   return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333   ac_hi=$ac_mid; break
2334 else
2335   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2336                         if test $ac_lo -le $ac_mid; then
2337                           ac_lo= ac_hi=
2338                           break
2339                         fi
2340                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343   done
2344 else
2345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 $4
2348 int
2349 main ()
2350 {
2351 static int test_array [1 - 2 * !(($2) < 0)];
2352 test_array [0] = 0
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359   ac_hi=-1 ac_mid=-1
2360   while :; do
2361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363 $4
2364 int
2365 main ()
2366 {
2367 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2368 test_array [0] = 0
2369
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 if ac_fn_c_try_compile "$LINENO"; then :
2375   ac_lo=$ac_mid; break
2376 else
2377   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2378                         if test $ac_mid -le $ac_hi; then
2379                           ac_lo= ac_hi=
2380                           break
2381                         fi
2382                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2383 fi
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385   done
2386 else
2387   ac_lo= ac_hi=
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 # Binary search between lo and hi bounds.
2393 while test "x$ac_lo" != "x$ac_hi"; do
2394   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h.  */
2397 $4
2398 int
2399 main ()
2400 {
2401 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2402 test_array [0] = 0
2403
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409   ac_hi=$ac_mid
2410 else
2411   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2412 fi
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 case $ac_lo in #((
2416 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2417 '') ac_retval=1 ;;
2418 esac
2419   else
2420     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h.  */
2422 $4
2423 static long int longval () { return $2; }
2424 static unsigned long int ulongval () { return $2; }
2425 #include <stdio.h>
2426 #include <stdlib.h>
2427 int
2428 main ()
2429 {
2430
2431   FILE *f = fopen ("conftest.val", "w");
2432   if (! f)
2433     return 1;
2434   if (($2) < 0)
2435     {
2436       long int i = longval ();
2437       if (i != ($2))
2438         return 1;
2439       fprintf (f, "%ld", i);
2440     }
2441   else
2442     {
2443       unsigned long int i = ulongval ();
2444       if (i != ($2))
2445         return 1;
2446       fprintf (f, "%lu", i);
2447     }
2448   /* Do not output a trailing newline, as this causes \r\n confusion
2449      on some platforms.  */
2450   return ferror (f) || fclose (f) != 0;
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_run "$LINENO"; then :
2457   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2458 else
2459   ac_retval=1
2460 fi
2461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2462   conftest.$ac_objext conftest.beam conftest.$ac_ext
2463 rm -f conftest.val
2464
2465   fi
2466   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467   as_fn_set_status $ac_retval
2468
2469 } # ac_fn_c_compute_int
2470
2471 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2472 # ---------------------------------------------
2473 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2474 # accordingly.
2475 ac_fn_c_check_decl ()
2476 {
2477   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478   as_decl_name=`echo $2|sed 's/ *(.*//'`
2479   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2481 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2482 if eval "test \"\${$3+set}\"" = set; then :
2483   $as_echo_n "(cached) " >&6
2484 else
2485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h.  */
2487 $4
2488 int
2489 main ()
2490 {
2491 #ifndef $as_decl_name
2492 #ifdef __cplusplus
2493   (void) $as_decl_use;
2494 #else
2495   (void) $as_decl_name;
2496 #endif
2497 #endif
2498
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 if ac_fn_c_try_compile "$LINENO"; then :
2504   eval "$3=yes"
2505 else
2506   eval "$3=no"
2507 fi
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 fi
2510 eval ac_res=\$$3
2511                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514
2515 } # ac_fn_c_check_decl
2516
2517 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2518 # -------------------------------------------
2519 # Tests whether TYPE exists after having included INCLUDES, setting cache
2520 # variable VAR accordingly.
2521 ac_fn_c_check_type ()
2522 {
2523   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if eval "test \"\${$3+set}\"" = set; then :
2527   $as_echo_n "(cached) " >&6
2528 else
2529   eval "$3=no"
2530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h.  */
2532 $4
2533 int
2534 main ()
2535 {
2536 if (sizeof ($2))
2537          return 0;
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h.  */
2545 $4
2546 int
2547 main ()
2548 {
2549 if (sizeof (($2)))
2550             return 0;
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 if ac_fn_c_try_compile "$LINENO"; then :
2556
2557 else
2558   eval "$3=yes"
2559 fi
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 fi
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 fi
2564 eval ac_res=\$$3
2565                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2568
2569 } # ac_fn_c_check_type
2570 cat >config.log <<_ACEOF
2571 This file contains any messages produced by compilers while
2572 running configure, to aid debugging if configure makes a mistake.
2573
2574 It was created by GNU Libidn $as_me 1.15, which was
2575 generated by GNU Autoconf 2.67.  Invocation command line was
2576
2577   $ $0 $@
2578
2579 _ACEOF
2580 exec 5>>config.log
2581 {
2582 cat <<_ASUNAME
2583 ## --------- ##
2584 ## Platform. ##
2585 ## --------- ##
2586
2587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2592
2593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2594 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2595
2596 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2597 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2599 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2600 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2601 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2602 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2603
2604 _ASUNAME
2605
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611     $as_echo "PATH: $as_dir"
2612   done
2613 IFS=$as_save_IFS
2614
2615 } >&5
2616
2617 cat >&5 <<_ACEOF
2618
2619
2620 ## ----------- ##
2621 ## Core tests. ##
2622 ## ----------- ##
2623
2624 _ACEOF
2625
2626
2627 # Keep a trace of the command line.
2628 # Strip out --no-create and --no-recursion so they do not pile up.
2629 # Strip out --silent because we don't want to record it for future runs.
2630 # Also quote any args containing shell meta-characters.
2631 # Make two passes to allow for proper duplicate-argument suppression.
2632 ac_configure_args=
2633 ac_configure_args0=
2634 ac_configure_args1=
2635 ac_must_keep_next=false
2636 for ac_pass in 1 2
2637 do
2638   for ac_arg
2639   do
2640     case $ac_arg in
2641     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2642     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2643     | -silent | --silent | --silen | --sile | --sil)
2644       continue ;;
2645     *\'*)
2646       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2647     esac
2648     case $ac_pass in
2649     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2650     2)
2651       as_fn_append ac_configure_args1 " '$ac_arg'"
2652       if test $ac_must_keep_next = true; then
2653         ac_must_keep_next=false # Got value, back to normal.
2654       else
2655         case $ac_arg in
2656           *=* | --config-cache | -C | -disable-* | --disable-* \
2657           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2658           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2659           | -with-* | --with-* | -without-* | --without-* | --x)
2660             case "$ac_configure_args0 " in
2661               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2662             esac
2663             ;;
2664           -* ) ac_must_keep_next=true ;;
2665         esac
2666       fi
2667       as_fn_append ac_configure_args " '$ac_arg'"
2668       ;;
2669     esac
2670   done
2671 done
2672 { ac_configure_args0=; unset ac_configure_args0;}
2673 { ac_configure_args1=; unset ac_configure_args1;}
2674
2675 # When interrupted or exit'd, cleanup temporary files, and complete
2676 # config.log.  We remove comments because anyway the quotes in there
2677 # would cause problems or look ugly.
2678 # WARNING: Use '\'' to represent an apostrophe within the trap.
2679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2680 trap 'exit_status=$?
2681   # Save into config.log some information that might help in debugging.
2682   {
2683     echo
2684
2685     $as_echo "## ---------------- ##
2686 ## Cache variables. ##
2687 ## ---------------- ##"
2688     echo
2689     # The following way of writing the cache mishandles newlines in values,
2690 (
2691   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2692     eval ac_val=\$$ac_var
2693     case $ac_val in #(
2694     *${as_nl}*)
2695       case $ac_var in #(
2696       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2697 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2698       esac
2699       case $ac_var in #(
2700       _ | IFS | as_nl) ;; #(
2701       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2702       *) { eval $ac_var=; unset $ac_var;} ;;
2703       esac ;;
2704     esac
2705   done
2706   (set) 2>&1 |
2707     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2708     *${as_nl}ac_space=\ *)
2709       sed -n \
2710         "s/'\''/'\''\\\\'\'''\''/g;
2711           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2712       ;; #(
2713     *)
2714       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2715       ;;
2716     esac |
2717     sort
2718 )
2719     echo
2720
2721     $as_echo "## ----------------- ##
2722 ## Output variables. ##
2723 ## ----------------- ##"
2724     echo
2725     for ac_var in $ac_subst_vars
2726     do
2727       eval ac_val=\$$ac_var
2728       case $ac_val in
2729       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2730       esac
2731       $as_echo "$ac_var='\''$ac_val'\''"
2732     done | sort
2733     echo
2734
2735     if test -n "$ac_subst_files"; then
2736       $as_echo "## ------------------- ##
2737 ## File substitutions. ##
2738 ## ------------------- ##"
2739       echo
2740       for ac_var in $ac_subst_files
2741       do
2742         eval ac_val=\$$ac_var
2743         case $ac_val in
2744         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2745         esac
2746         $as_echo "$ac_var='\''$ac_val'\''"
2747       done | sort
2748       echo
2749     fi
2750
2751     if test -s confdefs.h; then
2752       $as_echo "## ----------- ##
2753 ## confdefs.h. ##
2754 ## ----------- ##"
2755       echo
2756       cat confdefs.h
2757       echo
2758     fi
2759     test "$ac_signal" != 0 &&
2760       $as_echo "$as_me: caught signal $ac_signal"
2761     $as_echo "$as_me: exit $exit_status"
2762   } >&5
2763   rm -f core *.core core.conftest.* &&
2764     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2765     exit $exit_status
2766 ' 0
2767 for ac_signal in 1 2 13 15; do
2768   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2769 done
2770 ac_signal=0
2771
2772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2773 rm -f -r conftest* confdefs.h
2774
2775 $as_echo "/* confdefs.h */" > confdefs.h
2776
2777 # Predefined preprocessor variables.
2778
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_NAME "$PACKAGE_NAME"
2781 _ACEOF
2782
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2785 _ACEOF
2786
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2789 _ACEOF
2790
2791 cat >>confdefs.h <<_ACEOF
2792 #define PACKAGE_STRING "$PACKAGE_STRING"
2793 _ACEOF
2794
2795 cat >>confdefs.h <<_ACEOF
2796 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2797 _ACEOF
2798
2799 cat >>confdefs.h <<_ACEOF
2800 #define PACKAGE_URL "$PACKAGE_URL"
2801 _ACEOF
2802
2803
2804 # Let the site file select an alternate cache file if it wants to.
2805 # Prefer an explicitly selected file to automatically selected ones.
2806 ac_site_file1=NONE
2807 ac_site_file2=NONE
2808 if test -n "$CONFIG_SITE"; then
2809   # We do not want a PATH search for config.site.
2810   case $CONFIG_SITE in #((
2811     -*)  ac_site_file1=./$CONFIG_SITE;;
2812     */*) ac_site_file1=$CONFIG_SITE;;
2813     *)   ac_site_file1=./$CONFIG_SITE;;
2814   esac
2815 elif test "x$prefix" != xNONE; then
2816   ac_site_file1=$prefix/share/config.site
2817   ac_site_file2=$prefix/etc/config.site
2818 else
2819   ac_site_file1=$ac_default_prefix/share/config.site
2820   ac_site_file2=$ac_default_prefix/etc/config.site
2821 fi
2822 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2823 do
2824   test "x$ac_site_file" = xNONE && continue
2825   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2826     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2827 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2828     sed 's/^/| /' "$ac_site_file" >&5
2829     . "$ac_site_file" \
2830       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 as_fn_error $? "failed to load site script $ac_site_file
2833 See \`config.log' for more details" "$LINENO" 5 ; }
2834   fi
2835 done
2836
2837 if test -r "$cache_file"; then
2838   # Some versions of bash will fail to source /dev/null (special files
2839   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2840   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2841     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2842 $as_echo "$as_me: loading cache $cache_file" >&6;}
2843     case $cache_file in
2844       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2845       *)                      . "./$cache_file";;
2846     esac
2847   fi
2848 else
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2850 $as_echo "$as_me: creating cache $cache_file" >&6;}
2851   >$cache_file
2852 fi
2853
2854 gt_needs="$gt_needs "
2855 as_fn_append ac_header_list " errno.h"
2856 as_fn_append ac_header_list " stdarg.h"
2857 as_fn_append ac_header_list " sys/socket.h"
2858 as_fn_append ac_header_list " string.h"
2859 as_fn_append ac_header_list " unistd.h"
2860 as_fn_append ac_header_list " iconv.h"
2861 as_fn_append ac_header_list " stdint.h"
2862 as_fn_append ac_header_list " wchar.h"
2863 # Check that the precious variables saved in the cache have kept the same
2864 # value.
2865 ac_cache_corrupted=false
2866 for ac_var in $ac_precious_vars; do
2867   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2868   eval ac_new_set=\$ac_env_${ac_var}_set
2869   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2870   eval ac_new_val=\$ac_env_${ac_var}_value
2871   case $ac_old_set,$ac_new_set in
2872     set,)
2873       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2874 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2875       ac_cache_corrupted=: ;;
2876     ,set)
2877       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2878 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2879       ac_cache_corrupted=: ;;
2880     ,);;
2881     *)
2882       if test "x$ac_old_val" != "x$ac_new_val"; then
2883         # differences in whitespace do not lead to failure.
2884         ac_old_val_w=`echo x $ac_old_val`
2885         ac_new_val_w=`echo x $ac_new_val`
2886         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2887           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2888 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2889           ac_cache_corrupted=:
2890         else
2891           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2892 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2893           eval $ac_var=\$ac_old_val
2894         fi
2895         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2896 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2897         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2898 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2899       fi;;
2900   esac
2901   # Pass precious variables to config.status.
2902   if test "$ac_new_set" = set; then
2903     case $ac_new_val in
2904     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2905     *) ac_arg=$ac_var=$ac_new_val ;;
2906     esac
2907     case " $ac_configure_args " in
2908       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2909       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2910     esac
2911   fi
2912 done
2913 if $ac_cache_corrupted; then
2914   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2917 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2918   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2919 fi
2920 ## -------------------- ##
2921 ## Main body of script. ##
2922 ## -------------------- ##
2923
2924 ac_ext=c
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929
2930
2931
2932
2933 # Library code modified:                              REVISION++
2934 # Interfaces changed/added/removed:   CURRENT++       REVISION=0
2935 # Interfaces added:                             AGE++
2936 # Interfaces removed:                           AGE=0
2937 LT_CURRENT=16
2938
2939 LT_REVISION=44
2940
2941 LT_AGE=5
2942
2943
2944 # For DEF file.
2945 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
2946
2947
2948 ac_aux_dir=
2949 for ac_dir in build-aux "$srcdir"/build-aux; do
2950   if test -f "$ac_dir/install-sh"; then
2951     ac_aux_dir=$ac_dir
2952     ac_install_sh="$ac_aux_dir/install-sh -c"
2953     break
2954   elif test -f "$ac_dir/install.sh"; then
2955     ac_aux_dir=$ac_dir
2956     ac_install_sh="$ac_aux_dir/install.sh -c"
2957     break
2958   elif test -f "$ac_dir/shtool"; then
2959     ac_aux_dir=$ac_dir
2960     ac_install_sh="$ac_aux_dir/shtool install -c"
2961     break
2962   fi
2963 done
2964 if test -z "$ac_aux_dir"; then
2965   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2966 fi
2967
2968 # These three variables are undocumented and unsupported,
2969 # and are intended to be withdrawn in a future Autoconf release.
2970 # They can cause serious problems if a builder's source tree is in a directory
2971 # whose full name contains unusual characters.
2972 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2973 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2974 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2975
2976
2977
2978 am__api_version='1.11'
2979
2980 # Find a good install program.  We prefer a C program (faster),
2981 # so one script is as good as another.  But avoid the broken or
2982 # incompatible versions:
2983 # SysV /etc/install, /usr/sbin/install
2984 # SunOS /usr/etc/install
2985 # IRIX /sbin/install
2986 # AIX /bin/install
2987 # AmigaOS /C/install, which installs bootblocks on floppy discs
2988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2991 # OS/2's system install, which has a completely different semantic
2992 # ./install, which can be erroneously created by make from ./install.sh.
2993 # Reject install programs that cannot install multiple files.
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2995 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2996 if test -z "$INSTALL"; then
2997 if test "${ac_cv_path_install+set}" = set; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003   IFS=$as_save_IFS
3004   test -z "$as_dir" && as_dir=.
3005     # Account for people who put trailing slashes in PATH elements.
3006 case $as_dir/ in #((
3007   ./ | .// | /[cC]/* | \
3008   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3009   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3010   /usr/ucb/* ) ;;
3011   *)
3012     # OSF1 and SCO ODT 3.0 have their own names for install.
3013     # Don't use installbsd from OSF since it installs stuff as root
3014     # by default.
3015     for ac_prog in ginstall scoinst install; do
3016       for ac_exec_ext in '' $ac_executable_extensions; do
3017         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3018           if test $ac_prog = install &&
3019             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3020             # AIX install.  It has an incompatible calling convention.
3021             :
3022           elif test $ac_prog = install &&
3023             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3024             # program-specific install script used by HP pwplus--don't use.
3025             :
3026           else
3027             rm -rf conftest.one conftest.two conftest.dir
3028             echo one > conftest.one
3029             echo two > conftest.two
3030             mkdir conftest.dir
3031             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3032               test -s conftest.one && test -s conftest.two &&
3033               test -s conftest.dir/conftest.one &&
3034               test -s conftest.dir/conftest.two
3035             then
3036               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3037               break 3
3038             fi
3039           fi
3040         fi
3041       done
3042     done
3043     ;;
3044 esac
3045
3046   done
3047 IFS=$as_save_IFS
3048
3049 rm -rf conftest.one conftest.two conftest.dir
3050
3051 fi
3052   if test "${ac_cv_path_install+set}" = set; then
3053     INSTALL=$ac_cv_path_install
3054   else
3055     # As a last resort, use the slow shell script.  Don't cache a
3056     # value for INSTALL within a source directory, because that will
3057     # break other packages using the cache if that directory is
3058     # removed, or if the value is a relative name.
3059     INSTALL=$ac_install_sh
3060   fi
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3063 $as_echo "$INSTALL" >&6; }
3064
3065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3066 # It thinks the first close brace ends the variable substitution.
3067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3068
3069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3070
3071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3074 $as_echo_n "checking whether build environment is sane... " >&6; }
3075 # Just in case
3076 sleep 1
3077 echo timestamp > conftest.file
3078 # Reject unsafe characters in $srcdir or the absolute working directory
3079 # name.  Accept space and tab only in the latter.
3080 am_lf='
3081 '
3082 case `pwd` in
3083   *[\\\"\#\$\&\'\`$am_lf]*)
3084     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3085 esac
3086 case $srcdir in
3087   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3088     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3089 esac
3090
3091 # Do `set' in a subshell so we don't clobber the current shell's
3092 # arguments.  Must try -L first in case configure is actually a
3093 # symlink; some systems play weird games with the mod time of symlinks
3094 # (eg FreeBSD returns the mod time of the symlink's containing
3095 # directory).
3096 if (
3097    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3098    if test "$*" = "X"; then
3099       # -L didn't work.
3100       set X `ls -t "$srcdir/configure" conftest.file`
3101    fi
3102    rm -f conftest.file
3103    if test "$*" != "X $srcdir/configure conftest.file" \
3104       && test "$*" != "X conftest.file $srcdir/configure"; then
3105
3106       # If neither matched, then we have a broken ls.  This can happen
3107       # if, for instance, CONFIG_SHELL is bash and it inherits a
3108       # broken ls alias from the environment.  This has actually
3109       # happened.  Such a system could not be considered "sane".
3110       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3111 alias in your environment" "$LINENO" 5
3112    fi
3113
3114    test "$2" = conftest.file
3115    )
3116 then
3117    # Ok.
3118    :
3119 else
3120    as_fn_error $? "newly created file is older than distributed files!
3121 Check your system clock" "$LINENO" 5
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124 $as_echo "yes" >&6; }
3125 test "$program_prefix" != NONE &&
3126   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3127 # Use a double $ so make ignores it.
3128 test "$program_suffix" != NONE &&
3129   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3130 # Double any \ or $.
3131 # By default was `s,x,x', remove it if useless.
3132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3133 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3134
3135 # expand $ac_aux_dir to an absolute path
3136 am_aux_dir=`cd $ac_aux_dir && pwd`
3137
3138 if test x"${MISSING+set}" != xset; then
3139   case $am_aux_dir in
3140   *\ * | *\     *)
3141     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3142   *)
3143     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3144   esac
3145 fi
3146 # Use eval to expand $SHELL
3147 if eval "$MISSING --run true"; then
3148   am_missing_run="$MISSING --run "
3149 else
3150   am_missing_run=
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3152 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3153 fi
3154
3155 if test x"${install_sh}" != xset; then
3156   case $am_aux_dir in
3157   *\ * | *\     *)
3158     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3159   *)
3160     install_sh="\${SHELL} $am_aux_dir/install-sh"
3161   esac
3162 fi
3163
3164 # Installed binaries are usually stripped using `strip' when the user
3165 # run `make install-strip'.  However `strip' might not be the right
3166 # tool to use in cross-compilation environments, therefore Automake
3167 # will honor the `STRIP' environment variable to overrule this program.
3168 if test "$cross_compiling" != no; then
3169   if test -n "$ac_tool_prefix"; then
3170   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_STRIP+set}" = set; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   if test -n "$STRIP"; then
3178   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183   IFS=$as_save_IFS
3184   test -z "$as_dir" && as_dir=.
3185     for ac_exec_ext in '' $ac_executable_extensions; do
3186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189     break 2
3190   fi
3191 done
3192   done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 STRIP=$ac_cv_prog_STRIP
3198 if test -n "$STRIP"; then
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3200 $as_echo "$STRIP" >&6; }
3201 else
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207 fi
3208 if test -z "$ac_cv_prog_STRIP"; then
3209   ac_ct_STRIP=$STRIP
3210   # Extract the first word of "strip", so it can be a program name with args.
3211 set dummy strip; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   if test -n "$ac_ct_STRIP"; then
3218   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225     for ac_exec_ext in '' $ac_executable_extensions; do
3226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227     ac_cv_prog_ac_ct_STRIP="strip"
3228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229     break 2
3230   fi
3231 done
3232   done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3238 if test -n "$ac_ct_STRIP"; then
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3240 $as_echo "$ac_ct_STRIP" >&6; }
3241 else
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 fi
3245
3246   if test "x$ac_ct_STRIP" = x; then
3247     STRIP=":"
3248   else
3249     case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255     STRIP=$ac_ct_STRIP
3256   fi
3257 else
3258   STRIP="$ac_cv_prog_STRIP"
3259 fi
3260
3261 fi
3262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3266 if test -z "$MKDIR_P"; then
3267   if test "${ac_cv_path_mkdir+set}" = set; then :
3268   $as_echo_n "(cached) " >&6
3269 else
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275     for ac_prog in mkdir gmkdir; do
3276          for ac_exec_ext in '' $ac_executable_extensions; do
3277            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3278            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3279              'mkdir (GNU coreutils) '* | \
3280              'mkdir (coreutils) '* | \
3281              'mkdir (fileutils) '4.1*)
3282                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3283                break 3;;
3284            esac
3285          done
3286        done
3287   done
3288 IFS=$as_save_IFS
3289
3290 fi
3291
3292   test -d ./--version && rmdir ./--version
3293   if test "${ac_cv_path_mkdir+set}" = set; then
3294     MKDIR_P="$ac_cv_path_mkdir -p"
3295   else
3296     # As a last resort, use the slow shell script.  Don't cache a
3297     # value for MKDIR_P within a source directory, because that will
3298     # break other packages using the cache if that directory is
3299     # removed, or if the value is a relative name.
3300     MKDIR_P="$ac_install_sh -d"
3301   fi
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3304 $as_echo "$MKDIR_P" >&6; }
3305
3306 mkdir_p="$MKDIR_P"
3307 case $mkdir_p in
3308   [\\/$]* | ?:[\\/]*) ;;
3309   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3310 esac
3311
3312 for ac_prog in gawk mawk nawk awk
3313 do
3314   # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if test "${ac_cv_prog_AWK+set}" = set; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   if test -n "$AWK"; then
3322   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327   IFS=$as_save_IFS
3328   test -z "$as_dir" && as_dir=.
3329     for ac_exec_ext in '' $ac_executable_extensions; do
3330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331     ac_cv_prog_AWK="$ac_prog"
3332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333     break 2
3334   fi
3335 done
3336   done
3337 IFS=$as_save_IFS
3338
3339 fi
3340 fi
3341 AWK=$ac_cv_prog_AWK
3342 if test -n "$AWK"; then
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3344 $as_echo "$AWK" >&6; }
3345 else
3346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3348 fi
3349
3350
3351   test -n "$AWK" && break
3352 done
3353
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3355 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3356 set x ${MAKE-make}
3357 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3358 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3359   $as_echo_n "(cached) " >&6
3360 else
3361   cat >conftest.make <<\_ACEOF
3362 SHELL = /bin/sh
3363 all:
3364         @echo '@@@%%%=$(MAKE)=@@@%%%'
3365 _ACEOF
3366 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3368   *@@@%%%=?*=@@@%%%*)
3369     eval ac_cv_prog_make_${ac_make}_set=yes;;
3370   *)
3371     eval ac_cv_prog_make_${ac_make}_set=no;;
3372 esac
3373 rm -f conftest.make
3374 fi
3375 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 $as_echo "yes" >&6; }
3378   SET_MAKE=
3379 else
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382   SET_MAKE="MAKE=${MAKE-make}"
3383 fi
3384
3385 rm -rf .tst 2>/dev/null
3386 mkdir .tst 2>/dev/null
3387 if test -d .tst; then
3388   am__leading_dot=.
3389 else
3390   am__leading_dot=_
3391 fi
3392 rmdir .tst 2>/dev/null
3393
3394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3395   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3396   # is not polluted with repeated "-I."
3397   am__isrc=' -I$(srcdir)'
3398   # test to see if srcdir already configured
3399   if test -f $srcdir/config.status; then
3400     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3401   fi
3402 fi
3403
3404 # test whether we have cygpath
3405 if test -z "$CYGPATH_W"; then
3406   if (cygpath --version) >/dev/null 2>/dev/null; then
3407     CYGPATH_W='cygpath -w'
3408   else
3409     CYGPATH_W=echo
3410   fi
3411 fi
3412
3413
3414 # Define the identity of the package.
3415  PACKAGE='libidn'
3416  VERSION='1.15'
3417
3418
3419 cat >>confdefs.h <<_ACEOF
3420 #define PACKAGE "$PACKAGE"
3421 _ACEOF
3422
3423
3424 cat >>confdefs.h <<_ACEOF
3425 #define VERSION "$VERSION"
3426 _ACEOF
3427
3428 # Some tools Automake needs.
3429
3430 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3431
3432
3433 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3434
3435
3436 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3437
3438
3439 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3440
3441
3442 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3443
3444 # We need awk for the "check" target.  The system "awk" is bad on
3445 # some platforms.
3446 # Always define AMTAR for backward compatibility.
3447
3448 AMTAR=${AMTAR-"${am_missing_run}tar"}
3449
3450 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3451
3452
3453
3454
3455
3456 ac_config_headers="$ac_config_headers config.h"
3457
3458
3459 # Checks for programs.
3460 # Make sure we can run config.sub.
3461 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3462   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3463
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3465 $as_echo_n "checking build system type... " >&6; }
3466 if test "${ac_cv_build+set}" = set; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   ac_build_alias=$build_alias
3470 test "x$ac_build_alias" = x &&
3471   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3472 test "x$ac_build_alias" = x &&
3473   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3474 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3475   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3476
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3479 $as_echo "$ac_cv_build" >&6; }
3480 case $ac_cv_build in
3481 *-*-*) ;;
3482 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3483 esac
3484 build=$ac_cv_build
3485 ac_save_IFS=$IFS; IFS='-'
3486 set x $ac_cv_build
3487 shift
3488 build_cpu=$1
3489 build_vendor=$2
3490 shift; shift
3491 # Remember, the first character of IFS is used to create $*,
3492 # except with old shells:
3493 build_os=$*
3494 IFS=$ac_save_IFS
3495 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3496
3497
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3499 $as_echo_n "checking host system type... " >&6; }
3500 if test "${ac_cv_host+set}" = set; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   if test "x$host_alias" = x; then
3504   ac_cv_host=$ac_cv_build
3505 else
3506   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3507     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3508 fi
3509
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3512 $as_echo "$ac_cv_host" >&6; }
3513 case $ac_cv_host in
3514 *-*-*) ;;
3515 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3516 esac
3517 host=$ac_cv_host
3518 ac_save_IFS=$IFS; IFS='-'
3519 set x $ac_cv_host
3520 shift
3521 host_cpu=$1
3522 host_vendor=$2
3523 shift; shift
3524 # Remember, the first character of IFS is used to create $*,
3525 # except with old shells:
3526 host_os=$*
3527 IFS=$ac_save_IFS
3528 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3529
3530
3531 enable_win32_dll=yes
3532
3533 case $host in
3534 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3535   if test -n "$ac_tool_prefix"; then
3536   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}as; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if test "${ac_cv_prog_AS+set}" = set; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   if test -n "$AS"; then
3544   ac_cv_prog_AS="$AS" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551     for ac_exec_ext in '' $ac_executable_extensions; do
3552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553     ac_cv_prog_AS="${ac_tool_prefix}as"
3554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558   done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 AS=$ac_cv_prog_AS
3564 if test -n "$AS"; then
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3566 $as_echo "$AS" >&6; }
3567 else
3568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 fi
3571
3572
3573 fi
3574 if test -z "$ac_cv_prog_AS"; then
3575   ac_ct_AS=$AS
3576   # Extract the first word of "as", so it can be a program name with args.
3577 set dummy as; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3581   $as_echo_n "(cached) " >&6
3582 else
3583   if test -n "$ac_ct_AS"; then
3584   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591     for ac_exec_ext in '' $ac_executable_extensions; do
3592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593     ac_cv_prog_ac_ct_AS="as"
3594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598   done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3604 if test -n "$ac_ct_AS"; then
3605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3606 $as_echo "$ac_ct_AS" >&6; }
3607 else
3608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612   if test "x$ac_ct_AS" = x; then
3613     AS="false"
3614   else
3615     case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3620 esac
3621     AS=$ac_ct_AS
3622   fi
3623 else
3624   AS="$ac_cv_prog_AS"
3625 fi
3626
3627   if test -n "$ac_tool_prefix"; then
3628   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   if test -n "$DLLTOOL"; then
3636   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   test -z "$as_dir" && as_dir=.
3643     for ac_exec_ext in '' $ac_executable_extensions; do
3644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647     break 2
3648   fi
3649 done
3650   done
3651 IFS=$as_save_IFS
3652
3653 fi
3654 fi
3655 DLLTOOL=$ac_cv_prog_DLLTOOL
3656 if test -n "$DLLTOOL"; then
3657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3658 $as_echo "$DLLTOOL" >&6; }
3659 else
3660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 fi
3663
3664
3665 fi
3666 if test -z "$ac_cv_prog_DLLTOOL"; then
3667   ac_ct_DLLTOOL=$DLLTOOL
3668   # Extract the first word of "dlltool", so it can be a program name with args.
3669 set dummy dlltool; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3673   $as_echo_n "(cached) " >&6
3674 else
3675   if test -n "$ac_ct_DLLTOOL"; then
3676   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683     for ac_exec_ext in '' $ac_executable_extensions; do
3684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687     break 2
3688   fi
3689 done
3690   done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3696 if test -n "$ac_ct_DLLTOOL"; then
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3698 $as_echo "$ac_ct_DLLTOOL" >&6; }
3699 else
3700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704   if test "x$ac_ct_DLLTOOL" = x; then
3705     DLLTOOL="false"
3706   else
3707     case $cross_compiling:$ac_tool_warned in
3708 yes:)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711 ac_tool_warned=yes ;;
3712 esac
3713     DLLTOOL=$ac_ct_DLLTOOL
3714   fi
3715 else
3716   DLLTOOL="$ac_cv_prog_DLLTOOL"
3717 fi
3718
3719   if test -n "$ac_tool_prefix"; then
3720   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3721 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3725   $as_echo_n "(cached) " >&6
3726 else
3727   if test -n "$OBJDUMP"; then
3728   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733   IFS=$as_save_IFS
3734   test -z "$as_dir" && as_dir=.
3735     for ac_exec_ext in '' $ac_executable_extensions; do
3736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739     break 2
3740   fi
3741 done
3742   done
3743 IFS=$as_save_IFS
3744
3745 fi
3746 fi
3747 OBJDUMP=$ac_cv_prog_OBJDUMP
3748 if test -n "$OBJDUMP"; then
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3750 $as_echo "$OBJDUMP" >&6; }
3751 else
3752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3754 fi
3755
3756
3757 fi
3758 if test -z "$ac_cv_prog_OBJDUMP"; then
3759   ac_ct_OBJDUMP=$OBJDUMP
3760   # Extract the first word of "objdump", so it can be a program name with args.
3761 set dummy objdump; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3765   $as_echo_n "(cached) " >&6
3766 else
3767   if test -n "$ac_ct_OBJDUMP"; then
3768   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773   IFS=$as_save_IFS
3774   test -z "$as_dir" && as_dir=.
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779     break 2
3780   fi
3781 done
3782   done
3783 IFS=$as_save_IFS
3784
3785 fi
3786 fi
3787 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3788 if test -n "$ac_ct_OBJDUMP"; then
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3790 $as_echo "$ac_ct_OBJDUMP" >&6; }
3791 else
3792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794 fi
3795
3796   if test "x$ac_ct_OBJDUMP" = x; then
3797     OBJDUMP="false"
3798   else
3799     case $cross_compiling:$ac_tool_warned in
3800 yes:)
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803 ac_tool_warned=yes ;;
3804 esac
3805     OBJDUMP=$ac_ct_OBJDUMP
3806   fi
3807 else
3808   OBJDUMP="$ac_cv_prog_OBJDUMP"
3809 fi
3810
3811   ;;
3812 esac
3813
3814 test -z "$AS" && AS=as
3815
3816
3817
3818
3819
3820 test -z "$DLLTOOL" && DLLTOOL=dlltool
3821
3822
3823
3824
3825
3826 test -z "$OBJDUMP" && OBJDUMP=objdump
3827
3828
3829
3830
3831
3832
3833
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839 if test -n "$ac_tool_prefix"; then
3840   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then :
3845   $as_echo_n "(cached) " >&6
3846 else
3847   if test -n "$CC"; then
3848   ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853   IFS=$as_save_IFS
3854   test -z "$as_dir" && as_dir=.
3855     for ac_exec_ext in '' $ac_executable_extensions; do
3856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859     break 2
3860   fi
3861 done
3862   done
3863 IFS=$as_save_IFS
3864
3865 fi
3866 fi
3867 CC=$ac_cv_prog_CC
3868 if test -n "$CC"; then
3869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3871 else
3872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3874 fi
3875
3876
3877 fi
3878 if test -z "$ac_cv_prog_CC"; then
3879   ac_ct_CC=$CC
3880   # Extract the first word of "gcc", so it can be a program name with args.
3881 set dummy gcc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3885   $as_echo_n "(cached) " >&6
3886 else
3887   if test -n "$ac_ct_CC"; then
3888   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3892 do
3893   IFS=$as_save_IFS
3894   test -z "$as_dir" && as_dir=.
3895     for ac_exec_ext in '' $ac_executable_extensions; do
3896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897     ac_cv_prog_ac_ct_CC="gcc"
3898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899     break 2
3900   fi
3901 done
3902   done
3903 IFS=$as_save_IFS
3904
3905 fi
3906 fi
3907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3908 if test -n "$ac_ct_CC"; then
3909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3910 $as_echo "$ac_ct_CC" >&6; }
3911 else
3912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3914 fi
3915
3916   if test "x$ac_ct_CC" = x; then
3917     CC=""
3918   else
3919     case $cross_compiling:$ac_tool_warned in
3920 yes:)
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3923 ac_tool_warned=yes ;;
3924 esac
3925     CC=$ac_ct_CC
3926   fi
3927 else
3928   CC="$ac_cv_prog_CC"
3929 fi
3930
3931 if test -z "$CC"; then
3932           if test -n "$ac_tool_prefix"; then
3933     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3934 set dummy ${ac_tool_prefix}cc; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if test "${ac_cv_prog_CC+set}" = set; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   if test -n "$CC"; then
3941   ac_cv_prog_CC="$CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948     for ac_exec_ext in '' $ac_executable_extensions; do
3949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950     ac_cv_prog_CC="${ac_tool_prefix}cc"
3951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952     break 2
3953   fi
3954 done
3955   done
3956 IFS=$as_save_IFS
3957
3958 fi
3959 fi
3960 CC=$ac_cv_prog_CC
3961 if test -n "$CC"; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3963 $as_echo "$CC" >&6; }
3964 else
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 fi
3968
3969
3970   fi
3971 fi
3972 if test -z "$CC"; then
3973   # Extract the first word of "cc", so it can be a program name with args.
3974 set dummy cc; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if test "${ac_cv_prog_CC+set}" = set; then :
3978   $as_echo_n "(cached) " >&6
3979 else
3980   if test -n "$CC"; then
3981   ac_cv_prog_CC="$CC" # Let the user override the test.
3982 else
3983   ac_prog_rejected=no
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987   IFS=$as_save_IFS
3988   test -z "$as_dir" && as_dir=.
3989     for ac_exec_ext in '' $ac_executable_extensions; do
3990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3992        ac_prog_rejected=yes
3993        continue
3994      fi
3995     ac_cv_prog_CC="cc"
3996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000   done
4001 IFS=$as_save_IFS
4002
4003 if test $ac_prog_rejected = yes; then
4004   # We found a bogon in the path, so make sure we never use it.
4005   set dummy $ac_cv_prog_CC
4006   shift
4007   if test $# != 0; then
4008     # We chose a different compiler from the bogus one.
4009     # However, it has the same basename, so the bogon will be chosen
4010     # first if we set CC to just the basename; use the full file name.
4011     shift
4012     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4013   fi
4014 fi
4015 fi
4016 fi
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 $as_echo "$CC" >&6; }
4021 else
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026
4027 fi
4028 if test -z "$CC"; then
4029   if test -n "$ac_tool_prefix"; then
4030   for ac_prog in cl.exe
4031   do
4032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_CC+set}" = set; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   if test -n "$CC"; then
4040   ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047     for ac_exec_ext in '' $ac_executable_extensions; do
4048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054   done
4055 IFS=$as_save_IFS
4056
4057 fi
4058 fi
4059 CC=$ac_cv_prog_CC
4060 if test -n "$CC"; then
4061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4062 $as_echo "$CC" >&6; }
4063 else
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4066 fi
4067
4068
4069     test -n "$CC" && break
4070   done
4071 fi
4072 if test -z "$CC"; then
4073   ac_ct_CC=$CC
4074   for ac_prog in cl.exe
4075 do
4076   # Extract the first word of "$ac_prog", so it can be a program name with args.
4077 set dummy $ac_prog; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   if test -n "$ac_ct_CC"; then
4084   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089   IFS=$as_save_IFS
4090   test -z "$as_dir" && as_dir=.
4091     for ac_exec_ext in '' $ac_executable_extensions; do
4092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093     ac_cv_prog_ac_ct_CC="$ac_prog"
4094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095     break 2
4096   fi
4097 done
4098   done
4099 IFS=$as_save_IFS
4100
4101 fi
4102 fi
4103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4104 if test -n "$ac_ct_CC"; then
4105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4106 $as_echo "$ac_ct_CC" >&6; }
4107 else
4108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110 fi
4111
4112
4113   test -n "$ac_ct_CC" && break
4114 done
4115
4116   if test "x$ac_ct_CC" = x; then
4117     CC=""
4118   else
4119     case $cross_compiling:$ac_tool_warned in
4120 yes:)
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4123 ac_tool_warned=yes ;;
4124 esac
4125     CC=$ac_ct_CC
4126   fi
4127 fi
4128
4129 fi
4130
4131
4132 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4134 as_fn_error $? "no acceptable C compiler found in \$PATH
4135 See \`config.log' for more details" "$LINENO" 5 ; }
4136
4137 # Provide some information about the compiler.
4138 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4139 set X $ac_compile
4140 ac_compiler=$2
4141 for ac_option in --version -v -V -qversion; do
4142   { { ac_try="$ac_compiler $ac_option >&5"
4143 case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4150   ac_status=$?
4151   if test -s conftest.err; then
4152     sed '10a\
4153 ... rest of stderr output deleted ...
4154          10q' conftest.err >conftest.er1
4155     cat conftest.er1 >&5
4156   fi
4157   rm -f conftest.er1 conftest.err
4158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159   test $ac_status = 0; }
4160 done
4161
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h.  */
4164
4165 int
4166 main ()
4167 {
4168
4169   ;
4170   return 0;
4171 }
4172 _ACEOF
4173 ac_clean_files_save=$ac_clean_files
4174 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4175 # Try to create an executable without -o first, disregard a.out.
4176 # It will help us diagnose broken compilers, and finding out an intuition
4177 # of exeext.
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4179 $as_echo_n "checking whether the C compiler works... " >&6; }
4180 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4181
4182 # The possible output files:
4183 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4184
4185 ac_rmfiles=
4186 for ac_file in $ac_files
4187 do
4188   case $ac_file in
4189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4190     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4191   esac
4192 done
4193 rm -f $ac_rmfiles
4194
4195 if { { ac_try="$ac_link_default"
4196 case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202   (eval "$ac_link_default") 2>&5
4203   ac_status=$?
4204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205   test $ac_status = 0; }; then :
4206   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4208 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4209 # so that the user can short-circuit this test for compilers unknown to
4210 # Autoconf.
4211 for ac_file in $ac_files ''
4212 do
4213   test -f "$ac_file" || continue
4214   case $ac_file in
4215     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4216         ;;
4217     [ab].out )
4218         # We found the default executable, but exeext='' is most
4219         # certainly right.
4220         break;;
4221     *.* )
4222         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4223         then :; else
4224            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4225         fi
4226         # We set ac_cv_exeext here because the later test for it is not
4227         # safe: cross compilers may not add the suffix if given an `-o'
4228         # argument, so we may need to know it at that point already.
4229         # Even if this section looks crufty: it has the advantage of
4230         # actually working.
4231         break;;
4232     * )
4233         break;;
4234   esac
4235 done
4236 test "$ac_cv_exeext" = no && ac_cv_exeext=
4237
4238 else
4239   ac_file=''
4240 fi
4241 if test -z "$ac_file"; then :
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 $as_echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4249 as_fn_error 77 "C compiler cannot create executables
4250 See \`config.log' for more details" "$LINENO" 5 ; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4253 $as_echo "yes" >&6; }
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4256 $as_echo_n "checking for C compiler default output file name... " >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4258 $as_echo "$ac_file" >&6; }
4259 ac_exeext=$ac_cv_exeext
4260
4261 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4262 ac_clean_files=$ac_clean_files_save
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4264 $as_echo_n "checking for suffix of executables... " >&6; }
4265 if { { ac_try="$ac_link"
4266 case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272   (eval "$ac_link") 2>&5
4273   ac_status=$?
4274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275   test $ac_status = 0; }; then :
4276   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4277 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4278 # work properly (i.e., refer to `conftest.exe'), while it won't with
4279 # `rm'.
4280 for ac_file in conftest.exe conftest conftest.*; do
4281   test -f "$ac_file" || continue
4282   case $ac_file in
4283     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4284     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4285           break;;
4286     * ) break;;
4287   esac
4288 done
4289 else
4290   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4293 See \`config.log' for more details" "$LINENO" 5 ; }
4294 fi
4295 rm -f conftest conftest$ac_cv_exeext
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4297 $as_echo "$ac_cv_exeext" >&6; }
4298
4299 rm -f conftest.$ac_ext
4300 EXEEXT=$ac_cv_exeext
4301 ac_exeext=$EXEEXT
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h.  */
4304 #include <stdio.h>
4305 int
4306 main ()
4307 {
4308 FILE *f = fopen ("conftest.out", "w");
4309  return ferror (f) || fclose (f) != 0;
4310
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 ac_clean_files="$ac_clean_files conftest.out"
4316 # Check that the compiler produces executables we can run.  If not, either
4317 # the compiler is broken, or we cross compile.
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4319 $as_echo_n "checking whether we are cross compiling... " >&6; }
4320 if test "$cross_compiling" != yes; then
4321   { { ac_try="$ac_link"
4322 case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328   (eval "$ac_link") 2>&5
4329   ac_status=$?
4330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331   test $ac_status = 0; }
4332   if { ac_try='./conftest$ac_cv_exeext'
4333   { { case "(($ac_try" in
4334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335   *) ac_try_echo=$ac_try;;
4336 esac
4337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4338 $as_echo "$ac_try_echo"; } >&5
4339   (eval "$ac_try") 2>&5
4340   ac_status=$?
4341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342   test $ac_status = 0; }; }; then
4343     cross_compiling=no
4344   else
4345     if test "$cross_compiling" = maybe; then
4346         cross_compiling=yes
4347     else
4348         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4350 as_fn_error $? "cannot run C compiled programs.
4351 If you meant to cross compile, use \`--host'.
4352 See \`config.log' for more details" "$LINENO" 5 ; }
4353     fi
4354   fi
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4357 $as_echo "$cross_compiling" >&6; }
4358
4359 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4360 ac_clean_files=$ac_clean_files_save
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4362 $as_echo_n "checking for suffix of object files... " >&6; }
4363 if test "${ac_cv_objext+set}" = set; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 rm -f conftest.o conftest.obj
4378 if { { ac_try="$ac_compile"
4379 case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385   (eval "$ac_compile") 2>&5
4386   ac_status=$?
4387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388   test $ac_status = 0; }; then :
4389   for ac_file in conftest.o conftest.obj conftest.*; do
4390   test -f "$ac_file" || continue;
4391   case $ac_file in
4392     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4393     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4394        break;;
4395   esac
4396 done
4397 else
4398   $as_echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error $? "cannot compute suffix of object files: cannot compile
4404 See \`config.log' for more details" "$LINENO" 5 ; }
4405 fi
4406 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4409 $as_echo "$ac_cv_objext" >&6; }
4410 OBJEXT=$ac_cv_objext
4411 ac_objext=$OBJEXT
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4413 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4414 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h.  */
4419
4420 int
4421 main ()
4422 {
4423 #ifndef __GNUC__
4424        choke me
4425 #endif
4426
4427   ;
4428   return 0;
4429 }
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432   ac_compiler_gnu=yes
4433 else
4434   ac_compiler_gnu=no
4435 fi
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4438
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4441 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4442 if test $ac_compiler_gnu = yes; then
4443   GCC=yes
4444 else
4445   GCC=
4446 fi
4447 ac_test_CFLAGS=${CFLAGS+set}
4448 ac_save_CFLAGS=$CFLAGS
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4450 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4451 if test "${ac_cv_prog_cc_g+set}" = set; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   ac_save_c_werror_flag=$ac_c_werror_flag
4455    ac_c_werror_flag=yes
4456    ac_cv_prog_cc_g=no
4457    CFLAGS="-g"
4458    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h.  */
4460
4461 int
4462 main ()
4463 {
4464
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470   ac_cv_prog_cc_g=yes
4471 else
4472   CFLAGS=""
4473       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h.  */
4475
4476 int
4477 main ()
4478 {
4479
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 if ac_fn_c_try_compile "$LINENO"; then :
4485
4486 else
4487   ac_c_werror_flag=$ac_save_c_werror_flag
4488          CFLAGS="-g"
4489          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h.  */
4491
4492 int
4493 main ()
4494 {
4495
4496   ;
4497   return 0;
4498 }
4499 _ACEOF
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501   ac_cv_prog_cc_g=yes
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 fi
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508    ac_c_werror_flag=$ac_save_c_werror_flag
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4511 $as_echo "$ac_cv_prog_cc_g" >&6; }
4512 if test "$ac_test_CFLAGS" = set; then
4513   CFLAGS=$ac_save_CFLAGS
4514 elif test $ac_cv_prog_cc_g = yes; then
4515   if test "$GCC" = yes; then
4516     CFLAGS="-g -O2"
4517   else
4518     CFLAGS="-g"
4519   fi
4520 else
4521   if test "$GCC" = yes; then
4522     CFLAGS="-O2"
4523   else
4524     CFLAGS=
4525   fi
4526 fi
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4528 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4529 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   ac_cv_prog_cc_c89=no
4533 ac_save_CC=$CC
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536 #include <stdarg.h>
4537 #include <stdio.h>
4538 #include <sys/types.h>
4539 #include <sys/stat.h>
4540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4541 struct buf { int x; };
4542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4543 static char *e (p, i)
4544      char **p;
4545      int i;
4546 {
4547   return p[i];
4548 }
4549 static char *f (char * (*g) (char **, int), char **p, ...)
4550 {
4551   char *s;
4552   va_list v;
4553   va_start (v,p);
4554   s = g (p, va_arg (v,int));
4555   va_end (v);
4556   return s;
4557 }
4558
4559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4560    function prototypes and stuff, but not '\xHH' hex character constants.
4561    These don't provoke an error unfortunately, instead are silently treated
4562    as 'x'.  The following induces an error, until -std is added to get
4563    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4564    array size at least.  It's necessary to write '\x00'==0 to get something
4565    that's true only with -std.  */
4566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4567
4568 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4569    inside strings and character constants.  */
4570 #define FOO(x) 'x'
4571 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4572
4573 int test (int i, double x);
4574 struct s1 {int (*f) (int a);};
4575 struct s2 {int (*f) (double a);};
4576 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4577 int argc;
4578 char **argv;
4579 int
4580 main ()
4581 {
4582 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4583   ;
4584   return 0;
4585 }
4586 _ACEOF
4587 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4588         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4589 do
4590   CC="$ac_save_CC $ac_arg"
4591   if ac_fn_c_try_compile "$LINENO"; then :
4592   ac_cv_prog_cc_c89=$ac_arg
4593 fi
4594 rm -f core conftest.err conftest.$ac_objext
4595   test "x$ac_cv_prog_cc_c89" != "xno" && break
4596 done
4597 rm -f conftest.$ac_ext
4598 CC=$ac_save_CC
4599
4600 fi
4601 # AC_CACHE_VAL
4602 case "x$ac_cv_prog_cc_c89" in
4603   x)
4604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4605 $as_echo "none needed" >&6; } ;;
4606   xno)
4607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4608 $as_echo "unsupported" >&6; } ;;
4609   *)
4610     CC="$CC $ac_cv_prog_cc_c89"
4611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4612 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4613 esac
4614 if test "x$ac_cv_prog_cc_c89" != xno; then :
4615
4616 fi
4617
4618 ac_ext=c
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623 DEPDIR="${am__leading_dot}deps"
4624
4625 ac_config_commands="$ac_config_commands depfiles"
4626
4627
4628 am_make=${MAKE-make}
4629 cat > confinc << 'END'
4630 am__doit:
4631         @echo this is the am__doit target
4632 .PHONY: am__doit
4633 END
4634 # If we don't find an include directive, just comment out the code.
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4636 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4637 am__include="#"
4638 am__quote=
4639 _am_result=none
4640 # First try GNU make style include.
4641 echo "include confinc" > confmf
4642 # Ignore all kinds of additional output from `make'.
4643 case `$am_make -s -f confmf 2> /dev/null` in #(
4644 *the\ am__doit\ target*)
4645   am__include=include
4646   am__quote=
4647   _am_result=GNU
4648   ;;
4649 esac
4650 # Now try BSD make style include.
4651 if test "$am__include" = "#"; then
4652    echo '.include "confinc"' > confmf
4653    case `$am_make -s -f confmf 2> /dev/null` in #(
4654    *the\ am__doit\ target*)
4655      am__include=.include
4656      am__quote="\""
4657      _am_result=BSD
4658      ;;
4659    esac
4660 fi
4661
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4664 $as_echo "$_am_result" >&6; }
4665 rm -f confinc confmf
4666
4667 # Check whether --enable-dependency-tracking was given.
4668 if test "${enable_dependency_tracking+set}" = set; then :
4669   enableval=$enable_dependency_tracking;
4670 fi
4671
4672 if test "x$enable_dependency_tracking" != xno; then
4673   am_depcomp="$ac_aux_dir/depcomp"
4674   AMDEPBACKSLASH='\'
4675 fi
4676  if test "x$enable_dependency_tracking" != xno; then
4677   AMDEP_TRUE=
4678   AMDEP_FALSE='#'
4679 else
4680   AMDEP_TRUE='#'
4681   AMDEP_FALSE=
4682 fi
4683
4684
4685
4686 depcc="$CC"   am_compiler_list=
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4689 $as_echo_n "checking dependency style of $depcc... " >&6; }
4690 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4694   # We make a subdir and do the tests there.  Otherwise we can end up
4695   # making bogus files that we don't know about and never remove.  For
4696   # instance it was reported that on HP-UX the gcc test will end up
4697   # making a dummy file named `D' -- because `-MD' means `put the output
4698   # in D'.
4699   mkdir conftest.dir
4700   # Copy depcomp to subdir because otherwise we won't find it if we're
4701   # using a relative directory.
4702   cp "$am_depcomp" conftest.dir
4703   cd conftest.dir
4704   # We will build objects and dependencies in a subdirectory because
4705   # it helps to detect inapplicable dependency modes.  For instance
4706   # both Tru64's cc and ICC support -MD to output dependencies as a
4707   # side effect of compilation, but ICC will put the dependencies in
4708   # the current directory while Tru64 will put them in the object
4709   # directory.
4710   mkdir sub
4711
4712   am_cv_CC_dependencies_compiler_type=none
4713   if test "$am_compiler_list" = ""; then
4714      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4715   fi
4716   am__universal=false
4717   case " $depcc " in #(
4718      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4719      esac
4720
4721   for depmode in $am_compiler_list; do
4722     # Setup a source with many dependencies, because some compilers
4723     # like to wrap large dependency lists on column 80 (with \), and
4724     # we should not choose a depcomp mode which is confused by this.
4725     #
4726     # We need to recreate these files for each test, as the compiler may
4727     # overwrite some of them when testing with obscure command lines.
4728     # This happens at least with the AIX C compiler.
4729     : > sub/conftest.c
4730     for i in 1 2 3 4 5 6; do
4731       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4732       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4733       # Solaris 8's {/usr,}/bin/sh.
4734       touch sub/conftst$i.h
4735     done
4736     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4737
4738     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4739     # mode.  It turns out that the SunPro C++ compiler does not properly
4740     # handle `-M -o', and we need to detect this.  Also, some Intel
4741     # versions had trouble with output in subdirs
4742     am__obj=sub/conftest.${OBJEXT-o}
4743     am__minus_obj="-o $am__obj"
4744     case $depmode in
4745     gcc)
4746       # This depmode causes a compiler race in universal mode.
4747       test "$am__universal" = false || continue
4748       ;;
4749     nosideeffect)
4750       # after this tag, mechanisms are not by side-effect, so they'll
4751       # only be used when explicitly requested
4752       if test "x$enable_dependency_tracking" = xyes; then
4753         continue
4754       else
4755         break
4756       fi
4757       ;;
4758     msvisualcpp | msvcmsys)
4759       # This compiler won't grok `-c -o', but also, the minuso test has
4760       # not run yet.  These depmodes are late enough in the game, and
4761       # so weak that their functioning should not be impacted.
4762       am__obj=conftest.${OBJEXT-o}
4763       am__minus_obj=
4764       ;;
4765     none) break ;;
4766     esac
4767     if depmode=$depmode \
4768        source=sub/conftest.c object=$am__obj \
4769        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4770        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4771          >/dev/null 2>conftest.err &&
4772        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4773        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4774        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4775        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4776       # icc doesn't choke on unknown options, it will just issue warnings
4777       # or remarks (even with -Werror).  So we grep stderr for any message
4778       # that says an option was ignored or not supported.
4779       # When given -MP, icc 7.0 and 7.1 complain thusly:
4780       #   icc: Command line warning: ignoring option '-M'; no argument required
4781       # The diagnosis changed in icc 8.0:
4782       #   icc: Command line remark: option '-MP' not supported
4783       if (grep 'ignoring option' conftest.err ||
4784           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4785         am_cv_CC_dependencies_compiler_type=$depmode
4786         break
4787       fi
4788     fi
4789   done
4790
4791   cd ..
4792   rm -rf conftest.dir
4793 else
4794   am_cv_CC_dependencies_compiler_type=none
4795 fi
4796
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4799 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4800 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4801
4802  if
4803   test "x$enable_dependency_tracking" != xno \
4804   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4805   am__fastdepCC_TRUE=
4806   am__fastdepCC_FALSE='#'
4807 else
4808   am__fastdepCC_TRUE='#'
4809   am__fastdepCC_FALSE=
4810 fi
4811
4812
4813 if test -n "$ac_tool_prefix"; then
4814   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   if test -n "$RANLIB"; then
4822   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829     for ac_exec_ext in '' $ac_executable_extensions; do
4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836   done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 RANLIB=$ac_cv_prog_RANLIB
4842 if test -n "$RANLIB"; then
4843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4844 $as_echo "$RANLIB" >&6; }
4845 else
4846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 fi
4852 if test -z "$ac_cv_prog_RANLIB"; then
4853   ac_ct_RANLIB=$RANLIB
4854   # Extract the first word of "ranlib", so it can be a program name with args.
4855 set dummy ranlib; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   if test -n "$ac_ct_RANLIB"; then
4862   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869     for ac_exec_ext in '' $ac_executable_extensions; do
4870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871     ac_cv_prog_ac_ct_RANLIB="ranlib"
4872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876   done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4882 if test -n "$ac_ct_RANLIB"; then
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4884 $as_echo "$ac_ct_RANLIB" >&6; }
4885 else
4886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890   if test "x$ac_ct_RANLIB" = x; then
4891     RANLIB=":"
4892   else
4893     case $cross_compiling:$ac_tool_warned in
4894 yes:)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4898 esac
4899     RANLIB=$ac_ct_RANLIB
4900   fi
4901 else
4902   RANLIB="$ac_cv_prog_RANLIB"
4903 fi
4904
4905
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4912 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4913 # On Suns, sometimes $CPP names a directory.
4914 if test -n "$CPP" && test -d "$CPP"; then
4915   CPP=
4916 fi
4917 if test -z "$CPP"; then
4918   if test "${ac_cv_prog_CPP+set}" = set; then :
4919   $as_echo_n "(cached) " >&6
4920 else
4921       # Double quotes because CPP needs to be expanded
4922     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4923     do
4924       ac_preproc_ok=false
4925 for ac_c_preproc_warn_flag in '' yes
4926 do
4927   # Use a header file that comes with gcc, so configuring glibc
4928   # with a fresh cross-compiler works.
4929   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930   # <limits.h> exists even on freestanding compilers.
4931   # On the NeXT, cc -E runs the code through the compiler's parser,
4932   # not just through cpp. "Syntax error" is here to catch this case.
4933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h.  */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940                      Syntax error
4941 _ACEOF
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4943
4944 else
4945   # Broken: fails on valid input.
4946 continue
4947 fi
4948 rm -f conftest.err conftest.i conftest.$ac_ext
4949
4950   # OK, works on sane cases.  Now check whether nonexistent headers
4951   # can be detected and how.
4952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h.  */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if ac_fn_c_try_cpp "$LINENO"; then :
4957   # Broken: success on invalid input.
4958 continue
4959 else
4960   # Passes both tests.
4961 ac_preproc_ok=:
4962 break
4963 fi
4964 rm -f conftest.err conftest.i conftest.$ac_ext
4965
4966 done
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.i conftest.err conftest.$ac_ext
4969 if $ac_preproc_ok; then :
4970   break
4971 fi
4972
4973     done
4974     ac_cv_prog_CPP=$CPP
4975
4976 fi
4977   CPP=$ac_cv_prog_CPP
4978 else
4979   ac_cv_prog_CPP=$CPP
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4982 $as_echo "$CPP" >&6; }
4983 ac_preproc_ok=false
4984 for ac_c_preproc_warn_flag in '' yes
4985 do
4986   # Use a header file that comes with gcc, so configuring glibc
4987   # with a fresh cross-compiler works.
4988   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989   # <limits.h> exists even on freestanding compilers.
4990   # On the NeXT, cc -E runs the code through the compiler's parser,
4991   # not just through cpp. "Syntax error" is here to catch this case.
4992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h.  */
4994 #ifdef __STDC__
4995 # include <limits.h>
4996 #else
4997 # include <assert.h>
4998 #endif
4999                      Syntax error
5000 _ACEOF
5001 if ac_fn_c_try_cpp "$LINENO"; then :
5002
5003 else
5004   # Broken: fails on valid input.
5005 continue
5006 fi
5007 rm -f conftest.err conftest.i conftest.$ac_ext
5008
5009   # OK, works on sane cases.  Now check whether nonexistent headers
5010   # can be detected and how.
5011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h.  */
5013 #include <ac_nonexistent.h>
5014 _ACEOF
5015 if ac_fn_c_try_cpp "$LINENO"; then :
5016   # Broken: success on invalid input.
5017 continue
5018 else
5019   # Passes both tests.
5020 ac_preproc_ok=:
5021 break
5022 fi
5023 rm -f conftest.err conftest.i conftest.$ac_ext
5024
5025 done
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.i conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then :
5029
5030 else
5031   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5034 See \`config.log' for more details" "$LINENO" 5 ; }
5035 fi
5036
5037 ac_ext=c
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5046 if test "${ac_cv_path_GREP+set}" = set; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   if test -z "$GREP"; then
5050   ac_path_GREP_found=false
5051   # Loop through the user's path and test for each of PROGNAME-LIST
5052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057     for ac_prog in grep ggrep; do
5058     for ac_exec_ext in '' $ac_executable_extensions; do
5059       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5060       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5061 # Check for GNU ac_path_GREP and select it if it is found.
5062   # Check for GNU $ac_path_GREP
5063 case `"$ac_path_GREP" --version 2>&1` in
5064 *GNU*)
5065   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5066 *)
5067   ac_count=0
5068   $as_echo_n 0123456789 >"conftest.in"
5069   while :
5070   do
5071     cat "conftest.in" "conftest.in" >"conftest.tmp"
5072     mv "conftest.tmp" "conftest.in"
5073     cp "conftest.in" "conftest.nl"
5074     $as_echo 'GREP' >> "conftest.nl"
5075     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5077     as_fn_arith $ac_count + 1 && ac_count=$as_val
5078     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5079       # Best one so far, save it but keep looking for a better one
5080       ac_cv_path_GREP="$ac_path_GREP"
5081       ac_path_GREP_max=$ac_count
5082     fi
5083     # 10*(2^10) chars as input seems more than enough
5084     test $ac_count -gt 10 && break
5085   done
5086   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087 esac
5088
5089       $ac_path_GREP_found && break 3
5090     done
5091   done
5092   done
5093 IFS=$as_save_IFS
5094   if test -z "$ac_cv_path_GREP"; then
5095     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096   fi
5097 else
5098   ac_cv_path_GREP=$GREP
5099 fi
5100
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5103 $as_echo "$ac_cv_path_GREP" >&6; }
5104  GREP="$ac_cv_path_GREP"
5105
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5108 $as_echo_n "checking for egrep... " >&6; }
5109 if test "${ac_cv_path_EGREP+set}" = set; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5113    then ac_cv_path_EGREP="$GREP -E"
5114    else
5115      if test -z "$EGREP"; then
5116   ac_path_EGREP_found=false
5117   # Loop through the user's path and test for each of PROGNAME-LIST
5118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123     for ac_prog in egrep; do
5124     for ac_exec_ext in '' $ac_executable_extensions; do
5125       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5126       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5127 # Check for GNU ac_path_EGREP and select it if it is found.
5128   # Check for GNU $ac_path_EGREP
5129 case `"$ac_path_EGREP" --version 2>&1` in
5130 *GNU*)
5131   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5132 *)
5133   ac_count=0
5134   $as_echo_n 0123456789 >"conftest.in"
5135   while :
5136   do
5137     cat "conftest.in" "conftest.in" >"conftest.tmp"
5138     mv "conftest.tmp" "conftest.in"
5139     cp "conftest.in" "conftest.nl"
5140     $as_echo 'EGREP' >> "conftest.nl"
5141     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143     as_fn_arith $ac_count + 1 && ac_count=$as_val
5144     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5145       # Best one so far, save it but keep looking for a better one
5146       ac_cv_path_EGREP="$ac_path_EGREP"
5147       ac_path_EGREP_max=$ac_count
5148     fi
5149     # 10*(2^10) chars as input seems more than enough
5150     test $ac_count -gt 10 && break
5151   done
5152   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 esac
5154
5155       $ac_path_EGREP_found && break 3
5156     done
5157   done
5158   done
5159 IFS=$as_save_IFS
5160   if test -z "$ac_cv_path_EGREP"; then
5161     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162   fi
5163 else
5164   ac_cv_path_EGREP=$EGREP
5165 fi
5166
5167    fi
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5170 $as_echo "$ac_cv_path_EGREP" >&6; }
5171  EGREP="$ac_cv_path_EGREP"
5172
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5175 $as_echo_n "checking for ANSI C header files... " >&6; }
5176 if test "${ac_cv_header_stdc+set}" = set; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181 #include <stdlib.h>
5182 #include <stdarg.h>
5183 #include <string.h>
5184 #include <float.h>
5185
5186 int
5187 main ()
5188 {
5189
5190   ;
5191   return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195   ac_cv_header_stdc=yes
5196 else
5197   ac_cv_header_stdc=no
5198 fi
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200
5201 if test $ac_cv_header_stdc = yes; then
5202   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h.  */
5205 #include <string.h>
5206
5207 _ACEOF
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209   $EGREP "memchr" >/dev/null 2>&1; then :
5210
5211 else
5212   ac_cv_header_stdc=no
5213 fi
5214 rm -f conftest*
5215
5216 fi
5217
5218 if test $ac_cv_header_stdc = yes; then
5219   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h.  */
5222 #include <stdlib.h>
5223
5224 _ACEOF
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226   $EGREP "free" >/dev/null 2>&1; then :
5227
5228 else
5229   ac_cv_header_stdc=no
5230 fi
5231 rm -f conftest*
5232
5233 fi
5234
5235 if test $ac_cv_header_stdc = yes; then
5236   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5237   if test "$cross_compiling" = yes; then :
5238   :
5239 else
5240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h.  */
5242 #include <ctype.h>
5243 #include <stdlib.h>
5244 #if ((' ' & 0x0FF) == 0x020)
5245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5247 #else
5248 # define ISLOWER(c) \
5249                    (('a' <= (c) && (c) <= 'i') \
5250                      || ('j' <= (c) && (c) <= 'r') \
5251                      || ('s' <= (c) && (c) <= 'z'))
5252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5253 #endif
5254
5255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5256 int
5257 main ()
5258 {
5259   int i;
5260   for (i = 0; i < 256; i++)
5261     if (XOR (islower (i), ISLOWER (i))
5262         || toupper (i) != TOUPPER (i))
5263       return 2;
5264   return 0;
5265 }
5266 _ACEOF
5267 if ac_fn_c_try_run "$LINENO"; then :
5268
5269 else
5270   ac_cv_header_stdc=no
5271 fi
5272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5273   conftest.$ac_objext conftest.beam conftest.$ac_ext
5274 fi
5275
5276 fi
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5279 $as_echo "$ac_cv_header_stdc" >&6; }
5280 if test $ac_cv_header_stdc = yes; then
5281
5282 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5283
5284 fi
5285
5286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5288                   inttypes.h stdint.h unistd.h
5289 do :
5290   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5292 "
5293 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5294   cat >>confdefs.h <<_ACEOF
5295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5296 _ACEOF
5297
5298 fi
5299
5300 done
5301
5302
5303
5304
5305
5306   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5307 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5308   MINIX=yes
5309 else
5310   MINIX=
5311 fi
5312
5313
5314   if test "$MINIX" = yes; then
5315
5316 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5317
5318
5319 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5320
5321
5322 $as_echo "#define _MINIX 1" >>confdefs.h
5323
5324   fi
5325
5326         case "$host_os" in
5327     hpux*)
5328
5329 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5330
5331       ;;
5332   esac
5333
5334
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5336 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5337 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h.  */
5342
5343 #         define __EXTENSIONS__ 1
5344           $ac_includes_default
5345 int
5346 main ()
5347 {
5348
5349   ;
5350   return 0;
5351 }
5352 _ACEOF
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354   ac_cv_safe_to_define___extensions__=yes
5355 else
5356   ac_cv_safe_to_define___extensions__=no
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 fi
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5361 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5362   test $ac_cv_safe_to_define___extensions__ = yes &&
5363     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5364
5365   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5366
5367   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5368
5369   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5370
5371   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384    case $ac_cv_prog_cc_stdc in #(
5385   no) :
5386     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5387   *) :
5388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5389 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5390 if test "${ac_cv_prog_cc_c99+set}" = set; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   ac_cv_prog_cc_c99=no
5394 ac_save_CC=$CC
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h.  */
5397 #include <stdarg.h>
5398 #include <stdbool.h>
5399 #include <stdlib.h>
5400 #include <wchar.h>
5401 #include <stdio.h>
5402
5403 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5404 #define debug(...) fprintf (stderr, __VA_ARGS__)
5405 #define showlist(...) puts (#__VA_ARGS__)
5406 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5407 static void
5408 test_varargs_macros (void)
5409 {
5410   int x = 1234;
5411   int y = 5678;
5412   debug ("Flag");
5413   debug ("X = %d\n", x);
5414   showlist (The first, second, and third items.);
5415   report (x>y, "x is %d but y is %d", x, y);
5416 }
5417
5418 // Check long long types.
5419 #define BIG64 18446744073709551615ull
5420 #define BIG32 4294967295ul
5421 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5422 #if !BIG_OK
5423   your preprocessor is broken;
5424 #endif
5425 #if BIG_OK
5426 #else
5427   your preprocessor is broken;
5428 #endif
5429 static long long int bignum = -9223372036854775807LL;
5430 static unsigned long long int ubignum = BIG64;
5431
5432 struct incomplete_array
5433 {
5434   int datasize;
5435   double data[];
5436 };
5437
5438 struct named_init {
5439   int number;
5440   const wchar_t *name;
5441   double average;
5442 };
5443
5444 typedef const char *ccp;
5445
5446 static inline int
5447 test_restrict (ccp restrict text)
5448 {
5449   // See if C++-style comments work.
5450   // Iterate through items via the restricted pointer.
5451   // Also check for declarations in for loops.
5452   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5453     continue;
5454   return 0;
5455 }
5456
5457 // Check varargs and va_copy.
5458 static void
5459 test_varargs (const char *format, ...)
5460 {
5461   va_list args;
5462   va_start (args, format);
5463   va_list args_copy;
5464   va_copy (args_copy, args);
5465
5466   const char *str;
5467   int number;
5468   float fnumber;
5469
5470   while (*format)
5471     {
5472       switch (*format++)
5473         {
5474         case 's': // string
5475           str = va_arg (args_copy, const char *);
5476           break;
5477         case 'd': // int
5478           number = va_arg (args_copy, int);
5479           break;
5480         case 'f': // float
5481           fnumber = va_arg (args_copy, double);
5482           break;
5483         default:
5484           break;
5485         }
5486     }
5487   va_end (args_copy);
5488   va_end (args);
5489 }
5490
5491 int
5492 main ()
5493 {
5494
5495   // Check bool.
5496   _Bool success = false;
5497
5498   // Check restrict.
5499   if (test_restrict ("String literal") == 0)
5500     success = true;
5501   char *restrict newvar = "Another string";
5502
5503   // Check varargs.
5504   test_varargs ("s, d' f .", "string", 65, 34.234);
5505   test_varargs_macros ();
5506
5507   // Check flexible array members.
5508   struct incomplete_array *ia =
5509     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5510   ia->datasize = 10;
5511   for (int i = 0; i < ia->datasize; ++i)
5512     ia->data[i] = i * 1.234;
5513
5514   // Check named initializers.
5515   struct named_init ni = {
5516     .number = 34,
5517     .name = L"Test wide string",
5518     .average = 543.34343,
5519   };
5520
5521   ni.number = 58;
5522
5523   int dynamic_array[ni.number];
5524   dynamic_array[ni.number - 1] = 543;
5525
5526   // work around unused variable warnings
5527   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5528           || dynamic_array[ni.number - 1] != 543);
5529
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5535 do
5536   CC="$ac_save_CC $ac_arg"
5537   if ac_fn_c_try_compile "$LINENO"; then :
5538   ac_cv_prog_cc_c99=$ac_arg
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext
5541   test "x$ac_cv_prog_cc_c99" != "xno" && break
5542 done
5543 rm -f conftest.$ac_ext
5544 CC=$ac_save_CC
5545
5546 fi
5547 # AC_CACHE_VAL
5548 case "x$ac_cv_prog_cc_c99" in
5549   x)
5550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5551 $as_echo "none needed" >&6; } ;;
5552   xno)
5553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5554 $as_echo "unsupported" >&6; } ;;
5555   *)
5556     CC="$CC $ac_cv_prog_cc_c99"
5557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5558 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5559 esac
5560 if test "x$ac_cv_prog_cc_c99" != xno; then :
5561   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5562 else
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5564 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5565 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   ac_cv_prog_cc_c89=no
5569 ac_save_CC=$CC
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h.  */
5572 #include <stdarg.h>
5573 #include <stdio.h>
5574 #include <sys/types.h>
5575 #include <sys/stat.h>
5576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5577 struct buf { int x; };
5578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5579 static char *e (p, i)
5580      char **p;
5581      int i;
5582 {
5583   return p[i];
5584 }
5585 static char *f (char * (*g) (char **, int), char **p, ...)
5586 {
5587   char *s;
5588   va_list v;
5589   va_start (v,p);
5590   s = g (p, va_arg (v,int));
5591   va_end (v);
5592   return s;
5593 }
5594
5595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5596    function prototypes and stuff, but not '\xHH' hex character constants.
5597    These don't provoke an error unfortunately, instead are silently treated
5598    as 'x'.  The following induces an error, until -std is added to get
5599    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5600    array size at least.  It's necessary to write '\x00'==0 to get something
5601    that's true only with -std.  */
5602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5603
5604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5605    inside strings and character constants.  */
5606 #define FOO(x) 'x'
5607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5608
5609 int test (int i, double x);
5610 struct s1 {int (*f) (int a);};
5611 struct s2 {int (*f) (double a);};
5612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5613 int argc;
5614 char **argv;
5615 int
5616 main ()
5617 {
5618 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5624         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5625 do
5626   CC="$ac_save_CC $ac_arg"
5627   if ac_fn_c_try_compile "$LINENO"; then :
5628   ac_cv_prog_cc_c89=$ac_arg
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext
5631   test "x$ac_cv_prog_cc_c89" != "xno" && break
5632 done
5633 rm -f conftest.$ac_ext
5634 CC=$ac_save_CC
5635
5636 fi
5637 # AC_CACHE_VAL
5638 case "x$ac_cv_prog_cc_c89" in
5639   x)
5640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5641 $as_echo "none needed" >&6; } ;;
5642   xno)
5643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5644 $as_echo "unsupported" >&6; } ;;
5645   *)
5646     CC="$CC $ac_cv_prog_cc_c89"
5647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5648 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5649 esac
5650 if test "x$ac_cv_prog_cc_c89" != xno; then :
5651   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5652 else
5653   ac_cv_prog_cc_stdc=no
5654 fi
5655
5656 fi
5657  ;;
5658 esac
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5660 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5661   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5662   $as_echo_n "(cached) " >&6
5663 fi
5664
5665   case $ac_cv_prog_cc_stdc in #(
5666   no) :
5667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5668 $as_echo "unsupported" >&6; } ;; #(
5669   '') :
5670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5671 $as_echo "none needed" >&6; } ;; #(
5672   *) :
5673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5674 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5675 esac
5676
5677
5678
5679
5680
5681
5682
5683   if test -z "$AB_PACKAGE"; then
5684     AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
5685   fi
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
5687 $as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
5688
5689   if test -z "$AB_VERSION"; then
5690     AB_VERSION=${PACKAGE_VERSION:-$VERSION}
5691   fi
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
5693 $as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
5694
5695   hostname=`hostname`
5696   if test "$hostname"; then
5697     { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
5698 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
5699   fi
5700
5701
5702
5703   date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
5704   if test "$?" != 0; then
5705     date=`date`
5706   fi
5707   if test "$date"; then
5708     { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
5709 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
5710   fi
5711
5712
5713
5714
5715 case `pwd` in
5716   *\ * | *\     *)
5717     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5718 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5719 esac
5720
5721
5722
5723 macro_version='2.2.6'
5724 macro_revision='1.3012'
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738 ltmain="$ac_aux_dir/ltmain.sh"
5739
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5741 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5742 if test "${ac_cv_path_SED+set}" = set; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5746      for ac_i in 1 2 3 4 5 6 7; do
5747        ac_script="$ac_script$as_nl$ac_script"
5748      done
5749      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5750      { ac_script=; unset ac_script;}
5751      if test -z "$SED"; then
5752   ac_path_SED_found=false
5753   # Loop through the user's path and test for each of PROGNAME-LIST
5754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757   IFS=$as_save_IFS
5758   test -z "$as_dir" && as_dir=.
5759     for ac_prog in sed gsed; do
5760     for ac_exec_ext in '' $ac_executable_extensions; do
5761       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5762       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5763 # Check for GNU ac_path_SED and select it if it is found.
5764   # Check for GNU $ac_path_SED
5765 case `"$ac_path_SED" --version 2>&1` in
5766 *GNU*)
5767   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5768 *)
5769   ac_count=0
5770   $as_echo_n 0123456789 >"conftest.in"
5771   while :
5772   do
5773     cat "conftest.in" "conftest.in" >"conftest.tmp"
5774     mv "conftest.tmp" "conftest.in"
5775     cp "conftest.in" "conftest.nl"
5776     $as_echo '' >> "conftest.nl"
5777     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5778     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5779     as_fn_arith $ac_count + 1 && ac_count=$as_val
5780     if test $ac_count -gt ${ac_path_SED_max-0}; then
5781       # Best one so far, save it but keep looking for a better one
5782       ac_cv_path_SED="$ac_path_SED"
5783       ac_path_SED_max=$ac_count
5784     fi
5785     # 10*(2^10) chars as input seems more than enough
5786     test $ac_count -gt 10 && break
5787   done
5788   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5789 esac
5790
5791       $ac_path_SED_found && break 3
5792     done
5793   done
5794   done
5795 IFS=$as_save_IFS
5796   if test -z "$ac_cv_path_SED"; then
5797     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5798   fi
5799 else
5800   ac_cv_path_SED=$SED
5801 fi
5802
5803 fi
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5805 $as_echo "$ac_cv_path_SED" >&6; }
5806  SED="$ac_cv_path_SED"
5807   rm -f conftest.sed
5808
5809 test -z "$SED" && SED=sed
5810 Xsed="$SED -e 1s/^X//"
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5823 $as_echo_n "checking for fgrep... " >&6; }
5824 if test "${ac_cv_path_FGREP+set}" = set; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5828    then ac_cv_path_FGREP="$GREP -F"
5829    else
5830      if test -z "$FGREP"; then
5831   ac_path_FGREP_found=false
5832   # Loop through the user's path and test for each of PROGNAME-LIST
5833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838     for ac_prog in fgrep; do
5839     for ac_exec_ext in '' $ac_executable_extensions; do
5840       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5841       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5842 # Check for GNU ac_path_FGREP and select it if it is found.
5843   # Check for GNU $ac_path_FGREP
5844 case `"$ac_path_FGREP" --version 2>&1` in
5845 *GNU*)
5846   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5847 *)
5848   ac_count=0
5849   $as_echo_n 0123456789 >"conftest.in"
5850   while :
5851   do
5852     cat "conftest.in" "conftest.in" >"conftest.tmp"
5853     mv "conftest.tmp" "conftest.in"
5854     cp "conftest.in" "conftest.nl"
5855     $as_echo 'FGREP' >> "conftest.nl"
5856     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5857     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5858     as_fn_arith $ac_count + 1 && ac_count=$as_val
5859     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5860       # Best one so far, save it but keep looking for a better one
5861       ac_cv_path_FGREP="$ac_path_FGREP"
5862       ac_path_FGREP_max=$ac_count
5863     fi
5864     # 10*(2^10) chars as input seems more than enough
5865     test $ac_count -gt 10 && break
5866   done
5867   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5868 esac
5869
5870       $ac_path_FGREP_found && break 3
5871     done
5872   done
5873   done
5874 IFS=$as_save_IFS
5875   if test -z "$ac_cv_path_FGREP"; then
5876     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5877   fi
5878 else
5879   ac_cv_path_FGREP=$FGREP
5880 fi
5881
5882    fi
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5885 $as_echo "$ac_cv_path_FGREP" >&6; }
5886  FGREP="$ac_cv_path_FGREP"
5887
5888
5889 test -z "$GREP" && GREP=grep
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 # Check whether --with-gnu-ld was given.
5910 if test "${with_gnu_ld+set}" = set; then :
5911   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5912 else
5913   with_gnu_ld=no
5914 fi
5915
5916 ac_prog=ld
5917 if test "$GCC" = yes; then
5918   # Check if gcc -print-prog-name=ld gives a path.
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5920 $as_echo_n "checking for ld used by $CC... " >&6; }
5921   case $host in
5922   *-*-mingw*)
5923     # gcc leaves a trailing carriage return which upsets mingw
5924     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5925   *)
5926     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5927   esac
5928   case $ac_prog in
5929     # Accept absolute paths.
5930     [\\/]* | ?:[\\/]*)
5931       re_direlt='/[^/][^/]*/\.\./'
5932       # Canonicalize the pathname of ld
5933       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5934       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5935         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5936       done
5937       test -z "$LD" && LD="$ac_prog"
5938       ;;
5939   "")
5940     # If it fails, then pretend we aren't using GCC.
5941     ac_prog=ld
5942     ;;
5943   *)
5944     # If it is relative, then search for the first ld in PATH.
5945     with_gnu_ld=unknown
5946     ;;
5947   esac
5948 elif test "$with_gnu_ld" = yes; then
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5950 $as_echo_n "checking for GNU ld... " >&6; }
5951 else
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5953 $as_echo_n "checking for non-GNU ld... " >&6; }
5954 fi
5955 if test "${lt_cv_path_LD+set}" = set; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958   if test -z "$LD"; then
5959   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5960   for ac_dir in $PATH; do
5961     IFS="$lt_save_ifs"
5962     test -z "$ac_dir" && ac_dir=.
5963     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5964       lt_cv_path_LD="$ac_dir/$ac_prog"
5965       # Check to see if the program is GNU ld.  I'd rather use --version,
5966       # but apparently some variants of GNU ld only accept -v.
5967       # Break only if it was the GNU/non-GNU ld that we prefer.
5968       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5969       *GNU* | *'with BFD'*)
5970         test "$with_gnu_ld" != no && break
5971         ;;
5972       *)
5973         test "$with_gnu_ld" != yes && break
5974         ;;
5975       esac
5976     fi
5977   done
5978   IFS="$lt_save_ifs"
5979 else
5980   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5981 fi
5982 fi
5983
5984 LD="$lt_cv_path_LD"
5985 if test -n "$LD"; then
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5987 $as_echo "$LD" >&6; }
5988 else
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5994 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5995 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5999 case `$LD -v 2>&1 </dev/null` in
6000 *GNU* | *'with BFD'*)
6001   lt_cv_prog_gnu_ld=yes
6002   ;;
6003 *)
6004   lt_cv_prog_gnu_ld=no
6005   ;;
6006 esac
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6009 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6010 with_gnu_ld=$lt_cv_prog_gnu_ld
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6021 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6022 if test "${lt_cv_path_NM+set}" = set; then :
6023   $as_echo_n "(cached) " >&6
6024 else
6025   if test -n "$NM"; then
6026   # Let the user override the test.
6027   lt_cv_path_NM="$NM"
6028 else
6029   lt_nm_to_check="${ac_tool_prefix}nm"
6030   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6031     lt_nm_to_check="$lt_nm_to_check nm"
6032   fi
6033   for lt_tmp_nm in $lt_nm_to_check; do
6034     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6035     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6036       IFS="$lt_save_ifs"
6037       test -z "$ac_dir" && ac_dir=.
6038       tmp_nm="$ac_dir/$lt_tmp_nm"
6039       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6040         # Check to see if the nm accepts a BSD-compat flag.
6041         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6042         #   nm: unknown option "B" ignored
6043         # Tru64's nm complains that /dev/null is an invalid object file
6044         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6045         */dev/null* | *'Invalid file or object type'*)
6046           lt_cv_path_NM="$tmp_nm -B"
6047           break
6048           ;;
6049         *)
6050           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6051           */dev/null*)
6052             lt_cv_path_NM="$tmp_nm -p"
6053             break
6054             ;;
6055           *)
6056             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6057             continue # so that we can try to find one that supports BSD flags
6058             ;;
6059           esac
6060           ;;
6061         esac
6062       fi
6063     done
6064     IFS="$lt_save_ifs"
6065   done
6066   : ${lt_cv_path_NM=no}
6067 fi
6068 fi
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6070 $as_echo "$lt_cv_path_NM" >&6; }
6071 if test "$lt_cv_path_NM" != "no"; then
6072   NM="$lt_cv_path_NM"
6073 else
6074   # Didn't find any BSD compatible name lister, look for dumpbin.
6075   if test -n "$ac_tool_prefix"; then
6076   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6077   do
6078     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   if test -n "$DUMPBIN"; then
6086   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100   done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 DUMPBIN=$ac_cv_prog_DUMPBIN
6106 if test -n "$DUMPBIN"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6108 $as_echo "$DUMPBIN" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114
6115     test -n "$DUMPBIN" && break
6116   done
6117 fi
6118 if test -z "$DUMPBIN"; then
6119   ac_ct_DUMPBIN=$DUMPBIN
6120   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6121 do
6122   # Extract the first word of "$ac_prog", so it can be a program name with args.
6123 set dummy $ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   if test -n "$ac_ct_DUMPBIN"; then
6130   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135   IFS=$as_save_IFS
6136   test -z "$as_dir" && as_dir=.
6137     for ac_exec_ext in '' $ac_executable_extensions; do
6138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141     break 2
6142   fi
6143 done
6144   done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6150 if test -n "$ac_ct_DUMPBIN"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6152 $as_echo "$ac_ct_DUMPBIN" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158
6159   test -n "$ac_ct_DUMPBIN" && break
6160 done
6161
6162   if test "x$ac_ct_DUMPBIN" = x; then
6163     DUMPBIN=":"
6164   else
6165     case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6170 esac
6171     DUMPBIN=$ac_ct_DUMPBIN
6172   fi
6173 fi
6174
6175
6176   if test "$DUMPBIN" != ":"; then
6177     NM="$DUMPBIN"
6178   fi
6179 fi
6180 test -z "$NM" && NM=nm
6181
6182
6183
6184
6185
6186
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6188 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6189 if test "${lt_cv_nm_interface+set}" = set; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   lt_cv_nm_interface="BSD nm"
6193   echo "int some_variable = 0;" > conftest.$ac_ext
6194   (eval echo "\"\$as_me:6194: $ac_compile\"" >&5)
6195   (eval "$ac_compile" 2>conftest.err)
6196   cat conftest.err >&5
6197   (eval echo "\"\$as_me:6197: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6198   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6199   cat conftest.err >&5
6200   (eval echo "\"\$as_me:6200: output\"" >&5)
6201   cat conftest.out >&5
6202   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6203     lt_cv_nm_interface="MS dumpbin"
6204   fi
6205   rm -f conftest*
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6208 $as_echo "$lt_cv_nm_interface" >&6; }
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6211 $as_echo_n "checking whether ln -s works... " >&6; }
6212 LN_S=$as_ln_s
6213 if test "$LN_S" = "ln -s"; then
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6215 $as_echo "yes" >&6; }
6216 else
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6218 $as_echo "no, using $LN_S" >&6; }
6219 fi
6220
6221 # find the maximum length of command line arguments
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6223 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6224 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6225   $as_echo_n "(cached) " >&6
6226 else
6227     i=0
6228   teststring="ABCD"
6229
6230   case $build_os in
6231   msdosdjgpp*)
6232     # On DJGPP, this test can blow up pretty badly due to problems in libc
6233     # (any single argument exceeding 2000 bytes causes a buffer overrun
6234     # during glob expansion).  Even if it were fixed, the result of this
6235     # check would be larger than it should be.
6236     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6237     ;;
6238
6239   gnu*)
6240     # Under GNU Hurd, this test is not required because there is
6241     # no limit to the length of command line arguments.
6242     # Libtool will interpret -1 as no limit whatsoever
6243     lt_cv_sys_max_cmd_len=-1;
6244     ;;
6245
6246   cygwin* | mingw* | cegcc*)
6247     # On Win9x/ME, this test blows up -- it succeeds, but takes
6248     # about 5 minutes as the teststring grows exponentially.
6249     # Worse, since 9x/ME are not pre-emptively multitasking,
6250     # you end up with a "frozen" computer, even though with patience
6251     # the test eventually succeeds (with a max line length of 256k).
6252     # Instead, let's just punt: use the minimum linelength reported by
6253     # all of the supported platforms: 8192 (on NT/2K/XP).
6254     lt_cv_sys_max_cmd_len=8192;
6255     ;;
6256
6257   amigaos*)
6258     # On AmigaOS with pdksh, this test takes hours, literally.
6259     # So we just punt and use a minimum line length of 8192.
6260     lt_cv_sys_max_cmd_len=8192;
6261     ;;
6262
6263   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6264     # This has been around since 386BSD, at least.  Likely further.
6265     if test -x /sbin/sysctl; then
6266       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6267     elif test -x /usr/sbin/sysctl; then
6268       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6269     else
6270       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6271     fi
6272     # And add a safety zone
6273     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6274     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6275     ;;
6276
6277   interix*)
6278     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6279     lt_cv_sys_max_cmd_len=196608
6280     ;;
6281
6282   osf*)
6283     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6284     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6285     # nice to cause kernel panics so lets avoid the loop below.
6286     # First set a reasonable default.
6287     lt_cv_sys_max_cmd_len=16384
6288     #
6289     if test -x /sbin/sysconfig; then
6290       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6291         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6292       esac
6293     fi
6294     ;;
6295   sco3.2v5*)
6296     lt_cv_sys_max_cmd_len=102400
6297     ;;
6298   sysv5* | sco5v6* | sysv4.2uw2*)
6299     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6300     if test -n "$kargmax"; then
6301       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6302     else
6303       lt_cv_sys_max_cmd_len=32768
6304     fi
6305     ;;
6306   *)
6307     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6308     if test -n "$lt_cv_sys_max_cmd_len"; then
6309       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6310       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6311     else
6312       # Make teststring a little bigger before we do anything with it.
6313       # a 1K string should be a reasonable start.
6314       for i in 1 2 3 4 5 6 7 8 ; do
6315         teststring=$teststring$teststring
6316       done
6317       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6318       # If test is not a shell built-in, we'll probably end up computing a
6319       # maximum length that is only half of the actual maximum length, but
6320       # we can't tell.
6321       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6322                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6323               test $i != 17 # 1/2 MB should be enough
6324       do
6325         i=`expr $i + 1`
6326         teststring=$teststring$teststring
6327       done
6328       # Only check the string length outside the loop.
6329       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6330       teststring=
6331       # Add a significant safety factor because C++ compilers can tack on
6332       # massive amounts of additional arguments before passing them to the
6333       # linker.  It appears as though 1/2 is a usable value.
6334       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6335     fi
6336     ;;
6337   esac
6338
6339 fi
6340
6341 if test -n $lt_cv_sys_max_cmd_len ; then
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6343 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6344 else
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6346 $as_echo "none" >&6; }
6347 fi
6348 max_cmd_len=$lt_cv_sys_max_cmd_len
6349
6350
6351
6352
6353
6354
6355 : ${CP="cp -f"}
6356 : ${MV="mv -f"}
6357 : ${RM="rm -f"}
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6360 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6361 # Try some XSI features
6362 xsi_shell=no
6363 ( _lt_dummy="a/b/c"
6364   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6365       = c,a/b,, \
6366     && eval 'test $(( 1 + 1 )) -eq 2 \
6367     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6368   && xsi_shell=yes
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6370 $as_echo "$xsi_shell" >&6; }
6371
6372
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6374 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6375 lt_shell_append=no
6376 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6377     >/dev/null 2>&1 \
6378   && lt_shell_append=yes
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6380 $as_echo "$lt_shell_append" >&6; }
6381
6382
6383 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6384   lt_unset=unset
6385 else
6386   lt_unset=false
6387 fi
6388
6389
6390
6391
6392
6393 # test EBCDIC or ASCII
6394 case `echo X|tr X '\101'` in
6395  A) # ASCII based system
6396     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6397   lt_SP2NL='tr \040 \012'
6398   lt_NL2SP='tr \015\012 \040\040'
6399   ;;
6400  *) # EBCDIC based system
6401   lt_SP2NL='tr \100 \n'
6402   lt_NL2SP='tr \r\n \100\100'
6403   ;;
6404 esac
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6415 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6416 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6417   $as_echo_n "(cached) " >&6
6418 else
6419   lt_cv_ld_reload_flag='-r'
6420 fi
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6422 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6423 reload_flag=$lt_cv_ld_reload_flag
6424 case $reload_flag in
6425 "" | " "*) ;;
6426 *) reload_flag=" $reload_flag" ;;
6427 esac
6428 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6429 case $host_os in
6430   darwin*)
6431     if test "$GCC" = yes; then
6432       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6433     else
6434       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6435     fi
6436     ;;
6437 esac
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447 if test -n "$ac_tool_prefix"; then
6448   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   if test -n "$OBJDUMP"; then
6456   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463     for ac_exec_ext in '' $ac_executable_extensions; do
6464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470   done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 OBJDUMP=$ac_cv_prog_OBJDUMP
6476 if test -n "$OBJDUMP"; then
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6478 $as_echo "$OBJDUMP" >&6; }
6479 else
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484
6485 fi
6486 if test -z "$ac_cv_prog_OBJDUMP"; then
6487   ac_ct_OBJDUMP=$OBJDUMP
6488   # Extract the first word of "objdump", so it can be a program name with args.
6489 set dummy objdump; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   if test -n "$ac_ct_OBJDUMP"; then
6496   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503     for ac_exec_ext in '' $ac_executable_extensions; do
6504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510   done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6516 if test -n "$ac_ct_OBJDUMP"; then
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6518 $as_echo "$ac_ct_OBJDUMP" >&6; }
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524   if test "x$ac_ct_OBJDUMP" = x; then
6525     OBJDUMP="false"
6526   else
6527     case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533     OBJDUMP=$ac_ct_OBJDUMP
6534   fi
6535 else
6536   OBJDUMP="$ac_cv_prog_OBJDUMP"
6537 fi
6538
6539 test -z "$OBJDUMP" && OBJDUMP=objdump
6540
6541
6542
6543
6544
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6547 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6548 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   lt_cv_file_magic_cmd='$MAGIC_CMD'
6552 lt_cv_file_magic_test_file=
6553 lt_cv_deplibs_check_method='unknown'
6554 # Need to set the preceding variable on all platforms that support
6555 # interlibrary dependencies.
6556 # 'none' -- dependencies not supported.
6557 # `unknown' -- same as none, but documents that we really don't know.
6558 # 'pass_all' -- all dependencies passed with no checks.
6559 # 'test_compile' -- check by making test program.
6560 # 'file_magic [[regex]]' -- check by looking for files in library path
6561 # which responds to the $file_magic_cmd with a given extended regex.
6562 # If you have `file' or equivalent on your system and you're not sure
6563 # whether `pass_all' will *always* work, you probably want this one.
6564
6565 case $host_os in
6566 aix[4-9]*)
6567   lt_cv_deplibs_check_method=pass_all
6568   ;;
6569
6570 beos*)
6571   lt_cv_deplibs_check_method=pass_all
6572   ;;
6573
6574 bsdi[45]*)
6575   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6576   lt_cv_file_magic_cmd='/usr/bin/file -L'
6577   lt_cv_file_magic_test_file=/shlib/libc.so
6578   ;;
6579
6580 cygwin*)
6581   # func_win32_libid is a shell function defined in ltmain.sh
6582   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6583   lt_cv_file_magic_cmd='func_win32_libid'
6584   ;;
6585
6586 mingw* | pw32*)
6587   # Base MSYS/MinGW do not provide the 'file' command needed by
6588   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6589   # unless we find 'file', for example because we are cross-compiling.
6590   if ( file / ) >/dev/null 2>&1; then
6591     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6592     lt_cv_file_magic_cmd='func_win32_libid'
6593   else
6594     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6595     lt_cv_file_magic_cmd='$OBJDUMP -f'
6596   fi
6597   ;;
6598
6599 cegcc)
6600   # use the weaker test based on 'objdump'. See mingw*.
6601   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6602   lt_cv_file_magic_cmd='$OBJDUMP -f'
6603   ;;
6604
6605 darwin* | rhapsody*)
6606   lt_cv_deplibs_check_method=pass_all
6607   ;;
6608
6609 freebsd* | dragonfly*)
6610   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6611     case $host_cpu in
6612     i*86 )
6613       # Not sure whether the presence of OpenBSD here was a mistake.
6614       # Let's accept both of them until this is cleared up.
6615       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6616       lt_cv_file_magic_cmd=/usr/bin/file
6617       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6618       ;;
6619     esac
6620   else
6621     lt_cv_deplibs_check_method=pass_all
6622   fi
6623   ;;
6624
6625 gnu*)
6626   lt_cv_deplibs_check_method=pass_all
6627   ;;
6628
6629 hpux10.20* | hpux11*)
6630   lt_cv_file_magic_cmd=/usr/bin/file
6631   case $host_cpu in
6632   ia64*)
6633     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6634     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6635     ;;
6636   hppa*64*)
6637     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]'
6638     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6639     ;;
6640   *)
6641     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6642     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6643     ;;
6644   esac
6645   ;;
6646
6647 interix[3-9]*)
6648   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6649   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6650   ;;
6651
6652 irix5* | irix6* | nonstopux*)
6653   case $LD in
6654   *-32|*"-32 ") libmagic=32-bit;;
6655   *-n32|*"-n32 ") libmagic=N32;;
6656   *-64|*"-64 ") libmagic=64-bit;;
6657   *) libmagic=never-match;;
6658   esac
6659   lt_cv_deplibs_check_method=pass_all
6660   ;;
6661
6662 # This must be Linux ELF.
6663 linux* | k*bsd*-gnu)
6664   lt_cv_deplibs_check_method=pass_all
6665   ;;
6666
6667 netbsd*)
6668   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6669     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6670   else
6671     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6672   fi
6673   ;;
6674
6675 newos6*)
6676   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6677   lt_cv_file_magic_cmd=/usr/bin/file
6678   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6679   ;;
6680
6681 *nto* | *qnx*)
6682   lt_cv_deplibs_check_method=pass_all
6683   ;;
6684
6685 openbsd*)
6686   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6687     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6688   else
6689     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6690   fi
6691   ;;
6692
6693 osf3* | osf4* | osf5*)
6694   lt_cv_deplibs_check_method=pass_all
6695   ;;
6696
6697 rdos*)
6698   lt_cv_deplibs_check_method=pass_all
6699   ;;
6700
6701 solaris*)
6702   lt_cv_deplibs_check_method=pass_all
6703   ;;
6704
6705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6706   lt_cv_deplibs_check_method=pass_all
6707   ;;
6708
6709 sysv4 | sysv4.3*)
6710   case $host_vendor in
6711   motorola)
6712     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]'
6713     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6714     ;;
6715   ncr)
6716     lt_cv_deplibs_check_method=pass_all
6717     ;;
6718   sequent)
6719     lt_cv_file_magic_cmd='/bin/file'
6720     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6721     ;;
6722   sni)
6723     lt_cv_file_magic_cmd='/bin/file'
6724     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6725     lt_cv_file_magic_test_file=/lib/libc.so
6726     ;;
6727   siemens)
6728     lt_cv_deplibs_check_method=pass_all
6729     ;;
6730   pc)
6731     lt_cv_deplibs_check_method=pass_all
6732     ;;
6733   esac
6734   ;;
6735
6736 tpf*)
6737   lt_cv_deplibs_check_method=pass_all
6738   ;;
6739 esac
6740
6741 fi
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6743 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6744 file_magic_cmd=$lt_cv_file_magic_cmd
6745 deplibs_check_method=$lt_cv_deplibs_check_method
6746 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759 if test -n "$ac_tool_prefix"; then
6760   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}ar; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_AR+set}" = set; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   if test -n "$AR"; then
6768   ac_cv_prog_AR="$AR" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775     for ac_exec_ext in '' $ac_executable_extensions; do
6776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777     ac_cv_prog_AR="${ac_tool_prefix}ar"
6778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782   done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 AR=$ac_cv_prog_AR
6788 if test -n "$AR"; then
6789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6790 $as_echo "$AR" >&6; }
6791 else
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796
6797 fi
6798 if test -z "$ac_cv_prog_AR"; then
6799   ac_ct_AR=$AR
6800   # Extract the first word of "ar", so it can be a program name with args.
6801 set dummy ar; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6805   $as_echo_n "(cached) " >&6
6806 else
6807   if test -n "$ac_ct_AR"; then
6808   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815     for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_prog_ac_ct_AR="ar"
6818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822   done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6828 if test -n "$ac_ct_AR"; then
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6830 $as_echo "$ac_ct_AR" >&6; }
6831 else
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836   if test "x$ac_ct_AR" = x; then
6837     AR="false"
6838   else
6839     case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845     AR=$ac_ct_AR
6846   fi
6847 else
6848   AR="$ac_cv_prog_AR"
6849 fi
6850
6851 test -z "$AR" && AR=ar
6852 test -z "$AR_FLAGS" && AR_FLAGS=cru
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864 if test -n "$ac_tool_prefix"; then
6865   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}strip; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if test "${ac_cv_prog_STRIP+set}" = set; then :
6870   $as_echo_n "(cached) " >&6
6871 else
6872   if test -n "$STRIP"; then
6873   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880     for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887   done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 STRIP=$ac_cv_prog_STRIP
6893 if test -n "$STRIP"; then
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6895 $as_echo "$STRIP" >&6; }
6896 else
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901
6902 fi
6903 if test -z "$ac_cv_prog_STRIP"; then
6904   ac_ct_STRIP=$STRIP
6905   # Extract the first word of "strip", so it can be a program name with args.
6906 set dummy strip; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   if test -n "$ac_ct_STRIP"; then
6913   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920     for ac_exec_ext in '' $ac_executable_extensions; do
6921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922     ac_cv_prog_ac_ct_STRIP="strip"
6923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927   done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6933 if test -n "$ac_ct_STRIP"; then
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6935 $as_echo "$ac_ct_STRIP" >&6; }
6936 else
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6939 fi
6940
6941   if test "x$ac_ct_STRIP" = x; then
6942     STRIP=":"
6943   else
6944     case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950     STRIP=$ac_ct_STRIP
6951   fi
6952 else
6953   STRIP="$ac_cv_prog_STRIP"
6954 fi
6955
6956 test -z "$STRIP" && STRIP=:
6957
6958
6959
6960
6961
6962
6963 if test -n "$ac_tool_prefix"; then
6964   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   if test -n "$RANLIB"; then
6972   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   test -z "$as_dir" && as_dir=.
6979     for ac_exec_ext in '' $ac_executable_extensions; do
6980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983     break 2
6984   fi
6985 done
6986   done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 RANLIB=$ac_cv_prog_RANLIB
6992 if test -n "$RANLIB"; then
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6994 $as_echo "$RANLIB" >&6; }
6995 else
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000
7001 fi
7002 if test -z "$ac_cv_prog_RANLIB"; then
7003   ac_ct_RANLIB=$RANLIB
7004   # Extract the first word of "ranlib", so it can be a program name with args.
7005 set dummy ranlib; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   if test -n "$ac_ct_RANLIB"; then
7012   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019     for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_prog_ac_ct_RANLIB="ranlib"
7022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026   done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7032 if test -n "$ac_ct_RANLIB"; then
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7034 $as_echo "$ac_ct_RANLIB" >&6; }
7035 else
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040   if test "x$ac_ct_RANLIB" = x; then
7041     RANLIB=":"
7042   else
7043     case $cross_compiling:$ac_tool_warned in
7044 yes:)
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047 ac_tool_warned=yes ;;
7048 esac
7049     RANLIB=$ac_ct_RANLIB
7050   fi
7051 else
7052   RANLIB="$ac_cv_prog_RANLIB"
7053 fi
7054
7055 test -z "$RANLIB" && RANLIB=:
7056
7057
7058
7059
7060
7061
7062 # Determine commands to create old-style static archives.
7063 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7064 old_postinstall_cmds='chmod 644 $oldlib'
7065 old_postuninstall_cmds=
7066
7067 if test -n "$RANLIB"; then
7068   case $host_os in
7069   openbsd*)
7070     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7071     ;;
7072   *)
7073     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7074     ;;
7075   esac
7076   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7077 fi
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112 # If no C compiler was specified, use CC.
7113 LTCC=${LTCC-"$CC"}
7114
7115 # If no C compiler flags were specified, use CFLAGS.
7116 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7117
7118 # Allow CC to be a program name with arguments.
7119 compiler=$CC
7120
7121
7122 # Check for command to grab the raw symbol name followed by C symbol from nm.
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7124 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7125 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7126   $as_echo_n "(cached) " >&6
7127 else
7128
7129 # These are sane defaults that work on at least a few old systems.
7130 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7131
7132 # Character class describing NM global symbol codes.
7133 symcode='[BCDEGRST]'
7134
7135 # Regexp to match symbols that can be accessed directly from C.
7136 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7137
7138 # Define system-specific variables.
7139 case $host_os in
7140 aix*)
7141   symcode='[BCDT]'
7142   ;;
7143 cygwin* | mingw* | pw32* | cegcc*)
7144   symcode='[ABCDGISTW]'
7145   ;;
7146 hpux*)
7147   if test "$host_cpu" = ia64; then
7148     symcode='[ABCDEGRST]'
7149   fi
7150   ;;
7151 irix* | nonstopux*)
7152   symcode='[BCDEGRST]'
7153   ;;
7154 osf*)
7155   symcode='[BCDEGQRST]'
7156   ;;
7157 solaris*)
7158   symcode='[BDRT]'
7159   ;;
7160 sco3.2v5*)
7161   symcode='[DT]'
7162   ;;
7163 sysv4.2uw2*)
7164   symcode='[DT]'
7165   ;;
7166 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7167   symcode='[ABDT]'
7168   ;;
7169 sysv4)
7170   symcode='[DFNSTU]'
7171   ;;
7172 esac
7173
7174 # If we're using GNU nm, then use its standard symbol codes.
7175 case `$NM -V 2>&1` in
7176 *GNU* | *'with BFD'*)
7177   symcode='[ABCDGIRSTW]' ;;
7178 esac
7179
7180 # Transform an extracted symbol line into a proper C declaration.
7181 # Some systems (esp. on ia64) link data and code symbols differently,
7182 # so use this general approach.
7183 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7184
7185 # Transform an extracted symbol line into symbol name and symbol address
7186 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7187 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'"
7188
7189 # Handle CRLF in mingw tool chain
7190 opt_cr=
7191 case $build_os in
7192 mingw*)
7193   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7194   ;;
7195 esac
7196
7197 # Try without a prefix underscore, then with it.
7198 for ac_symprfx in "" "_"; do
7199
7200   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7201   symxfrm="\\1 $ac_symprfx\\2 \\2"
7202
7203   # Write the raw and C identifiers.
7204   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7205     # Fake it for dumpbin and say T for any non-static function
7206     # and D for any global variable.
7207     # Also find C++ and __fastcall symbols from MSVC++,
7208     # which start with @ or ?.
7209     lt_cv_sys_global_symbol_pipe="$AWK '"\
7210 "     {last_section=section; section=\$ 3};"\
7211 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7212 "     \$ 0!~/External *\|/{next};"\
7213 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7214 "     {if(hide[section]) next};"\
7215 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7216 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7217 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7218 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7219 "     ' prfx=^$ac_symprfx"
7220   else
7221     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7222   fi
7223
7224   # Check to see that the pipe works correctly.
7225   pipe_works=no
7226
7227   rm -f conftest*
7228   cat > conftest.$ac_ext <<_LT_EOF
7229 #ifdef __cplusplus
7230 extern "C" {
7231 #endif
7232 char nm_test_var;
7233 void nm_test_func(void);
7234 void nm_test_func(void){}
7235 #ifdef __cplusplus
7236 }
7237 #endif
7238 int main(){nm_test_var='a';nm_test_func();return(0);}
7239 _LT_EOF
7240
7241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7242   (eval $ac_compile) 2>&5
7243   ac_status=$?
7244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245   test $ac_status = 0; }; then
7246     # Now try to grab the symbols.
7247     nlist=conftest.nm
7248     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7249   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7250   ac_status=$?
7251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7252   test $ac_status = 0; } && test -s "$nlist"; then
7253       # Try sorting and uniquifying the output.
7254       if sort "$nlist" | uniq > "$nlist"T; then
7255         mv -f "$nlist"T "$nlist"
7256       else
7257         rm -f "$nlist"T
7258       fi
7259
7260       # Make sure that we snagged all the symbols we need.
7261       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7262         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7263           cat <<_LT_EOF > conftest.$ac_ext
7264 #ifdef __cplusplus
7265 extern "C" {
7266 #endif
7267
7268 _LT_EOF
7269           # Now generate the symbol file.
7270           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7271
7272           cat <<_LT_EOF >> conftest.$ac_ext
7273
7274 /* The mapping between symbol names and symbols.  */
7275 const struct {
7276   const char *name;
7277   void       *address;
7278 }
7279 lt__PROGRAM__LTX_preloaded_symbols[] =
7280 {
7281   { "@PROGRAM@", (void *) 0 },
7282 _LT_EOF
7283           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7284           cat <<\_LT_EOF >> conftest.$ac_ext
7285   {0, (void *) 0}
7286 };
7287
7288 /* This works around a problem in FreeBSD linker */
7289 #ifdef FREEBSD_WORKAROUND
7290 static const void *lt_preloaded_setup() {
7291   return lt__PROGRAM__LTX_preloaded_symbols;
7292 }
7293 #endif
7294
7295 #ifdef __cplusplus
7296 }
7297 #endif
7298 _LT_EOF
7299           # Now try linking the two files.
7300           mv conftest.$ac_objext conftstm.$ac_objext
7301           lt_save_LIBS="$LIBS"
7302           lt_save_CFLAGS="$CFLAGS"
7303           LIBS="conftstm.$ac_objext"
7304           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7305           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7306   (eval $ac_link) 2>&5
7307   ac_status=$?
7308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7309   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7310             pipe_works=yes
7311           fi
7312           LIBS="$lt_save_LIBS"
7313           CFLAGS="$lt_save_CFLAGS"
7314         else
7315           echo "cannot find nm_test_func in $nlist" >&5
7316         fi
7317       else
7318         echo "cannot find nm_test_var in $nlist" >&5
7319       fi
7320     else
7321       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7322     fi
7323   else
7324     echo "$progname: failed program was:" >&5
7325     cat conftest.$ac_ext >&5
7326   fi
7327   rm -rf conftest* conftst*
7328
7329   # Do not use the global_symbol_pipe unless it works.
7330   if test "$pipe_works" = yes; then
7331     break
7332   else
7333     lt_cv_sys_global_symbol_pipe=
7334   fi
7335 done
7336
7337 fi
7338
7339 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7340   lt_cv_sys_global_symbol_to_cdecl=
7341 fi
7342 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7344 $as_echo "failed" >&6; }
7345 else
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7347 $as_echo "ok" >&6; }
7348 fi
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371 # Check whether --enable-libtool-lock was given.
7372 if test "${enable_libtool_lock+set}" = set; then :
7373   enableval=$enable_libtool_lock;
7374 fi
7375
7376 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7377
7378 # Some flags need to be propagated to the compiler or linker for good
7379 # libtool support.
7380 case $host in
7381 ia64-*-hpux*)
7382   # Find out which ABI we are using.
7383   echo 'int i;' > conftest.$ac_ext
7384   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7385   (eval $ac_compile) 2>&5
7386   ac_status=$?
7387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388   test $ac_status = 0; }; then
7389     case `/usr/bin/file conftest.$ac_objext` in
7390       *ELF-32*)
7391         HPUX_IA64_MODE="32"
7392         ;;
7393       *ELF-64*)
7394         HPUX_IA64_MODE="64"
7395         ;;
7396     esac
7397   fi
7398   rm -rf conftest*
7399   ;;
7400 *-*-irix6*)
7401   # Find out which ABI we are using.
7402   echo '#line 7402 "configure"' > conftest.$ac_ext
7403   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404   (eval $ac_compile) 2>&5
7405   ac_status=$?
7406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407   test $ac_status = 0; }; then
7408     if test "$lt_cv_prog_gnu_ld" = yes; then
7409       case `/usr/bin/file conftest.$ac_objext` in
7410         *32-bit*)
7411           LD="${LD-ld} -melf32bsmip"
7412           ;;
7413         *N32*)
7414           LD="${LD-ld} -melf32bmipn32"
7415           ;;
7416         *64-bit*)
7417           LD="${LD-ld} -melf64bmip"
7418         ;;
7419       esac
7420     else
7421       case `/usr/bin/file conftest.$ac_objext` in
7422         *32-bit*)
7423           LD="${LD-ld} -32"
7424           ;;
7425         *N32*)
7426           LD="${LD-ld} -n32"
7427           ;;
7428         *64-bit*)
7429           LD="${LD-ld} -64"
7430           ;;
7431       esac
7432     fi
7433   fi
7434   rm -rf conftest*
7435   ;;
7436
7437 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7438 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7439   # Find out which ABI we are using.
7440   echo 'int i;' > conftest.$ac_ext
7441   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442   (eval $ac_compile) 2>&5
7443   ac_status=$?
7444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445   test $ac_status = 0; }; then
7446     case `/usr/bin/file conftest.o` in
7447       *32-bit*)
7448         case $host in
7449           x86_64-*kfreebsd*-gnu)
7450             LD="${LD-ld} -m elf_i386_fbsd"
7451             ;;
7452           x86_64-*linux*)
7453             LD="${LD-ld} -m elf_i386"
7454             ;;
7455           ppc64-*linux*|powerpc64-*linux*)
7456             LD="${LD-ld} -m elf32ppclinux"
7457             ;;
7458           s390x-*linux*)
7459             LD="${LD-ld} -m elf_s390"
7460             ;;
7461           sparc64-*linux*)
7462             LD="${LD-ld} -m elf32_sparc"
7463             ;;
7464         esac
7465         ;;
7466       *64-bit*)
7467         case $host in
7468           x86_64-*kfreebsd*-gnu)
7469             LD="${LD-ld} -m elf_x86_64_fbsd"
7470             ;;
7471           x86_64-*linux*)
7472             LD="${LD-ld} -m elf_x86_64"
7473             ;;
7474           ppc*-*linux*|powerpc*-*linux*)
7475             LD="${LD-ld} -m elf64ppc"
7476             ;;
7477           s390*-*linux*|s390*-*tpf*)
7478             LD="${LD-ld} -m elf64_s390"
7479             ;;
7480           sparc*-*linux*)
7481             LD="${LD-ld} -m elf64_sparc"
7482             ;;
7483         esac
7484         ;;
7485     esac
7486   fi
7487   rm -rf conftest*
7488   ;;
7489
7490 *-*-sco3.2v5*)
7491   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7492   SAVE_CFLAGS="$CFLAGS"
7493   CFLAGS="$CFLAGS -belf"
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7495 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7496 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   ac_ext=c
7500 ac_cpp='$CPP $CPPFLAGS'
7501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504
7505      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h.  */
7507
7508 int
7509 main ()
7510 {
7511
7512   ;
7513   return 0;
7514 }
7515 _ACEOF
7516 if ac_fn_c_try_link "$LINENO"; then :
7517   lt_cv_cc_needs_belf=yes
7518 else
7519   lt_cv_cc_needs_belf=no
7520 fi
7521 rm -f core conftest.err conftest.$ac_objext \
7522     conftest$ac_exeext conftest.$ac_ext
7523      ac_ext=c
7524 ac_cpp='$CPP $CPPFLAGS'
7525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7528
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7531 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7532   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7533     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7534     CFLAGS="$SAVE_CFLAGS"
7535   fi
7536   ;;
7537 sparc*-*solaris*)
7538   # Find out which ABI we are using.
7539   echo 'int i;' > conftest.$ac_ext
7540   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7541   (eval $ac_compile) 2>&5
7542   ac_status=$?
7543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544   test $ac_status = 0; }; then
7545     case `/usr/bin/file conftest.o` in
7546     *64-bit*)
7547       case $lt_cv_prog_gnu_ld in
7548       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7549       *)
7550         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7551           LD="${LD-ld} -64"
7552         fi
7553         ;;
7554       esac
7555       ;;
7556     esac
7557   fi
7558   rm -rf conftest*
7559   ;;
7560 esac
7561
7562 need_locks="$enable_libtool_lock"
7563
7564
7565   case $host_os in
7566     rhapsody* | darwin*)
7567     if test -n "$ac_tool_prefix"; then
7568   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   if test -n "$DSYMUTIL"; then
7576   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583     for ac_exec_ext in '' $ac_executable_extensions; do
7584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590   done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7596 if test -n "$DSYMUTIL"; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7598 $as_echo "$DSYMUTIL" >&6; }
7599 else
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 fi
7606 if test -z "$ac_cv_prog_DSYMUTIL"; then
7607   ac_ct_DSYMUTIL=$DSYMUTIL
7608   # Extract the first word of "dsymutil", so it can be a program name with args.
7609 set dummy dsymutil; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   if test -n "$ac_ct_DSYMUTIL"; then
7616   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623     for ac_exec_ext in '' $ac_executable_extensions; do
7624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630   done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7636 if test -n "$ac_ct_DSYMUTIL"; then
7637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7638 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7639 else
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644   if test "x$ac_ct_DSYMUTIL" = x; then
7645     DSYMUTIL=":"
7646   else
7647     case $cross_compiling:$ac_tool_warned in
7648 yes:)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7652 esac
7653     DSYMUTIL=$ac_ct_DSYMUTIL
7654   fi
7655 else
7656   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7657 fi
7658
7659     if test -n "$ac_tool_prefix"; then
7660   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   if test -n "$NMEDIT"; then
7668   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673   IFS=$as_save_IFS
7674   test -z "$as_dir" && as_dir=.
7675     for ac_exec_ext in '' $ac_executable_extensions; do
7676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7677     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679     break 2
7680   fi
7681 done
7682   done
7683 IFS=$as_save_IFS
7684
7685 fi
7686 fi
7687 NMEDIT=$ac_cv_prog_NMEDIT
7688 if test -n "$NMEDIT"; then
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7690 $as_echo "$NMEDIT" >&6; }
7691 else
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695
7696
7697 fi
7698 if test -z "$ac_cv_prog_NMEDIT"; then
7699   ac_ct_NMEDIT=$NMEDIT
7700   # Extract the first word of "nmedit", so it can be a program name with args.
7701 set dummy nmedit; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   if test -n "$ac_ct_NMEDIT"; then
7708   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715     for ac_exec_ext in '' $ac_executable_extensions; do
7716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722   done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7728 if test -n "$ac_ct_NMEDIT"; then
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7730 $as_echo "$ac_ct_NMEDIT" >&6; }
7731 else
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7734 fi
7735
7736   if test "x$ac_ct_NMEDIT" = x; then
7737     NMEDIT=":"
7738   else
7739     case $cross_compiling:$ac_tool_warned in
7740 yes:)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7744 esac
7745     NMEDIT=$ac_ct_NMEDIT
7746   fi
7747 else
7748   NMEDIT="$ac_cv_prog_NMEDIT"
7749 fi
7750
7751     if test -n "$ac_tool_prefix"; then
7752   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_LIPO+set}" = set; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   if test -n "$LIPO"; then
7760   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767     for ac_exec_ext in '' $ac_executable_extensions; do
7768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774   done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 LIPO=$ac_cv_prog_LIPO
7780 if test -n "$LIPO"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7782 $as_echo "$LIPO" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789 fi
7790 if test -z "$ac_cv_prog_LIPO"; then
7791   ac_ct_LIPO=$LIPO
7792   # Extract the first word of "lipo", so it can be a program name with args.
7793 set dummy lipo; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   if test -n "$ac_ct_LIPO"; then
7800   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807     for ac_exec_ext in '' $ac_executable_extensions; do
7808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809     ac_cv_prog_ac_ct_LIPO="lipo"
7810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814   done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7820 if test -n "$ac_ct_LIPO"; then
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7822 $as_echo "$ac_ct_LIPO" >&6; }
7823 else
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828   if test "x$ac_ct_LIPO" = x; then
7829     LIPO=":"
7830   else
7831     case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7836 esac
7837     LIPO=$ac_ct_LIPO
7838   fi
7839 else
7840   LIPO="$ac_cv_prog_LIPO"
7841 fi
7842
7843     if test -n "$ac_tool_prefix"; then
7844   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7845 set dummy ${ac_tool_prefix}otool; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   if test -n "$OTOOL"; then
7852   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857   IFS=$as_save_IFS
7858   test -z "$as_dir" && as_dir=.
7859     for ac_exec_ext in '' $ac_executable_extensions; do
7860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863     break 2
7864   fi
7865 done
7866   done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 OTOOL=$ac_cv_prog_OTOOL
7872 if test -n "$OTOOL"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7874 $as_echo "$OTOOL" >&6; }
7875 else
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881 fi
7882 if test -z "$ac_cv_prog_OTOOL"; then
7883   ac_ct_OTOOL=$OTOOL
7884   # Extract the first word of "otool", so it can be a program name with args.
7885 set dummy otool; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   if test -n "$ac_ct_OTOOL"; then
7892   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7893 else
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7896 do
7897   IFS=$as_save_IFS
7898   test -z "$as_dir" && as_dir=.
7899     for ac_exec_ext in '' $ac_executable_extensions; do
7900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7901     ac_cv_prog_ac_ct_OTOOL="otool"
7902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903     break 2
7904   fi
7905 done
7906   done
7907 IFS=$as_save_IFS
7908
7909 fi
7910 fi
7911 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7912 if test -n "$ac_ct_OTOOL"; then
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7914 $as_echo "$ac_ct_OTOOL" >&6; }
7915 else
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920   if test "x$ac_ct_OTOOL" = x; then
7921     OTOOL=":"
7922   else
7923     case $cross_compiling:$ac_tool_warned in
7924 yes:)
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7928 esac
7929     OTOOL=$ac_ct_OTOOL
7930   fi
7931 else
7932   OTOOL="$ac_cv_prog_OTOOL"
7933 fi
7934
7935     if test -n "$ac_tool_prefix"; then
7936   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7937 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7941   $as_echo_n "(cached) " >&6
7942 else
7943   if test -n "$OTOOL64"; then
7944   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949   IFS=$as_save_IFS
7950   test -z "$as_dir" && as_dir=.
7951     for ac_exec_ext in '' $ac_executable_extensions; do
7952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955     break 2
7956   fi
7957 done
7958   done
7959 IFS=$as_save_IFS
7960
7961 fi
7962 fi
7963 OTOOL64=$ac_cv_prog_OTOOL64
7964 if test -n "$OTOOL64"; then
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7966 $as_echo "$OTOOL64" >&6; }
7967 else
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972
7973 fi
7974 if test -z "$ac_cv_prog_OTOOL64"; then
7975   ac_ct_OTOOL64=$OTOOL64
7976   # Extract the first word of "otool64", so it can be a program name with args.
7977 set dummy otool64; ac_word=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7981   $as_echo_n "(cached) " >&6
7982 else
7983   if test -n "$ac_ct_OTOOL64"; then
7984   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989   IFS=$as_save_IFS
7990   test -z "$as_dir" && as_dir=.
7991     for ac_exec_ext in '' $ac_executable_extensions; do
7992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993     ac_cv_prog_ac_ct_OTOOL64="otool64"
7994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995     break 2
7996   fi
7997 done
7998   done
7999 IFS=$as_save_IFS
8000
8001 fi
8002 fi
8003 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8004 if test -n "$ac_ct_OTOOL64"; then
8005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8006 $as_echo "$ac_ct_OTOOL64" >&6; }
8007 else
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8010 fi
8011
8012   if test "x$ac_ct_OTOOL64" = x; then
8013     OTOOL64=":"
8014   else
8015     case $cross_compiling:$ac_tool_warned in
8016 yes:)
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8019 ac_tool_warned=yes ;;
8020 esac
8021     OTOOL64=$ac_ct_OTOOL64
8022   fi
8023 else
8024   OTOOL64="$ac_cv_prog_OTOOL64"
8025 fi
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8054 $as_echo_n "checking for -single_module linker flag... " >&6; }
8055 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   lt_cv_apple_cc_single_mod=no
8059       if test -z "${LT_MULTI_MODULE}"; then
8060         # By default we will add the -single_module flag. You can override
8061         # by either setting the environment variable LT_MULTI_MODULE
8062         # non-empty at configure time, or by adding -multi_module to the
8063         # link flags.
8064         rm -rf libconftest.dylib*
8065         echo "int foo(void){return 1;}" > conftest.c
8066         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8067 -dynamiclib -Wl,-single_module conftest.c" >&5
8068         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8069           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8070         _lt_result=$?
8071         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8072           lt_cv_apple_cc_single_mod=yes
8073         else
8074           cat conftest.err >&5
8075         fi
8076         rm -rf libconftest.dylib*
8077         rm -f conftest.*
8078       fi
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8081 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8083 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8084 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8085   $as_echo_n "(cached) " >&6
8086 else
8087   lt_cv_ld_exported_symbols_list=no
8088       save_LDFLAGS=$LDFLAGS
8089       echo "_main" > conftest.sym
8090       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8091       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h.  */
8093
8094 int
8095 main ()
8096 {
8097
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 if ac_fn_c_try_link "$LINENO"; then :
8103   lt_cv_ld_exported_symbols_list=yes
8104 else
8105   lt_cv_ld_exported_symbols_list=no
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext \
8108     conftest$ac_exeext conftest.$ac_ext
8109         LDFLAGS="$save_LDFLAGS"
8110
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8113 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8114     case $host_os in
8115     rhapsody* | darwin1.[012])
8116       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8117     darwin1.*)
8118       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8119     darwin*) # darwin 5.x on
8120       # if running on 10.5 or later, the deployment target defaults
8121       # to the OS version, if on x86, and 10.4, the deployment
8122       # target defaults to 10.4. Don't you love it?
8123       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8124         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8125           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8126         10.[012]*)
8127           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8128         10.*)
8129           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8130       esac
8131     ;;
8132   esac
8133     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8134       _lt_dar_single_mod='$single_module'
8135     fi
8136     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8137       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8138     else
8139       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8140     fi
8141     if test "$DSYMUTIL" != ":"; then
8142       _lt_dsymutil='~$DSYMUTIL $lib || :'
8143     else
8144       _lt_dsymutil=
8145     fi
8146     ;;
8147   esac
8148
8149 for ac_header in dlfcn.h
8150 do :
8151   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8152 "
8153 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8154   cat >>confdefs.h <<_ACEOF
8155 #define HAVE_DLFCN_H 1
8156 _ACEOF
8157
8158 fi
8159
8160 done
8161
8162
8163
8164 # Set options
8165
8166
8167
8168         enable_dlopen=no
8169
8170
8171
8172             # Check whether --enable-shared was given.
8173 if test "${enable_shared+set}" = set; then :
8174   enableval=$enable_shared; p=${PACKAGE-default}
8175     case $enableval in
8176     yes) enable_shared=yes ;;
8177     no) enable_shared=no ;;
8178     *)
8179       enable_shared=no
8180       # Look at the argument we got.  We use all the common list separators.
8181       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182       for pkg in $enableval; do
8183         IFS="$lt_save_ifs"
8184         if test "X$pkg" = "X$p"; then
8185           enable_shared=yes
8186         fi
8187       done
8188       IFS="$lt_save_ifs"
8189       ;;
8190     esac
8191 else
8192   enable_shared=yes
8193 fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203   # Check whether --enable-static was given.
8204 if test "${enable_static+set}" = set; then :
8205   enableval=$enable_static; p=${PACKAGE-default}
8206     case $enableval in
8207     yes) enable_static=yes ;;
8208     no) enable_static=no ;;
8209     *)
8210      enable_static=no
8211       # Look at the argument we got.  We use all the common list separators.
8212       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213       for pkg in $enableval; do
8214         IFS="$lt_save_ifs"
8215         if test "X$pkg" = "X$p"; then
8216           enable_static=yes
8217         fi
8218       done
8219       IFS="$lt_save_ifs"
8220       ;;
8221     esac
8222 else
8223   enable_static=yes
8224 fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235 # Check whether --with-pic was given.
8236 if test "${with_pic+set}" = set; then :
8237   withval=$with_pic; pic_mode="$withval"
8238 else
8239   pic_mode=default
8240 fi
8241
8242
8243 test -z "$pic_mode" && pic_mode=default
8244
8245
8246
8247
8248
8249
8250
8251   # Check whether --enable-fast-install was given.
8252 if test "${enable_fast_install+set}" = set; then :
8253   enableval=$enable_fast_install; p=${PACKAGE-default}
8254     case $enableval in
8255     yes) enable_fast_install=yes ;;
8256     no) enable_fast_install=no ;;
8257     *)
8258       enable_fast_install=no
8259       # Look at the argument we got.  We use all the common list separators.
8260       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8261       for pkg in $enableval; do
8262         IFS="$lt_save_ifs"
8263         if test "X$pkg" = "X$p"; then
8264           enable_fast_install=yes
8265         fi
8266       done
8267       IFS="$lt_save_ifs"
8268       ;;
8269     esac
8270 else
8271   enable_fast_install=yes
8272 fi
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284 # This can be used to rebuild libtool when needed
8285 LIBTOOL_DEPS="$ltmain"
8286
8287 # Always use our own libtool.
8288 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314 test -z "$LN_S" && LN_S="ln -s"
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329 if test -n "${ZSH_VERSION+set}" ; then
8330    setopt NO_GLOB_SUBST
8331 fi
8332
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8334 $as_echo_n "checking for objdir... " >&6; }
8335 if test "${lt_cv_objdir+set}" = set; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   rm -f .libs 2>/dev/null
8339 mkdir .libs 2>/dev/null
8340 if test -d .libs; then
8341   lt_cv_objdir=.libs
8342 else
8343   # MS-DOS does not allow filenames that begin with a dot.
8344   lt_cv_objdir=_libs
8345 fi
8346 rmdir .libs 2>/dev/null
8347 fi
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8349 $as_echo "$lt_cv_objdir" >&6; }
8350 objdir=$lt_cv_objdir
8351
8352
8353
8354
8355
8356 cat >>confdefs.h <<_ACEOF
8357 #define LT_OBJDIR "$lt_cv_objdir/"
8358 _ACEOF
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376 case $host_os in
8377 aix3*)
8378   # AIX sometimes has problems with the GCC collect2 program.  For some
8379   # reason, if we set the COLLECT_NAMES environment variable, the problems
8380   # vanish in a puff of smoke.
8381   if test "X${COLLECT_NAMES+set}" != Xset; then
8382     COLLECT_NAMES=
8383     export COLLECT_NAMES
8384   fi
8385   ;;
8386 esac
8387
8388 # Sed substitution that helps us do robust quoting.  It backslashifies
8389 # metacharacters that are still active within double-quoted strings.
8390 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8391
8392 # Same as above, but do not quote variable references.
8393 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8394
8395 # Sed substitution to delay expansion of an escaped shell variable in a
8396 # double_quote_subst'ed string.
8397 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8398
8399 # Sed substitution to delay expansion of an escaped single quote.
8400 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8401
8402 # Sed substitution to avoid accidental globbing in evaled expressions
8403 no_glob_subst='s/\*/\\\*/g'
8404
8405 # Global variables:
8406 ofile=libtool
8407 can_build_shared=yes
8408
8409 # All known linkers require a `.a' archive for static linking (except MSVC,
8410 # which needs '.lib').
8411 libext=a
8412
8413 with_gnu_ld="$lt_cv_prog_gnu_ld"
8414
8415 old_CC="$CC"
8416 old_CFLAGS="$CFLAGS"
8417
8418 # Set sane defaults for various variables
8419 test -z "$CC" && CC=cc
8420 test -z "$LTCC" && LTCC=$CC
8421 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8422 test -z "$LD" && LD=ld
8423 test -z "$ac_objext" && ac_objext=o
8424
8425 for cc_temp in $compiler""; do
8426   case $cc_temp in
8427     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8428     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8429     \-*) ;;
8430     *) break;;
8431   esac
8432 done
8433 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8434
8435
8436 # Only perform the check for file, if the check method requires it
8437 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8438 case $deplibs_check_method in
8439 file_magic*)
8440   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8442 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8443 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   case $MAGIC_CMD in
8447 [\\/*] |  ?:[\\/]*)
8448   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8449   ;;
8450 *)
8451   lt_save_MAGIC_CMD="$MAGIC_CMD"
8452   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8453   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8454   for ac_dir in $ac_dummy; do
8455     IFS="$lt_save_ifs"
8456     test -z "$ac_dir" && ac_dir=.
8457     if test -f $ac_dir/${ac_tool_prefix}file; then
8458       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8459       if test -n "$file_magic_test_file"; then
8460         case $deplibs_check_method in
8461         "file_magic "*)
8462           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8463           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8464           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8465             $EGREP "$file_magic_regex" > /dev/null; then
8466             :
8467           else
8468             cat <<_LT_EOF 1>&2
8469
8470 *** Warning: the command libtool uses to detect shared libraries,
8471 *** $file_magic_cmd, produces output that libtool cannot recognize.
8472 *** The result is that libtool may fail to recognize shared libraries
8473 *** as such.  This will affect the creation of libtool libraries that
8474 *** depend on shared libraries, but programs linked with such libtool
8475 *** libraries will work regardless of this problem.  Nevertheless, you
8476 *** may want to report the problem to your system manager and/or to
8477 *** bug-libtool@gnu.org
8478
8479 _LT_EOF
8480           fi ;;
8481         esac
8482       fi
8483       break
8484     fi
8485   done
8486   IFS="$lt_save_ifs"
8487   MAGIC_CMD="$lt_save_MAGIC_CMD"
8488   ;;
8489 esac
8490 fi
8491
8492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8493 if test -n "$MAGIC_CMD"; then
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8495 $as_echo "$MAGIC_CMD" >&6; }
8496 else
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500
8501
8502
8503
8504
8505 if test -z "$lt_cv_path_MAGIC_CMD"; then
8506   if test -n "$ac_tool_prefix"; then
8507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8508 $as_echo_n "checking for file... " >&6; }
8509 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8510   $as_echo_n "(cached) " >&6
8511 else
8512   case $MAGIC_CMD in
8513 [\\/*] |  ?:[\\/]*)
8514   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8515   ;;
8516 *)
8517   lt_save_MAGIC_CMD="$MAGIC_CMD"
8518   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8519   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8520   for ac_dir in $ac_dummy; do
8521     IFS="$lt_save_ifs"
8522     test -z "$ac_dir" && ac_dir=.
8523     if test -f $ac_dir/file; then
8524       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8525       if test -n "$file_magic_test_file"; then
8526         case $deplibs_check_method in
8527         "file_magic "*)
8528           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8529           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8530           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8531             $EGREP "$file_magic_regex" > /dev/null; then
8532             :
8533           else
8534             cat <<_LT_EOF 1>&2
8535
8536 *** Warning: the command libtool uses to detect shared libraries,
8537 *** $file_magic_cmd, produces output that libtool cannot recognize.
8538 *** The result is that libtool may fail to recognize shared libraries
8539 *** as such.  This will affect the creation of libtool libraries that
8540 *** depend on shared libraries, but programs linked with such libtool
8541 *** libraries will work regardless of this problem.  Nevertheless, you
8542 *** may want to report the problem to your system manager and/or to
8543 *** bug-libtool@gnu.org
8544
8545 _LT_EOF
8546           fi ;;
8547         esac
8548       fi
8549       break
8550     fi
8551   done
8552   IFS="$lt_save_ifs"
8553   MAGIC_CMD="$lt_save_MAGIC_CMD"
8554   ;;
8555 esac
8556 fi
8557
8558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8559 if test -n "$MAGIC_CMD"; then
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8561 $as_echo "$MAGIC_CMD" >&6; }
8562 else
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565 fi
8566
8567
8568   else
8569     MAGIC_CMD=:
8570   fi
8571 fi
8572
8573   fi
8574   ;;
8575 esac
8576
8577 # Use C for the default configuration in the libtool script
8578
8579 lt_save_CC="$CC"
8580 ac_ext=c
8581 ac_cpp='$CPP $CPPFLAGS'
8582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8585
8586
8587 # Source file extension for C test sources.
8588 ac_ext=c
8589
8590 # Object file extension for compiled C test sources.
8591 objext=o
8592 objext=$objext
8593
8594 # Code to be used in simple compile tests
8595 lt_simple_compile_test_code="int some_variable = 0;"
8596
8597 # Code to be used in simple link tests
8598 lt_simple_link_test_code='int main(){return(0);}'
8599
8600
8601
8602
8603
8604
8605
8606 # If no C compiler was specified, use CC.
8607 LTCC=${LTCC-"$CC"}
8608
8609 # If no C compiler flags were specified, use CFLAGS.
8610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8611
8612 # Allow CC to be a program name with arguments.
8613 compiler=$CC
8614
8615 # Save the default compiler, since it gets overwritten when the other
8616 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8617 compiler_DEFAULT=$CC
8618
8619 # save warnings/boilerplate of simple test code
8620 ac_outfile=conftest.$ac_objext
8621 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8622 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8623 _lt_compiler_boilerplate=`cat conftest.err`
8624 $RM conftest*
8625
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8628 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8629 _lt_linker_boilerplate=`cat conftest.err`
8630 $RM -r conftest*
8631
8632
8633 ## CAVEAT EMPTOR:
8634 ## There is no encapsulation within the following macros, do not change
8635 ## the running order or otherwise move them around unless you know exactly
8636 ## what you are doing...
8637 if test -n "$compiler"; then
8638
8639 lt_prog_compiler_no_builtin_flag=
8640
8641 if test "$GCC" = yes; then
8642   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8643
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8645 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8646 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8647   $as_echo_n "(cached) " >&6
8648 else
8649   lt_cv_prog_compiler_rtti_exceptions=no
8650    ac_outfile=conftest.$ac_objext
8651    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8652    lt_compiler_flag="-fno-rtti -fno-exceptions"
8653    # Insert the option either (1) after the last *FLAGS variable, or
8654    # (2) before a word containing "conftest.", or (3) at the end.
8655    # Note that $ac_compile itself does not contain backslashes and begins
8656    # with a dollar sign (not a hyphen), so the echo should work correctly.
8657    # The option is referenced via a variable to avoid confusing sed.
8658    lt_compile=`echo "$ac_compile" | $SED \
8659    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661    -e 's:$: $lt_compiler_flag:'`
8662    (eval echo "\"\$as_me:8662: $lt_compile\"" >&5)
8663    (eval "$lt_compile" 2>conftest.err)
8664    ac_status=$?
8665    cat conftest.err >&5
8666    echo "$as_me:8666: \$? = $ac_status" >&5
8667    if (exit $ac_status) && test -s "$ac_outfile"; then
8668      # The compiler can only warn and ignore the option if not recognized
8669      # So say no if there are warnings other than the usual output.
8670      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8671      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8672      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8673        lt_cv_prog_compiler_rtti_exceptions=yes
8674      fi
8675    fi
8676    $RM conftest*
8677
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8680 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8681
8682 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8683     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8684 else
8685     :
8686 fi
8687
8688 fi
8689
8690
8691
8692
8693
8694
8695   lt_prog_compiler_wl=
8696 lt_prog_compiler_pic=
8697 lt_prog_compiler_static=
8698
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8700 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8701
8702   if test "$GCC" = yes; then
8703     lt_prog_compiler_wl='-Wl,'
8704     lt_prog_compiler_static='-static'
8705
8706     case $host_os in
8707       aix*)
8708       # All AIX code is PIC.
8709       if test "$host_cpu" = ia64; then
8710         # AIX 5 now supports IA64 processor
8711         lt_prog_compiler_static='-Bstatic'
8712       fi
8713       ;;
8714
8715     amigaos*)
8716       case $host_cpu in
8717       powerpc)
8718             # see comment about AmigaOS4 .so support
8719             lt_prog_compiler_pic='-fPIC'
8720         ;;
8721       m68k)
8722             # FIXME: we need at least 68020 code to build shared libraries, but
8723             # adding the `-m68020' flag to GCC prevents building anything better,
8724             # like `-m68040'.
8725             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8726         ;;
8727       esac
8728       ;;
8729
8730     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8731       # PIC is the default for these OSes.
8732       ;;
8733
8734     mingw* | cygwin* | pw32* | os2* | cegcc*)
8735       # This hack is so that the source file can tell whether it is being
8736       # built for inclusion in a dll (and should export symbols for example).
8737       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8738       # (--disable-auto-import) libraries
8739       lt_prog_compiler_pic='-DDLL_EXPORT'
8740       ;;
8741
8742     darwin* | rhapsody*)
8743       # PIC is the default on this platform
8744       # Common symbols not allowed in MH_DYLIB files
8745       lt_prog_compiler_pic='-fno-common'
8746       ;;
8747
8748     hpux*)
8749       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8750       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8751       # sets the default TLS model and affects inlining.
8752       case $host_cpu in
8753       hppa*64*)
8754         # +Z the default
8755         ;;
8756       *)
8757         lt_prog_compiler_pic='-fPIC'
8758         ;;
8759       esac
8760       ;;
8761
8762     interix[3-9]*)
8763       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8764       # Instead, we relocate shared libraries at runtime.
8765       ;;
8766
8767     msdosdjgpp*)
8768       # Just because we use GCC doesn't mean we suddenly get shared libraries
8769       # on systems that don't support them.
8770       lt_prog_compiler_can_build_shared=no
8771       enable_shared=no
8772       ;;
8773
8774     *nto* | *qnx*)
8775       # QNX uses GNU C++, but need to define -shared option too, otherwise
8776       # it will coredump.
8777       lt_prog_compiler_pic='-fPIC -shared'
8778       ;;
8779
8780     sysv4*MP*)
8781       if test -d /usr/nec; then
8782         lt_prog_compiler_pic=-Kconform_pic
8783       fi
8784       ;;
8785
8786     *)
8787       lt_prog_compiler_pic='-fPIC'
8788       ;;
8789     esac
8790   else
8791     # PORTME Check for flag to pass linker flags through the system compiler.
8792     case $host_os in
8793     aix*)
8794       lt_prog_compiler_wl='-Wl,'
8795       if test "$host_cpu" = ia64; then
8796         # AIX 5 now supports IA64 processor
8797         lt_prog_compiler_static='-Bstatic'
8798       else
8799         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8800       fi
8801       ;;
8802
8803     mingw* | cygwin* | pw32* | os2* | cegcc*)
8804       # This hack is so that the source file can tell whether it is being
8805       # built for inclusion in a dll (and should export symbols for example).
8806       lt_prog_compiler_pic='-DDLL_EXPORT'
8807       ;;
8808
8809     hpux9* | hpux10* | hpux11*)
8810       lt_prog_compiler_wl='-Wl,'
8811       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8812       # not for PA HP-UX.
8813       case $host_cpu in
8814       hppa*64*|ia64*)
8815         # +Z the default
8816         ;;
8817       *)
8818         lt_prog_compiler_pic='+Z'
8819         ;;
8820       esac
8821       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8822       lt_prog_compiler_static='${wl}-a ${wl}archive'
8823       ;;
8824
8825     irix5* | irix6* | nonstopux*)
8826       lt_prog_compiler_wl='-Wl,'
8827       # PIC (with -KPIC) is the default.
8828       lt_prog_compiler_static='-non_shared'
8829       ;;
8830
8831     linux* | k*bsd*-gnu)
8832       case $cc_basename in
8833       # old Intel for x86_64 which still supported -KPIC.
8834       ecc*)
8835         lt_prog_compiler_wl='-Wl,'
8836         lt_prog_compiler_pic='-KPIC'
8837         lt_prog_compiler_static='-static'
8838         ;;
8839       # icc used to be incompatible with GCC.
8840       # ICC 10 doesn't accept -KPIC any more.
8841       icc* | ifort*)
8842         lt_prog_compiler_wl='-Wl,'
8843         lt_prog_compiler_pic='-fPIC'
8844         lt_prog_compiler_static='-static'
8845         ;;
8846       # Lahey Fortran 8.1.
8847       lf95*)
8848         lt_prog_compiler_wl='-Wl,'
8849         lt_prog_compiler_pic='--shared'
8850         lt_prog_compiler_static='--static'
8851         ;;
8852       pgcc* | pgf77* | pgf90* | pgf95*)
8853         # Portland Group compilers (*not* the Pentium gcc compiler,
8854         # which looks to be a dead project)
8855         lt_prog_compiler_wl='-Wl,'
8856         lt_prog_compiler_pic='-fpic'
8857         lt_prog_compiler_static='-Bstatic'
8858         ;;
8859       ccc*)
8860         lt_prog_compiler_wl='-Wl,'
8861         # All Alpha code is PIC.
8862         lt_prog_compiler_static='-non_shared'
8863         ;;
8864       xl*)
8865         # IBM XL C 8.0/Fortran 10.1 on PPC
8866         lt_prog_compiler_wl='-Wl,'
8867         lt_prog_compiler_pic='-qpic'
8868         lt_prog_compiler_static='-qstaticlink'
8869         ;;
8870       *)
8871         case `$CC -V 2>&1 | sed 5q` in
8872         *Sun\ C*)
8873           # Sun C 5.9
8874           lt_prog_compiler_pic='-KPIC'
8875           lt_prog_compiler_static='-Bstatic'
8876           lt_prog_compiler_wl='-Wl,'
8877           ;;
8878         *Sun\ F*)
8879           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8880           lt_prog_compiler_pic='-KPIC'
8881           lt_prog_compiler_static='-Bstatic'
8882           lt_prog_compiler_wl=''
8883           ;;
8884         esac
8885         ;;
8886       esac
8887       ;;
8888
8889     newsos6)
8890       lt_prog_compiler_pic='-KPIC'
8891       lt_prog_compiler_static='-Bstatic'
8892       ;;
8893
8894     *nto* | *qnx*)
8895       # QNX uses GNU C++, but need to define -shared option too, otherwise
8896       # it will coredump.
8897       lt_prog_compiler_pic='-fPIC -shared'
8898       ;;
8899
8900     osf3* | osf4* | osf5*)
8901       lt_prog_compiler_wl='-Wl,'
8902       # All OSF/1 code is PIC.
8903       lt_prog_compiler_static='-non_shared'
8904       ;;
8905
8906     rdos*)
8907       lt_prog_compiler_static='-non_shared'
8908       ;;
8909
8910     solaris*)
8911       lt_prog_compiler_pic='-KPIC'
8912       lt_prog_compiler_static='-Bstatic'
8913       case $cc_basename in
8914       f77* | f90* | f95*)
8915         lt_prog_compiler_wl='-Qoption ld ';;
8916       *)
8917         lt_prog_compiler_wl='-Wl,';;
8918       esac
8919       ;;
8920
8921     sunos4*)
8922       lt_prog_compiler_wl='-Qoption ld '
8923       lt_prog_compiler_pic='-PIC'
8924       lt_prog_compiler_static='-Bstatic'
8925       ;;
8926
8927     sysv4 | sysv4.2uw2* | sysv4.3*)
8928       lt_prog_compiler_wl='-Wl,'
8929       lt_prog_compiler_pic='-KPIC'
8930       lt_prog_compiler_static='-Bstatic'
8931       ;;
8932
8933     sysv4*MP*)
8934       if test -d /usr/nec ;then
8935         lt_prog_compiler_pic='-Kconform_pic'
8936         lt_prog_compiler_static='-Bstatic'
8937       fi
8938       ;;
8939
8940     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8941       lt_prog_compiler_wl='-Wl,'
8942       lt_prog_compiler_pic='-KPIC'
8943       lt_prog_compiler_static='-Bstatic'
8944       ;;
8945
8946     unicos*)
8947       lt_prog_compiler_wl='-Wl,'
8948       lt_prog_compiler_can_build_shared=no
8949       ;;
8950
8951     uts4*)
8952       lt_prog_compiler_pic='-pic'
8953       lt_prog_compiler_static='-Bstatic'
8954       ;;
8955
8956     *)
8957       lt_prog_compiler_can_build_shared=no
8958       ;;
8959     esac
8960   fi
8961
8962 case $host_os in
8963   # For platforms which do not support PIC, -DPIC is meaningless:
8964   *djgpp*)
8965     lt_prog_compiler_pic=
8966     ;;
8967   *)
8968     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8969     ;;
8970 esac
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8972 $as_echo "$lt_prog_compiler_pic" >&6; }
8973
8974
8975
8976
8977
8978
8979 #
8980 # Check to make sure the PIC flag actually works.
8981 #
8982 if test -n "$lt_prog_compiler_pic"; then
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8984 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8985 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8986   $as_echo_n "(cached) " >&6
8987 else
8988   lt_cv_prog_compiler_pic_works=no
8989    ac_outfile=conftest.$ac_objext
8990    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8991    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8992    # Insert the option either (1) after the last *FLAGS variable, or
8993    # (2) before a word containing "conftest.", or (3) at the end.
8994    # Note that $ac_compile itself does not contain backslashes and begins
8995    # with a dollar sign (not a hyphen), so the echo should work correctly.
8996    # The option is referenced via a variable to avoid confusing sed.
8997    lt_compile=`echo "$ac_compile" | $SED \
8998    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8999    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9000    -e 's:$: $lt_compiler_flag:'`
9001    (eval echo "\"\$as_me:9001: $lt_compile\"" >&5)
9002    (eval "$lt_compile" 2>conftest.err)
9003    ac_status=$?
9004    cat conftest.err >&5
9005    echo "$as_me:9005: \$? = $ac_status" >&5
9006    if (exit $ac_status) && test -s "$ac_outfile"; then
9007      # The compiler can only warn and ignore the option if not recognized
9008      # So say no if there are warnings other than the usual output.
9009      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9010      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9011      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9012        lt_cv_prog_compiler_pic_works=yes
9013      fi
9014    fi
9015    $RM conftest*
9016
9017 fi
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9019 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9020
9021 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9022     case $lt_prog_compiler_pic in
9023      "" | " "*) ;;
9024      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9025      esac
9026 else
9027     lt_prog_compiler_pic=
9028      lt_prog_compiler_can_build_shared=no
9029 fi
9030
9031 fi
9032
9033
9034
9035
9036
9037
9038 #
9039 # Check to make sure the static flag actually works.
9040 #
9041 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9043 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9044 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9045   $as_echo_n "(cached) " >&6
9046 else
9047   lt_cv_prog_compiler_static_works=no
9048    save_LDFLAGS="$LDFLAGS"
9049    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9050    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9051    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9052      # The linker can only warn and ignore the option if not recognized
9053      # So say no if there are warnings
9054      if test -s conftest.err; then
9055        # Append any errors to the config.log.
9056        cat conftest.err 1>&5
9057        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9058        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9059        if diff conftest.exp conftest.er2 >/dev/null; then
9060          lt_cv_prog_compiler_static_works=yes
9061        fi
9062      else
9063        lt_cv_prog_compiler_static_works=yes
9064      fi
9065    fi
9066    $RM -r conftest*
9067    LDFLAGS="$save_LDFLAGS"
9068
9069 fi
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9071 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9072
9073 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9074     :
9075 else
9076     lt_prog_compiler_static=
9077 fi
9078
9079
9080
9081
9082
9083
9084
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9087 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9088   $as_echo_n "(cached) " >&6
9089 else
9090   lt_cv_prog_compiler_c_o=no
9091    $RM -r conftest 2>/dev/null
9092    mkdir conftest
9093    cd conftest
9094    mkdir out
9095    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9096
9097    lt_compiler_flag="-o out/conftest2.$ac_objext"
9098    # Insert the option either (1) after the last *FLAGS variable, or
9099    # (2) before a word containing "conftest.", or (3) at the end.
9100    # Note that $ac_compile itself does not contain backslashes and begins
9101    # with a dollar sign (not a hyphen), so the echo should work correctly.
9102    lt_compile=`echo "$ac_compile" | $SED \
9103    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9104    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9105    -e 's:$: $lt_compiler_flag:'`
9106    (eval echo "\"\$as_me:9106: $lt_compile\"" >&5)
9107    (eval "$lt_compile" 2>out/conftest.err)
9108    ac_status=$?
9109    cat out/conftest.err >&5
9110    echo "$as_me:9110: \$? = $ac_status" >&5
9111    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9112    then
9113      # The compiler can only warn and ignore the option if not recognized
9114      # So say no if there are warnings
9115      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9116      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9117      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9118        lt_cv_prog_compiler_c_o=yes
9119      fi
9120    fi
9121    chmod u+w . 2>&5
9122    $RM conftest*
9123    # SGI C++ compiler will create directory out/ii_files/ for
9124    # template instantiation
9125    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9126    $RM out/* && rmdir out
9127    cd ..
9128    $RM -r conftest
9129    $RM conftest*
9130
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9134
9135
9136
9137
9138
9139
9140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9141 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9142 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9143   $as_echo_n "(cached) " >&6
9144 else
9145   lt_cv_prog_compiler_c_o=no
9146    $RM -r conftest 2>/dev/null
9147    mkdir conftest
9148    cd conftest
9149    mkdir out
9150    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9151
9152    lt_compiler_flag="-o out/conftest2.$ac_objext"
9153    # Insert the option either (1) after the last *FLAGS variable, or
9154    # (2) before a word containing "conftest.", or (3) at the end.
9155    # Note that $ac_compile itself does not contain backslashes and begins
9156    # with a dollar sign (not a hyphen), so the echo should work correctly.
9157    lt_compile=`echo "$ac_compile" | $SED \
9158    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160    -e 's:$: $lt_compiler_flag:'`
9161    (eval echo "\"\$as_me:9161: $lt_compile\"" >&5)
9162    (eval "$lt_compile" 2>out/conftest.err)
9163    ac_status=$?
9164    cat out/conftest.err >&5
9165    echo "$as_me:9165: \$? = $ac_status" >&5
9166    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9167    then
9168      # The compiler can only warn and ignore the option if not recognized
9169      # So say no if there are warnings
9170      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9171      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9172      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9173        lt_cv_prog_compiler_c_o=yes
9174      fi
9175    fi
9176    chmod u+w . 2>&5
9177    $RM conftest*
9178    # SGI C++ compiler will create directory out/ii_files/ for
9179    # template instantiation
9180    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9181    $RM out/* && rmdir out
9182    cd ..
9183    $RM -r conftest
9184    $RM conftest*
9185
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9188 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9189
9190
9191
9192
9193 hard_links="nottested"
9194 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9195   # do not overwrite the value of need_locks provided by the user
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9197 $as_echo_n "checking if we can lock with hard links... " >&6; }
9198   hard_links=yes
9199   $RM conftest*
9200   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9201   touch conftest.a
9202   ln conftest.a conftest.b 2>&5 || hard_links=no
9203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9205 $as_echo "$hard_links" >&6; }
9206   if test "$hard_links" = no; then
9207     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9208 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9209     need_locks=warn
9210   fi
9211 else
9212   need_locks=no
9213 fi
9214
9215
9216
9217
9218
9219
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9221 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9222
9223   runpath_var=
9224   allow_undefined_flag=
9225   always_export_symbols=no
9226   archive_cmds=
9227   archive_expsym_cmds=
9228   compiler_needs_object=no
9229   enable_shared_with_static_runtimes=no
9230   export_dynamic_flag_spec=
9231   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9232   hardcode_automatic=no
9233   hardcode_direct=no
9234   hardcode_direct_absolute=no
9235   hardcode_libdir_flag_spec=
9236   hardcode_libdir_flag_spec_ld=
9237   hardcode_libdir_separator=
9238   hardcode_minus_L=no
9239   hardcode_shlibpath_var=unsupported
9240   inherit_rpath=no
9241   link_all_deplibs=unknown
9242   module_cmds=
9243   module_expsym_cmds=
9244   old_archive_from_new_cmds=
9245   old_archive_from_expsyms_cmds=
9246   thread_safe_flag_spec=
9247   whole_archive_flag_spec=
9248   # include_expsyms should be a list of space-separated symbols to be *always*
9249   # included in the symbol list
9250   include_expsyms=
9251   # exclude_expsyms can be an extended regexp of symbols to exclude
9252   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9253   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9254   # as well as any symbol that contains `d'.
9255   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9256   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9257   # platforms (ab)use it in PIC code, but their linkers get confused if
9258   # the symbol is explicitly referenced.  Since portable code cannot
9259   # rely on this symbol name, it's probably fine to never include it in
9260   # preloaded symbol tables.
9261   # Exclude shared library initialization/finalization symbols.
9262   extract_expsyms_cmds=
9263
9264   case $host_os in
9265   cygwin* | mingw* | pw32* | cegcc*)
9266     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9267     # When not using gcc, we currently assume that we are using
9268     # Microsoft Visual C++.
9269     if test "$GCC" != yes; then
9270       with_gnu_ld=no
9271     fi
9272     ;;
9273   interix*)
9274     # we just hope/assume this is gcc and not c89 (= MSVC++)
9275     with_gnu_ld=yes
9276     ;;
9277   openbsd*)
9278     with_gnu_ld=no
9279     ;;
9280   esac
9281
9282   ld_shlibs=yes
9283   if test "$with_gnu_ld" = yes; then
9284     # If archive_cmds runs LD, not CC, wlarc should be empty
9285     wlarc='${wl}'
9286
9287     # Set some defaults for GNU ld with shared library support. These
9288     # are reset later if shared libraries are not supported. Putting them
9289     # here allows them to be overridden if necessary.
9290     runpath_var=LD_RUN_PATH
9291     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292     export_dynamic_flag_spec='${wl}--export-dynamic'
9293     # ancient GNU ld didn't support --whole-archive et. al.
9294     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9295       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9296     else
9297       whole_archive_flag_spec=
9298     fi
9299     supports_anon_versioning=no
9300     case `$LD -v 2>&1` in
9301       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9302       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9303       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9304       *\ 2.11.*) ;; # other 2.11 versions
9305       *) supports_anon_versioning=yes ;;
9306     esac
9307
9308     # See if GNU ld supports shared libraries.
9309     case $host_os in
9310     aix[3-9]*)
9311       # On AIX/PPC, the GNU linker is very broken
9312       if test "$host_cpu" != ia64; then
9313         ld_shlibs=no
9314         cat <<_LT_EOF 1>&2
9315
9316 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9317 *** to be unable to reliably create shared libraries on AIX.
9318 *** Therefore, libtool is disabling shared libraries support.  If you
9319 *** really care for shared libraries, you may want to modify your PATH
9320 *** so that a non-GNU linker is found, and then restart.
9321
9322 _LT_EOF
9323       fi
9324       ;;
9325
9326     amigaos*)
9327       case $host_cpu in
9328       powerpc)
9329             # see comment about AmigaOS4 .so support
9330             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331             archive_expsym_cmds=''
9332         ;;
9333       m68k)
9334             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)'
9335             hardcode_libdir_flag_spec='-L$libdir'
9336             hardcode_minus_L=yes
9337         ;;
9338       esac
9339       ;;
9340
9341     beos*)
9342       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9343         allow_undefined_flag=unsupported
9344         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9345         # support --undefined.  This deserves some investigation.  FIXME
9346         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9347       else
9348         ld_shlibs=no
9349       fi
9350       ;;
9351
9352     cygwin* | mingw* | pw32* | cegcc*)
9353       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9354       # as there is no search path for DLLs.
9355       hardcode_libdir_flag_spec='-L$libdir'
9356       allow_undefined_flag=unsupported
9357       always_export_symbols=no
9358       enable_shared_with_static_runtimes=yes
9359       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9360
9361       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9362         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9363         # If the export-symbols file already is a .def file (1st line
9364         # is EXPORTS), use it as is; otherwise, prepend...
9365         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9366           cp $export_symbols $output_objdir/$soname.def;
9367         else
9368           echo EXPORTS > $output_objdir/$soname.def;
9369           cat $export_symbols >> $output_objdir/$soname.def;
9370         fi~
9371         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9372       else
9373         ld_shlibs=no
9374       fi
9375       ;;
9376
9377     interix[3-9]*)
9378       hardcode_direct=no
9379       hardcode_shlibpath_var=no
9380       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9381       export_dynamic_flag_spec='${wl}-E'
9382       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9383       # Instead, shared libraries are loaded at an image base (0x10000000 by
9384       # default) and relocated if they conflict, which is a slow very memory
9385       # consuming and fragmenting process.  To avoid this, we pick a random,
9386       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9387       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9388       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9389       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'
9390       ;;
9391
9392     gnu* | linux* | tpf* | k*bsd*-gnu)
9393       tmp_diet=no
9394       if test "$host_os" = linux-dietlibc; then
9395         case $cc_basename in
9396           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9397         esac
9398       fi
9399       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9400          && test "$tmp_diet" = no
9401       then
9402         tmp_addflag=
9403         tmp_sharedflag='-shared'
9404         case $cc_basename,$host_cpu in
9405         pgcc*)                          # Portland Group C compiler
9406           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'
9407           tmp_addflag=' $pic_flag'
9408           ;;
9409         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9410           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'
9411           tmp_addflag=' $pic_flag -Mnomain' ;;
9412         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9413           tmp_addflag=' -i_dynamic' ;;
9414         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9415           tmp_addflag=' -i_dynamic -nofor_main' ;;
9416         ifc* | ifort*)                  # Intel Fortran compiler
9417           tmp_addflag=' -nofor_main' ;;
9418         lf95*)                          # Lahey Fortran 8.1
9419           whole_archive_flag_spec=
9420           tmp_sharedflag='--shared' ;;
9421         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9422           tmp_sharedflag='-qmkshrobj'
9423           tmp_addflag= ;;
9424         esac
9425         case `$CC -V 2>&1 | sed 5q` in
9426         *Sun\ C*)                       # Sun C 5.9
9427           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'
9428           compiler_needs_object=yes
9429           tmp_sharedflag='-G' ;;
9430         *Sun\ F*)                       # Sun Fortran 8.3
9431           tmp_sharedflag='-G' ;;
9432         esac
9433         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9434
9435         if test "x$supports_anon_versioning" = xyes; then
9436           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9437             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9438             echo "local: *; };" >> $output_objdir/$libname.ver~
9439             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9440         fi
9441
9442         case $cc_basename in
9443         xlf*)
9444           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9445           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9446           hardcode_libdir_flag_spec=
9447           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9448           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9449           if test "x$supports_anon_versioning" = xyes; then
9450             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9451               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9452               echo "local: *; };" >> $output_objdir/$libname.ver~
9453               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9454           fi
9455           ;;
9456         esac
9457       else
9458         ld_shlibs=no
9459       fi
9460       ;;
9461
9462     netbsd*)
9463       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9464         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9465         wlarc=
9466       else
9467         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9469       fi
9470       ;;
9471
9472     solaris*)
9473       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9474         ld_shlibs=no
9475         cat <<_LT_EOF 1>&2
9476
9477 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9478 *** create shared libraries on Solaris systems.  Therefore, libtool
9479 *** is disabling shared libraries support.  We urge you to upgrade GNU
9480 *** binutils to release 2.9.1 or newer.  Another option is to modify
9481 *** your PATH or compiler configuration so that the native linker is
9482 *** used, and then restart.
9483
9484 _LT_EOF
9485       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9486         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9488       else
9489         ld_shlibs=no
9490       fi
9491       ;;
9492
9493     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9494       case `$LD -v 2>&1` in
9495         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9496         ld_shlibs=no
9497         cat <<_LT_EOF 1>&2
9498
9499 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9500 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9501 *** is disabling shared libraries support.  We urge you to upgrade GNU
9502 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9503 *** your PATH or compiler configuration so that the native linker is
9504 *** used, and then restart.
9505
9506 _LT_EOF
9507         ;;
9508         *)
9509           # For security reasons, it is highly recommended that you always
9510           # use absolute paths for naming shared libraries, and exclude the
9511           # DT_RUNPATH tag from executables and libraries.  But doing so
9512           # requires that you compile everything twice, which is a pain.
9513           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9514             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9517           else
9518             ld_shlibs=no
9519           fi
9520         ;;
9521       esac
9522       ;;
9523
9524     sunos4*)
9525       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9526       wlarc=
9527       hardcode_direct=yes
9528       hardcode_shlibpath_var=no
9529       ;;
9530
9531     *)
9532       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9533         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9535       else
9536         ld_shlibs=no
9537       fi
9538       ;;
9539     esac
9540
9541     if test "$ld_shlibs" = no; then
9542       runpath_var=
9543       hardcode_libdir_flag_spec=
9544       export_dynamic_flag_spec=
9545       whole_archive_flag_spec=
9546     fi
9547   else
9548     # PORTME fill in a description of your system's linker (not GNU ld)
9549     case $host_os in
9550     aix3*)
9551       allow_undefined_flag=unsupported
9552       always_export_symbols=yes
9553       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'
9554       # Note: this linker hardcodes the directories in LIBPATH if there
9555       # are no directories specified by -L.
9556       hardcode_minus_L=yes
9557       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9558         # Neither direct hardcoding nor static linking is supported with a
9559         # broken collect2.
9560         hardcode_direct=unsupported
9561       fi
9562       ;;
9563
9564     aix[4-9]*)
9565       if test "$host_cpu" = ia64; then
9566         # On IA64, the linker does run time linking by default, so we don't
9567         # have to do anything special.
9568         aix_use_runtimelinking=no
9569         exp_sym_flag='-Bexport'
9570         no_entry_flag=""
9571       else
9572         # If we're using GNU nm, then we don't want the "-C" option.
9573         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9574         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9575           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'
9576         else
9577           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'
9578         fi
9579         aix_use_runtimelinking=no
9580
9581         # Test if we are trying to use run time linking or normal
9582         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9583         # need to do runtime linking.
9584         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9585           for ld_flag in $LDFLAGS; do
9586           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9587             aix_use_runtimelinking=yes
9588             break
9589           fi
9590           done
9591           ;;
9592         esac
9593
9594         exp_sym_flag='-bexport'
9595         no_entry_flag='-bnoentry'
9596       fi
9597
9598       # When large executables or shared objects are built, AIX ld can
9599       # have problems creating the table of contents.  If linking a library
9600       # or program results in "error TOC overflow" add -mminimal-toc to
9601       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9602       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9603
9604       archive_cmds=''
9605       hardcode_direct=yes
9606       hardcode_direct_absolute=yes
9607       hardcode_libdir_separator=':'
9608       link_all_deplibs=yes
9609       file_list_spec='${wl}-f,'
9610
9611       if test "$GCC" = yes; then
9612         case $host_os in aix4.[012]|aix4.[012].*)
9613         # We only want to do this on AIX 4.2 and lower, the check
9614         # below for broken collect2 doesn't work under 4.3+
9615           collect2name=`${CC} -print-prog-name=collect2`
9616           if test -f "$collect2name" &&
9617            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9618           then
9619           # We have reworked collect2
9620           :
9621           else
9622           # We have old collect2
9623           hardcode_direct=unsupported
9624           # It fails to find uninstalled libraries when the uninstalled
9625           # path is not listed in the libpath.  Setting hardcode_minus_L
9626           # to unsupported forces relinking
9627           hardcode_minus_L=yes
9628           hardcode_libdir_flag_spec='-L$libdir'
9629           hardcode_libdir_separator=
9630           fi
9631           ;;
9632         esac
9633         shared_flag='-shared'
9634         if test "$aix_use_runtimelinking" = yes; then
9635           shared_flag="$shared_flag "'${wl}-G'
9636         fi
9637       else
9638         # not using gcc
9639         if test "$host_cpu" = ia64; then
9640         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9641         # chokes on -Wl,-G. The following line is correct:
9642           shared_flag='-G'
9643         else
9644           if test "$aix_use_runtimelinking" = yes; then
9645             shared_flag='${wl}-G'
9646           else
9647             shared_flag='${wl}-bM:SRE'
9648           fi
9649         fi
9650       fi
9651
9652       export_dynamic_flag_spec='${wl}-bexpall'
9653       # It seems that -bexpall does not export symbols beginning with
9654       # underscore (_), so it is better to generate a list of symbols to export.
9655       always_export_symbols=yes
9656       if test "$aix_use_runtimelinking" = yes; then
9657         # Warning - without using the other runtime loading flags (-brtl),
9658         # -berok will link without error, but may produce a broken library.
9659         allow_undefined_flag='-berok'
9660         # Determine the default libpath from the value encoded in an
9661         # empty executable.
9662         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h.  */
9664
9665 int
9666 main ()
9667 {
9668
9669   ;
9670   return 0;
9671 }
9672 _ACEOF
9673 if ac_fn_c_try_link "$LINENO"; then :
9674
9675 lt_aix_libpath_sed='
9676     /Import File Strings/,/^$/ {
9677         /^0/ {
9678             s/^0  *\(.*\)$/\1/
9679             p
9680         }
9681     }'
9682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9683 # Check for a 64-bit object if we didn't find anything.
9684 if test -z "$aix_libpath"; then
9685   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9686 fi
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext \
9689     conftest$ac_exeext conftest.$ac_ext
9690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9691
9692         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9693         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"
9694       else
9695         if test "$host_cpu" = ia64; then
9696           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9697           allow_undefined_flag="-z nodefs"
9698           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"
9699         else
9700          # Determine the default libpath from the value encoded in an
9701          # empty executable.
9702          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h.  */
9704
9705 int
9706 main ()
9707 {
9708
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 if ac_fn_c_try_link "$LINENO"; then :
9714
9715 lt_aix_libpath_sed='
9716     /Import File Strings/,/^$/ {
9717         /^0/ {
9718             s/^0  *\(.*\)$/\1/
9719             p
9720         }
9721     }'
9722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723 # Check for a 64-bit object if we didn't find anything.
9724 if test -z "$aix_libpath"; then
9725   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9726 fi
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext \
9729     conftest$ac_exeext conftest.$ac_ext
9730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9731
9732          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9733           # Warning - without using the other run time loading flags,
9734           # -berok will link without error, but may produce a broken library.
9735           no_undefined_flag=' ${wl}-bernotok'
9736           allow_undefined_flag=' ${wl}-berok'
9737           # Exported symbols can be pulled into shared objects from archives
9738           whole_archive_flag_spec='$convenience'
9739           archive_cmds_need_lc=yes
9740           # This is similar to how AIX traditionally builds its shared libraries.
9741           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'
9742         fi
9743       fi
9744       ;;
9745
9746     amigaos*)
9747       case $host_cpu in
9748       powerpc)
9749             # see comment about AmigaOS4 .so support
9750             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751             archive_expsym_cmds=''
9752         ;;
9753       m68k)
9754             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)'
9755             hardcode_libdir_flag_spec='-L$libdir'
9756             hardcode_minus_L=yes
9757         ;;
9758       esac
9759       ;;
9760
9761     bsdi[45]*)
9762       export_dynamic_flag_spec=-rdynamic
9763       ;;
9764
9765     cygwin* | mingw* | pw32* | cegcc*)
9766       # When not using gcc, we currently assume that we are using
9767       # Microsoft Visual C++.
9768       # hardcode_libdir_flag_spec is actually meaningless, as there is
9769       # no search path for DLLs.
9770       hardcode_libdir_flag_spec=' '
9771       allow_undefined_flag=unsupported
9772       # Tell ltmain to make .lib files, not .a files.
9773       libext=lib
9774       # Tell ltmain to make .dll files, not .so files.
9775       shrext_cmds=".dll"
9776       # FIXME: Setting linknames here is a bad hack.
9777       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9778       # The linker will automatically build a .lib file if we build a DLL.
9779       old_archive_from_new_cmds='true'
9780       # FIXME: Should let the user specify the lib program.
9781       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9782       fix_srcfile_path='`cygpath -w "$srcfile"`'
9783       enable_shared_with_static_runtimes=yes
9784       ;;
9785
9786     darwin* | rhapsody*)
9787
9788
9789   archive_cmds_need_lc=no
9790   hardcode_direct=no
9791   hardcode_automatic=yes
9792   hardcode_shlibpath_var=unsupported
9793   whole_archive_flag_spec=''
9794   link_all_deplibs=yes
9795   allow_undefined_flag="$_lt_dar_allow_undefined"
9796   case $cc_basename in
9797      ifort*) _lt_dar_can_shared=yes ;;
9798      *) _lt_dar_can_shared=$GCC ;;
9799   esac
9800   if test "$_lt_dar_can_shared" = "yes"; then
9801     output_verbose_link_cmd=echo
9802     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9803     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9804     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}"
9805     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}"
9806
9807   else
9808   ld_shlibs=no
9809   fi
9810
9811       ;;
9812
9813     dgux*)
9814       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815       hardcode_libdir_flag_spec='-L$libdir'
9816       hardcode_shlibpath_var=no
9817       ;;
9818
9819     freebsd1*)
9820       ld_shlibs=no
9821       ;;
9822
9823     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9824     # support.  Future versions do this automatically, but an explicit c++rt0.o
9825     # does not break anything, and helps significantly (at the cost of a little
9826     # extra space).
9827     freebsd2.2*)
9828       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9829       hardcode_libdir_flag_spec='-R$libdir'
9830       hardcode_direct=yes
9831       hardcode_shlibpath_var=no
9832       ;;
9833
9834     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9835     freebsd2*)
9836       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9837       hardcode_direct=yes
9838       hardcode_minus_L=yes
9839       hardcode_shlibpath_var=no
9840       ;;
9841
9842     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9843     freebsd* | dragonfly*)
9844       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9845       hardcode_libdir_flag_spec='-R$libdir'
9846       hardcode_direct=yes
9847       hardcode_shlibpath_var=no
9848       ;;
9849
9850     hpux9*)
9851       if test "$GCC" = yes; then
9852         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'
9853       else
9854         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'
9855       fi
9856       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9857       hardcode_libdir_separator=:
9858       hardcode_direct=yes
9859
9860       # hardcode_minus_L: Not really in the search PATH,
9861       # but as the default location of the library.
9862       hardcode_minus_L=yes
9863       export_dynamic_flag_spec='${wl}-E'
9864       ;;
9865
9866     hpux10*)
9867       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9868         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9869       else
9870         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9871       fi
9872       if test "$with_gnu_ld" = no; then
9873         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9874         hardcode_libdir_flag_spec_ld='+b $libdir'
9875         hardcode_libdir_separator=:
9876         hardcode_direct=yes
9877         hardcode_direct_absolute=yes
9878         export_dynamic_flag_spec='${wl}-E'
9879         # hardcode_minus_L: Not really in the search PATH,
9880         # but as the default location of the library.
9881         hardcode_minus_L=yes
9882       fi
9883       ;;
9884
9885     hpux11*)
9886       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9887         case $host_cpu in
9888         hppa*64*)
9889           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890           ;;
9891         ia64*)
9892           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9893           ;;
9894         *)
9895           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896           ;;
9897         esac
9898       else
9899         case $host_cpu in
9900         hppa*64*)
9901           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902           ;;
9903         ia64*)
9904           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9905           ;;
9906         *)
9907           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9908           ;;
9909         esac
9910       fi
9911       if test "$with_gnu_ld" = no; then
9912         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9913         hardcode_libdir_separator=:
9914
9915         case $host_cpu in
9916         hppa*64*|ia64*)
9917           hardcode_direct=no
9918           hardcode_shlibpath_var=no
9919           ;;
9920         *)
9921           hardcode_direct=yes
9922           hardcode_direct_absolute=yes
9923           export_dynamic_flag_spec='${wl}-E'
9924
9925           # hardcode_minus_L: Not really in the search PATH,
9926           # but as the default location of the library.
9927           hardcode_minus_L=yes
9928           ;;
9929         esac
9930       fi
9931       ;;
9932
9933     irix5* | irix6* | nonstopux*)
9934       if test "$GCC" = yes; then
9935         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'
9936         # Try to use the -exported_symbol ld option, if it does not
9937         # work, assume that -exports_file does not work either and
9938         # implicitly export all symbols.
9939         save_LDFLAGS="$LDFLAGS"
9940         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9941         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h.  */
9943 int foo(void) {}
9944 _ACEOF
9945 if ac_fn_c_try_link "$LINENO"; then :
9946   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'
9947
9948 fi
9949 rm -f core conftest.err conftest.$ac_objext \
9950     conftest$ac_exeext conftest.$ac_ext
9951         LDFLAGS="$save_LDFLAGS"
9952       else
9953         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'
9954         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'
9955       fi
9956       archive_cmds_need_lc='no'
9957       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958       hardcode_libdir_separator=:
9959       inherit_rpath=yes
9960       link_all_deplibs=yes
9961       ;;
9962
9963     netbsd*)
9964       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9965         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9966       else
9967         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9968       fi
9969       hardcode_libdir_flag_spec='-R$libdir'
9970       hardcode_direct=yes
9971       hardcode_shlibpath_var=no
9972       ;;
9973
9974     newsos6)
9975       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976       hardcode_direct=yes
9977       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978       hardcode_libdir_separator=:
9979       hardcode_shlibpath_var=no
9980       ;;
9981
9982     *nto* | *qnx*)
9983       ;;
9984
9985     openbsd*)
9986       if test -f /usr/libexec/ld.so; then
9987         hardcode_direct=yes
9988         hardcode_shlibpath_var=no
9989         hardcode_direct_absolute=yes
9990         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9991           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9992           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9993           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9994           export_dynamic_flag_spec='${wl}-E'
9995         else
9996           case $host_os in
9997            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9998              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9999              hardcode_libdir_flag_spec='-R$libdir'
10000              ;;
10001            *)
10002              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10004              ;;
10005           esac
10006         fi
10007       else
10008         ld_shlibs=no
10009       fi
10010       ;;
10011
10012     os2*)
10013       hardcode_libdir_flag_spec='-L$libdir'
10014       hardcode_minus_L=yes
10015       allow_undefined_flag=unsupported
10016       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'
10017       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10018       ;;
10019
10020     osf3*)
10021       if test "$GCC" = yes; then
10022         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10023         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'
10024       else
10025         allow_undefined_flag=' -expect_unresolved \*'
10026         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'
10027       fi
10028       archive_cmds_need_lc='no'
10029       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030       hardcode_libdir_separator=:
10031       ;;
10032
10033     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10034       if test "$GCC" = yes; then
10035         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10036         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'
10037         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038       else
10039         allow_undefined_flag=' -expect_unresolved \*'
10040         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'
10041         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~
10042         $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'
10043
10044         # Both c and cxx compiler support -rpath directly
10045         hardcode_libdir_flag_spec='-rpath $libdir'
10046       fi
10047       archive_cmds_need_lc='no'
10048       hardcode_libdir_separator=:
10049       ;;
10050
10051     solaris*)
10052       no_undefined_flag=' -z defs'
10053       if test "$GCC" = yes; then
10054         wlarc='${wl}'
10055         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10056         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10058       else
10059         case `$CC -V 2>&1` in
10060         *"Compilers 5.0"*)
10061           wlarc=''
10062           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10065           ;;
10066         *)
10067           wlarc='${wl}'
10068           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10069           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10071           ;;
10072         esac
10073       fi
10074       hardcode_libdir_flag_spec='-R$libdir'
10075       hardcode_shlibpath_var=no
10076       case $host_os in
10077       solaris2.[0-5] | solaris2.[0-5].*) ;;
10078       *)
10079         # The compiler driver will combine and reorder linker options,
10080         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10081         # but is careful enough not to reorder.
10082         # Supported since Solaris 2.6 (maybe 2.5.1?)
10083         if test "$GCC" = yes; then
10084           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10085         else
10086           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10087         fi
10088         ;;
10089       esac
10090       link_all_deplibs=yes
10091       ;;
10092
10093     sunos4*)
10094       if test "x$host_vendor" = xsequent; then
10095         # Use $CC to link under sequent, because it throws in some extra .o
10096         # files that make .init and .fini sections work.
10097         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10098       else
10099         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10100       fi
10101       hardcode_libdir_flag_spec='-L$libdir'
10102       hardcode_direct=yes
10103       hardcode_minus_L=yes
10104       hardcode_shlibpath_var=no
10105       ;;
10106
10107     sysv4)
10108       case $host_vendor in
10109         sni)
10110           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111           hardcode_direct=yes # is this really true???
10112         ;;
10113         siemens)
10114           ## LD is ld it makes a PLAMLIB
10115           ## CC just makes a GrossModule.
10116           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10117           reload_cmds='$CC -r -o $output$reload_objs'
10118           hardcode_direct=no
10119         ;;
10120         motorola)
10121           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10123         ;;
10124       esac
10125       runpath_var='LD_RUN_PATH'
10126       hardcode_shlibpath_var=no
10127       ;;
10128
10129     sysv4.3*)
10130       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131       hardcode_shlibpath_var=no
10132       export_dynamic_flag_spec='-Bexport'
10133       ;;
10134
10135     sysv4*MP*)
10136       if test -d /usr/nec; then
10137         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138         hardcode_shlibpath_var=no
10139         runpath_var=LD_RUN_PATH
10140         hardcode_runpath_var=yes
10141         ld_shlibs=yes
10142       fi
10143       ;;
10144
10145     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10146       no_undefined_flag='${wl}-z,text'
10147       archive_cmds_need_lc=no
10148       hardcode_shlibpath_var=no
10149       runpath_var='LD_RUN_PATH'
10150
10151       if test "$GCC" = yes; then
10152         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154       else
10155         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157       fi
10158       ;;
10159
10160     sysv5* | sco3.2v5* | sco5v6*)
10161       # Note: We can NOT use -z defs as we might desire, because we do not
10162       # link with -lc, and that would cause any symbols used from libc to
10163       # always be unresolved, which means just about no library would
10164       # ever link correctly.  If we're not using GNU ld we use -z text
10165       # though, which does catch some bad symbols but isn't as heavy-handed
10166       # as -z defs.
10167       no_undefined_flag='${wl}-z,text'
10168       allow_undefined_flag='${wl}-z,nodefs'
10169       archive_cmds_need_lc=no
10170       hardcode_shlibpath_var=no
10171       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10172       hardcode_libdir_separator=':'
10173       link_all_deplibs=yes
10174       export_dynamic_flag_spec='${wl}-Bexport'
10175       runpath_var='LD_RUN_PATH'
10176
10177       if test "$GCC" = yes; then
10178         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180       else
10181         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183       fi
10184       ;;
10185
10186     uts4*)
10187       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188       hardcode_libdir_flag_spec='-L$libdir'
10189       hardcode_shlibpath_var=no
10190       ;;
10191
10192     *)
10193       ld_shlibs=no
10194       ;;
10195     esac
10196
10197     if test x$host_vendor = xsni; then
10198       case $host in
10199       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10200         export_dynamic_flag_spec='${wl}-Blargedynsym'
10201         ;;
10202       esac
10203     fi
10204   fi
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10207 $as_echo "$ld_shlibs" >&6; }
10208 test "$ld_shlibs" = no && can_build_shared=no
10209
10210 with_gnu_ld=$with_gnu_ld
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226 #
10227 # Do we need to explicitly link libc?
10228 #
10229 case "x$archive_cmds_need_lc" in
10230 x|xyes)
10231   # Assume -lc should be added
10232   archive_cmds_need_lc=yes
10233
10234   if test "$enable_shared" = yes && test "$GCC" = yes; then
10235     case $archive_cmds in
10236     *'~'*)
10237       # FIXME: we may have to deal with multi-command sequences.
10238       ;;
10239     '$CC '*)
10240       # Test whether the compiler implicitly links with -lc since on some
10241       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10242       # to ld, don't add -lc before -lgcc.
10243       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10244 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10245       $RM conftest*
10246       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10247
10248       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10249   (eval $ac_compile) 2>&5
10250   ac_status=$?
10251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10252   test $ac_status = 0; } 2>conftest.err; then
10253         soname=conftest
10254         lib=conftest
10255         libobjs=conftest.$ac_objext
10256         deplibs=
10257         wl=$lt_prog_compiler_wl
10258         pic_flag=$lt_prog_compiler_pic
10259         compiler_flags=-v
10260         linker_flags=-v
10261         verstring=
10262         output_objdir=.
10263         libname=conftest
10264         lt_save_allow_undefined_flag=$allow_undefined_flag
10265         allow_undefined_flag=
10266         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10267   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10268   ac_status=$?
10269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10270   test $ac_status = 0; }
10271         then
10272           archive_cmds_need_lc=no
10273         else
10274           archive_cmds_need_lc=yes
10275         fi
10276         allow_undefined_flag=$lt_save_allow_undefined_flag
10277       else
10278         cat conftest.err 1>&5
10279       fi
10280       $RM conftest*
10281       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10282 $as_echo "$archive_cmds_need_lc" >&6; }
10283       ;;
10284     esac
10285   fi
10286   ;;
10287 esac
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10447
10448 if test "$GCC" = yes; then
10449   case $host_os in
10450     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10451     *) lt_awk_arg="/^libraries:/" ;;
10452   esac
10453   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10454   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10455     # if the path contains ";" then we assume it to be the separator
10456     # otherwise default to the standard path separator (i.e. ":") - it is
10457     # assumed that no part of a normal pathname contains ";" but that should
10458     # okay in the real world where ";" in dirpaths is itself problematic.
10459     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10460   else
10461     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10462   fi
10463   # Ok, now we have the path, separated by spaces, we can step through it
10464   # and add multilib dir if necessary.
10465   lt_tmp_lt_search_path_spec=
10466   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10467   for lt_sys_path in $lt_search_path_spec; do
10468     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10469       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10470     else
10471       test -d "$lt_sys_path" && \
10472         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10473     fi
10474   done
10475   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10476 BEGIN {RS=" "; FS="/|\n";} {
10477   lt_foo="";
10478   lt_count=0;
10479   for (lt_i = NF; lt_i > 0; lt_i--) {
10480     if ($lt_i != "" && $lt_i != ".") {
10481       if ($lt_i == "..") {
10482         lt_count++;
10483       } else {
10484         if (lt_count == 0) {
10485           lt_foo="/" $lt_i lt_foo;
10486         } else {
10487           lt_count--;
10488         }
10489       }
10490     }
10491   }
10492   if (lt_foo != "") { lt_freq[lt_foo]++; }
10493   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10494 }'`
10495   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10496 else
10497   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10498 fi
10499 library_names_spec=
10500 libname_spec='lib$name'
10501 soname_spec=
10502 shrext_cmds=".so"
10503 postinstall_cmds=
10504 postuninstall_cmds=
10505 finish_cmds=
10506 finish_eval=
10507 shlibpath_var=
10508 shlibpath_overrides_runpath=unknown
10509 version_type=none
10510 dynamic_linker="$host_os ld.so"
10511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10512 need_lib_prefix=unknown
10513 hardcode_into_libs=no
10514
10515 # when you set need_version to no, make sure it does not cause -set_version
10516 # flags to be left without arguments
10517 need_version=unknown
10518
10519 case $host_os in
10520 aix3*)
10521   version_type=linux
10522   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10523   shlibpath_var=LIBPATH
10524
10525   # AIX 3 has no versioning support, so we append a major version to the name.
10526   soname_spec='${libname}${release}${shared_ext}$major'
10527   ;;
10528
10529 aix[4-9]*)
10530   version_type=linux
10531   need_lib_prefix=no
10532   need_version=no
10533   hardcode_into_libs=yes
10534   if test "$host_cpu" = ia64; then
10535     # AIX 5 supports IA64
10536     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10537     shlibpath_var=LD_LIBRARY_PATH
10538   else
10539     # With GCC up to 2.95.x, collect2 would create an import file
10540     # for dependence libraries.  The import file would start with
10541     # the line `#! .'.  This would cause the generated library to
10542     # depend on `.', always an invalid library.  This was fixed in
10543     # development snapshots of GCC prior to 3.0.
10544     case $host_os in
10545       aix4 | aix4.[01] | aix4.[01].*)
10546       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10547            echo ' yes '
10548            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10549         :
10550       else
10551         can_build_shared=no
10552       fi
10553       ;;
10554     esac
10555     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10556     # soname into executable. Probably we can add versioning support to
10557     # collect2, so additional links can be useful in future.
10558     if test "$aix_use_runtimelinking" = yes; then
10559       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10560       # instead of lib<name>.a to let people know that these are not
10561       # typical AIX shared libraries.
10562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563     else
10564       # We preserve .a as extension for shared libraries through AIX4.2
10565       # and later when we are not doing run time linking.
10566       library_names_spec='${libname}${release}.a $libname.a'
10567       soname_spec='${libname}${release}${shared_ext}$major'
10568     fi
10569     shlibpath_var=LIBPATH
10570   fi
10571   ;;
10572
10573 amigaos*)
10574   case $host_cpu in
10575   powerpc)
10576     # Since July 2007 AmigaOS4 officially supports .so libraries.
10577     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579     ;;
10580   m68k)
10581     library_names_spec='$libname.ixlibrary $libname.a'
10582     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10583     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'
10584     ;;
10585   esac
10586   ;;
10587
10588 beos*)
10589   library_names_spec='${libname}${shared_ext}'
10590   dynamic_linker="$host_os ld.so"
10591   shlibpath_var=LIBRARY_PATH
10592   ;;
10593
10594 bsdi[45]*)
10595   version_type=linux
10596   need_version=no
10597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598   soname_spec='${libname}${release}${shared_ext}$major'
10599   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10600   shlibpath_var=LD_LIBRARY_PATH
10601   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10602   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10603   # the default ld.so.conf also contains /usr/contrib/lib and
10604   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10605   # libtool to hard-code these into programs
10606   ;;
10607
10608 cygwin* | mingw* | pw32* | cegcc*)
10609   version_type=windows
10610   shrext_cmds=".dll"
10611   need_version=no
10612   need_lib_prefix=no
10613
10614   case $GCC,$host_os in
10615   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10616     library_names_spec='$libname.dll.a'
10617     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10618     postinstall_cmds='base_file=`basename \${file}`~
10619       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10620       dldir=$destdir/`dirname \$dlpath`~
10621       test -d \$dldir || mkdir -p \$dldir~
10622       $install_prog $dir/$dlname \$dldir/$dlname~
10623       chmod a+x \$dldir/$dlname~
10624       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10625         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10626       fi'
10627     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10628       dlpath=$dir/\$dldll~
10629        $RM \$dlpath'
10630     shlibpath_overrides_runpath=yes
10631
10632     case $host_os in
10633     cygwin*)
10634       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10635       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10636       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10637       ;;
10638     mingw* | cegcc*)
10639       # MinGW DLLs use traditional 'lib' prefix
10640       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10641       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10642       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10643         # It is most probably a Windows format PATH printed by
10644         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10645         # path with ; separators, and with drive letters. We can handle the
10646         # drive letters (cygwin fileutils understands them), so leave them,
10647         # especially as we might pass files found there to a mingw objdump,
10648         # which wouldn't understand a cygwinified path. Ahh.
10649         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10650       else
10651         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10652       fi
10653       ;;
10654     pw32*)
10655       # pw32 DLLs use 'pw' prefix rather than 'lib'
10656       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657       ;;
10658     esac
10659     ;;
10660
10661   *)
10662     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10663     ;;
10664   esac
10665   dynamic_linker='Win32 ld.exe'
10666   # FIXME: first we should search . and the directory the executable is in
10667   shlibpath_var=PATH
10668   ;;
10669
10670 darwin* | rhapsody*)
10671   dynamic_linker="$host_os dyld"
10672   version_type=darwin
10673   need_lib_prefix=no
10674   need_version=no
10675   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10676   soname_spec='${libname}${release}${major}$shared_ext'
10677   shlibpath_overrides_runpath=yes
10678   shlibpath_var=DYLD_LIBRARY_PATH
10679   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10680
10681   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10682   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10683   ;;
10684
10685 dgux*)
10686   version_type=linux
10687   need_lib_prefix=no
10688   need_version=no
10689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10690   soname_spec='${libname}${release}${shared_ext}$major'
10691   shlibpath_var=LD_LIBRARY_PATH
10692   ;;
10693
10694 freebsd1*)
10695   dynamic_linker=no
10696   ;;
10697
10698 freebsd* | dragonfly*)
10699   # DragonFly does not have aout.  When/if they implement a new
10700   # versioning mechanism, adjust this.
10701   if test -x /usr/bin/objformat; then
10702     objformat=`/usr/bin/objformat`
10703   else
10704     case $host_os in
10705     freebsd[123]*) objformat=aout ;;
10706     *) objformat=elf ;;
10707     esac
10708   fi
10709   version_type=freebsd-$objformat
10710   case $version_type in
10711     freebsd-elf*)
10712       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10713       need_version=no
10714       need_lib_prefix=no
10715       ;;
10716     freebsd-*)
10717       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10718       need_version=yes
10719       ;;
10720   esac
10721   shlibpath_var=LD_LIBRARY_PATH
10722   case $host_os in
10723   freebsd2*)
10724     shlibpath_overrides_runpath=yes
10725     ;;
10726   freebsd3.[01]* | freebsdelf3.[01]*)
10727     shlibpath_overrides_runpath=yes
10728     hardcode_into_libs=yes
10729     ;;
10730   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10731   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10732     shlibpath_overrides_runpath=no
10733     hardcode_into_libs=yes
10734     ;;
10735   *) # from 4.6 on, and DragonFly
10736     shlibpath_overrides_runpath=yes
10737     hardcode_into_libs=yes
10738     ;;
10739   esac
10740   ;;
10741
10742 gnu*)
10743   version_type=linux
10744   need_lib_prefix=no
10745   need_version=no
10746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10747   soname_spec='${libname}${release}${shared_ext}$major'
10748   shlibpath_var=LD_LIBRARY_PATH
10749   hardcode_into_libs=yes
10750   ;;
10751
10752 hpux9* | hpux10* | hpux11*)
10753   # Give a soname corresponding to the major version so that dld.sl refuses to
10754   # link against other versions.
10755   version_type=sunos
10756   need_lib_prefix=no
10757   need_version=no
10758   case $host_cpu in
10759   ia64*)
10760     shrext_cmds='.so'
10761     hardcode_into_libs=yes
10762     dynamic_linker="$host_os dld.so"
10763     shlibpath_var=LD_LIBRARY_PATH
10764     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766     soname_spec='${libname}${release}${shared_ext}$major'
10767     if test "X$HPUX_IA64_MODE" = X32; then
10768       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10769     else
10770       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10771     fi
10772     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10773     ;;
10774   hppa*64*)
10775     shrext_cmds='.sl'
10776     hardcode_into_libs=yes
10777     dynamic_linker="$host_os dld.sl"
10778     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10779     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781     soname_spec='${libname}${release}${shared_ext}$major'
10782     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10783     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10784     ;;
10785   *)
10786     shrext_cmds='.sl'
10787     dynamic_linker="$host_os dld.sl"
10788     shlibpath_var=SHLIB_PATH
10789     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791     soname_spec='${libname}${release}${shared_ext}$major'
10792     ;;
10793   esac
10794   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10795   postinstall_cmds='chmod 555 $lib'
10796   ;;
10797
10798 interix[3-9]*)
10799   version_type=linux
10800   need_lib_prefix=no
10801   need_version=no
10802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10803   soname_spec='${libname}${release}${shared_ext}$major'
10804   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10805   shlibpath_var=LD_LIBRARY_PATH
10806   shlibpath_overrides_runpath=no
10807   hardcode_into_libs=yes
10808   ;;
10809
10810 irix5* | irix6* | nonstopux*)
10811   case $host_os in
10812     nonstopux*) version_type=nonstopux ;;
10813     *)
10814         if test "$lt_cv_prog_gnu_ld" = yes; then
10815                 version_type=linux
10816         else
10817                 version_type=irix
10818         fi ;;
10819   esac
10820   need_lib_prefix=no
10821   need_version=no
10822   soname_spec='${libname}${release}${shared_ext}$major'
10823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10824   case $host_os in
10825   irix5* | nonstopux*)
10826     libsuff= shlibsuff=
10827     ;;
10828   *)
10829     case $LD in # libtool.m4 will add one of these switches to LD
10830     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10831       libsuff= shlibsuff= libmagic=32-bit;;
10832     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10833       libsuff=32 shlibsuff=N32 libmagic=N32;;
10834     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10835       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10836     *) libsuff= shlibsuff= libmagic=never-match;;
10837     esac
10838     ;;
10839   esac
10840   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10841   shlibpath_overrides_runpath=no
10842   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10843   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10844   hardcode_into_libs=yes
10845   ;;
10846
10847 # No shared lib support for Linux oldld, aout, or coff.
10848 linux*oldld* | linux*aout* | linux*coff*)
10849   dynamic_linker=no
10850   ;;
10851
10852 # This must be Linux ELF.
10853 linux* | k*bsd*-gnu)
10854   version_type=linux
10855   need_lib_prefix=no
10856   need_version=no
10857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858   soname_spec='${libname}${release}${shared_ext}$major'
10859   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10860   shlibpath_var=LD_LIBRARY_PATH
10861   shlibpath_overrides_runpath=no
10862   # Some binutils ld are patched to set DT_RUNPATH
10863   save_LDFLAGS=$LDFLAGS
10864   save_libdir=$libdir
10865   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10866        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h.  */
10869
10870 int
10871 main ()
10872 {
10873
10874   ;
10875   return 0;
10876 }
10877 _ACEOF
10878 if ac_fn_c_try_link "$LINENO"; then :
10879   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10880   shlibpath_overrides_runpath=yes
10881 fi
10882 fi
10883 rm -f core conftest.err conftest.$ac_objext \
10884     conftest$ac_exeext conftest.$ac_ext
10885   LDFLAGS=$save_LDFLAGS
10886   libdir=$save_libdir
10887
10888   # This implies no fast_install, which is unacceptable.
10889   # Some rework will be needed to allow for fast_install
10890   # before this can be enabled.
10891   hardcode_into_libs=yes
10892
10893   # Append ld.so.conf contents to the search path
10894   if test -f /etc/ld.so.conf; then
10895     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' ' '`
10896     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10897   fi
10898
10899   # We used to test for /lib/ld.so.1 and disable shared libraries on
10900   # powerpc, because MkLinux only supported shared libraries with the
10901   # GNU dynamic linker.  Since this was broken with cross compilers,
10902   # most powerpc-linux boxes support dynamic linking these days and
10903   # people can always --disable-shared, the test was removed, and we
10904   # assume the GNU/Linux dynamic linker is in use.
10905   dynamic_linker='GNU/Linux ld.so'
10906   ;;
10907
10908 netbsd*)
10909   version_type=sunos
10910   need_lib_prefix=no
10911   need_version=no
10912   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10914     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10915     dynamic_linker='NetBSD (a.out) ld.so'
10916   else
10917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10918     soname_spec='${libname}${release}${shared_ext}$major'
10919     dynamic_linker='NetBSD ld.elf_so'
10920   fi
10921   shlibpath_var=LD_LIBRARY_PATH
10922   shlibpath_overrides_runpath=yes
10923   hardcode_into_libs=yes
10924   ;;
10925
10926 newsos6)
10927   version_type=linux
10928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929   shlibpath_var=LD_LIBRARY_PATH
10930   shlibpath_overrides_runpath=yes
10931   ;;
10932
10933 *nto* | *qnx*)
10934   version_type=qnx
10935   need_lib_prefix=no
10936   need_version=no
10937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938   soname_spec='${libname}${release}${shared_ext}$major'
10939   shlibpath_var=LD_LIBRARY_PATH
10940   shlibpath_overrides_runpath=no
10941   hardcode_into_libs=yes
10942   dynamic_linker='ldqnx.so'
10943   ;;
10944
10945 openbsd*)
10946   version_type=sunos
10947   sys_lib_dlsearch_path_spec="/usr/lib"
10948   need_lib_prefix=no
10949   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10950   case $host_os in
10951     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10952     *)                          need_version=no  ;;
10953   esac
10954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10955   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10956   shlibpath_var=LD_LIBRARY_PATH
10957   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10958     case $host_os in
10959       openbsd2.[89] | openbsd2.[89].*)
10960         shlibpath_overrides_runpath=no
10961         ;;
10962       *)
10963         shlibpath_overrides_runpath=yes
10964         ;;
10965       esac
10966   else
10967     shlibpath_overrides_runpath=yes
10968   fi
10969   ;;
10970
10971 os2*)
10972   libname_spec='$name'
10973   shrext_cmds=".dll"
10974   need_lib_prefix=no
10975   library_names_spec='$libname${shared_ext} $libname.a'
10976   dynamic_linker='OS/2 ld.exe'
10977   shlibpath_var=LIBPATH
10978   ;;
10979
10980 osf3* | osf4* | osf5*)
10981   version_type=osf
10982   need_lib_prefix=no
10983   need_version=no
10984   soname_spec='${libname}${release}${shared_ext}$major'
10985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10988   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10989   ;;
10990
10991 rdos*)
10992   dynamic_linker=no
10993   ;;
10994
10995 solaris*)
10996   version_type=linux
10997   need_lib_prefix=no
10998   need_version=no
10999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000   soname_spec='${libname}${release}${shared_ext}$major'
11001   shlibpath_var=LD_LIBRARY_PATH
11002   shlibpath_overrides_runpath=yes
11003   hardcode_into_libs=yes
11004   # ldd complains unless libraries are executable
11005   postinstall_cmds='chmod +x $lib'
11006   ;;
11007
11008 sunos4*)
11009   version_type=sunos
11010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11011   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11012   shlibpath_var=LD_LIBRARY_PATH
11013   shlibpath_overrides_runpath=yes
11014   if test "$with_gnu_ld" = yes; then
11015     need_lib_prefix=no
11016   fi
11017   need_version=yes
11018   ;;
11019
11020 sysv4 | sysv4.3*)
11021   version_type=linux
11022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023   soname_spec='${libname}${release}${shared_ext}$major'
11024   shlibpath_var=LD_LIBRARY_PATH
11025   case $host_vendor in
11026     sni)
11027       shlibpath_overrides_runpath=no
11028       need_lib_prefix=no
11029       runpath_var=LD_RUN_PATH
11030       ;;
11031     siemens)
11032       need_lib_prefix=no
11033       ;;
11034     motorola)
11035       need_lib_prefix=no
11036       need_version=no
11037       shlibpath_overrides_runpath=no
11038       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11039       ;;
11040   esac
11041   ;;
11042
11043 sysv4*MP*)
11044   if test -d /usr/nec ;then
11045     version_type=linux
11046     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11047     soname_spec='$libname${shared_ext}.$major'
11048     shlibpath_var=LD_LIBRARY_PATH
11049   fi
11050   ;;
11051
11052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11053   version_type=freebsd-elf
11054   need_lib_prefix=no
11055   need_version=no
11056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11057   soname_spec='${libname}${release}${shared_ext}$major'
11058   shlibpath_var=LD_LIBRARY_PATH
11059   shlibpath_overrides_runpath=yes
11060   hardcode_into_libs=yes
11061   if test "$with_gnu_ld" = yes; then
11062     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11063   else
11064     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11065     case $host_os in
11066       sco3.2v5*)
11067         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11068         ;;
11069     esac
11070   fi
11071   sys_lib_dlsearch_path_spec='/usr/lib'
11072   ;;
11073
11074 tpf*)
11075   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11076   version_type=linux
11077   need_lib_prefix=no
11078   need_version=no
11079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080   shlibpath_var=LD_LIBRARY_PATH
11081   shlibpath_overrides_runpath=no
11082   hardcode_into_libs=yes
11083   ;;
11084
11085 uts4*)
11086   version_type=linux
11087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088   soname_spec='${libname}${release}${shared_ext}$major'
11089   shlibpath_var=LD_LIBRARY_PATH
11090   ;;
11091
11092 *)
11093   dynamic_linker=no
11094   ;;
11095 esac
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11097 $as_echo "$dynamic_linker" >&6; }
11098 test "$dynamic_linker" = no && can_build_shared=no
11099
11100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11101 if test "$GCC" = yes; then
11102   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11103 fi
11104
11105 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11106   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11107 fi
11108 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11109   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11110 fi
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11199 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11200 hardcode_action=
11201 if test -n "$hardcode_libdir_flag_spec" ||
11202    test -n "$runpath_var" ||
11203    test "X$hardcode_automatic" = "Xyes" ; then
11204
11205   # We can hardcode non-existent directories.
11206   if test "$hardcode_direct" != no &&
11207      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11208      # have to relink, otherwise we might link with an installed library
11209      # when we should be linking with a yet-to-be-installed one
11210      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11211      test "$hardcode_minus_L" != no; then
11212     # Linking always hardcodes the temporary library directory.
11213     hardcode_action=relink
11214   else
11215     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11216     hardcode_action=immediate
11217   fi
11218 else
11219   # We cannot hardcode anything, or else we can only hardcode existing
11220   # directories.
11221   hardcode_action=unsupported
11222 fi
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11224 $as_echo "$hardcode_action" >&6; }
11225
11226 if test "$hardcode_action" = relink ||
11227    test "$inherit_rpath" = yes; then
11228   # Fast installation is not supported
11229   enable_fast_install=no
11230 elif test "$shlibpath_overrides_runpath" = yes ||
11231      test "$enable_shared" = no; then
11232   # Fast installation is not necessary
11233   enable_fast_install=needless
11234 fi
11235
11236
11237
11238
11239
11240
11241   if test "x$enable_dlopen" != xyes; then
11242   enable_dlopen=unknown
11243   enable_dlopen_self=unknown
11244   enable_dlopen_self_static=unknown
11245 else
11246   lt_cv_dlopen=no
11247   lt_cv_dlopen_libs=
11248
11249   case $host_os in
11250   beos*)
11251     lt_cv_dlopen="load_add_on"
11252     lt_cv_dlopen_libs=
11253     lt_cv_dlopen_self=yes
11254     ;;
11255
11256   mingw* | pw32* | cegcc*)
11257     lt_cv_dlopen="LoadLibrary"
11258     lt_cv_dlopen_libs=
11259     ;;
11260
11261   cygwin*)
11262     lt_cv_dlopen="dlopen"
11263     lt_cv_dlopen_libs=
11264     ;;
11265
11266   darwin*)
11267   # if libdl is installed we need to link against it
11268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11269 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11271   $as_echo_n "(cached) " >&6
11272 else
11273   ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-ldl  $LIBS"
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h.  */
11277
11278 /* Override any GCC internal prototype to avoid an error.
11279    Use char because int might match the return type of a GCC
11280    builtin and then its argument prototype would still apply.  */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 char dlopen ();
11285 int
11286 main ()
11287 {
11288 return dlopen ();
11289   ;
11290   return 0;
11291 }
11292 _ACEOF
11293 if ac_fn_c_try_link "$LINENO"; then :
11294   ac_cv_lib_dl_dlopen=yes
11295 else
11296   ac_cv_lib_dl_dlopen=no
11297 fi
11298 rm -f core conftest.err conftest.$ac_objext \
11299     conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11303 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11304 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11305   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11306 else
11307
11308     lt_cv_dlopen="dyld"
11309     lt_cv_dlopen_libs=
11310     lt_cv_dlopen_self=yes
11311
11312 fi
11313
11314     ;;
11315
11316   *)
11317     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11318 if test "x$ac_cv_func_shl_load" = x""yes; then :
11319   lt_cv_dlopen="shl_load"
11320 else
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11322 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11323 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11324   $as_echo_n "(cached) " >&6
11325 else
11326   ac_check_lib_save_LIBS=$LIBS
11327 LIBS="-ldld  $LIBS"
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h.  */
11330
11331 /* Override any GCC internal prototype to avoid an error.
11332    Use char because int might match the return type of a GCC
11333    builtin and then its argument prototype would still apply.  */
11334 #ifdef __cplusplus
11335 extern "C"
11336 #endif
11337 char shl_load ();
11338 int
11339 main ()
11340 {
11341 return shl_load ();
11342   ;
11343   return 0;
11344 }
11345 _ACEOF
11346 if ac_fn_c_try_link "$LINENO"; then :
11347   ac_cv_lib_dld_shl_load=yes
11348 else
11349   ac_cv_lib_dld_shl_load=no
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext \
11352     conftest$ac_exeext conftest.$ac_ext
11353 LIBS=$ac_check_lib_save_LIBS
11354 fi
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11356 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11357 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11358   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11359 else
11360   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11361 if test "x$ac_cv_func_dlopen" = x""yes; then :
11362   lt_cv_dlopen="dlopen"
11363 else
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11365 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11366 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11367   $as_echo_n "(cached) " >&6
11368 else
11369   ac_check_lib_save_LIBS=$LIBS
11370 LIBS="-ldl  $LIBS"
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h.  */
11373
11374 /* Override any GCC internal prototype to avoid an error.
11375    Use char because int might match the return type of a GCC
11376    builtin and then its argument prototype would still apply.  */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char dlopen ();
11381 int
11382 main ()
11383 {
11384 return dlopen ();
11385   ;
11386   return 0;
11387 }
11388 _ACEOF
11389 if ac_fn_c_try_link "$LINENO"; then :
11390   ac_cv_lib_dl_dlopen=yes
11391 else
11392   ac_cv_lib_dl_dlopen=no
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext \
11395     conftest$ac_exeext conftest.$ac_ext
11396 LIBS=$ac_check_lib_save_LIBS
11397 fi
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11399 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11400 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11401   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11402 else
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11404 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11405 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11406   $as_echo_n "(cached) " >&6
11407 else
11408   ac_check_lib_save_LIBS=$LIBS
11409 LIBS="-lsvld  $LIBS"
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h.  */
11412
11413 /* Override any GCC internal prototype to avoid an error.
11414    Use char because int might match the return type of a GCC
11415    builtin and then its argument prototype would still apply.  */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char dlopen ();
11420 int
11421 main ()
11422 {
11423 return dlopen ();
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429   ac_cv_lib_svld_dlopen=yes
11430 else
11431   ac_cv_lib_svld_dlopen=no
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext \
11434     conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11438 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11439 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11440   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11441 else
11442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11443 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11444 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11445   $as_echo_n "(cached) " >&6
11446 else
11447   ac_check_lib_save_LIBS=$LIBS
11448 LIBS="-ldld  $LIBS"
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h.  */
11451
11452 /* Override any GCC internal prototype to avoid an error.
11453    Use char because int might match the return type of a GCC
11454    builtin and then its argument prototype would still apply.  */
11455 #ifdef __cplusplus
11456 extern "C"
11457 #endif
11458 char dld_link ();
11459 int
11460 main ()
11461 {
11462 return dld_link ();
11463   ;
11464   return 0;
11465 }
11466 _ACEOF
11467 if ac_fn_c_try_link "$LINENO"; then :
11468   ac_cv_lib_dld_dld_link=yes
11469 else
11470   ac_cv_lib_dld_dld_link=no
11471 fi
11472 rm -f core conftest.err conftest.$ac_objext \
11473     conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11475 fi
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11477 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11478 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11479   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11480 fi
11481
11482
11483 fi
11484
11485
11486 fi
11487
11488
11489 fi
11490
11491
11492 fi
11493
11494
11495 fi
11496
11497     ;;
11498   esac
11499
11500   if test "x$lt_cv_dlopen" != xno; then
11501     enable_dlopen=yes
11502   else
11503     enable_dlopen=no
11504   fi
11505
11506   case $lt_cv_dlopen in
11507   dlopen)
11508     save_CPPFLAGS="$CPPFLAGS"
11509     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11510
11511     save_LDFLAGS="$LDFLAGS"
11512     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11513
11514     save_LIBS="$LIBS"
11515     LIBS="$lt_cv_dlopen_libs $LIBS"
11516
11517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11518 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11519 if test "${lt_cv_dlopen_self+set}" = set; then :
11520   $as_echo_n "(cached) " >&6
11521 else
11522           if test "$cross_compiling" = yes; then :
11523   lt_cv_dlopen_self=cross
11524 else
11525   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11526   lt_status=$lt_dlunknown
11527   cat > conftest.$ac_ext <<_LT_EOF
11528 #line 11528 "configure"
11529 #include "confdefs.h"
11530
11531 #if HAVE_DLFCN_H
11532 #include <dlfcn.h>
11533 #endif
11534
11535 #include <stdio.h>
11536
11537 #ifdef RTLD_GLOBAL
11538 #  define LT_DLGLOBAL           RTLD_GLOBAL
11539 #else
11540 #  ifdef DL_GLOBAL
11541 #    define LT_DLGLOBAL         DL_GLOBAL
11542 #  else
11543 #    define LT_DLGLOBAL         0
11544 #  endif
11545 #endif
11546
11547 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11548    find out it does not work in some platform. */
11549 #ifndef LT_DLLAZY_OR_NOW
11550 #  ifdef RTLD_LAZY
11551 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11552 #  else
11553 #    ifdef DL_LAZY
11554 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11555 #    else
11556 #      ifdef RTLD_NOW
11557 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11558 #      else
11559 #        ifdef DL_NOW
11560 #          define LT_DLLAZY_OR_NOW      DL_NOW
11561 #        else
11562 #          define LT_DLLAZY_OR_NOW      0
11563 #        endif
11564 #      endif
11565 #    endif
11566 #  endif
11567 #endif
11568
11569 void fnord() { int i=42;}
11570 int main ()
11571 {
11572   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11573   int status = $lt_dlunknown;
11574
11575   if (self)
11576     {
11577       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11578       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11579       /* dlclose (self); */
11580     }
11581   else
11582     puts (dlerror ());
11583
11584   return status;
11585 }
11586 _LT_EOF
11587   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11588   (eval $ac_link) 2>&5
11589   ac_status=$?
11590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11591   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11592     (./conftest; exit; ) >&5 2>/dev/null
11593     lt_status=$?
11594     case x$lt_status in
11595       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11596       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11597       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11598     esac
11599   else :
11600     # compilation failed
11601     lt_cv_dlopen_self=no
11602   fi
11603 fi
11604 rm -fr conftest*
11605
11606
11607 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11609 $as_echo "$lt_cv_dlopen_self" >&6; }
11610
11611     if test "x$lt_cv_dlopen_self" = xyes; then
11612       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11613       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11614 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11615 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11616   $as_echo_n "(cached) " >&6
11617 else
11618           if test "$cross_compiling" = yes; then :
11619   lt_cv_dlopen_self_static=cross
11620 else
11621   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11622   lt_status=$lt_dlunknown
11623   cat > conftest.$ac_ext <<_LT_EOF
11624 #line 11624 "configure"
11625 #include "confdefs.h"
11626
11627 #if HAVE_DLFCN_H
11628 #include <dlfcn.h>
11629 #endif
11630
11631 #include <stdio.h>
11632
11633 #ifdef RTLD_GLOBAL
11634 #  define LT_DLGLOBAL           RTLD_GLOBAL
11635 #else
11636 #  ifdef DL_GLOBAL
11637 #    define LT_DLGLOBAL         DL_GLOBAL
11638 #  else
11639 #    define LT_DLGLOBAL         0
11640 #  endif
11641 #endif
11642
11643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11644    find out it does not work in some platform. */
11645 #ifndef LT_DLLAZY_OR_NOW
11646 #  ifdef RTLD_LAZY
11647 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11648 #  else
11649 #    ifdef DL_LAZY
11650 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11651 #    else
11652 #      ifdef RTLD_NOW
11653 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11654 #      else
11655 #        ifdef DL_NOW
11656 #          define LT_DLLAZY_OR_NOW      DL_NOW
11657 #        else
11658 #          define LT_DLLAZY_OR_NOW      0
11659 #        endif
11660 #      endif
11661 #    endif
11662 #  endif
11663 #endif
11664
11665 void fnord() { int i=42;}
11666 int main ()
11667 {
11668   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11669   int status = $lt_dlunknown;
11670
11671   if (self)
11672     {
11673       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11674       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11675       /* dlclose (self); */
11676     }
11677   else
11678     puts (dlerror ());
11679
11680   return status;
11681 }
11682 _LT_EOF
11683   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11684   (eval $ac_link) 2>&5
11685   ac_status=$?
11686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11688     (./conftest; exit; ) >&5 2>/dev/null
11689     lt_status=$?
11690     case x$lt_status in
11691       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11692       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11693       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11694     esac
11695   else :
11696     # compilation failed
11697     lt_cv_dlopen_self_static=no
11698   fi
11699 fi
11700 rm -fr conftest*
11701
11702
11703 fi
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11705 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11706     fi
11707
11708     CPPFLAGS="$save_CPPFLAGS"
11709     LDFLAGS="$save_LDFLAGS"
11710     LIBS="$save_LIBS"
11711     ;;
11712   esac
11713
11714   case $lt_cv_dlopen_self in
11715   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11716   *) enable_dlopen_self=unknown ;;
11717   esac
11718
11719   case $lt_cv_dlopen_self_static in
11720   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11721   *) enable_dlopen_self_static=unknown ;;
11722   esac
11723 fi
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741 striplib=
11742 old_striplib=
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11744 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11745 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11746   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11747   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11749 $as_echo "yes" >&6; }
11750 else
11751 # FIXME - insert some real tests, host_os isn't really good enough
11752   case $host_os in
11753   darwin*)
11754     if test -n "$STRIP" ; then
11755       striplib="$STRIP -x"
11756       old_striplib="$STRIP -S"
11757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758 $as_echo "yes" >&6; }
11759     else
11760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11762     fi
11763     ;;
11764   *)
11765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767     ;;
11768   esac
11769 fi
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782   # Report which library types will actually be built
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11784 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11786 $as_echo "$can_build_shared" >&6; }
11787
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11789 $as_echo_n "checking whether to build shared libraries... " >&6; }
11790   test "$can_build_shared" = "no" && enable_shared=no
11791
11792   # On AIX, shared libraries and static libraries use the same namespace, and
11793   # are all built from PIC.
11794   case $host_os in
11795   aix3*)
11796     test "$enable_shared" = yes && enable_static=no
11797     if test -n "$RANLIB"; then
11798       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11799       postinstall_cmds='$RANLIB $lib'
11800     fi
11801     ;;
11802
11803   aix[4-9]*)
11804     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11805       test "$enable_shared" = yes && enable_static=no
11806     fi
11807     ;;
11808   esac
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11810 $as_echo "$enable_shared" >&6; }
11811
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11813 $as_echo_n "checking whether to build static libraries... " >&6; }
11814   # Make sure either enable_shared or enable_static is yes.
11815   test "$enable_shared" = yes || enable_static=yes
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11817 $as_echo "$enable_static" >&6; }
11818
11819
11820
11821
11822 fi
11823 ac_ext=c
11824 ac_cpp='$CPP $CPPFLAGS'
11825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11828
11829 CC="$lt_save_CC"
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843         ac_config_commands="$ac_config_commands libtool"
11844
11845
11846
11847
11848 # Only expand once:
11849
11850
11851
11852 PERL=${PERL-"${am_missing_run}perl"}
11853
11854
11855 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
11856
11857
11858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11859 $as_echo_n "checking whether NLS is requested... " >&6; }
11860     # Check whether --enable-nls was given.
11861 if test "${enable_nls+set}" = set; then :
11862   enableval=$enable_nls; USE_NLS=$enableval
11863 else
11864   USE_NLS=yes
11865 fi
11866
11867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11868 $as_echo "$USE_NLS" >&6; }
11869
11870
11871
11872
11873       GETTEXT_MACRO_VERSION=0.17
11874
11875
11876
11877
11878 # Prepare PATH_SEPARATOR.
11879 # The user is always right.
11880 if test "${PATH_SEPARATOR+set}" != set; then
11881   echo "#! /bin/sh" >conf$$.sh
11882   echo  "exit 0"   >>conf$$.sh
11883   chmod +x conf$$.sh
11884   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11885     PATH_SEPARATOR=';'
11886   else
11887     PATH_SEPARATOR=:
11888   fi
11889   rm -f conf$$.sh
11890 fi
11891
11892 # Find out how to test for executable files. Don't use a zero-byte file,
11893 # as systems may use methods other than mode bits to determine executability.
11894 cat >conf$$.file <<_ASEOF
11895 #! /bin/sh
11896 exit 0
11897 _ASEOF
11898 chmod +x conf$$.file
11899 if test -x conf$$.file >/dev/null 2>&1; then
11900   ac_executable_p="test -x"
11901 else
11902   ac_executable_p="test -f"
11903 fi
11904 rm -f conf$$.file
11905
11906 # Extract the first word of "msgfmt", so it can be a program name with args.
11907 set dummy msgfmt; ac_word=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909 $as_echo_n "checking for $ac_word... " >&6; }
11910 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11911   $as_echo_n "(cached) " >&6
11912 else
11913   case "$MSGFMT" in
11914   [\\/]* | ?:[\\/]*)
11915     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11916     ;;
11917   *)
11918     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11919     for ac_dir in $PATH; do
11920       IFS="$ac_save_IFS"
11921       test -z "$ac_dir" && ac_dir=.
11922       for ac_exec_ext in '' $ac_executable_extensions; do
11923         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11924           echo "$as_me: trying $ac_dir/$ac_word..." >&5
11925           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11926      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11927             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11928             break 2
11929           fi
11930         fi
11931       done
11932     done
11933     IFS="$ac_save_IFS"
11934   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11935     ;;
11936 esac
11937 fi
11938 MSGFMT="$ac_cv_path_MSGFMT"
11939 if test "$MSGFMT" != ":"; then
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11941 $as_echo "$MSGFMT" >&6; }
11942 else
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 fi
11946
11947   # Extract the first word of "gmsgfmt", so it can be a program name with args.
11948 set dummy gmsgfmt; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11952   $as_echo_n "(cached) " >&6
11953 else
11954   case $GMSGFMT in
11955   [\\/]* | ?:[\\/]*)
11956   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11957   ;;
11958   *)
11959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962   IFS=$as_save_IFS
11963   test -z "$as_dir" && as_dir=.
11964     for ac_exec_ext in '' $ac_executable_extensions; do
11965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11966     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968     break 2
11969   fi
11970 done
11971   done
11972 IFS=$as_save_IFS
11973
11974   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11975   ;;
11976 esac
11977 fi
11978 GMSGFMT=$ac_cv_path_GMSGFMT
11979 if test -n "$GMSGFMT"; then
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11981 $as_echo "$GMSGFMT" >&6; }
11982 else
11983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11985 fi
11986
11987
11988
11989     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11990     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11991     *) MSGFMT_015=$MSGFMT ;;
11992   esac
11993
11994   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11995     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11996     *) GMSGFMT_015=$GMSGFMT ;;
11997   esac
11998
11999
12000
12001 # Prepare PATH_SEPARATOR.
12002 # The user is always right.
12003 if test "${PATH_SEPARATOR+set}" != set; then
12004   echo "#! /bin/sh" >conf$$.sh
12005   echo  "exit 0"   >>conf$$.sh
12006   chmod +x conf$$.sh
12007   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12008     PATH_SEPARATOR=';'
12009   else
12010     PATH_SEPARATOR=:
12011   fi
12012   rm -f conf$$.sh
12013 fi
12014
12015 # Find out how to test for executable files. Don't use a zero-byte file,
12016 # as systems may use methods other than mode bits to determine executability.
12017 cat >conf$$.file <<_ASEOF
12018 #! /bin/sh
12019 exit 0
12020 _ASEOF
12021 chmod +x conf$$.file
12022 if test -x conf$$.file >/dev/null 2>&1; then
12023   ac_executable_p="test -x"
12024 else
12025   ac_executable_p="test -f"
12026 fi
12027 rm -f conf$$.file
12028
12029 # Extract the first word of "xgettext", so it can be a program name with args.
12030 set dummy xgettext; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12034   $as_echo_n "(cached) " >&6
12035 else
12036   case "$XGETTEXT" in
12037   [\\/]* | ?:[\\/]*)
12038     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12039     ;;
12040   *)
12041     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12042     for ac_dir in $PATH; do
12043       IFS="$ac_save_IFS"
12044       test -z "$ac_dir" && ac_dir=.
12045       for ac_exec_ext in '' $ac_executable_extensions; do
12046         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12047           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12048           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12049      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12050             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12051             break 2
12052           fi
12053         fi
12054       done
12055     done
12056     IFS="$ac_save_IFS"
12057   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12058     ;;
12059 esac
12060 fi
12061 XGETTEXT="$ac_cv_path_XGETTEXT"
12062 if test "$XGETTEXT" != ":"; then
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12064 $as_echo "$XGETTEXT" >&6; }
12065 else
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12068 fi
12069
12070     rm -f messages.po
12071
12072     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12073     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12074     *) XGETTEXT_015=$XGETTEXT ;;
12075   esac
12076
12077
12078
12079 # Prepare PATH_SEPARATOR.
12080 # The user is always right.
12081 if test "${PATH_SEPARATOR+set}" != set; then
12082   echo "#! /bin/sh" >conf$$.sh
12083   echo  "exit 0"   >>conf$$.sh
12084   chmod +x conf$$.sh
12085   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12086     PATH_SEPARATOR=';'
12087   else
12088     PATH_SEPARATOR=:
12089   fi
12090   rm -f conf$$.sh
12091 fi
12092
12093 # Find out how to test for executable files. Don't use a zero-byte file,
12094 # as systems may use methods other than mode bits to determine executability.
12095 cat >conf$$.file <<_ASEOF
12096 #! /bin/sh
12097 exit 0
12098 _ASEOF
12099 chmod +x conf$$.file
12100 if test -x conf$$.file >/dev/null 2>&1; then
12101   ac_executable_p="test -x"
12102 else
12103   ac_executable_p="test -f"
12104 fi
12105 rm -f conf$$.file
12106
12107 # Extract the first word of "msgmerge", so it can be a program name with args.
12108 set dummy msgmerge; ac_word=$2
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110 $as_echo_n "checking for $ac_word... " >&6; }
12111 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12112   $as_echo_n "(cached) " >&6
12113 else
12114   case "$MSGMERGE" in
12115   [\\/]* | ?:[\\/]*)
12116     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12117     ;;
12118   *)
12119     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12120     for ac_dir in $PATH; do
12121       IFS="$ac_save_IFS"
12122       test -z "$ac_dir" && ac_dir=.
12123       for ac_exec_ext in '' $ac_executable_extensions; do
12124         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12125           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12126           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12127             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12128             break 2
12129           fi
12130         fi
12131       done
12132     done
12133     IFS="$ac_save_IFS"
12134   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12135     ;;
12136 esac
12137 fi
12138 MSGMERGE="$ac_cv_path_MSGMERGE"
12139 if test "$MSGMERGE" != ":"; then
12140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12141 $as_echo "$MSGMERGE" >&6; }
12142 else
12143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12145 fi
12146
12147
12148         test -n "$localedir" || localedir='${datadir}/locale'
12149
12150
12151     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12152
12153
12154   ac_config_commands="$ac_config_commands po-directories"
12155
12156
12157
12158       if test "X$prefix" = "XNONE"; then
12159     acl_final_prefix="$ac_default_prefix"
12160   else
12161     acl_final_prefix="$prefix"
12162   fi
12163   if test "X$exec_prefix" = "XNONE"; then
12164     acl_final_exec_prefix='${prefix}'
12165   else
12166     acl_final_exec_prefix="$exec_prefix"
12167   fi
12168   acl_save_prefix="$prefix"
12169   prefix="$acl_final_prefix"
12170   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12171   prefix="$acl_save_prefix"
12172
12173
12174 # Check whether --with-gnu-ld was given.
12175 if test "${with_gnu_ld+set}" = set; then :
12176   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12177 else
12178   with_gnu_ld=no
12179 fi
12180
12181 # Prepare PATH_SEPARATOR.
12182 # The user is always right.
12183 if test "${PATH_SEPARATOR+set}" != set; then
12184   echo "#! /bin/sh" >conf$$.sh
12185   echo  "exit 0"   >>conf$$.sh
12186   chmod +x conf$$.sh
12187   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12188     PATH_SEPARATOR=';'
12189   else
12190     PATH_SEPARATOR=:
12191   fi
12192   rm -f conf$$.sh
12193 fi
12194 ac_prog=ld
12195 if test "$GCC" = yes; then
12196   # Check if gcc -print-prog-name=ld gives a path.
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12198 $as_echo_n "checking for ld used by GCC... " >&6; }
12199   case $host in
12200   *-*-mingw*)
12201     # gcc leaves a trailing carriage return which upsets mingw
12202     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12203   *)
12204     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12205   esac
12206   case $ac_prog in
12207     # Accept absolute paths.
12208     [\\/]* | [A-Za-z]:[\\/]*)
12209       re_direlt='/[^/][^/]*/\.\./'
12210       # Canonicalize the path of ld
12211       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12212       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12213         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12214       done
12215       test -z "$LD" && LD="$ac_prog"
12216       ;;
12217   "")
12218     # If it fails, then pretend we aren't using GCC.
12219     ac_prog=ld
12220     ;;
12221   *)
12222     # If it is relative, then search for the first ld in PATH.
12223     with_gnu_ld=unknown
12224     ;;
12225   esac
12226 elif test "$with_gnu_ld" = yes; then
12227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12228 $as_echo_n "checking for GNU ld... " >&6; }
12229 else
12230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12231 $as_echo_n "checking for non-GNU ld... " >&6; }
12232 fi
12233 if test "${acl_cv_path_LD+set}" = set; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   if test -z "$LD"; then
12237   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12238   for ac_dir in $PATH; do
12239     test -z "$ac_dir" && ac_dir=.
12240     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12241       acl_cv_path_LD="$ac_dir/$ac_prog"
12242       # Check to see if the program is GNU ld.  I'd rather use --version,
12243       # but apparently some GNU ld's only accept -v.
12244       # Break only if it was the GNU/non-GNU ld that we prefer.
12245       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12246       *GNU* | *'with BFD'*)
12247         test "$with_gnu_ld" != no && break ;;
12248       *)
12249         test "$with_gnu_ld" != yes && break ;;
12250       esac
12251     fi
12252   done
12253   IFS="$ac_save_ifs"
12254 else
12255   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12256 fi
12257 fi
12258
12259 LD="$acl_cv_path_LD"
12260 if test -n "$LD"; then
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12262 $as_echo "$LD" >&6; }
12263 else
12264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12266 fi
12267 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12269 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12270 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12271   $as_echo_n "(cached) " >&6
12272 else
12273   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12274 case `$LD -v 2>&1 </dev/null` in
12275 *GNU* | *'with BFD'*)
12276   acl_cv_prog_gnu_ld=yes ;;
12277 *)
12278   acl_cv_prog_gnu_ld=no ;;
12279 esac
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12282 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12283 with_gnu_ld=$acl_cv_prog_gnu_ld
12284
12285
12286
12287
12288                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12289 $as_echo_n "checking for shared library run path origin... " >&6; }
12290 if test "${acl_cv_rpath+set}" = set; then :
12291   $as_echo_n "(cached) " >&6
12292 else
12293
12294     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12295     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12296     . ./conftest.sh
12297     rm -f ./conftest.sh
12298     acl_cv_rpath=done
12299
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12302 $as_echo "$acl_cv_rpath" >&6; }
12303   wl="$acl_cv_wl"
12304   acl_libext="$acl_cv_libext"
12305   acl_shlibext="$acl_cv_shlibext"
12306   acl_libname_spec="$acl_cv_libname_spec"
12307   acl_library_names_spec="$acl_cv_library_names_spec"
12308   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12309   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12310   acl_hardcode_direct="$acl_cv_hardcode_direct"
12311   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12312     # Check whether --enable-rpath was given.
12313 if test "${enable_rpath+set}" = set; then :
12314   enableval=$enable_rpath; :
12315 else
12316   enable_rpath=yes
12317 fi
12318
12319
12320
12321                   acl_libdirstem=lib
12322   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12323   if test -n "$searchpath"; then
12324     acl_save_IFS="${IFS=        }"; IFS=":"
12325     for searchdir in $searchpath; do
12326       if test -d "$searchdir"; then
12327         case "$searchdir" in
12328           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12329           *) searchdir=`cd "$searchdir" && pwd`
12330              case "$searchdir" in
12331                */lib64 ) acl_libdirstem=lib64 ;;
12332              esac ;;
12333         esac
12334       fi
12335     done
12336     IFS="$acl_save_IFS"
12337   fi
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347     use_additional=yes
12348
12349   acl_save_prefix="$prefix"
12350   prefix="$acl_final_prefix"
12351   acl_save_exec_prefix="$exec_prefix"
12352   exec_prefix="$acl_final_exec_prefix"
12353
12354     eval additional_includedir=\"$includedir\"
12355     eval additional_libdir=\"$libdir\"
12356
12357   exec_prefix="$acl_save_exec_prefix"
12358   prefix="$acl_save_prefix"
12359
12360
12361 # Check whether --with-libiconv-prefix was given.
12362 if test "${with_libiconv_prefix+set}" = set; then :
12363   withval=$with_libiconv_prefix;
12364     if test "X$withval" = "Xno"; then
12365       use_additional=no
12366     else
12367       if test "X$withval" = "X"; then
12368
12369   acl_save_prefix="$prefix"
12370   prefix="$acl_final_prefix"
12371   acl_save_exec_prefix="$exec_prefix"
12372   exec_prefix="$acl_final_exec_prefix"
12373
12374           eval additional_includedir=\"$includedir\"
12375           eval additional_libdir=\"$libdir\"
12376
12377   exec_prefix="$acl_save_exec_prefix"
12378   prefix="$acl_save_prefix"
12379
12380       else
12381         additional_includedir="$withval/include"
12382         additional_libdir="$withval/$acl_libdirstem"
12383       fi
12384     fi
12385
12386 fi
12387
12388       LIBICONV=
12389   LTLIBICONV=
12390   INCICONV=
12391   LIBICONV_PREFIX=
12392   rpathdirs=
12393   ltrpathdirs=
12394   names_already_handled=
12395   names_next_round='iconv '
12396   while test -n "$names_next_round"; do
12397     names_this_round="$names_next_round"
12398     names_next_round=
12399     for name in $names_this_round; do
12400       already_handled=
12401       for n in $names_already_handled; do
12402         if test "$n" = "$name"; then
12403           already_handled=yes
12404           break
12405         fi
12406       done
12407       if test -z "$already_handled"; then
12408         names_already_handled="$names_already_handled $name"
12409                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12410         eval value=\"\$HAVE_LIB$uppername\"
12411         if test -n "$value"; then
12412           if test "$value" = yes; then
12413             eval value=\"\$LIB$uppername\"
12414             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12415             eval value=\"\$LTLIB$uppername\"
12416             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12417           else
12418                                     :
12419           fi
12420         else
12421                               found_dir=
12422           found_la=
12423           found_so=
12424           found_a=
12425           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12426           if test -n "$acl_shlibext"; then
12427             shrext=".$acl_shlibext"             # typically: shrext=.so
12428           else
12429             shrext=
12430           fi
12431           if test $use_additional = yes; then
12432             dir="$additional_libdir"
12433                                     if test -n "$acl_shlibext"; then
12434               if test -f "$dir/$libname$shrext"; then
12435                 found_dir="$dir"
12436                 found_so="$dir/$libname$shrext"
12437               else
12438                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12439                   ver=`(cd "$dir" && \
12440                         for f in "$libname$shrext".*; do echo "$f"; done \
12441                         | sed -e "s,^$libname$shrext\\\\.,," \
12442                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12443                         | sed 1q ) 2>/dev/null`
12444                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12445                     found_dir="$dir"
12446                     found_so="$dir/$libname$shrext.$ver"
12447                   fi
12448                 else
12449                   eval library_names=\"$acl_library_names_spec\"
12450                   for f in $library_names; do
12451                     if test -f "$dir/$f"; then
12452                       found_dir="$dir"
12453                       found_so="$dir/$f"
12454                       break
12455                     fi
12456                   done
12457                 fi
12458               fi
12459             fi
12460                         if test "X$found_dir" = "X"; then
12461               if test -f "$dir/$libname.$acl_libext"; then
12462                 found_dir="$dir"
12463                 found_a="$dir/$libname.$acl_libext"
12464               fi
12465             fi
12466             if test "X$found_dir" != "X"; then
12467               if test -f "$dir/$libname.la"; then
12468                 found_la="$dir/$libname.la"
12469               fi
12470             fi
12471           fi
12472           if test "X$found_dir" = "X"; then
12473             for x in $LDFLAGS $LTLIBICONV; do
12474
12475   acl_save_prefix="$prefix"
12476   prefix="$acl_final_prefix"
12477   acl_save_exec_prefix="$exec_prefix"
12478   exec_prefix="$acl_final_exec_prefix"
12479   eval x=\"$x\"
12480   exec_prefix="$acl_save_exec_prefix"
12481   prefix="$acl_save_prefix"
12482
12483               case "$x" in
12484                 -L*)
12485                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12486                                     if test -n "$acl_shlibext"; then
12487                     if test -f "$dir/$libname$shrext"; then
12488                       found_dir="$dir"
12489                       found_so="$dir/$libname$shrext"
12490                     else
12491                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12492                         ver=`(cd "$dir" && \
12493                               for f in "$libname$shrext".*; do echo "$f"; done \
12494                               | sed -e "s,^$libname$shrext\\\\.,," \
12495                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12496                               | sed 1q ) 2>/dev/null`
12497                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12498                           found_dir="$dir"
12499                           found_so="$dir/$libname$shrext.$ver"
12500                         fi
12501                       else
12502                         eval library_names=\"$acl_library_names_spec\"
12503                         for f in $library_names; do
12504                           if test -f "$dir/$f"; then
12505                             found_dir="$dir"
12506                             found_so="$dir/$f"
12507                             break
12508                           fi
12509                         done
12510                       fi
12511                     fi
12512                   fi
12513                                     if test "X$found_dir" = "X"; then
12514                     if test -f "$dir/$libname.$acl_libext"; then
12515                       found_dir="$dir"
12516                       found_a="$dir/$libname.$acl_libext"
12517                     fi
12518                   fi
12519                   if test "X$found_dir" != "X"; then
12520                     if test -f "$dir/$libname.la"; then
12521                       found_la="$dir/$libname.la"
12522                     fi
12523                   fi
12524                   ;;
12525               esac
12526               if test "X$found_dir" != "X"; then
12527                 break
12528               fi
12529             done
12530           fi
12531           if test "X$found_dir" != "X"; then
12532                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12533             if test "X$found_so" != "X"; then
12534                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12535                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12536               else
12537                                                                                 haveit=
12538                 for x in $ltrpathdirs; do
12539                   if test "X$x" = "X$found_dir"; then
12540                     haveit=yes
12541                     break
12542                   fi
12543                 done
12544                 if test -z "$haveit"; then
12545                   ltrpathdirs="$ltrpathdirs $found_dir"
12546                 fi
12547                                 if test "$acl_hardcode_direct" = yes; then
12548                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12549                 else
12550                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12551                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12552                                                             haveit=
12553                     for x in $rpathdirs; do
12554                       if test "X$x" = "X$found_dir"; then
12555                         haveit=yes
12556                         break
12557                       fi
12558                     done
12559                     if test -z "$haveit"; then
12560                       rpathdirs="$rpathdirs $found_dir"
12561                     fi
12562                   else
12563                                                                                 haveit=
12564                     for x in $LDFLAGS $LIBICONV; do
12565
12566   acl_save_prefix="$prefix"
12567   prefix="$acl_final_prefix"
12568   acl_save_exec_prefix="$exec_prefix"
12569   exec_prefix="$acl_final_exec_prefix"
12570   eval x=\"$x\"
12571   exec_prefix="$acl_save_exec_prefix"
12572   prefix="$acl_save_prefix"
12573
12574                       if test "X$x" = "X-L$found_dir"; then
12575                         haveit=yes
12576                         break
12577                       fi
12578                     done
12579                     if test -z "$haveit"; then
12580                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12581                     fi
12582                     if test "$acl_hardcode_minus_L" != no; then
12583                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12584                     else
12585                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12586                     fi
12587                   fi
12588                 fi
12589               fi
12590             else
12591               if test "X$found_a" != "X"; then
12592                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12593               else
12594                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12595               fi
12596             fi
12597                         additional_includedir=
12598             case "$found_dir" in
12599               */$acl_libdirstem | */$acl_libdirstem/)
12600                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12601                 LIBICONV_PREFIX="$basedir"
12602                 additional_includedir="$basedir/include"
12603                 ;;
12604             esac
12605             if test "X$additional_includedir" != "X"; then
12606                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12607                 haveit=
12608                 if test "X$additional_includedir" = "X/usr/local/include"; then
12609                   if test -n "$GCC"; then
12610                     case $host_os in
12611                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12612                     esac
12613                   fi
12614                 fi
12615                 if test -z "$haveit"; then
12616                   for x in $CPPFLAGS $INCICONV; do
12617
12618   acl_save_prefix="$prefix"
12619   prefix="$acl_final_prefix"
12620   acl_save_exec_prefix="$exec_prefix"
12621   exec_prefix="$acl_final_exec_prefix"
12622   eval x=\"$x\"
12623   exec_prefix="$acl_save_exec_prefix"
12624   prefix="$acl_save_prefix"
12625
12626                     if test "X$x" = "X-I$additional_includedir"; then
12627                       haveit=yes
12628                       break
12629                     fi
12630                   done
12631                   if test -z "$haveit"; then
12632                     if test -d "$additional_includedir"; then
12633                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12634                     fi
12635                   fi
12636                 fi
12637               fi
12638             fi
12639                         if test -n "$found_la"; then
12640                                                         save_libdir="$libdir"
12641               case "$found_la" in
12642                 */* | *\\*) . "$found_la" ;;
12643                 *) . "./$found_la" ;;
12644               esac
12645               libdir="$save_libdir"
12646                             for dep in $dependency_libs; do
12647                 case "$dep" in
12648                   -L*)
12649                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12650                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12651                       haveit=
12652                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12653                         if test -n "$GCC"; then
12654                           case $host_os in
12655                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12656                           esac
12657                         fi
12658                       fi
12659                       if test -z "$haveit"; then
12660                         haveit=
12661                         for x in $LDFLAGS $LIBICONV; do
12662
12663   acl_save_prefix="$prefix"
12664   prefix="$acl_final_prefix"
12665   acl_save_exec_prefix="$exec_prefix"
12666   exec_prefix="$acl_final_exec_prefix"
12667   eval x=\"$x\"
12668   exec_prefix="$acl_save_exec_prefix"
12669   prefix="$acl_save_prefix"
12670
12671                           if test "X$x" = "X-L$additional_libdir"; then
12672                             haveit=yes
12673                             break
12674                           fi
12675                         done
12676                         if test -z "$haveit"; then
12677                           if test -d "$additional_libdir"; then
12678                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12679                           fi
12680                         fi
12681                         haveit=
12682                         for x in $LDFLAGS $LTLIBICONV; do
12683
12684   acl_save_prefix="$prefix"
12685   prefix="$acl_final_prefix"
12686   acl_save_exec_prefix="$exec_prefix"
12687   exec_prefix="$acl_final_exec_prefix"
12688   eval x=\"$x\"
12689   exec_prefix="$acl_save_exec_prefix"
12690   prefix="$acl_save_prefix"
12691
12692                           if test "X$x" = "X-L$additional_libdir"; then
12693                             haveit=yes
12694                             break
12695                           fi
12696                         done
12697                         if test -z "$haveit"; then
12698                           if test -d "$additional_libdir"; then
12699                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12700                           fi
12701                         fi
12702                       fi
12703                     fi
12704                     ;;
12705                   -R*)
12706                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12707                     if test "$enable_rpath" != no; then
12708                                                                   haveit=
12709                       for x in $rpathdirs; do
12710                         if test "X$x" = "X$dir"; then
12711                           haveit=yes
12712                           break
12713                         fi
12714                       done
12715                       if test -z "$haveit"; then
12716                         rpathdirs="$rpathdirs $dir"
12717                       fi
12718                                                                   haveit=
12719                       for x in $ltrpathdirs; do
12720                         if test "X$x" = "X$dir"; then
12721                           haveit=yes
12722                           break
12723                         fi
12724                       done
12725                       if test -z "$haveit"; then
12726                         ltrpathdirs="$ltrpathdirs $dir"
12727                       fi
12728                     fi
12729                     ;;
12730                   -l*)
12731                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12732                     ;;
12733                   *.la)
12734                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12735                     ;;
12736                   *)
12737                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12738                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12739                     ;;
12740                 esac
12741               done
12742             fi
12743           else
12744                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12745             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12746           fi
12747         fi
12748       fi
12749     done
12750   done
12751   if test "X$rpathdirs" != "X"; then
12752     if test -n "$acl_hardcode_libdir_separator"; then
12753                         alldirs=
12754       for found_dir in $rpathdirs; do
12755         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12756       done
12757             acl_save_libdir="$libdir"
12758       libdir="$alldirs"
12759       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12760       libdir="$acl_save_libdir"
12761       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12762     else
12763             for found_dir in $rpathdirs; do
12764         acl_save_libdir="$libdir"
12765         libdir="$found_dir"
12766         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12767         libdir="$acl_save_libdir"
12768         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12769       done
12770     fi
12771   fi
12772   if test "X$ltrpathdirs" != "X"; then
12773             for found_dir in $ltrpathdirs; do
12774       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12775     done
12776   fi
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12803 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12804 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
12805   $as_echo_n "(cached) " >&6
12806 else
12807   gt_save_LIBS="$LIBS"
12808      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12809      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h.  */
12811 #include <CoreFoundation/CFPreferences.h>
12812 int
12813 main ()
12814 {
12815 CFPreferencesCopyAppValue(NULL, NULL)
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 if ac_fn_c_try_link "$LINENO"; then :
12821   gt_cv_func_CFPreferencesCopyAppValue=yes
12822 else
12823   gt_cv_func_CFPreferencesCopyAppValue=no
12824 fi
12825 rm -f core conftest.err conftest.$ac_objext \
12826     conftest$ac_exeext conftest.$ac_ext
12827      LIBS="$gt_save_LIBS"
12828 fi
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12830 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12831   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12832
12833 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12834
12835   fi
12836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12837 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12838 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
12839   $as_echo_n "(cached) " >&6
12840 else
12841   gt_save_LIBS="$LIBS"
12842      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12843      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h.  */
12845 #include <CoreFoundation/CFLocale.h>
12846 int
12847 main ()
12848 {
12849 CFLocaleCopyCurrent();
12850   ;
12851   return 0;
12852 }
12853 _ACEOF
12854 if ac_fn_c_try_link "$LINENO"; then :
12855   gt_cv_func_CFLocaleCopyCurrent=yes
12856 else
12857   gt_cv_func_CFLocaleCopyCurrent=no
12858 fi
12859 rm -f core conftest.err conftest.$ac_objext \
12860     conftest$ac_exeext conftest.$ac_ext
12861      LIBS="$gt_save_LIBS"
12862 fi
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12864 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12865   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12866
12867 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12868
12869   fi
12870   INTL_MACOSX_LIBS=
12871   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12872     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12873   fi
12874
12875
12876
12877
12878
12879
12880   LIBINTL=
12881   LTLIBINTL=
12882   POSUB=
12883
12884     case " $gt_needs " in
12885     *" need-formatstring-macros "*) gt_api_version=3 ;;
12886     *" need-ngettext "*) gt_api_version=2 ;;
12887     *) gt_api_version=1 ;;
12888   esac
12889   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12890   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12891
12892     if test "$USE_NLS" = "yes"; then
12893     gt_use_preinstalled_gnugettext=no
12894
12895
12896         if test $gt_api_version -ge 3; then
12897           gt_revision_test_code='
12898 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12899 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12900 #endif
12901 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12902 '
12903         else
12904           gt_revision_test_code=
12905         fi
12906         if test $gt_api_version -ge 2; then
12907           gt_expression_test_code=' + * ngettext ("", "", 0)'
12908         else
12909           gt_expression_test_code=
12910         fi
12911
12912         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12913 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12914 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
12915   $as_echo_n "(cached) " >&6
12916 else
12917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h.  */
12919 #include <libintl.h>
12920 $gt_revision_test_code
12921 extern int _nl_msg_cat_cntr;
12922 extern int *_nl_domain_bindings;
12923 int
12924 main ()
12925 {
12926 bindtextdomain ("", "");
12927 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12928   ;
12929   return 0;
12930 }
12931 _ACEOF
12932 if ac_fn_c_try_link "$LINENO"; then :
12933   eval "$gt_func_gnugettext_libc=yes"
12934 else
12935   eval "$gt_func_gnugettext_libc=no"
12936 fi
12937 rm -f core conftest.err conftest.$ac_objext \
12938     conftest$ac_exeext conftest.$ac_ext
12939 fi
12940 eval ac_res=\$$gt_func_gnugettext_libc
12941                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12942 $as_echo "$ac_res" >&6; }
12943
12944         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12945
12946
12947
12948
12949
12950           am_save_CPPFLAGS="$CPPFLAGS"
12951
12952   for element in $INCICONV; do
12953     haveit=
12954     for x in $CPPFLAGS; do
12955
12956   acl_save_prefix="$prefix"
12957   prefix="$acl_final_prefix"
12958   acl_save_exec_prefix="$exec_prefix"
12959   exec_prefix="$acl_final_exec_prefix"
12960   eval x=\"$x\"
12961   exec_prefix="$acl_save_exec_prefix"
12962   prefix="$acl_save_prefix"
12963
12964       if test "X$x" = "X$element"; then
12965         haveit=yes
12966         break
12967       fi
12968     done
12969     if test -z "$haveit"; then
12970       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12971     fi
12972   done
12973
12974
12975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12976 $as_echo_n "checking for iconv... " >&6; }
12977 if test "${am_cv_func_iconv+set}" = set; then :
12978   $as_echo_n "(cached) " >&6
12979 else
12980
12981     am_cv_func_iconv="no, consider installing GNU libiconv"
12982     am_cv_lib_iconv=no
12983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h.  */
12985 #include <stdlib.h>
12986 #include <iconv.h>
12987 int
12988 main ()
12989 {
12990 iconv_t cd = iconv_open("","");
12991        iconv(cd,NULL,NULL,NULL,NULL);
12992        iconv_close(cd);
12993   ;
12994   return 0;
12995 }
12996 _ACEOF
12997 if ac_fn_c_try_link "$LINENO"; then :
12998   am_cv_func_iconv=yes
12999 fi
13000 rm -f core conftest.err conftest.$ac_objext \
13001     conftest$ac_exeext conftest.$ac_ext
13002     if test "$am_cv_func_iconv" != yes; then
13003       am_save_LIBS="$LIBS"
13004       LIBS="$LIBS $LIBICONV"
13005       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h.  */
13007 #include <stdlib.h>
13008 #include <iconv.h>
13009 int
13010 main ()
13011 {
13012 iconv_t cd = iconv_open("","");
13013          iconv(cd,NULL,NULL,NULL,NULL);
13014          iconv_close(cd);
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"; then :
13020   am_cv_lib_iconv=yes
13021         am_cv_func_iconv=yes
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext \
13024     conftest$ac_exeext conftest.$ac_ext
13025       LIBS="$am_save_LIBS"
13026     fi
13027
13028 fi
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13030 $as_echo "$am_cv_func_iconv" >&6; }
13031   if test "$am_cv_func_iconv" = yes; then
13032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13033 $as_echo_n "checking for working iconv... " >&6; }
13034 if test "${am_cv_func_iconv_works+set}" = set; then :
13035   $as_echo_n "(cached) " >&6
13036 else
13037
13038             am_save_LIBS="$LIBS"
13039       if test $am_cv_lib_iconv = yes; then
13040         LIBS="$LIBS $LIBICONV"
13041       fi
13042       if test "$cross_compiling" = yes; then :
13043   case "$host_os" in
13044            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13045            *)            am_cv_func_iconv_works="guessing yes" ;;
13046          esac
13047 else
13048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h.  */
13050
13051 #include <iconv.h>
13052 #include <string.h>
13053 int main ()
13054 {
13055   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13056      returns.  */
13057   {
13058     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13059     if (cd_utf8_to_88591 != (iconv_t)(-1))
13060       {
13061         static const char input[] = "\342\202\254"; /* EURO SIGN */
13062         char buf[10];
13063         const char *inptr = input;
13064         size_t inbytesleft = strlen (input);
13065         char *outptr = buf;
13066         size_t outbytesleft = sizeof (buf);
13067         size_t res = iconv (cd_utf8_to_88591,
13068                             (char **) &inptr, &inbytesleft,
13069                             &outptr, &outbytesleft);
13070         if (res == 0)
13071           return 1;
13072       }
13073   }
13074 #if 0 /* This bug could be worked around by the caller.  */
13075   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13076   {
13077     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13078     if (cd_88591_to_utf8 != (iconv_t)(-1))
13079       {
13080         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13081         char buf[50];
13082         const char *inptr = input;
13083         size_t inbytesleft = strlen (input);
13084         char *outptr = buf;
13085         size_t outbytesleft = sizeof (buf);
13086         size_t res = iconv (cd_88591_to_utf8,
13087                             (char **) &inptr, &inbytesleft,
13088                             &outptr, &outbytesleft);
13089         if ((int)res > 0)
13090           return 1;
13091       }
13092   }
13093 #endif
13094   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13095      provided.  */
13096   if (/* Try standardized names.  */
13097       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13098       /* Try IRIX, OSF/1 names.  */
13099       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13100       /* Try AIX names.  */
13101       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13102       /* Try HP-UX names.  */
13103       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13104     return 1;
13105   return 0;
13106 }
13107 _ACEOF
13108 if ac_fn_c_try_run "$LINENO"; then :
13109   am_cv_func_iconv_works=yes
13110 else
13111   am_cv_func_iconv_works=no
13112 fi
13113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13114   conftest.$ac_objext conftest.beam conftest.$ac_ext
13115 fi
13116
13117       LIBS="$am_save_LIBS"
13118
13119 fi
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13121 $as_echo "$am_cv_func_iconv_works" >&6; }
13122     case "$am_cv_func_iconv_works" in
13123       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13124       *)   am_func_iconv=yes ;;
13125     esac
13126   else
13127     am_func_iconv=no am_cv_lib_iconv=no
13128   fi
13129   if test "$am_func_iconv" = yes; then
13130
13131 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13132
13133   fi
13134   if test "$am_cv_lib_iconv" = yes; then
13135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13136 $as_echo_n "checking how to link with libiconv... " >&6; }
13137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13138 $as_echo "$LIBICONV" >&6; }
13139   else
13140             CPPFLAGS="$am_save_CPPFLAGS"
13141     LIBICONV=
13142     LTLIBICONV=
13143   fi
13144
13145
13146
13147
13148
13149
13150
13151
13152     use_additional=yes
13153
13154   acl_save_prefix="$prefix"
13155   prefix="$acl_final_prefix"
13156   acl_save_exec_prefix="$exec_prefix"
13157   exec_prefix="$acl_final_exec_prefix"
13158
13159     eval additional_includedir=\"$includedir\"
13160     eval additional_libdir=\"$libdir\"
13161
13162   exec_prefix="$acl_save_exec_prefix"
13163   prefix="$acl_save_prefix"
13164
13165
13166 # Check whether --with-libintl-prefix was given.
13167 if test "${with_libintl_prefix+set}" = set; then :
13168   withval=$with_libintl_prefix;
13169     if test "X$withval" = "Xno"; then
13170       use_additional=no
13171     else
13172       if test "X$withval" = "X"; then
13173
13174   acl_save_prefix="$prefix"
13175   prefix="$acl_final_prefix"
13176   acl_save_exec_prefix="$exec_prefix"
13177   exec_prefix="$acl_final_exec_prefix"
13178
13179           eval additional_includedir=\"$includedir\"
13180           eval additional_libdir=\"$libdir\"
13181
13182   exec_prefix="$acl_save_exec_prefix"
13183   prefix="$acl_save_prefix"
13184
13185       else
13186         additional_includedir="$withval/include"
13187         additional_libdir="$withval/$acl_libdirstem"
13188       fi
13189     fi
13190
13191 fi
13192
13193       LIBINTL=
13194   LTLIBINTL=
13195   INCINTL=
13196   LIBINTL_PREFIX=
13197   rpathdirs=
13198   ltrpathdirs=
13199   names_already_handled=
13200   names_next_round='intl '
13201   while test -n "$names_next_round"; do
13202     names_this_round="$names_next_round"
13203     names_next_round=
13204     for name in $names_this_round; do
13205       already_handled=
13206       for n in $names_already_handled; do
13207         if test "$n" = "$name"; then
13208           already_handled=yes
13209           break
13210         fi
13211       done
13212       if test -z "$already_handled"; then
13213         names_already_handled="$names_already_handled $name"
13214                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13215         eval value=\"\$HAVE_LIB$uppername\"
13216         if test -n "$value"; then
13217           if test "$value" = yes; then
13218             eval value=\"\$LIB$uppername\"
13219             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13220             eval value=\"\$LTLIB$uppername\"
13221             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13222           else
13223                                     :
13224           fi
13225         else
13226                               found_dir=
13227           found_la=
13228           found_so=
13229           found_a=
13230           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13231           if test -n "$acl_shlibext"; then
13232             shrext=".$acl_shlibext"             # typically: shrext=.so
13233           else
13234             shrext=
13235           fi
13236           if test $use_additional = yes; then
13237             dir="$additional_libdir"
13238                                     if test -n "$acl_shlibext"; then
13239               if test -f "$dir/$libname$shrext"; then
13240                 found_dir="$dir"
13241                 found_so="$dir/$libname$shrext"
13242               else
13243                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13244                   ver=`(cd "$dir" && \
13245                         for f in "$libname$shrext".*; do echo "$f"; done \
13246                         | sed -e "s,^$libname$shrext\\\\.,," \
13247                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13248                         | sed 1q ) 2>/dev/null`
13249                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13250                     found_dir="$dir"
13251                     found_so="$dir/$libname$shrext.$ver"
13252                   fi
13253                 else
13254                   eval library_names=\"$acl_library_names_spec\"
13255                   for f in $library_names; do
13256                     if test -f "$dir/$f"; then
13257                       found_dir="$dir"
13258                       found_so="$dir/$f"
13259                       break
13260                     fi
13261                   done
13262                 fi
13263               fi
13264             fi
13265                         if test "X$found_dir" = "X"; then
13266               if test -f "$dir/$libname.$acl_libext"; then
13267                 found_dir="$dir"
13268                 found_a="$dir/$libname.$acl_libext"
13269               fi
13270             fi
13271             if test "X$found_dir" != "X"; then
13272               if test -f "$dir/$libname.la"; then
13273                 found_la="$dir/$libname.la"
13274               fi
13275             fi
13276           fi
13277           if test "X$found_dir" = "X"; then
13278             for x in $LDFLAGS $LTLIBINTL; do
13279
13280   acl_save_prefix="$prefix"
13281   prefix="$acl_final_prefix"
13282   acl_save_exec_prefix="$exec_prefix"
13283   exec_prefix="$acl_final_exec_prefix"
13284   eval x=\"$x\"
13285   exec_prefix="$acl_save_exec_prefix"
13286   prefix="$acl_save_prefix"
13287
13288               case "$x" in
13289                 -L*)
13290                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13291                                     if test -n "$acl_shlibext"; then
13292                     if test -f "$dir/$libname$shrext"; then
13293                       found_dir="$dir"
13294                       found_so="$dir/$libname$shrext"
13295                     else
13296                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13297                         ver=`(cd "$dir" && \
13298                               for f in "$libname$shrext".*; do echo "$f"; done \
13299                               | sed -e "s,^$libname$shrext\\\\.,," \
13300                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13301                               | sed 1q ) 2>/dev/null`
13302                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13303                           found_dir="$dir"
13304                           found_so="$dir/$libname$shrext.$ver"
13305                         fi
13306                       else
13307                         eval library_names=\"$acl_library_names_spec\"
13308                         for f in $library_names; do
13309                           if test -f "$dir/$f"; then
13310                             found_dir="$dir"
13311                             found_so="$dir/$f"
13312                             break
13313                           fi
13314                         done
13315                       fi
13316                     fi
13317                   fi
13318                                     if test "X$found_dir" = "X"; then
13319                     if test -f "$dir/$libname.$acl_libext"; then
13320                       found_dir="$dir"
13321                       found_a="$dir/$libname.$acl_libext"
13322                     fi
13323                   fi
13324                   if test "X$found_dir" != "X"; then
13325                     if test -f "$dir/$libname.la"; then
13326                       found_la="$dir/$libname.la"
13327                     fi
13328                   fi
13329                   ;;
13330               esac
13331               if test "X$found_dir" != "X"; then
13332                 break
13333               fi
13334             done
13335           fi
13336           if test "X$found_dir" != "X"; then
13337                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13338             if test "X$found_so" != "X"; then
13339                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13340                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13341               else
13342                                                                                 haveit=
13343                 for x in $ltrpathdirs; do
13344                   if test "X$x" = "X$found_dir"; then
13345                     haveit=yes
13346                     break
13347                   fi
13348                 done
13349                 if test -z "$haveit"; then
13350                   ltrpathdirs="$ltrpathdirs $found_dir"
13351                 fi
13352                                 if test "$acl_hardcode_direct" = yes; then
13353                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13354                 else
13355                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13356                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13357                                                             haveit=
13358                     for x in $rpathdirs; do
13359                       if test "X$x" = "X$found_dir"; then
13360                         haveit=yes
13361                         break
13362                       fi
13363                     done
13364                     if test -z "$haveit"; then
13365                       rpathdirs="$rpathdirs $found_dir"
13366                     fi
13367                   else
13368                                                                                 haveit=
13369                     for x in $LDFLAGS $LIBINTL; do
13370
13371   acl_save_prefix="$prefix"
13372   prefix="$acl_final_prefix"
13373   acl_save_exec_prefix="$exec_prefix"
13374   exec_prefix="$acl_final_exec_prefix"
13375   eval x=\"$x\"
13376   exec_prefix="$acl_save_exec_prefix"
13377   prefix="$acl_save_prefix"
13378
13379                       if test "X$x" = "X-L$found_dir"; then
13380                         haveit=yes
13381                         break
13382                       fi
13383                     done
13384                     if test -z "$haveit"; then
13385                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13386                     fi
13387                     if test "$acl_hardcode_minus_L" != no; then
13388                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13389                     else
13390                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13391                     fi
13392                   fi
13393                 fi
13394               fi
13395             else
13396               if test "X$found_a" != "X"; then
13397                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13398               else
13399                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13400               fi
13401             fi
13402                         additional_includedir=
13403             case "$found_dir" in
13404               */$acl_libdirstem | */$acl_libdirstem/)
13405                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13406                 LIBINTL_PREFIX="$basedir"
13407                 additional_includedir="$basedir/include"
13408                 ;;
13409             esac
13410             if test "X$additional_includedir" != "X"; then
13411                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13412                 haveit=
13413                 if test "X$additional_includedir" = "X/usr/local/include"; then
13414                   if test -n "$GCC"; then
13415                     case $host_os in
13416                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13417                     esac
13418                   fi
13419                 fi
13420                 if test -z "$haveit"; then
13421                   for x in $CPPFLAGS $INCINTL; do
13422
13423   acl_save_prefix="$prefix"
13424   prefix="$acl_final_prefix"
13425   acl_save_exec_prefix="$exec_prefix"
13426   exec_prefix="$acl_final_exec_prefix"
13427   eval x=\"$x\"
13428   exec_prefix="$acl_save_exec_prefix"
13429   prefix="$acl_save_prefix"
13430
13431                     if test "X$x" = "X-I$additional_includedir"; then
13432                       haveit=yes
13433                       break
13434                     fi
13435                   done
13436                   if test -z "$haveit"; then
13437                     if test -d "$additional_includedir"; then
13438                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13439                     fi
13440                   fi
13441                 fi
13442               fi
13443             fi
13444                         if test -n "$found_la"; then
13445                                                         save_libdir="$libdir"
13446               case "$found_la" in
13447                 */* | *\\*) . "$found_la" ;;
13448                 *) . "./$found_la" ;;
13449               esac
13450               libdir="$save_libdir"
13451                             for dep in $dependency_libs; do
13452                 case "$dep" in
13453                   -L*)
13454                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13455                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13456                       haveit=
13457                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13458                         if test -n "$GCC"; then
13459                           case $host_os in
13460                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13461                           esac
13462                         fi
13463                       fi
13464                       if test -z "$haveit"; then
13465                         haveit=
13466                         for x in $LDFLAGS $LIBINTL; do
13467
13468   acl_save_prefix="$prefix"
13469   prefix="$acl_final_prefix"
13470   acl_save_exec_prefix="$exec_prefix"
13471   exec_prefix="$acl_final_exec_prefix"
13472   eval x=\"$x\"
13473   exec_prefix="$acl_save_exec_prefix"
13474   prefix="$acl_save_prefix"
13475
13476                           if test "X$x" = "X-L$additional_libdir"; then
13477                             haveit=yes
13478                             break
13479                           fi
13480                         done
13481                         if test -z "$haveit"; then
13482                           if test -d "$additional_libdir"; then
13483                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13484                           fi
13485                         fi
13486                         haveit=
13487                         for x in $LDFLAGS $LTLIBINTL; do
13488
13489   acl_save_prefix="$prefix"
13490   prefix="$acl_final_prefix"
13491   acl_save_exec_prefix="$exec_prefix"
13492   exec_prefix="$acl_final_exec_prefix"
13493   eval x=\"$x\"
13494   exec_prefix="$acl_save_exec_prefix"
13495   prefix="$acl_save_prefix"
13496
13497                           if test "X$x" = "X-L$additional_libdir"; then
13498                             haveit=yes
13499                             break
13500                           fi
13501                         done
13502                         if test -z "$haveit"; then
13503                           if test -d "$additional_libdir"; then
13504                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13505                           fi
13506                         fi
13507                       fi
13508                     fi
13509                     ;;
13510                   -R*)
13511                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13512                     if test "$enable_rpath" != no; then
13513                                                                   haveit=
13514                       for x in $rpathdirs; do
13515                         if test "X$x" = "X$dir"; then
13516                           haveit=yes
13517                           break
13518                         fi
13519                       done
13520                       if test -z "$haveit"; then
13521                         rpathdirs="$rpathdirs $dir"
13522                       fi
13523                                                                   haveit=
13524                       for x in $ltrpathdirs; do
13525                         if test "X$x" = "X$dir"; then
13526                           haveit=yes
13527                           break
13528                         fi
13529                       done
13530                       if test -z "$haveit"; then
13531                         ltrpathdirs="$ltrpathdirs $dir"
13532                       fi
13533                     fi
13534                     ;;
13535                   -l*)
13536                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13537                     ;;
13538                   *.la)
13539                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13540                     ;;
13541                   *)
13542                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13543                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13544                     ;;
13545                 esac
13546               done
13547             fi
13548           else
13549                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13550             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13551           fi
13552         fi
13553       fi
13554     done
13555   done
13556   if test "X$rpathdirs" != "X"; then
13557     if test -n "$acl_hardcode_libdir_separator"; then
13558                         alldirs=
13559       for found_dir in $rpathdirs; do
13560         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13561       done
13562             acl_save_libdir="$libdir"
13563       libdir="$alldirs"
13564       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13565       libdir="$acl_save_libdir"
13566       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13567     else
13568             for found_dir in $rpathdirs; do
13569         acl_save_libdir="$libdir"
13570         libdir="$found_dir"
13571         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13572         libdir="$acl_save_libdir"
13573         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13574       done
13575     fi
13576   fi
13577   if test "X$ltrpathdirs" != "X"; then
13578             for found_dir in $ltrpathdirs; do
13579       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13580     done
13581   fi
13582
13583           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13584 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13585 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
13586   $as_echo_n "(cached) " >&6
13587 else
13588   gt_save_CPPFLAGS="$CPPFLAGS"
13589             CPPFLAGS="$CPPFLAGS $INCINTL"
13590             gt_save_LIBS="$LIBS"
13591             LIBS="$LIBS $LIBINTL"
13592                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h.  */
13594 #include <libintl.h>
13595 $gt_revision_test_code
13596 extern int _nl_msg_cat_cntr;
13597 extern
13598 #ifdef __cplusplus
13599 "C"
13600 #endif
13601 const char *_nl_expand_alias (const char *);
13602 int
13603 main ()
13604 {
13605 bindtextdomain ("", "");
13606 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612   eval "$gt_func_gnugettext_libintl=yes"
13613 else
13614   eval "$gt_func_gnugettext_libintl=no"
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext \
13617     conftest$ac_exeext conftest.$ac_ext
13618                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13619               LIBS="$LIBS $LIBICONV"
13620               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h.  */
13622 #include <libintl.h>
13623 $gt_revision_test_code
13624 extern int _nl_msg_cat_cntr;
13625 extern
13626 #ifdef __cplusplus
13627 "C"
13628 #endif
13629 const char *_nl_expand_alias (const char *);
13630 int
13631 main ()
13632 {
13633 bindtextdomain ("", "");
13634 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13635   ;
13636   return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_link "$LINENO"; then :
13640   LIBINTL="$LIBINTL $LIBICONV"
13641                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13642                 eval "$gt_func_gnugettext_libintl=yes"
13643
13644 fi
13645 rm -f core conftest.err conftest.$ac_objext \
13646     conftest$ac_exeext conftest.$ac_ext
13647             fi
13648             CPPFLAGS="$gt_save_CPPFLAGS"
13649             LIBS="$gt_save_LIBS"
13650 fi
13651 eval ac_res=\$$gt_func_gnugettext_libintl
13652                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13653 $as_echo "$ac_res" >&6; }
13654         fi
13655
13656                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13657            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13658                 && test "$PACKAGE" != gettext-runtime \
13659                 && test "$PACKAGE" != gettext-tools; }; then
13660           gt_use_preinstalled_gnugettext=yes
13661         else
13662                     LIBINTL=
13663           LTLIBINTL=
13664           INCINTL=
13665         fi
13666
13667
13668
13669     if test -n "$INTL_MACOSX_LIBS"; then
13670       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13671          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13672                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13673         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13674       fi
13675     fi
13676
13677     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13678        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13679
13680 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13681
13682     else
13683       USE_NLS=no
13684     fi
13685   fi
13686
13687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13688 $as_echo_n "checking whether to use NLS... " >&6; }
13689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13690 $as_echo "$USE_NLS" >&6; }
13691   if test "$USE_NLS" = "yes"; then
13692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13693 $as_echo_n "checking where the gettext function comes from... " >&6; }
13694     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13695       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13696         gt_source="external libintl"
13697       else
13698         gt_source="libc"
13699       fi
13700     else
13701       gt_source="included intl directory"
13702     fi
13703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13704 $as_echo "$gt_source" >&6; }
13705   fi
13706
13707   if test "$USE_NLS" = "yes"; then
13708
13709     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13710       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13712 $as_echo_n "checking how to link with libintl... " >&6; }
13713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13714 $as_echo "$LIBINTL" >&6; }
13715
13716   for element in $INCINTL; do
13717     haveit=
13718     for x in $CPPFLAGS; do
13719
13720   acl_save_prefix="$prefix"
13721   prefix="$acl_final_prefix"
13722   acl_save_exec_prefix="$exec_prefix"
13723   exec_prefix="$acl_final_exec_prefix"
13724   eval x=\"$x\"
13725   exec_prefix="$acl_save_exec_prefix"
13726   prefix="$acl_save_prefix"
13727
13728       if test "X$x" = "X$element"; then
13729         haveit=yes
13730         break
13731       fi
13732     done
13733     if test -z "$haveit"; then
13734       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13735     fi
13736   done
13737
13738       fi
13739
13740
13741 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13742
13743
13744 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13745
13746     fi
13747
13748         POSUB=po
13749   fi
13750
13751
13752
13753     INTLLIBS="$LIBINTL"
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766           am_save_CPPFLAGS="$CPPFLAGS"
13767
13768   for element in $INCICONV; do
13769     haveit=
13770     for x in $CPPFLAGS; do
13771
13772   acl_save_prefix="$prefix"
13773   prefix="$acl_final_prefix"
13774   acl_save_exec_prefix="$exec_prefix"
13775   exec_prefix="$acl_final_exec_prefix"
13776   eval x=\"$x\"
13777   exec_prefix="$acl_save_exec_prefix"
13778   prefix="$acl_save_prefix"
13779
13780       if test "X$x" = "X$element"; then
13781         haveit=yes
13782         break
13783       fi
13784     done
13785     if test -z "$haveit"; then
13786       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13787     fi
13788   done
13789
13790
13791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13792 $as_echo_n "checking for iconv... " >&6; }
13793 if test "${am_cv_func_iconv+set}" = set; then :
13794   $as_echo_n "(cached) " >&6
13795 else
13796
13797     am_cv_func_iconv="no, consider installing GNU libiconv"
13798     am_cv_lib_iconv=no
13799     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h.  */
13801 #include <stdlib.h>
13802 #include <iconv.h>
13803 int
13804 main ()
13805 {
13806 iconv_t cd = iconv_open("","");
13807        iconv(cd,NULL,NULL,NULL,NULL);
13808        iconv_close(cd);
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"; then :
13814   am_cv_func_iconv=yes
13815 fi
13816 rm -f core conftest.err conftest.$ac_objext \
13817     conftest$ac_exeext conftest.$ac_ext
13818     if test "$am_cv_func_iconv" != yes; then
13819       am_save_LIBS="$LIBS"
13820       LIBS="$LIBS $LIBICONV"
13821       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h.  */
13823 #include <stdlib.h>
13824 #include <iconv.h>
13825 int
13826 main ()
13827 {
13828 iconv_t cd = iconv_open("","");
13829          iconv(cd,NULL,NULL,NULL,NULL);
13830          iconv_close(cd);
13831   ;
13832   return 0;
13833 }
13834 _ACEOF
13835 if ac_fn_c_try_link "$LINENO"; then :
13836   am_cv_lib_iconv=yes
13837         am_cv_func_iconv=yes
13838 fi
13839 rm -f core conftest.err conftest.$ac_objext \
13840     conftest$ac_exeext conftest.$ac_ext
13841       LIBS="$am_save_LIBS"
13842     fi
13843
13844 fi
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13846 $as_echo "$am_cv_func_iconv" >&6; }
13847   if test "$am_cv_func_iconv" = yes; then
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13849 $as_echo_n "checking for working iconv... " >&6; }
13850 if test "${am_cv_func_iconv_works+set}" = set; then :
13851   $as_echo_n "(cached) " >&6
13852 else
13853
13854             am_save_LIBS="$LIBS"
13855       if test $am_cv_lib_iconv = yes; then
13856         LIBS="$LIBS $LIBICONV"
13857       fi
13858       if test "$cross_compiling" = yes; then :
13859   case "$host_os" in
13860            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13861            *)            am_cv_func_iconv_works="guessing yes" ;;
13862          esac
13863 else
13864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h.  */
13866
13867 #include <iconv.h>
13868 #include <string.h>
13869 int main ()
13870 {
13871   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13872      returns.  */
13873   {
13874     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13875     if (cd_utf8_to_88591 != (iconv_t)(-1))
13876       {
13877         static const char input[] = "\342\202\254"; /* EURO SIGN */
13878         char buf[10];
13879         const char *inptr = input;
13880         size_t inbytesleft = strlen (input);
13881         char *outptr = buf;
13882         size_t outbytesleft = sizeof (buf);
13883         size_t res = iconv (cd_utf8_to_88591,
13884                             (char **) &inptr, &inbytesleft,
13885                             &outptr, &outbytesleft);
13886         if (res == 0)
13887           return 1;
13888       }
13889   }
13890 #if 0 /* This bug could be worked around by the caller.  */
13891   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13892   {
13893     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13894     if (cd_88591_to_utf8 != (iconv_t)(-1))
13895       {
13896         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13897         char buf[50];
13898         const char *inptr = input;
13899         size_t inbytesleft = strlen (input);
13900         char *outptr = buf;
13901         size_t outbytesleft = sizeof (buf);
13902         size_t res = iconv (cd_88591_to_utf8,
13903                             (char **) &inptr, &inbytesleft,
13904                             &outptr, &outbytesleft);
13905         if ((int)res > 0)
13906           return 1;
13907       }
13908   }
13909 #endif
13910   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13911      provided.  */
13912   if (/* Try standardized names.  */
13913       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13914       /* Try IRIX, OSF/1 names.  */
13915       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13916       /* Try AIX names.  */
13917       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13918       /* Try HP-UX names.  */
13919       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13920     return 1;
13921   return 0;
13922 }
13923 _ACEOF
13924 if ac_fn_c_try_run "$LINENO"; then :
13925   am_cv_func_iconv_works=yes
13926 else
13927   am_cv_func_iconv_works=no
13928 fi
13929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13930   conftest.$ac_objext conftest.beam conftest.$ac_ext
13931 fi
13932
13933       LIBS="$am_save_LIBS"
13934
13935 fi
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13937 $as_echo "$am_cv_func_iconv_works" >&6; }
13938     case "$am_cv_func_iconv_works" in
13939       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13940       *)   am_func_iconv=yes ;;
13941     esac
13942   else
13943     am_func_iconv=no am_cv_lib_iconv=no
13944   fi
13945   if test "$am_func_iconv" = yes; then
13946
13947 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13948
13949   fi
13950   if test "$am_cv_lib_iconv" = yes; then
13951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13952 $as_echo_n "checking how to link with libiconv... " >&6; }
13953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13954 $as_echo "$LIBICONV" >&6; }
13955   else
13956             CPPFLAGS="$am_save_CPPFLAGS"
13957     LIBICONV=
13958     LTLIBICONV=
13959   fi
13960
13961
13962
13963   if test "$am_cv_func_iconv" = yes; then
13964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13965 $as_echo_n "checking for iconv declaration... " >&6; }
13966     if test "${am_cv_proto_iconv+set}" = set; then :
13967   $as_echo_n "(cached) " >&6
13968 else
13969
13970       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h.  */
13972
13973 #include <stdlib.h>
13974 #include <iconv.h>
13975 extern
13976 #ifdef __cplusplus
13977 "C"
13978 #endif
13979 #if defined(__STDC__) || defined(__cplusplus)
13980 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13981 #else
13982 size_t iconv();
13983 #endif
13984
13985 int
13986 main ()
13987 {
13988
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 if ac_fn_c_try_compile "$LINENO"; then :
13994   am_cv_proto_iconv_arg1=""
13995 else
13996   am_cv_proto_iconv_arg1="const"
13997 fi
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14000 fi
14001
14002     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14004          }$am_cv_proto_iconv" >&5
14005 $as_echo "${ac_t:-
14006          }$am_cv_proto_iconv" >&6; }
14007
14008 cat >>confdefs.h <<_ACEOF
14009 #define ICONV_CONST $am_cv_proto_iconv_arg1
14010 _ACEOF
14011
14012   fi
14013
14014  # If set to t, that means we are running in a shell under Emacs.
14015  # If you have an Emacs named "t", then use the full path.
14016  test x"$EMACS" = xt && EMACS=
14017  for ac_prog in emacs xemacs
14018 do
14019   # Extract the first word of "$ac_prog", so it can be a program name with args.
14020 set dummy $ac_prog; ac_word=$2
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14022 $as_echo_n "checking for $ac_word... " >&6; }
14023 if test "${ac_cv_prog_EMACS+set}" = set; then :
14024   $as_echo_n "(cached) " >&6
14025 else
14026   if test -n "$EMACS"; then
14027   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
14028 else
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14031 do
14032   IFS=$as_save_IFS
14033   test -z "$as_dir" && as_dir=.
14034     for ac_exec_ext in '' $ac_executable_extensions; do
14035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14036     ac_cv_prog_EMACS="$ac_prog"
14037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14038     break 2
14039   fi
14040 done
14041   done
14042 IFS=$as_save_IFS
14043
14044 fi
14045 fi
14046 EMACS=$ac_cv_prog_EMACS
14047 if test -n "$EMACS"; then
14048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
14049 $as_echo "$EMACS" >&6; }
14050 else
14051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14052 $as_echo "no" >&6; }
14053 fi
14054
14055
14056   test -n "$EMACS" && break
14057 done
14058 test -n "$EMACS" || EMACS="no"
14059
14060
14061
14062
14063 # Check whether --with-lispdir was given.
14064 if test "${with_lispdir+set}" = set; then :
14065   withval=$with_lispdir;  lispdir="$withval"
14066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
14067 $as_echo_n "checking where .elc files should go... " >&6; }
14068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
14069 $as_echo "$lispdir" >&6; }
14070 else
14071
14072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
14073 $as_echo_n "checking where .elc files should go... " >&6; }
14074 if test "${am_cv_lispdir+set}" = set; then :
14075   $as_echo_n "(cached) " >&6
14076 else
14077
14078    if test $EMACS != "no"; then
14079      if test x${lispdir+set} != xset; then
14080   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
14081   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
14082   #  which is non-obvious for non-emacs users.
14083   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
14084   #  emacsen earlier and avoid running this altogether.
14085   { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
14086   ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
14087   ac_status=$?
14088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14089   test $ac_status = 0; }
14090         am_cv_lispdir=`sed -n \
14091        -e 's,/$,,' \
14092        -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
14093        -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
14094        conftest.out`
14095        rm conftest.out
14096      fi
14097    fi
14098    test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
14099
14100 fi
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
14102 $as_echo "$am_cv_lispdir" >&6; }
14103   lispdir="$am_cv_lispdir"
14104
14105 fi
14106
14107
14108
14109
14110 if test "$am_cv_func_iconv" != "yes"; then
14111   { $as_echo "$as_me:${as_lineno-$LINENO}:
14112 ***
14113
14114 Your system does not have iconv().  The iconv() function is not
14115 strictly required by the source code.  However, that may change in
14116 the future, unless you report that this may be a problem for you.
14117
14118 Please report this to $PACKAGE_BUGREPORT.
14119
14120 ***" >&5
14121 $as_echo "$as_me:
14122 ***
14123
14124 Your system does not have iconv().  The iconv() function is not
14125 strictly required by the source code.  However, that may change in
14126 the future, unless you report that this may be a problem for you.
14127
14128 Please report this to $PACKAGE_BUGREPORT.
14129
14130 ***" >&6;}
14131 fi
14132
14133 # Checks for header files.
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14135 $as_echo_n "checking for ANSI C header files... " >&6; }
14136 if test "${ac_cv_header_stdc+set}" = set; then :
14137   $as_echo_n "(cached) " >&6
14138 else
14139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h.  */
14141 #include <stdlib.h>
14142 #include <stdarg.h>
14143 #include <string.h>
14144 #include <float.h>
14145
14146 int
14147 main ()
14148 {
14149
14150   ;
14151   return 0;
14152 }
14153 _ACEOF
14154 if ac_fn_c_try_compile "$LINENO"; then :
14155   ac_cv_header_stdc=yes
14156 else
14157   ac_cv_header_stdc=no
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160
14161 if test $ac_cv_header_stdc = yes; then
14162   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h.  */
14165 #include <string.h>
14166
14167 _ACEOF
14168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14169   $EGREP "memchr" >/dev/null 2>&1; then :
14170
14171 else
14172   ac_cv_header_stdc=no
14173 fi
14174 rm -f conftest*
14175
14176 fi
14177
14178 if test $ac_cv_header_stdc = yes; then
14179   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h.  */
14182 #include <stdlib.h>
14183
14184 _ACEOF
14185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14186   $EGREP "free" >/dev/null 2>&1; then :
14187
14188 else
14189   ac_cv_header_stdc=no
14190 fi
14191 rm -f conftest*
14192
14193 fi
14194
14195 if test $ac_cv_header_stdc = yes; then
14196   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14197   if test "$cross_compiling" = yes; then :
14198   :
14199 else
14200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h.  */
14202 #include <ctype.h>
14203 #include <stdlib.h>
14204 #if ((' ' & 0x0FF) == 0x020)
14205 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14206 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14207 #else
14208 # define ISLOWER(c) \
14209                    (('a' <= (c) && (c) <= 'i') \
14210                      || ('j' <= (c) && (c) <= 'r') \
14211                      || ('s' <= (c) && (c) <= 'z'))
14212 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14213 #endif
14214
14215 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14216 int
14217 main ()
14218 {
14219   int i;
14220   for (i = 0; i < 256; i++)
14221     if (XOR (islower (i), ISLOWER (i))
14222         || toupper (i) != TOUPPER (i))
14223       return 2;
14224   return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_c_try_run "$LINENO"; then :
14228
14229 else
14230   ac_cv_header_stdc=no
14231 fi
14232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14233   conftest.$ac_objext conftest.beam conftest.$ac_ext
14234 fi
14235
14236 fi
14237 fi
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14239 $as_echo "$ac_cv_header_stdc" >&6; }
14240 if test $ac_cv_header_stdc = yes; then
14241
14242 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14243
14244 fi
14245
14246
14247 # For gnulib stuff in gl/.
14248
14249
14250
14251
14252
14253
14254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
14255 $as_echo_n "checking for preferred C# implementation... " >&6; }
14256   # Check whether --enable-csharp was given.
14257 if test "${enable_csharp+set}" = set; then :
14258   enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
14259 else
14260   CSHARP_CHOICE=any
14261 fi
14262
14263
14264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
14265 $as_echo "$CSHARP_CHOICE" >&6; }
14266   case "$CSHARP_CHOICE" in
14267     pnet)
14268
14269 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
14270
14271       ;;
14272     mono)
14273
14274 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
14275
14276       ;;
14277   esac
14278
14279
14280
14281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
14282 $as_echo_n "checking for C# compiler... " >&6; }
14283   HAVE_CSHARPCOMP=1
14284         # Extract the first word of "cscc", so it can be a program name with args.
14285 set dummy cscc; ac_word=$2
14286 :
14287 if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then :
14288   $as_echo_n "(cached) " >&6
14289 else
14290   if test -n "$HAVE_CSCC_IN_PATH"; then
14291   ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
14292 else
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296   IFS=$as_save_IFS
14297   test -z "$as_dir" && as_dir=.
14298     for ac_exec_ext in '' $ac_executable_extensions; do
14299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14300     ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
14301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302     break 2
14303   fi
14304 done
14305   done
14306 IFS=$as_save_IFS
14307
14308 fi
14309 fi
14310 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
14311 if test -n "$HAVE_CSCC_IN_PATH"; then
14312   :
14313 else
14314   :
14315 fi
14316
14317
14318   # Extract the first word of "mcs", so it can be a program name with args.
14319 set dummy mcs; ac_word=$2
14320 :
14321 if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then :
14322   $as_echo_n "(cached) " >&6
14323 else
14324   if test -n "$HAVE_MCS_IN_PATH"; then
14325   ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
14326 else
14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328 for as_dir in $PATH
14329 do
14330   IFS=$as_save_IFS
14331   test -z "$as_dir" && as_dir=.
14332     for ac_exec_ext in '' $ac_executable_extensions; do
14333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14334     ac_cv_prog_HAVE_MCS_IN_PATH="yes"
14335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14336     break 2
14337   fi
14338 done
14339   done
14340 IFS=$as_save_IFS
14341
14342 fi
14343 fi
14344 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
14345 if test -n "$HAVE_MCS_IN_PATH"; then
14346   :
14347 else
14348   :
14349 fi
14350
14351
14352   # Extract the first word of "csc", so it can be a program name with args.
14353 set dummy csc; ac_word=$2
14354 :
14355 if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then :
14356   $as_echo_n "(cached) " >&6
14357 else
14358   if test -n "$HAVE_CSC_IN_PATH"; then
14359   ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
14360 else
14361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14363 do
14364   IFS=$as_save_IFS
14365   test -z "$as_dir" && as_dir=.
14366     for ac_exec_ext in '' $ac_executable_extensions; do
14367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14368     ac_cv_prog_HAVE_CSC_IN_PATH="yes"
14369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14370     break 2
14371   fi
14372 done
14373   done
14374 IFS=$as_save_IFS
14375
14376 fi
14377 fi
14378 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
14379 if test -n "$HAVE_CSC_IN_PATH"; then
14380   :
14381 else
14382   :
14383 fi
14384
14385
14386         for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
14387     case "$impl" in
14388       pnet)
14389         if test -n "$HAVE_CSCC_IN_PATH" \
14390            && cscc --version >/dev/null 2>/dev/null \
14391            && (
14392              # See if pnetlib is well installed.
14393              echo 'class ConfTest { static void Main() { } }' > conftest.cs
14394              cscc -o conftest.exe conftest.cs 2>/dev/null
14395              error=$?
14396              rm -f conftest.cs conftest.exe
14397              exit $error
14398             ); then
14399           HAVE_CSCC=1
14400           ac_result="cscc"
14401           break
14402         fi
14403         ;;
14404       mono)
14405         if test -n "$HAVE_MCS_IN_PATH" \
14406            && mcs --version >/dev/null 2>/dev/null \
14407            && mcs --version 2>/dev/null | grep Mono >/dev/null; then
14408           HAVE_MCS=1
14409           ac_result="mcs"
14410           break
14411         fi
14412         ;;
14413       sscli)
14414         if test -n "$HAVE_CSC_IN_PATH" \
14415            && csc -help >/dev/null 2>/dev/null \
14416            && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
14417           HAVE_CSC=1
14418           ac_result="csc"
14419           break
14420         fi
14421         ;;
14422       no)
14423         HAVE_CSHARPCOMP=
14424         ac_result="no"
14425         break
14426         ;;
14427     esac
14428   done
14429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
14430 $as_echo "$ac_result" >&6; }
14431
14432
14433
14434     if test -z "${CSHARPCOMPFLAGS+set}"; then
14435     CSHARPCOMPFLAGS="-O -g"
14436   fi
14437
14438
14439
14440
14441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14442 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14443 if test "${gl_cv_have_include_next+set}" = set; then :
14444   $as_echo_n "(cached) " >&6
14445 else
14446   rm -rf conftestd1a conftestd1b conftestd2
14447      mkdir conftestd1a conftestd1b conftestd2
14448                                                   cat <<EOF > conftestd1a/conftest.h
14449 #define DEFINED_IN_CONFTESTD1
14450 #include_next <conftest.h>
14451 #ifdef DEFINED_IN_CONFTESTD2
14452 int foo;
14453 #else
14454 #error "include_next doesn't work"
14455 #endif
14456 EOF
14457      cat <<EOF > conftestd1b/conftest.h
14458 #define DEFINED_IN_CONFTESTD1
14459 #include <stdio.h>
14460 #include_next <conftest.h>
14461 #ifdef DEFINED_IN_CONFTESTD2
14462 int foo;
14463 #else
14464 #error "include_next doesn't work"
14465 #endif
14466 EOF
14467      cat <<EOF > conftestd2/conftest.h
14468 #ifndef DEFINED_IN_CONFTESTD1
14469 #error "include_next test doesn't work"
14470 #endif
14471 #define DEFINED_IN_CONFTESTD2
14472 EOF
14473      gl_save_CPPFLAGS="$CPPFLAGS"
14474      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h.  */
14477 #include <conftest.h>
14478 _ACEOF
14479 if ac_fn_c_try_compile "$LINENO"; then :
14480   gl_cv_have_include_next=yes
14481 else
14482   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14483         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h.  */
14485 #include <conftest.h>
14486 _ACEOF
14487 if ac_fn_c_try_compile "$LINENO"; then :
14488   gl_cv_have_include_next=buggy
14489 else
14490   gl_cv_have_include_next=no
14491 fi
14492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496      CPPFLAGS="$gl_save_CPPFLAGS"
14497      rm -rf conftestd1a conftestd1b conftestd2
14498
14499 fi
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14501 $as_echo "$gl_cv_have_include_next" >&6; }
14502   PRAGMA_SYSTEM_HEADER=
14503   if test $gl_cv_have_include_next = yes; then
14504     INCLUDE_NEXT=include_next
14505     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14506     if test -n "$GCC"; then
14507       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14508     fi
14509   else
14510     if test $gl_cv_have_include_next = buggy; then
14511       INCLUDE_NEXT=include
14512       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14513     else
14514       INCLUDE_NEXT=include
14515       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14516     fi
14517   fi
14518
14519
14520
14521
14522
14523
14524
14525   for ac_header in $ac_header_list
14526 do :
14527   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14529 "
14530 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14531   cat >>confdefs.h <<_ACEOF
14532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14533 _ACEOF
14534
14535 fi
14536
14537 done
14538
14539
14540
14541
14542
14543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
14544 $as_echo_n "checking for complete errno.h... " >&6; }
14545 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
14546   $as_echo_n "(cached) " >&6
14547 else
14548
14549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h.  */
14551
14552 #include <errno.h>
14553 #if !defined ENOMSG
14554 booboo
14555 #endif
14556 #if !defined EIDRM
14557 booboo
14558 #endif
14559 #if !defined ENOLINK
14560 booboo
14561 #endif
14562 #if !defined EPROTO
14563 booboo
14564 #endif
14565 #if !defined EMULTIHOP
14566 booboo
14567 #endif
14568 #if !defined EBADMSG
14569 booboo
14570 #endif
14571 #if !defined EOVERFLOW
14572 booboo
14573 #endif
14574 #if !defined ENOTSUP
14575 booboo
14576 #endif
14577 #if !defined ECANCELED
14578 booboo
14579 #endif
14580
14581 _ACEOF
14582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14583   $EGREP "booboo" >/dev/null 2>&1; then :
14584   gl_cv_header_errno_h_complete=no
14585 else
14586   gl_cv_header_errno_h_complete=yes
14587 fi
14588 rm -f conftest*
14589
14590
14591 fi
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
14593 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
14594   if test $gl_cv_header_errno_h_complete = yes; then
14595     ERRNO_H=''
14596   else
14597
14598
14599
14600
14601
14602
14603      if test $gl_cv_have_include_next = yes; then
14604        gl_cv_next_errno_h='<'errno.h'>'
14605      else
14606        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
14607 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
14608 if test "${gl_cv_next_errno_h+set}" = set; then :
14609   $as_echo_n "(cached) " >&6
14610 else
14611
14612           if test $ac_cv_header_errno_h = yes; then
14613             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h.  */
14615 #include <errno.h>
14616
14617 _ACEOF
14618                                                                     case "$host_os" in
14619               aix*) gl_absname_cpp="$ac_cpp -C" ;;
14620               *)    gl_absname_cpp="$ac_cpp" ;;
14621             esac
14622                                     gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14623                sed -n '\#/errno.h#{
14624                  s#.*"\(.*/errno.h\)".*#\1#
14625                  s#^/[^/]#//&#
14626                  p
14627                  q
14628                }'`'"'
14629           else
14630             gl_cv_next_errno_h='<'errno.h'>'
14631           fi
14632
14633 fi
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
14635 $as_echo "$gl_cv_next_errno_h" >&6; }
14636      fi
14637      NEXT_ERRNO_H=$gl_cv_next_errno_h
14638
14639      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14640        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14641        gl_next_as_first_directive='<'errno.h'>'
14642      else
14643        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14644        gl_next_as_first_directive=$gl_cv_next_errno_h
14645      fi
14646      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
14647
14648
14649
14650     ERRNO_H='errno.h'
14651   fi
14652
14653
14654   if test -n "$ERRNO_H"; then
14655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
14656 $as_echo_n "checking for EMULTIHOP value... " >&6; }
14657 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
14658   $as_echo_n "(cached) " >&6
14659 else
14660
14661       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h.  */
14663
14664 #include <errno.h>
14665 #ifdef EMULTIHOP
14666 yes
14667 #endif
14668
14669 _ACEOF
14670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14671   $EGREP "yes" >/dev/null 2>&1; then :
14672   gl_cv_header_errno_h_EMULTIHOP=yes
14673 else
14674   gl_cv_header_errno_h_EMULTIHOP=no
14675 fi
14676 rm -f conftest*
14677
14678       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
14679         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h.  */
14681
14682 #define _XOPEN_SOURCE_EXTENDED 1
14683 #include <errno.h>
14684 #ifdef EMULTIHOP
14685 yes
14686 #endif
14687
14688 _ACEOF
14689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14690   $EGREP "yes" >/dev/null 2>&1; then :
14691   gl_cv_header_errno_h_EMULTIHOP=hidden
14692 fi
14693 rm -f conftest*
14694
14695         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
14696                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
14697 #define _XOPEN_SOURCE_EXTENDED 1
14698 #include <errno.h>
14699 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14700 #include <stdio.h>
14701 #include <stdlib.h>
14702 "; then :
14703
14704 fi
14705
14706         fi
14707       fi
14708
14709 fi
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
14711 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
14712     case $gl_cv_header_errno_h_EMULTIHOP in
14713       yes | no)
14714         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
14715         ;;
14716       *)
14717         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
14718         ;;
14719     esac
14720
14721
14722   fi
14723
14724
14725   if test -n "$ERRNO_H"; then
14726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
14727 $as_echo_n "checking for ENOLINK value... " >&6; }
14728 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
14729   $as_echo_n "(cached) " >&6
14730 else
14731
14732       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h.  */
14734
14735 #include <errno.h>
14736 #ifdef ENOLINK
14737 yes
14738 #endif
14739
14740 _ACEOF
14741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14742   $EGREP "yes" >/dev/null 2>&1; then :
14743   gl_cv_header_errno_h_ENOLINK=yes
14744 else
14745   gl_cv_header_errno_h_ENOLINK=no
14746 fi
14747 rm -f conftest*
14748
14749       if test $gl_cv_header_errno_h_ENOLINK = no; then
14750         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h.  */
14752
14753 #define _XOPEN_SOURCE_EXTENDED 1
14754 #include <errno.h>
14755 #ifdef ENOLINK
14756 yes
14757 #endif
14758
14759 _ACEOF
14760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14761   $EGREP "yes" >/dev/null 2>&1; then :
14762   gl_cv_header_errno_h_ENOLINK=hidden
14763 fi
14764 rm -f conftest*
14765
14766         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
14767                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
14768 #define _XOPEN_SOURCE_EXTENDED 1
14769 #include <errno.h>
14770 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14771 #include <stdio.h>
14772 #include <stdlib.h>
14773 "; then :
14774
14775 fi
14776
14777         fi
14778       fi
14779
14780 fi
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
14782 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
14783     case $gl_cv_header_errno_h_ENOLINK in
14784       yes | no)
14785         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
14786         ;;
14787       *)
14788         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
14789         ;;
14790     esac
14791
14792
14793   fi
14794
14795
14796   if test -n "$ERRNO_H"; then
14797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
14798 $as_echo_n "checking for EOVERFLOW value... " >&6; }
14799 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
14800   $as_echo_n "(cached) " >&6
14801 else
14802
14803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h.  */
14805
14806 #include <errno.h>
14807 #ifdef EOVERFLOW
14808 yes
14809 #endif
14810
14811 _ACEOF
14812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14813   $EGREP "yes" >/dev/null 2>&1; then :
14814   gl_cv_header_errno_h_EOVERFLOW=yes
14815 else
14816   gl_cv_header_errno_h_EOVERFLOW=no
14817 fi
14818 rm -f conftest*
14819
14820       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
14821         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h.  */
14823
14824 #define _XOPEN_SOURCE_EXTENDED 1
14825 #include <errno.h>
14826 #ifdef EOVERFLOW
14827 yes
14828 #endif
14829
14830 _ACEOF
14831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14832   $EGREP "yes" >/dev/null 2>&1; then :
14833   gl_cv_header_errno_h_EOVERFLOW=hidden
14834 fi
14835 rm -f conftest*
14836
14837         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
14838                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
14839 #define _XOPEN_SOURCE_EXTENDED 1
14840 #include <errno.h>
14841 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
14842 #include <stdio.h>
14843 #include <stdlib.h>
14844 "; then :
14845
14846 fi
14847
14848         fi
14849       fi
14850
14851 fi
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
14853 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
14854     case $gl_cv_header_errno_h_EOVERFLOW in
14855       yes | no)
14856         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
14857         ;;
14858       *)
14859         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
14860         ;;
14861     esac
14862
14863
14864   fi
14865
14866
14867 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
14868 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
14869   ac_have_decl=1
14870 else
14871   ac_have_decl=0
14872 fi
14873
14874 cat >>confdefs.h <<_ACEOF
14875 #define HAVE_DECL_STRERROR_R $ac_have_decl
14876 _ACEOF
14877
14878 for ac_func in strerror_r
14879 do :
14880   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
14881 if test "x$ac_cv_func_strerror_r" = x""yes; then :
14882   cat >>confdefs.h <<_ACEOF
14883 #define HAVE_STRERROR_R 1
14884 _ACEOF
14885
14886 fi
14887 done
14888
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
14890 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
14891 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
14892   $as_echo_n "(cached) " >&6
14893 else
14894
14895     ac_cv_func_strerror_r_char_p=no
14896     if test $ac_cv_have_decl_strerror_r = yes; then
14897       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h.  */
14899 $ac_includes_default
14900 int
14901 main ()
14902 {
14903
14904           char buf[100];
14905           char x = *strerror_r (0, buf, sizeof buf);
14906           char *p = strerror_r (0, buf, sizeof buf);
14907           return !p || x;
14908
14909   ;
14910   return 0;
14911 }
14912 _ACEOF
14913 if ac_fn_c_try_compile "$LINENO"; then :
14914   ac_cv_func_strerror_r_char_p=yes
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917     else
14918       # strerror_r is not declared.  Choose between
14919       # systems that have relatively inaccessible declarations for the
14920       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
14921       # former has a strerror_r that returns char*, while the latter
14922       # has a strerror_r that returns `int'.
14923       # This test should segfault on the DEC system.
14924       if test "$cross_compiling" = yes; then :
14925   :
14926 else
14927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h.  */
14929 $ac_includes_default
14930         extern char *strerror_r ();
14931 int
14932 main ()
14933 {
14934 char buf[100];
14935           char x = *strerror_r (0, buf, sizeof buf);
14936           return ! isalpha (x);
14937   ;
14938   return 0;
14939 }
14940 _ACEOF
14941 if ac_fn_c_try_run "$LINENO"; then :
14942   ac_cv_func_strerror_r_char_p=yes
14943 fi
14944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14945   conftest.$ac_objext conftest.beam conftest.$ac_ext
14946 fi
14947
14948     fi
14949
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
14952 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14953 if test $ac_cv_func_strerror_r_char_p = yes; then
14954
14955 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
14956
14957 fi
14958
14959
14960   XGETTEXT_EXTRA_OPTIONS=
14961
14962
14963   if test -z "$GETOPT_H"; then
14964     for ac_header in getopt.h
14965 do :
14966   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14967 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14968   cat >>confdefs.h <<_ACEOF
14969 #define HAVE_GETOPT_H 1
14970 _ACEOF
14971
14972 else
14973   GETOPT_H=getopt.h
14974 fi
14975
14976 done
14977
14978   fi
14979
14980   if test -z "$GETOPT_H"; then
14981     for ac_func in getopt_long_only
14982 do :
14983   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14984 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14985   cat >>confdefs.h <<_ACEOF
14986 #define HAVE_GETOPT_LONG_ONLY 1
14987 _ACEOF
14988
14989 else
14990   GETOPT_H=getopt.h
14991 fi
14992 done
14993
14994   fi
14995
14996       if test -z "$GETOPT_H"; then
14997     ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
14998 "
14999 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
15000   GETOPT_H=getopt.h
15001 fi
15002
15003   fi
15004
15005       if test -z "$GETOPT_H"; then
15006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
15007 $as_echo_n "checking for working GNU getopt function... " >&6; }
15008 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
15009   $as_echo_n "(cached) " >&6
15010 else
15011   if test "$cross_compiling" = yes; then :
15012                          ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
15013 "
15014 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
15015   gl_cv_func_gnu_getopt=no
15016 else
15017   gl_cv_func_gnu_getopt=yes
15018 fi
15019
15020 else
15021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h.  */
15023 #include <getopt.h>
15024 int
15025 main ()
15026 {
15027
15028              char *myargv[3];
15029              myargv[0] = "conftest";
15030              myargv[1] = "-+";
15031              myargv[2] = 0;
15032              return getopt (2, myargv, "+a") != '?';
15033
15034   ;
15035   return 0;
15036 }
15037 _ACEOF
15038 if ac_fn_c_try_run "$LINENO"; then :
15039   gl_cv_func_gnu_getopt=yes
15040 else
15041   gl_cv_func_gnu_getopt=no
15042 fi
15043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15044   conftest.$ac_objext conftest.beam conftest.$ac_ext
15045 fi
15046
15047 fi
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
15049 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
15050     if test "$gl_cv_func_gnu_getopt" = "no"; then
15051       GETOPT_H=getopt.h
15052     fi
15053   fi
15054
15055 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
15056 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
15057   ac_have_decl=1
15058 else
15059   ac_have_decl=0
15060 fi
15061
15062 cat >>confdefs.h <<_ACEOF
15063 #define HAVE_DECL_GETENV $ac_have_decl
15064 _ACEOF
15065
15066
15067
15068
15069   GNULIB_MEMMEM=0;
15070   GNULIB_MEMPCPY=0;
15071   GNULIB_MEMRCHR=0;
15072   GNULIB_RAWMEMCHR=0;
15073   GNULIB_STPCPY=0;
15074   GNULIB_STPNCPY=0;
15075   GNULIB_STRCHRNUL=0;
15076   GNULIB_STRDUP=0;
15077   GNULIB_STRNDUP=0;
15078   GNULIB_STRNLEN=0;
15079   GNULIB_STRPBRK=0;
15080   GNULIB_STRSEP=0;
15081   GNULIB_STRSTR=0;
15082   GNULIB_STRCASESTR=0;
15083   GNULIB_STRTOK_R=0;
15084   GNULIB_MBSLEN=0;
15085   GNULIB_MBSNLEN=0;
15086   GNULIB_MBSCHR=0;
15087   GNULIB_MBSRCHR=0;
15088   GNULIB_MBSSTR=0;
15089   GNULIB_MBSCASECMP=0;
15090   GNULIB_MBSNCASECMP=0;
15091   GNULIB_MBSPCASECMP=0;
15092   GNULIB_MBSCASESTR=0;
15093   GNULIB_MBSCSPN=0;
15094   GNULIB_MBSPBRK=0;
15095   GNULIB_MBSSPN=0;
15096   GNULIB_MBSSEP=0;
15097   GNULIB_MBSTOK_R=0;
15098   GNULIB_STRERROR=0;
15099   GNULIB_STRSIGNAL=0;
15100   GNULIB_STRVERSCMP=0;
15101     HAVE_DECL_MEMMEM=1;
15102   HAVE_MEMPCPY=1;
15103   HAVE_DECL_MEMRCHR=1;
15104   HAVE_RAWMEMCHR=1;
15105   HAVE_STPCPY=1;
15106   HAVE_STPNCPY=1;
15107   HAVE_STRCHRNUL=1;
15108   HAVE_DECL_STRDUP=1;
15109   HAVE_STRNDUP=1;
15110   HAVE_DECL_STRNDUP=1;
15111   HAVE_DECL_STRNLEN=1;
15112   HAVE_STRPBRK=1;
15113   HAVE_STRSEP=1;
15114   HAVE_STRCASESTR=1;
15115   HAVE_DECL_STRTOK_R=1;
15116   HAVE_DECL_STRERROR=1;
15117   HAVE_DECL_STRSIGNAL=1;
15118   HAVE_STRVERSCMP=1;
15119   REPLACE_MEMMEM=0;
15120   REPLACE_STRDUP=0;
15121   REPLACE_STRSTR=0;
15122   REPLACE_STRCASESTR=0;
15123   REPLACE_STRERROR=0;
15124   REPLACE_STRSIGNAL=0;
15125
15126
15127
15128
15129
15130
15131   if test -z "$ERRNO_H"; then
15132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
15133 $as_echo_n "checking for working strerror function... " >&6; }
15134 if test "${gl_cv_func_working_strerror+set}" = set; then :
15135   $as_echo_n "(cached) " >&6
15136 else
15137   if test "$cross_compiling" = yes; then :
15138            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h.  */
15140 #include <string.h>
15141
15142 int
15143 main ()
15144 {
15145 return !*strerror (-2);
15146   ;
15147   return 0;
15148 }
15149 _ACEOF
15150 if ac_fn_c_try_compile "$LINENO"; then :
15151   gl_cv_func_working_strerror=yes
15152 else
15153   gl_cv_func_working_strerror=no
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156
15157 else
15158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h.  */
15160 #include <string.h>
15161
15162 int
15163 main ()
15164 {
15165 return !*strerror (-2);
15166   ;
15167   return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_c_try_run "$LINENO"; then :
15171   gl_cv_func_working_strerror=yes
15172 else
15173   gl_cv_func_working_strerror=no
15174 fi
15175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15176   conftest.$ac_objext conftest.beam conftest.$ac_ext
15177 fi
15178
15179
15180 fi
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
15182 $as_echo "$gl_cv_func_working_strerror" >&6; }
15183     if test $gl_cv_func_working_strerror = no; then
15184                   REPLACE_STRERROR=1
15185     fi
15186   else
15187             REPLACE_STRERROR=1
15188   fi
15189   if test $REPLACE_STRERROR = 1; then
15190
15191   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
15192 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
15193   ac_have_decl=1
15194 else
15195   ac_have_decl=0
15196 fi
15197
15198 cat >>confdefs.h <<_ACEOF
15199 #define HAVE_DECL_STRERROR $ac_have_decl
15200 _ACEOF
15201
15202
15203   if test $ac_cv_header_sys_socket_h != yes; then
15204                     for ac_header in winsock2.h
15205 do :
15206   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15207 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
15208   cat >>confdefs.h <<_ACEOF
15209 #define HAVE_WINSOCK2_H 1
15210 _ACEOF
15211
15212 fi
15213
15214 done
15215
15216   fi
15217
15218   fi
15219
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15221 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15222 if test "${ac_cv_c_restrict+set}" = set; then :
15223   $as_echo_n "(cached) " >&6
15224 else
15225   ac_cv_c_restrict=no
15226    # The order here caters to the fact that C++ does not require restrict.
15227    for ac_kw in __restrict __restrict__ _Restrict restrict; do
15228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h.  */
15230 typedef int * int_ptr;
15231         int foo (int_ptr $ac_kw ip) {
15232         return ip[0];
15233        }
15234 int
15235 main ()
15236 {
15237 int s[1];
15238         int * $ac_kw t = s;
15239         t[0] = 0;
15240         return foo(t)
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 if ac_fn_c_try_compile "$LINENO"; then :
15246   ac_cv_c_restrict=$ac_kw
15247 fi
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249      test "$ac_cv_c_restrict" != no && break
15250    done
15251
15252 fi
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15254 $as_echo "$ac_cv_c_restrict" >&6; }
15255
15256  case $ac_cv_c_restrict in
15257    restrict) ;;
15258    no) $as_echo "#define restrict /**/" >>confdefs.h
15259  ;;
15260    *)  cat >>confdefs.h <<_ACEOF
15261 #define restrict $ac_cv_c_restrict
15262 _ACEOF
15263  ;;
15264  esac
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277      if test $gl_cv_have_include_next = yes; then
15278        gl_cv_next_string_h='<'string.h'>'
15279      else
15280        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15281 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15282 if test "${gl_cv_next_string_h+set}" = set; then :
15283   $as_echo_n "(cached) " >&6
15284 else
15285
15286           if test $ac_cv_header_string_h = yes; then
15287             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h.  */
15289 #include <string.h>
15290
15291 _ACEOF
15292                                                                     case "$host_os" in
15293               aix*) gl_absname_cpp="$ac_cpp -C" ;;
15294               *)    gl_absname_cpp="$ac_cpp" ;;
15295             esac
15296                                     gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15297                sed -n '\#/string.h#{
15298                  s#.*"\(.*/string.h\)".*#\1#
15299                  s#^/[^/]#//&#
15300                  p
15301                  q
15302                }'`'"'
15303           else
15304             gl_cv_next_string_h='<'string.h'>'
15305           fi
15306
15307 fi
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15309 $as_echo "$gl_cv_next_string_h" >&6; }
15310      fi
15311      NEXT_STRING_H=$gl_cv_next_string_h
15312
15313      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15314        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15315        gl_next_as_first_directive='<'string.h'>'
15316      else
15317        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15318        gl_next_as_first_directive=$gl_cv_next_string_h
15319      fi
15320      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
15321
15322
15323
15324
15325
15326   GNULIB_CHOWN=0;
15327   GNULIB_CLOSE=0;
15328   GNULIB_DUP2=0;
15329   GNULIB_ENVIRON=0;
15330   GNULIB_EUIDACCESS=0;
15331   GNULIB_FCHDIR=0;
15332   GNULIB_FSYNC=0;
15333   GNULIB_FTRUNCATE=0;
15334   GNULIB_GETCWD=0;
15335   GNULIB_GETDOMAINNAME=0;
15336   GNULIB_GETDTABLESIZE=0;
15337   GNULIB_GETHOSTNAME=0;
15338   GNULIB_GETLOGIN_R=0;
15339   GNULIB_GETPAGESIZE=0;
15340   GNULIB_GETUSERSHELL=0;
15341   GNULIB_LCHOWN=0;
15342   GNULIB_LINK=0;
15343   GNULIB_LSEEK=0;
15344   GNULIB_READLINK=0;
15345   GNULIB_SLEEP=0;
15346   GNULIB_UNISTD_H_SIGPIPE=0;
15347   GNULIB_WRITE=0;
15348     HAVE_DUP2=1;
15349   HAVE_EUIDACCESS=1;
15350   HAVE_FSYNC=1;
15351   HAVE_FTRUNCATE=1;
15352   HAVE_GETDOMAINNAME=1;
15353   HAVE_GETDTABLESIZE=1;
15354   HAVE_GETHOSTNAME=1;
15355   HAVE_GETPAGESIZE=1;
15356   HAVE_GETUSERSHELL=1;
15357   HAVE_LINK=1;
15358   HAVE_READLINK=1;
15359   HAVE_SLEEP=1;
15360   HAVE_DECL_ENVIRON=1;
15361   HAVE_DECL_GETLOGIN_R=1;
15362   HAVE_OS_H=0;
15363   HAVE_SYS_PARAM_H=0;
15364   REPLACE_CHOWN=0;
15365   REPLACE_CLOSE=0;
15366   REPLACE_FCHDIR=0;
15367   REPLACE_GETCWD=0;
15368   REPLACE_GETPAGESIZE=0;
15369   REPLACE_LCHOWN=0;
15370   REPLACE_LSEEK=0;
15371   REPLACE_WRITE=0;
15372   UNISTD_H_HAVE_WINSOCK2_H=0;
15373
15374
15375
15376
15377    if true; then
15378   GL_COND_LIBTOOL_TRUE=
15379   GL_COND_LIBTOOL_FALSE='#'
15380 else
15381   GL_COND_LIBTOOL_TRUE='#'
15382   GL_COND_LIBTOOL_FALSE=
15383 fi
15384
15385   gl_cond_libtool=true
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395   gl_source_base='gl'
15396
15397   ac_config_files="$ac_config_files csharpcomp.sh:build-aux/csharpcomp.sh.in"
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15414 $as_echo_n "checking for error_at_line... " >&6; }
15415 if test "${ac_cv_lib_error_at_line+set}" = set; then :
15416   $as_echo_n "(cached) " >&6
15417 else
15418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h.  */
15420 #include <error.h>
15421 int
15422 main ()
15423 {
15424 error_at_line (0, 0, "", 0, "an error occurred");
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 if ac_fn_c_try_link "$LINENO"; then :
15430   ac_cv_lib_error_at_line=yes
15431 else
15432   ac_cv_lib_error_at_line=no
15433 fi
15434 rm -f core conftest.err conftest.$ac_objext \
15435     conftest$ac_exeext conftest.$ac_ext
15436 fi
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15438 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15439 if test $ac_cv_lib_error_at_line = no; then
15440
15441
15442
15443
15444
15445
15446
15447
15448   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
15449
15450 fi
15451
15452
15453
15454   :
15455
15456
15457
15458
15459   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
15460
15461
15462
15463   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
15464
15465
15466
15467   if test -n "$GETOPT_H"; then :
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15488
15489
15490   GETOPT_H=getopt.h
15491
15492 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15493
15494
15495
15496
15497
15498
15499
15500 fi
15501
15502
15503
15504   # Autoconf 2.61a.99 and earlier don't support linking a file only
15505   # in VPATH builds.  But since GNUmakefile is for maintainer use
15506   # only, it does not matter if we skip the link with older autoconf.
15507   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
15508   # builds, so use a shell variable to bypass this.
15509   GNUmakefile=GNUmakefile
15510   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
15511
15512
15513
15514   # Extract the first word of "pmccabe", so it can be a program name with args.
15515 set dummy pmccabe; ac_word=$2
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15517 $as_echo_n "checking for $ac_word... " >&6; }
15518 if test "${ac_cv_path_PMCCABE+set}" = set; then :
15519   $as_echo_n "(cached) " >&6
15520 else
15521   case $PMCCABE in
15522   [\\/]* | ?:[\\/]*)
15523   ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
15524   ;;
15525   *)
15526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15527 for as_dir in $PATH
15528 do
15529   IFS=$as_save_IFS
15530   test -z "$as_dir" && as_dir=.
15531     for ac_exec_ext in '' $ac_executable_extensions; do
15532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15533     ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
15534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15535     break 2
15536   fi
15537 done
15538   done
15539 IFS=$as_save_IFS
15540
15541   test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
15542   ;;
15543 esac
15544 fi
15545 PMCCABE=$ac_cv_path_PMCCABE
15546 if test -n "$PMCCABE"; then
15547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
15548 $as_echo "$PMCCABE" >&6; }
15549 else
15550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15551 $as_echo "no" >&6; }
15552 fi
15553
15554
15555
15556
15557   STDARG_H='';
15558   NEXT_STDARG_H='<stdarg.h>';
15559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
15560 $as_echo_n "checking for va_copy... " >&6; }
15561   if test "${gl_cv_func_va_copy+set}" = set; then :
15562   $as_echo_n "(cached) " >&6
15563 else
15564
15565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h.  */
15567 #include <stdarg.h>
15568 int
15569 main ()
15570 {
15571
15572 #ifndef va_copy
15573 void (*func) (va_list, va_list) = va_copy;
15574 #endif
15575
15576   ;
15577   return 0;
15578 }
15579 _ACEOF
15580 if ac_fn_c_try_compile "$LINENO"; then :
15581   gl_cv_func_va_copy=yes
15582 else
15583   gl_cv_func_va_copy=no
15584 fi
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 fi
15587
15588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
15589 $as_echo "$gl_cv_func_va_copy" >&6; }
15590   if test $gl_cv_func_va_copy = no; then
15591                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h.  */
15593 #if defined _AIX && !defined __GNUC__
15594         AIX vaccine
15595        #endif
15596
15597 _ACEOF
15598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599   $EGREP "vaccine" >/dev/null 2>&1; then :
15600   gl_aixcc=yes
15601 else
15602   gl_aixcc=no
15603 fi
15604 rm -f conftest*
15605
15606     if test $gl_aixcc = yes; then
15607             STDARG_H=stdarg.h
15608
15609
15610
15611
15612
15613
15614      if test $gl_cv_have_include_next = yes; then
15615        gl_cv_next_stdarg_h='<'stdarg.h'>'
15616      else
15617        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
15618 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
15619 if test "${gl_cv_next_stdarg_h+set}" = set; then :
15620   $as_echo_n "(cached) " >&6
15621 else
15622
15623           if test $ac_cv_header_stdarg_h = yes; then
15624             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h.  */
15626 #include <stdarg.h>
15627
15628 _ACEOF
15629                                                                     case "$host_os" in
15630               aix*) gl_absname_cpp="$ac_cpp -C" ;;
15631               *)    gl_absname_cpp="$ac_cpp" ;;
15632             esac
15633                                     gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15634                sed -n '\#/stdarg.h#{
15635                  s#.*"\(.*/stdarg.h\)".*#\1#
15636                  s#^/[^/]#//&#
15637                  p
15638                  q
15639                }'`'"'
15640           else
15641             gl_cv_next_stdarg_h='<'stdarg.h'>'
15642           fi
15643
15644 fi
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
15646 $as_echo "$gl_cv_next_stdarg_h" >&6; }
15647      fi
15648      NEXT_STDARG_H=$gl_cv_next_stdarg_h
15649
15650      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15651        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15652        gl_next_as_first_directive='<'stdarg.h'>'
15653      else
15654        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15655        gl_next_as_first_directive=$gl_cv_next_stdarg_h
15656      fi
15657      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
15658
15659
15660
15661             if test "$gl_cv_next_stdarg_h" = '""'; then
15662         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
15663         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
15664       fi
15665     else
15666
15667   saved_as_echo_n="$as_echo_n"
15668   as_echo_n=':'
15669   if test "${gl_cv_func___va_copy+set}" = set; then :
15670   $as_echo_n "(cached) " >&6
15671 else
15672
15673         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h.  */
15675 #include <stdarg.h>
15676 int
15677 main ()
15678 {
15679
15680 #ifndef __va_copy
15681 error, bail out
15682 #endif
15683
15684   ;
15685   return 0;
15686 }
15687 _ACEOF
15688 if ac_fn_c_try_compile "$LINENO"; then :
15689   gl_cv_func___va_copy=yes
15690 else
15691   gl_cv_func___va_copy=no
15692 fi
15693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694 fi
15695
15696   as_echo_n="$saved_as_echo_n"
15697
15698       if test $gl_cv_func___va_copy = yes; then
15699
15700 $as_echo "#define va_copy __va_copy" >>confdefs.h
15701
15702       else
15703
15704
15705 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
15706
15707       fi
15708     fi
15709   fi
15710
15711
15712
15713   if test $REPLACE_STRERROR = 1; then
15714
15715
15716
15717
15718
15719
15720
15721
15722   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
15723
15724
15725 cat >>confdefs.h <<_ACEOF
15726 #define REPLACE_STRERROR $REPLACE_STRERROR
15727 _ACEOF
15728
15729   fi
15730
15731
15732
15733   GNULIB_STRERROR=1
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747      if test $gl_cv_have_include_next = yes; then
15748        gl_cv_next_unistd_h='<'unistd.h'>'
15749      else
15750        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15751 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15752 if test "${gl_cv_next_unistd_h+set}" = set; then :
15753   $as_echo_n "(cached) " >&6
15754 else
15755
15756           if test $ac_cv_header_unistd_h = yes; then
15757             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h.  */
15759 #include <unistd.h>
15760
15761 _ACEOF
15762                                                                     case "$host_os" in
15763               aix*) gl_absname_cpp="$ac_cpp -C" ;;
15764               *)    gl_absname_cpp="$ac_cpp" ;;
15765             esac
15766                                     gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15767                sed -n '\#/unistd.h#{
15768                  s#.*"\(.*/unistd.h\)".*#\1#
15769                  s#^/[^/]#//&#
15770                  p
15771                  q
15772                }'`'"'
15773           else
15774             gl_cv_next_unistd_h='<'unistd.h'>'
15775           fi
15776
15777 fi
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15779 $as_echo "$gl_cv_next_unistd_h" >&6; }
15780      fi
15781      NEXT_UNISTD_H=$gl_cv_next_unistd_h
15782
15783      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15784        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15785        gl_next_as_first_directive='<'unistd.h'>'
15786      else
15787        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15788        gl_next_as_first_directive=$gl_cv_next_unistd_h
15789      fi
15790      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15791
15792
15793
15794
15795
15796   if test $ac_cv_header_unistd_h = yes; then
15797     HAVE_UNISTD_H=1
15798   else
15799     HAVE_UNISTD_H=0
15800   fi
15801
15802
15803
15804 # Check whether --with-packager was given.
15805 if test "${with_packager+set}" = set; then :
15806   withval=$with_packager;       case $withval in
15807         yes|no) ;;
15808         *)
15809 cat >>confdefs.h <<_ACEOF
15810 #define PACKAGE_PACKAGER "$withval"
15811 _ACEOF
15812  ;;
15813       esac
15814
15815 fi
15816
15817
15818
15819 # Check whether --with-packager-version was given.
15820 if test "${with_packager_version+set}" = set; then :
15821   withval=$with_packager_version;       case $withval in
15822         yes|no) ;;
15823         *)
15824 cat >>confdefs.h <<_ACEOF
15825 #define PACKAGE_PACKAGER_VERSION "$withval"
15826 _ACEOF
15827  ;;
15828       esac
15829
15830 fi
15831
15832
15833
15834 # Check whether --with-packager-bug-reports was given.
15835 if test "${with_packager_bug_reports+set}" = set; then :
15836   withval=$with_packager_bug_reports;       case $withval in
15837         yes|no) ;;
15838         *)
15839 cat >>confdefs.h <<_ACEOF
15840 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
15841 _ACEOF
15842  ;;
15843       esac
15844
15845 fi
15846
15847
15848   if test "X$with_packager" = "X" && \
15849      test "X$with_packager_version$with_packager_bug_reports" != "X"
15850   then
15851     as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5
15852   fi
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864   gltests_libdeps=
15865   gltests_ltlibdeps=
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875   gl_source_base='gltests'
15876   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887     REPLACE_ICONV=0;
15888   REPLACE_ICONV_OPEN=0;
15889   REPLACE_ICONV_UTF=0;
15890   ICONV_H='';
15891
15892
15893
15894
15895     gl_cv_c_multiarch=no
15896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h.  */
15898 #ifndef __APPLE_CC__
15899          not a universal capable compiler
15900         #endif
15901         typedef int dummy;
15902
15903 _ACEOF
15904 if ac_fn_c_try_compile "$LINENO"; then :
15905
15906                arch=
15907      prev=
15908      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15909        if test -n "$prev"; then
15910          case $word in
15911            i?86 | x86_64 | ppc | ppc64)
15912              if test -z "$arch" || test "$arch" = "$word"; then
15913                arch="$word"
15914              else
15915                gl_cv_c_multiarch=yes
15916              fi
15917              ;;
15918          esac
15919          prev=
15920        else
15921          if test "x$word" = "x-arch"; then
15922            prev=arch
15923          fi
15924        fi
15925      done
15926
15927 fi
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929   if test $gl_cv_c_multiarch = yes; then
15930
15931 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15932
15933     APPLE_UNIVERSAL_BUILD=1
15934   else
15935     APPLE_UNIVERSAL_BUILD=0
15936   fi
15937
15938
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15940 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15941 if test "${ac_cv_header_stdbool_h+set}" = set; then :
15942   $as_echo_n "(cached) " >&6
15943 else
15944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h.  */
15946
15947           #include <stdbool.h>
15948           #ifndef bool
15949            "error: bool is not defined"
15950           #endif
15951           #ifndef false
15952            "error: false is not defined"
15953           #endif
15954           #if false
15955            "error: false is not 0"
15956           #endif
15957           #ifndef true
15958            "error: true is not defined"
15959           #endif
15960           #if true != 1
15961            "error: true is not 1"
15962           #endif
15963           #ifndef __bool_true_false_are_defined
15964            "error: __bool_true_false_are_defined is not defined"
15965           #endif
15966
15967           struct s { _Bool s: 1; _Bool t; } s;
15968
15969           char a[true == 1 ? 1 : -1];
15970           char b[false == 0 ? 1 : -1];
15971           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15972           char d[(bool) 0.5 == true ? 1 : -1];
15973           bool e = &s;
15974           char f[(_Bool) 0.0 == false ? 1 : -1];
15975           char g[true];
15976           char h[sizeof (_Bool)];
15977           char i[sizeof s.t];
15978           enum { j = false, k = true, l = false * true, m = true * 256 };
15979           _Bool n[m];
15980           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15981           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15982           #if defined __xlc__ || defined __GNUC__
15983            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
15984               reported by James Lemley on 2005-10-05; see
15985               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
15986               This test is not quite right, since xlc is allowed to
15987               reject this program, as the initializer for xlcbug is
15988               not one of the forms that C requires support for.
15989               However, doing the test right would require a run-time
15990               test, and that would make cross-compilation harder.
15991               Let us hope that IBM fixes the xlc bug, and also adds
15992               support for this kind of constant expression.  In the
15993               meantime, this test will reject xlc, which is OK, since
15994               our stdbool.h substitute should suffice.  We also test
15995               this with GCC, where it should work, to detect more
15996               quickly whether someone messes up the test in the
15997               future.  */
15998            char digs[] = "0123456789";
15999            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16000           #endif
16001           /* Catch a bug in an HP-UX C compiler.  See
16002              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16003              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16004            */
16005           _Bool q = true;
16006           _Bool *pq = &q;
16007
16008 int
16009 main ()
16010 {
16011
16012           *pq |= q;
16013           *pq |= ! q;
16014           /* Refer to every declared value, to avoid compiler optimizations.  */
16015           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16016                   + !m + !n + !o + !p + !q + !pq);
16017
16018   ;
16019   return 0;
16020 }
16021 _ACEOF
16022 if ac_fn_c_try_compile "$LINENO"; then :
16023   ac_cv_header_stdbool_h=yes
16024 else
16025   ac_cv_header_stdbool_h=no
16026 fi
16027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 fi
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16030 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16031    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16032 if test "x$ac_cv_type__Bool" = x""yes; then :
16033
16034 cat >>confdefs.h <<_ACEOF
16035 #define HAVE__BOOL 1
16036 _ACEOF
16037
16038
16039 fi
16040
16041    if test $ac_cv_header_stdbool_h = yes; then
16042
16043 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16044
16045    fi
16046
16047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16048 $as_echo_n "checking for long long int... " >&6; }
16049 if test "${ac_cv_type_long_long_int+set}" = set; then :
16050   $as_echo_n "(cached) " >&6
16051 else
16052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h.  */
16054
16055   /* Test preprocessor.  */
16056       #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16057         error in preprocessor;
16058       #endif
16059       #if ! (18446744073709551615ULL <= -1ull)
16060         error in preprocessor;
16061       #endif
16062       /* Test literals.  */
16063       long long int ll = 9223372036854775807ll;
16064       long long int nll = -9223372036854775807LL;
16065       unsigned long long int ull = 18446744073709551615ULL;
16066       /* Test constant expressions.   */
16067       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16068                      ? 1 : -1)];
16069       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16070                      ? 1 : -1)];
16071       int i = 63;
16072 int
16073 main ()
16074 {
16075 /* Test availability of runtime routines for shift and division.  */
16076       long long int llmax = 9223372036854775807ll;
16077       unsigned long long int ullmax = 18446744073709551615ull;
16078       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16079               | (llmax / ll) | (llmax % ll)
16080               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16081               | (ullmax / ull) | (ullmax % ull));
16082   ;
16083   return 0;
16084 }
16085
16086 _ACEOF
16087 if ac_fn_c_try_link "$LINENO"; then :
16088                         if test "$cross_compiling" = yes; then :
16089   ac_cv_type_long_long_int=yes
16090 else
16091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h.  */
16093 #include <limits.h>
16094                #ifndef LLONG_MAX
16095                # define HALF \
16096                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16097                # define LLONG_MAX (HALF - 1 + HALF)
16098                #endif
16099 int
16100 main ()
16101 {
16102 long long int n = 1;
16103                int i;
16104                for (i = 0; ; i++)
16105                  {
16106                    long long int m = n << i;
16107                    if (m >> i != n)
16108                      return 1;
16109                    if (LLONG_MAX / 2 < m)
16110                      break;
16111                  }
16112                return 0;
16113   ;
16114   return 0;
16115 }
16116 _ACEOF
16117 if ac_fn_c_try_run "$LINENO"; then :
16118   ac_cv_type_long_long_int=yes
16119 else
16120   ac_cv_type_long_long_int=no
16121 fi
16122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16123   conftest.$ac_objext conftest.beam conftest.$ac_ext
16124 fi
16125
16126 else
16127   ac_cv_type_long_long_int=no
16128 fi
16129 rm -f core conftest.err conftest.$ac_objext \
16130     conftest$ac_exeext conftest.$ac_ext
16131 fi
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16133 $as_echo "$ac_cv_type_long_long_int" >&6; }
16134   if test $ac_cv_type_long_long_int = yes; then
16135
16136 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16137
16138   fi
16139
16140
16141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16142 $as_echo_n "checking for unsigned long long int... " >&6; }
16143 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16144   $as_echo_n "(cached) " >&6
16145 else
16146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h.  */
16148
16149   /* Test preprocessor.  */
16150       #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16151         error in preprocessor;
16152       #endif
16153       #if ! (18446744073709551615ULL <= -1ull)
16154         error in preprocessor;
16155       #endif
16156       /* Test literals.  */
16157       long long int ll = 9223372036854775807ll;
16158       long long int nll = -9223372036854775807LL;
16159       unsigned long long int ull = 18446744073709551615ULL;
16160       /* Test constant expressions.   */
16161       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16162                      ? 1 : -1)];
16163       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16164                      ? 1 : -1)];
16165       int i = 63;
16166 int
16167 main ()
16168 {
16169 /* Test availability of runtime routines for shift and division.  */
16170       long long int llmax = 9223372036854775807ll;
16171       unsigned long long int ullmax = 18446744073709551615ull;
16172       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16173               | (llmax / ll) | (llmax % ll)
16174               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16175               | (ullmax / ull) | (ullmax % ull));
16176   ;
16177   return 0;
16178 }
16179
16180 _ACEOF
16181 if ac_fn_c_try_link "$LINENO"; then :
16182   ac_cv_type_unsigned_long_long_int=yes
16183 else
16184   ac_cv_type_unsigned_long_long_int=no
16185 fi
16186 rm -f core conftest.err conftest.$ac_objext \
16187     conftest$ac_exeext conftest.$ac_ext
16188 fi
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16190 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16191   if test $ac_cv_type_unsigned_long_long_int = yes; then
16192
16193 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16194
16195   fi
16196
16197
16198
16199
16200
16201
16202   GNULIB_BTOWC=0;
16203   GNULIB_WCTOB=0;
16204   GNULIB_MBSINIT=0;
16205   GNULIB_MBRTOWC=0;
16206   GNULIB_MBRLEN=0;
16207   GNULIB_MBSRTOWCS=0;
16208   GNULIB_MBSNRTOWCS=0;
16209   GNULIB_WCRTOMB=0;
16210   GNULIB_WCSRTOMBS=0;
16211   GNULIB_WCSNRTOMBS=0;
16212   GNULIB_WCWIDTH=0;
16213     HAVE_BTOWC=1;
16214   HAVE_MBSINIT=1;
16215   HAVE_MBRTOWC=1;
16216   HAVE_MBRLEN=1;
16217   HAVE_MBSRTOWCS=1;
16218   HAVE_MBSNRTOWCS=1;
16219   HAVE_WCRTOMB=1;
16220   HAVE_WCSRTOMBS=1;
16221   HAVE_WCSNRTOMBS=1;
16222   HAVE_DECL_WCTOB=1;
16223   HAVE_DECL_WCWIDTH=1;
16224   REPLACE_MBSTATE_T=0;
16225   REPLACE_BTOWC=0;
16226   REPLACE_WCTOB=0;
16227   REPLACE_MBSINIT=0;
16228   REPLACE_MBRTOWC=0;
16229   REPLACE_MBRLEN=0;
16230   REPLACE_MBSRTOWCS=0;
16231   REPLACE_MBSNRTOWCS=0;
16232   REPLACE_WCRTOMB=0;
16233   REPLACE_WCSRTOMBS=0;
16234   REPLACE_WCSNRTOMBS=0;
16235   REPLACE_WCWIDTH=0;
16236   WCHAR_H='';
16237
16238
16239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16240 $as_echo_n "checking for wint_t... " >&6; }
16241 if test "${gt_cv_c_wint_t+set}" = set; then :
16242   $as_echo_n "(cached) " >&6
16243 else
16244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h.  */
16246
16247 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16248    <wchar.h>.
16249    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16250    before <wchar.h>.  */
16251 #include <stddef.h>
16252 #include <stdio.h>
16253 #include <time.h>
16254 #include <wchar.h>
16255        wint_t foo = (wchar_t)'\0';
16256 int
16257 main ()
16258 {
16259
16260   ;
16261   return 0;
16262 }
16263 _ACEOF
16264 if ac_fn_c_try_compile "$LINENO"; then :
16265   gt_cv_c_wint_t=yes
16266 else
16267   gt_cv_c_wint_t=no
16268 fi
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 fi
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16272 $as_echo "$gt_cv_c_wint_t" >&6; }
16273   if test $gt_cv_c_wint_t = yes; then
16274
16275 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16276
16277   fi
16278
16279
16280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16281 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16282 if test "${am_cv_langinfo_codeset+set}" = set; then :
16283   $as_echo_n "(cached) " >&6
16284 else
16285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h.  */
16287 #include <langinfo.h>
16288 int
16289 main ()
16290 {
16291 char* cs = nl_langinfo(CODESET); return !cs;
16292   ;
16293   return 0;
16294 }
16295 _ACEOF
16296 if ac_fn_c_try_link "$LINENO"; then :
16297   am_cv_langinfo_codeset=yes
16298 else
16299   am_cv_langinfo_codeset=no
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext \
16302     conftest$ac_exeext conftest.$ac_ext
16303
16304 fi
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
16306 $as_echo "$am_cv_langinfo_codeset" >&6; }
16307   if test $am_cv_langinfo_codeset = yes; then
16308
16309 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16310
16311   fi
16312
16313
16314    if true; then
16315   GL_COND_LIBTOOL_TRUE=
16316   GL_COND_LIBTOOL_FALSE='#'
16317 else
16318   GL_COND_LIBTOOL_TRUE='#'
16319   GL_COND_LIBTOOL_FALSE=
16320 fi
16321
16322   gl_cond_libtool=true
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332   gl_source_base='lib/gl'
16333
16334
16335
16336
16337
16338
16339
16340           am_save_CPPFLAGS="$CPPFLAGS"
16341
16342   for element in $INCICONV; do
16343     haveit=
16344     for x in $CPPFLAGS; do
16345
16346   acl_save_prefix="$prefix"
16347   prefix="$acl_final_prefix"
16348   acl_save_exec_prefix="$exec_prefix"
16349   exec_prefix="$acl_final_exec_prefix"
16350   eval x=\"$x\"
16351   exec_prefix="$acl_save_exec_prefix"
16352   prefix="$acl_save_prefix"
16353
16354       if test "X$x" = "X$element"; then
16355         haveit=yes
16356         break
16357       fi
16358     done
16359     if test -z "$haveit"; then
16360       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16361     fi
16362   done
16363
16364
16365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16366 $as_echo_n "checking for iconv... " >&6; }
16367 if test "${am_cv_func_iconv+set}" = set; then :
16368   $as_echo_n "(cached) " >&6
16369 else
16370
16371     am_cv_func_iconv="no, consider installing GNU libiconv"
16372     am_cv_lib_iconv=no
16373     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h.  */
16375 #include <stdlib.h>
16376 #include <iconv.h>
16377 int
16378 main ()
16379 {
16380 iconv_t cd = iconv_open("","");
16381        iconv(cd,NULL,NULL,NULL,NULL);
16382        iconv_close(cd);
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 if ac_fn_c_try_link "$LINENO"; then :
16388   am_cv_func_iconv=yes
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext \
16391     conftest$ac_exeext conftest.$ac_ext
16392     if test "$am_cv_func_iconv" != yes; then
16393       am_save_LIBS="$LIBS"
16394       LIBS="$LIBS $LIBICONV"
16395       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h.  */
16397 #include <stdlib.h>
16398 #include <iconv.h>
16399 int
16400 main ()
16401 {
16402 iconv_t cd = iconv_open("","");
16403          iconv(cd,NULL,NULL,NULL,NULL);
16404          iconv_close(cd);
16405   ;
16406   return 0;
16407 }
16408 _ACEOF
16409 if ac_fn_c_try_link "$LINENO"; then :
16410   am_cv_lib_iconv=yes
16411         am_cv_func_iconv=yes
16412 fi
16413 rm -f core conftest.err conftest.$ac_objext \
16414     conftest$ac_exeext conftest.$ac_ext
16415       LIBS="$am_save_LIBS"
16416     fi
16417
16418 fi
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16420 $as_echo "$am_cv_func_iconv" >&6; }
16421   if test "$am_cv_func_iconv" = yes; then
16422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16423 $as_echo_n "checking for working iconv... " >&6; }
16424 if test "${am_cv_func_iconv_works+set}" = set; then :
16425   $as_echo_n "(cached) " >&6
16426 else
16427
16428             am_save_LIBS="$LIBS"
16429       if test $am_cv_lib_iconv = yes; then
16430         LIBS="$LIBS $LIBICONV"
16431       fi
16432       if test "$cross_compiling" = yes; then :
16433   case "$host_os" in
16434            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16435            *)            am_cv_func_iconv_works="guessing yes" ;;
16436          esac
16437 else
16438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h.  */
16440
16441 #include <iconv.h>
16442 #include <string.h>
16443 int main ()
16444 {
16445   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16446      returns.  */
16447   {
16448     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16449     if (cd_utf8_to_88591 != (iconv_t)(-1))
16450       {
16451         static const char input[] = "\342\202\254"; /* EURO SIGN */
16452         char buf[10];
16453         const char *inptr = input;
16454         size_t inbytesleft = strlen (input);
16455         char *outptr = buf;
16456         size_t outbytesleft = sizeof (buf);
16457         size_t res = iconv (cd_utf8_to_88591,
16458                             (char **) &inptr, &inbytesleft,
16459                             &outptr, &outbytesleft);
16460         if (res == 0)
16461           return 1;
16462       }
16463   }
16464 #if 0 /* This bug could be worked around by the caller.  */
16465   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16466   {
16467     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16468     if (cd_88591_to_utf8 != (iconv_t)(-1))
16469       {
16470         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16471         char buf[50];
16472         const char *inptr = input;
16473         size_t inbytesleft = strlen (input);
16474         char *outptr = buf;
16475         size_t outbytesleft = sizeof (buf);
16476         size_t res = iconv (cd_88591_to_utf8,
16477                             (char **) &inptr, &inbytesleft,
16478                             &outptr, &outbytesleft);
16479         if ((int)res > 0)
16480           return 1;
16481       }
16482   }
16483 #endif
16484   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16485      provided.  */
16486   if (/* Try standardized names.  */
16487       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16488       /* Try IRIX, OSF/1 names.  */
16489       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16490       /* Try AIX names.  */
16491       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16492       /* Try HP-UX names.  */
16493       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16494     return 1;
16495   return 0;
16496 }
16497 _ACEOF
16498 if ac_fn_c_try_run "$LINENO"; then :
16499   am_cv_func_iconv_works=yes
16500 else
16501   am_cv_func_iconv_works=no
16502 fi
16503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16504   conftest.$ac_objext conftest.beam conftest.$ac_ext
16505 fi
16506
16507       LIBS="$am_save_LIBS"
16508
16509 fi
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16511 $as_echo "$am_cv_func_iconv_works" >&6; }
16512     case "$am_cv_func_iconv_works" in
16513       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16514       *)   am_func_iconv=yes ;;
16515     esac
16516   else
16517     am_func_iconv=no am_cv_lib_iconv=no
16518   fi
16519   if test "$am_func_iconv" = yes; then
16520
16521 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16522
16523   fi
16524   if test "$am_cv_lib_iconv" = yes; then
16525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16526 $as_echo_n "checking how to link with libiconv... " >&6; }
16527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16528 $as_echo "$LIBICONV" >&6; }
16529   else
16530             CPPFLAGS="$am_save_CPPFLAGS"
16531     LIBICONV=
16532     LTLIBICONV=
16533   fi
16534
16535
16536
16537   if test "$am_cv_func_iconv" = yes; then
16538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
16539 $as_echo_n "checking for iconv declaration... " >&6; }
16540     if test "${am_cv_proto_iconv+set}" = set; then :
16541   $as_echo_n "(cached) " >&6
16542 else
16543
16544       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h.  */
16546
16547 #include <stdlib.h>
16548 #include <iconv.h>
16549 extern
16550 #ifdef __cplusplus
16551 "C"
16552 #endif
16553 #if defined(__STDC__) || defined(__cplusplus)
16554 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16555 #else
16556 size_t iconv();
16557 #endif
16558
16559 int
16560 main ()
16561 {
16562
16563   ;
16564   return 0;
16565 }
16566 _ACEOF
16567 if ac_fn_c_try_compile "$LINENO"; then :
16568   am_cv_proto_iconv_arg1=""
16569 else
16570   am_cv_proto_iconv_arg1="const"
16571 fi
16572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16573       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16574 fi
16575
16576     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
16578          }$am_cv_proto_iconv" >&5
16579 $as_echo "${ac_t:-
16580          }$am_cv_proto_iconv" >&6; }
16581
16582 cat >>confdefs.h <<_ACEOF
16583 #define ICONV_CONST $am_cv_proto_iconv_arg1
16584 _ACEOF
16585
16586   fi
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596      if test $gl_cv_have_include_next = yes; then
16597        gl_cv_next_iconv_h='<'iconv.h'>'
16598      else
16599        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
16600 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
16601 if test "${gl_cv_next_iconv_h+set}" = set; then :
16602   $as_echo_n "(cached) " >&6
16603 else
16604
16605           if test $ac_cv_header_iconv_h = yes; then
16606             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h.  */
16608 #include <iconv.h>
16609
16610 _ACEOF
16611                                                                     case "$host_os" in
16612               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16613               *)    gl_absname_cpp="$ac_cpp" ;;
16614             esac
16615                                     gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16616                sed -n '\#/iconv.h#{
16617                  s#.*"\(.*/iconv.h\)".*#\1#
16618                  s#^/[^/]#//&#
16619                  p
16620                  q
16621                }'`'"'
16622           else
16623             gl_cv_next_iconv_h='<'iconv.h'>'
16624           fi
16625
16626 fi
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
16628 $as_echo "$gl_cv_next_iconv_h" >&6; }
16629      fi
16630      NEXT_ICONV_H=$gl_cv_next_iconv_h
16631
16632      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16633        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16634        gl_next_as_first_directive='<'iconv.h'>'
16635      else
16636        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16637        gl_next_as_first_directive=$gl_cv_next_iconv_h
16638      fi
16639      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
16640
16641
16642
16643
16644
16645
16646
16647
16648   if test "$am_cv_func_iconv" = yes; then
16649             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h.  */
16651
16652       #include <iconv.h>
16653       #if defined _LIBICONV_VERSION || defined __GLIBC__
16654        gnu_iconv
16655       #endif
16656
16657 _ACEOF
16658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16659   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
16660   gl_func_iconv_gnu=yes
16661 else
16662   gl_func_iconv_gnu=no
16663 fi
16664 rm -f conftest*
16665
16666     if test $gl_func_iconv_gnu = no; then
16667       iconv_flavor=
16668       case "$host_os" in
16669         aix*)  iconv_flavor=ICONV_FLAVOR_AIX ;;
16670         irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
16671         hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
16672         osf*)  iconv_flavor=ICONV_FLAVOR_OSF ;;
16673       esac
16674       if test -n "$iconv_flavor"; then
16675
16676 cat >>confdefs.h <<_ACEOF
16677 #define ICONV_FLAVOR $iconv_flavor
16678 _ACEOF
16679
16680
16681
16682
16683   ICONV_H='iconv.h'
16684
16685   REPLACE_ICONV_OPEN=1
16686
16687
16688
16689
16690
16691
16692
16693
16694   lgl_LIBOBJS="$lgl_LIBOBJS iconv_open.$ac_objext"
16695
16696
16697       fi
16698     fi
16699   fi
16700
16701
16702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
16703 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
16704 if test "${gl_cv_ld_output_def+set}" = set; then :
16705   $as_echo_n "(cached) " >&6
16706 else
16707   if test "$enable_shared" = no; then
16708        gl_cv_ld_output_def="not needed, shared libraries are disabled"
16709      else
16710        gl_ldflags_save=$LDFLAGS
16711        LDFLAGS="-Wl,--output-def,conftest.def"
16712        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h.  */
16714
16715 int
16716 main ()
16717 {
16718
16719   ;
16720   return 0;
16721 }
16722 _ACEOF
16723 if ac_fn_c_try_link "$LINENO"; then :
16724   gl_cv_ld_output_def=yes
16725 else
16726   gl_cv_ld_output_def=no
16727 fi
16728 rm -f core conftest.err conftest.$ac_objext \
16729     conftest$ac_exeext conftest.$ac_ext
16730        rm -f conftest.def
16731        LDFLAGS="$gl_ldflags_save"
16732      fi
16733 fi
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
16735 $as_echo "$gl_cv_ld_output_def" >&6; }
16736    if test "x$gl_cv_ld_output_def" = "xyes"; then
16737   HAVE_LD_OUTPUT_DEF_TRUE=
16738   HAVE_LD_OUTPUT_DEF_FALSE='#'
16739 else
16740   HAVE_LD_OUTPUT_DEF_TRUE='#'
16741   HAVE_LD_OUTPUT_DEF_FALSE=
16742 fi
16743
16744
16745
16746   # Check whether --enable-ld-version-script was given.
16747 if test "${enable_ld_version_script+set}" = set; then :
16748   enableval=$enable_ld_version_script; have_ld_version_script=$enableval
16749 fi
16750
16751   if test -z "$have_ld_version_script"; then
16752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
16753 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
16754     save_LDFLAGS="$LDFLAGS"
16755     LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
16756     cat > conftest.map <<EOF
16757 VERS_1 {
16758         global: sym;
16759 };
16760
16761 VERS_2 {
16762         global: sym;
16763 } VERS_1;
16764 EOF
16765     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h.  */
16767
16768 int
16769 main ()
16770 {
16771
16772   ;
16773   return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_c_try_link "$LINENO"; then :
16777   have_ld_version_script=yes
16778 else
16779   have_ld_version_script=no
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext \
16782     conftest$ac_exeext conftest.$ac_ext
16783     rm -f conftest.map
16784     LDFLAGS="$save_LDFLAGS"
16785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
16786 $as_echo "$have_ld_version_script" >&6; }
16787   fi
16788    if test "$have_ld_version_script" = "yes"; then
16789   HAVE_LD_VERSION_SCRIPT_TRUE=
16790   HAVE_LD_VERSION_SCRIPT_FALSE='#'
16791 else
16792   HAVE_LD_VERSION_SCRIPT_TRUE='#'
16793   HAVE_LD_VERSION_SCRIPT_FALSE=
16794 fi
16795
16796
16797
16798
16799   CFLAG_VISIBILITY=
16800   HAVE_VISIBILITY=0
16801   if test -n "$GCC"; then
16802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
16803 $as_echo_n "checking for simple visibility declarations... " >&6; }
16804     if test "${gl_cv_cc_visibility+set}" = set; then :
16805   $as_echo_n "(cached) " >&6
16806 else
16807
16808       gl_save_CFLAGS="$CFLAGS"
16809       CFLAGS="$CFLAGS -fvisibility=hidden"
16810       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h.  */
16812 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
16813          extern __attribute__((__visibility__("default"))) int exportedvar;
16814          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
16815          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
16816 int
16817 main ()
16818 {
16819
16820   ;
16821   return 0;
16822 }
16823 _ACEOF
16824 if ac_fn_c_try_compile "$LINENO"; then :
16825   gl_cv_cc_visibility=yes
16826 else
16827   gl_cv_cc_visibility=no
16828 fi
16829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830       CFLAGS="$gl_save_CFLAGS"
16831 fi
16832
16833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
16834 $as_echo "$gl_cv_cc_visibility" >&6; }
16835     if test $gl_cv_cc_visibility = yes; then
16836       CFLAG_VISIBILITY="-fvisibility=hidden"
16837       HAVE_VISIBILITY=1
16838     fi
16839   fi
16840
16841
16842
16843 cat >>confdefs.h <<_ACEOF
16844 #define HAVE_VISIBILITY $HAVE_VISIBILITY
16845 _ACEOF
16846
16847
16848
16849
16850
16851
16852   # Define two additional variables used in the Makefile substitution.
16853
16854   if test "$ac_cv_header_stdbool_h" = yes; then
16855     STDBOOL_H=''
16856   else
16857     STDBOOL_H='stdbool.h'
16858   fi
16859
16860
16861   if test "$ac_cv_type__Bool" = yes; then
16862     HAVE__BOOL=1
16863   else
16864     HAVE__BOOL=0
16865   fi
16866
16867
16868
16869
16870
16871   if test $ac_cv_type_long_long_int = yes; then
16872     HAVE_LONG_LONG_INT=1
16873   else
16874     HAVE_LONG_LONG_INT=0
16875   fi
16876
16877
16878   if test $ac_cv_type_unsigned_long_long_int = yes; then
16879     HAVE_UNSIGNED_LONG_LONG_INT=1
16880   else
16881     HAVE_UNSIGNED_LONG_LONG_INT=0
16882   fi
16883
16884
16885       if test $ac_cv_header_inttypes_h = yes; then
16886     HAVE_INTTYPES_H=1
16887   else
16888     HAVE_INTTYPES_H=0
16889   fi
16890
16891
16892       if test $ac_cv_header_sys_types_h = yes; then
16893     HAVE_SYS_TYPES_H=1
16894   else
16895     HAVE_SYS_TYPES_H=0
16896   fi
16897
16898
16899
16900
16901
16902
16903
16904
16905      if test $gl_cv_have_include_next = yes; then
16906        gl_cv_next_stdint_h='<'stdint.h'>'
16907      else
16908        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16909 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16910 if test "${gl_cv_next_stdint_h+set}" = set; then :
16911   $as_echo_n "(cached) " >&6
16912 else
16913
16914           if test $ac_cv_header_stdint_h = yes; then
16915             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h.  */
16917 #include <stdint.h>
16918
16919 _ACEOF
16920                                                                     case "$host_os" in
16921               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16922               *)    gl_absname_cpp="$ac_cpp" ;;
16923             esac
16924                                     gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16925                sed -n '\#/stdint.h#{
16926                  s#.*"\(.*/stdint.h\)".*#\1#
16927                  s#^/[^/]#//&#
16928                  p
16929                  q
16930                }'`'"'
16931           else
16932             gl_cv_next_stdint_h='<'stdint.h'>'
16933           fi
16934
16935 fi
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16937 $as_echo "$gl_cv_next_stdint_h" >&6; }
16938      fi
16939      NEXT_STDINT_H=$gl_cv_next_stdint_h
16940
16941      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16942        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16943        gl_next_as_first_directive='<'stdint.h'>'
16944      else
16945        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16946        gl_next_as_first_directive=$gl_cv_next_stdint_h
16947      fi
16948      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16949
16950
16951
16952   if test $ac_cv_header_stdint_h = yes; then
16953     HAVE_STDINT_H=1
16954   else
16955     HAVE_STDINT_H=0
16956   fi
16957
16958
16959     if test $ac_cv_header_stdint_h = yes; then
16960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16961 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16962 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16963   $as_echo_n "(cached) " >&6
16964 else
16965   gl_cv_header_working_stdint_h=no
16966        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h.  */
16968
16969
16970 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16971 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16972 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16973 #include <stdint.h>
16974 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
16975 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16976 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16977 #endif
16978
16979
16980   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16981      included before <wchar.h>.  */
16982   #include <stddef.h>
16983   #include <signal.h>
16984   #if HAVE_WCHAR_H
16985   # include <stdio.h>
16986   # include <time.h>
16987   # include <wchar.h>
16988   #endif
16989
16990
16991 #ifdef INT8_MAX
16992 int8_t a1 = INT8_MAX;
16993 int8_t a1min = INT8_MIN;
16994 #endif
16995 #ifdef INT16_MAX
16996 int16_t a2 = INT16_MAX;
16997 int16_t a2min = INT16_MIN;
16998 #endif
16999 #ifdef INT32_MAX
17000 int32_t a3 = INT32_MAX;
17001 int32_t a3min = INT32_MIN;
17002 #endif
17003 #ifdef INT64_MAX
17004 int64_t a4 = INT64_MAX;
17005 int64_t a4min = INT64_MIN;
17006 #endif
17007 #ifdef UINT8_MAX
17008 uint8_t b1 = UINT8_MAX;
17009 #else
17010 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17011 #endif
17012 #ifdef UINT16_MAX
17013 uint16_t b2 = UINT16_MAX;
17014 #endif
17015 #ifdef UINT32_MAX
17016 uint32_t b3 = UINT32_MAX;
17017 #endif
17018 #ifdef UINT64_MAX
17019 uint64_t b4 = UINT64_MAX;
17020 #endif
17021 int_least8_t c1 = INT8_C (0x7f);
17022 int_least8_t c1max = INT_LEAST8_MAX;
17023 int_least8_t c1min = INT_LEAST8_MIN;
17024 int_least16_t c2 = INT16_C (0x7fff);
17025 int_least16_t c2max = INT_LEAST16_MAX;
17026 int_least16_t c2min = INT_LEAST16_MIN;
17027 int_least32_t c3 = INT32_C (0x7fffffff);
17028 int_least32_t c3max = INT_LEAST32_MAX;
17029 int_least32_t c3min = INT_LEAST32_MIN;
17030 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17031 int_least64_t c4max = INT_LEAST64_MAX;
17032 int_least64_t c4min = INT_LEAST64_MIN;
17033 uint_least8_t d1 = UINT8_C (0xff);
17034 uint_least8_t d1max = UINT_LEAST8_MAX;
17035 uint_least16_t d2 = UINT16_C (0xffff);
17036 uint_least16_t d2max = UINT_LEAST16_MAX;
17037 uint_least32_t d3 = UINT32_C (0xffffffff);
17038 uint_least32_t d3max = UINT_LEAST32_MAX;
17039 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17040 uint_least64_t d4max = UINT_LEAST64_MAX;
17041 int_fast8_t e1 = INT_FAST8_MAX;
17042 int_fast8_t e1min = INT_FAST8_MIN;
17043 int_fast16_t e2 = INT_FAST16_MAX;
17044 int_fast16_t e2min = INT_FAST16_MIN;
17045 int_fast32_t e3 = INT_FAST32_MAX;
17046 int_fast32_t e3min = INT_FAST32_MIN;
17047 int_fast64_t e4 = INT_FAST64_MAX;
17048 int_fast64_t e4min = INT_FAST64_MIN;
17049 uint_fast8_t f1 = UINT_FAST8_MAX;
17050 uint_fast16_t f2 = UINT_FAST16_MAX;
17051 uint_fast32_t f3 = UINT_FAST32_MAX;
17052 uint_fast64_t f4 = UINT_FAST64_MAX;
17053 #ifdef INTPTR_MAX
17054 intptr_t g = INTPTR_MAX;
17055 intptr_t gmin = INTPTR_MIN;
17056 #endif
17057 #ifdef UINTPTR_MAX
17058 uintptr_t h = UINTPTR_MAX;
17059 #endif
17060 intmax_t i = INTMAX_MAX;
17061 uintmax_t j = UINTMAX_MAX;
17062
17063 #include <limits.h> /* for CHAR_BIT */
17064 #define TYPE_MINIMUM(t) \
17065   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17066 #define TYPE_MAXIMUM(t) \
17067   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17068 struct s {
17069   int check_PTRDIFF:
17070       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17071       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17072       ? 1 : -1;
17073   /* Detect bug in FreeBSD 6.0 / ia64.  */
17074   int check_SIG_ATOMIC:
17075       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17076       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17077       ? 1 : -1;
17078   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17079   int check_WCHAR:
17080       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17081       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17082       ? 1 : -1;
17083   /* Detect bug in mingw.  */
17084   int check_WINT:
17085       WINT_MIN == TYPE_MINIMUM (wint_t)
17086       && WINT_MAX == TYPE_MAXIMUM (wint_t)
17087       ? 1 : -1;
17088
17089   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
17090   int check_UINT8_C:
17091         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17092   int check_UINT16_C:
17093         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17094
17095   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
17096 #ifdef UINT8_MAX
17097   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17098 #endif
17099 #ifdef UINT16_MAX
17100   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17101 #endif
17102 #ifdef UINT32_MAX
17103   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17104 #endif
17105 #ifdef UINT64_MAX
17106   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17107 #endif
17108   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17109   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17110   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17111   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17112   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17113   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17114   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17115   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17116   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17117   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17118   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17119 };
17120
17121 int
17122 main ()
17123 {
17124
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 if ac_fn_c_try_compile "$LINENO"; then :
17130                                                     if test "$cross_compiling" = yes; then :
17131                  gl_cv_header_working_stdint_h=yes
17132
17133 else
17134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h.  */
17136
17137
17138 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17139 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17140 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17141 #include <stdint.h>
17142
17143
17144   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17145      included before <wchar.h>.  */
17146   #include <stddef.h>
17147   #include <signal.h>
17148   #if HAVE_WCHAR_H
17149   # include <stdio.h>
17150   # include <time.h>
17151   # include <wchar.h>
17152   #endif
17153
17154
17155 #include <stdio.h>
17156 #include <string.h>
17157 #define MVAL(macro) MVAL1(macro)
17158 #define MVAL1(expression) #expression
17159 static const char *macro_values[] =
17160   {
17161 #ifdef INT8_MAX
17162     MVAL (INT8_MAX),
17163 #endif
17164 #ifdef INT16_MAX
17165     MVAL (INT16_MAX),
17166 #endif
17167 #ifdef INT32_MAX
17168     MVAL (INT32_MAX),
17169 #endif
17170 #ifdef INT64_MAX
17171     MVAL (INT64_MAX),
17172 #endif
17173 #ifdef UINT8_MAX
17174     MVAL (UINT8_MAX),
17175 #endif
17176 #ifdef UINT16_MAX
17177     MVAL (UINT16_MAX),
17178 #endif
17179 #ifdef UINT32_MAX
17180     MVAL (UINT32_MAX),
17181 #endif
17182 #ifdef UINT64_MAX
17183     MVAL (UINT64_MAX),
17184 #endif
17185     NULL
17186   };
17187
17188 int
17189 main ()
17190 {
17191
17192   const char **mv;
17193   for (mv = macro_values; *mv != NULL; mv++)
17194     {
17195       const char *value = *mv;
17196       /* Test whether it looks like a cast expression.  */
17197       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17198           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17199           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17200           || strncmp (value, "((int)"/*)*/, 6) == 0
17201           || strncmp (value, "((signed short)"/*)*/, 15) == 0
17202           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17203         return 1;
17204     }
17205   return 0;
17206
17207   ;
17208   return 0;
17209 }
17210 _ACEOF
17211 if ac_fn_c_try_run "$LINENO"; then :
17212   gl_cv_header_working_stdint_h=yes
17213 fi
17214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17215   conftest.$ac_objext conftest.beam conftest.$ac_ext
17216 fi
17217
17218
17219 fi
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221
17222 fi
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17224 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17225   fi
17226   if test "$gl_cv_header_working_stdint_h" = yes; then
17227     STDINT_H=
17228   else
17229             for ac_header in sys/inttypes.h sys/bitypes.h
17230 do :
17231   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17232 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17233 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17234   cat >>confdefs.h <<_ACEOF
17235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17236 _ACEOF
17237
17238 fi
17239
17240 done
17241
17242     if test $ac_cv_header_sys_inttypes_h = yes; then
17243       HAVE_SYS_INTTYPES_H=1
17244     else
17245       HAVE_SYS_INTTYPES_H=0
17246     fi
17247
17248     if test $ac_cv_header_sys_bitypes_h = yes; then
17249       HAVE_SYS_BITYPES_H=1
17250     else
17251       HAVE_SYS_BITYPES_H=0
17252     fi
17253
17254
17255
17256
17257
17258
17259   if test $APPLE_UNIVERSAL_BUILD = 0; then
17260
17261
17262   for gltype in ptrdiff_t size_t ; do
17263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17264 $as_echo_n "checking for bit size of $gltype... " >&6; }
17265 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17266   $as_echo_n "(cached) " >&6
17267 else
17268   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17269   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17270      included before <wchar.h>.  */
17271   #include <stddef.h>
17272   #include <signal.h>
17273   #if HAVE_WCHAR_H
17274   # include <stdio.h>
17275   # include <time.h>
17276   # include <wchar.h>
17277   #endif
17278
17279 #include <limits.h>"; then :
17280
17281 else
17282   result=unknown
17283 fi
17284
17285        eval gl_cv_bitsizeof_${gltype}=\$result
17286
17287 fi
17288 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17289                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17290 $as_echo "$ac_res" >&6; }
17291     eval result=\$gl_cv_bitsizeof_${gltype}
17292     if test $result = unknown; then
17293                                                 result=0
17294     fi
17295     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17296     cat >>confdefs.h <<_ACEOF
17297 #define BITSIZEOF_${GLTYPE} $result
17298 _ACEOF
17299
17300     eval BITSIZEOF_${GLTYPE}=\$result
17301   done
17302
17303
17304   fi
17305
17306
17307   for gltype in sig_atomic_t wchar_t wint_t ; do
17308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17309 $as_echo_n "checking for bit size of $gltype... " >&6; }
17310 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17311   $as_echo_n "(cached) " >&6
17312 else
17313   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17314   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17315      included before <wchar.h>.  */
17316   #include <stddef.h>
17317   #include <signal.h>
17318   #if HAVE_WCHAR_H
17319   # include <stdio.h>
17320   # include <time.h>
17321   # include <wchar.h>
17322   #endif
17323
17324 #include <limits.h>"; then :
17325
17326 else
17327   result=unknown
17328 fi
17329
17330        eval gl_cv_bitsizeof_${gltype}=\$result
17331
17332 fi
17333 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17334                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17335 $as_echo "$ac_res" >&6; }
17336     eval result=\$gl_cv_bitsizeof_${gltype}
17337     if test $result = unknown; then
17338                                                 result=0
17339     fi
17340     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17341     cat >>confdefs.h <<_ACEOF
17342 #define BITSIZEOF_${GLTYPE} $result
17343 _ACEOF
17344
17345     eval BITSIZEOF_${GLTYPE}=\$result
17346   done
17347
17348
17349
17350
17351   for gltype in sig_atomic_t wchar_t wint_t ; do
17352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17353 $as_echo_n "checking whether $gltype is signed... " >&6; }
17354 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
17355   $as_echo_n "(cached) " >&6
17356 else
17357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h.  */
17359
17360   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17361      included before <wchar.h>.  */
17362   #include <stddef.h>
17363   #include <signal.h>
17364   #if HAVE_WCHAR_H
17365   # include <stdio.h>
17366   # include <time.h>
17367   # include <wchar.h>
17368   #endif
17369
17370             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17371 int
17372 main ()
17373 {
17374
17375   ;
17376   return 0;
17377 }
17378 _ACEOF
17379 if ac_fn_c_try_compile "$LINENO"; then :
17380   result=yes
17381 else
17382   result=no
17383 fi
17384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385        eval gl_cv_type_${gltype}_signed=\$result
17386
17387 fi
17388 eval ac_res=\$gl_cv_type_${gltype}_signed
17389                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17390 $as_echo "$ac_res" >&6; }
17391     eval result=\$gl_cv_type_${gltype}_signed
17392     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17393     if test "$result" = yes; then
17394       cat >>confdefs.h <<_ACEOF
17395 #define HAVE_SIGNED_${GLTYPE} 1
17396 _ACEOF
17397
17398       eval HAVE_SIGNED_${GLTYPE}=1
17399     else
17400       eval HAVE_SIGNED_${GLTYPE}=0
17401     fi
17402   done
17403
17404
17405   gl_cv_type_ptrdiff_t_signed=yes
17406   gl_cv_type_size_t_signed=no
17407   if test $APPLE_UNIVERSAL_BUILD = 0; then
17408
17409
17410   for gltype in ptrdiff_t size_t ; do
17411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17412 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17413 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17414   $as_echo_n "(cached) " >&6
17415 else
17416   eval gl_cv_type_${gltype}_suffix=no
17417        eval result=\$gl_cv_type_${gltype}_signed
17418        if test "$result" = yes; then
17419          glsufu=
17420        else
17421          glsufu=u
17422        fi
17423        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17424          case $glsuf in
17425            '')  gltype1='int';;
17426            l)   gltype1='long int';;
17427            ll)  gltype1='long long int';;
17428            i64) gltype1='__int64';;
17429            u)   gltype1='unsigned int';;
17430            ul)  gltype1='unsigned long int';;
17431            ull) gltype1='unsigned long long int';;
17432            ui64)gltype1='unsigned __int64';;
17433          esac
17434          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h.  */
17436
17437   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17438      included before <wchar.h>.  */
17439   #include <stddef.h>
17440   #include <signal.h>
17441   #if HAVE_WCHAR_H
17442   # include <stdio.h>
17443   # include <time.h>
17444   # include <wchar.h>
17445   #endif
17446
17447               extern $gltype foo;
17448               extern $gltype1 foo;
17449 int
17450 main ()
17451 {
17452
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 if ac_fn_c_try_compile "$LINENO"; then :
17458   eval gl_cv_type_${gltype}_suffix=\$glsuf
17459 fi
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461          eval result=\$gl_cv_type_${gltype}_suffix
17462          test "$result" != no && break
17463        done
17464 fi
17465 eval ac_res=\$gl_cv_type_${gltype}_suffix
17466                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17467 $as_echo "$ac_res" >&6; }
17468     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17469     eval result=\$gl_cv_type_${gltype}_suffix
17470     test "$result" = no && result=
17471     eval ${GLTYPE}_SUFFIX=\$result
17472     cat >>confdefs.h <<_ACEOF
17473 #define ${GLTYPE}_SUFFIX $result
17474 _ACEOF
17475
17476   done
17477
17478
17479   fi
17480
17481
17482   for gltype in sig_atomic_t wchar_t wint_t ; do
17483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17484 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17485 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17486   $as_echo_n "(cached) " >&6
17487 else
17488   eval gl_cv_type_${gltype}_suffix=no
17489        eval result=\$gl_cv_type_${gltype}_signed
17490        if test "$result" = yes; then
17491          glsufu=
17492        else
17493          glsufu=u
17494        fi
17495        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17496          case $glsuf in
17497            '')  gltype1='int';;
17498            l)   gltype1='long int';;
17499            ll)  gltype1='long long int';;
17500            i64) gltype1='__int64';;
17501            u)   gltype1='unsigned int';;
17502            ul)  gltype1='unsigned long int';;
17503            ull) gltype1='unsigned long long int';;
17504            ui64)gltype1='unsigned __int64';;
17505          esac
17506          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h.  */
17508
17509   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17510      included before <wchar.h>.  */
17511   #include <stddef.h>
17512   #include <signal.h>
17513   #if HAVE_WCHAR_H
17514   # include <stdio.h>
17515   # include <time.h>
17516   # include <wchar.h>
17517   #endif
17518
17519               extern $gltype foo;
17520               extern $gltype1 foo;
17521 int
17522 main ()
17523 {
17524
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_compile "$LINENO"; then :
17530   eval gl_cv_type_${gltype}_suffix=\$glsuf
17531 fi
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533          eval result=\$gl_cv_type_${gltype}_suffix
17534          test "$result" != no && break
17535        done
17536 fi
17537 eval ac_res=\$gl_cv_type_${gltype}_suffix
17538                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17539 $as_echo "$ac_res" >&6; }
17540     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17541     eval result=\$gl_cv_type_${gltype}_suffix
17542     test "$result" = no && result=
17543     eval ${GLTYPE}_SUFFIX=\$result
17544     cat >>confdefs.h <<_ACEOF
17545 #define ${GLTYPE}_SUFFIX $result
17546 _ACEOF
17547
17548   done
17549
17550
17551
17552     STDINT_H=stdint.h
17553   fi
17554
17555
17556   if test $gl_cond_libtool = false; then
17557     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
17558     gl_libdeps="$gl_libdeps $LIBICONV"
17559   fi
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575   for ac_func in strverscmp
17576 do :
17577   ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
17578 if test "x$ac_cv_func_strverscmp" = x""yes; then :
17579   cat >>confdefs.h <<_ACEOF
17580 #define HAVE_STRVERSCMP 1
17581 _ACEOF
17582
17583 else
17584
17585     lgl_LIBOBJS="$lgl_LIBOBJS $ac_func.$ac_objext"
17586
17587 fi
17588 done
17589
17590
17591   if test $ac_cv_func_strverscmp = no; then
17592
17593   :
17594
17595     HAVE_STRVERSCMP=0
17596   fi
17597
17598
17599
17600   GNULIB_STRVERSCMP=1
17601
17602
17603
17604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
17605 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
17606 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
17607   $as_echo_n "(cached) " >&6
17608 else
17609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610 /* end confdefs.h.  */
17611 #include <wchar.h>
17612 wchar_t w;
17613 _ACEOF
17614 if ac_fn_c_try_compile "$LINENO"; then :
17615   gl_cv_header_wchar_h_standalone=yes
17616 else
17617   gl_cv_header_wchar_h_standalone=no
17618 fi
17619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17620 fi
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
17622 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
17623
17624
17625   if test $gt_cv_c_wint_t = yes; then
17626     HAVE_WINT_T=1
17627   else
17628     HAVE_WINT_T=0
17629   fi
17630
17631
17632   if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
17633     WCHAR_H=wchar.h
17634   fi
17635
17636
17637   if test $ac_cv_header_wchar_h = yes; then
17638     HAVE_WCHAR_H=1
17639   else
17640     HAVE_WCHAR_H=0
17641   fi
17642
17643
17644
17645
17646
17647
17648
17649      if test $gl_cv_have_include_next = yes; then
17650        gl_cv_next_wchar_h='<'wchar.h'>'
17651      else
17652        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17653 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17654 if test "${gl_cv_next_wchar_h+set}" = set; then :
17655   $as_echo_n "(cached) " >&6
17656 else
17657
17658           if test $ac_cv_header_wchar_h = yes; then
17659             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h.  */
17661 #include <wchar.h>
17662
17663 _ACEOF
17664                                                                     case "$host_os" in
17665               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17666               *)    gl_absname_cpp="$ac_cpp" ;;
17667             esac
17668                                     gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17669                sed -n '\#/wchar.h#{
17670                  s#.*"\(.*/wchar.h\)".*#\1#
17671                  s#^/[^/]#//&#
17672                  p
17673                  q
17674                }'`'"'
17675           else
17676             gl_cv_next_wchar_h='<'wchar.h'>'
17677           fi
17678
17679 fi
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17681 $as_echo "$gl_cv_next_wchar_h" >&6; }
17682      fi
17683      NEXT_WCHAR_H=$gl_cv_next_wchar_h
17684
17685      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17686        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17687        gl_next_as_first_directive='<'wchar.h'>'
17688      else
17689        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17690        gl_next_as_first_directive=$gl_cv_next_wchar_h
17691      fi
17692      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706   gltests_libdeps=
17707   gltests_ltlibdeps=
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717   gl_source_base='lib/gltests'
17718
17719
17720
17721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
17722 $as_echo_n "checking for a traditional french locale... " >&6; }
17723 if test "${gt_cv_locale_fr+set}" = set; then :
17724   $as_echo_n "(cached) " >&6
17725 else
17726
17727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h.  */
17729
17730 #include <locale.h>
17731 #include <time.h>
17732 #if HAVE_LANGINFO_CODESET
17733 # include <langinfo.h>
17734 #endif
17735 #include <stdlib.h>
17736 #include <string.h>
17737 struct tm t;
17738 char buf[16];
17739 int main () {
17740   /* Check whether the given locale name is recognized by the system.  */
17741   if (setlocale (LC_ALL, "") == NULL) return 1;
17742   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
17743      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
17744      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
17745      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
17746      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
17747      some unit tests fail.  */
17748 #if HAVE_LANGINFO_CODESET
17749   {
17750     const char *cs = nl_langinfo (CODESET);
17751     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
17752       return 1;
17753   }
17754 #endif
17755 #ifdef __CYGWIN__
17756   /* On Cygwin, avoid locale names without encoding suffix, because the
17757      locale_charset() function relies on the encoding suffix.  Note that
17758      LC_ALL is set on the command line.  */
17759   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
17760 #endif
17761   /* Check whether in the abbreviation of the second month, the second
17762      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
17763      one byte long. This excludes the UTF-8 encoding.  */
17764   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
17765   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
17766   /* Check whether the decimal separator is a comma.
17767      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
17768      are nl_langinfo(RADIXCHAR) are both ".".  */
17769   if (localeconv () ->decimal_point[0] != ',') return 1;
17770   return 0;
17771 }
17772
17773 _ACEOF
17774     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17775   (eval $ac_link) 2>&5
17776   ac_status=$?
17777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17778   test $ac_status = 0; } && test -s conftest$ac_exeext; then
17779       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
17780       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
17781       # configure script would override the LC_ALL setting. Likewise for
17782       # LC_CTYPE, which is also set at the beginning of the configure script.
17783       # Test for the usual locale name.
17784       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17785         gt_cv_locale_fr=fr_FR
17786       else
17787         # Test for the locale name with explicit encoding suffix.
17788         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17789           gt_cv_locale_fr=fr_FR.ISO-8859-1
17790         else
17791           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
17792           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17793             gt_cv_locale_fr=fr_FR.ISO8859-1
17794           else
17795             # Test for the HP-UX locale name.
17796             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17797               gt_cv_locale_fr=fr_FR.iso88591
17798             else
17799               # Test for the Solaris 7 locale name.
17800               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17801                 gt_cv_locale_fr=fr
17802               else
17803                 # None found.
17804                 gt_cv_locale_fr=none
17805               fi
17806             fi
17807           fi
17808         fi
17809       fi
17810     fi
17811     rm -fr conftest*
17812
17813 fi
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
17815 $as_echo "$gt_cv_locale_fr" >&6; }
17816   LOCALE_FR=$gt_cv_locale_fr
17817
17818
17819
17820
17821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
17822 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
17823 if test "${gt_cv_locale_tr_utf8+set}" = set; then :
17824   $as_echo_n "(cached) " >&6
17825 else
17826
17827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h.  */
17829
17830 #include <locale.h>
17831 #include <time.h>
17832 #if HAVE_LANGINFO_CODESET
17833 # include <langinfo.h>
17834 #endif
17835 #include <stdlib.h>
17836 #include <string.h>
17837 struct tm t;
17838 char buf[16];
17839 int main () {
17840   /* On BeOS, locales are not implemented in libc.  Rather, libintl
17841      imitates locale dependent behaviour by looking at the environment
17842      variables, and all locales use the UTF-8 encoding.  But BeOS does not
17843      implement the Turkish upper-/lowercase mappings.  Therefore, let this
17844      program return 1 on BeOS.  */
17845   /* Check whether the given locale name is recognized by the system.  */
17846   if (setlocale (LC_ALL, "") == NULL) return 1;
17847   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
17848      On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
17849      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
17850      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
17851      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
17852      some unit tests fail.  */
17853 #if HAVE_LANGINFO_CODESET
17854   {
17855     const char *cs = nl_langinfo (CODESET);
17856     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
17857       return 1;
17858   }
17859 #endif
17860 #ifdef __CYGWIN__
17861   /* On Cygwin, avoid locale names without encoding suffix, because the
17862      locale_charset() function relies on the encoding suffix.  Note that
17863      LC_ALL is set on the command line.  */
17864   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
17865 #endif
17866   /* Check whether in the abbreviation of the eighth month, the second
17867      character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
17868      two bytes long, with UTF-8 encoding.  */
17869   t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
17870   if (strftime (buf, sizeof (buf), "%b", &t) < 4
17871       || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
17872     return 1;
17873   /* Check whether the upper-/lowercase mappings are as expected for
17874      Turkish.  */
17875   if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
17876       || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
17877     return 1;
17878   return 0;
17879 }
17880
17881 _ACEOF
17882     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17883   (eval $ac_link) 2>&5
17884   ac_status=$?
17885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17886   test $ac_status = 0; } && test -s conftest$ac_exeext; then
17887       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
17888       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
17889       # configure script would override the LC_ALL setting. Likewise for
17890       # LC_CTYPE, which is also set at the beginning of the configure script.
17891       # Test for the usual locale name.
17892       if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17893         gt_cv_locale_tr_utf8=tr_TR
17894       else
17895         # Test for the locale name with explicit encoding suffix.
17896         if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17897           gt_cv_locale_tr_utf8=tr_TR.UTF-8
17898         else
17899           # Test for the Solaris 7 locale name.
17900           if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
17901             gt_cv_locale_tr_utf8=tr.UTF-8
17902           else
17903             # None found.
17904             gt_cv_locale_tr_utf8=none
17905           fi
17906         fi
17907       fi
17908     else
17909       gt_cv_locale_tr_utf8=none
17910     fi
17911     rm -fr conftest*
17912
17913 fi
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
17915 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
17916   LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
17917
17918
17919
17920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17921 $as_echo_n "checking for wchar_t... " >&6; }
17922 if test "${gt_cv_c_wchar_t+set}" = set; then :
17923   $as_echo_n "(cached) " >&6
17924 else
17925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h.  */
17927 #include <stddef.h>
17928        wchar_t foo = (wchar_t)'\0';
17929 int
17930 main ()
17931 {
17932
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_compile "$LINENO"; then :
17938   gt_cv_c_wchar_t=yes
17939 else
17940   gt_cv_c_wchar_t=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943 fi
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17945 $as_echo "$gt_cv_c_wchar_t" >&6; }
17946   if test $gt_cv_c_wchar_t = yes; then
17947
17948 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17949
17950   fi
17951
17952
17953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17954 $as_echo_n "checking for wint_t... " >&6; }
17955 if test "${gt_cv_c_wint_t+set}" = set; then :
17956   $as_echo_n "(cached) " >&6
17957 else
17958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h.  */
17960
17961 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17962    <wchar.h>.
17963    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17964    before <wchar.h>.  */
17965 #include <stddef.h>
17966 #include <stdio.h>
17967 #include <time.h>
17968 #include <wchar.h>
17969        wint_t foo = (wchar_t)'\0';
17970 int
17971 main ()
17972 {
17973
17974   ;
17975   return 0;
17976 }
17977 _ACEOF
17978 if ac_fn_c_try_compile "$LINENO"; then :
17979   gt_cv_c_wint_t=yes
17980 else
17981   gt_cv_c_wint_t=no
17982 fi
17983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17984 fi
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17986 $as_echo "$gt_cv_c_wint_t" >&6; }
17987   if test $gt_cv_c_wint_t = yes; then
17988
17989 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
17990
17991   fi
17992
17993
17994
17995
17996
17997
17998
17999
18000   LIBTESTS_LIBDEPS="$gltests_libdeps"
18001
18002
18003
18004 # Check if locale stuff works
18005
18006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18007 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18008 if test "${am_cv_langinfo_codeset+set}" = set; then :
18009   $as_echo_n "(cached) " >&6
18010 else
18011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h.  */
18013 #include <langinfo.h>
18014 int
18015 main ()
18016 {
18017 char* cs = nl_langinfo(CODESET); return !cs;
18018   ;
18019   return 0;
18020 }
18021 _ACEOF
18022 if ac_fn_c_try_link "$LINENO"; then :
18023   am_cv_langinfo_codeset=yes
18024 else
18025   am_cv_langinfo_codeset=no
18026 fi
18027 rm -f core conftest.err conftest.$ac_objext \
18028     conftest$ac_exeext conftest.$ac_ext
18029
18030 fi
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
18032 $as_echo "$am_cv_langinfo_codeset" >&6; }
18033   if test $am_cv_langinfo_codeset = yes; then
18034
18035 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18036
18037   fi
18038
18039
18040 # Make it possible to disable TLD code.
18041 # Check whether --enable-tld was given.
18042 if test "${enable_tld+set}" = set; then :
18043   enableval=$enable_tld; enable_tld=$enableval
18044 else
18045   enable_tld=yes
18046 fi
18047
18048  if test "$enable_tld" != "no"; then
18049   TLD_TRUE=
18050   TLD_FALSE='#'
18051 else
18052   TLD_TRUE='#'
18053   TLD_FALSE=
18054 fi
18055
18056 if test "$enable_tld" != "no"; then
18057
18058 $as_echo "#define WITH_TLD 1" >>confdefs.h
18059
18060 fi
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TLD API for specific TLD rules should be built" >&5
18062 $as_echo_n "checking if TLD API for specific TLD rules should be built... " >&6; }
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tld" >&5
18064 $as_echo "$enable_tld" >&6; }
18065
18066 # Check for gtk-doc.
18067
18068
18069 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18070         if test -n "$ac_tool_prefix"; then
18071   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18072 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18074 $as_echo_n "checking for $ac_word... " >&6; }
18075 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18076   $as_echo_n "(cached) " >&6
18077 else
18078   case $PKG_CONFIG in
18079   [\\/]* | ?:[\\/]*)
18080   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18081   ;;
18082   *)
18083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084 for as_dir in $PATH
18085 do
18086   IFS=$as_save_IFS
18087   test -z "$as_dir" && as_dir=.
18088     for ac_exec_ext in '' $ac_executable_extensions; do
18089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18090     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18092     break 2
18093   fi
18094 done
18095   done
18096 IFS=$as_save_IFS
18097
18098   ;;
18099 esac
18100 fi
18101 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18102 if test -n "$PKG_CONFIG"; then
18103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18104 $as_echo "$PKG_CONFIG" >&6; }
18105 else
18106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18108 fi
18109
18110
18111 fi
18112 if test -z "$ac_cv_path_PKG_CONFIG"; then
18113   ac_pt_PKG_CONFIG=$PKG_CONFIG
18114   # Extract the first word of "pkg-config", so it can be a program name with args.
18115 set dummy pkg-config; ac_word=$2
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18117 $as_echo_n "checking for $ac_word... " >&6; }
18118 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
18119   $as_echo_n "(cached) " >&6
18120 else
18121   case $ac_pt_PKG_CONFIG in
18122   [\\/]* | ?:[\\/]*)
18123   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18124   ;;
18125   *)
18126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18127 for as_dir in $PATH
18128 do
18129   IFS=$as_save_IFS
18130   test -z "$as_dir" && as_dir=.
18131     for ac_exec_ext in '' $ac_executable_extensions; do
18132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18133     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18135     break 2
18136   fi
18137 done
18138   done
18139 IFS=$as_save_IFS
18140
18141   ;;
18142 esac
18143 fi
18144 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18145 if test -n "$ac_pt_PKG_CONFIG"; then
18146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18147 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18148 else
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150 $as_echo "no" >&6; }
18151 fi
18152
18153   if test "x$ac_pt_PKG_CONFIG" = x; then
18154     PKG_CONFIG=""
18155   else
18156     case $cross_compiling:$ac_tool_warned in
18157 yes:)
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18160 ac_tool_warned=yes ;;
18161 esac
18162     PKG_CONFIG=$ac_pt_PKG_CONFIG
18163   fi
18164 else
18165   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18166 fi
18167
18168 fi
18169 if test -n "$PKG_CONFIG"; then
18170         _pkg_min_version=0.9.0
18171         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18172 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18173         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18174                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18175 $as_echo "yes" >&6; }
18176         else
18177                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18178 $as_echo "no" >&6; }
18179                 PKG_CONFIG=""
18180         fi
18181
18182 fi
18183
18184
18185     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18186 set dummy gtkdoc-check; ac_word=$2
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18188 $as_echo_n "checking for $ac_word... " >&6; }
18189 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
18190   $as_echo_n "(cached) " >&6
18191 else
18192   case $GTKDOC_CHECK in
18193   [\\/]* | ?:[\\/]*)
18194   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
18195   ;;
18196   *)
18197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18198 for as_dir in $PATH
18199 do
18200   IFS=$as_save_IFS
18201   test -z "$as_dir" && as_dir=.
18202     for ac_exec_ext in '' $ac_executable_extensions; do
18203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18204     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
18205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18206     break 2
18207   fi
18208 done
18209   done
18210 IFS=$as_save_IFS
18211
18212   ;;
18213 esac
18214 fi
18215 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
18216 if test -n "$GTKDOC_CHECK"; then
18217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18218 $as_echo "$GTKDOC_CHECK" >&6; }
18219 else
18220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221 $as_echo "no" >&6; }
18222 fi
18223
18224
18225   for ac_prog in gtkdoc-rebase
18226 do
18227   # Extract the first word of "$ac_prog", so it can be a program name with args.
18228 set dummy $ac_prog; ac_word=$2
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18230 $as_echo_n "checking for $ac_word... " >&6; }
18231 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
18232   $as_echo_n "(cached) " >&6
18233 else
18234   case $GTKDOC_REBASE in
18235   [\\/]* | ?:[\\/]*)
18236   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18237   ;;
18238   *)
18239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18240 for as_dir in $PATH
18241 do
18242   IFS=$as_save_IFS
18243   test -z "$as_dir" && as_dir=.
18244     for ac_exec_ext in '' $ac_executable_extensions; do
18245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18246     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18248     break 2
18249   fi
18250 done
18251   done
18252 IFS=$as_save_IFS
18253
18254   ;;
18255 esac
18256 fi
18257 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18258 if test -n "$GTKDOC_REBASE"; then
18259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18260 $as_echo "$GTKDOC_REBASE" >&6; }
18261 else
18262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18263 $as_echo "no" >&6; }
18264 fi
18265
18266
18267   test -n "$GTKDOC_REBASE" && break
18268 done
18269 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18270
18271   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18272 set dummy gtkdoc-mkpdf; ac_word=$2
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18274 $as_echo_n "checking for $ac_word... " >&6; }
18275 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
18276   $as_echo_n "(cached) " >&6
18277 else
18278   case $GTKDOC_MKPDF in
18279   [\\/]* | ?:[\\/]*)
18280   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18281   ;;
18282   *)
18283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18284 for as_dir in $PATH
18285 do
18286   IFS=$as_save_IFS
18287   test -z "$as_dir" && as_dir=.
18288     for ac_exec_ext in '' $ac_executable_extensions; do
18289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18290     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18292     break 2
18293   fi
18294 done
18295   done
18296 IFS=$as_save_IFS
18297
18298   ;;
18299 esac
18300 fi
18301 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18302 if test -n "$GTKDOC_MKPDF"; then
18303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18304 $as_echo "$GTKDOC_MKPDF" >&6; }
18305 else
18306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 $as_echo "no" >&6; }
18308 fi
18309
18310
18311
18312
18313 # Check whether --with-html-dir was given.
18314 if test "${with_html_dir+set}" = set; then :
18315   withval=$with_html_dir;
18316 else
18317   with_html_dir='${datadir}/gtk-doc/html'
18318 fi
18319
18320   HTML_DIR="$with_html_dir"
18321
18322
18323     # Check whether --enable-gtk-doc was given.
18324 if test "${enable_gtk_doc+set}" = set; then :
18325   enableval=$enable_gtk_doc;
18326 else
18327   enable_gtk_doc=no
18328 fi
18329
18330
18331   if test x$enable_gtk_doc = xyes; then
18332     if test -n "$PKG_CONFIG" && \
18333     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
18334   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
18335   ac_status=$?
18336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18337   test $ac_status = 0; }; then
18338   :
18339 else
18340   as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
18341 fi
18342   fi
18343
18344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18345 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18347 $as_echo "$enable_gtk_doc" >&6; }
18348
18349     # Check whether --enable-gtk-doc-html was given.
18350 if test "${enable_gtk_doc_html+set}" = set; then :
18351   enableval=$enable_gtk_doc_html;
18352 else
18353   enable_gtk_doc_html=yes
18354 fi
18355
18356     # Check whether --enable-gtk-doc-pdf was given.
18357 if test "${enable_gtk_doc_pdf+set}" = set; then :
18358   enableval=$enable_gtk_doc_pdf;
18359 else
18360   enable_gtk_doc_pdf=no
18361 fi
18362
18363
18364   if test -n "$GTKDOC_MKPDF"; then
18365     enable_gtk_doc_pdf=no
18366   fi
18367
18368
18369    if test x$enable_gtk_doc = xyes; then
18370   ENABLE_GTK_DOC_TRUE=
18371   ENABLE_GTK_DOC_FALSE='#'
18372 else
18373   ENABLE_GTK_DOC_TRUE='#'
18374   ENABLE_GTK_DOC_FALSE=
18375 fi
18376
18377    if test x$enable_gtk_doc_html = xyes; then
18378   GTK_DOC_BUILD_HTML_TRUE=
18379   GTK_DOC_BUILD_HTML_FALSE='#'
18380 else
18381   GTK_DOC_BUILD_HTML_TRUE='#'
18382   GTK_DOC_BUILD_HTML_FALSE=
18383 fi
18384
18385    if test x$enable_gtk_doc_pdf = xyes; then
18386   GTK_DOC_BUILD_PDF_TRUE=
18387   GTK_DOC_BUILD_PDF_FALSE='#'
18388 else
18389   GTK_DOC_BUILD_PDF_TRUE='#'
18390   GTK_DOC_BUILD_PDF_FALSE=
18391 fi
18392
18393    if test -n "$LIBTOOL"; then
18394   GTK_DOC_USE_LIBTOOL_TRUE=
18395   GTK_DOC_USE_LIBTOOL_FALSE='#'
18396 else
18397   GTK_DOC_USE_LIBTOOL_TRUE='#'
18398   GTK_DOC_USE_LIBTOOL_FALSE=
18399 fi
18400
18401    if test -n "$GTKDOC_REBASE"; then
18402   GTK_DOC_USE_REBASE_TRUE=
18403   GTK_DOC_USE_REBASE_FALSE='#'
18404 else
18405   GTK_DOC_USE_REBASE_TRUE='#'
18406   GTK_DOC_USE_REBASE_FALSE=
18407 fi
18408
18409
18410
18411 # Check for java
18412 # Check whether --enable-java was given.
18413 if test "${enable_java+set}" = set; then :
18414   enableval=$enable_java;
18415 else
18416   enable_java=no
18417 fi
18418
18419
18420 if test -n "$ac_tool_prefix"; then
18421   for ac_prog in gcj
18422   do
18423     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18426 $as_echo_n "checking for $ac_word... " >&6; }
18427 if test "${ac_cv_prog_GCJ+set}" = set; then :
18428   $as_echo_n "(cached) " >&6
18429 else
18430   if test -n "$GCJ"; then
18431   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
18432 else
18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434 for as_dir in $PATH
18435 do
18436   IFS=$as_save_IFS
18437   test -z "$as_dir" && as_dir=.
18438     for ac_exec_ext in '' $ac_executable_extensions; do
18439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18440     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
18441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18442     break 2
18443   fi
18444 done
18445   done
18446 IFS=$as_save_IFS
18447
18448 fi
18449 fi
18450 GCJ=$ac_cv_prog_GCJ
18451 if test -n "$GCJ"; then
18452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
18453 $as_echo "$GCJ" >&6; }
18454 else
18455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18456 $as_echo "no" >&6; }
18457 fi
18458
18459
18460     test -n "$GCJ" && break
18461   done
18462 fi
18463 if test -z "$GCJ"; then
18464   ac_ct_GCJ=$GCJ
18465   for ac_prog in gcj
18466 do
18467   # Extract the first word of "$ac_prog", so it can be a program name with args.
18468 set dummy $ac_prog; ac_word=$2
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18470 $as_echo_n "checking for $ac_word... " >&6; }
18471 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
18472   $as_echo_n "(cached) " >&6
18473 else
18474   if test -n "$ac_ct_GCJ"; then
18475   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
18476 else
18477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478 for as_dir in $PATH
18479 do
18480   IFS=$as_save_IFS
18481   test -z "$as_dir" && as_dir=.
18482     for ac_exec_ext in '' $ac_executable_extensions; do
18483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18484     ac_cv_prog_ac_ct_GCJ="$ac_prog"
18485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18486     break 2
18487   fi
18488 done
18489   done
18490 IFS=$as_save_IFS
18491
18492 fi
18493 fi
18494 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
18495 if test -n "$ac_ct_GCJ"; then
18496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
18497 $as_echo "$ac_ct_GCJ" >&6; }
18498 else
18499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500 $as_echo "no" >&6; }
18501 fi
18502
18503
18504   test -n "$ac_ct_GCJ" && break
18505 done
18506
18507   if test "x$ac_ct_GCJ" = x; then
18508     GCJ="gcj"
18509   else
18510     case $cross_compiling:$ac_tool_warned in
18511 yes:)
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18514 ac_tool_warned=yes ;;
18515 esac
18516     GCJ=$ac_ct_GCJ
18517   fi
18518 fi
18519
18520 test -z "$GCJ" && as_fn_error $? "no acceptable gcj found in \$PATH" "$LINENO" 5
18521 if test "x${GCJFLAGS-unset}" = xunset; then
18522    GCJFLAGS="-g -O2"
18523 fi
18524
18525
18526 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
18527
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18529 $as_echo_n "checking dependency style of $depcc... " >&6; }
18530 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
18531   $as_echo_n "(cached) " >&6
18532 else
18533   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18534   # We make a subdir and do the tests there.  Otherwise we can end up
18535   # making bogus files that we don't know about and never remove.  For
18536   # instance it was reported that on HP-UX the gcc test will end up
18537   # making a dummy file named `D' -- because `-MD' means `put the output
18538   # in D'.
18539   mkdir conftest.dir
18540   # Copy depcomp to subdir because otherwise we won't find it if we're
18541   # using a relative directory.
18542   cp "$am_depcomp" conftest.dir
18543   cd conftest.dir
18544   # We will build objects and dependencies in a subdirectory because
18545   # it helps to detect inapplicable dependency modes.  For instance
18546   # both Tru64's cc and ICC support -MD to output dependencies as a
18547   # side effect of compilation, but ICC will put the dependencies in
18548   # the current directory while Tru64 will put them in the object
18549   # directory.
18550   mkdir sub
18551
18552   am_cv_GCJ_dependencies_compiler_type=none
18553   if test "$am_compiler_list" = ""; then
18554      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18555   fi
18556   am__universal=false
18557
18558
18559   for depmode in $am_compiler_list; do
18560     # Setup a source with many dependencies, because some compilers
18561     # like to wrap large dependency lists on column 80 (with \), and
18562     # we should not choose a depcomp mode which is confused by this.
18563     #
18564     # We need to recreate these files for each test, as the compiler may
18565     # overwrite some of them when testing with obscure command lines.
18566     # This happens at least with the AIX C compiler.
18567     : > sub/conftest.c
18568     for i in 1 2 3 4 5 6; do
18569       echo '#include "conftst'$i'.h"' >> sub/conftest.c
18570       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18571       # Solaris 8's {/usr,}/bin/sh.
18572       touch sub/conftst$i.h
18573     done
18574     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18575
18576     # We check with `-c' and `-o' for the sake of the "dashmstdout"
18577     # mode.  It turns out that the SunPro C++ compiler does not properly
18578     # handle `-M -o', and we need to detect this.  Also, some Intel
18579     # versions had trouble with output in subdirs
18580     am__obj=sub/conftest.${OBJEXT-o}
18581     am__minus_obj="-o $am__obj"
18582     case $depmode in
18583     gcc)
18584       # This depmode causes a compiler race in universal mode.
18585       test "$am__universal" = false || continue
18586       ;;
18587     nosideeffect)
18588       # after this tag, mechanisms are not by side-effect, so they'll
18589       # only be used when explicitly requested
18590       if test "x$enable_dependency_tracking" = xyes; then
18591         continue
18592       else
18593         break
18594       fi
18595       ;;
18596     msvisualcpp | msvcmsys)
18597       # This compiler won't grok `-c -o', but also, the minuso test has
18598       # not run yet.  These depmodes are late enough in the game, and
18599       # so weak that their functioning should not be impacted.
18600       am__obj=conftest.${OBJEXT-o}
18601       am__minus_obj=
18602       ;;
18603     none) break ;;
18604     esac
18605     if depmode=$depmode \
18606        source=sub/conftest.c object=$am__obj \
18607        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18608        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18609          >/dev/null 2>conftest.err &&
18610        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18611        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18612        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18613        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18614       # icc doesn't choke on unknown options, it will just issue warnings
18615       # or remarks (even with -Werror).  So we grep stderr for any message
18616       # that says an option was ignored or not supported.
18617       # When given -MP, icc 7.0 and 7.1 complain thusly:
18618       #   icc: Command line warning: ignoring option '-M'; no argument required
18619       # The diagnosis changed in icc 8.0:
18620       #   icc: Command line remark: option '-MP' not supported
18621       if (grep 'ignoring option' conftest.err ||
18622           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18623         am_cv_GCJ_dependencies_compiler_type=$depmode
18624         break
18625       fi
18626     fi
18627   done
18628
18629   cd ..
18630   rm -rf conftest.dir
18631 else
18632   am_cv_GCJ_dependencies_compiler_type=none
18633 fi
18634
18635 fi
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
18637 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
18638 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
18639
18640  if
18641   test "x$enable_dependency_tracking" != xno \
18642   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
18643   am__fastdepGCJ_TRUE=
18644   am__fastdepGCJ_FALSE='#'
18645 else
18646   am__fastdepGCJ_TRUE='#'
18647   am__fastdepGCJ_FALSE=
18648 fi
18649
18650
18651
18652 if test -n "$ac_tool_prefix"; then
18653   for ac_prog in gcj
18654   do
18655     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18658 $as_echo_n "checking for $ac_word... " >&6; }
18659 if test "${ac_cv_prog_GCJ+set}" = set; then :
18660   $as_echo_n "(cached) " >&6
18661 else
18662   if test -n "$GCJ"; then
18663   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
18664 else
18665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666 for as_dir in $PATH
18667 do
18668   IFS=$as_save_IFS
18669   test -z "$as_dir" && as_dir=.
18670     for ac_exec_ext in '' $ac_executable_extensions; do
18671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18672     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
18673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18674     break 2
18675   fi
18676 done
18677   done
18678 IFS=$as_save_IFS
18679
18680 fi
18681 fi
18682 GCJ=$ac_cv_prog_GCJ
18683 if test -n "$GCJ"; then
18684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
18685 $as_echo "$GCJ" >&6; }
18686 else
18687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18689 fi
18690
18691
18692     test -n "$GCJ" && break
18693   done
18694 fi
18695 if test -z "$GCJ"; then
18696   ac_ct_GCJ=$GCJ
18697   for ac_prog in gcj
18698 do
18699   # Extract the first word of "$ac_prog", so it can be a program name with args.
18700 set dummy $ac_prog; ac_word=$2
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18702 $as_echo_n "checking for $ac_word... " >&6; }
18703 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
18704   $as_echo_n "(cached) " >&6
18705 else
18706   if test -n "$ac_ct_GCJ"; then
18707   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
18708 else
18709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18710 for as_dir in $PATH
18711 do
18712   IFS=$as_save_IFS
18713   test -z "$as_dir" && as_dir=.
18714     for ac_exec_ext in '' $ac_executable_extensions; do
18715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18716     ac_cv_prog_ac_ct_GCJ="$ac_prog"
18717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18718     break 2
18719   fi
18720 done
18721   done
18722 IFS=$as_save_IFS
18723
18724 fi
18725 fi
18726 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
18727 if test -n "$ac_ct_GCJ"; then
18728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
18729 $as_echo "$ac_ct_GCJ" >&6; }
18730 else
18731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732 $as_echo "no" >&6; }
18733 fi
18734
18735
18736   test -n "$ac_ct_GCJ" && break
18737 done
18738
18739   if test "x$ac_ct_GCJ" = x; then
18740     GCJ="gcj"
18741   else
18742     case $cross_compiling:$ac_tool_warned in
18743 yes:)
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18746 ac_tool_warned=yes ;;
18747 esac
18748     GCJ=$ac_ct_GCJ
18749   fi
18750 fi
18751
18752 test -z "$GCJ" && as_fn_error $? "no acceptable gcj found in \$PATH" "$LINENO" 5
18753 if test "x${GCJFLAGS-unset}" = xunset; then
18754    GCJFLAGS="-g -O2"
18755 fi
18756
18757
18758 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
18759
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18761 $as_echo_n "checking dependency style of $depcc... " >&6; }
18762 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
18763   $as_echo_n "(cached) " >&6
18764 else
18765   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18766   # We make a subdir and do the tests there.  Otherwise we can end up
18767   # making bogus files that we don't know about and never remove.  For
18768   # instance it was reported that on HP-UX the gcc test will end up
18769   # making a dummy file named `D' -- because `-MD' means `put the output
18770   # in D'.
18771   mkdir conftest.dir
18772   # Copy depcomp to subdir because otherwise we won't find it if we're
18773   # using a relative directory.
18774   cp "$am_depcomp" conftest.dir
18775   cd conftest.dir
18776   # We will build objects and dependencies in a subdirectory because
18777   # it helps to detect inapplicable dependency modes.  For instance
18778   # both Tru64's cc and ICC support -MD to output dependencies as a
18779   # side effect of compilation, but ICC will put the dependencies in
18780   # the current directory while Tru64 will put them in the object
18781   # directory.
18782   mkdir sub
18783
18784   am_cv_GCJ_dependencies_compiler_type=none
18785   if test "$am_compiler_list" = ""; then
18786      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18787   fi
18788   am__universal=false
18789
18790
18791   for depmode in $am_compiler_list; do
18792     # Setup a source with many dependencies, because some compilers
18793     # like to wrap large dependency lists on column 80 (with \), and
18794     # we should not choose a depcomp mode which is confused by this.
18795     #
18796     # We need to recreate these files for each test, as the compiler may
18797     # overwrite some of them when testing with obscure command lines.
18798     # This happens at least with the AIX C compiler.
18799     : > sub/conftest.c
18800     for i in 1 2 3 4 5 6; do
18801       echo '#include "conftst'$i'.h"' >> sub/conftest.c
18802       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18803       # Solaris 8's {/usr,}/bin/sh.
18804       touch sub/conftst$i.h
18805     done
18806     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18807
18808     # We check with `-c' and `-o' for the sake of the "dashmstdout"
18809     # mode.  It turns out that the SunPro C++ compiler does not properly
18810     # handle `-M -o', and we need to detect this.  Also, some Intel
18811     # versions had trouble with output in subdirs
18812     am__obj=sub/conftest.${OBJEXT-o}
18813     am__minus_obj="-o $am__obj"
18814     case $depmode in
18815     gcc)
18816       # This depmode causes a compiler race in universal mode.
18817       test "$am__universal" = false || continue
18818       ;;
18819     nosideeffect)
18820       # after this tag, mechanisms are not by side-effect, so they'll
18821       # only be used when explicitly requested
18822       if test "x$enable_dependency_tracking" = xyes; then
18823         continue
18824       else
18825         break
18826       fi
18827       ;;
18828     msvisualcpp | msvcmsys)
18829       # This compiler won't grok `-c -o', but also, the minuso test has
18830       # not run yet.  These depmodes are late enough in the game, and
18831       # so weak that their functioning should not be impacted.
18832       am__obj=conftest.${OBJEXT-o}
18833       am__minus_obj=
18834       ;;
18835     none) break ;;
18836     esac
18837     if depmode=$depmode \
18838        source=sub/conftest.c object=$am__obj \
18839        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18840        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18841          >/dev/null 2>conftest.err &&
18842        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18843        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18844        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18845        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18846       # icc doesn't choke on unknown options, it will just issue warnings
18847       # or remarks (even with -Werror).  So we grep stderr for any message
18848       # that says an option was ignored or not supported.
18849       # When given -MP, icc 7.0 and 7.1 complain thusly:
18850       #   icc: Command line warning: ignoring option '-M'; no argument required
18851       # The diagnosis changed in icc 8.0:
18852       #   icc: Command line remark: option '-MP' not supported
18853       if (grep 'ignoring option' conftest.err ||
18854           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18855         am_cv_GCJ_dependencies_compiler_type=$depmode
18856         break
18857       fi
18858     fi
18859   done
18860
18861   cd ..
18862   rm -rf conftest.dir
18863 else
18864   am_cv_GCJ_dependencies_compiler_type=none
18865 fi
18866
18867 fi
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
18869 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
18870 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
18871
18872  if
18873   test "x$enable_dependency_tracking" != xno \
18874   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
18875   am__fastdepGCJ_TRUE=
18876   am__fastdepGCJ_FALSE='#'
18877 else
18878   am__fastdepGCJ_TRUE='#'
18879   am__fastdepGCJ_FALSE=
18880 fi
18881
18882
18883
18884
18885
18886 # Source file extension for Java test sources.
18887 ac_ext=java
18888
18889 # Object file extension for compiled Java test sources.
18890 objext=o
18891 objext_GCJ=$objext
18892
18893 # Code to be used in simple compile tests
18894 lt_simple_compile_test_code="class foo {}"
18895
18896 # Code to be used in simple link tests
18897 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18898
18899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18900
18901
18902
18903
18904
18905
18906 # If no C compiler was specified, use CC.
18907 LTCC=${LTCC-"$CC"}
18908
18909 # If no C compiler flags were specified, use CFLAGS.
18910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18911
18912 # Allow CC to be a program name with arguments.
18913 compiler=$CC
18914
18915
18916 # save warnings/boilerplate of simple test code
18917 ac_outfile=conftest.$ac_objext
18918 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18920 _lt_compiler_boilerplate=`cat conftest.err`
18921 $RM conftest*
18922
18923 ac_outfile=conftest.$ac_objext
18924 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18926 _lt_linker_boilerplate=`cat conftest.err`
18927 $RM -r conftest*
18928
18929
18930 # Allow CC to be a program name with arguments.
18931 lt_save_CC="$CC"
18932 lt_save_GCC=$GCC
18933 GCC=yes
18934 CC=${GCJ-"gcj"}
18935 compiler=$CC
18936 compiler_GCJ=$CC
18937 LD_GCJ="$LD"
18938 for cc_temp in $compiler""; do
18939   case $cc_temp in
18940     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18941     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18942     \-*) ;;
18943     *) break;;
18944   esac
18945 done
18946 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18947
18948
18949 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18950 archive_cmds_need_lc_GCJ=no
18951
18952 old_archive_cmds_GCJ=$old_archive_cmds
18953
18954 ## CAVEAT EMPTOR:
18955 ## There is no encapsulation within the following macros, do not change
18956 ## the running order or otherwise move them around unless you know exactly
18957 ## what you are doing...
18958 if test -n "$compiler"; then
18959
18960 lt_prog_compiler_no_builtin_flag_GCJ=
18961
18962 if test "$GCC" = yes; then
18963   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18964
18965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18966 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
18968   $as_echo_n "(cached) " >&6
18969 else
18970   lt_cv_prog_compiler_rtti_exceptions=no
18971    ac_outfile=conftest.$ac_objext
18972    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18973    lt_compiler_flag="-fno-rtti -fno-exceptions"
18974    # Insert the option either (1) after the last *FLAGS variable, or
18975    # (2) before a word containing "conftest.", or (3) at the end.
18976    # Note that $ac_compile itself does not contain backslashes and begins
18977    # with a dollar sign (not a hyphen), so the echo should work correctly.
18978    # The option is referenced via a variable to avoid confusing sed.
18979    lt_compile=`echo "$ac_compile" | $SED \
18980    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18982    -e 's:$: $lt_compiler_flag:'`
18983    (eval echo "\"\$as_me:18983: $lt_compile\"" >&5)
18984    (eval "$lt_compile" 2>conftest.err)
18985    ac_status=$?
18986    cat conftest.err >&5
18987    echo "$as_me:18987: \$? = $ac_status" >&5
18988    if (exit $ac_status) && test -s "$ac_outfile"; then
18989      # The compiler can only warn and ignore the option if not recognized
18990      # So say no if there are warnings other than the usual output.
18991      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18992      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18993      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18994        lt_cv_prog_compiler_rtti_exceptions=yes
18995      fi
18996    fi
18997    $RM conftest*
18998
18999 fi
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19001 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19002
19003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19004     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19005 else
19006     :
19007 fi
19008
19009 fi
19010
19011
19012
19013   lt_prog_compiler_wl_GCJ=
19014 lt_prog_compiler_pic_GCJ=
19015 lt_prog_compiler_static_GCJ=
19016
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19018 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19019
19020   if test "$GCC" = yes; then
19021     lt_prog_compiler_wl_GCJ='-Wl,'
19022     lt_prog_compiler_static_GCJ='-static'
19023
19024     case $host_os in
19025       aix*)
19026       # All AIX code is PIC.
19027       if test "$host_cpu" = ia64; then
19028         # AIX 5 now supports IA64 processor
19029         lt_prog_compiler_static_GCJ='-Bstatic'
19030       fi
19031       ;;
19032
19033     amigaos*)
19034       case $host_cpu in
19035       powerpc)
19036             # see comment about AmigaOS4 .so support
19037             lt_prog_compiler_pic_GCJ='-fPIC'
19038         ;;
19039       m68k)
19040             # FIXME: we need at least 68020 code to build shared libraries, but
19041             # adding the `-m68020' flag to GCC prevents building anything better,
19042             # like `-m68040'.
19043             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19044         ;;
19045       esac
19046       ;;
19047
19048     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19049       # PIC is the default for these OSes.
19050       ;;
19051
19052     mingw* | cygwin* | pw32* | os2* | cegcc*)
19053       # This hack is so that the source file can tell whether it is being
19054       # built for inclusion in a dll (and should export symbols for example).
19055       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19056       # (--disable-auto-import) libraries
19057
19058       ;;
19059
19060     darwin* | rhapsody*)
19061       # PIC is the default on this platform
19062       # Common symbols not allowed in MH_DYLIB files
19063       lt_prog_compiler_pic_GCJ='-fno-common'
19064       ;;
19065
19066     hpux*)
19067       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19068       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19069       # sets the default TLS model and affects inlining.
19070       case $host_cpu in
19071       hppa*64*)
19072         # +Z the default
19073         ;;
19074       *)
19075         lt_prog_compiler_pic_GCJ='-fPIC'
19076         ;;
19077       esac
19078       ;;
19079
19080     interix[3-9]*)
19081       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19082       # Instead, we relocate shared libraries at runtime.
19083       ;;
19084
19085     msdosdjgpp*)
19086       # Just because we use GCC doesn't mean we suddenly get shared libraries
19087       # on systems that don't support them.
19088       lt_prog_compiler_can_build_shared_GCJ=no
19089       enable_shared=no
19090       ;;
19091
19092     *nto* | *qnx*)
19093       # QNX uses GNU C++, but need to define -shared option too, otherwise
19094       # it will coredump.
19095       lt_prog_compiler_pic_GCJ='-fPIC -shared'
19096       ;;
19097
19098     sysv4*MP*)
19099       if test -d /usr/nec; then
19100         lt_prog_compiler_pic_GCJ=-Kconform_pic
19101       fi
19102       ;;
19103
19104     *)
19105       lt_prog_compiler_pic_GCJ='-fPIC'
19106       ;;
19107     esac
19108   else
19109     # PORTME Check for flag to pass linker flags through the system compiler.
19110     case $host_os in
19111     aix*)
19112       lt_prog_compiler_wl_GCJ='-Wl,'
19113       if test "$host_cpu" = ia64; then
19114         # AIX 5 now supports IA64 processor
19115         lt_prog_compiler_static_GCJ='-Bstatic'
19116       else
19117         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19118       fi
19119       ;;
19120
19121     mingw* | cygwin* | pw32* | os2* | cegcc*)
19122       # This hack is so that the source file can tell whether it is being
19123       # built for inclusion in a dll (and should export symbols for example).
19124
19125       ;;
19126
19127     hpux9* | hpux10* | hpux11*)
19128       lt_prog_compiler_wl_GCJ='-Wl,'
19129       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19130       # not for PA HP-UX.
19131       case $host_cpu in
19132       hppa*64*|ia64*)
19133         # +Z the default
19134         ;;
19135       *)
19136         lt_prog_compiler_pic_GCJ='+Z'
19137         ;;
19138       esac
19139       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19140       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19141       ;;
19142
19143     irix5* | irix6* | nonstopux*)
19144       lt_prog_compiler_wl_GCJ='-Wl,'
19145       # PIC (with -KPIC) is the default.
19146       lt_prog_compiler_static_GCJ='-non_shared'
19147       ;;
19148
19149     linux* | k*bsd*-gnu)
19150       case $cc_basename in
19151       # old Intel for x86_64 which still supported -KPIC.
19152       ecc*)
19153         lt_prog_compiler_wl_GCJ='-Wl,'
19154         lt_prog_compiler_pic_GCJ='-KPIC'
19155         lt_prog_compiler_static_GCJ='-static'
19156         ;;
19157       # icc used to be incompatible with GCC.
19158       # ICC 10 doesn't accept -KPIC any more.
19159       icc* | ifort*)
19160         lt_prog_compiler_wl_GCJ='-Wl,'
19161         lt_prog_compiler_pic_GCJ='-fPIC'
19162         lt_prog_compiler_static_GCJ='-static'
19163         ;;
19164       # Lahey Fortran 8.1.
19165       lf95*)
19166         lt_prog_compiler_wl_GCJ='-Wl,'
19167         lt_prog_compiler_pic_GCJ='--shared'
19168         lt_prog_compiler_static_GCJ='--static'
19169         ;;
19170       pgcc* | pgf77* | pgf90* | pgf95*)
19171         # Portland Group compilers (*not* the Pentium gcc compiler,
19172         # which looks to be a dead project)
19173         lt_prog_compiler_wl_GCJ='-Wl,'
19174         lt_prog_compiler_pic_GCJ='-fpic'
19175         lt_prog_compiler_static_GCJ='-Bstatic'
19176         ;;
19177       ccc*)
19178         lt_prog_compiler_wl_GCJ='-Wl,'
19179         # All Alpha code is PIC.
19180         lt_prog_compiler_static_GCJ='-non_shared'
19181         ;;
19182       xl*)
19183         # IBM XL C 8.0/Fortran 10.1 on PPC
19184         lt_prog_compiler_wl_GCJ='-Wl,'
19185         lt_prog_compiler_pic_GCJ='-qpic'
19186         lt_prog_compiler_static_GCJ='-qstaticlink'
19187         ;;
19188       *)
19189         case `$CC -V 2>&1 | sed 5q` in
19190         *Sun\ C*)
19191           # Sun C 5.9
19192           lt_prog_compiler_pic_GCJ='-KPIC'
19193           lt_prog_compiler_static_GCJ='-Bstatic'
19194           lt_prog_compiler_wl_GCJ='-Wl,'
19195           ;;
19196         *Sun\ F*)
19197           # Sun Fortran 8.3 passes all unrecognized flags to the linker
19198           lt_prog_compiler_pic_GCJ='-KPIC'
19199           lt_prog_compiler_static_GCJ='-Bstatic'
19200           lt_prog_compiler_wl_GCJ=''
19201           ;;
19202         esac
19203         ;;
19204       esac
19205       ;;
19206
19207     newsos6)
19208       lt_prog_compiler_pic_GCJ='-KPIC'
19209       lt_prog_compiler_static_GCJ='-Bstatic'
19210       ;;
19211
19212     *nto* | *qnx*)
19213       # QNX uses GNU C++, but need to define -shared option too, otherwise
19214       # it will coredump.
19215       lt_prog_compiler_pic_GCJ='-fPIC -shared'
19216       ;;
19217
19218     osf3* | osf4* | osf5*)
19219       lt_prog_compiler_wl_GCJ='-Wl,'
19220       # All OSF/1 code is PIC.
19221       lt_prog_compiler_static_GCJ='-non_shared'
19222       ;;
19223
19224     rdos*)
19225       lt_prog_compiler_static_GCJ='-non_shared'
19226       ;;
19227
19228     solaris*)
19229       lt_prog_compiler_pic_GCJ='-KPIC'
19230       lt_prog_compiler_static_GCJ='-Bstatic'
19231       case $cc_basename in
19232       f77* | f90* | f95*)
19233         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19234       *)
19235         lt_prog_compiler_wl_GCJ='-Wl,';;
19236       esac
19237       ;;
19238
19239     sunos4*)
19240       lt_prog_compiler_wl_GCJ='-Qoption ld '
19241       lt_prog_compiler_pic_GCJ='-PIC'
19242       lt_prog_compiler_static_GCJ='-Bstatic'
19243       ;;
19244
19245     sysv4 | sysv4.2uw2* | sysv4.3*)
19246       lt_prog_compiler_wl_GCJ='-Wl,'
19247       lt_prog_compiler_pic_GCJ='-KPIC'
19248       lt_prog_compiler_static_GCJ='-Bstatic'
19249       ;;
19250
19251     sysv4*MP*)
19252       if test -d /usr/nec ;then
19253         lt_prog_compiler_pic_GCJ='-Kconform_pic'
19254         lt_prog_compiler_static_GCJ='-Bstatic'
19255       fi
19256       ;;
19257
19258     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19259       lt_prog_compiler_wl_GCJ='-Wl,'
19260       lt_prog_compiler_pic_GCJ='-KPIC'
19261       lt_prog_compiler_static_GCJ='-Bstatic'
19262       ;;
19263
19264     unicos*)
19265       lt_prog_compiler_wl_GCJ='-Wl,'
19266       lt_prog_compiler_can_build_shared_GCJ=no
19267       ;;
19268
19269     uts4*)
19270       lt_prog_compiler_pic_GCJ='-pic'
19271       lt_prog_compiler_static_GCJ='-Bstatic'
19272       ;;
19273
19274     *)
19275       lt_prog_compiler_can_build_shared_GCJ=no
19276       ;;
19277     esac
19278   fi
19279
19280 case $host_os in
19281   # For platforms which do not support PIC, -DPIC is meaningless:
19282   *djgpp*)
19283     lt_prog_compiler_pic_GCJ=
19284     ;;
19285   *)
19286     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19287     ;;
19288 esac
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
19290 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
19291
19292
19293
19294 #
19295 # Check to make sure the PIC flag actually works.
19296 #
19297 if test -n "$lt_prog_compiler_pic_GCJ"; then
19298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19299 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
19300 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
19301   $as_echo_n "(cached) " >&6
19302 else
19303   lt_cv_prog_compiler_pic_works_GCJ=no
19304    ac_outfile=conftest.$ac_objext
19305    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19306    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19307    # Insert the option either (1) after the last *FLAGS variable, or
19308    # (2) before a word containing "conftest.", or (3) at the end.
19309    # Note that $ac_compile itself does not contain backslashes and begins
19310    # with a dollar sign (not a hyphen), so the echo should work correctly.
19311    # The option is referenced via a variable to avoid confusing sed.
19312    lt_compile=`echo "$ac_compile" | $SED \
19313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19315    -e 's:$: $lt_compiler_flag:'`
19316    (eval echo "\"\$as_me:19316: $lt_compile\"" >&5)
19317    (eval "$lt_compile" 2>conftest.err)
19318    ac_status=$?
19319    cat conftest.err >&5
19320    echo "$as_me:19320: \$? = $ac_status" >&5
19321    if (exit $ac_status) && test -s "$ac_outfile"; then
19322      # The compiler can only warn and ignore the option if not recognized
19323      # So say no if there are warnings other than the usual output.
19324      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19325      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19326      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19327        lt_cv_prog_compiler_pic_works_GCJ=yes
19328      fi
19329    fi
19330    $RM conftest*
19331
19332 fi
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19334 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19335
19336 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19337     case $lt_prog_compiler_pic_GCJ in
19338      "" | " "*) ;;
19339      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19340      esac
19341 else
19342     lt_prog_compiler_pic_GCJ=
19343      lt_prog_compiler_can_build_shared_GCJ=no
19344 fi
19345
19346 fi
19347
19348
19349
19350 #
19351 # Check to make sure the static flag actually works.
19352 #
19353 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19355 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19356 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
19357   $as_echo_n "(cached) " >&6
19358 else
19359   lt_cv_prog_compiler_static_works_GCJ=no
19360    save_LDFLAGS="$LDFLAGS"
19361    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19362    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19363    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19364      # The linker can only warn and ignore the option if not recognized
19365      # So say no if there are warnings
19366      if test -s conftest.err; then
19367        # Append any errors to the config.log.
19368        cat conftest.err 1>&5
19369        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19370        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19371        if diff conftest.exp conftest.er2 >/dev/null; then
19372          lt_cv_prog_compiler_static_works_GCJ=yes
19373        fi
19374      else
19375        lt_cv_prog_compiler_static_works_GCJ=yes
19376      fi
19377    fi
19378    $RM -r conftest*
19379    LDFLAGS="$save_LDFLAGS"
19380
19381 fi
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
19383 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
19384
19385 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
19386     :
19387 else
19388     lt_prog_compiler_static_GCJ=
19389 fi
19390
19391
19392
19393
19394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19395 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19396 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
19397   $as_echo_n "(cached) " >&6
19398 else
19399   lt_cv_prog_compiler_c_o_GCJ=no
19400    $RM -r conftest 2>/dev/null
19401    mkdir conftest
19402    cd conftest
19403    mkdir out
19404    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19405
19406    lt_compiler_flag="-o out/conftest2.$ac_objext"
19407    # Insert the option either (1) after the last *FLAGS variable, or
19408    # (2) before a word containing "conftest.", or (3) at the end.
19409    # Note that $ac_compile itself does not contain backslashes and begins
19410    # with a dollar sign (not a hyphen), so the echo should work correctly.
19411    lt_compile=`echo "$ac_compile" | $SED \
19412    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19413    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19414    -e 's:$: $lt_compiler_flag:'`
19415    (eval echo "\"\$as_me:19415: $lt_compile\"" >&5)
19416    (eval "$lt_compile" 2>out/conftest.err)
19417    ac_status=$?
19418    cat out/conftest.err >&5
19419    echo "$as_me:19419: \$? = $ac_status" >&5
19420    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19421    then
19422      # The compiler can only warn and ignore the option if not recognized
19423      # So say no if there are warnings
19424      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19425      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19426      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19427        lt_cv_prog_compiler_c_o_GCJ=yes
19428      fi
19429    fi
19430    chmod u+w . 2>&5
19431    $RM conftest*
19432    # SGI C++ compiler will create directory out/ii_files/ for
19433    # template instantiation
19434    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19435    $RM out/* && rmdir out
19436    cd ..
19437    $RM -r conftest
19438    $RM conftest*
19439
19440 fi
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19442 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19443
19444
19445
19446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19447 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19448 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
19449   $as_echo_n "(cached) " >&6
19450 else
19451   lt_cv_prog_compiler_c_o_GCJ=no
19452    $RM -r conftest 2>/dev/null
19453    mkdir conftest
19454    cd conftest
19455    mkdir out
19456    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19457
19458    lt_compiler_flag="-o out/conftest2.$ac_objext"
19459    # Insert the option either (1) after the last *FLAGS variable, or
19460    # (2) before a word containing "conftest.", or (3) at the end.
19461    # Note that $ac_compile itself does not contain backslashes and begins
19462    # with a dollar sign (not a hyphen), so the echo should work correctly.
19463    lt_compile=`echo "$ac_compile" | $SED \
19464    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19465    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19466    -e 's:$: $lt_compiler_flag:'`
19467    (eval echo "\"\$as_me:19467: $lt_compile\"" >&5)
19468    (eval "$lt_compile" 2>out/conftest.err)
19469    ac_status=$?
19470    cat out/conftest.err >&5
19471    echo "$as_me:19471: \$? = $ac_status" >&5
19472    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19473    then
19474      # The compiler can only warn and ignore the option if not recognized
19475      # So say no if there are warnings
19476      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19477      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19478      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19479        lt_cv_prog_compiler_c_o_GCJ=yes
19480      fi
19481    fi
19482    chmod u+w . 2>&5
19483    $RM conftest*
19484    # SGI C++ compiler will create directory out/ii_files/ for
19485    # template instantiation
19486    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19487    $RM out/* && rmdir out
19488    cd ..
19489    $RM -r conftest
19490    $RM conftest*
19491
19492 fi
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19494 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19495
19496
19497
19498
19499 hard_links="nottested"
19500 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19501   # do not overwrite the value of need_locks provided by the user
19502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19503 $as_echo_n "checking if we can lock with hard links... " >&6; }
19504   hard_links=yes
19505   $RM conftest*
19506   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19507   touch conftest.a
19508   ln conftest.a conftest.b 2>&5 || hard_links=no
19509   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19511 $as_echo "$hard_links" >&6; }
19512   if test "$hard_links" = no; then
19513     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19514 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19515     need_locks=warn
19516   fi
19517 else
19518   need_locks=no
19519 fi
19520
19521
19522
19523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19524 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19525
19526   runpath_var=
19527   allow_undefined_flag_GCJ=
19528   always_export_symbols_GCJ=no
19529   archive_cmds_GCJ=
19530   archive_expsym_cmds_GCJ=
19531   compiler_needs_object_GCJ=no
19532   enable_shared_with_static_runtimes_GCJ=no
19533   export_dynamic_flag_spec_GCJ=
19534   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19535   hardcode_automatic_GCJ=no
19536   hardcode_direct_GCJ=no
19537   hardcode_direct_absolute_GCJ=no
19538   hardcode_libdir_flag_spec_GCJ=
19539   hardcode_libdir_flag_spec_ld_GCJ=
19540   hardcode_libdir_separator_GCJ=
19541   hardcode_minus_L_GCJ=no
19542   hardcode_shlibpath_var_GCJ=unsupported
19543   inherit_rpath_GCJ=no
19544   link_all_deplibs_GCJ=unknown
19545   module_cmds_GCJ=
19546   module_expsym_cmds_GCJ=
19547   old_archive_from_new_cmds_GCJ=
19548   old_archive_from_expsyms_cmds_GCJ=
19549   thread_safe_flag_spec_GCJ=
19550   whole_archive_flag_spec_GCJ=
19551   # include_expsyms should be a list of space-separated symbols to be *always*
19552   # included in the symbol list
19553   include_expsyms_GCJ=
19554   # exclude_expsyms can be an extended regexp of symbols to exclude
19555   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19556   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19557   # as well as any symbol that contains `d'.
19558   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19559   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19560   # platforms (ab)use it in PIC code, but their linkers get confused if
19561   # the symbol is explicitly referenced.  Since portable code cannot
19562   # rely on this symbol name, it's probably fine to never include it in
19563   # preloaded symbol tables.
19564   # Exclude shared library initialization/finalization symbols.
19565   extract_expsyms_cmds=
19566
19567   case $host_os in
19568   cygwin* | mingw* | pw32* | cegcc*)
19569     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19570     # When not using gcc, we currently assume that we are using
19571     # Microsoft Visual C++.
19572     if test "$GCC" != yes; then
19573       with_gnu_ld=no
19574     fi
19575     ;;
19576   interix*)
19577     # we just hope/assume this is gcc and not c89 (= MSVC++)
19578     with_gnu_ld=yes
19579     ;;
19580   openbsd*)
19581     with_gnu_ld=no
19582     ;;
19583   esac
19584
19585   ld_shlibs_GCJ=yes
19586   if test "$with_gnu_ld" = yes; then
19587     # If archive_cmds runs LD, not CC, wlarc should be empty
19588     wlarc='${wl}'
19589
19590     # Set some defaults for GNU ld with shared library support. These
19591     # are reset later if shared libraries are not supported. Putting them
19592     # here allows them to be overridden if necessary.
19593     runpath_var=LD_RUN_PATH
19594     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19595     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19596     # ancient GNU ld didn't support --whole-archive et. al.
19597     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19598       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19599     else
19600       whole_archive_flag_spec_GCJ=
19601     fi
19602     supports_anon_versioning=no
19603     case `$LD -v 2>&1` in
19604       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19605       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19606       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19607       *\ 2.11.*) ;; # other 2.11 versions
19608       *) supports_anon_versioning=yes ;;
19609     esac
19610
19611     # See if GNU ld supports shared libraries.
19612     case $host_os in
19613     aix[3-9]*)
19614       # On AIX/PPC, the GNU linker is very broken
19615       if test "$host_cpu" != ia64; then
19616         ld_shlibs_GCJ=no
19617         cat <<_LT_EOF 1>&2
19618
19619 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19620 *** to be unable to reliably create shared libraries on AIX.
19621 *** Therefore, libtool is disabling shared libraries support.  If you
19622 *** really care for shared libraries, you may want to modify your PATH
19623 *** so that a non-GNU linker is found, and then restart.
19624
19625 _LT_EOF
19626       fi
19627       ;;
19628
19629     amigaos*)
19630       case $host_cpu in
19631       powerpc)
19632             # see comment about AmigaOS4 .so support
19633             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19634             archive_expsym_cmds_GCJ=''
19635         ;;
19636       m68k)
19637             archive_cmds_GCJ='$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)'
19638             hardcode_libdir_flag_spec_GCJ='-L$libdir'
19639             hardcode_minus_L_GCJ=yes
19640         ;;
19641       esac
19642       ;;
19643
19644     beos*)
19645       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19646         allow_undefined_flag_GCJ=unsupported
19647         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19648         # support --undefined.  This deserves some investigation.  FIXME
19649         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19650       else
19651         ld_shlibs_GCJ=no
19652       fi
19653       ;;
19654
19655     cygwin* | mingw* | pw32* | cegcc*)
19656       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19657       # as there is no search path for DLLs.
19658       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19659       allow_undefined_flag_GCJ=unsupported
19660       always_export_symbols_GCJ=no
19661       enable_shared_with_static_runtimes_GCJ=yes
19662       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19663
19664       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19665         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19666         # If the export-symbols file already is a .def file (1st line
19667         # is EXPORTS), use it as is; otherwise, prepend...
19668         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19669           cp $export_symbols $output_objdir/$soname.def;
19670         else
19671           echo EXPORTS > $output_objdir/$soname.def;
19672           cat $export_symbols >> $output_objdir/$soname.def;
19673         fi~
19674         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19675       else
19676         ld_shlibs_GCJ=no
19677       fi
19678       ;;
19679
19680     interix[3-9]*)
19681       hardcode_direct_GCJ=no
19682       hardcode_shlibpath_var_GCJ=no
19683       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19684       export_dynamic_flag_spec_GCJ='${wl}-E'
19685       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19686       # Instead, shared libraries are loaded at an image base (0x10000000 by
19687       # default) and relocated if they conflict, which is a slow very memory
19688       # consuming and fragmenting process.  To avoid this, we pick a random,
19689       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19690       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19691       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19692       archive_expsym_cmds_GCJ='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'
19693       ;;
19694
19695     gnu* | linux* | tpf* | k*bsd*-gnu)
19696       tmp_diet=no
19697       if test "$host_os" = linux-dietlibc; then
19698         case $cc_basename in
19699           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
19700         esac
19701       fi
19702       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19703          && test "$tmp_diet" = no
19704       then
19705         tmp_addflag=
19706         tmp_sharedflag='-shared'
19707         case $cc_basename,$host_cpu in
19708         pgcc*)                          # Portland Group C compiler
19709           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
19710           tmp_addflag=' $pic_flag'
19711           ;;
19712         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
19713           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
19714           tmp_addflag=' $pic_flag -Mnomain' ;;
19715         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
19716           tmp_addflag=' -i_dynamic' ;;
19717         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19718           tmp_addflag=' -i_dynamic -nofor_main' ;;
19719         ifc* | ifort*)                  # Intel Fortran compiler
19720           tmp_addflag=' -nofor_main' ;;
19721         lf95*)                          # Lahey Fortran 8.1
19722           whole_archive_flag_spec_GCJ=
19723           tmp_sharedflag='--shared' ;;
19724         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
19725           tmp_sharedflag='-qmkshrobj'
19726           tmp_addflag= ;;
19727         esac
19728         case `$CC -V 2>&1 | sed 5q` in
19729         *Sun\ C*)                       # Sun C 5.9
19730           whole_archive_flag_spec_GCJ='${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'
19731           compiler_needs_object_GCJ=yes
19732           tmp_sharedflag='-G' ;;
19733         *Sun\ F*)                       # Sun Fortran 8.3
19734           tmp_sharedflag='-G' ;;
19735         esac
19736         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19737
19738         if test "x$supports_anon_versioning" = xyes; then
19739           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
19740             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19741             echo "local: *; };" >> $output_objdir/$libname.ver~
19742             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19743         fi
19744
19745         case $cc_basename in
19746         xlf*)
19747           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19748           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
19749           hardcode_libdir_flag_spec_GCJ=
19750           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19751           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19752           if test "x$supports_anon_versioning" = xyes; then
19753             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
19754               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19755               echo "local: *; };" >> $output_objdir/$libname.ver~
19756               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19757           fi
19758           ;;
19759         esac
19760       else
19761         ld_shlibs_GCJ=no
19762       fi
19763       ;;
19764
19765     netbsd*)
19766       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19767         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19768         wlarc=
19769       else
19770         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19771         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19772       fi
19773       ;;
19774
19775     solaris*)
19776       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19777         ld_shlibs_GCJ=no
19778         cat <<_LT_EOF 1>&2
19779
19780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19781 *** create shared libraries on Solaris systems.  Therefore, libtool
19782 *** is disabling shared libraries support.  We urge you to upgrade GNU
19783 *** binutils to release 2.9.1 or newer.  Another option is to modify
19784 *** your PATH or compiler configuration so that the native linker is
19785 *** used, and then restart.
19786
19787 _LT_EOF
19788       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19789         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19790         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19791       else
19792         ld_shlibs_GCJ=no
19793       fi
19794       ;;
19795
19796     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19797       case `$LD -v 2>&1` in
19798         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19799         ld_shlibs_GCJ=no
19800         cat <<_LT_EOF 1>&2
19801
19802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19803 *** reliably create shared libraries on SCO systems.  Therefore, libtool
19804 *** is disabling shared libraries support.  We urge you to upgrade GNU
19805 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19806 *** your PATH or compiler configuration so that the native linker is
19807 *** used, and then restart.
19808
19809 _LT_EOF
19810         ;;
19811         *)
19812           # For security reasons, it is highly recommended that you always
19813           # use absolute paths for naming shared libraries, and exclude the
19814           # DT_RUNPATH tag from executables and libraries.  But doing so
19815           # requires that you compile everything twice, which is a pain.
19816           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19817             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19818             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19819             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19820           else
19821             ld_shlibs_GCJ=no
19822           fi
19823         ;;
19824       esac
19825       ;;
19826
19827     sunos4*)
19828       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19829       wlarc=
19830       hardcode_direct_GCJ=yes
19831       hardcode_shlibpath_var_GCJ=no
19832       ;;
19833
19834     *)
19835       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19836         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19837         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19838       else
19839         ld_shlibs_GCJ=no
19840       fi
19841       ;;
19842     esac
19843
19844     if test "$ld_shlibs_GCJ" = no; then
19845       runpath_var=
19846       hardcode_libdir_flag_spec_GCJ=
19847       export_dynamic_flag_spec_GCJ=
19848       whole_archive_flag_spec_GCJ=
19849     fi
19850   else
19851     # PORTME fill in a description of your system's linker (not GNU ld)
19852     case $host_os in
19853     aix3*)
19854       allow_undefined_flag_GCJ=unsupported
19855       always_export_symbols_GCJ=yes
19856       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19857       # Note: this linker hardcodes the directories in LIBPATH if there
19858       # are no directories specified by -L.
19859       hardcode_minus_L_GCJ=yes
19860       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19861         # Neither direct hardcoding nor static linking is supported with a
19862         # broken collect2.
19863         hardcode_direct_GCJ=unsupported
19864       fi
19865       ;;
19866
19867     aix[4-9]*)
19868       if test "$host_cpu" = ia64; then
19869         # On IA64, the linker does run time linking by default, so we don't
19870         # have to do anything special.
19871         aix_use_runtimelinking=no
19872         exp_sym_flag='-Bexport'
19873         no_entry_flag=""
19874       else
19875         # If we're using GNU nm, then we don't want the "-C" option.
19876         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19877         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19878           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19879         else
19880           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19881         fi
19882         aix_use_runtimelinking=no
19883
19884         # Test if we are trying to use run time linking or normal
19885         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19886         # need to do runtime linking.
19887         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19888           for ld_flag in $LDFLAGS; do
19889           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19890             aix_use_runtimelinking=yes
19891             break
19892           fi
19893           done
19894           ;;
19895         esac
19896
19897         exp_sym_flag='-bexport'
19898         no_entry_flag='-bnoentry'
19899       fi
19900
19901       # When large executables or shared objects are built, AIX ld can
19902       # have problems creating the table of contents.  If linking a library
19903       # or program results in "error TOC overflow" add -mminimal-toc to
19904       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19905       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19906
19907       archive_cmds_GCJ=''
19908       hardcode_direct_GCJ=yes
19909       hardcode_direct_absolute_GCJ=yes
19910       hardcode_libdir_separator_GCJ=':'
19911       link_all_deplibs_GCJ=yes
19912       file_list_spec_GCJ='${wl}-f,'
19913
19914       if test "$GCC" = yes; then
19915         case $host_os in aix4.[012]|aix4.[012].*)
19916         # We only want to do this on AIX 4.2 and lower, the check
19917         # below for broken collect2 doesn't work under 4.3+
19918           collect2name=`${CC} -print-prog-name=collect2`
19919           if test -f "$collect2name" &&
19920            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19921           then
19922           # We have reworked collect2
19923           :
19924           else
19925           # We have old collect2
19926           hardcode_direct_GCJ=unsupported
19927           # It fails to find uninstalled libraries when the uninstalled
19928           # path is not listed in the libpath.  Setting hardcode_minus_L
19929           # to unsupported forces relinking
19930           hardcode_minus_L_GCJ=yes
19931           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19932           hardcode_libdir_separator_GCJ=
19933           fi
19934           ;;
19935         esac
19936         shared_flag='-shared'
19937         if test "$aix_use_runtimelinking" = yes; then
19938           shared_flag="$shared_flag "'${wl}-G'
19939         fi
19940       else
19941         # not using gcc
19942         if test "$host_cpu" = ia64; then
19943         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19944         # chokes on -Wl,-G. The following line is correct:
19945           shared_flag='-G'
19946         else
19947           if test "$aix_use_runtimelinking" = yes; then
19948             shared_flag='${wl}-G'
19949           else
19950             shared_flag='${wl}-bM:SRE'
19951           fi
19952         fi
19953       fi
19954
19955       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
19956       # It seems that -bexpall does not export symbols beginning with
19957       # underscore (_), so it is better to generate a list of symbols to export.
19958       always_export_symbols_GCJ=yes
19959       if test "$aix_use_runtimelinking" = yes; then
19960         # Warning - without using the other runtime loading flags (-brtl),
19961         # -berok will link without error, but may produce a broken library.
19962         allow_undefined_flag_GCJ='-berok'
19963         # Determine the default libpath from the value encoded in an
19964         # empty executable.
19965         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19966 /* end confdefs.h.  */
19967
19968 int
19969 main ()
19970 {
19971
19972   ;
19973   return 0;
19974 }
19975 _ACEOF
19976 if ac_fn_c_try_link "$LINENO"; then :
19977
19978 lt_aix_libpath_sed='
19979     /Import File Strings/,/^$/ {
19980         /^0/ {
19981             s/^0  *\(.*\)$/\1/
19982             p
19983         }
19984     }'
19985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19986 # Check for a 64-bit object if we didn't find anything.
19987 if test -z "$aix_libpath"; then
19988   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19989 fi
19990 fi
19991 rm -f core conftest.err conftest.$ac_objext \
19992     conftest$ac_exeext conftest.$ac_ext
19993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19994
19995         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19996         archive_expsym_cmds_GCJ='$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"
19997       else
19998         if test "$host_cpu" = ia64; then
19999           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20000           allow_undefined_flag_GCJ="-z nodefs"
20001           archive_expsym_cmds_GCJ="\$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"
20002         else
20003          # Determine the default libpath from the value encoded in an
20004          # empty executable.
20005          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h.  */
20007
20008 int
20009 main ()
20010 {
20011
20012   ;
20013   return 0;
20014 }
20015 _ACEOF
20016 if ac_fn_c_try_link "$LINENO"; then :
20017
20018 lt_aix_libpath_sed='
20019     /Import File Strings/,/^$/ {
20020         /^0/ {
20021             s/^0  *\(.*\)$/\1/
20022             p
20023         }
20024     }'
20025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20026 # Check for a 64-bit object if we didn't find anything.
20027 if test -z "$aix_libpath"; then
20028   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20029 fi
20030 fi
20031 rm -f core conftest.err conftest.$ac_objext \
20032     conftest$ac_exeext conftest.$ac_ext
20033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20034
20035          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20036           # Warning - without using the other run time loading flags,
20037           # -berok will link without error, but may produce a broken library.
20038           no_undefined_flag_GCJ=' ${wl}-bernotok'
20039           allow_undefined_flag_GCJ=' ${wl}-berok'
20040           # Exported symbols can be pulled into shared objects from archives
20041           whole_archive_flag_spec_GCJ='$convenience'
20042           archive_cmds_need_lc_GCJ=yes
20043           # This is similar to how AIX traditionally builds its shared libraries.
20044           archive_expsym_cmds_GCJ="\$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'
20045         fi
20046       fi
20047       ;;
20048
20049     amigaos*)
20050       case $host_cpu in
20051       powerpc)
20052             # see comment about AmigaOS4 .so support
20053             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20054             archive_expsym_cmds_GCJ=''
20055         ;;
20056       m68k)
20057             archive_cmds_GCJ='$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)'
20058             hardcode_libdir_flag_spec_GCJ='-L$libdir'
20059             hardcode_minus_L_GCJ=yes
20060         ;;
20061       esac
20062       ;;
20063
20064     bsdi[45]*)
20065       export_dynamic_flag_spec_GCJ=-rdynamic
20066       ;;
20067
20068     cygwin* | mingw* | pw32* | cegcc*)
20069       # When not using gcc, we currently assume that we are using
20070       # Microsoft Visual C++.
20071       # hardcode_libdir_flag_spec is actually meaningless, as there is
20072       # no search path for DLLs.
20073       hardcode_libdir_flag_spec_GCJ=' '
20074       allow_undefined_flag_GCJ=unsupported
20075       # Tell ltmain to make .lib files, not .a files.
20076       libext=lib
20077       # Tell ltmain to make .dll files, not .so files.
20078       shrext_cmds=".dll"
20079       # FIXME: Setting linknames here is a bad hack.
20080       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
20081       # The linker will automatically build a .lib file if we build a DLL.
20082       old_archive_from_new_cmds_GCJ='true'
20083       # FIXME: Should let the user specify the lib program.
20084       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20085       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20086       enable_shared_with_static_runtimes_GCJ=yes
20087       ;;
20088
20089     darwin* | rhapsody*)
20090
20091
20092   archive_cmds_need_lc_GCJ=no
20093   hardcode_direct_GCJ=no
20094   hardcode_automatic_GCJ=yes
20095   hardcode_shlibpath_var_GCJ=unsupported
20096   whole_archive_flag_spec_GCJ=''
20097   link_all_deplibs_GCJ=yes
20098   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
20099   case $cc_basename in
20100      ifort*) _lt_dar_can_shared=yes ;;
20101      *) _lt_dar_can_shared=$GCC ;;
20102   esac
20103   if test "$_lt_dar_can_shared" = "yes"; then
20104     output_verbose_link_cmd=echo
20105     archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20106     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20107     archive_expsym_cmds_GCJ="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}"
20108     module_expsym_cmds_GCJ="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}"
20109
20110   else
20111   ld_shlibs_GCJ=no
20112   fi
20113
20114       ;;
20115
20116     dgux*)
20117       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20118       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20119       hardcode_shlibpath_var_GCJ=no
20120       ;;
20121
20122     freebsd1*)
20123       ld_shlibs_GCJ=no
20124       ;;
20125
20126     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20127     # support.  Future versions do this automatically, but an explicit c++rt0.o
20128     # does not break anything, and helps significantly (at the cost of a little
20129     # extra space).
20130     freebsd2.2*)
20131       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20132       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20133       hardcode_direct_GCJ=yes
20134       hardcode_shlibpath_var_GCJ=no
20135       ;;
20136
20137     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20138     freebsd2*)
20139       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20140       hardcode_direct_GCJ=yes
20141       hardcode_minus_L_GCJ=yes
20142       hardcode_shlibpath_var_GCJ=no
20143       ;;
20144
20145     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20146     freebsd* | dragonfly*)
20147       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20148       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20149       hardcode_direct_GCJ=yes
20150       hardcode_shlibpath_var_GCJ=no
20151       ;;
20152
20153     hpux9*)
20154       if test "$GCC" = yes; then
20155         archive_cmds_GCJ='$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'
20156       else
20157         archive_cmds_GCJ='$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'
20158       fi
20159       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20160       hardcode_libdir_separator_GCJ=:
20161       hardcode_direct_GCJ=yes
20162
20163       # hardcode_minus_L: Not really in the search PATH,
20164       # but as the default location of the library.
20165       hardcode_minus_L_GCJ=yes
20166       export_dynamic_flag_spec_GCJ='${wl}-E'
20167       ;;
20168
20169     hpux10*)
20170       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20171         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20172       else
20173         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20174       fi
20175       if test "$with_gnu_ld" = no; then
20176         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20177         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20178         hardcode_libdir_separator_GCJ=:
20179         hardcode_direct_GCJ=yes
20180         hardcode_direct_absolute_GCJ=yes
20181         export_dynamic_flag_spec_GCJ='${wl}-E'
20182         # hardcode_minus_L: Not really in the search PATH,
20183         # but as the default location of the library.
20184         hardcode_minus_L_GCJ=yes
20185       fi
20186       ;;
20187
20188     hpux11*)
20189       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20190         case $host_cpu in
20191         hppa*64*)
20192           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20193           ;;
20194         ia64*)
20195           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20196           ;;
20197         *)
20198           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20199           ;;
20200         esac
20201       else
20202         case $host_cpu in
20203         hppa*64*)
20204           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20205           ;;
20206         ia64*)
20207           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20208           ;;
20209         *)
20210           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20211           ;;
20212         esac
20213       fi
20214       if test "$with_gnu_ld" = no; then
20215         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20216         hardcode_libdir_separator_GCJ=:
20217
20218         case $host_cpu in
20219         hppa*64*|ia64*)
20220           hardcode_direct_GCJ=no
20221           hardcode_shlibpath_var_GCJ=no
20222           ;;
20223         *)
20224           hardcode_direct_GCJ=yes
20225           hardcode_direct_absolute_GCJ=yes
20226           export_dynamic_flag_spec_GCJ='${wl}-E'
20227
20228           # hardcode_minus_L: Not really in the search PATH,
20229           # but as the default location of the library.
20230           hardcode_minus_L_GCJ=yes
20231           ;;
20232         esac
20233       fi
20234       ;;
20235
20236     irix5* | irix6* | nonstopux*)
20237       if test "$GCC" = yes; then
20238         archive_cmds_GCJ='$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'
20239         # Try to use the -exported_symbol ld option, if it does not
20240         # work, assume that -exports_file does not work either and
20241         # implicitly export all symbols.
20242         save_LDFLAGS="$LDFLAGS"
20243         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
20244         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h.  */
20246 int foo(void) {}
20247 _ACEOF
20248 if ac_fn_c_try_link "$LINENO"; then :
20249   archive_expsym_cmds_GCJ='$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'
20250
20251 fi
20252 rm -f core conftest.err conftest.$ac_objext \
20253     conftest$ac_exeext conftest.$ac_ext
20254         LDFLAGS="$save_LDFLAGS"
20255       else
20256         archive_cmds_GCJ='$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'
20257         archive_expsym_cmds_GCJ='$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'
20258       fi
20259       archive_cmds_need_lc_GCJ='no'
20260       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20261       hardcode_libdir_separator_GCJ=:
20262       inherit_rpath_GCJ=yes
20263       link_all_deplibs_GCJ=yes
20264       ;;
20265
20266     netbsd*)
20267       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20268         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20269       else
20270         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20271       fi
20272       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20273       hardcode_direct_GCJ=yes
20274       hardcode_shlibpath_var_GCJ=no
20275       ;;
20276
20277     newsos6)
20278       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20279       hardcode_direct_GCJ=yes
20280       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20281       hardcode_libdir_separator_GCJ=:
20282       hardcode_shlibpath_var_GCJ=no
20283       ;;
20284
20285     *nto* | *qnx*)
20286       ;;
20287
20288     openbsd*)
20289       if test -f /usr/libexec/ld.so; then
20290         hardcode_direct_GCJ=yes
20291         hardcode_shlibpath_var_GCJ=no
20292         hardcode_direct_absolute_GCJ=yes
20293         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20294           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20295           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20296           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20297           export_dynamic_flag_spec_GCJ='${wl}-E'
20298         else
20299           case $host_os in
20300            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20301              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20302              hardcode_libdir_flag_spec_GCJ='-R$libdir'
20303              ;;
20304            *)
20305              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20306              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20307              ;;
20308           esac
20309         fi
20310       else
20311         ld_shlibs_GCJ=no
20312       fi
20313       ;;
20314
20315     os2*)
20316       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20317       hardcode_minus_L_GCJ=yes
20318       allow_undefined_flag_GCJ=unsupported
20319       archive_cmds_GCJ='$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'
20320       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20321       ;;
20322
20323     osf3*)
20324       if test "$GCC" = yes; then
20325         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20326         archive_cmds_GCJ='$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'
20327       else
20328         allow_undefined_flag_GCJ=' -expect_unresolved \*'
20329         archive_cmds_GCJ='$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'
20330       fi
20331       archive_cmds_need_lc_GCJ='no'
20332       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20333       hardcode_libdir_separator_GCJ=:
20334       ;;
20335
20336     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20337       if test "$GCC" = yes; then
20338         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20339         archive_cmds_GCJ='$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'
20340         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20341       else
20342         allow_undefined_flag_GCJ=' -expect_unresolved \*'
20343         archive_cmds_GCJ='$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'
20344         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
20345         $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'
20346
20347         # Both c and cxx compiler support -rpath directly
20348         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20349       fi
20350       archive_cmds_need_lc_GCJ='no'
20351       hardcode_libdir_separator_GCJ=:
20352       ;;
20353
20354     solaris*)
20355       no_undefined_flag_GCJ=' -z defs'
20356       if test "$GCC" = yes; then
20357         wlarc='${wl}'
20358         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20359         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20360           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20361       else
20362         case `$CC -V 2>&1` in
20363         *"Compilers 5.0"*)
20364           wlarc=''
20365           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20366           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20367           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20368           ;;
20369         *)
20370           wlarc='${wl}'
20371           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20372           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20373           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20374           ;;
20375         esac
20376       fi
20377       hardcode_libdir_flag_spec_GCJ='-R$libdir'
20378       hardcode_shlibpath_var_GCJ=no
20379       case $host_os in
20380       solaris2.[0-5] | solaris2.[0-5].*) ;;
20381       *)
20382         # The compiler driver will combine and reorder linker options,
20383         # but understands `-z linker_flag'.  GCC discards it without `$wl',
20384         # but is careful enough not to reorder.
20385         # Supported since Solaris 2.6 (maybe 2.5.1?)
20386         if test "$GCC" = yes; then
20387           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20388         else
20389           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20390         fi
20391         ;;
20392       esac
20393       link_all_deplibs_GCJ=yes
20394       ;;
20395
20396     sunos4*)
20397       if test "x$host_vendor" = xsequent; then
20398         # Use $CC to link under sequent, because it throws in some extra .o
20399         # files that make .init and .fini sections work.
20400         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20401       else
20402         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20403       fi
20404       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20405       hardcode_direct_GCJ=yes
20406       hardcode_minus_L_GCJ=yes
20407       hardcode_shlibpath_var_GCJ=no
20408       ;;
20409
20410     sysv4)
20411       case $host_vendor in
20412         sni)
20413           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20414           hardcode_direct_GCJ=yes # is this really true???
20415         ;;
20416         siemens)
20417           ## LD is ld it makes a PLAMLIB
20418           ## CC just makes a GrossModule.
20419           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20420           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20421           hardcode_direct_GCJ=no
20422         ;;
20423         motorola)
20424           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20425           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20426         ;;
20427       esac
20428       runpath_var='LD_RUN_PATH'
20429       hardcode_shlibpath_var_GCJ=no
20430       ;;
20431
20432     sysv4.3*)
20433       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20434       hardcode_shlibpath_var_GCJ=no
20435       export_dynamic_flag_spec_GCJ='-Bexport'
20436       ;;
20437
20438     sysv4*MP*)
20439       if test -d /usr/nec; then
20440         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20441         hardcode_shlibpath_var_GCJ=no
20442         runpath_var=LD_RUN_PATH
20443         hardcode_runpath_var=yes
20444         ld_shlibs_GCJ=yes
20445       fi
20446       ;;
20447
20448     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20449       no_undefined_flag_GCJ='${wl}-z,text'
20450       archive_cmds_need_lc_GCJ=no
20451       hardcode_shlibpath_var_GCJ=no
20452       runpath_var='LD_RUN_PATH'
20453
20454       if test "$GCC" = yes; then
20455         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20456         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20457       else
20458         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20459         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20460       fi
20461       ;;
20462
20463     sysv5* | sco3.2v5* | sco5v6*)
20464       # Note: We can NOT use -z defs as we might desire, because we do not
20465       # link with -lc, and that would cause any symbols used from libc to
20466       # always be unresolved, which means just about no library would
20467       # ever link correctly.  If we're not using GNU ld we use -z text
20468       # though, which does catch some bad symbols but isn't as heavy-handed
20469       # as -z defs.
20470       no_undefined_flag_GCJ='${wl}-z,text'
20471       allow_undefined_flag_GCJ='${wl}-z,nodefs'
20472       archive_cmds_need_lc_GCJ=no
20473       hardcode_shlibpath_var_GCJ=no
20474       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
20475       hardcode_libdir_separator_GCJ=':'
20476       link_all_deplibs_GCJ=yes
20477       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20478       runpath_var='LD_RUN_PATH'
20479
20480       if test "$GCC" = yes; then
20481         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20482         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20483       else
20484         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20485         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20486       fi
20487       ;;
20488
20489     uts4*)
20490       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20491       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20492       hardcode_shlibpath_var_GCJ=no
20493       ;;
20494
20495     *)
20496       ld_shlibs_GCJ=no
20497       ;;
20498     esac
20499
20500     if test x$host_vendor = xsni; then
20501       case $host in
20502       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20503         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
20504         ;;
20505       esac
20506     fi
20507   fi
20508
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
20510 $as_echo "$ld_shlibs_GCJ" >&6; }
20511 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20512
20513 with_gnu_ld_GCJ=$with_gnu_ld
20514
20515
20516
20517
20518
20519
20520 #
20521 # Do we need to explicitly link libc?
20522 #
20523 case "x$archive_cmds_need_lc_GCJ" in
20524 x|xyes)
20525   # Assume -lc should be added
20526   archive_cmds_need_lc_GCJ=yes
20527
20528   if test "$enable_shared" = yes && test "$GCC" = yes; then
20529     case $archive_cmds_GCJ in
20530     *'~'*)
20531       # FIXME: we may have to deal with multi-command sequences.
20532       ;;
20533     '$CC '*)
20534       # Test whether the compiler implicitly links with -lc since on some
20535       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20536       # to ld, don't add -lc before -lgcc.
20537       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20538 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20539       $RM conftest*
20540       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20541
20542       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20543   (eval $ac_compile) 2>&5
20544   ac_status=$?
20545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20546   test $ac_status = 0; } 2>conftest.err; then
20547         soname=conftest
20548         lib=conftest
20549         libobjs=conftest.$ac_objext
20550         deplibs=
20551         wl=$lt_prog_compiler_wl_GCJ
20552         pic_flag=$lt_prog_compiler_pic_GCJ
20553         compiler_flags=-v
20554         linker_flags=-v
20555         verstring=
20556         output_objdir=.
20557         libname=conftest
20558         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20559         allow_undefined_flag_GCJ=
20560         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20561   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20562   ac_status=$?
20563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20564   test $ac_status = 0; }
20565         then
20566           archive_cmds_need_lc_GCJ=no
20567         else
20568           archive_cmds_need_lc_GCJ=yes
20569         fi
20570         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20571       else
20572         cat conftest.err 1>&5
20573       fi
20574       $RM conftest*
20575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
20576 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20577       ;;
20578     esac
20579   fi
20580   ;;
20581 esac
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20647 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20648 hardcode_action_GCJ=
20649 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
20650    test -n "$runpath_var_GCJ" ||
20651    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20652
20653   # We can hardcode non-existent directories.
20654   if test "$hardcode_direct_GCJ" != no &&
20655      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20656      # have to relink, otherwise we might link with an installed library
20657      # when we should be linking with a yet-to-be-installed one
20658      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20659      test "$hardcode_minus_L_GCJ" != no; then
20660     # Linking always hardcodes the temporary library directory.
20661     hardcode_action_GCJ=relink
20662   else
20663     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20664     hardcode_action_GCJ=immediate
20665   fi
20666 else
20667   # We cannot hardcode anything, or else we can only hardcode existing
20668   # directories.
20669   hardcode_action_GCJ=unsupported
20670 fi
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
20672 $as_echo "$hardcode_action_GCJ" >&6; }
20673
20674 if test "$hardcode_action_GCJ" = relink ||
20675    test "$inherit_rpath_GCJ" = yes; then
20676   # Fast installation is not supported
20677   enable_fast_install=no
20678 elif test "$shlibpath_overrides_runpath" = yes ||
20679      test "$enable_shared" = no; then
20680   # Fast installation is not necessary
20681   enable_fast_install=needless
20682 fi
20683
20684
20685
20686
20687
20688
20689
20690 fi
20691
20692 ac_ext=c
20693 ac_cpp='$CPP $CPPFLAGS'
20694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20697
20698
20699 GCC=$lt_save_GCC
20700 CC="$lt_save_CC"
20701
20702
20703 enable_java=no
20704
20705 if test "$enable_java" != "no"; then
20706
20707
20708 if test "x$JAVAPREFIX" = x; then
20709         test "x$JAR" = x && for ac_prog in jar$EXEEXT
20710 do
20711   # Extract the first word of "$ac_prog", so it can be a program name with args.
20712 set dummy $ac_prog; ac_word=$2
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20714 $as_echo_n "checking for $ac_word... " >&6; }
20715 if test "${ac_cv_prog_JAR+set}" = set; then :
20716   $as_echo_n "(cached) " >&6
20717 else
20718   if test -n "$JAR"; then
20719   ac_cv_prog_JAR="$JAR" # Let the user override the test.
20720 else
20721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20722 for as_dir in $PATH
20723 do
20724   IFS=$as_save_IFS
20725   test -z "$as_dir" && as_dir=.
20726     for ac_exec_ext in '' $ac_executable_extensions; do
20727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20728     ac_cv_prog_JAR="$ac_prog"
20729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20730     break 2
20731   fi
20732 done
20733   done
20734 IFS=$as_save_IFS
20735
20736 fi
20737 fi
20738 JAR=$ac_cv_prog_JAR
20739 if test -n "$JAR"; then
20740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
20741 $as_echo "$JAR" >&6; }
20742 else
20743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20744 $as_echo "no" >&6; }
20745 fi
20746
20747
20748   test -n "$JAR" && break
20749 done
20750
20751 else
20752         test "x$JAR" = x && for ac_prog in jar
20753 do
20754   # Extract the first word of "$ac_prog", so it can be a program name with args.
20755 set dummy $ac_prog; ac_word=$2
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20757 $as_echo_n "checking for $ac_word... " >&6; }
20758 if test "${ac_cv_prog_JAR+set}" = set; then :
20759   $as_echo_n "(cached) " >&6
20760 else
20761   if test -n "$JAR"; then
20762   ac_cv_prog_JAR="$JAR" # Let the user override the test.
20763 else
20764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20765 for as_dir in $PATH
20766 do
20767   IFS=$as_save_IFS
20768   test -z "$as_dir" && as_dir=.
20769     for ac_exec_ext in '' $ac_executable_extensions; do
20770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20771     ac_cv_prog_JAR="$ac_prog"
20772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20773     break 2
20774   fi
20775 done
20776   done
20777 IFS=$as_save_IFS
20778
20779 fi
20780 fi
20781 JAR=$ac_cv_prog_JAR
20782 if test -n "$JAR"; then
20783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
20784 $as_echo "$JAR" >&6; }
20785 else
20786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20787 $as_echo "no" >&6; }
20788 fi
20789
20790
20791   test -n "$JAR" && break
20792 done
20793 test -n "$JAR" || JAR="$JAVAPREFIX"
20794
20795 fi
20796 test "x$JAR" = x && as_fn_error $? "no acceptable jar program found in \$PATH" "$LINENO" 5
20797
20798
20799 GJDOC=${GJDOC-"${am_missing_run}gjdoc"}
20800
20801 fi
20802  if test "$enable_java" != "no"; then
20803   JAVA_TRUE=
20804   JAVA_FALSE='#'
20805 else
20806   JAVA_TRUE='#'
20807   JAVA_FALSE=
20808 fi
20809
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if implementation in Java should be built" >&5
20811 $as_echo_n "checking if implementation in Java should be built... " >&6; }
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_java" >&5
20813 $as_echo "$enable_java" >&6; }
20814
20815 # Check for C#
20816  if test -n "$HAVE_CSHARPCOMP"; then
20817   CSHARP_TRUE=
20818   CSHARP_FALSE='#'
20819 else
20820   CSHARP_TRUE='#'
20821   CSHARP_FALSE=
20822 fi
20823
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if implementation in C# should be built" >&5
20825 $as_echo_n "checking if implementation in C# should be built... " >&6; }
20826 if test -n "$HAVE_CSHARPCOMP"; then
20827   enable_csharp=yes
20828 else
20829   enable_csharp=no
20830 fi
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_csharp" >&5
20832 $as_echo "$enable_csharp" >&6; }
20833
20834
20835   # Run self-tests under valgrind?
20836   if test "$cross_compiling" = no; then
20837     for ac_prog in valgrind
20838 do
20839   # Extract the first word of "$ac_prog", so it can be a program name with args.
20840 set dummy $ac_prog; ac_word=$2
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20842 $as_echo_n "checking for $ac_word... " >&6; }
20843 if test "${ac_cv_prog_VALGRIND+set}" = set; then :
20844   $as_echo_n "(cached) " >&6
20845 else
20846   if test -n "$VALGRIND"; then
20847   ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
20848 else
20849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20850 for as_dir in $PATH
20851 do
20852   IFS=$as_save_IFS
20853   test -z "$as_dir" && as_dir=.
20854     for ac_exec_ext in '' $ac_executable_extensions; do
20855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20856     ac_cv_prog_VALGRIND="$ac_prog"
20857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20858     break 2
20859   fi
20860 done
20861   done
20862 IFS=$as_save_IFS
20863
20864 fi
20865 fi
20866 VALGRIND=$ac_cv_prog_VALGRIND
20867 if test -n "$VALGRIND"; then
20868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
20869 $as_echo "$VALGRIND" >&6; }
20870 else
20871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20872 $as_echo "no" >&6; }
20873 fi
20874
20875
20876   test -n "$VALGRIND" && break
20877 done
20878
20879   fi
20880   if test -n "$VALGRIND" && $VALGRIND true > /dev/null 2>&1; then
20881     opt_valgrind_tests=yes
20882   else
20883     opt_valgrind_tests=no
20884     VALGRIND=
20885   fi
20886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
20887 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
20888   # Check whether --enable-valgrind-tests was given.
20889 if test "${enable_valgrind_tests+set}" = set; then :
20890   enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
20891 fi
20892
20893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
20894 $as_echo "$opt_valgrind_tests" >&6; }
20895
20896
20897   # Update version number in lib/libtasn1.h.
20898   if ! sed 's/_VERSION ".*"/_VERSION "'$PACKAGE_VERSION'"/' $srcdir/lib/stringprep.h > fixhdr.tmp; then
20899     as_fn_error $? "*** Failed to update version number in $srcdir/lib/stringprep.h..." "$LINENO" 5
20900   fi
20901   if cmp -s $srcdir/lib/stringprep.h fixhdr.tmp 2>/dev/null; then
20902     rm -f fixhdr.tmp
20903   elif ! mv fixhdr.tmp $srcdir/lib/stringprep.h; then
20904     as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/lib/stringprep.h..." "$LINENO" 5
20905   fi
20906
20907
20908 # Check whether --enable-gcc-warnings was given.
20909 if test "${enable_gcc_warnings+set}" = set; then :
20910   enableval=$enable_gcc_warnings; case $enableval in
20911      yes|no) ;;
20912      *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5  ;;
20913    esac
20914    gl_gcc_warnings=$enableval
20915 else
20916   gl_gcc_warnings=no
20917
20918 fi
20919
20920
20921 if test "$gl_gcc_warnings" = yes; then
20922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Werror" >&5
20923 $as_echo_n "checking whether compiler handles -Werror... " >&6; }
20924 if test "${gl_cv_warn__Werror+set}" = set; then :
20925   $as_echo_n "(cached) " >&6
20926 else
20927
20928   save_CPPFLAGS="$CPPFLAGS"
20929   CPPFLAGS="${CPPFLAGS} -Werror"
20930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931 /* end confdefs.h.  */
20932
20933 int
20934 main ()
20935 {
20936
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 if ac_fn_c_try_cpp "$LINENO"; then :
20942   gl_cv_warn__Werror=yes
20943 else
20944   gl_cv_warn__Werror=no
20945 fi
20946 rm -f conftest.err conftest.i conftest.$ac_ext
20947   CPPFLAGS="$save_CPPFLAGS"
20948
20949 fi
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Werror" >&5
20951 $as_echo "$gl_cv_warn__Werror" >&6; }
20952 if test "x$gl_cv_warn__Werror" = x""yes; then :
20953   as_fn_append WERROR_CFLAGS " -Werror"
20954 fi
20955
20956   as_gl_Warn=`$as_echo "gl_cv_warn_-Wframe-larger-than=80" | $as_tr_sh`
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wframe-larger-than=80" >&5
20958 $as_echo_n "checking whether compiler handles -Wframe-larger-than=80... " >&6; }
20959 if eval "test \"\${$as_gl_Warn+set}\"" = set; then :
20960   $as_echo_n "(cached) " >&6
20961 else
20962
20963   save_CPPFLAGS="$CPPFLAGS"
20964   CPPFLAGS="${CPPFLAGS} -Wframe-larger-than=80"
20965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h.  */
20967
20968 int
20969 main ()
20970 {
20971
20972   ;
20973   return 0;
20974 }
20975 _ACEOF
20976 if ac_fn_c_try_cpp "$LINENO"; then :
20977   eval "$as_gl_Warn=yes"
20978 else
20979   eval "$as_gl_Warn=no"
20980 fi
20981 rm -f conftest.err conftest.i conftest.$ac_ext
20982   CPPFLAGS="$save_CPPFLAGS"
20983
20984 fi
20985 eval ac_res=\$$as_gl_Warn
20986                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20987 $as_echo "$ac_res" >&6; }
20988 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
20989   as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=80"
20990 fi
20991
20992
20993   nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
20994   nw="$nw -Wc++-compat"             # We don't care strongly about C++ compilers
20995   nw="$nw -Woverlength-strings"     # Some of our strings are too large
20996   nw="$nw -Wsign-conversion"        # Too many warnings for now
20997   nw="$nw -Wconversion"             # Too many warnings for now
20998   nw="$nw -Wtraditional"            # Warns on #elif which we use often
20999   nw="$nw -Wtraditional-conversion" # Too many warnings for now
21000   nw="$nw -Wmissing-noreturn"       # Too many warnings for now
21001   nw="$nw -Wunreachable-code"       # Too many false positives
21002   nw="$nw -Wlogical-op"             # Too many false positives
21003
21004
21005  gl_manywarn_set=
21006  for gl_manywarn_item in \
21007    -Wall \
21008    -W \
21009    -Wformat-y2k \
21010    -Wformat-nonliteral \
21011    -Wformat-security \
21012    -Winit-self \
21013    -Wmissing-include-dirs \
21014    -Wswitch-default \
21015    -Wswitch-enum \
21016    -Wunused \
21017    -Wunknown-pragmas \
21018    -Wstrict-aliasing \
21019    -Wstrict-overflow \
21020    -Wsystem-headers \
21021    -Wfloat-equal \
21022    -Wtraditional \
21023    -Wtraditional-conversion \
21024    -Wdeclaration-after-statement \
21025    -Wundef \
21026    -Wshadow \
21027    -Wunsafe-loop-optimizations \
21028    -Wpointer-arith \
21029    -Wbad-function-cast \
21030    -Wc++-compat \
21031    -Wcast-qual \
21032    -Wcast-align \
21033    -Wwrite-strings \
21034    -Wconversion \
21035    -Wsign-conversion \
21036    -Wlogical-op \
21037    -Waggregate-return \
21038    -Wstrict-prototypes \
21039    -Wold-style-definition \
21040    -Wmissing-prototypes \
21041    -Wmissing-declarations \
21042    -Wmissing-noreturn \
21043    -Wmissing-format-attribute \
21044    -Wpacked \
21045    -Wpadded \
21046    -Wredundant-decls \
21047    -Wnested-externs \
21048    -Wunreachable-code \
21049    -Winline \
21050    -Winvalid-pch \
21051    -Wlong-long \
21052    -Wvla \
21053    -Wvolatile-register-var \
21054    -Wdisabled-optimization \
21055    -Wstack-protector \
21056    -Woverlength-strings \
21057    -Wbuiltin-macro-redefined \
21058    -Wmudflap \
21059    -Wpacked-bitfield-compat \
21060    -Wsync-nand \
21061   ; do
21062     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
21063   done
21064  # The following are not documented in the manual but are included in
21065  # output from gcc --help=warnings.
21066  for gl_manywarn_item in \
21067    -Wattributes \
21068    -Wcoverage-mismatch \
21069    -Wmultichar \
21070    -Wunused-macros \
21071   ; do
21072     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
21073   done
21074   ws=$gl_manywarn_set
21075
21076
21077   gl_warn_set=
21078   set x $ws; shift
21079   for gl_warn_item
21080   do
21081     case " $nw " in
21082       *" $gl_warn_item "*)
21083         ;;
21084       *)
21085         gl_warn_set="$gl_warn_set $gl_warn_item"
21086         ;;
21087     esac
21088   done
21089   ws=$gl_warn_set
21090
21091   for w in $ws; do
21092     as_gl_Warn=`$as_echo "gl_cv_warn_$w" | $as_tr_sh`
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles $w" >&5
21094 $as_echo_n "checking whether compiler handles $w... " >&6; }
21095 if eval "test \"\${$as_gl_Warn+set}\"" = set; then :
21096   $as_echo_n "(cached) " >&6
21097 else
21098
21099   save_CPPFLAGS="$CPPFLAGS"
21100   CPPFLAGS="${CPPFLAGS} $w"
21101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21102 /* end confdefs.h.  */
21103
21104 int
21105 main ()
21106 {
21107
21108   ;
21109   return 0;
21110 }
21111 _ACEOF
21112 if ac_fn_c_try_cpp "$LINENO"; then :
21113   eval "$as_gl_Warn=yes"
21114 else
21115   eval "$as_gl_Warn=no"
21116 fi
21117 rm -f conftest.err conftest.i conftest.$ac_ext
21118   CPPFLAGS="$save_CPPFLAGS"
21119
21120 fi
21121 eval ac_res=\$$as_gl_Warn
21122                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21123 $as_echo "$ac_res" >&6; }
21124 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
21125   as_fn_append WARN_CFLAGS " $w"
21126 fi
21127
21128   done
21129
21130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-missing-field-initializers" >&5
21131 $as_echo_n "checking whether compiler handles -Wno-missing-field-initializers... " >&6; }
21132 if test "${gl_cv_warn__Wno_missing_field_initializers+set}" = set; then :
21133   $as_echo_n "(cached) " >&6
21134 else
21135
21136   save_CPPFLAGS="$CPPFLAGS"
21137   CPPFLAGS="${CPPFLAGS} -Wno-missing-field-initializers"
21138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21139 /* end confdefs.h.  */
21140
21141 int
21142 main ()
21143 {
21144
21145   ;
21146   return 0;
21147 }
21148 _ACEOF
21149 if ac_fn_c_try_cpp "$LINENO"; then :
21150   gl_cv_warn__Wno_missing_field_initializers=yes
21151 else
21152   gl_cv_warn__Wno_missing_field_initializers=no
21153 fi
21154 rm -f conftest.err conftest.i conftest.$ac_ext
21155   CPPFLAGS="$save_CPPFLAGS"
21156
21157 fi
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__Wno_missing_field_initializers" >&5
21159 $as_echo "$gl_cv_warn__Wno_missing_field_initializers" >&6; }
21160 if test "x$gl_cv_warn__Wno_missing_field_initializers" = x""yes; then :
21161   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
21162 fi
21163
21164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fdiagnostics-show-option" >&5
21165 $as_echo_n "checking whether compiler handles -fdiagnostics-show-option... " >&6; }
21166 if test "${gl_cv_warn__fdiagnostics_show_option+set}" = set; then :
21167   $as_echo_n "(cached) " >&6
21168 else
21169
21170   save_CPPFLAGS="$CPPFLAGS"
21171   CPPFLAGS="${CPPFLAGS} -fdiagnostics-show-option"
21172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21173 /* end confdefs.h.  */
21174
21175 int
21176 main ()
21177 {
21178
21179   ;
21180   return 0;
21181 }
21182 _ACEOF
21183 if ac_fn_c_try_cpp "$LINENO"; then :
21184   gl_cv_warn__fdiagnostics_show_option=yes
21185 else
21186   gl_cv_warn__fdiagnostics_show_option=no
21187 fi
21188 rm -f conftest.err conftest.i conftest.$ac_ext
21189   CPPFLAGS="$save_CPPFLAGS"
21190
21191 fi
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn__fdiagnostics_show_option" >&5
21193 $as_echo "$gl_cv_warn__fdiagnostics_show_option" >&6; }
21194 if test "x$gl_cv_warn__fdiagnostics_show_option" = x""yes; then :
21195   as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
21196 fi
21197
21198 fi
21199
21200 ac_config_files="$ac_config_files Makefile libidn.pc csharp/Makefile contrib/doxygen/Doxyfile doc/Makefile doc/cyclo/Makefile doc/java/Makefile doc/reference/Makefile doc/specifications/Makefile doc/tld/Makefile examples/Makefile gl/Makefile gltests/Makefile java/Makefile java/gnu/Makefile java/gnu/inet/Makefile java/gnu/inet/encoding/Makefile java/misc/Makefile lib/Makefile lib/gl/Makefile lib/gltests/Makefile po/Makefile.in src/Makefile tests/Makefile"
21201
21202 cat >confcache <<\_ACEOF
21203 # This file is a shell script that caches the results of configure
21204 # tests run on this system so they can be shared between configure
21205 # scripts and configure runs, see configure's option --config-cache.
21206 # It is not useful on other systems.  If it contains results you don't
21207 # want to keep, you may remove or edit it.
21208 #
21209 # config.status only pays attention to the cache file if you give it
21210 # the --recheck option to rerun configure.
21211 #
21212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21214 # following values.
21215
21216 _ACEOF
21217
21218 # The following way of writing the cache mishandles newlines in values,
21219 # but we know of no workaround that is simple, portable, and efficient.
21220 # So, we kill variables containing newlines.
21221 # Ultrix sh set writes to stderr and can't be redirected directly,
21222 # and sets the high bit in the cache file unless we assign to the vars.
21223 (
21224   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21225     eval ac_val=\$$ac_var
21226     case $ac_val in #(
21227     *${as_nl}*)
21228       case $ac_var in #(
21229       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21230 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21231       esac
21232       case $ac_var in #(
21233       _ | IFS | as_nl) ;; #(
21234       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21235       *) { eval $ac_var=; unset $ac_var;} ;;
21236       esac ;;
21237     esac
21238   done
21239
21240   (set) 2>&1 |
21241     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21242     *${as_nl}ac_space=\ *)
21243       # `set' does not quote correctly, so add quotes: double-quote
21244       # substitution turns \\\\ into \\, and sed turns \\ into \.
21245       sed -n \
21246         "s/'/'\\\\''/g;
21247           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21248       ;; #(
21249     *)
21250       # `set' quotes correctly as required by POSIX, so do not add quotes.
21251       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21252       ;;
21253     esac |
21254     sort
21255 ) |
21256   sed '
21257      /^ac_cv_env_/b end
21258      t clear
21259      :clear
21260      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21261      t end
21262      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21263      :end' >>confcache
21264 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21265   if test -w "$cache_file"; then
21266     test "x$cache_file" != "x/dev/null" &&
21267       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21268 $as_echo "$as_me: updating cache $cache_file" >&6;}
21269     cat confcache >$cache_file
21270   else
21271     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21272 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21273   fi
21274 fi
21275 rm -f confcache
21276
21277 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21278 # Let make expand exec_prefix.
21279 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21280
21281 DEFS=-DHAVE_CONFIG_H
21282
21283 ac_libobjs=
21284 ac_ltlibobjs=
21285 U=
21286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21287   # 1. Remove the extension, and $U if already installed.
21288   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21289   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21290   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21291   #    will be set to the directory where LIBOBJS objects are built.
21292   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21293   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21294 done
21295 LIBOBJS=$ac_libobjs
21296
21297 LTLIBOBJS=$ac_ltlibobjs
21298
21299
21300  if test -n "$EXEEXT"; then
21301   am__EXEEXT_TRUE=
21302   am__EXEEXT_FALSE='#'
21303 else
21304   am__EXEEXT_TRUE='#'
21305   am__EXEEXT_FALSE=
21306 fi
21307
21308 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21309   as_fn_error $? "conditional \"AMDEP\" was never defined.
21310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21311 fi
21312 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21313   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21315 fi
21316 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21317   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
21318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21319 fi
21320
21321     gl_libobjs=
21322     gl_ltlibobjs=
21323     if test -n "$gl_LIBOBJS"; then
21324       # Remove the extension.
21325       sed_drop_objext='s/\.o$//;s/\.obj$//'
21326       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21327         gl_libobjs="$gl_libobjs $i.$ac_objext"
21328         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21329       done
21330     fi
21331     gl_LIBOBJS=$gl_libobjs
21332
21333     gl_LTLIBOBJS=$gl_ltlibobjs
21334
21335
21336
21337     gltests_libobjs=
21338     gltests_ltlibobjs=
21339     if test -n "$gltests_LIBOBJS"; then
21340       # Remove the extension.
21341       sed_drop_objext='s/\.o$//;s/\.obj$//'
21342       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21343         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21344         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21345       done
21346     fi
21347     gltests_LIBOBJS=$gltests_libobjs
21348
21349     gltests_LTLIBOBJS=$gltests_ltlibobjs
21350
21351
21352 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21353   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
21354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21355 fi
21356 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
21357   as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
21358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21359 fi
21360 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
21361   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
21362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21363 fi
21364
21365     lgl_libobjs=
21366     lgl_ltlibobjs=
21367     if test -n "$lgl_LIBOBJS"; then
21368       # Remove the extension.
21369       sed_drop_objext='s/\.o$//;s/\.obj$//'
21370       for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21371         lgl_libobjs="$lgl_libobjs $i.$ac_objext"
21372         lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
21373       done
21374     fi
21375     lgl_LIBOBJS=$lgl_libobjs
21376
21377     lgl_LTLIBOBJS=$lgl_ltlibobjs
21378
21379
21380
21381     lgltests_libobjs=
21382     lgltests_ltlibobjs=
21383     if test -n "$lgltests_LIBOBJS"; then
21384       # Remove the extension.
21385       sed_drop_objext='s/\.o$//;s/\.obj$//'
21386       for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21387         lgltests_libobjs="$lgltests_libobjs $i.$ac_objext"
21388         lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo"
21389       done
21390     fi
21391     lgltests_LIBOBJS=$lgltests_libobjs
21392
21393     lgltests_LTLIBOBJS=$lgltests_ltlibobjs
21394
21395
21396 if test -z "${TLD_TRUE}" && test -z "${TLD_FALSE}"; then
21397   as_fn_error $? "conditional \"TLD\" was never defined.
21398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21399 fi
21400 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21401   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21403 fi
21404 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21405   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21407 fi
21408 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21409   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21411 fi
21412 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21413   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21415 fi
21416 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21417   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21419 fi
21420 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
21421   as_fn_error $? "conditional \"am__fastdepGCJ\" was never defined.
21422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21423 fi
21424 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
21425   as_fn_error $? "conditional \"am__fastdepGCJ\" was never defined.
21426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21427 fi
21428 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
21429   as_fn_error $? "conditional \"JAVA\" was never defined.
21430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21431 fi
21432 if test -z "${CSHARP_TRUE}" && test -z "${CSHARP_FALSE}"; then
21433   as_fn_error $? "conditional \"CSHARP\" was never defined.
21434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21435 fi
21436
21437 : ${CONFIG_STATUS=./config.status}
21438 ac_write_fail=0
21439 ac_clean_files_save=$ac_clean_files
21440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21442 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21443 as_write_fail=0
21444 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21445 #! $SHELL
21446 # Generated by $as_me.
21447 # Run this file to recreate the current configuration.
21448 # Compiler output produced by configure, useful for debugging
21449 # configure, is in config.log if it exists.
21450
21451 debug=false
21452 ac_cs_recheck=false
21453 ac_cs_silent=false
21454
21455 SHELL=\${CONFIG_SHELL-$SHELL}
21456 export SHELL
21457 _ASEOF
21458 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21459 ## -------------------- ##
21460 ## M4sh Initialization. ##
21461 ## -------------------- ##
21462
21463 # Be more Bourne compatible
21464 DUALCASE=1; export DUALCASE # for MKS sh
21465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21466   emulate sh
21467   NULLCMD=:
21468   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21469   # is contrary to our usage.  Disable this feature.
21470   alias -g '${1+"$@"}'='"$@"'
21471   setopt NO_GLOB_SUBST
21472 else
21473   case `(set -o) 2>/dev/null` in #(
21474   *posix*) :
21475     set -o posix ;; #(
21476   *) :
21477      ;;
21478 esac
21479 fi
21480
21481
21482 as_nl='
21483 '
21484 export as_nl
21485 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21486 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21489 # Prefer a ksh shell builtin over an external printf program on Solaris,
21490 # but without wasting forks for bash or zsh.
21491 if test -z "$BASH_VERSION$ZSH_VERSION" \
21492     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21493   as_echo='print -r --'
21494   as_echo_n='print -rn --'
21495 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21496   as_echo='printf %s\n'
21497   as_echo_n='printf %s'
21498 else
21499   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21500     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21501     as_echo_n='/usr/ucb/echo -n'
21502   else
21503     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21504     as_echo_n_body='eval
21505       arg=$1;
21506       case $arg in #(
21507       *"$as_nl"*)
21508         expr "X$arg" : "X\\(.*\\)$as_nl";
21509         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21510       esac;
21511       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21512     '
21513     export as_echo_n_body
21514     as_echo_n='sh -c $as_echo_n_body as_echo'
21515   fi
21516   export as_echo_body
21517   as_echo='sh -c $as_echo_body as_echo'
21518 fi
21519
21520 # The user is always right.
21521 if test "${PATH_SEPARATOR+set}" != set; then
21522   PATH_SEPARATOR=:
21523   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21524     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21525       PATH_SEPARATOR=';'
21526   }
21527 fi
21528
21529
21530 # IFS
21531 # We need space, tab and new line, in precisely that order.  Quoting is
21532 # there to prevent editors from complaining about space-tab.
21533 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21534 # splitting by setting IFS to empty value.)
21535 IFS=" ""        $as_nl"
21536
21537 # Find who we are.  Look in the path if we contain no directory separator.
21538 case $0 in #((
21539   *[\\/]* ) as_myself=$0 ;;
21540   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21541 for as_dir in $PATH
21542 do
21543   IFS=$as_save_IFS
21544   test -z "$as_dir" && as_dir=.
21545     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21546   done
21547 IFS=$as_save_IFS
21548
21549      ;;
21550 esac
21551 # We did not find ourselves, most probably we were run as `sh COMMAND'
21552 # in which case we are not to be found in the path.
21553 if test "x$as_myself" = x; then
21554   as_myself=$0
21555 fi
21556 if test ! -f "$as_myself"; then
21557   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21558   exit 1
21559 fi
21560
21561 # Unset variables that we do not need and which cause bugs (e.g. in
21562 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21563 # suppresses any "Segmentation fault" message there.  '((' could
21564 # trigger a bug in pdksh 5.2.14.
21565 for as_var in BASH_ENV ENV MAIL MAILPATH
21566 do eval test x\${$as_var+set} = xset \
21567   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21568 done
21569 PS1='$ '
21570 PS2='> '
21571 PS4='+ '
21572
21573 # NLS nuisances.
21574 LC_ALL=C
21575 export LC_ALL
21576 LANGUAGE=C
21577 export LANGUAGE
21578
21579 # CDPATH.
21580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21581
21582
21583 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21584 # ----------------------------------------
21585 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21586 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21587 # script with STATUS, using 1 if that was 0.
21588 as_fn_error ()
21589 {
21590   as_status=$1; test $as_status -eq 0 && as_status=1
21591   if test "$4"; then
21592     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21593     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21594   fi
21595   $as_echo "$as_me: error: $2" >&2
21596   as_fn_exit $as_status
21597 } # as_fn_error
21598
21599
21600 # as_fn_set_status STATUS
21601 # -----------------------
21602 # Set $? to STATUS, without forking.
21603 as_fn_set_status ()
21604 {
21605   return $1
21606 } # as_fn_set_status
21607
21608 # as_fn_exit STATUS
21609 # -----------------
21610 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21611 as_fn_exit ()
21612 {
21613   set +e
21614   as_fn_set_status $1
21615   exit $1
21616 } # as_fn_exit
21617
21618 # as_fn_unset VAR
21619 # ---------------
21620 # Portably unset VAR.
21621 as_fn_unset ()
21622 {
21623   { eval $1=; unset $1;}
21624 }
21625 as_unset=as_fn_unset
21626 # as_fn_append VAR VALUE
21627 # ----------------------
21628 # Append the text in VALUE to the end of the definition contained in VAR. Take
21629 # advantage of any shell optimizations that allow amortized linear growth over
21630 # repeated appends, instead of the typical quadratic growth present in naive
21631 # implementations.
21632 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21633   eval 'as_fn_append ()
21634   {
21635     eval $1+=\$2
21636   }'
21637 else
21638   as_fn_append ()
21639   {
21640     eval $1=\$$1\$2
21641   }
21642 fi # as_fn_append
21643
21644 # as_fn_arith ARG...
21645 # ------------------
21646 # Perform arithmetic evaluation on the ARGs, and store the result in the
21647 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21648 # must be portable across $(()) and expr.
21649 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21650   eval 'as_fn_arith ()
21651   {
21652     as_val=$(( $* ))
21653   }'
21654 else
21655   as_fn_arith ()
21656   {
21657     as_val=`expr "$@" || test $? -eq 1`
21658   }
21659 fi # as_fn_arith
21660
21661
21662 if expr a : '\(a\)' >/dev/null 2>&1 &&
21663    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21664   as_expr=expr
21665 else
21666   as_expr=false
21667 fi
21668
21669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21670   as_basename=basename
21671 else
21672   as_basename=false
21673 fi
21674
21675 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21676   as_dirname=dirname
21677 else
21678   as_dirname=false
21679 fi
21680
21681 as_me=`$as_basename -- "$0" ||
21682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21683          X"$0" : 'X\(//\)$' \| \
21684          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21685 $as_echo X/"$0" |
21686     sed '/^.*\/\([^/][^/]*\)\/*$/{
21687             s//\1/
21688             q
21689           }
21690           /^X\/\(\/\/\)$/{
21691             s//\1/
21692             q
21693           }
21694           /^X\/\(\/\).*/{
21695             s//\1/
21696             q
21697           }
21698           s/.*/./; q'`
21699
21700 # Avoid depending upon Character Ranges.
21701 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21702 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21703 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21704 as_cr_digits='0123456789'
21705 as_cr_alnum=$as_cr_Letters$as_cr_digits
21706
21707 ECHO_C= ECHO_N= ECHO_T=
21708 case `echo -n x` in #(((((
21709 -n*)
21710   case `echo 'xy\c'` in
21711   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21712   xy)  ECHO_C='\c';;
21713   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21714        ECHO_T=' ';;
21715   esac;;
21716 *)
21717   ECHO_N='-n';;
21718 esac
21719
21720 rm -f conf$$ conf$$.exe conf$$.file
21721 if test -d conf$$.dir; then
21722   rm -f conf$$.dir/conf$$.file
21723 else
21724   rm -f conf$$.dir
21725   mkdir conf$$.dir 2>/dev/null
21726 fi
21727 if (echo >conf$$.file) 2>/dev/null; then
21728   if ln -s conf$$.file conf$$ 2>/dev/null; then
21729     as_ln_s='ln -s'
21730     # ... but there are two gotchas:
21731     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21732     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21733     # In both cases, we have to default to `cp -p'.
21734     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21735       as_ln_s='cp -p'
21736   elif ln conf$$.file conf$$ 2>/dev/null; then
21737     as_ln_s=ln
21738   else
21739     as_ln_s='cp -p'
21740   fi
21741 else
21742   as_ln_s='cp -p'
21743 fi
21744 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21745 rmdir conf$$.dir 2>/dev/null
21746
21747
21748 # as_fn_mkdir_p
21749 # -------------
21750 # Create "$as_dir" as a directory, including parents if necessary.
21751 as_fn_mkdir_p ()
21752 {
21753
21754   case $as_dir in #(
21755   -*) as_dir=./$as_dir;;
21756   esac
21757   test -d "$as_dir" || eval $as_mkdir_p || {
21758     as_dirs=
21759     while :; do
21760       case $as_dir in #(
21761       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21762       *) as_qdir=$as_dir;;
21763       esac
21764       as_dirs="'$as_qdir' $as_dirs"
21765       as_dir=`$as_dirname -- "$as_dir" ||
21766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21767          X"$as_dir" : 'X\(//\)[^/]' \| \
21768          X"$as_dir" : 'X\(//\)$' \| \
21769          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21770 $as_echo X"$as_dir" |
21771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21772             s//\1/
21773             q
21774           }
21775           /^X\(\/\/\)[^/].*/{
21776             s//\1/
21777             q
21778           }
21779           /^X\(\/\/\)$/{
21780             s//\1/
21781             q
21782           }
21783           /^X\(\/\).*/{
21784             s//\1/
21785             q
21786           }
21787           s/.*/./; q'`
21788       test -d "$as_dir" && break
21789     done
21790     test -z "$as_dirs" || eval "mkdir $as_dirs"
21791   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21792
21793
21794 } # as_fn_mkdir_p
21795 if mkdir -p . 2>/dev/null; then
21796   as_mkdir_p='mkdir -p "$as_dir"'
21797 else
21798   test -d ./-p && rmdir ./-p
21799   as_mkdir_p=false
21800 fi
21801
21802 if test -x / >/dev/null 2>&1; then
21803   as_test_x='test -x'
21804 else
21805   if ls -dL / >/dev/null 2>&1; then
21806     as_ls_L_option=L
21807   else
21808     as_ls_L_option=
21809   fi
21810   as_test_x='
21811     eval sh -c '\''
21812       if test -d "$1"; then
21813         test -d "$1/.";
21814       else
21815         case $1 in #(
21816         -*)set "./$1";;
21817         esac;
21818         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21819         ???[sx]*):;;*)false;;esac;fi
21820     '\'' sh
21821   '
21822 fi
21823 as_executable_p=$as_test_x
21824
21825 # Sed expression to map a string onto a valid CPP name.
21826 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21827
21828 # Sed expression to map a string onto a valid variable name.
21829 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21830
21831
21832 exec 6>&1
21833 ## ----------------------------------- ##
21834 ## Main body of $CONFIG_STATUS script. ##
21835 ## ----------------------------------- ##
21836 _ASEOF
21837 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21838
21839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21840 # Save the log message, to keep $0 and so on meaningful, and to
21841 # report actual input values of CONFIG_FILES etc. instead of their
21842 # values after options handling.
21843 ac_log="
21844 This file was extended by GNU Libidn $as_me 1.15, which was
21845 generated by GNU Autoconf 2.67.  Invocation command line was
21846
21847   CONFIG_FILES    = $CONFIG_FILES
21848   CONFIG_HEADERS  = $CONFIG_HEADERS
21849   CONFIG_LINKS    = $CONFIG_LINKS
21850   CONFIG_COMMANDS = $CONFIG_COMMANDS
21851   $ $0 $@
21852
21853 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21854 "
21855
21856 _ACEOF
21857
21858 case $ac_config_files in *"
21859 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21860 esac
21861
21862 case $ac_config_headers in *"
21863 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21864 esac
21865
21866
21867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21868 # Files that config.status was made for.
21869 config_files="$ac_config_files"
21870 config_headers="$ac_config_headers"
21871 config_links="$ac_config_links"
21872 config_commands="$ac_config_commands"
21873
21874 _ACEOF
21875
21876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21877 ac_cs_usage="\
21878 \`$as_me' instantiates files and other configuration actions
21879 from templates according to the current configuration.  Unless the files
21880 and actions are specified as TAGs, all are instantiated by default.
21881
21882 Usage: $0 [OPTION]... [TAG]...
21883
21884   -h, --help       print this help, then exit
21885   -V, --version    print version number and configuration settings, then exit
21886       --config     print configuration, then exit
21887   -q, --quiet, --silent
21888                    do not print progress messages
21889   -d, --debug      don't remove temporary files
21890       --recheck    update $as_me by reconfiguring in the same conditions
21891       --file=FILE[:TEMPLATE]
21892                    instantiate the configuration file FILE
21893       --header=FILE[:TEMPLATE]
21894                    instantiate the configuration header FILE
21895
21896 Configuration files:
21897 $config_files
21898
21899 Configuration headers:
21900 $config_headers
21901
21902 Configuration links:
21903 $config_links
21904
21905 Configuration commands:
21906 $config_commands
21907
21908 Report bugs to <bug-libidn@gnu.org>.
21909 GNU Libidn home page: <http://www.gnu.org/software/libidn/>.
21910 General help using GNU software: <http://www.gnu.org/gethelp/>."
21911
21912 _ACEOF
21913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21914 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21915 ac_cs_version="\\
21916 GNU Libidn config.status 1.15
21917 configured by $0, generated by GNU Autoconf 2.67,
21918   with options \\"\$ac_cs_config\\"
21919
21920 Copyright (C) 2010 Free Software Foundation, Inc.
21921 This config.status script is free software; the Free Software Foundation
21922 gives unlimited permission to copy, distribute and modify it."
21923
21924 ac_pwd='$ac_pwd'
21925 srcdir='$srcdir'
21926 INSTALL='$INSTALL'
21927 MKDIR_P='$MKDIR_P'
21928 AWK='$AWK'
21929 test -n "\$AWK" || AWK=awk
21930 _ACEOF
21931
21932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21933 # The default lists apply if the user does not specify any file.
21934 ac_need_defaults=:
21935 while test $# != 0
21936 do
21937   case $1 in
21938   --*=?*)
21939     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21940     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21941     ac_shift=:
21942     ;;
21943   --*=)
21944     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21945     ac_optarg=
21946     ac_shift=:
21947     ;;
21948   *)
21949     ac_option=$1
21950     ac_optarg=$2
21951     ac_shift=shift
21952     ;;
21953   esac
21954
21955   case $ac_option in
21956   # Handling of the options.
21957   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21958     ac_cs_recheck=: ;;
21959   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21960     $as_echo "$ac_cs_version"; exit ;;
21961   --config | --confi | --conf | --con | --co | --c )
21962     $as_echo "$ac_cs_config"; exit ;;
21963   --debug | --debu | --deb | --de | --d | -d )
21964     debug=: ;;
21965   --file | --fil | --fi | --f )
21966     $ac_shift
21967     case $ac_optarg in
21968     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21969     '') as_fn_error $? "missing file argument" ;;
21970     esac
21971     as_fn_append CONFIG_FILES " '$ac_optarg'"
21972     ac_need_defaults=false;;
21973   --header | --heade | --head | --hea )
21974     $ac_shift
21975     case $ac_optarg in
21976     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21977     esac
21978     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21979     ac_need_defaults=false;;
21980   --he | --h)
21981     # Conflict between --help and --header
21982     as_fn_error $? "ambiguous option: \`$1'
21983 Try \`$0 --help' for more information.";;
21984   --help | --hel | -h )
21985     $as_echo "$ac_cs_usage"; exit ;;
21986   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21987   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21988     ac_cs_silent=: ;;
21989
21990   # This is an error.
21991   -*) as_fn_error $? "unrecognized option: \`$1'
21992 Try \`$0 --help' for more information." ;;
21993
21994   *) as_fn_append ac_config_targets " $1"
21995      ac_need_defaults=false ;;
21996
21997   esac
21998   shift
21999 done
22000
22001 ac_configure_extra_args=
22002
22003 if $ac_cs_silent; then
22004   exec 6>/dev/null
22005   ac_configure_extra_args="$ac_configure_extra_args --silent"
22006 fi
22007
22008 _ACEOF
22009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22010 if \$ac_cs_recheck; then
22011   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22012   shift
22013   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22014   CONFIG_SHELL='$SHELL'
22015   export CONFIG_SHELL
22016   exec "\$@"
22017 fi
22018
22019 _ACEOF
22020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22021 exec 5>>config.log
22022 {
22023   echo
22024   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22025 ## Running $as_me. ##
22026 _ASBOX
22027   $as_echo "$ac_log"
22028 } >&5
22029
22030 _ACEOF
22031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22032 #
22033 # INIT-COMMANDS
22034 #
22035 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22036
22037
22038 # The HP-UX ksh and POSIX shell print the target directory to stdout
22039 # if CDPATH is set.
22040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22041
22042 sed_quote_subst='$sed_quote_subst'
22043 double_quote_subst='$double_quote_subst'
22044 delay_variable_subst='$delay_variable_subst'
22045 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
22046 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22047 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22048 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22049 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22050 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22051 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22052 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22053 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22054 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22055 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22056 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22057 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22058 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22059 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22060 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22061 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22062 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22063 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22064 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22065 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22066 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22067 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22068 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22069 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22070 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22071 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22072 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22073 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22074 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22075 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22076 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22077 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22078 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22079 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22080 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22081 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22082 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22083 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22084 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22085 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22086 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22087 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22088 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22089 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22090 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22091 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"`'
22092 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"`'
22093 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22094 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22095 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22096 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22097 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22098 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22099 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22100 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22101 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22102 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22103 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22104 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22105 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22106 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22107 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22108 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22109 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22110 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22111 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22112 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22113 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22114 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22115 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22116 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22117 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22118 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22119 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22120 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22121 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22122 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22123 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22124 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22125 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22126 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22127 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22128 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22129 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22130 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22131 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22132 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22133 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22134 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22135 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22136 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22137 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22138 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22139 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22140 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22141 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22142 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22143 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22144 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22145 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22146 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22147 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22148 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22149 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22150 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22151 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22152 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22153 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22154 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22155 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22156 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22157 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22158 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22159 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22160 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22161 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22162 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22163 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22164 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22165 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22166 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22167 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22168 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22169 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22170 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22171 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22172 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22173 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22174 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22175 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22176 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22177 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22178 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22179 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22180 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22181 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22182 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22183 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22184 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22185 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22186 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22187 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22188 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22189 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22190 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22191 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22192 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22193 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22194 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22195 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22196 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22197 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22198 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22199 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22200 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22201 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22202 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22203 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22204 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22205 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
22206
22207 LTCC='$LTCC'
22208 LTCFLAGS='$LTCFLAGS'
22209 compiler='$compiler_DEFAULT'
22210
22211 # Quote evaled strings.
22212 for var in SED \
22213 GREP \
22214 EGREP \
22215 FGREP \
22216 LD \
22217 NM \
22218 LN_S \
22219 lt_SP2NL \
22220 lt_NL2SP \
22221 reload_flag \
22222 deplibs_check_method \
22223 file_magic_cmd \
22224 AR \
22225 AR_FLAGS \
22226 STRIP \
22227 RANLIB \
22228 CC \
22229 CFLAGS \
22230 compiler \
22231 lt_cv_sys_global_symbol_pipe \
22232 lt_cv_sys_global_symbol_to_cdecl \
22233 lt_cv_sys_global_symbol_to_c_name_address \
22234 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22235 SHELL \
22236 ECHO \
22237 lt_prog_compiler_no_builtin_flag \
22238 lt_prog_compiler_wl \
22239 lt_prog_compiler_pic \
22240 lt_prog_compiler_static \
22241 lt_cv_prog_compiler_c_o \
22242 need_locks \
22243 DSYMUTIL \
22244 NMEDIT \
22245 LIPO \
22246 OTOOL \
22247 OTOOL64 \
22248 shrext_cmds \
22249 export_dynamic_flag_spec \
22250 whole_archive_flag_spec \
22251 compiler_needs_object \
22252 with_gnu_ld \
22253 allow_undefined_flag \
22254 no_undefined_flag \
22255 hardcode_libdir_flag_spec \
22256 hardcode_libdir_flag_spec_ld \
22257 hardcode_libdir_separator \
22258 fix_srcfile_path \
22259 exclude_expsyms \
22260 include_expsyms \
22261 file_list_spec \
22262 variables_saved_for_relink \
22263 libname_spec \
22264 library_names_spec \
22265 soname_spec \
22266 finish_eval \
22267 old_striplib \
22268 striplib \
22269 LD_GCJ \
22270 compiler_GCJ \
22271 lt_prog_compiler_no_builtin_flag_GCJ \
22272 lt_prog_compiler_wl_GCJ \
22273 lt_prog_compiler_pic_GCJ \
22274 lt_prog_compiler_static_GCJ \
22275 lt_cv_prog_compiler_c_o_GCJ \
22276 export_dynamic_flag_spec_GCJ \
22277 whole_archive_flag_spec_GCJ \
22278 compiler_needs_object_GCJ \
22279 with_gnu_ld_GCJ \
22280 allow_undefined_flag_GCJ \
22281 no_undefined_flag_GCJ \
22282 hardcode_libdir_flag_spec_GCJ \
22283 hardcode_libdir_flag_spec_ld_GCJ \
22284 hardcode_libdir_separator_GCJ \
22285 fix_srcfile_path_GCJ \
22286 exclude_expsyms_GCJ \
22287 include_expsyms_GCJ \
22288 file_list_spec_GCJ; do
22289     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22290     *[\\\\\\\`\\"\\\$]*)
22291       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22292       ;;
22293     *)
22294       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22295       ;;
22296     esac
22297 done
22298
22299 # Double-quote double-evaled strings.
22300 for var in reload_cmds \
22301 old_postinstall_cmds \
22302 old_postuninstall_cmds \
22303 old_archive_cmds \
22304 extract_expsyms_cmds \
22305 old_archive_from_new_cmds \
22306 old_archive_from_expsyms_cmds \
22307 archive_cmds \
22308 archive_expsym_cmds \
22309 module_cmds \
22310 module_expsym_cmds \
22311 export_symbols_cmds \
22312 prelink_cmds \
22313 postinstall_cmds \
22314 postuninstall_cmds \
22315 finish_cmds \
22316 sys_lib_search_path_spec \
22317 sys_lib_dlsearch_path_spec \
22318 old_archive_cmds_GCJ \
22319 old_archive_from_new_cmds_GCJ \
22320 old_archive_from_expsyms_cmds_GCJ \
22321 archive_cmds_GCJ \
22322 archive_expsym_cmds_GCJ \
22323 module_cmds_GCJ \
22324 module_expsym_cmds_GCJ \
22325 export_symbols_cmds_GCJ \
22326 prelink_cmds_GCJ; do
22327     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22328     *[\\\\\\\`\\"\\\$]*)
22329       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22330       ;;
22331     *)
22332       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22333       ;;
22334     esac
22335 done
22336
22337 # Fix-up fallback echo if it was mangled by the above quoting rules.
22338 case \$lt_ECHO in
22339 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22340   ;;
22341 esac
22342
22343 ac_aux_dir='$ac_aux_dir'
22344 xsi_shell='$xsi_shell'
22345 lt_shell_append='$lt_shell_append'
22346
22347 # See if we are running on zsh, and set the options which allow our
22348 # commands through without removal of \ escapes INIT.
22349 if test -n "\${ZSH_VERSION+set}" ; then
22350    setopt NO_GLOB_SUBST
22351 fi
22352
22353
22354     PACKAGE='$PACKAGE'
22355     VERSION='$VERSION'
22356     TIMESTAMP='$TIMESTAMP'
22357     RM='$RM'
22358     ofile='$ofile'
22359
22360
22361
22362
22363
22364 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22365     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22366     # from automake < 1.5.
22367     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22368     # Capture the value of LINGUAS because we need it to compute CATALOGS.
22369     LINGUAS="${LINGUAS-%UNSET%}"
22370
22371 GNUmakefile=$GNUmakefile
22372
22373 _ACEOF
22374
22375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22376
22377 # Handling of arguments.
22378 for ac_config_target in $ac_config_targets
22379 do
22380   case $ac_config_target in
22381     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22382     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22383     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22384     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22385     "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:build-aux/csharpcomp.sh.in" ;;
22386     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
22387     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22388     "libidn.pc") CONFIG_FILES="$CONFIG_FILES libidn.pc" ;;
22389     "csharp/Makefile") CONFIG_FILES="$CONFIG_FILES csharp/Makefile" ;;
22390     "contrib/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES contrib/doxygen/Doxyfile" ;;
22391     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22392     "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
22393     "doc/java/Makefile") CONFIG_FILES="$CONFIG_FILES doc/java/Makefile" ;;
22394     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
22395     "doc/specifications/Makefile") CONFIG_FILES="$CONFIG_FILES doc/specifications/Makefile" ;;
22396     "doc/tld/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tld/Makefile" ;;
22397     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22398     "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
22399     "gltests/Makefile") CONFIG_FILES="$CONFIG_FILES gltests/Makefile" ;;
22400     "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
22401     "java/gnu/Makefile") CONFIG_FILES="$CONFIG_FILES java/gnu/Makefile" ;;
22402     "java/gnu/inet/Makefile") CONFIG_FILES="$CONFIG_FILES java/gnu/inet/Makefile" ;;
22403     "java/gnu/inet/encoding/Makefile") CONFIG_FILES="$CONFIG_FILES java/gnu/inet/encoding/Makefile" ;;
22404     "java/misc/Makefile") CONFIG_FILES="$CONFIG_FILES java/misc/Makefile" ;;
22405     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22406     "lib/gl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gl/Makefile" ;;
22407     "lib/gltests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gltests/Makefile" ;;
22408     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22409     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22410     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22411
22412   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
22413   esac
22414 done
22415
22416
22417 # If the user did not use the arguments to specify the items to instantiate,
22418 # then the envvar interface is used.  Set only those that are not.
22419 # We use the long form for the default assignment because of an extremely
22420 # bizarre bug on SunOS 4.1.3.
22421 if $ac_need_defaults; then
22422   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22423   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22424   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22425   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22426 fi
22427
22428 # Have a temporary directory for convenience.  Make it in the build tree
22429 # simply because there is no reason against having it here, and in addition,
22430 # creating and moving files from /tmp can sometimes cause problems.
22431 # Hook for its removal unless debugging.
22432 # Note that there is a small window in which the directory will not be cleaned:
22433 # after its creation but before its name has been assigned to `$tmp'.
22434 $debug ||
22435 {
22436   tmp=
22437   trap 'exit_status=$?
22438   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22439 ' 0
22440   trap 'as_fn_exit 1' 1 2 13 15
22441 }
22442 # Create a (secure) tmp directory for tmp files.
22443
22444 {
22445   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22446   test -n "$tmp" && test -d "$tmp"
22447 }  ||
22448 {
22449   tmp=./conf$$-$RANDOM
22450   (umask 077 && mkdir "$tmp")
22451 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22452
22453 # Set up the scripts for CONFIG_FILES section.
22454 # No need to generate them if there are no CONFIG_FILES.
22455 # This happens for instance with `./config.status config.h'.
22456 if test -n "$CONFIG_FILES"; then
22457
22458
22459 ac_cr=`echo X | tr X '\015'`
22460 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22461 # But we know of no other shell where ac_cr would be empty at this
22462 # point, so we can use a bashism as a fallback.
22463 if test "x$ac_cr" = x; then
22464   eval ac_cr=\$\'\\r\'
22465 fi
22466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22468   ac_cs_awk_cr='\\r'
22469 else
22470   ac_cs_awk_cr=$ac_cr
22471 fi
22472
22473 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22474 _ACEOF
22475
22476
22477 {
22478   echo "cat >conf$$subs.awk <<_ACEOF" &&
22479   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22480   echo "_ACEOF"
22481 } >conf$$subs.sh ||
22482   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22483 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22484 ac_delim='%!_!# '
22485 for ac_last_try in false false false false false :; do
22486   . ./conf$$subs.sh ||
22487     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22488
22489   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22490   if test $ac_delim_n = $ac_delim_num; then
22491     break
22492   elif $ac_last_try; then
22493     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22494   else
22495     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22496   fi
22497 done
22498 rm -f conf$$subs.sh
22499
22500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22501 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22502 _ACEOF
22503 sed -n '
22504 h
22505 s/^/S["/; s/!.*/"]=/
22506 p
22507 g
22508 s/^[^!]*!//
22509 :repl
22510 t repl
22511 s/'"$ac_delim"'$//
22512 t delim
22513 :nl
22514 h
22515 s/\(.\{148\}\)..*/\1/
22516 t more1
22517 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22518 p
22519 n
22520 b repl
22521 :more1
22522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22523 p
22524 g
22525 s/.\{148\}//
22526 t nl
22527 :delim
22528 h
22529 s/\(.\{148\}\)..*/\1/
22530 t more2
22531 s/["\\]/\\&/g; s/^/"/; s/$/"/
22532 p
22533 b
22534 :more2
22535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22536 p
22537 g
22538 s/.\{148\}//
22539 t delim
22540 ' <conf$$subs.awk | sed '
22541 /^[^""]/{
22542   N
22543   s/\n//
22544 }
22545 ' >>$CONFIG_STATUS || ac_write_fail=1
22546 rm -f conf$$subs.awk
22547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22548 _ACAWK
22549 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22550   for (key in S) S_is_set[key] = 1
22551   FS = "\a"
22552
22553 }
22554 {
22555   line = $ 0
22556   nfields = split(line, field, "@")
22557   substed = 0
22558   len = length(field[1])
22559   for (i = 2; i < nfields; i++) {
22560     key = field[i]
22561     keylen = length(key)
22562     if (S_is_set[key]) {
22563       value = S[key]
22564       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22565       len += length(value) + length(field[++i])
22566       substed = 1
22567     } else
22568       len += 1 + keylen
22569   }
22570
22571   print line
22572 }
22573
22574 _ACAWK
22575 _ACEOF
22576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22578   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22579 else
22580   cat
22581 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22582   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22583 _ACEOF
22584
22585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22587 # trailing colons and then remove the whole line if VPATH becomes empty
22588 # (actually we leave an empty line to preserve line numbers).
22589 if test "x$srcdir" = x.; then
22590   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22591 h
22592 s///
22593 s/^/:/
22594 s/[      ]*$/:/
22595 s/:\$(srcdir):/:/g
22596 s/:\${srcdir}:/:/g
22597 s/:@srcdir@:/:/g
22598 s/^:*//
22599 s/:*$//
22600 x
22601 s/\(=[   ]*\).*/\1/
22602 G
22603 s/\n//
22604 s/^[^=]*=[       ]*$//
22605 }'
22606 fi
22607
22608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22609 fi # test -n "$CONFIG_FILES"
22610
22611 # Set up the scripts for CONFIG_HEADERS section.
22612 # No need to generate them if there are no CONFIG_HEADERS.
22613 # This happens for instance with `./config.status Makefile'.
22614 if test -n "$CONFIG_HEADERS"; then
22615 cat >"$tmp/defines.awk" <<\_ACAWK ||
22616 BEGIN {
22617 _ACEOF
22618
22619 # Transform confdefs.h into an awk script `defines.awk', embedded as
22620 # here-document in config.status, that substitutes the proper values into
22621 # config.h.in to produce config.h.
22622
22623 # Create a delimiter string that does not exist in confdefs.h, to ease
22624 # handling of long lines.
22625 ac_delim='%!_!# '
22626 for ac_last_try in false false :; do
22627   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22628   if test -z "$ac_t"; then
22629     break
22630   elif $ac_last_try; then
22631     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22632   else
22633     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22634   fi
22635 done
22636
22637 # For the awk script, D is an array of macro values keyed by name,
22638 # likewise P contains macro parameters if any.  Preserve backslash
22639 # newline sequences.
22640
22641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22642 sed -n '
22643 s/.\{148\}/&'"$ac_delim"'/g
22644 t rset
22645 :rset
22646 s/^[     ]*#[    ]*define[       ][      ]*/ /
22647 t def
22648 d
22649 :def
22650 s/\\$//
22651 t bsnl
22652 s/["\\]/\\&/g
22653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22654 D["\1"]=" \3"/p
22655 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22656 d
22657 :bsnl
22658 s/["\\]/\\&/g
22659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22660 D["\1"]=" \3\\\\\\n"\\/p
22661 t cont
22662 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22663 t cont
22664 d
22665 :cont
22666 n
22667 s/.\{148\}/&'"$ac_delim"'/g
22668 t clear
22669 :clear
22670 s/\\$//
22671 t bsnlc
22672 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22673 d
22674 :bsnlc
22675 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22676 b cont
22677 ' <confdefs.h | sed '
22678 s/'"$ac_delim"'/"\\\
22679 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22680
22681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22682   for (key in D) D_is_set[key] = 1
22683   FS = "\a"
22684 }
22685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22686   line = \$ 0
22687   split(line, arg, " ")
22688   if (arg[1] == "#") {
22689     defundef = arg[2]
22690     mac1 = arg[3]
22691   } else {
22692     defundef = substr(arg[1], 2)
22693     mac1 = arg[2]
22694   }
22695   split(mac1, mac2, "(") #)
22696   macro = mac2[1]
22697   prefix = substr(line, 1, index(line, defundef) - 1)
22698   if (D_is_set[macro]) {
22699     # Preserve the white space surrounding the "#".
22700     print prefix "define", macro P[macro] D[macro]
22701     next
22702   } else {
22703     # Replace #undef with comments.  This is necessary, for example,
22704     # in the case of _POSIX_SOURCE, which is predefined and required
22705     # on some systems where configure will not decide to define it.
22706     if (defundef == "undef") {
22707       print "/*", prefix defundef, macro, "*/"
22708       next
22709     }
22710   }
22711 }
22712 { print }
22713 _ACAWK
22714 _ACEOF
22715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22716   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22717 fi # test -n "$CONFIG_HEADERS"
22718
22719
22720 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
22721 shift
22722 for ac_tag
22723 do
22724   case $ac_tag in
22725   :[FHLC]) ac_mode=$ac_tag; continue;;
22726   esac
22727   case $ac_mode$ac_tag in
22728   :[FHL]*:*);;
22729   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
22730   :[FH]-) ac_tag=-:-;;
22731   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22732   esac
22733   ac_save_IFS=$IFS
22734   IFS=:
22735   set x $ac_tag
22736   IFS=$ac_save_IFS
22737   shift
22738   ac_file=$1
22739   shift
22740
22741   case $ac_mode in
22742   :L) ac_source=$1;;
22743   :[FH])
22744     ac_file_inputs=
22745     for ac_f
22746     do
22747       case $ac_f in
22748       -) ac_f="$tmp/stdin";;
22749       *) # Look for the file first in the build tree, then in the source tree
22750          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22751          # because $ac_f cannot contain `:'.
22752          test -f "$ac_f" ||
22753            case $ac_f in
22754            [\\/$]*) false;;
22755            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22756            esac ||
22757            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
22758       esac
22759       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22760       as_fn_append ac_file_inputs " '$ac_f'"
22761     done
22762
22763     # Let's still pretend it is `configure' which instantiates (i.e., don't
22764     # use $as_me), people would be surprised to read:
22765     #    /* config.h.  Generated by config.status.  */
22766     configure_input='Generated from '`
22767           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22768         `' by configure.'
22769     if test x"$ac_file" != x-; then
22770       configure_input="$ac_file.  $configure_input"
22771       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22772 $as_echo "$as_me: creating $ac_file" >&6;}
22773     fi
22774     # Neutralize special characters interpreted by sed in replacement strings.
22775     case $configure_input in #(
22776     *\&* | *\|* | *\\* )
22777        ac_sed_conf_input=`$as_echo "$configure_input" |
22778        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22779     *) ac_sed_conf_input=$configure_input;;
22780     esac
22781
22782     case $ac_tag in
22783     *:-:* | *:-) cat >"$tmp/stdin" \
22784       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
22785     esac
22786     ;;
22787   esac
22788
22789   ac_dir=`$as_dirname -- "$ac_file" ||
22790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22791          X"$ac_file" : 'X\(//\)[^/]' \| \
22792          X"$ac_file" : 'X\(//\)$' \| \
22793          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22794 $as_echo X"$ac_file" |
22795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22796             s//\1/
22797             q
22798           }
22799           /^X\(\/\/\)[^/].*/{
22800             s//\1/
22801             q
22802           }
22803           /^X\(\/\/\)$/{
22804             s//\1/
22805             q
22806           }
22807           /^X\(\/\).*/{
22808             s//\1/
22809             q
22810           }
22811           s/.*/./; q'`
22812   as_dir="$ac_dir"; as_fn_mkdir_p
22813   ac_builddir=.
22814
22815 case "$ac_dir" in
22816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22817 *)
22818   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22819   # A ".." for each directory in $ac_dir_suffix.
22820   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22821   case $ac_top_builddir_sub in
22822   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22823   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22824   esac ;;
22825 esac
22826 ac_abs_top_builddir=$ac_pwd
22827 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22828 # for backward compatibility:
22829 ac_top_builddir=$ac_top_build_prefix
22830
22831 case $srcdir in
22832   .)  # We are building in place.
22833     ac_srcdir=.
22834     ac_top_srcdir=$ac_top_builddir_sub
22835     ac_abs_top_srcdir=$ac_pwd ;;
22836   [\\/]* | ?:[\\/]* )  # Absolute name.
22837     ac_srcdir=$srcdir$ac_dir_suffix;
22838     ac_top_srcdir=$srcdir
22839     ac_abs_top_srcdir=$srcdir ;;
22840   *) # Relative name.
22841     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22842     ac_top_srcdir=$ac_top_build_prefix$srcdir
22843     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22844 esac
22845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22846
22847
22848   case $ac_mode in
22849   :F)
22850   #
22851   # CONFIG_FILE
22852   #
22853
22854   case $INSTALL in
22855   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22856   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22857   esac
22858   ac_MKDIR_P=$MKDIR_P
22859   case $MKDIR_P in
22860   [\\/$]* | ?:[\\/]* ) ;;
22861   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22862   esac
22863 _ACEOF
22864
22865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22866 # If the template does not know about datarootdir, expand it.
22867 # FIXME: This hack should be removed a few years after 2.60.
22868 ac_datarootdir_hack=; ac_datarootdir_seen=
22869 ac_sed_dataroot='
22870 /datarootdir/ {
22871   p
22872   q
22873 }
22874 /@datadir@/p
22875 /@docdir@/p
22876 /@infodir@/p
22877 /@localedir@/p
22878 /@mandir@/p'
22879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22880 *datarootdir*) ac_datarootdir_seen=yes;;
22881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22882   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22884 _ACEOF
22885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22886   ac_datarootdir_hack='
22887   s&@datadir@&$datadir&g
22888   s&@docdir@&$docdir&g
22889   s&@infodir@&$infodir&g
22890   s&@localedir@&$localedir&g
22891   s&@mandir@&$mandir&g
22892   s&\\\${datarootdir}&$datarootdir&g' ;;
22893 esac
22894 _ACEOF
22895
22896 # Neutralize VPATH when `$srcdir' = `.'.
22897 # Shell code in configure.ac might set extrasub.
22898 # FIXME: do we really want to maintain this feature?
22899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22900 ac_sed_extra="$ac_vpsub
22901 $extrasub
22902 _ACEOF
22903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22904 :t
22905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22906 s|@configure_input@|$ac_sed_conf_input|;t t
22907 s&@top_builddir@&$ac_top_builddir_sub&;t t
22908 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22909 s&@srcdir@&$ac_srcdir&;t t
22910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22911 s&@top_srcdir@&$ac_top_srcdir&;t t
22912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22913 s&@builddir@&$ac_builddir&;t t
22914 s&@abs_builddir@&$ac_abs_builddir&;t t
22915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22916 s&@INSTALL@&$ac_INSTALL&;t t
22917 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22918 $ac_datarootdir_hack
22919 "
22920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22921   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22922
22923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22924   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22925   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22926   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22927 which seems to be undefined.  Please make sure it is defined" >&5
22928 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22929 which seems to be undefined.  Please make sure it is defined" >&2;}
22930
22931   rm -f "$tmp/stdin"
22932   case $ac_file in
22933   -) cat "$tmp/out" && rm -f "$tmp/out";;
22934   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22935   esac \
22936   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22937  ;;
22938   :H)
22939   #
22940   # CONFIG_HEADER
22941   #
22942   if test x"$ac_file" != x-; then
22943     {
22944       $as_echo "/* $configure_input  */" \
22945       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22946     } >"$tmp/config.h" \
22947       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22948     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22949       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22951     else
22952       rm -f "$ac_file"
22953       mv "$tmp/config.h" "$ac_file" \
22954         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22955     fi
22956   else
22957     $as_echo "/* $configure_input  */" \
22958       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22959       || as_fn_error $? "could not create -" "$LINENO" 5
22960   fi
22961 # Compute "$ac_file"'s index in $config_headers.
22962 _am_arg="$ac_file"
22963 _am_stamp_count=1
22964 for _am_header in $config_headers :; do
22965   case $_am_header in
22966     $_am_arg | $_am_arg:* )
22967       break ;;
22968     * )
22969       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22970   esac
22971 done
22972 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22973 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22974          X"$_am_arg" : 'X\(//\)[^/]' \| \
22975          X"$_am_arg" : 'X\(//\)$' \| \
22976          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22977 $as_echo X"$_am_arg" |
22978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22979             s//\1/
22980             q
22981           }
22982           /^X\(\/\/\)[^/].*/{
22983             s//\1/
22984             q
22985           }
22986           /^X\(\/\/\)$/{
22987             s//\1/
22988             q
22989           }
22990           /^X\(\/\).*/{
22991             s//\1/
22992             q
22993           }
22994           s/.*/./; q'`/stamp-h$_am_stamp_count
22995  ;;
22996   :L)
22997   #
22998   # CONFIG_LINK
22999   #
23000
23001   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
23002     :
23003   else
23004     # Prefer the file from the source tree if names are identical.
23005     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
23006       ac_source=$srcdir/$ac_source
23007     fi
23008
23009     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
23010 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
23011
23012     if test ! -r "$ac_source"; then
23013       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
23014     fi
23015     rm -f "$ac_file"
23016
23017     # Try a relative symlink, then a hard link, then a copy.
23018     case $ac_source in
23019     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
23020         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
23021     esac
23022     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
23023       ln "$ac_source" "$ac_file" 2>/dev/null ||
23024       cp -p "$ac_source" "$ac_file" ||
23025       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
23026   fi
23027  ;;
23028   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23029 $as_echo "$as_me: executing $ac_file commands" >&6;}
23030  ;;
23031   esac
23032
23033
23034   case $ac_file$ac_mode in
23035     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23036   # Autoconf 2.62 quotes --file arguments for eval, but not when files
23037   # are listed without --file.  Let's play safe and only enable the eval
23038   # if we detect the quoting.
23039   case $CONFIG_FILES in
23040   *\'*) eval set x "$CONFIG_FILES" ;;
23041   *)   set x $CONFIG_FILES ;;
23042   esac
23043   shift
23044   for mf
23045   do
23046     # Strip MF so we end up with the name of the file.
23047     mf=`echo "$mf" | sed -e 's/:.*$//'`
23048     # Check whether this is an Automake generated Makefile or not.
23049     # We used to match only the files named `Makefile.in', but
23050     # some people rename them; so instead we look at the file content.
23051     # Grep'ing the first line is not enough: some people post-process
23052     # each Makefile.in and add a new line on top of each file to say so.
23053     # Grep'ing the whole file is not good either: AIX grep has a line
23054     # limit of 2048, but all sed's we know have understand at least 4000.
23055     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23056       dirpart=`$as_dirname -- "$mf" ||
23057 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23058          X"$mf" : 'X\(//\)[^/]' \| \
23059          X"$mf" : 'X\(//\)$' \| \
23060          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23061 $as_echo X"$mf" |
23062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23063             s//\1/
23064             q
23065           }
23066           /^X\(\/\/\)[^/].*/{
23067             s//\1/
23068             q
23069           }
23070           /^X\(\/\/\)$/{
23071             s//\1/
23072             q
23073           }
23074           /^X\(\/\).*/{
23075             s//\1/
23076             q
23077           }
23078           s/.*/./; q'`
23079     else
23080       continue
23081     fi
23082     # Extract the definition of DEPDIR, am__include, and am__quote
23083     # from the Makefile without running `make'.
23084     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23085     test -z "$DEPDIR" && continue
23086     am__include=`sed -n 's/^am__include = //p' < "$mf"`
23087     test -z "am__include" && continue
23088     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23089     # When using ansi2knr, U may be empty or an underscore; expand it
23090     U=`sed -n 's/^U = //p' < "$mf"`
23091     # Find all dependency output files, they are included files with
23092     # $(DEPDIR) in their names.  We invoke sed twice because it is the
23093     # simplest approach to changing $(DEPDIR) to its actual value in the
23094     # expansion.
23095     for file in `sed -n "
23096       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23097          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23098       # Make sure the directory exists.
23099       test -f "$dirpart/$file" && continue
23100       fdir=`$as_dirname -- "$file" ||
23101 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23102          X"$file" : 'X\(//\)[^/]' \| \
23103          X"$file" : 'X\(//\)$' \| \
23104          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23105 $as_echo X"$file" |
23106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23107             s//\1/
23108             q
23109           }
23110           /^X\(\/\/\)[^/].*/{
23111             s//\1/
23112             q
23113           }
23114           /^X\(\/\/\)$/{
23115             s//\1/
23116             q
23117           }
23118           /^X\(\/\).*/{
23119             s//\1/
23120             q
23121           }
23122           s/.*/./; q'`
23123       as_dir=$dirpart/$fdir; as_fn_mkdir_p
23124       # echo "creating $dirpart/$file"
23125       echo '# dummy' > "$dirpart/$file"
23126     done
23127   done
23128 }
23129  ;;
23130     "libtool":C)
23131
23132     # See if we are running on zsh, and set the options which allow our
23133     # commands through without removal of \ escapes.
23134     if test -n "${ZSH_VERSION+set}" ; then
23135       setopt NO_GLOB_SUBST
23136     fi
23137
23138     cfgfile="${ofile}T"
23139     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23140     $RM "$cfgfile"
23141
23142     cat <<_LT_EOF >> "$cfgfile"
23143 #! $SHELL
23144
23145 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23146 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23148 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23149 #
23150 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23151 #                 2006, 2007, 2008 Free Software Foundation, Inc.
23152 #   Written by Gordon Matzigkeit, 1996
23153 #
23154 #   This file is part of GNU Libtool.
23155 #
23156 # GNU Libtool is free software; you can redistribute it and/or
23157 # modify it under the terms of the GNU General Public License as
23158 # published by the Free Software Foundation; either version 2 of
23159 # the License, or (at your option) any later version.
23160 #
23161 # As a special exception to the GNU General Public License,
23162 # if you distribute this file as part of a program or library that
23163 # is built using GNU Libtool, you may include this file under the
23164 # same distribution terms that you use for the rest of that program.
23165 #
23166 # GNU Libtool is distributed in the hope that it will be useful,
23167 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23168 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23169 # GNU General Public License for more details.
23170 #
23171 # You should have received a copy of the GNU General Public License
23172 # along with GNU Libtool; see the file COPYING.  If not, a copy
23173 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23174 # obtained by writing to the Free Software Foundation, Inc.,
23175 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23176
23177
23178 # The names of the tagged configurations supported by this script.
23179 available_tags="GCJ "
23180
23181 # ### BEGIN LIBTOOL CONFIG
23182
23183 # Assembler program.
23184 AS=$AS
23185
23186 # DLL creation program.
23187 DLLTOOL=$DLLTOOL
23188
23189 # Object dumper program.
23190 OBJDUMP=$OBJDUMP
23191
23192 # Which release of libtool.m4 was used?
23193 macro_version=$macro_version
23194 macro_revision=$macro_revision
23195
23196 # Whether or not to build shared libraries.
23197 build_libtool_libs=$enable_shared
23198
23199 # Whether or not to build static libraries.
23200 build_old_libs=$enable_static
23201
23202 # What type of objects to build.
23203 pic_mode=$pic_mode
23204
23205 # Whether or not to optimize for fast installation.
23206 fast_install=$enable_fast_install
23207
23208 # The host system.
23209 host_alias=$host_alias
23210 host=$host
23211 host_os=$host_os
23212
23213 # The build system.
23214 build_alias=$build_alias
23215 build=$build
23216 build_os=$build_os
23217
23218 # A sed program that does not truncate output.
23219 SED=$lt_SED
23220
23221 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23222 Xsed="\$SED -e 1s/^X//"
23223
23224 # A grep program that handles long lines.
23225 GREP=$lt_GREP
23226
23227 # An ERE matcher.
23228 EGREP=$lt_EGREP
23229
23230 # A literal string matcher.
23231 FGREP=$lt_FGREP
23232
23233 # A BSD- or MS-compatible name lister.
23234 NM=$lt_NM
23235
23236 # Whether we need soft or hard links.
23237 LN_S=$lt_LN_S
23238
23239 # What is the maximum length of a command?
23240 max_cmd_len=$max_cmd_len
23241
23242 # Object file suffix (normally "o").
23243 objext=$ac_objext
23244
23245 # Executable file suffix (normally "").
23246 exeext=$exeext
23247
23248 # whether the shell understands "unset".
23249 lt_unset=$lt_unset
23250
23251 # turn spaces into newlines.
23252 SP2NL=$lt_lt_SP2NL
23253
23254 # turn newlines into spaces.
23255 NL2SP=$lt_lt_NL2SP
23256
23257 # How to create reloadable object files.
23258 reload_flag=$lt_reload_flag
23259 reload_cmds=$lt_reload_cmds
23260
23261 # Method to check whether dependent libraries are shared objects.
23262 deplibs_check_method=$lt_deplibs_check_method
23263
23264 # Command to use when deplibs_check_method == "file_magic".
23265 file_magic_cmd=$lt_file_magic_cmd
23266
23267 # The archiver.
23268 AR=$lt_AR
23269 AR_FLAGS=$lt_AR_FLAGS
23270
23271 # A symbol stripping program.
23272 STRIP=$lt_STRIP
23273
23274 # Commands used to install an old-style archive.
23275 RANLIB=$lt_RANLIB
23276 old_postinstall_cmds=$lt_old_postinstall_cmds
23277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23278
23279 # A C compiler.
23280 LTCC=$lt_CC
23281
23282 # LTCC compiler flags.
23283 LTCFLAGS=$lt_CFLAGS
23284
23285 # Take the output of nm and produce a listing of raw symbols and C names.
23286 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23287
23288 # Transform the output of nm in a proper C declaration.
23289 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23290
23291 # Transform the output of nm in a C name address pair.
23292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23293
23294 # Transform the output of nm in a C name address pair when lib prefix is needed.
23295 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23296
23297 # The name of the directory that contains temporary libtool files.
23298 objdir=$objdir
23299
23300 # Shell to use when invoking shell scripts.
23301 SHELL=$lt_SHELL
23302
23303 # An echo program that does not interpret backslashes.
23304 ECHO=$lt_ECHO
23305
23306 # Used to examine libraries when file_magic_cmd begins with "file".
23307 MAGIC_CMD=$MAGIC_CMD
23308
23309 # Must we lock files when doing compilation?
23310 need_locks=$lt_need_locks
23311
23312 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23313 DSYMUTIL=$lt_DSYMUTIL
23314
23315 # Tool to change global to local symbols on Mac OS X.
23316 NMEDIT=$lt_NMEDIT
23317
23318 # Tool to manipulate fat objects and archives on Mac OS X.
23319 LIPO=$lt_LIPO
23320
23321 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23322 OTOOL=$lt_OTOOL
23323
23324 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23325 OTOOL64=$lt_OTOOL64
23326
23327 # Old archive suffix (normally "a").
23328 libext=$libext
23329
23330 # Shared library suffix (normally ".so").
23331 shrext_cmds=$lt_shrext_cmds
23332
23333 # The commands to extract the exported symbol list from a shared archive.
23334 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23335
23336 # Variables whose values should be saved in libtool wrapper scripts and
23337 # restored at link time.
23338 variables_saved_for_relink=$lt_variables_saved_for_relink
23339
23340 # Do we need the "lib" prefix for modules?
23341 need_lib_prefix=$need_lib_prefix
23342
23343 # Do we need a version for libraries?
23344 need_version=$need_version
23345
23346 # Library versioning type.
23347 version_type=$version_type
23348
23349 # Shared library runtime path variable.
23350 runpath_var=$runpath_var
23351
23352 # Shared library path variable.
23353 shlibpath_var=$shlibpath_var
23354
23355 # Is shlibpath searched before the hard-coded library search path?
23356 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23357
23358 # Format of library name prefix.
23359 libname_spec=$lt_libname_spec
23360
23361 # List of archive names.  First name is the real one, the rest are links.
23362 # The last name is the one that the linker finds with -lNAME
23363 library_names_spec=$lt_library_names_spec
23364
23365 # The coded name of the library, if different from the real name.
23366 soname_spec=$lt_soname_spec
23367
23368 # Command to use after installation of a shared archive.
23369 postinstall_cmds=$lt_postinstall_cmds
23370
23371 # Command to use after uninstallation of a shared archive.
23372 postuninstall_cmds=$lt_postuninstall_cmds
23373
23374 # Commands used to finish a libtool library installation in a directory.
23375 finish_cmds=$lt_finish_cmds
23376
23377 # As "finish_cmds", except a single script fragment to be evaled but
23378 # not shown.
23379 finish_eval=$lt_finish_eval
23380
23381 # Whether we should hardcode library paths into libraries.
23382 hardcode_into_libs=$hardcode_into_libs
23383
23384 # Compile-time system search path for libraries.
23385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23386
23387 # Run-time system search path for libraries.
23388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23389
23390 # Whether dlopen is supported.
23391 dlopen_support=$enable_dlopen
23392
23393 # Whether dlopen of programs is supported.
23394 dlopen_self=$enable_dlopen_self
23395
23396 # Whether dlopen of statically linked programs is supported.
23397 dlopen_self_static=$enable_dlopen_self_static
23398
23399 # Commands to strip libraries.
23400 old_striplib=$lt_old_striplib
23401 striplib=$lt_striplib
23402
23403
23404 # The linker used to build libraries.
23405 LD=$lt_LD
23406
23407 # Commands used to build an old-style archive.
23408 old_archive_cmds=$lt_old_archive_cmds
23409
23410 # A language specific compiler.
23411 CC=$lt_compiler
23412
23413 # Is the compiler the GNU compiler?
23414 with_gcc=$GCC
23415
23416 # Compiler flag to turn off builtin functions.
23417 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23418
23419 # How to pass a linker flag through the compiler.
23420 wl=$lt_lt_prog_compiler_wl
23421
23422 # Additional compiler flags for building library objects.
23423 pic_flag=$lt_lt_prog_compiler_pic
23424
23425 # Compiler flag to prevent dynamic linking.
23426 link_static_flag=$lt_lt_prog_compiler_static
23427
23428 # Does compiler simultaneously support -c and -o options?
23429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23430
23431 # Whether or not to add -lc for building shared libraries.
23432 build_libtool_need_lc=$archive_cmds_need_lc
23433
23434 # Whether or not to disallow shared libs when runtime libs are static.
23435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23436
23437 # Compiler flag to allow reflexive dlopens.
23438 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23439
23440 # Compiler flag to generate shared objects directly from archives.
23441 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23442
23443 # Whether the compiler copes with passing no objects directly.
23444 compiler_needs_object=$lt_compiler_needs_object
23445
23446 # Create an old-style archive from a shared archive.
23447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23448
23449 # Create a temporary old-style archive to link instead of a shared archive.
23450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23451
23452 # Commands used to build a shared archive.
23453 archive_cmds=$lt_archive_cmds
23454 archive_expsym_cmds=$lt_archive_expsym_cmds
23455
23456 # Commands used to build a loadable module if different from building
23457 # a shared archive.
23458 module_cmds=$lt_module_cmds
23459 module_expsym_cmds=$lt_module_expsym_cmds
23460
23461 # Whether we are building with GNU ld or not.
23462 with_gnu_ld=$lt_with_gnu_ld
23463
23464 # Flag that allows shared libraries with undefined symbols to be built.
23465 allow_undefined_flag=$lt_allow_undefined_flag
23466
23467 # Flag that enforces no undefined symbols.
23468 no_undefined_flag=$lt_no_undefined_flag
23469
23470 # Flag to hardcode \$libdir into a binary during linking.
23471 # This must work even if \$libdir does not exist
23472 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23473
23474 # If ld is used when linking, flag to hardcode \$libdir into a binary
23475 # during linking.  This must work even if \$libdir does not exist.
23476 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23477
23478 # Whether we need a single "-rpath" flag with a separated argument.
23479 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23480
23481 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23482 # DIR into the resulting binary.
23483 hardcode_direct=$hardcode_direct
23484
23485 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23486 # DIR into the resulting binary and the resulting library dependency is
23487 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23488 # library is relocated.
23489 hardcode_direct_absolute=$hardcode_direct_absolute
23490
23491 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23492 # into the resulting binary.
23493 hardcode_minus_L=$hardcode_minus_L
23494
23495 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23496 # into the resulting binary.
23497 hardcode_shlibpath_var=$hardcode_shlibpath_var
23498
23499 # Set to "yes" if building a shared library automatically hardcodes DIR
23500 # into the library and all subsequent libraries and executables linked
23501 # against it.
23502 hardcode_automatic=$hardcode_automatic
23503
23504 # Set to yes if linker adds runtime paths of dependent libraries
23505 # to runtime path list.
23506 inherit_rpath=$inherit_rpath
23507
23508 # Whether libtool must link a program against all its dependency libraries.
23509 link_all_deplibs=$link_all_deplibs
23510
23511 # Fix the shell variable \$srcfile for the compiler.
23512 fix_srcfile_path=$lt_fix_srcfile_path
23513
23514 # Set to "yes" if exported symbols are required.
23515 always_export_symbols=$always_export_symbols
23516
23517 # The commands to list exported symbols.
23518 export_symbols_cmds=$lt_export_symbols_cmds
23519
23520 # Symbols that should not be listed in the preloaded symbols.
23521 exclude_expsyms=$lt_exclude_expsyms
23522
23523 # Symbols that must always be exported.
23524 include_expsyms=$lt_include_expsyms
23525
23526 # Commands necessary for linking programs (against libraries) with templates.
23527 prelink_cmds=$lt_prelink_cmds
23528
23529 # Specify filename containing input files.
23530 file_list_spec=$lt_file_list_spec
23531
23532 # How to hardcode a shared library path into an executable.
23533 hardcode_action=$hardcode_action
23534
23535 # ### END LIBTOOL CONFIG
23536
23537 _LT_EOF
23538
23539   case $host_os in
23540   aix3*)
23541     cat <<\_LT_EOF >> "$cfgfile"
23542 # AIX sometimes has problems with the GCC collect2 program.  For some
23543 # reason, if we set the COLLECT_NAMES environment variable, the problems
23544 # vanish in a puff of smoke.
23545 if test "X${COLLECT_NAMES+set}" != Xset; then
23546   COLLECT_NAMES=
23547   export COLLECT_NAMES
23548 fi
23549 _LT_EOF
23550     ;;
23551   esac
23552
23553
23554 ltmain="$ac_aux_dir/ltmain.sh"
23555
23556
23557   # We use sed instead of cat because bash on DJGPP gets confused if
23558   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23559   # text mode, it properly converts lines to CR/LF.  This bash problem
23560   # is reportedly fixed, but why not run on old versions too?
23561   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23562     || (rm -f "$cfgfile"; exit 1)
23563
23564   case $xsi_shell in
23565   yes)
23566     cat << \_LT_EOF >> "$cfgfile"
23567
23568 # func_dirname file append nondir_replacement
23569 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23570 # otherwise set result to NONDIR_REPLACEMENT.
23571 func_dirname ()
23572 {
23573   case ${1} in
23574     */*) func_dirname_result="${1%/*}${2}" ;;
23575     *  ) func_dirname_result="${3}" ;;
23576   esac
23577 }
23578
23579 # func_basename file
23580 func_basename ()
23581 {
23582   func_basename_result="${1##*/}"
23583 }
23584
23585 # func_dirname_and_basename file append nondir_replacement
23586 # perform func_basename and func_dirname in a single function
23587 # call:
23588 #   dirname:  Compute the dirname of FILE.  If nonempty,
23589 #             add APPEND to the result, otherwise set result
23590 #             to NONDIR_REPLACEMENT.
23591 #             value returned in "$func_dirname_result"
23592 #   basename: Compute filename of FILE.
23593 #             value retuned in "$func_basename_result"
23594 # Implementation must be kept synchronized with func_dirname
23595 # and func_basename. For efficiency, we do not delegate to
23596 # those functions but instead duplicate the functionality here.
23597 func_dirname_and_basename ()
23598 {
23599   case ${1} in
23600     */*) func_dirname_result="${1%/*}${2}" ;;
23601     *  ) func_dirname_result="${3}" ;;
23602   esac
23603   func_basename_result="${1##*/}"
23604 }
23605
23606 # func_stripname prefix suffix name
23607 # strip PREFIX and SUFFIX off of NAME.
23608 # PREFIX and SUFFIX must not contain globbing or regex special
23609 # characters, hashes, percent signs, but SUFFIX may contain a leading
23610 # dot (in which case that matches only a dot).
23611 func_stripname ()
23612 {
23613   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23614   # positional parameters, so assign one to ordinary parameter first.
23615   func_stripname_result=${3}
23616   func_stripname_result=${func_stripname_result#"${1}"}
23617   func_stripname_result=${func_stripname_result%"${2}"}
23618 }
23619
23620 # func_opt_split
23621 func_opt_split ()
23622 {
23623   func_opt_split_opt=${1%%=*}
23624   func_opt_split_arg=${1#*=}
23625 }
23626
23627 # func_lo2o object
23628 func_lo2o ()
23629 {
23630   case ${1} in
23631     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23632     *)    func_lo2o_result=${1} ;;
23633   esac
23634 }
23635
23636 # func_xform libobj-or-source
23637 func_xform ()
23638 {
23639   func_xform_result=${1%.*}.lo
23640 }
23641
23642 # func_arith arithmetic-term...
23643 func_arith ()
23644 {
23645   func_arith_result=$(( $* ))
23646 }
23647
23648 # func_len string
23649 # STRING may not start with a hyphen.
23650 func_len ()
23651 {
23652   func_len_result=${#1}
23653 }
23654
23655 _LT_EOF
23656     ;;
23657   *) # Bourne compatible functions.
23658     cat << \_LT_EOF >> "$cfgfile"
23659
23660 # func_dirname file append nondir_replacement
23661 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23662 # otherwise set result to NONDIR_REPLACEMENT.
23663 func_dirname ()
23664 {
23665   # Extract subdirectory from the argument.
23666   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23667   if test "X$func_dirname_result" = "X${1}"; then
23668     func_dirname_result="${3}"
23669   else
23670     func_dirname_result="$func_dirname_result${2}"
23671   fi
23672 }
23673
23674 # func_basename file
23675 func_basename ()
23676 {
23677   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23678 }
23679
23680
23681 # func_stripname prefix suffix name
23682 # strip PREFIX and SUFFIX off of NAME.
23683 # PREFIX and SUFFIX must not contain globbing or regex special
23684 # characters, hashes, percent signs, but SUFFIX may contain a leading
23685 # dot (in which case that matches only a dot).
23686 # func_strip_suffix prefix name
23687 func_stripname ()
23688 {
23689   case ${2} in
23690     .*) func_stripname_result=`$ECHO "X${3}" \
23691            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23692     *)  func_stripname_result=`$ECHO "X${3}" \
23693            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23694   esac
23695 }
23696
23697 # sed scripts:
23698 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23699 my_sed_long_arg='1s/^-[^=]*=//'
23700
23701 # func_opt_split
23702 func_opt_split ()
23703 {
23704   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23705   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23706 }
23707
23708 # func_lo2o object
23709 func_lo2o ()
23710 {
23711   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23712 }
23713
23714 # func_xform libobj-or-source
23715 func_xform ()
23716 {
23717   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23718 }
23719
23720 # func_arith arithmetic-term...
23721 func_arith ()
23722 {
23723   func_arith_result=`expr "$@"`
23724 }
23725
23726 # func_len string
23727 # STRING may not start with a hyphen.
23728 func_len ()
23729 {
23730   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23731 }
23732
23733 _LT_EOF
23734 esac
23735
23736 case $lt_shell_append in
23737   yes)
23738     cat << \_LT_EOF >> "$cfgfile"
23739
23740 # func_append var value
23741 # Append VALUE to the end of shell variable VAR.
23742 func_append ()
23743 {
23744   eval "$1+=\$2"
23745 }
23746 _LT_EOF
23747     ;;
23748   *)
23749     cat << \_LT_EOF >> "$cfgfile"
23750
23751 # func_append var value
23752 # Append VALUE to the end of shell variable VAR.
23753 func_append ()
23754 {
23755   eval "$1=\$$1\$2"
23756 }
23757
23758 _LT_EOF
23759     ;;
23760   esac
23761
23762
23763   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23764     || (rm -f "$cfgfile"; exit 1)
23765
23766   mv -f "$cfgfile" "$ofile" ||
23767     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23768   chmod +x "$ofile"
23769
23770
23771     cat <<_LT_EOF >> "$ofile"
23772
23773 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
23774
23775 # The linker used to build libraries.
23776 LD=$lt_LD_GCJ
23777
23778 # Commands used to build an old-style archive.
23779 old_archive_cmds=$lt_old_archive_cmds_GCJ
23780
23781 # A language specific compiler.
23782 CC=$lt_compiler_GCJ
23783
23784 # Is the compiler the GNU compiler?
23785 with_gcc=$GCC_GCJ
23786
23787 # Compiler flag to turn off builtin functions.
23788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23789
23790 # How to pass a linker flag through the compiler.
23791 wl=$lt_lt_prog_compiler_wl_GCJ
23792
23793 # Additional compiler flags for building library objects.
23794 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23795
23796 # Compiler flag to prevent dynamic linking.
23797 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23798
23799 # Does compiler simultaneously support -c and -o options?
23800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23801
23802 # Whether or not to add -lc for building shared libraries.
23803 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23804
23805 # Whether or not to disallow shared libs when runtime libs are static.
23806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23807
23808 # Compiler flag to allow reflexive dlopens.
23809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23810
23811 # Compiler flag to generate shared objects directly from archives.
23812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23813
23814 # Whether the compiler copes with passing no objects directly.
23815 compiler_needs_object=$lt_compiler_needs_object_GCJ
23816
23817 # Create an old-style archive from a shared archive.
23818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23819
23820 # Create a temporary old-style archive to link instead of a shared archive.
23821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23822
23823 # Commands used to build a shared archive.
23824 archive_cmds=$lt_archive_cmds_GCJ
23825 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23826
23827 # Commands used to build a loadable module if different from building
23828 # a shared archive.
23829 module_cmds=$lt_module_cmds_GCJ
23830 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23831
23832 # Whether we are building with GNU ld or not.
23833 with_gnu_ld=$lt_with_gnu_ld_GCJ
23834
23835 # Flag that allows shared libraries with undefined symbols to be built.
23836 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23837
23838 # Flag that enforces no undefined symbols.
23839 no_undefined_flag=$lt_no_undefined_flag_GCJ
23840
23841 # Flag to hardcode \$libdir into a binary during linking.
23842 # This must work even if \$libdir does not exist
23843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23844
23845 # If ld is used when linking, flag to hardcode \$libdir into a binary
23846 # during linking.  This must work even if \$libdir does not exist.
23847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23848
23849 # Whether we need a single "-rpath" flag with a separated argument.
23850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23851
23852 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23853 # DIR into the resulting binary.
23854 hardcode_direct=$hardcode_direct_GCJ
23855
23856 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23857 # DIR into the resulting binary and the resulting library dependency is
23858 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23859 # library is relocated.
23860 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
23861
23862 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23863 # into the resulting binary.
23864 hardcode_minus_L=$hardcode_minus_L_GCJ
23865
23866 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23867 # into the resulting binary.
23868 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23869
23870 # Set to "yes" if building a shared library automatically hardcodes DIR
23871 # into the library and all subsequent libraries and executables linked
23872 # against it.
23873 hardcode_automatic=$hardcode_automatic_GCJ
23874
23875 # Set to yes if linker adds runtime paths of dependent libraries
23876 # to runtime path list.
23877 inherit_rpath=$inherit_rpath_GCJ
23878
23879 # Whether libtool must link a program against all its dependency libraries.
23880 link_all_deplibs=$link_all_deplibs_GCJ
23881
23882 # Fix the shell variable \$srcfile for the compiler.
23883 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
23884
23885 # Set to "yes" if exported symbols are required.
23886 always_export_symbols=$always_export_symbols_GCJ
23887
23888 # The commands to list exported symbols.
23889 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23890
23891 # Symbols that should not be listed in the preloaded symbols.
23892 exclude_expsyms=$lt_exclude_expsyms_GCJ
23893
23894 # Symbols that must always be exported.
23895 include_expsyms=$lt_include_expsyms_GCJ
23896
23897 # Commands necessary for linking programs (against libraries) with templates.
23898 prelink_cmds=$lt_prelink_cmds_GCJ
23899
23900 # Specify filename containing input files.
23901 file_list_spec=$lt_file_list_spec_GCJ
23902
23903 # How to hardcode a shared library path into an executable.
23904 hardcode_action=$hardcode_action_GCJ
23905
23906 # ### END LIBTOOL TAG CONFIG: GCJ
23907 _LT_EOF
23908
23909  ;;
23910     "po-directories":C)
23911     for ac_file in $CONFIG_FILES; do
23912       # Support "outfile[:infile[:infile...]]"
23913       case "$ac_file" in
23914         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23915       esac
23916       # PO directories have a Makefile.in generated from Makefile.in.in.
23917       case "$ac_file" in */Makefile.in)
23918         # Adjust a relative srcdir.
23919         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23920         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23921         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23922         # In autoconf-2.13 it is called $ac_given_srcdir.
23923         # In autoconf-2.50 it is called $srcdir.
23924         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23925         case "$ac_given_srcdir" in
23926           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23927           /*) top_srcdir="$ac_given_srcdir" ;;
23928           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23929         esac
23930         # Treat a directory as a PO directory if and only if it has a
23931         # POTFILES.in file. This allows packages to have multiple PO
23932         # directories under different names or in different locations.
23933         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23934           rm -f "$ac_dir/POTFILES"
23935           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23936           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23937           POMAKEFILEDEPS="POTFILES.in"
23938           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23939           # on $ac_dir but don't depend on user-specified configuration
23940           # parameters.
23941           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23942             # The LINGUAS file contains the set of available languages.
23943             if test -n "$OBSOLETE_ALL_LINGUAS"; then
23944               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23945             fi
23946             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23947             # Hide the ALL_LINGUAS assigment from automake < 1.5.
23948             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23949             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23950           else
23951             # The set of available languages was given in configure.in.
23952             # Hide the ALL_LINGUAS assigment from automake < 1.5.
23953             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23954           fi
23955           # Compute POFILES
23956           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23957           # Compute UPDATEPOFILES
23958           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23959           # Compute DUMMYPOFILES
23960           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23961           # Compute GMOFILES
23962           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23963           case "$ac_given_srcdir" in
23964             .) srcdirpre= ;;
23965             *) srcdirpre='$(srcdir)/' ;;
23966           esac
23967           POFILES=
23968           UPDATEPOFILES=
23969           DUMMYPOFILES=
23970           GMOFILES=
23971           for lang in $ALL_LINGUAS; do
23972             POFILES="$POFILES $srcdirpre$lang.po"
23973             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23974             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23975             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23976           done
23977           # CATALOGS depends on both $ac_dir and the user's LINGUAS
23978           # environment variable.
23979           INST_LINGUAS=
23980           if test -n "$ALL_LINGUAS"; then
23981             for presentlang in $ALL_LINGUAS; do
23982               useit=no
23983               if test "%UNSET%" != "$LINGUAS"; then
23984                 desiredlanguages="$LINGUAS"
23985               else
23986                 desiredlanguages="$ALL_LINGUAS"
23987               fi
23988               for desiredlang in $desiredlanguages; do
23989                 # Use the presentlang catalog if desiredlang is
23990                 #   a. equal to presentlang, or
23991                 #   b. a variant of presentlang (because in this case,
23992                 #      presentlang can be used as a fallback for messages
23993                 #      which are not translated in the desiredlang catalog).
23994                 case "$desiredlang" in
23995                   "$presentlang"*) useit=yes;;
23996                 esac
23997               done
23998               if test $useit = yes; then
23999                 INST_LINGUAS="$INST_LINGUAS $presentlang"
24000               fi
24001             done
24002           fi
24003           CATALOGS=
24004           if test -n "$INST_LINGUAS"; then
24005             for lang in $INST_LINGUAS; do
24006               CATALOGS="$CATALOGS $lang.gmo"
24007             done
24008           fi
24009           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24010           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24011           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24012             if test -f "$f"; then
24013               case "$f" in
24014                 *.orig | *.bak | *~) ;;
24015                 *) cat "$f" >> "$ac_dir/Makefile" ;;
24016               esac
24017             fi
24018           done
24019         fi
24020         ;;
24021       esac
24022     done ;;
24023
24024   esac
24025 done # for ac_tag
24026
24027
24028 as_fn_exit 0
24029 _ACEOF
24030 ac_clean_files=$ac_clean_files_save
24031
24032 test $ac_write_fail = 0 ||
24033   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24034
24035
24036 # configure is writing to config.log, and then calls config.status.
24037 # config.status does its own redirection, appending to config.log.
24038 # Unfortunately, on DOS this fails, as config.log is still kept open
24039 # by configure, so config.status won't be able to write to it; its
24040 # output is simply discarded.  So we exec the FD to /dev/null,
24041 # effectively closing config.log, so it can be properly (re)opened and
24042 # appended to by config.status.  When coming back to configure, we
24043 # need to make the FD available again.
24044 if test "$no_create" != yes; then
24045   ac_cs_success=:
24046   ac_config_status_args=
24047   test "$silent" = yes &&
24048     ac_config_status_args="$ac_config_status_args --quiet"
24049   exec 5>/dev/null
24050   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24051   exec 5>>config.log
24052   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24053   # would make configure fail if this is the last instruction.
24054   $ac_cs_success || as_fn_exit 1
24055 fi
24056 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24057   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24058 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24059 fi
24060
24061
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
24063
24064   version:          ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
24065   Host type:        ${host}
24066   Install prefix:   ${prefix}
24067   Compiler:         ${CC}
24068   Warning flags:    ${WARN_CFLAGS}
24069   Library types:    Shared=${enable_shared}, Static=${enable_static}
24070   Valgrind:         ${VALGRIND}
24071   Version script:   $have_ld_version_script
24072   TLD code:         $enable_tld
24073   Build Java port:  $enable_java
24074   Build C# port:    $enable_csharp
24075 " >&5
24076 $as_echo "$as_me: summary of build options:
24077
24078   version:          ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
24079   Host type:        ${host}
24080   Install prefix:   ${prefix}
24081   Compiler:         ${CC}
24082   Warning flags:    ${WARN_CFLAGS}
24083   Library types:    Shared=${enable_shared}, Static=${enable_static}
24084   Valgrind:         ${VALGRIND}
24085   Version script:   $have_ld_version_script
24086   TLD code:         $enable_tld
24087   Build Java port:  $enable_java
24088   Build C# port:    $enable_csharp
24089 " >&6;}