Minor consistency changes for latest pilex.git/bootstrap Python scanner
[bootstrap_flex.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for the fast lexical analyser generator 2.6.4.
4 #
5 # Report bugs to <flex-help@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: flex-help@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='the fast lexical analyser generator'
592 PACKAGE_TARNAME='flex'
593 PACKAGE_VERSION='2.6.4'
594 PACKAGE_STRING='the fast lexical analyser generator 2.6.4'
595 PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/scan.l"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_config_libobj_dir=lib
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 ALLOCA
642 LIBPTHREAD
643 INDENT
644 M4
645 TEXI2DVI
646 HELP2MAN
647 CROSS_FALSE
648 CROSS_TRUE
649 ENABLE_BOOTSTRAP_FALSE
650 ENABLE_BOOTSTRAP_TRUE
651 ENABLE_LIBFL_FALSE
652 ENABLE_LIBFL_TRUE
653 WARNINGFLAGS
654 am__fastdepCXX_FALSE
655 am__fastdepCXX_TRUE
656 CXXDEPMODE
657 CXXCPP
658 ac_ct_CXX
659 CXXFLAGS
660 CXX
661 LDFLAGS_FOR_BUILD
662 CPPFLAGS_FOR_BUILD
663 CFLAGS_FOR_BUILD
664 BUILD_OBJEXT
665 BUILD_EXEEXT
666 CPP_FOR_BUILD
667 ac_ct_CC_FOR_BUILD
668 CC_FOR_BUILD
669 LEXLIB
670 LEX_OUTPUT_ROOT
671 LEX
672 HAVE_BISON_FALSE
673 HAVE_BISON_TRUE
674 YFLAGS
675 YACC
676 POSUB
677 LTLIBINTL
678 LIBINTL
679 INTLLIBS
680 LTLIBICONV
681 LIBICONV
682 INTL_MACOSX_LIBS
683 XGETTEXT_EXTRA_OPTIONS
684 MSGMERGE
685 XGETTEXT_015
686 XGETTEXT
687 GMSGFMT_015
688 MSGFMT_015
689 GMSGFMT
690 MSGFMT
691 GETTEXT_MACRO_VERSION
692 USE_NLS
693 SHARED_VERSION_INFO
694 AM_BACKSLASH
695 AM_DEFAULT_VERBOSITY
696 AM_DEFAULT_V
697 AM_V
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 CPP
730 OTOOL64
731 OTOOL
732 LIPO
733 NMEDIT
734 DSYMUTIL
735 MANIFEST_TOOL
736 AWK
737 RANLIB
738 STRIP
739 ac_ct_AR
740 AR
741 DLLTOOL
742 OBJDUMP
743 LN_S
744 NM
745 ac_ct_DUMPBIN
746 DUMPBIN
747 LD
748 FGREP
749 EGREP
750 GREP
751 SED
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 host_os
760 host_vendor
761 host_cpu
762 host
763 build_os
764 build_vendor
765 build_cpu
766 build
767 LIBTOOL
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 runstatedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_shared
811 enable_static
812 with_pic
813 enable_fast_install
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 enable_dependency_tracking
818 enable_silent_rules
819 enable_nls
820 enable_rpath
821 with_libiconv_prefix
822 with_libintl_prefix
823 enable_warnings
824 enable_libfl
825 enable_bootstrap
826 '
827       ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CPP
836 YACC
837 YFLAGS
838 CXX
839 CXXFLAGS
840 CCC
841 CXXCPP'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 runstatedir='${localstatedir}/run'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897   # If the previous option needs an argument, assign it.
898   if test -n "$ac_prev"; then
899     eval $ac_prev=\$ac_option
900     ac_prev=
901     continue
902   fi
903
904   case $ac_option in
905   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906   *=)   ac_optarg= ;;
907   *)    ac_optarg=yes ;;
908   esac
909
910   # Accept the important Cygnus configure options, so we can diagnose typos.
911
912   case $ac_dashdash$ac_option in
913   --)
914     ac_dashdash=yes ;;
915
916   -bindir | --bindir | --bindi | --bind | --bin | --bi)
917     ac_prev=bindir ;;
918   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919     bindir=$ac_optarg ;;
920
921   -build | --build | --buil | --bui | --bu)
922     ac_prev=build_alias ;;
923   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924     build_alias=$ac_optarg ;;
925
926   -cache-file | --cache-file | --cache-fil | --cache-fi \
927   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928     ac_prev=cache_file ;;
929   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931     cache_file=$ac_optarg ;;
932
933   --config-cache | -C)
934     cache_file=config.cache ;;
935
936   -datadir | --datadir | --datadi | --datad)
937     ac_prev=datadir ;;
938   -datadir=* | --datadir=* | --datadi=* | --datad=*)
939     datadir=$ac_optarg ;;
940
941   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942   | --dataroo | --dataro | --datar)
943     ac_prev=datarootdir ;;
944   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946     datarootdir=$ac_optarg ;;
947
948   -disable-* | --disable-*)
949     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952       as_fn_error $? "invalid feature name: $ac_useropt"
953     ac_useropt_orig=$ac_useropt
954     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955     case $ac_user_opts in
956       *"
957 "enable_$ac_useropt"
958 "*) ;;
959       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960          ac_unrecognized_sep=', ';;
961     esac
962     eval enable_$ac_useropt=no ;;
963
964   -docdir | --docdir | --docdi | --doc | --do)
965     ac_prev=docdir ;;
966   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967     docdir=$ac_optarg ;;
968
969   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970     ac_prev=dvidir ;;
971   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972     dvidir=$ac_optarg ;;
973
974   -enable-* | --enable-*)
975     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976     # Reject names that are not valid shell variable names.
977     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978       as_fn_error $? "invalid feature name: $ac_useropt"
979     ac_useropt_orig=$ac_useropt
980     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981     case $ac_user_opts in
982       *"
983 "enable_$ac_useropt"
984 "*) ;;
985       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986          ac_unrecognized_sep=', ';;
987     esac
988     eval enable_$ac_useropt=\$ac_optarg ;;
989
990   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992   | --exec | --exe | --ex)
993     ac_prev=exec_prefix ;;
994   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996   | --exec=* | --exe=* | --ex=*)
997     exec_prefix=$ac_optarg ;;
998
999   -gas | --gas | --ga | --g)
1000     # Obsolete; use --with-gas.
1001     with_gas=yes ;;
1002
1003   -help | --help | --hel | --he | -h)
1004     ac_init_help=long ;;
1005   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006     ac_init_help=recursive ;;
1007   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008     ac_init_help=short ;;
1009
1010   -host | --host | --hos | --ho)
1011     ac_prev=host_alias ;;
1012   -host=* | --host=* | --hos=* | --ho=*)
1013     host_alias=$ac_optarg ;;
1014
1015   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016     ac_prev=htmldir ;;
1017   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018   | --ht=*)
1019     htmldir=$ac_optarg ;;
1020
1021   -includedir | --includedir | --includedi | --included | --include \
1022   | --includ | --inclu | --incl | --inc)
1023     ac_prev=includedir ;;
1024   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025   | --includ=* | --inclu=* | --incl=* | --inc=*)
1026     includedir=$ac_optarg ;;
1027
1028   -infodir | --infodir | --infodi | --infod | --info | --inf)
1029     ac_prev=infodir ;;
1030   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031     infodir=$ac_optarg ;;
1032
1033   -libdir | --libdir | --libdi | --libd)
1034     ac_prev=libdir ;;
1035   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036     libdir=$ac_optarg ;;
1037
1038   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039   | --libexe | --libex | --libe)
1040     ac_prev=libexecdir ;;
1041   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042   | --libexe=* | --libex=* | --libe=*)
1043     libexecdir=$ac_optarg ;;
1044
1045   -localedir | --localedir | --localedi | --localed | --locale)
1046     ac_prev=localedir ;;
1047   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048     localedir=$ac_optarg ;;
1049
1050   -localstatedir | --localstatedir | --localstatedi | --localstated \
1051   | --localstate | --localstat | --localsta | --localst | --locals)
1052     ac_prev=localstatedir ;;
1053   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055     localstatedir=$ac_optarg ;;
1056
1057   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058     ac_prev=mandir ;;
1059   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060     mandir=$ac_optarg ;;
1061
1062   -nfp | --nfp | --nf)
1063     # Obsolete; use --without-fp.
1064     with_fp=no ;;
1065
1066   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067   | --no-cr | --no-c | -n)
1068     no_create=yes ;;
1069
1070   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072     no_recursion=yes ;;
1073
1074   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076   | --oldin | --oldi | --old | --ol | --o)
1077     ac_prev=oldincludedir ;;
1078   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081     oldincludedir=$ac_optarg ;;
1082
1083   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084     ac_prev=prefix ;;
1085   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086     prefix=$ac_optarg ;;
1087
1088   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089   | --program-pre | --program-pr | --program-p)
1090     ac_prev=program_prefix ;;
1091   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093     program_prefix=$ac_optarg ;;
1094
1095   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096   | --program-suf | --program-su | --program-s)
1097     ac_prev=program_suffix ;;
1098   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100     program_suffix=$ac_optarg ;;
1101
1102   -program-transform-name | --program-transform-name \
1103   | --program-transform-nam | --program-transform-na \
1104   | --program-transform-n | --program-transform- \
1105   | --program-transform | --program-transfor \
1106   | --program-transfo | --program-transf \
1107   | --program-trans | --program-tran \
1108   | --progr-tra | --program-tr | --program-t)
1109     ac_prev=program_transform_name ;;
1110   -program-transform-name=* | --program-transform-name=* \
1111   | --program-transform-nam=* | --program-transform-na=* \
1112   | --program-transform-n=* | --program-transform-=* \
1113   | --program-transform=* | --program-transfor=* \
1114   | --program-transfo=* | --program-transf=* \
1115   | --program-trans=* | --program-tran=* \
1116   | --progr-tra=* | --program-tr=* | --program-t=*)
1117     program_transform_name=$ac_optarg ;;
1118
1119   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120     ac_prev=pdfdir ;;
1121   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122     pdfdir=$ac_optarg ;;
1123
1124   -psdir | --psdir | --psdi | --psd | --ps)
1125     ac_prev=psdir ;;
1126   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127     psdir=$ac_optarg ;;
1128
1129   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130   | -silent | --silent | --silen | --sile | --sil)
1131     silent=yes ;;
1132
1133   -runstatedir | --runstatedir | --runstatedi | --runstated \
1134   | --runstate | --runstat | --runsta | --runst | --runs \
1135   | --run | --ru | --r)
1136     ac_prev=runstatedir ;;
1137   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1138   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1139   | --run=* | --ru=* | --r=*)
1140     runstatedir=$ac_optarg ;;
1141
1142   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143     ac_prev=sbindir ;;
1144   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145   | --sbi=* | --sb=*)
1146     sbindir=$ac_optarg ;;
1147
1148   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150   | --sharedst | --shareds | --shared | --share | --shar \
1151   | --sha | --sh)
1152     ac_prev=sharedstatedir ;;
1153   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156   | --sha=* | --sh=*)
1157     sharedstatedir=$ac_optarg ;;
1158
1159   -site | --site | --sit)
1160     ac_prev=site ;;
1161   -site=* | --site=* | --sit=*)
1162     site=$ac_optarg ;;
1163
1164   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165     ac_prev=srcdir ;;
1166   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167     srcdir=$ac_optarg ;;
1168
1169   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170   | --syscon | --sysco | --sysc | --sys | --sy)
1171     ac_prev=sysconfdir ;;
1172   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174     sysconfdir=$ac_optarg ;;
1175
1176   -target | --target | --targe | --targ | --tar | --ta | --t)
1177     ac_prev=target_alias ;;
1178   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179     target_alias=$ac_optarg ;;
1180
1181   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182     verbose=yes ;;
1183
1184   -version | --version | --versio | --versi | --vers | -V)
1185     ac_init_version=: ;;
1186
1187   -with-* | --with-*)
1188     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191       as_fn_error $? "invalid package name: $ac_useropt"
1192     ac_useropt_orig=$ac_useropt
1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194     case $ac_user_opts in
1195       *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199          ac_unrecognized_sep=', ';;
1200     esac
1201     eval with_$ac_useropt=\$ac_optarg ;;
1202
1203   -without-* | --without-*)
1204     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207       as_fn_error $? "invalid package name: $ac_useropt"
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=no ;;
1218
1219   --x)
1220     # Obsolete; use --with-x.
1221     with_x=yes ;;
1222
1223   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224   | --x-incl | --x-inc | --x-in | --x-i)
1225     ac_prev=x_includes ;;
1226   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228     x_includes=$ac_optarg ;;
1229
1230   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232     ac_prev=x_libraries ;;
1233   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235     x_libraries=$ac_optarg ;;
1236
1237   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1239     ;;
1240
1241   *=*)
1242     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243     # Reject names that are not valid shell variable names.
1244     case $ac_envvar in #(
1245       '' | [0-9]* | *[!_$as_cr_alnum]* )
1246       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247     esac
1248     eval $ac_envvar=\$ac_optarg
1249     export $ac_envvar ;;
1250
1251   *)
1252     # FIXME: should be removed in autoconf 3.0.
1253     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257     ;;
1258
1259   esac
1260 done
1261
1262 if test -n "$ac_prev"; then
1263   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264   as_fn_error $? "missing argument to $ac_option"
1265 fi
1266
1267 if test -n "$ac_unrecognized_opts"; then
1268   case $enable_option_checking in
1269     no) ;;
1270     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272   esac
1273 fi
1274
1275 # Check all directory arguments for consistency.
1276 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277                 datadir sysconfdir sharedstatedir localstatedir includedir \
1278                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279                 libdir localedir mandir runstatedir
1280 do
1281   eval ac_val=\$$ac_var
1282   # Remove trailing slashes.
1283   case $ac_val in
1284     */ )
1285       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286       eval $ac_var=\$ac_val;;
1287   esac
1288   # Be sure to have absolute directory names.
1289   case $ac_val in
1290     [\\/$]* | ?:[\\/]* )  continue;;
1291     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292   esac
1293   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305   if test "x$build_alias" = x; then
1306     cross_compiling=maybe
1307   elif test "x$build_alias" != "x$host_alias"; then
1308     cross_compiling=yes
1309   fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321   as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323   as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328   ac_srcdir_defaulted=yes
1329   # Try the directory containing this script, then the parent directory.
1330   ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332          X"$as_myself" : 'X\(//\)[^/]' \| \
1333          X"$as_myself" : 'X\(//\)$' \| \
1334          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\/\)[^/].*/{
1341             s//\1/
1342             q
1343           }
1344           /^X\(\/\/\)$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\).*/{
1349             s//\1/
1350             q
1351           }
1352           s/.*/./; q'`
1353   srcdir=$ac_confdir
1354   if test ! -r "$srcdir/$ac_unique_file"; then
1355     srcdir=..
1356   fi
1357 else
1358   ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367         pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370   srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380   eval ac_env_${ac_var}_value=\$${ac_var}
1381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389   # Omit some internal or obsolete options to make the list less imposing.
1390   # This message is too long to be a string in the A/UX 3.1 sh.
1391   cat <<_ACEOF
1392 \`configure' configures the fast lexical analyser generator 2.6.4 to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402   -h, --help              display this help and exit
1403       --help=short        display options specific to this package
1404       --help=recursive    display the short help of all the included packages
1405   -V, --version           display version information and exit
1406   -q, --quiet, --silent   do not print \`checking ...' messages
1407       --cache-file=FILE   cache test results in FILE [disabled]
1408   -C, --config-cache      alias for \`--cache-file=config.cache'
1409   -n, --no-create         do not create output files
1410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413   --prefix=PREFIX         install architecture-independent files in PREFIX
1414                           [$ac_default_prefix]
1415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                           [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426   --bindir=DIR            user executables [EPREFIX/bin]
1427   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428   --libexecdir=DIR        program executables [EPREFIX/libexec]
1429   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1433   --libdir=DIR            object code libraries [EPREFIX/lib]
1434   --includedir=DIR        C header files [PREFIX/include]
1435   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1436   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1437   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1438   --infodir=DIR           info documentation [DATAROOTDIR/info]
1439   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1440   --mandir=DIR            man documentation [DATAROOTDIR/man]
1441   --docdir=DIR            documentation root [DATAROOTDIR/doc/flex]
1442   --htmldir=DIR           html documentation [DOCDIR]
1443   --dvidir=DIR            dvi documentation [DOCDIR]
1444   --pdfdir=DIR            pdf documentation [DOCDIR]
1445   --psdir=DIR             ps documentation [DOCDIR]
1446 _ACEOF
1447
1448   cat <<\_ACEOF
1449
1450 Program names:
1451   --program-prefix=PREFIX            prepend PREFIX to installed program names
1452   --program-suffix=SUFFIX            append SUFFIX to installed program names
1453   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1454
1455 System types:
1456   --build=BUILD     configure for building on BUILD [guessed]
1457   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462   case $ac_init_help in
1463      short | recursive ) echo "Configuration of the fast lexical analyser generator 2.6.4:";;
1464    esac
1465   cat <<\_ACEOF
1466
1467 Optional Features:
1468   --disable-option-checking  ignore unrecognized --enable/--with options
1469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471   --enable-shared[=PKGS]  build shared libraries [default=yes]
1472   --enable-static[=PKGS]  build static libraries [default=yes]
1473   --enable-fast-install[=PKGS]
1474                           optimize for fast installation [default=yes]
1475   --disable-libtool-lock  avoid locking (might break parallel builds)
1476   --enable-dependency-tracking
1477                           do not reject slow dependency extractors
1478   --disable-dependency-tracking
1479                           speeds up one-time build
1480   --enable-silent-rules   less verbose build output (undo: "make V=1")
1481   --disable-silent-rules  verbose build output (undo: "make V=0")
1482   --disable-nls           do not use Native Language Support
1483   --disable-rpath         do not hardcode runtime library paths
1484   --enable-warnings       enable a bunch of compiler warning flags (defaults
1485                           to GCC warning flags).
1486   --disable-libfl         do not build -lfl runtime support library
1487   --disable-bootstrap     don't perform a bootstrap when building flex
1488
1489 Optional Packages:
1490   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1493                           both]
1494   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1495   --with-sysroot=DIR Search for dependent libraries within DIR
1496                         (or the compiler's sysroot if not specified).
1497   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1498   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1499   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1500   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1501   --without-libintl-prefix     don't search for libintl in includedir and libdir
1502
1503 Some influential environment variables:
1504   CC          C compiler command
1505   CFLAGS      C compiler flags
1506   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507               nonstandard directory <lib dir>
1508   LIBS        libraries to pass to the linker, e.g. -l<library>
1509   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510               you have headers in a nonstandard directory <include dir>
1511   CPP         C preprocessor
1512   YACC        The `Yet Another Compiler Compiler' implementation to use.
1513               Defaults to the first program found out of: `bison -y', `byacc',
1514               `yacc'.
1515   YFLAGS      The list of arguments that will be passed by default to $YACC.
1516               This script will default YFLAGS to the empty string to avoid a
1517               default value of `-d' given by some make applications.
1518   CXX         C++ compiler command
1519   CXXFLAGS    C++ compiler flags
1520   CXXCPP      C++ preprocessor
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to <flex-help@lists.sourceforge.net>.
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531   # If there are subdirs, report their specific --help.
1532   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533     test -d "$ac_dir" ||
1534       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535       continue
1536     ac_builddir=.
1537
1538 case "$ac_dir" in
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *)
1541   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1542   # A ".." for each directory in $ac_dir_suffix.
1543   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544   case $ac_top_builddir_sub in
1545   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547   esac ;;
1548 esac
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1553
1554 case $srcdir in
1555   .)  # We are building in place.
1556     ac_srcdir=.
1557     ac_top_srcdir=$ac_top_builddir_sub
1558     ac_abs_top_srcdir=$ac_pwd ;;
1559   [\\/]* | ?:[\\/]* )  # Absolute name.
1560     ac_srcdir=$srcdir$ac_dir_suffix;
1561     ac_top_srcdir=$srcdir
1562     ac_abs_top_srcdir=$srcdir ;;
1563   *) # Relative name.
1564     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565     ac_top_srcdir=$ac_top_build_prefix$srcdir
1566     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 esac
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
1570     cd "$ac_dir" || { ac_status=$?; continue; }
1571     # Check for guested configure.
1572     if test -f "$ac_srcdir/configure.gnu"; then
1573       echo &&
1574       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575     elif test -f "$ac_srcdir/configure"; then
1576       echo &&
1577       $SHELL "$ac_srcdir/configure" --help=recursive
1578     else
1579       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580     fi || ac_status=$?
1581     cd "$ac_pwd" || { ac_status=$?; break; }
1582   done
1583 fi
1584
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587   cat <<\_ACEOF
1588 the fast lexical analyser generator configure 2.6.4
1589 generated by GNU Autoconf 2.69
1590
1591 Copyright (C) 2012 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595   exit
1596 fi
1597
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1601
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   rm -f conftest.$ac_objext
1609   if { { ac_try="$ac_compile"
1610 case "(($ac_try" in
1611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612   *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616   (eval "$ac_compile") 2>conftest.err
1617   ac_status=$?
1618   if test -s conftest.err; then
1619     grep -v '^ *+' conftest.err >conftest.er1
1620     cat conftest.er1 >&5
1621     mv -f conftest.er1 conftest.err
1622   fi
1623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624   test $ac_status = 0; } && {
1625          test -z "$ac_c_werror_flag" ||
1626          test ! -s conftest.err
1627        } && test -s conftest.$ac_objext; then :
1628   ac_retval=0
1629 else
1630   $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1632
1633         ac_retval=1
1634 fi
1635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636   as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_compile
1639
1640 # ac_fn_c_try_link LINENO
1641 # -----------------------
1642 # Try to link conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_link ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   rm -f conftest.$ac_objext conftest$ac_exeext
1647   if { { ac_try="$ac_link"
1648 case "(($ac_try" in
1649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650   *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654   (eval "$ac_link") 2>conftest.err
1655   ac_status=$?
1656   if test -s conftest.err; then
1657     grep -v '^ *+' conftest.err >conftest.er1
1658     cat conftest.er1 >&5
1659     mv -f conftest.er1 conftest.err
1660   fi
1661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662   test $ac_status = 0; } && {
1663          test -z "$ac_c_werror_flag" ||
1664          test ! -s conftest.err
1665        } && test -s conftest$ac_exeext && {
1666          test "$cross_compiling" = yes ||
1667          test -x conftest$ac_exeext
1668        }; then :
1669   ac_retval=0
1670 else
1671   $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674         ac_retval=1
1675 fi
1676   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1677   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1678   # interfere with the next link command; also delete a directory that is
1679   # left behind by Apple's compiler.  We do this before executing the actions.
1680   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682   as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_link
1685
1686 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists and can be compiled using the include files in
1689 # INCLUDES, setting the cache variable VAR accordingly.
1690 ac_fn_c_check_header_compile ()
1691 {
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696   $as_echo_n "(cached) " >&6
1697 else
1698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h.  */
1700 $4
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_compile "$LINENO"; then :
1704   eval "$3=yes"
1705 else
1706   eval "$3=no"
1707 fi
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709 fi
1710 eval ac_res=\$$3
1711                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715 } # ac_fn_c_check_header_compile
1716
1717 # ac_fn_c_try_cpp LINENO
1718 # ----------------------
1719 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_cpp ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   if { { ac_try="$ac_cpp conftest.$ac_ext"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731   ac_status=$?
1732   if test -s conftest.err; then
1733     grep -v '^ *+' conftest.err >conftest.er1
1734     cat conftest.er1 >&5
1735     mv -f conftest.er1 conftest.err
1736   fi
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } > conftest.i && {
1739          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740          test ! -s conftest.err
1741        }; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747     ac_retval=1
1748 fi
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750   as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_cpp
1753
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1758 ac_fn_c_try_run ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_link") 2>&5
1769   ac_status=$?
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772   { { case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_try") 2>&5
1779   ac_status=$?
1780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781   test $ac_status = 0; }; }; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: program exited with status $ac_status" >&5
1785        $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788        ac_retval=$ac_status
1789 fi
1790   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_run
1795
1796 # ac_fn_c_check_func LINENO FUNC VAR
1797 # ----------------------------------
1798 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1799 ac_fn_c_check_func ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805   $as_echo_n "(cached) " >&6
1806 else
1807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1811 #define $2 innocuous_$2
1812
1813 /* System header to define __stub macros and hopefully few prototypes,
1814     which can conflict with char $2 (); below.
1815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816     <limits.h> exists even on freestanding compilers.  */
1817
1818 #ifdef __STDC__
1819 # include <limits.h>
1820 #else
1821 # include <assert.h>
1822 #endif
1823
1824 #undef $2
1825
1826 /* Override any GCC internal prototype to avoid an error.
1827    Use char because int might match the return type of a GCC
1828    builtin and then its argument prototype would still apply.  */
1829 #ifdef __cplusplus
1830 extern "C"
1831 #endif
1832 char $2 ();
1833 /* The GNU C library defines this for functions which it implements
1834     to always fail with ENOSYS.  Some functions are actually named
1835     something starting with __ and the normal name is an alias.  */
1836 #if defined __stub_$2 || defined __stub___$2
1837 choke me
1838 #endif
1839
1840 int
1841 main ()
1842 {
1843 return $2 ();
1844   ;
1845   return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_link "$LINENO"; then :
1849   eval "$3=yes"
1850 else
1851   eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext \
1854     conftest$ac_exeext conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_c_check_func
1862
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext
1870   if { { ac_try="$ac_compile"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_compile") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_cxx_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest.$ac_objext; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894         ac_retval=1
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897   as_fn_set_status $ac_retval
1898
1899 } # ac_fn_cxx_try_compile
1900
1901 # ac_fn_cxx_try_cpp LINENO
1902 # ------------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_cxx_try_cpp ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   if { { ac_try="$ac_cpp conftest.$ac_ext"
1908 case "(($ac_try" in
1909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910   *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1915   ac_status=$?
1916   if test -s conftest.err; then
1917     grep -v '^ *+' conftest.err >conftest.er1
1918     cat conftest.er1 >&5
1919     mv -f conftest.er1 conftest.err
1920   fi
1921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922   test $ac_status = 0; } > conftest.i && {
1923          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1924          test ! -s conftest.err
1925        }; then :
1926   ac_retval=0
1927 else
1928   $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931     ac_retval=1
1932 fi
1933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934   as_fn_set_status $ac_retval
1935
1936 } # ac_fn_cxx_try_cpp
1937
1938 # ac_fn_cxx_try_link LINENO
1939 # -------------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_link ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   rm -f conftest.$ac_objext conftest$ac_exeext
1945   if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952   (eval "$ac_link") 2>conftest.err
1953   ac_status=$?
1954   if test -s conftest.err; then
1955     grep -v '^ *+' conftest.err >conftest.er1
1956     cat conftest.er1 >&5
1957     mv -f conftest.er1 conftest.err
1958   fi
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; } && {
1961          test -z "$ac_cxx_werror_flag" ||
1962          test ! -s conftest.err
1963        } && test -s conftest$ac_exeext && {
1964          test "$cross_compiling" = yes ||
1965          test -x conftest$ac_exeext
1966        }; 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   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1975   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1976   # interfere with the next link command; also delete a directory that is
1977   # left behind by Apple's compiler.  We do this before executing the actions.
1978   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980   as_fn_set_status $ac_retval
1981
1982 } # ac_fn_cxx_try_link
1983
1984 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1987 # the include files in INCLUDES and setting the cache variable VAR
1988 # accordingly.
1989 ac_fn_c_check_header_mongrel ()
1990 {
1991   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992   if eval \${$3+:} false; then :
1993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996   $as_echo_n "(cached) " >&6
1997 fi
1998 eval ac_res=\$$3
1999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 else
2002   # Is the header compilable?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2004 $as_echo_n "checking $2 usability... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h.  */
2007 $4
2008 #include <$2>
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011   ac_header_compiler=yes
2012 else
2013   ac_header_compiler=no
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2017 $as_echo "$ac_header_compiler" >&6; }
2018
2019 # Is the header present?
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2021 $as_echo_n "checking $2 presence... " >&6; }
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_cpp "$LINENO"; then :
2027   ac_header_preproc=yes
2028 else
2029   ac_header_preproc=no
2030 fi
2031 rm -f conftest.err conftest.i conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2033 $as_echo "$ac_header_preproc" >&6; }
2034
2035 # So?  What about this header?
2036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2037   yes:no: )
2038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2039 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042     ;;
2043   no:yes:* )
2044     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2045 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2046     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2047 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2048     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2049 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2051 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2052     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 ( $as_echo "## ---------------------------------------------- ##
2055 ## Report this to flex-help@lists.sourceforge.net ##
2056 ## ---------------------------------------------- ##"
2057      ) | sed "s/^/$as_me: WARNING:     /" >&2
2058     ;;
2059 esac
2060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063   $as_echo_n "(cached) " >&6
2064 else
2065   eval "$3=\$ac_header_compiler"
2066 fi
2067 eval ac_res=\$$3
2068                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 fi
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073 } # ac_fn_c_check_header_mongrel
2074
2075 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2076 # -------------------------------------------
2077 # Tests whether TYPE exists after having included INCLUDES, setting cache
2078 # variable VAR accordingly.
2079 ac_fn_c_check_type ()
2080 {
2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085   $as_echo_n "(cached) " >&6
2086 else
2087   eval "$3=no"
2088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 $4
2091 int
2092 main ()
2093 {
2094 if (sizeof ($2))
2095          return 0;
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 $4
2104 int
2105 main ()
2106 {
2107 if (sizeof (($2)))
2108             return 0;
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114
2115 else
2116   eval "$3=yes"
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 fi
2122 eval ac_res=\$$3
2123                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126
2127 } # ac_fn_c_check_type
2128 cat >config.log <<_ACEOF
2129 This file contains any messages produced by compilers while
2130 running configure, to aid debugging if configure makes a mistake.
2131
2132 It was created by the fast lexical analyser generator $as_me 2.6.4, which was
2133 generated by GNU Autoconf 2.69.  Invocation command line was
2134
2135   $ $0 $@
2136
2137 _ACEOF
2138 exec 5>>config.log
2139 {
2140 cat <<_ASUNAME
2141 ## --------- ##
2142 ## Platform. ##
2143 ## --------- ##
2144
2145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2150
2151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2153
2154 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2155 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2158 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2159 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2160 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2161
2162 _ASUNAME
2163
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167   IFS=$as_save_IFS
2168   test -z "$as_dir" && as_dir=.
2169     $as_echo "PATH: $as_dir"
2170   done
2171 IFS=$as_save_IFS
2172
2173 } >&5
2174
2175 cat >&5 <<_ACEOF
2176
2177
2178 ## ----------- ##
2179 ## Core tests. ##
2180 ## ----------- ##
2181
2182 _ACEOF
2183
2184
2185 # Keep a trace of the command line.
2186 # Strip out --no-create and --no-recursion so they do not pile up.
2187 # Strip out --silent because we don't want to record it for future runs.
2188 # Also quote any args containing shell meta-characters.
2189 # Make two passes to allow for proper duplicate-argument suppression.
2190 ac_configure_args=
2191 ac_configure_args0=
2192 ac_configure_args1=
2193 ac_must_keep_next=false
2194 for ac_pass in 1 2
2195 do
2196   for ac_arg
2197   do
2198     case $ac_arg in
2199     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2200     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2201     | -silent | --silent | --silen | --sile | --sil)
2202       continue ;;
2203     *\'*)
2204       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2205     esac
2206     case $ac_pass in
2207     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2208     2)
2209       as_fn_append ac_configure_args1 " '$ac_arg'"
2210       if test $ac_must_keep_next = true; then
2211         ac_must_keep_next=false # Got value, back to normal.
2212       else
2213         case $ac_arg in
2214           *=* | --config-cache | -C | -disable-* | --disable-* \
2215           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2216           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2217           | -with-* | --with-* | -without-* | --without-* | --x)
2218             case "$ac_configure_args0 " in
2219               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2220             esac
2221             ;;
2222           -* ) ac_must_keep_next=true ;;
2223         esac
2224       fi
2225       as_fn_append ac_configure_args " '$ac_arg'"
2226       ;;
2227     esac
2228   done
2229 done
2230 { ac_configure_args0=; unset ac_configure_args0;}
2231 { ac_configure_args1=; unset ac_configure_args1;}
2232
2233 # When interrupted or exit'd, cleanup temporary files, and complete
2234 # config.log.  We remove comments because anyway the quotes in there
2235 # would cause problems or look ugly.
2236 # WARNING: Use '\'' to represent an apostrophe within the trap.
2237 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2238 trap 'exit_status=$?
2239   # Save into config.log some information that might help in debugging.
2240   {
2241     echo
2242
2243     $as_echo "## ---------------- ##
2244 ## Cache variables. ##
2245 ## ---------------- ##"
2246     echo
2247     # The following way of writing the cache mishandles newlines in values,
2248 (
2249   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2250     eval ac_val=\$$ac_var
2251     case $ac_val in #(
2252     *${as_nl}*)
2253       case $ac_var in #(
2254       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2255 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2256       esac
2257       case $ac_var in #(
2258       _ | IFS | as_nl) ;; #(
2259       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2260       *) { eval $ac_var=; unset $ac_var;} ;;
2261       esac ;;
2262     esac
2263   done
2264   (set) 2>&1 |
2265     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2266     *${as_nl}ac_space=\ *)
2267       sed -n \
2268         "s/'\''/'\''\\\\'\'''\''/g;
2269           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2270       ;; #(
2271     *)
2272       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2273       ;;
2274     esac |
2275     sort
2276 )
2277     echo
2278
2279     $as_echo "## ----------------- ##
2280 ## Output variables. ##
2281 ## ----------------- ##"
2282     echo
2283     for ac_var in $ac_subst_vars
2284     do
2285       eval ac_val=\$$ac_var
2286       case $ac_val in
2287       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288       esac
2289       $as_echo "$ac_var='\''$ac_val'\''"
2290     done | sort
2291     echo
2292
2293     if test -n "$ac_subst_files"; then
2294       $as_echo "## ------------------- ##
2295 ## File substitutions. ##
2296 ## ------------------- ##"
2297       echo
2298       for ac_var in $ac_subst_files
2299       do
2300         eval ac_val=\$$ac_var
2301         case $ac_val in
2302         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303         esac
2304         $as_echo "$ac_var='\''$ac_val'\''"
2305       done | sort
2306       echo
2307     fi
2308
2309     if test -s confdefs.h; then
2310       $as_echo "## ----------- ##
2311 ## confdefs.h. ##
2312 ## ----------- ##"
2313       echo
2314       cat confdefs.h
2315       echo
2316     fi
2317     test "$ac_signal" != 0 &&
2318       $as_echo "$as_me: caught signal $ac_signal"
2319     $as_echo "$as_me: exit $exit_status"
2320   } >&5
2321   rm -f core *.core core.conftest.* &&
2322     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2323     exit $exit_status
2324 ' 0
2325 for ac_signal in 1 2 13 15; do
2326   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2327 done
2328 ac_signal=0
2329
2330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2331 rm -f -r conftest* confdefs.h
2332
2333 $as_echo "/* confdefs.h */" > confdefs.h
2334
2335 # Predefined preprocessor variables.
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_NAME "$PACKAGE_NAME"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_STRING "$PACKAGE_STRING"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2355 _ACEOF
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_URL "$PACKAGE_URL"
2359 _ACEOF
2360
2361
2362 # Let the site file select an alternate cache file if it wants to.
2363 # Prefer an explicitly selected file to automatically selected ones.
2364 ac_site_file1=NONE
2365 ac_site_file2=NONE
2366 if test -n "$CONFIG_SITE"; then
2367   # We do not want a PATH search for config.site.
2368   case $CONFIG_SITE in #((
2369     -*)  ac_site_file1=./$CONFIG_SITE;;
2370     */*) ac_site_file1=$CONFIG_SITE;;
2371     *)   ac_site_file1=./$CONFIG_SITE;;
2372   esac
2373 elif test "x$prefix" != xNONE; then
2374   ac_site_file1=$prefix/share/config.site
2375   ac_site_file2=$prefix/etc/config.site
2376 else
2377   ac_site_file1=$ac_default_prefix/share/config.site
2378   ac_site_file2=$ac_default_prefix/etc/config.site
2379 fi
2380 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2381 do
2382   test "x$ac_site_file" = xNONE && continue
2383   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2384     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2385 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2386     sed 's/^/| /' "$ac_site_file" >&5
2387     . "$ac_site_file" \
2388       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 as_fn_error $? "failed to load site script $ac_site_file
2391 See \`config.log' for more details" "$LINENO" 5; }
2392   fi
2393 done
2394
2395 if test -r "$cache_file"; then
2396   # Some versions of bash will fail to source /dev/null (special files
2397   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2398   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2400 $as_echo "$as_me: loading cache $cache_file" >&6;}
2401     case $cache_file in
2402       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2403       *)                      . "./$cache_file";;
2404     esac
2405   fi
2406 else
2407   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2408 $as_echo "$as_me: creating cache $cache_file" >&6;}
2409   >$cache_file
2410 fi
2411
2412 gt_needs="$gt_needs "
2413 # Check that the precious variables saved in the cache have kept the same
2414 # value.
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418   eval ac_new_set=\$ac_env_${ac_var}_set
2419   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420   eval ac_new_val=\$ac_env_${ac_var}_value
2421   case $ac_old_set,$ac_new_set in
2422     set,)
2423       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425       ac_cache_corrupted=: ;;
2426     ,set)
2427       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429       ac_cache_corrupted=: ;;
2430     ,);;
2431     *)
2432       if test "x$ac_old_val" != "x$ac_new_val"; then
2433         # differences in whitespace do not lead to failure.
2434         ac_old_val_w=`echo x $ac_old_val`
2435         ac_new_val_w=`echo x $ac_new_val`
2436         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439           ac_cache_corrupted=:
2440         else
2441           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443           eval $ac_var=\$ac_old_val
2444         fi
2445         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2446 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2447         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2448 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2449       fi;;
2450   esac
2451   # Pass precious variables to config.status.
2452   if test "$ac_new_set" = set; then
2453     case $ac_new_val in
2454     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2455     *) ac_arg=$ac_var=$ac_new_val ;;
2456     esac
2457     case " $ac_configure_args " in
2458       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2459       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2460     esac
2461   fi
2462 done
2463 if $ac_cache_corrupted; then
2464   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2469 fi
2470 ## -------------------- ##
2471 ## Main body of script. ##
2472 ## -------------------- ##
2473
2474 ac_ext=c
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480
2481
2482 ac_aux_dir=
2483 for ac_dir in build-aux "$srcdir"/build-aux; do
2484   if test -f "$ac_dir/install-sh"; then
2485     ac_aux_dir=$ac_dir
2486     ac_install_sh="$ac_aux_dir/install-sh -c"
2487     break
2488   elif test -f "$ac_dir/install.sh"; then
2489     ac_aux_dir=$ac_dir
2490     ac_install_sh="$ac_aux_dir/install.sh -c"
2491     break
2492   elif test -f "$ac_dir/shtool"; then
2493     ac_aux_dir=$ac_dir
2494     ac_install_sh="$ac_aux_dir/shtool install -c"
2495     break
2496   fi
2497 done
2498 if test -z "$ac_aux_dir"; then
2499   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2500 fi
2501
2502 # These three variables are undocumented and unsupported,
2503 # and are intended to be withdrawn in a future Autoconf release.
2504 # They can cause serious problems if a builder's source tree is in a directory
2505 # whose full name contains unusual characters.
2506 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2507 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2508 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2509
2510
2511 case `pwd` in
2512   *\ * | *\     *)
2513     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2514 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2515 esac
2516
2517
2518
2519 macro_version='2.4.2'
2520 macro_revision='1.3337'
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534 ltmain="$ac_aux_dir/ltmain.sh"
2535
2536 # Make sure we can run config.sub.
2537 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2538   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2539
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2541 $as_echo_n "checking build system type... " >&6; }
2542 if ${ac_cv_build+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   ac_build_alias=$build_alias
2546 test "x$ac_build_alias" = x &&
2547   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2548 test "x$ac_build_alias" = x &&
2549   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2550 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2551   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2552
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2555 $as_echo "$ac_cv_build" >&6; }
2556 case $ac_cv_build in
2557 *-*-*) ;;
2558 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2559 esac
2560 build=$ac_cv_build
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_build
2563 shift
2564 build_cpu=$1
2565 build_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 build_os=$*
2570 IFS=$ac_save_IFS
2571 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2572
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if ${ac_cv_host+:} false; then :
2577   $as_echo_n "(cached) " >&6
2578 else
2579   if test "x$host_alias" = x; then
2580   ac_cv_host=$ac_cv_build
2581 else
2582   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2584 fi
2585
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2588 $as_echo "$ac_cv_host" >&6; }
2589 case $ac_cv_host in
2590 *-*-*) ;;
2591 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2592 esac
2593 host=$ac_cv_host
2594 ac_save_IFS=$IFS; IFS='-'
2595 set x $ac_cv_host
2596 shift
2597 host_cpu=$1
2598 host_vendor=$2
2599 shift; shift
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2602 host_os=$*
2603 IFS=$ac_save_IFS
2604 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2605
2606
2607 # Backslashify metacharacters that are still active within
2608 # double-quoted strings.
2609 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2610
2611 # Same as above, but do not quote variable references.
2612 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2613
2614 # Sed substitution to delay expansion of an escaped shell variable in a
2615 # double_quote_subst'ed string.
2616 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2617
2618 # Sed substitution to delay expansion of an escaped single quote.
2619 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2620
2621 # Sed substitution to avoid accidental globbing in evaled expressions
2622 no_glob_subst='s/\*/\\\*/g'
2623
2624 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2625 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2626 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2629 $as_echo_n "checking how to print strings... " >&6; }
2630 # Test print first, because it will be a builtin if present.
2631 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2632    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2633   ECHO='print -r --'
2634 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2635   ECHO='printf %s\n'
2636 else
2637   # Use this function as a fallback that always works.
2638   func_fallback_echo ()
2639   {
2640     eval 'cat <<_LTECHO_EOF
2641 $1
2642 _LTECHO_EOF'
2643   }
2644   ECHO='func_fallback_echo'
2645 fi
2646
2647 # func_echo_all arg...
2648 # Invoke $ECHO with all args, space-separated.
2649 func_echo_all ()
2650 {
2651     $ECHO ""
2652 }
2653
2654 case "$ECHO" in
2655   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2656 $as_echo "printf" >&6; } ;;
2657   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2658 $as_echo "print -r" >&6; } ;;
2659   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2660 $as_echo "cat" >&6; } ;;
2661 esac
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676 # Expand $ac_aux_dir to an absolute path.
2677 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2678
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 if test -n "$ac_tool_prefix"; then
2685   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2686 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_CC+:} false; then :
2690   $as_echo_n "(cached) " >&6
2691 else
2692   if test -n "$CC"; then
2693   ac_cv_prog_CC="$CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698   IFS=$as_save_IFS
2699   test -z "$as_dir" && as_dir=.
2700     for ac_exec_ext in '' $ac_executable_extensions; do
2701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704     break 2
2705   fi
2706 done
2707   done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 CC=$ac_cv_prog_CC
2713 if test -n "$CC"; then
2714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2716 else
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721
2722 fi
2723 if test -z "$ac_cv_prog_CC"; then
2724   ac_ct_CC=$CC
2725   # Extract the first word of "gcc", so it can be a program name with args.
2726 set dummy gcc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   if test -n "$ac_ct_CC"; then
2733   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740     for ac_exec_ext in '' $ac_executable_extensions; do
2741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742     ac_cv_prog_ac_ct_CC="gcc"
2743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747   done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2753 if test -n "$ac_ct_CC"; then
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2755 $as_echo "$ac_ct_CC" >&6; }
2756 else
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2759 fi
2760
2761   if test "x$ac_ct_CC" = x; then
2762     CC=""
2763   else
2764     case $cross_compiling:$ac_tool_warned in
2765 yes:)
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768 ac_tool_warned=yes ;;
2769 esac
2770     CC=$ac_ct_CC
2771   fi
2772 else
2773   CC="$ac_cv_prog_CC"
2774 fi
2775
2776 if test -z "$CC"; then
2777           if test -n "$ac_tool_prefix"; then
2778     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}cc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   if test -n "$CC"; then
2786   ac_cv_prog_CC="$CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793     for ac_exec_ext in '' $ac_executable_extensions; do
2794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795     ac_cv_prog_CC="${ac_tool_prefix}cc"
2796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800   done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 CC=$ac_cv_prog_CC
2806 if test -n "$CC"; then
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808 $as_echo "$CC" >&6; }
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815   fi
2816 fi
2817 if test -z "$CC"; then
2818   # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_CC+:} false; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$CC"; then
2826   ac_cv_prog_CC="$CC" # Let the user override the test.
2827 else
2828   ac_prog_rejected=no
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834     for ac_exec_ext in '' $ac_executable_extensions; do
2835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2837        ac_prog_rejected=yes
2838        continue
2839      fi
2840     ac_cv_prog_CC="cc"
2841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842     break 2
2843   fi
2844 done
2845   done
2846 IFS=$as_save_IFS
2847
2848 if test $ac_prog_rejected = yes; then
2849   # We found a bogon in the path, so make sure we never use it.
2850   set dummy $ac_cv_prog_CC
2851   shift
2852   if test $# != 0; then
2853     # We chose a different compiler from the bogus one.
2854     # However, it has the same basename, so the bogon will be chosen
2855     # first if we set CC to just the basename; use the full file name.
2856     shift
2857     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2858   fi
2859 fi
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 fi
2873 if test -z "$CC"; then
2874   if test -n "$ac_tool_prefix"; then
2875   for ac_prog in cl.exe
2876   do
2877     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882   $as_echo_n "(cached) " >&6
2883 else
2884   if test -n "$CC"; then
2885   ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892     for ac_exec_ext in '' $ac_executable_extensions; do
2893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899   done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913
2914     test -n "$CC" && break
2915   done
2916 fi
2917 if test -z "$CC"; then
2918   ac_ct_CC=$CC
2919   for ac_prog in cl.exe
2920 do
2921   # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy $ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926   $as_echo_n "(cached) " >&6
2927 else
2928   if test -n "$ac_ct_CC"; then
2929   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936     for ac_exec_ext in '' $ac_executable_extensions; do
2937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938     ac_cv_prog_ac_ct_CC="$ac_prog"
2939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940     break 2
2941   fi
2942 done
2943   done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2952 else
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958   test -n "$ac_ct_CC" && break
2959 done
2960
2961   if test "x$ac_ct_CC" = x; then
2962     CC=""
2963   else
2964     case $cross_compiling:$ac_tool_warned in
2965 yes:)
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 ac_tool_warned=yes ;;
2969 esac
2970     CC=$ac_ct_CC
2971   fi
2972 fi
2973
2974 fi
2975
2976
2977 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 as_fn_error $? "no acceptable C compiler found in \$PATH
2980 See \`config.log' for more details" "$LINENO" 5; }
2981
2982 # Provide some information about the compiler.
2983 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2984 set X $ac_compile
2985 ac_compiler=$2
2986 for ac_option in --version -v -V -qversion; do
2987   { { ac_try="$ac_compiler $ac_option >&5"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 $as_echo "$ac_try_echo"; } >&5
2994   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2995   ac_status=$?
2996   if test -s conftest.err; then
2997     sed '10a\
2998 ... rest of stderr output deleted ...
2999          10q' conftest.err >conftest.er1
3000     cat conftest.er1 >&5
3001   fi
3002   rm -f conftest.er1 conftest.err
3003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004   test $ac_status = 0; }
3005 done
3006
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 ac_clean_files_save=$ac_clean_files
3019 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3020 # Try to create an executable without -o first, disregard a.out.
3021 # It will help us diagnose broken compilers, and finding out an intuition
3022 # of exeext.
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3024 $as_echo_n "checking whether the C compiler works... " >&6; }
3025 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3026
3027 # The possible output files:
3028 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3029
3030 ac_rmfiles=
3031 for ac_file in $ac_files
3032 do
3033   case $ac_file in
3034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3035     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3036   esac
3037 done
3038 rm -f $ac_rmfiles
3039
3040 if { { ac_try="$ac_link_default"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047   (eval "$ac_link_default") 2>&5
3048   ac_status=$?
3049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050   test $ac_status = 0; }; then :
3051   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3052 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3053 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3054 # so that the user can short-circuit this test for compilers unknown to
3055 # Autoconf.
3056 for ac_file in $ac_files ''
3057 do
3058   test -f "$ac_file" || continue
3059   case $ac_file in
3060     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3061         ;;
3062     [ab].out )
3063         # We found the default executable, but exeext='' is most
3064         # certainly right.
3065         break;;
3066     *.* )
3067         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3068         then :; else
3069            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070         fi
3071         # We set ac_cv_exeext here because the later test for it is not
3072         # safe: cross compilers may not add the suffix if given an `-o'
3073         # argument, so we may need to know it at that point already.
3074         # Even if this section looks crufty: it has the advantage of
3075         # actually working.
3076         break;;
3077     * )
3078         break;;
3079   esac
3080 done
3081 test "$ac_cv_exeext" = no && ac_cv_exeext=
3082
3083 else
3084   ac_file=''
3085 fi
3086 if test -z "$ac_file"; then :
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 $as_echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error 77 "C compiler cannot create executables
3095 See \`config.log' for more details" "$LINENO" 5; }
3096 else
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3099 fi
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3101 $as_echo_n "checking for C compiler default output file name... " >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3103 $as_echo "$ac_file" >&6; }
3104 ac_exeext=$ac_cv_exeext
3105
3106 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3107 ac_clean_files=$ac_clean_files_save
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3109 $as_echo_n "checking for suffix of executables... " >&6; }
3110 if { { ac_try="$ac_link"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117   (eval "$ac_link") 2>&5
3118   ac_status=$?
3119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120   test $ac_status = 0; }; then :
3121   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3122 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3123 # work properly (i.e., refer to `conftest.exe'), while it won't with
3124 # `rm'.
3125 for ac_file in conftest.exe conftest conftest.*; do
3126   test -f "$ac_file" || continue
3127   case $ac_file in
3128     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130           break;;
3131     * ) break;;
3132   esac
3133 done
3134 else
3135   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3138 See \`config.log' for more details" "$LINENO" 5; }
3139 fi
3140 rm -f conftest conftest$ac_cv_exeext
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3142 $as_echo "$ac_cv_exeext" >&6; }
3143
3144 rm -f conftest.$ac_ext
3145 EXEEXT=$ac_cv_exeext
3146 ac_exeext=$EXEEXT
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h.  */
3149 #include <stdio.h>
3150 int
3151 main ()
3152 {
3153 FILE *f = fopen ("conftest.out", "w");
3154  return ferror (f) || fclose (f) != 0;
3155
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 ac_clean_files="$ac_clean_files conftest.out"
3161 # Check that the compiler produces executables we can run.  If not, either
3162 # the compiler is broken, or we cross compile.
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3164 $as_echo_n "checking whether we are cross compiling... " >&6; }
3165 if test "$cross_compiling" != yes; then
3166   { { ac_try="$ac_link"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173   (eval "$ac_link") 2>&5
3174   ac_status=$?
3175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176   test $ac_status = 0; }
3177   if { ac_try='./conftest$ac_cv_exeext'
3178   { { case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184   (eval "$ac_try") 2>&5
3185   ac_status=$?
3186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187   test $ac_status = 0; }; }; then
3188     cross_compiling=no
3189   else
3190     if test "$cross_compiling" = maybe; then
3191         cross_compiling=yes
3192     else
3193         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot run C compiled programs.
3196 If you meant to cross compile, use \`--host'.
3197 See \`config.log' for more details" "$LINENO" 5; }
3198     fi
3199   fi
3200 fi
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3202 $as_echo "$cross_compiling" >&6; }
3203
3204 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3207 $as_echo_n "checking for suffix of object files... " >&6; }
3208 if ${ac_cv_objext+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h.  */
3213
3214 int
3215 main ()
3216 {
3217
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.o conftest.obj
3223 if { { ac_try="$ac_compile"
3224 case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230   (eval "$ac_compile") 2>&5
3231   ac_status=$?
3232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233   test $ac_status = 0; }; then :
3234   for ac_file in conftest.o conftest.obj conftest.*; do
3235   test -f "$ac_file" || continue;
3236   case $ac_file in
3237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3238     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3239        break;;
3240   esac
3241 done
3242 else
3243   $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "cannot compute suffix of object files: cannot compile
3249 See \`config.log' for more details" "$LINENO" 5; }
3250 fi
3251 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3252 fi
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3254 $as_echo "$ac_cv_objext" >&6; }
3255 OBJEXT=$ac_cv_objext
3256 ac_objext=$OBJEXT
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3258 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3259 if ${ac_cv_c_compiler_gnu+:} false; then :
3260   $as_echo_n "(cached) " >&6
3261 else
3262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268 #ifndef __GNUC__
3269        choke me
3270 #endif
3271
3272   ;
3273   return 0;
3274 }
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277   ac_compiler_gnu=yes
3278 else
3279   ac_compiler_gnu=no
3280 fi
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3283
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3286 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3287 if test $ac_compiler_gnu = yes; then
3288   GCC=yes
3289 else
3290   GCC=
3291 fi
3292 ac_test_CFLAGS=${CFLAGS+set}
3293 ac_save_CFLAGS=$CFLAGS
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3295 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3296 if ${ac_cv_prog_cc_g+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   ac_save_c_werror_flag=$ac_c_werror_flag
3300    ac_c_werror_flag=yes
3301    ac_cv_prog_cc_g=no
3302    CFLAGS="-g"
3303    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h.  */
3305
3306 int
3307 main ()
3308 {
3309
3310   ;
3311   return 0;
3312 }
3313 _ACEOF
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315   ac_cv_prog_cc_g=yes
3316 else
3317   CFLAGS=""
3318       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330
3331 else
3332   ac_c_werror_flag=$ac_save_c_werror_flag
3333          CFLAGS="-g"
3334          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h.  */
3336
3337 int
3338 main ()
3339 {
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346   ac_cv_prog_cc_g=yes
3347 fi
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 fi
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 fi
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353    ac_c_werror_flag=$ac_save_c_werror_flag
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3356 $as_echo "$ac_cv_prog_cc_g" >&6; }
3357 if test "$ac_test_CFLAGS" = set; then
3358   CFLAGS=$ac_save_CFLAGS
3359 elif test $ac_cv_prog_cc_g = yes; then
3360   if test "$GCC" = yes; then
3361     CFLAGS="-g -O2"
3362   else
3363     CFLAGS="-g"
3364   fi
3365 else
3366   if test "$GCC" = yes; then
3367     CFLAGS="-O2"
3368   else
3369     CFLAGS=
3370   fi
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3373 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3374 if ${ac_cv_prog_cc_c89+:} false; then :
3375   $as_echo_n "(cached) " >&6
3376 else
3377   ac_cv_prog_cc_c89=no
3378 ac_save_CC=$CC
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h.  */
3381 #include <stdarg.h>
3382 #include <stdio.h>
3383 struct stat;
3384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3385 struct buf { int x; };
3386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3387 static char *e (p, i)
3388      char **p;
3389      int i;
3390 {
3391   return p[i];
3392 }
3393 static char *f (char * (*g) (char **, int), char **p, ...)
3394 {
3395   char *s;
3396   va_list v;
3397   va_start (v,p);
3398   s = g (p, va_arg (v,int));
3399   va_end (v);
3400   return s;
3401 }
3402
3403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3404    function prototypes and stuff, but not '\xHH' hex character constants.
3405    These don't provoke an error unfortunately, instead are silently treated
3406    as 'x'.  The following induces an error, until -std is added to get
3407    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3408    array size at least.  It's necessary to write '\x00'==0 to get something
3409    that's true only with -std.  */
3410 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411
3412 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3413    inside strings and character constants.  */
3414 #define FOO(x) 'x'
3415 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416
3417 int test (int i, double x);
3418 struct s1 {int (*f) (int a);};
3419 struct s2 {int (*f) (double a);};
3420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421 int argc;
3422 char **argv;
3423 int
3424 main ()
3425 {
3426 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3432         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433 do
3434   CC="$ac_save_CC $ac_arg"
3435   if ac_fn_c_try_compile "$LINENO"; then :
3436   ac_cv_prog_cc_c89=$ac_arg
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext
3439   test "x$ac_cv_prog_cc_c89" != "xno" && break
3440 done
3441 rm -f conftest.$ac_ext
3442 CC=$ac_save_CC
3443
3444 fi
3445 # AC_CACHE_VAL
3446 case "x$ac_cv_prog_cc_c89" in
3447   x)
3448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3449 $as_echo "none needed" >&6; } ;;
3450   xno)
3451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3452 $as_echo "unsupported" >&6; } ;;
3453   *)
3454     CC="$CC $ac_cv_prog_cc_c89"
3455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3456 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3457 esac
3458 if test "x$ac_cv_prog_cc_c89" != xno; then :
3459
3460 fi
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3474 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3475 if ${am_cv_prog_cc_c_o+:} false; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h.  */
3480
3481 int
3482 main ()
3483 {
3484
3485   ;
3486   return 0;
3487 }
3488 _ACEOF
3489   # Make sure it works both with $CC and with simple cc.
3490   # Following AC_PROG_CC_C_O, we do the test twice because some
3491   # compilers refuse to overwrite an existing .o file with -o,
3492   # though they will create one.
3493   am_cv_prog_cc_c_o=yes
3494   for am_i in 1 2; do
3495     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3496    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3497    ac_status=$?
3498    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499    (exit $ac_status); } \
3500          && test -f conftest2.$ac_objext; then
3501       : OK
3502     else
3503       am_cv_prog_cc_c_o=no
3504       break
3505     fi
3506   done
3507   rm -f core conftest*
3508   unset am_i
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3511 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3512 if test "$am_cv_prog_cc_c_o" != yes; then
3513    # Losing compiler, so override with the script.
3514    # FIXME: It is wrong to rewrite CC.
3515    # But if we don't then we get into trouble of one sort or another.
3516    # A longer-term fix would be to have automake use am__CC in this case,
3517    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3518    CC="$am_aux_dir/compile $CC"
3519 fi
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525
3526
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3528 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3529 if ${ac_cv_path_SED+:} false; then :
3530   $as_echo_n "(cached) " >&6
3531 else
3532             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3533      for ac_i in 1 2 3 4 5 6 7; do
3534        ac_script="$ac_script$as_nl$ac_script"
3535      done
3536      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3537      { ac_script=; unset ac_script;}
3538      if test -z "$SED"; then
3539   ac_path_SED_found=false
3540   # Loop through the user's path and test for each of PROGNAME-LIST
3541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546     for ac_prog in sed gsed; do
3547     for ac_exec_ext in '' $ac_executable_extensions; do
3548       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3549       as_fn_executable_p "$ac_path_SED" || continue
3550 # Check for GNU ac_path_SED and select it if it is found.
3551   # Check for GNU $ac_path_SED
3552 case `"$ac_path_SED" --version 2>&1` in
3553 *GNU*)
3554   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3555 *)
3556   ac_count=0
3557   $as_echo_n 0123456789 >"conftest.in"
3558   while :
3559   do
3560     cat "conftest.in" "conftest.in" >"conftest.tmp"
3561     mv "conftest.tmp" "conftest.in"
3562     cp "conftest.in" "conftest.nl"
3563     $as_echo '' >> "conftest.nl"
3564     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3565     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3566     as_fn_arith $ac_count + 1 && ac_count=$as_val
3567     if test $ac_count -gt ${ac_path_SED_max-0}; then
3568       # Best one so far, save it but keep looking for a better one
3569       ac_cv_path_SED="$ac_path_SED"
3570       ac_path_SED_max=$ac_count
3571     fi
3572     # 10*(2^10) chars as input seems more than enough
3573     test $ac_count -gt 10 && break
3574   done
3575   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3576 esac
3577
3578       $ac_path_SED_found && break 3
3579     done
3580   done
3581   done
3582 IFS=$as_save_IFS
3583   if test -z "$ac_cv_path_SED"; then
3584     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3585   fi
3586 else
3587   ac_cv_path_SED=$SED
3588 fi
3589
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3592 $as_echo "$ac_cv_path_SED" >&6; }
3593  SED="$ac_cv_path_SED"
3594   rm -f conftest.sed
3595
3596 test -z "$SED" && SED=sed
3597 Xsed="$SED -e 1s/^X//"
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3610 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3611 if ${ac_cv_path_GREP+:} false; then :
3612   $as_echo_n "(cached) " >&6
3613 else
3614   if test -z "$GREP"; then
3615   ac_path_GREP_found=false
3616   # Loop through the user's path and test for each of PROGNAME-LIST
3617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3619 do
3620   IFS=$as_save_IFS
3621   test -z "$as_dir" && as_dir=.
3622     for ac_prog in grep ggrep; do
3623     for ac_exec_ext in '' $ac_executable_extensions; do
3624       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3625       as_fn_executable_p "$ac_path_GREP" || continue
3626 # Check for GNU ac_path_GREP and select it if it is found.
3627   # Check for GNU $ac_path_GREP
3628 case `"$ac_path_GREP" --version 2>&1` in
3629 *GNU*)
3630   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3631 *)
3632   ac_count=0
3633   $as_echo_n 0123456789 >"conftest.in"
3634   while :
3635   do
3636     cat "conftest.in" "conftest.in" >"conftest.tmp"
3637     mv "conftest.tmp" "conftest.in"
3638     cp "conftest.in" "conftest.nl"
3639     $as_echo 'GREP' >> "conftest.nl"
3640     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3642     as_fn_arith $ac_count + 1 && ac_count=$as_val
3643     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3644       # Best one so far, save it but keep looking for a better one
3645       ac_cv_path_GREP="$ac_path_GREP"
3646       ac_path_GREP_max=$ac_count
3647     fi
3648     # 10*(2^10) chars as input seems more than enough
3649     test $ac_count -gt 10 && break
3650   done
3651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3652 esac
3653
3654       $ac_path_GREP_found && break 3
3655     done
3656   done
3657   done
3658 IFS=$as_save_IFS
3659   if test -z "$ac_cv_path_GREP"; then
3660     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3661   fi
3662 else
3663   ac_cv_path_GREP=$GREP
3664 fi
3665
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3668 $as_echo "$ac_cv_path_GREP" >&6; }
3669  GREP="$ac_cv_path_GREP"
3670
3671
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3673 $as_echo_n "checking for egrep... " >&6; }
3674 if ${ac_cv_path_EGREP+:} false; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3678    then ac_cv_path_EGREP="$GREP -E"
3679    else
3680      if test -z "$EGREP"; then
3681   ac_path_EGREP_found=false
3682   # Loop through the user's path and test for each of PROGNAME-LIST
3683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3685 do
3686   IFS=$as_save_IFS
3687   test -z "$as_dir" && as_dir=.
3688     for ac_prog in egrep; do
3689     for ac_exec_ext in '' $ac_executable_extensions; do
3690       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3691       as_fn_executable_p "$ac_path_EGREP" || continue
3692 # Check for GNU ac_path_EGREP and select it if it is found.
3693   # Check for GNU $ac_path_EGREP
3694 case `"$ac_path_EGREP" --version 2>&1` in
3695 *GNU*)
3696   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3697 *)
3698   ac_count=0
3699   $as_echo_n 0123456789 >"conftest.in"
3700   while :
3701   do
3702     cat "conftest.in" "conftest.in" >"conftest.tmp"
3703     mv "conftest.tmp" "conftest.in"
3704     cp "conftest.in" "conftest.nl"
3705     $as_echo 'EGREP' >> "conftest.nl"
3706     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708     as_fn_arith $ac_count + 1 && ac_count=$as_val
3709     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3710       # Best one so far, save it but keep looking for a better one
3711       ac_cv_path_EGREP="$ac_path_EGREP"
3712       ac_path_EGREP_max=$ac_count
3713     fi
3714     # 10*(2^10) chars as input seems more than enough
3715     test $ac_count -gt 10 && break
3716   done
3717   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718 esac
3719
3720       $ac_path_EGREP_found && break 3
3721     done
3722   done
3723   done
3724 IFS=$as_save_IFS
3725   if test -z "$ac_cv_path_EGREP"; then
3726     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3727   fi
3728 else
3729   ac_cv_path_EGREP=$EGREP
3730 fi
3731
3732    fi
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3735 $as_echo "$ac_cv_path_EGREP" >&6; }
3736  EGREP="$ac_cv_path_EGREP"
3737
3738
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3740 $as_echo_n "checking for fgrep... " >&6; }
3741 if ${ac_cv_path_FGREP+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3745    then ac_cv_path_FGREP="$GREP -F"
3746    else
3747      if test -z "$FGREP"; then
3748   ac_path_FGREP_found=false
3749   # Loop through the user's path and test for each of PROGNAME-LIST
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755     for ac_prog in fgrep; do
3756     for ac_exec_ext in '' $ac_executable_extensions; do
3757       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3758       as_fn_executable_p "$ac_path_FGREP" || continue
3759 # Check for GNU ac_path_FGREP and select it if it is found.
3760   # Check for GNU $ac_path_FGREP
3761 case `"$ac_path_FGREP" --version 2>&1` in
3762 *GNU*)
3763   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3764 *)
3765   ac_count=0
3766   $as_echo_n 0123456789 >"conftest.in"
3767   while :
3768   do
3769     cat "conftest.in" "conftest.in" >"conftest.tmp"
3770     mv "conftest.tmp" "conftest.in"
3771     cp "conftest.in" "conftest.nl"
3772     $as_echo 'FGREP' >> "conftest.nl"
3773     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3774     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3775     as_fn_arith $ac_count + 1 && ac_count=$as_val
3776     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3777       # Best one so far, save it but keep looking for a better one
3778       ac_cv_path_FGREP="$ac_path_FGREP"
3779       ac_path_FGREP_max=$ac_count
3780     fi
3781     # 10*(2^10) chars as input seems more than enough
3782     test $ac_count -gt 10 && break
3783   done
3784   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785 esac
3786
3787       $ac_path_FGREP_found && break 3
3788     done
3789   done
3790   done
3791 IFS=$as_save_IFS
3792   if test -z "$ac_cv_path_FGREP"; then
3793     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3794   fi
3795 else
3796   ac_cv_path_FGREP=$FGREP
3797 fi
3798
3799    fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3802 $as_echo "$ac_cv_path_FGREP" >&6; }
3803  FGREP="$ac_cv_path_FGREP"
3804
3805
3806 test -z "$GREP" && GREP=grep
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826 # Check whether --with-gnu-ld was given.
3827 if test "${with_gnu_ld+set}" = set; then :
3828   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3829 else
3830   with_gnu_ld=no
3831 fi
3832
3833 ac_prog=ld
3834 if test "$GCC" = yes; then
3835   # Check if gcc -print-prog-name=ld gives a path.
3836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3837 $as_echo_n "checking for ld used by $CC... " >&6; }
3838   case $host in
3839   *-*-mingw*)
3840     # gcc leaves a trailing carriage return which upsets mingw
3841     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3842   *)
3843     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3844   esac
3845   case $ac_prog in
3846     # Accept absolute paths.
3847     [\\/]* | ?:[\\/]*)
3848       re_direlt='/[^/][^/]*/\.\./'
3849       # Canonicalize the pathname of ld
3850       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3851       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3852         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3853       done
3854       test -z "$LD" && LD="$ac_prog"
3855       ;;
3856   "")
3857     # If it fails, then pretend we aren't using GCC.
3858     ac_prog=ld
3859     ;;
3860   *)
3861     # If it is relative, then search for the first ld in PATH.
3862     with_gnu_ld=unknown
3863     ;;
3864   esac
3865 elif test "$with_gnu_ld" = yes; then
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3867 $as_echo_n "checking for GNU ld... " >&6; }
3868 else
3869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3870 $as_echo_n "checking for non-GNU ld... " >&6; }
3871 fi
3872 if ${lt_cv_path_LD+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   if test -z "$LD"; then
3876   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3877   for ac_dir in $PATH; do
3878     IFS="$lt_save_ifs"
3879     test -z "$ac_dir" && ac_dir=.
3880     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3881       lt_cv_path_LD="$ac_dir/$ac_prog"
3882       # Check to see if the program is GNU ld.  I'd rather use --version,
3883       # but apparently some variants of GNU ld only accept -v.
3884       # Break only if it was the GNU/non-GNU ld that we prefer.
3885       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3886       *GNU* | *'with BFD'*)
3887         test "$with_gnu_ld" != no && break
3888         ;;
3889       *)
3890         test "$with_gnu_ld" != yes && break
3891         ;;
3892       esac
3893     fi
3894   done
3895   IFS="$lt_save_ifs"
3896 else
3897   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3898 fi
3899 fi
3900
3901 LD="$lt_cv_path_LD"
3902 if test -n "$LD"; then
3903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3904 $as_echo "$LD" >&6; }
3905 else
3906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3908 fi
3909 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3911 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3912 if ${lt_cv_prog_gnu_ld+:} false; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3916 case `$LD -v 2>&1 </dev/null` in
3917 *GNU* | *'with BFD'*)
3918   lt_cv_prog_gnu_ld=yes
3919   ;;
3920 *)
3921   lt_cv_prog_gnu_ld=no
3922   ;;
3923 esac
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3926 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3927 with_gnu_ld=$lt_cv_prog_gnu_ld
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3938 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3939 if ${lt_cv_path_NM+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   if test -n "$NM"; then
3943   # Let the user override the test.
3944   lt_cv_path_NM="$NM"
3945 else
3946   lt_nm_to_check="${ac_tool_prefix}nm"
3947   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3948     lt_nm_to_check="$lt_nm_to_check nm"
3949   fi
3950   for lt_tmp_nm in $lt_nm_to_check; do
3951     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3952     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3953       IFS="$lt_save_ifs"
3954       test -z "$ac_dir" && ac_dir=.
3955       tmp_nm="$ac_dir/$lt_tmp_nm"
3956       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3957         # Check to see if the nm accepts a BSD-compat flag.
3958         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3959         #   nm: unknown option "B" ignored
3960         # Tru64's nm complains that /dev/null is an invalid object file
3961         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3962         */dev/null* | *'Invalid file or object type'*)
3963           lt_cv_path_NM="$tmp_nm -B"
3964           break
3965           ;;
3966         *)
3967           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3968           */dev/null*)
3969             lt_cv_path_NM="$tmp_nm -p"
3970             break
3971             ;;
3972           *)
3973             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3974             continue # so that we can try to find one that supports BSD flags
3975             ;;
3976           esac
3977           ;;
3978         esac
3979       fi
3980     done
3981     IFS="$lt_save_ifs"
3982   done
3983   : ${lt_cv_path_NM=no}
3984 fi
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3987 $as_echo "$lt_cv_path_NM" >&6; }
3988 if test "$lt_cv_path_NM" != "no"; then
3989   NM="$lt_cv_path_NM"
3990 else
3991   # Didn't find any BSD compatible name lister, look for dumpbin.
3992   if test -n "$DUMPBIN"; then :
3993     # Let the user override the test.
3994   else
3995     if test -n "$ac_tool_prefix"; then
3996   for ac_prog in dumpbin "link -dump"
3997   do
3998     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if ${ac_cv_prog_DUMPBIN+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   if test -n "$DUMPBIN"; then
4006   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011   IFS=$as_save_IFS
4012   test -z "$as_dir" && as_dir=.
4013     for ac_exec_ext in '' $ac_executable_extensions; do
4014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017     break 2
4018   fi
4019 done
4020   done
4021 IFS=$as_save_IFS
4022
4023 fi
4024 fi
4025 DUMPBIN=$ac_cv_prog_DUMPBIN
4026 if test -n "$DUMPBIN"; then
4027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4028 $as_echo "$DUMPBIN" >&6; }
4029 else
4030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4032 fi
4033
4034
4035     test -n "$DUMPBIN" && break
4036   done
4037 fi
4038 if test -z "$DUMPBIN"; then
4039   ac_ct_DUMPBIN=$DUMPBIN
4040   for ac_prog in dumpbin "link -dump"
4041 do
4042   # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4047   $as_echo_n "(cached) " >&6
4048 else
4049   if test -n "$ac_ct_DUMPBIN"; then
4050   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057     for ac_exec_ext in '' $ac_executable_extensions; do
4058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064   done
4065 IFS=$as_save_IFS
4066
4067 fi
4068 fi
4069 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4070 if test -n "$ac_ct_DUMPBIN"; then
4071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4072 $as_echo "$ac_ct_DUMPBIN" >&6; }
4073 else
4074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4076 fi
4077
4078
4079   test -n "$ac_ct_DUMPBIN" && break
4080 done
4081
4082   if test "x$ac_ct_DUMPBIN" = x; then
4083     DUMPBIN=":"
4084   else
4085     case $cross_compiling:$ac_tool_warned in
4086 yes:)
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4089 ac_tool_warned=yes ;;
4090 esac
4091     DUMPBIN=$ac_ct_DUMPBIN
4092   fi
4093 fi
4094
4095     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4096     *COFF*)
4097       DUMPBIN="$DUMPBIN -symbols"
4098       ;;
4099     *)
4100       DUMPBIN=:
4101       ;;
4102     esac
4103   fi
4104
4105   if test "$DUMPBIN" != ":"; then
4106     NM="$DUMPBIN"
4107   fi
4108 fi
4109 test -z "$NM" && NM=nm
4110
4111
4112
4113
4114
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4117 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4118 if ${lt_cv_nm_interface+:} false; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   lt_cv_nm_interface="BSD nm"
4122   echo "int some_variable = 0;" > conftest.$ac_ext
4123   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4124   (eval "$ac_compile" 2>conftest.err)
4125   cat conftest.err >&5
4126   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4127   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4128   cat conftest.err >&5
4129   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4130   cat conftest.out >&5
4131   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4132     lt_cv_nm_interface="MS dumpbin"
4133   fi
4134   rm -f conftest*
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4137 $as_echo "$lt_cv_nm_interface" >&6; }
4138
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4140 $as_echo_n "checking whether ln -s works... " >&6; }
4141 LN_S=$as_ln_s
4142 if test "$LN_S" = "ln -s"; then
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4144 $as_echo "yes" >&6; }
4145 else
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4147 $as_echo "no, using $LN_S" >&6; }
4148 fi
4149
4150 # find the maximum length of command line arguments
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4152 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4153 if ${lt_cv_sys_max_cmd_len+:} false; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156     i=0
4157   teststring="ABCD"
4158
4159   case $build_os in
4160   msdosdjgpp*)
4161     # On DJGPP, this test can blow up pretty badly due to problems in libc
4162     # (any single argument exceeding 2000 bytes causes a buffer overrun
4163     # during glob expansion).  Even if it were fixed, the result of this
4164     # check would be larger than it should be.
4165     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4166     ;;
4167
4168   gnu*)
4169     # Under GNU Hurd, this test is not required because there is
4170     # no limit to the length of command line arguments.
4171     # Libtool will interpret -1 as no limit whatsoever
4172     lt_cv_sys_max_cmd_len=-1;
4173     ;;
4174
4175   cygwin* | mingw* | cegcc*)
4176     # On Win9x/ME, this test blows up -- it succeeds, but takes
4177     # about 5 minutes as the teststring grows exponentially.
4178     # Worse, since 9x/ME are not pre-emptively multitasking,
4179     # you end up with a "frozen" computer, even though with patience
4180     # the test eventually succeeds (with a max line length of 256k).
4181     # Instead, let's just punt: use the minimum linelength reported by
4182     # all of the supported platforms: 8192 (on NT/2K/XP).
4183     lt_cv_sys_max_cmd_len=8192;
4184     ;;
4185
4186   mint*)
4187     # On MiNT this can take a long time and run out of memory.
4188     lt_cv_sys_max_cmd_len=8192;
4189     ;;
4190
4191   amigaos*)
4192     # On AmigaOS with pdksh, this test takes hours, literally.
4193     # So we just punt and use a minimum line length of 8192.
4194     lt_cv_sys_max_cmd_len=8192;
4195     ;;
4196
4197   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4198     # This has been around since 386BSD, at least.  Likely further.
4199     if test -x /sbin/sysctl; then
4200       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4201     elif test -x /usr/sbin/sysctl; then
4202       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4203     else
4204       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4205     fi
4206     # And add a safety zone
4207     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4208     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4209     ;;
4210
4211   interix*)
4212     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4213     lt_cv_sys_max_cmd_len=196608
4214     ;;
4215
4216   os2*)
4217     # The test takes a long time on OS/2.
4218     lt_cv_sys_max_cmd_len=8192
4219     ;;
4220
4221   osf*)
4222     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4223     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4224     # nice to cause kernel panics so lets avoid the loop below.
4225     # First set a reasonable default.
4226     lt_cv_sys_max_cmd_len=16384
4227     #
4228     if test -x /sbin/sysconfig; then
4229       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4230         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4231       esac
4232     fi
4233     ;;
4234   sco3.2v5*)
4235     lt_cv_sys_max_cmd_len=102400
4236     ;;
4237   sysv5* | sco5v6* | sysv4.2uw2*)
4238     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4239     if test -n "$kargmax"; then
4240       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4241     else
4242       lt_cv_sys_max_cmd_len=32768
4243     fi
4244     ;;
4245   *)
4246     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4247     if test -n "$lt_cv_sys_max_cmd_len" && \
4248         test undefined != "$lt_cv_sys_max_cmd_len"; then
4249       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4250       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4251     else
4252       # Make teststring a little bigger before we do anything with it.
4253       # a 1K string should be a reasonable start.
4254       for i in 1 2 3 4 5 6 7 8 ; do
4255         teststring=$teststring$teststring
4256       done
4257       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4258       # If test is not a shell built-in, we'll probably end up computing a
4259       # maximum length that is only half of the actual maximum length, but
4260       # we can't tell.
4261       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4262                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4263               test $i != 17 # 1/2 MB should be enough
4264       do
4265         i=`expr $i + 1`
4266         teststring=$teststring$teststring
4267       done
4268       # Only check the string length outside the loop.
4269       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4270       teststring=
4271       # Add a significant safety factor because C++ compilers can tack on
4272       # massive amounts of additional arguments before passing them to the
4273       # linker.  It appears as though 1/2 is a usable value.
4274       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4275     fi
4276     ;;
4277   esac
4278
4279 fi
4280
4281 if test -n $lt_cv_sys_max_cmd_len ; then
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4283 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4284 else
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4286 $as_echo "none" >&6; }
4287 fi
4288 max_cmd_len=$lt_cv_sys_max_cmd_len
4289
4290
4291
4292
4293
4294
4295 : ${CP="cp -f"}
4296 : ${MV="mv -f"}
4297 : ${RM="rm -f"}
4298
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4300 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4301 # Try some XSI features
4302 xsi_shell=no
4303 ( _lt_dummy="a/b/c"
4304   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4305       = c,a/b,b/c, \
4306     && eval 'test $(( 1 + 1 )) -eq 2 \
4307     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4308   && xsi_shell=yes
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4310 $as_echo "$xsi_shell" >&6; }
4311
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4314 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4315 lt_shell_append=no
4316 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4317     >/dev/null 2>&1 \
4318   && lt_shell_append=yes
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4320 $as_echo "$lt_shell_append" >&6; }
4321
4322
4323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4324   lt_unset=unset
4325 else
4326   lt_unset=false
4327 fi
4328
4329
4330
4331
4332
4333 # test EBCDIC or ASCII
4334 case `echo X|tr X '\101'` in
4335  A) # ASCII based system
4336     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4337   lt_SP2NL='tr \040 \012'
4338   lt_NL2SP='tr \015\012 \040\040'
4339   ;;
4340  *) # EBCDIC based system
4341   lt_SP2NL='tr \100 \n'
4342   lt_NL2SP='tr \r\n \100\100'
4343   ;;
4344 esac
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4355 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4356 if ${lt_cv_to_host_file_cmd+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   case $host in
4360   *-*-mingw* )
4361     case $build in
4362       *-*-mingw* ) # actually msys
4363         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4364         ;;
4365       *-*-cygwin* )
4366         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4367         ;;
4368       * ) # otherwise, assume *nix
4369         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4370         ;;
4371     esac
4372     ;;
4373   *-*-cygwin* )
4374     case $build in
4375       *-*-mingw* ) # actually msys
4376         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4377         ;;
4378       *-*-cygwin* )
4379         lt_cv_to_host_file_cmd=func_convert_file_noop
4380         ;;
4381       * ) # otherwise, assume *nix
4382         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4383         ;;
4384     esac
4385     ;;
4386   * ) # unhandled hosts (and "normal" native builds)
4387     lt_cv_to_host_file_cmd=func_convert_file_noop
4388     ;;
4389 esac
4390
4391 fi
4392
4393 to_host_file_cmd=$lt_cv_to_host_file_cmd
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4395 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4396
4397
4398
4399
4400
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4402 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4403 if ${lt_cv_to_tool_file_cmd+:} false; then :
4404   $as_echo_n "(cached) " >&6
4405 else
4406   #assume ordinary cross tools, or native build.
4407 lt_cv_to_tool_file_cmd=func_convert_file_noop
4408 case $host in
4409   *-*-mingw* )
4410     case $build in
4411       *-*-mingw* ) # actually msys
4412         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4413         ;;
4414     esac
4415     ;;
4416 esac
4417
4418 fi
4419
4420 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4422 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4423
4424
4425
4426
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4429 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4430 if ${lt_cv_ld_reload_flag+:} false; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   lt_cv_ld_reload_flag='-r'
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4436 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4437 reload_flag=$lt_cv_ld_reload_flag
4438 case $reload_flag in
4439 "" | " "*) ;;
4440 *) reload_flag=" $reload_flag" ;;
4441 esac
4442 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4443 case $host_os in
4444   cygwin* | mingw* | pw32* | cegcc*)
4445     if test "$GCC" != yes; then
4446       reload_cmds=false
4447     fi
4448     ;;
4449   darwin*)
4450     if test "$GCC" = yes; then
4451       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4452     else
4453       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4454     fi
4455     ;;
4456 esac
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466 if test -n "$ac_tool_prefix"; then
4467   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4468 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if ${ac_cv_prog_OBJDUMP+:} false; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474   if test -n "$OBJDUMP"; then
4475   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482     for ac_exec_ext in '' $ac_executable_extensions; do
4483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489   done
4490 IFS=$as_save_IFS
4491
4492 fi
4493 fi
4494 OBJDUMP=$ac_cv_prog_OBJDUMP
4495 if test -n "$OBJDUMP"; then
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4497 $as_echo "$OBJDUMP" >&6; }
4498 else
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 fi
4502
4503
4504 fi
4505 if test -z "$ac_cv_prog_OBJDUMP"; then
4506   ac_ct_OBJDUMP=$OBJDUMP
4507   # Extract the first word of "objdump", so it can be a program name with args.
4508 set dummy objdump; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4512   $as_echo_n "(cached) " >&6
4513 else
4514   if test -n "$ac_ct_OBJDUMP"; then
4515   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522     for ac_exec_ext in '' $ac_executable_extensions; do
4523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526     break 2
4527   fi
4528 done
4529   done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4535 if test -n "$ac_ct_OBJDUMP"; then
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4537 $as_echo "$ac_ct_OBJDUMP" >&6; }
4538 else
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543   if test "x$ac_ct_OBJDUMP" = x; then
4544     OBJDUMP="false"
4545   else
4546     case $cross_compiling:$ac_tool_warned in
4547 yes:)
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4550 ac_tool_warned=yes ;;
4551 esac
4552     OBJDUMP=$ac_ct_OBJDUMP
4553   fi
4554 else
4555   OBJDUMP="$ac_cv_prog_OBJDUMP"
4556 fi
4557
4558 test -z "$OBJDUMP" && OBJDUMP=objdump
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4569 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4570 if ${lt_cv_deplibs_check_method+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   lt_cv_file_magic_cmd='$MAGIC_CMD'
4574 lt_cv_file_magic_test_file=
4575 lt_cv_deplibs_check_method='unknown'
4576 # Need to set the preceding variable on all platforms that support
4577 # interlibrary dependencies.
4578 # 'none' -- dependencies not supported.
4579 # `unknown' -- same as none, but documents that we really don't know.
4580 # 'pass_all' -- all dependencies passed with no checks.
4581 # 'test_compile' -- check by making test program.
4582 # 'file_magic [[regex]]' -- check by looking for files in library path
4583 # which responds to the $file_magic_cmd with a given extended regex.
4584 # If you have `file' or equivalent on your system and you're not sure
4585 # whether `pass_all' will *always* work, you probably want this one.
4586
4587 case $host_os in
4588 aix[4-9]*)
4589   lt_cv_deplibs_check_method=pass_all
4590   ;;
4591
4592 beos*)
4593   lt_cv_deplibs_check_method=pass_all
4594   ;;
4595
4596 bsdi[45]*)
4597   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4598   lt_cv_file_magic_cmd='/usr/bin/file -L'
4599   lt_cv_file_magic_test_file=/shlib/libc.so
4600   ;;
4601
4602 cygwin*)
4603   # func_win32_libid is a shell function defined in ltmain.sh
4604   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4605   lt_cv_file_magic_cmd='func_win32_libid'
4606   ;;
4607
4608 mingw* | pw32*)
4609   # Base MSYS/MinGW do not provide the 'file' command needed by
4610   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4611   # unless we find 'file', for example because we are cross-compiling.
4612   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4613   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4614     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4615     lt_cv_file_magic_cmd='func_win32_libid'
4616   else
4617     # Keep this pattern in sync with the one in func_win32_libid.
4618     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4619     lt_cv_file_magic_cmd='$OBJDUMP -f'
4620   fi
4621   ;;
4622
4623 cegcc*)
4624   # use the weaker test based on 'objdump'. See mingw*.
4625   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4626   lt_cv_file_magic_cmd='$OBJDUMP -f'
4627   ;;
4628
4629 darwin* | rhapsody*)
4630   lt_cv_deplibs_check_method=pass_all
4631   ;;
4632
4633 freebsd* | dragonfly*)
4634   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4635     case $host_cpu in
4636     i*86 )
4637       # Not sure whether the presence of OpenBSD here was a mistake.
4638       # Let's accept both of them until this is cleared up.
4639       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4640       lt_cv_file_magic_cmd=/usr/bin/file
4641       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4642       ;;
4643     esac
4644   else
4645     lt_cv_deplibs_check_method=pass_all
4646   fi
4647   ;;
4648
4649 haiku*)
4650   lt_cv_deplibs_check_method=pass_all
4651   ;;
4652
4653 hpux10.20* | hpux11*)
4654   lt_cv_file_magic_cmd=/usr/bin/file
4655   case $host_cpu in
4656   ia64*)
4657     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4658     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4659     ;;
4660   hppa*64*)
4661     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4662     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4663     ;;
4664   *)
4665     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4666     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4667     ;;
4668   esac
4669   ;;
4670
4671 interix[3-9]*)
4672   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4673   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4674   ;;
4675
4676 irix5* | irix6* | nonstopux*)
4677   case $LD in
4678   *-32|*"-32 ") libmagic=32-bit;;
4679   *-n32|*"-n32 ") libmagic=N32;;
4680   *-64|*"-64 ") libmagic=64-bit;;
4681   *) libmagic=never-match;;
4682   esac
4683   lt_cv_deplibs_check_method=pass_all
4684   ;;
4685
4686 # This must be glibc/ELF.
4687 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4688   lt_cv_deplibs_check_method=pass_all
4689   ;;
4690
4691 netbsd* | netbsdelf*-gnu)
4692   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4694   else
4695     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4696   fi
4697   ;;
4698
4699 newos6*)
4700   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4701   lt_cv_file_magic_cmd=/usr/bin/file
4702   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4703   ;;
4704
4705 *nto* | *qnx*)
4706   lt_cv_deplibs_check_method=pass_all
4707   ;;
4708
4709 openbsd*)
4710   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4711     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4712   else
4713     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4714   fi
4715   ;;
4716
4717 osf3* | osf4* | osf5*)
4718   lt_cv_deplibs_check_method=pass_all
4719   ;;
4720
4721 rdos*)
4722   lt_cv_deplibs_check_method=pass_all
4723   ;;
4724
4725 solaris*)
4726   lt_cv_deplibs_check_method=pass_all
4727   ;;
4728
4729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4730   lt_cv_deplibs_check_method=pass_all
4731   ;;
4732
4733 sysv4 | sysv4.3*)
4734   case $host_vendor in
4735   motorola)
4736     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]'
4737     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4738     ;;
4739   ncr)
4740     lt_cv_deplibs_check_method=pass_all
4741     ;;
4742   sequent)
4743     lt_cv_file_magic_cmd='/bin/file'
4744     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4745     ;;
4746   sni)
4747     lt_cv_file_magic_cmd='/bin/file'
4748     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4749     lt_cv_file_magic_test_file=/lib/libc.so
4750     ;;
4751   siemens)
4752     lt_cv_deplibs_check_method=pass_all
4753     ;;
4754   pc)
4755     lt_cv_deplibs_check_method=pass_all
4756     ;;
4757   esac
4758   ;;
4759
4760 tpf*)
4761   lt_cv_deplibs_check_method=pass_all
4762   ;;
4763 esac
4764
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4767 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4768
4769 file_magic_glob=
4770 want_nocaseglob=no
4771 if test "$build" = "$host"; then
4772   case $host_os in
4773   mingw* | pw32*)
4774     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4775       want_nocaseglob=yes
4776     else
4777       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4778     fi
4779     ;;
4780   esac
4781 fi
4782
4783 file_magic_cmd=$lt_cv_file_magic_cmd
4784 deplibs_check_method=$lt_cv_deplibs_check_method
4785 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 if test -n "$ac_tool_prefix"; then
4809   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if ${ac_cv_prog_DLLTOOL+:} false; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   if test -n "$DLLTOOL"; then
4817   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824     for ac_exec_ext in '' $ac_executable_extensions; do
4825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831   done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 DLLTOOL=$ac_cv_prog_DLLTOOL
4837 if test -n "$DLLTOOL"; then
4838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4839 $as_echo "$DLLTOOL" >&6; }
4840 else
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844
4845
4846 fi
4847 if test -z "$ac_cv_prog_DLLTOOL"; then
4848   ac_ct_DLLTOOL=$DLLTOOL
4849   # Extract the first word of "dlltool", so it can be a program name with args.
4850 set dummy dlltool; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   if test -n "$ac_ct_DLLTOOL"; then
4857   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864     for ac_exec_ext in '' $ac_executable_extensions; do
4865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871   done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4877 if test -n "$ac_ct_DLLTOOL"; then
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4879 $as_echo "$ac_ct_DLLTOOL" >&6; }
4880 else
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885   if test "x$ac_ct_DLLTOOL" = x; then
4886     DLLTOOL="false"
4887   else
4888     case $cross_compiling:$ac_tool_warned in
4889 yes:)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892 ac_tool_warned=yes ;;
4893 esac
4894     DLLTOOL=$ac_ct_DLLTOOL
4895   fi
4896 else
4897   DLLTOOL="$ac_cv_prog_DLLTOOL"
4898 fi
4899
4900 test -z "$DLLTOOL" && DLLTOOL=dlltool
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4912 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4913 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916   lt_cv_sharedlib_from_linklib_cmd='unknown'
4917
4918 case $host_os in
4919 cygwin* | mingw* | pw32* | cegcc*)
4920   # two different shell functions defined in ltmain.sh
4921   # decide which to use based on capabilities of $DLLTOOL
4922   case `$DLLTOOL --help 2>&1` in
4923   *--identify-strict*)
4924     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4925     ;;
4926   *)
4927     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4928     ;;
4929   esac
4930   ;;
4931 *)
4932   # fallback: assume linklib IS sharedlib
4933   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4934   ;;
4935 esac
4936
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4939 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4940 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4941 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4942
4943
4944
4945
4946
4947
4948
4949
4950 if test -n "$ac_tool_prefix"; then
4951   for ac_prog in ar
4952   do
4953     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if ${ac_cv_prog_AR+:} false; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   if test -n "$AR"; then
4961   ac_cv_prog_AR="$AR" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972     break 2
4973   fi
4974 done
4975   done
4976 IFS=$as_save_IFS
4977
4978 fi
4979 fi
4980 AR=$ac_cv_prog_AR
4981 if test -n "$AR"; then
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4983 $as_echo "$AR" >&6; }
4984 else
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4987 fi
4988
4989
4990     test -n "$AR" && break
4991   done
4992 fi
4993 if test -z "$AR"; then
4994   ac_ct_AR=$AR
4995   for ac_prog in ar
4996 do
4997   # Extract the first word of "$ac_prog", so it can be a program name with args.
4998 set dummy $ac_prog; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5002   $as_echo_n "(cached) " >&6
5003 else
5004   if test -n "$ac_ct_AR"; then
5005   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010   IFS=$as_save_IFS
5011   test -z "$as_dir" && as_dir=.
5012     for ac_exec_ext in '' $ac_executable_extensions; do
5013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014     ac_cv_prog_ac_ct_AR="$ac_prog"
5015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016     break 2
5017   fi
5018 done
5019   done
5020 IFS=$as_save_IFS
5021
5022 fi
5023 fi
5024 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5025 if test -n "$ac_ct_AR"; then
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5027 $as_echo "$ac_ct_AR" >&6; }
5028 else
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 fi
5032
5033
5034   test -n "$ac_ct_AR" && break
5035 done
5036
5037   if test "x$ac_ct_AR" = x; then
5038     AR="false"
5039   else
5040     case $cross_compiling:$ac_tool_warned in
5041 yes:)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5045 esac
5046     AR=$ac_ct_AR
5047   fi
5048 fi
5049
5050 : ${AR=ar}
5051 : ${AR_FLAGS=cru}
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5064 $as_echo_n "checking for archiver @FILE support... " >&6; }
5065 if ${lt_cv_ar_at_file+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   lt_cv_ar_at_file=no
5069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h.  */
5071
5072 int
5073 main ()
5074 {
5075
5076   ;
5077   return 0;
5078 }
5079 _ACEOF
5080 if ac_fn_c_try_compile "$LINENO"; then :
5081   echo conftest.$ac_objext > conftest.lst
5082       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5083       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5084   (eval $lt_ar_try) 2>&5
5085   ac_status=$?
5086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5087   test $ac_status = 0; }
5088       if test "$ac_status" -eq 0; then
5089         # Ensure the archiver fails upon bogus file names.
5090         rm -f conftest.$ac_objext libconftest.a
5091         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5092   (eval $lt_ar_try) 2>&5
5093   ac_status=$?
5094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5095   test $ac_status = 0; }
5096         if test "$ac_status" -ne 0; then
5097           lt_cv_ar_at_file=@
5098         fi
5099       fi
5100       rm -f conftest.* libconftest.a
5101
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5107 $as_echo "$lt_cv_ar_at_file" >&6; }
5108
5109 if test "x$lt_cv_ar_at_file" = xno; then
5110   archiver_list_spec=
5111 else
5112   archiver_list_spec=$lt_cv_ar_at_file
5113 fi
5114
5115
5116
5117
5118
5119
5120
5121 if test -n "$ac_tool_prefix"; then
5122   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5123 set dummy ${ac_tool_prefix}strip; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_prog_STRIP+:} false; then :
5127   $as_echo_n "(cached) " >&6
5128 else
5129   if test -n "$STRIP"; then
5130   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5134 do
5135   IFS=$as_save_IFS
5136   test -z "$as_dir" && as_dir=.
5137     for ac_exec_ext in '' $ac_executable_extensions; do
5138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141     break 2
5142   fi
5143 done
5144   done
5145 IFS=$as_save_IFS
5146
5147 fi
5148 fi
5149 STRIP=$ac_cv_prog_STRIP
5150 if test -n "$STRIP"; then
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5152 $as_echo "$STRIP" >&6; }
5153 else
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 fi
5157
5158
5159 fi
5160 if test -z "$ac_cv_prog_STRIP"; then
5161   ac_ct_STRIP=$STRIP
5162   # Extract the first word of "strip", so it can be a program name with args.
5163 set dummy strip; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   if test -n "$ac_ct_STRIP"; then
5170   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175   IFS=$as_save_IFS
5176   test -z "$as_dir" && as_dir=.
5177     for ac_exec_ext in '' $ac_executable_extensions; do
5178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179     ac_cv_prog_ac_ct_STRIP="strip"
5180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181     break 2
5182   fi
5183 done
5184   done
5185 IFS=$as_save_IFS
5186
5187 fi
5188 fi
5189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5190 if test -n "$ac_ct_STRIP"; then
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5192 $as_echo "$ac_ct_STRIP" >&6; }
5193 else
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 fi
5197
5198   if test "x$ac_ct_STRIP" = x; then
5199     STRIP=":"
5200   else
5201     case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205 ac_tool_warned=yes ;;
5206 esac
5207     STRIP=$ac_ct_STRIP
5208   fi
5209 else
5210   STRIP="$ac_cv_prog_STRIP"
5211 fi
5212
5213 test -z "$STRIP" && STRIP=:
5214
5215
5216
5217
5218
5219
5220 if test -n "$ac_tool_prefix"; then
5221   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_RANLIB+:} false; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   if test -n "$RANLIB"; then
5229   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243   done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 RANLIB=$ac_cv_prog_RANLIB
5249 if test -n "$RANLIB"; then
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5251 $as_echo "$RANLIB" >&6; }
5252 else
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 fi
5259 if test -z "$ac_cv_prog_RANLIB"; then
5260   ac_ct_RANLIB=$RANLIB
5261   # Extract the first word of "ranlib", so it can be a program name with args.
5262 set dummy ranlib; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   if test -n "$ac_ct_RANLIB"; then
5269   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276     for ac_exec_ext in '' $ac_executable_extensions; do
5277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_prog_ac_ct_RANLIB="ranlib"
5279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283   done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5289 if test -n "$ac_ct_RANLIB"; then
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5291 $as_echo "$ac_ct_RANLIB" >&6; }
5292 else
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297   if test "x$ac_ct_RANLIB" = x; then
5298     RANLIB=":"
5299   else
5300     case $cross_compiling:$ac_tool_warned in
5301 yes:)
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned=yes ;;
5305 esac
5306     RANLIB=$ac_ct_RANLIB
5307   fi
5308 else
5309   RANLIB="$ac_cv_prog_RANLIB"
5310 fi
5311
5312 test -z "$RANLIB" && RANLIB=:
5313
5314
5315
5316
5317
5318
5319 # Determine commands to create old-style static archives.
5320 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5321 old_postinstall_cmds='chmod 644 $oldlib'
5322 old_postuninstall_cmds=
5323
5324 if test -n "$RANLIB"; then
5325   case $host_os in
5326   openbsd*)
5327     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5328     ;;
5329   *)
5330     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5331     ;;
5332   esac
5333   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5334 fi
5335
5336 case $host_os in
5337   darwin*)
5338     lock_old_archive_extraction=yes ;;
5339   *)
5340     lock_old_archive_extraction=no ;;
5341 esac
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 for ac_prog in gawk mawk nawk awk
5364 do
5365   # Extract the first word of "$ac_prog", so it can be a program name with args.
5366 set dummy $ac_prog; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_AWK+:} false; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   if test -n "$AWK"; then
5373   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378   IFS=$as_save_IFS
5379   test -z "$as_dir" && as_dir=.
5380     for ac_exec_ext in '' $ac_executable_extensions; do
5381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382     ac_cv_prog_AWK="$ac_prog"
5383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384     break 2
5385   fi
5386 done
5387   done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 AWK=$ac_cv_prog_AWK
5393 if test -n "$AWK"; then
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5395 $as_echo "$AWK" >&6; }
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401
5402   test -n "$AWK" && break
5403 done
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423 # If no C compiler was specified, use CC.
5424 LTCC=${LTCC-"$CC"}
5425
5426 # If no C compiler flags were specified, use CFLAGS.
5427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5428
5429 # Allow CC to be a program name with arguments.
5430 compiler=$CC
5431
5432
5433 # Check for command to grab the raw symbol name followed by C symbol from nm.
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5435 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5436 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439
5440 # These are sane defaults that work on at least a few old systems.
5441 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5442
5443 # Character class describing NM global symbol codes.
5444 symcode='[BCDEGRST]'
5445
5446 # Regexp to match symbols that can be accessed directly from C.
5447 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5448
5449 # Define system-specific variables.
5450 case $host_os in
5451 aix*)
5452   symcode='[BCDT]'
5453   ;;
5454 cygwin* | mingw* | pw32* | cegcc*)
5455   symcode='[ABCDGISTW]'
5456   ;;
5457 hpux*)
5458   if test "$host_cpu" = ia64; then
5459     symcode='[ABCDEGRST]'
5460   fi
5461   ;;
5462 irix* | nonstopux*)
5463   symcode='[BCDEGRST]'
5464   ;;
5465 osf*)
5466   symcode='[BCDEGQRST]'
5467   ;;
5468 solaris*)
5469   symcode='[BDRT]'
5470   ;;
5471 sco3.2v5*)
5472   symcode='[DT]'
5473   ;;
5474 sysv4.2uw2*)
5475   symcode='[DT]'
5476   ;;
5477 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5478   symcode='[ABDT]'
5479   ;;
5480 sysv4)
5481   symcode='[DFNSTU]'
5482   ;;
5483 esac
5484
5485 # If we're using GNU nm, then use its standard symbol codes.
5486 case `$NM -V 2>&1` in
5487 *GNU* | *'with BFD'*)
5488   symcode='[ABCDGIRSTW]' ;;
5489 esac
5490
5491 # Transform an extracted symbol line into a proper C declaration.
5492 # Some systems (esp. on ia64) link data and code symbols differently,
5493 # so use this general approach.
5494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5495
5496 # Transform an extracted symbol line into symbol name and symbol address
5497 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5498 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'"
5499
5500 # Handle CRLF in mingw tool chain
5501 opt_cr=
5502 case $build_os in
5503 mingw*)
5504   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5505   ;;
5506 esac
5507
5508 # Try without a prefix underscore, then with it.
5509 for ac_symprfx in "" "_"; do
5510
5511   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5512   symxfrm="\\1 $ac_symprfx\\2 \\2"
5513
5514   # Write the raw and C identifiers.
5515   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5516     # Fake it for dumpbin and say T for any non-static function
5517     # and D for any global variable.
5518     # Also find C++ and __fastcall symbols from MSVC++,
5519     # which start with @ or ?.
5520     lt_cv_sys_global_symbol_pipe="$AWK '"\
5521 "     {last_section=section; section=\$ 3};"\
5522 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5523 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5524 "     \$ 0!~/External *\|/{next};"\
5525 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5526 "     {if(hide[section]) next};"\
5527 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5528 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5529 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5530 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5531 "     ' prfx=^$ac_symprfx"
5532   else
5533     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5534   fi
5535   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5536
5537   # Check to see that the pipe works correctly.
5538   pipe_works=no
5539
5540   rm -f conftest*
5541   cat > conftest.$ac_ext <<_LT_EOF
5542 #ifdef __cplusplus
5543 extern "C" {
5544 #endif
5545 char nm_test_var;
5546 void nm_test_func(void);
5547 void nm_test_func(void){}
5548 #ifdef __cplusplus
5549 }
5550 #endif
5551 int main(){nm_test_var='a';nm_test_func();return(0);}
5552 _LT_EOF
5553
5554   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5555   (eval $ac_compile) 2>&5
5556   ac_status=$?
5557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558   test $ac_status = 0; }; then
5559     # Now try to grab the symbols.
5560     nlist=conftest.nm
5561     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5562   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5563   ac_status=$?
5564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565   test $ac_status = 0; } && test -s "$nlist"; then
5566       # Try sorting and uniquifying the output.
5567       if sort "$nlist" | uniq > "$nlist"T; then
5568         mv -f "$nlist"T "$nlist"
5569       else
5570         rm -f "$nlist"T
5571       fi
5572
5573       # Make sure that we snagged all the symbols we need.
5574       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5575         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5576           cat <<_LT_EOF > conftest.$ac_ext
5577 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5578 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5579 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5580    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5581 # define LT_DLSYM_CONST
5582 #elif defined(__osf__)
5583 /* This system does not cope well with relocations in const data.  */
5584 # define LT_DLSYM_CONST
5585 #else
5586 # define LT_DLSYM_CONST const
5587 #endif
5588
5589 #ifdef __cplusplus
5590 extern "C" {
5591 #endif
5592
5593 _LT_EOF
5594           # Now generate the symbol file.
5595           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5596
5597           cat <<_LT_EOF >> conftest.$ac_ext
5598
5599 /* The mapping between symbol names and symbols.  */
5600 LT_DLSYM_CONST struct {
5601   const char *name;
5602   void       *address;
5603 }
5604 lt__PROGRAM__LTX_preloaded_symbols[] =
5605 {
5606   { "@PROGRAM@", (void *) 0 },
5607 _LT_EOF
5608           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5609           cat <<\_LT_EOF >> conftest.$ac_ext
5610   {0, (void *) 0}
5611 };
5612
5613 /* This works around a problem in FreeBSD linker */
5614 #ifdef FREEBSD_WORKAROUND
5615 static const void *lt_preloaded_setup() {
5616   return lt__PROGRAM__LTX_preloaded_symbols;
5617 }
5618 #endif
5619
5620 #ifdef __cplusplus
5621 }
5622 #endif
5623 _LT_EOF
5624           # Now try linking the two files.
5625           mv conftest.$ac_objext conftstm.$ac_objext
5626           lt_globsym_save_LIBS=$LIBS
5627           lt_globsym_save_CFLAGS=$CFLAGS
5628           LIBS="conftstm.$ac_objext"
5629           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5630           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5631   (eval $ac_link) 2>&5
5632   ac_status=$?
5633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5635             pipe_works=yes
5636           fi
5637           LIBS=$lt_globsym_save_LIBS
5638           CFLAGS=$lt_globsym_save_CFLAGS
5639         else
5640           echo "cannot find nm_test_func in $nlist" >&5
5641         fi
5642       else
5643         echo "cannot find nm_test_var in $nlist" >&5
5644       fi
5645     else
5646       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5647     fi
5648   else
5649     echo "$progname: failed program was:" >&5
5650     cat conftest.$ac_ext >&5
5651   fi
5652   rm -rf conftest* conftst*
5653
5654   # Do not use the global_symbol_pipe unless it works.
5655   if test "$pipe_works" = yes; then
5656     break
5657   else
5658     lt_cv_sys_global_symbol_pipe=
5659   fi
5660 done
5661
5662 fi
5663
5664 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5665   lt_cv_sys_global_symbol_to_cdecl=
5666 fi
5667 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5669 $as_echo "failed" >&6; }
5670 else
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5672 $as_echo "ok" >&6; }
5673 fi
5674
5675 # Response file support.
5676 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5677   nm_file_list_spec='@'
5678 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5679   nm_file_list_spec='@'
5680 fi
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5709 $as_echo_n "checking for sysroot... " >&6; }
5710
5711 # Check whether --with-sysroot was given.
5712 if test "${with_sysroot+set}" = set; then :
5713   withval=$with_sysroot;
5714 else
5715   with_sysroot=no
5716 fi
5717
5718
5719 lt_sysroot=
5720 case ${with_sysroot} in #(
5721  yes)
5722    if test "$GCC" = yes; then
5723      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5724    fi
5725    ;; #(
5726  /*)
5727    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5728    ;; #(
5729  no|'')
5730    ;; #(
5731  *)
5732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5733 $as_echo "${with_sysroot}" >&6; }
5734    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5735    ;;
5736 esac
5737
5738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5739 $as_echo "${lt_sysroot:-no}" >&6; }
5740
5741
5742
5743
5744
5745 # Check whether --enable-libtool-lock was given.
5746 if test "${enable_libtool_lock+set}" = set; then :
5747   enableval=$enable_libtool_lock;
5748 fi
5749
5750 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5751
5752 # Some flags need to be propagated to the compiler or linker for good
5753 # libtool support.
5754 case $host in
5755 ia64-*-hpux*)
5756   # Find out which ABI we are using.
5757   echo 'int i;' > conftest.$ac_ext
5758   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5759   (eval $ac_compile) 2>&5
5760   ac_status=$?
5761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5762   test $ac_status = 0; }; then
5763     case `/usr/bin/file conftest.$ac_objext` in
5764       *ELF-32*)
5765         HPUX_IA64_MODE="32"
5766         ;;
5767       *ELF-64*)
5768         HPUX_IA64_MODE="64"
5769         ;;
5770     esac
5771   fi
5772   rm -rf conftest*
5773   ;;
5774 *-*-irix6*)
5775   # Find out which ABI we are using.
5776   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5777   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5778   (eval $ac_compile) 2>&5
5779   ac_status=$?
5780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781   test $ac_status = 0; }; then
5782     if test "$lt_cv_prog_gnu_ld" = yes; then
5783       case `/usr/bin/file conftest.$ac_objext` in
5784         *32-bit*)
5785           LD="${LD-ld} -melf32bsmip"
5786           ;;
5787         *N32*)
5788           LD="${LD-ld} -melf32bmipn32"
5789           ;;
5790         *64-bit*)
5791           LD="${LD-ld} -melf64bmip"
5792         ;;
5793       esac
5794     else
5795       case `/usr/bin/file conftest.$ac_objext` in
5796         *32-bit*)
5797           LD="${LD-ld} -32"
5798           ;;
5799         *N32*)
5800           LD="${LD-ld} -n32"
5801           ;;
5802         *64-bit*)
5803           LD="${LD-ld} -64"
5804           ;;
5805       esac
5806     fi
5807   fi
5808   rm -rf conftest*
5809   ;;
5810
5811 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5812 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5813   # Find out which ABI we are using.
5814   echo 'int i;' > conftest.$ac_ext
5815   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5816   (eval $ac_compile) 2>&5
5817   ac_status=$?
5818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5819   test $ac_status = 0; }; then
5820     case `/usr/bin/file conftest.o` in
5821       *32-bit*)
5822         case $host in
5823           x86_64-*kfreebsd*-gnu)
5824             LD="${LD-ld} -m elf_i386_fbsd"
5825             ;;
5826           x86_64-*linux*)
5827             case `/usr/bin/file conftest.o` in
5828               *x86-64*)
5829                 LD="${LD-ld} -m elf32_x86_64"
5830                 ;;
5831               *)
5832                 LD="${LD-ld} -m elf_i386"
5833                 ;;
5834             esac
5835             ;;
5836           powerpc64le-*)
5837             LD="${LD-ld} -m elf32lppclinux"
5838             ;;
5839           powerpc64-*)
5840             LD="${LD-ld} -m elf32ppclinux"
5841             ;;
5842           s390x-*linux*)
5843             LD="${LD-ld} -m elf_s390"
5844             ;;
5845           sparc64-*linux*)
5846             LD="${LD-ld} -m elf32_sparc"
5847             ;;
5848         esac
5849         ;;
5850       *64-bit*)
5851         case $host in
5852           x86_64-*kfreebsd*-gnu)
5853             LD="${LD-ld} -m elf_x86_64_fbsd"
5854             ;;
5855           x86_64-*linux*)
5856             LD="${LD-ld} -m elf_x86_64"
5857             ;;
5858           powerpcle-*)
5859             LD="${LD-ld} -m elf64lppc"
5860             ;;
5861           powerpc-*)
5862             LD="${LD-ld} -m elf64ppc"
5863             ;;
5864           s390*-*linux*|s390*-*tpf*)
5865             LD="${LD-ld} -m elf64_s390"
5866             ;;
5867           sparc*-*linux*)
5868             LD="${LD-ld} -m elf64_sparc"
5869             ;;
5870         esac
5871         ;;
5872     esac
5873   fi
5874   rm -rf conftest*
5875   ;;
5876
5877 *-*-sco3.2v5*)
5878   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5879   SAVE_CFLAGS="$CFLAGS"
5880   CFLAGS="$CFLAGS -belf"
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5882 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5883 if ${lt_cv_cc_needs_belf+:} false; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   ac_ext=c
5887 ac_cpp='$CPP $CPPFLAGS'
5888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5891
5892      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h.  */
5894
5895 int
5896 main ()
5897 {
5898
5899   ;
5900   return 0;
5901 }
5902 _ACEOF
5903 if ac_fn_c_try_link "$LINENO"; then :
5904   lt_cv_cc_needs_belf=yes
5905 else
5906   lt_cv_cc_needs_belf=no
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext \
5909     conftest$ac_exeext conftest.$ac_ext
5910      ac_ext=c
5911 ac_cpp='$CPP $CPPFLAGS'
5912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5915
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5918 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5919   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5920     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5921     CFLAGS="$SAVE_CFLAGS"
5922   fi
5923   ;;
5924 *-*solaris*)
5925   # Find out which ABI we are using.
5926   echo 'int i;' > conftest.$ac_ext
5927   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5928   (eval $ac_compile) 2>&5
5929   ac_status=$?
5930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931   test $ac_status = 0; }; then
5932     case `/usr/bin/file conftest.o` in
5933     *64-bit*)
5934       case $lt_cv_prog_gnu_ld in
5935       yes*)
5936         case $host in
5937         i?86-*-solaris*)
5938           LD="${LD-ld} -m elf_x86_64"
5939           ;;
5940         sparc*-*-solaris*)
5941           LD="${LD-ld} -m elf64_sparc"
5942           ;;
5943         esac
5944         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
5945         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5946           LD="${LD-ld}_sol2"
5947         fi
5948         ;;
5949       *)
5950         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5951           LD="${LD-ld} -64"
5952         fi
5953         ;;
5954       esac
5955       ;;
5956     esac
5957   fi
5958   rm -rf conftest*
5959   ;;
5960 esac
5961
5962 need_locks="$enable_libtool_lock"
5963
5964 if test -n "$ac_tool_prefix"; then
5965   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}mt; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$MANIFEST_TOOL"; then
5973   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989
5990 fi
5991 fi
5992 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5993 if test -n "$MANIFEST_TOOL"; then
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5995 $as_echo "$MANIFEST_TOOL" >&6; }
5996 else
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000
6001
6002 fi
6003 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6004   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6005   # Extract the first word of "mt", so it can be a program name with args.
6006 set dummy mt; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6010   $as_echo_n "(cached) " >&6
6011 else
6012   if test -n "$ac_ct_MANIFEST_TOOL"; then
6013   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020     for ac_exec_ext in '' $ac_executable_extensions; do
6021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024     break 2
6025   fi
6026 done
6027   done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6033 if test -n "$ac_ct_MANIFEST_TOOL"; then
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6035 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6036 else
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6042     MANIFEST_TOOL=":"
6043   else
6044     case $cross_compiling:$ac_tool_warned in
6045 yes:)
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048 ac_tool_warned=yes ;;
6049 esac
6050     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6051   fi
6052 else
6053   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6054 fi
6055
6056 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6058 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6059 if ${lt_cv_path_mainfest_tool+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   lt_cv_path_mainfest_tool=no
6063   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6064   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6065   cat conftest.err >&5
6066   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6067     lt_cv_path_mainfest_tool=yes
6068   fi
6069   rm -f conftest*
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6072 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6073 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6074   MANIFEST_TOOL=:
6075 fi
6076
6077
6078
6079
6080
6081
6082   case $host_os in
6083     rhapsody* | darwin*)
6084     if test -n "$ac_tool_prefix"; then
6085   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6086 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6090   $as_echo_n "(cached) " >&6
6091 else
6092   if test -n "$DSYMUTIL"; then
6093   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098   IFS=$as_save_IFS
6099   test -z "$as_dir" && as_dir=.
6100     for ac_exec_ext in '' $ac_executable_extensions; do
6101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104     break 2
6105   fi
6106 done
6107   done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6113 if test -n "$DSYMUTIL"; then
6114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6115 $as_echo "$DSYMUTIL" >&6; }
6116 else
6117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6119 fi
6120
6121
6122 fi
6123 if test -z "$ac_cv_prog_DSYMUTIL"; then
6124   ac_ct_DSYMUTIL=$DSYMUTIL
6125   # Extract the first word of "dsymutil", so it can be a program name with args.
6126 set dummy dsymutil; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   if test -n "$ac_ct_DSYMUTIL"; then
6133   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138   IFS=$as_save_IFS
6139   test -z "$as_dir" && as_dir=.
6140     for ac_exec_ext in '' $ac_executable_extensions; do
6141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144     break 2
6145   fi
6146 done
6147   done
6148 IFS=$as_save_IFS
6149
6150 fi
6151 fi
6152 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6153 if test -n "$ac_ct_DSYMUTIL"; then
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6155 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6156 else
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6159 fi
6160
6161   if test "x$ac_ct_DSYMUTIL" = x; then
6162     DSYMUTIL=":"
6163   else
6164     case $cross_compiling:$ac_tool_warned in
6165 yes:)
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168 ac_tool_warned=yes ;;
6169 esac
6170     DSYMUTIL=$ac_ct_DSYMUTIL
6171   fi
6172 else
6173   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6174 fi
6175
6176     if test -n "$ac_tool_prefix"; then
6177   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6178 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_prog_NMEDIT+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   if test -n "$NMEDIT"; then
6185   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192     for ac_exec_ext in '' $ac_executable_extensions; do
6193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199   done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 NMEDIT=$ac_cv_prog_NMEDIT
6205 if test -n "$NMEDIT"; then
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6207 $as_echo "$NMEDIT" >&6; }
6208 else
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6211 fi
6212
6213
6214 fi
6215 if test -z "$ac_cv_prog_NMEDIT"; then
6216   ac_ct_NMEDIT=$NMEDIT
6217   # Extract the first word of "nmedit", so it can be a program name with args.
6218 set dummy nmedit; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   if test -n "$ac_ct_NMEDIT"; then
6225   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232     for ac_exec_ext in '' $ac_executable_extensions; do
6233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239   done
6240 IFS=$as_save_IFS
6241
6242 fi
6243 fi
6244 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6245 if test -n "$ac_ct_NMEDIT"; then
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6247 $as_echo "$ac_ct_NMEDIT" >&6; }
6248 else
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6251 fi
6252
6253   if test "x$ac_ct_NMEDIT" = x; then
6254     NMEDIT=":"
6255   else
6256     case $cross_compiling:$ac_tool_warned in
6257 yes:)
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6260 ac_tool_warned=yes ;;
6261 esac
6262     NMEDIT=$ac_ct_NMEDIT
6263   fi
6264 else
6265   NMEDIT="$ac_cv_prog_NMEDIT"
6266 fi
6267
6268     if test -n "$ac_tool_prefix"; then
6269   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6270 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if ${ac_cv_prog_LIPO+:} false; then :
6274   $as_echo_n "(cached) " >&6
6275 else
6276   if test -n "$LIPO"; then
6277   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284     for ac_exec_ext in '' $ac_executable_extensions; do
6285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291   done
6292 IFS=$as_save_IFS
6293
6294 fi
6295 fi
6296 LIPO=$ac_cv_prog_LIPO
6297 if test -n "$LIPO"; then
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6299 $as_echo "$LIPO" >&6; }
6300 else
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6303 fi
6304
6305
6306 fi
6307 if test -z "$ac_cv_prog_LIPO"; then
6308   ac_ct_LIPO=$LIPO
6309   # Extract the first word of "lipo", so it can be a program name with args.
6310 set dummy lipo; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6314   $as_echo_n "(cached) " >&6
6315 else
6316   if test -n "$ac_ct_LIPO"; then
6317   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324     for ac_exec_ext in '' $ac_executable_extensions; do
6325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326     ac_cv_prog_ac_ct_LIPO="lipo"
6327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331   done
6332 IFS=$as_save_IFS
6333
6334 fi
6335 fi
6336 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6337 if test -n "$ac_ct_LIPO"; then
6338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6339 $as_echo "$ac_ct_LIPO" >&6; }
6340 else
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6343 fi
6344
6345   if test "x$ac_ct_LIPO" = x; then
6346     LIPO=":"
6347   else
6348     case $cross_compiling:$ac_tool_warned in
6349 yes:)
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352 ac_tool_warned=yes ;;
6353 esac
6354     LIPO=$ac_ct_LIPO
6355   fi
6356 else
6357   LIPO="$ac_cv_prog_LIPO"
6358 fi
6359
6360     if test -n "$ac_tool_prefix"; then
6361   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}otool; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_OTOOL+:} false; then :
6366   $as_echo_n "(cached) " >&6
6367 else
6368   if test -n "$OTOOL"; then
6369   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376     for ac_exec_ext in '' $ac_executable_extensions; do
6377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383   done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 OTOOL=$ac_cv_prog_OTOOL
6389 if test -n "$OTOOL"; then
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6391 $as_echo "$OTOOL" >&6; }
6392 else
6393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397
6398 fi
6399 if test -z "$ac_cv_prog_OTOOL"; then
6400   ac_ct_OTOOL=$OTOOL
6401   # Extract the first word of "otool", so it can be a program name with args.
6402 set dummy otool; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6406   $as_echo_n "(cached) " >&6
6407 else
6408   if test -n "$ac_ct_OTOOL"; then
6409   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414   IFS=$as_save_IFS
6415   test -z "$as_dir" && as_dir=.
6416     for ac_exec_ext in '' $ac_executable_extensions; do
6417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418     ac_cv_prog_ac_ct_OTOOL="otool"
6419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420     break 2
6421   fi
6422 done
6423   done
6424 IFS=$as_save_IFS
6425
6426 fi
6427 fi
6428 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6429 if test -n "$ac_ct_OTOOL"; then
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6431 $as_echo "$ac_ct_OTOOL" >&6; }
6432 else
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436
6437   if test "x$ac_ct_OTOOL" = x; then
6438     OTOOL=":"
6439   else
6440     case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6445 esac
6446     OTOOL=$ac_ct_OTOOL
6447   fi
6448 else
6449   OTOOL="$ac_cv_prog_OTOOL"
6450 fi
6451
6452     if test -n "$ac_tool_prefix"; then
6453   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_OTOOL64+:} false; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   if test -n "$OTOOL64"; then
6461   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468     for ac_exec_ext in '' $ac_executable_extensions; do
6469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475   done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 OTOOL64=$ac_cv_prog_OTOOL64
6481 if test -n "$OTOOL64"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6483 $as_echo "$OTOOL64" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489
6490 fi
6491 if test -z "$ac_cv_prog_OTOOL64"; then
6492   ac_ct_OTOOL64=$OTOOL64
6493   # Extract the first word of "otool64", so it can be a program name with args.
6494 set dummy otool64; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   if test -n "$ac_ct_OTOOL64"; then
6501   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506   IFS=$as_save_IFS
6507   test -z "$as_dir" && as_dir=.
6508     for ac_exec_ext in '' $ac_executable_extensions; do
6509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510     ac_cv_prog_ac_ct_OTOOL64="otool64"
6511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512     break 2
6513   fi
6514 done
6515   done
6516 IFS=$as_save_IFS
6517
6518 fi
6519 fi
6520 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6521 if test -n "$ac_ct_OTOOL64"; then
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6523 $as_echo "$ac_ct_OTOOL64" >&6; }
6524 else
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6527 fi
6528
6529   if test "x$ac_ct_OTOOL64" = x; then
6530     OTOOL64=":"
6531   else
6532     case $cross_compiling:$ac_tool_warned in
6533 yes:)
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6536 ac_tool_warned=yes ;;
6537 esac
6538     OTOOL64=$ac_ct_OTOOL64
6539   fi
6540 else
6541   OTOOL64="$ac_cv_prog_OTOOL64"
6542 fi
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6571 $as_echo_n "checking for -single_module linker flag... " >&6; }
6572 if ${lt_cv_apple_cc_single_mod+:} false; then :
6573   $as_echo_n "(cached) " >&6
6574 else
6575   lt_cv_apple_cc_single_mod=no
6576       if test -z "${LT_MULTI_MODULE}"; then
6577         # By default we will add the -single_module flag. You can override
6578         # by either setting the environment variable LT_MULTI_MODULE
6579         # non-empty at configure time, or by adding -multi_module to the
6580         # link flags.
6581         rm -rf libconftest.dylib*
6582         echo "int foo(void){return 1;}" > conftest.c
6583         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6584 -dynamiclib -Wl,-single_module conftest.c" >&5
6585         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6586           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6587         _lt_result=$?
6588         # If there is a non-empty error log, and "single_module"
6589         # appears in it, assume the flag caused a linker warning
6590         if test -s conftest.err && $GREP single_module conftest.err; then
6591           cat conftest.err >&5
6592         # Otherwise, if the output was created with a 0 exit code from
6593         # the compiler, it worked.
6594         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6595           lt_cv_apple_cc_single_mod=yes
6596         else
6597           cat conftest.err >&5
6598         fi
6599         rm -rf libconftest.dylib*
6600         rm -f conftest.*
6601       fi
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6604 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6605
6606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6607 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6608 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   lt_cv_ld_exported_symbols_list=no
6612       save_LDFLAGS=$LDFLAGS
6613       echo "_main" > conftest.sym
6614       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6615       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h.  */
6617
6618 int
6619 main ()
6620 {
6621
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 if ac_fn_c_try_link "$LINENO"; then :
6627   lt_cv_ld_exported_symbols_list=yes
6628 else
6629   lt_cv_ld_exported_symbols_list=no
6630 fi
6631 rm -f core conftest.err conftest.$ac_objext \
6632     conftest$ac_exeext conftest.$ac_ext
6633         LDFLAGS="$save_LDFLAGS"
6634
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6637 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6638
6639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6640 $as_echo_n "checking for -force_load linker flag... " >&6; }
6641 if ${lt_cv_ld_force_load+:} false; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   lt_cv_ld_force_load=no
6645       cat > conftest.c << _LT_EOF
6646 int forced_loaded() { return 2;}
6647 _LT_EOF
6648       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6649       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6650       echo "$AR cru libconftest.a conftest.o" >&5
6651       $AR cru libconftest.a conftest.o 2>&5
6652       echo "$RANLIB libconftest.a" >&5
6653       $RANLIB libconftest.a 2>&5
6654       cat > conftest.c << _LT_EOF
6655 int main() { return 0;}
6656 _LT_EOF
6657       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6658       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6659       _lt_result=$?
6660       if test -s conftest.err && $GREP force_load conftest.err; then
6661         cat conftest.err >&5
6662       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6663         lt_cv_ld_force_load=yes
6664       else
6665         cat conftest.err >&5
6666       fi
6667         rm -f conftest.err libconftest.a conftest conftest.c
6668         rm -rf conftest.dSYM
6669
6670 fi
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6672 $as_echo "$lt_cv_ld_force_load" >&6; }
6673     case $host_os in
6674     rhapsody* | darwin1.[012])
6675       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6676     darwin1.*)
6677       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6678     darwin*) # darwin 5.x on
6679       # if running on 10.5 or later, the deployment target defaults
6680       # to the OS version, if on x86, and 10.4, the deployment
6681       # target defaults to 10.4. Don't you love it?
6682       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6683         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6684           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6685         10.[012]*)
6686           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6687         10.*)
6688           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6689       esac
6690     ;;
6691   esac
6692     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6693       _lt_dar_single_mod='$single_module'
6694     fi
6695     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6696       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6697     else
6698       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6699     fi
6700     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6701       _lt_dsymutil='~$DSYMUTIL $lib || :'
6702     else
6703       _lt_dsymutil=
6704     fi
6705     ;;
6706   esac
6707
6708 ac_ext=c
6709 ac_cpp='$CPP $CPPFLAGS'
6710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6714 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6715 # On Suns, sometimes $CPP names a directory.
6716 if test -n "$CPP" && test -d "$CPP"; then
6717   CPP=
6718 fi
6719 if test -z "$CPP"; then
6720   if ${ac_cv_prog_CPP+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723       # Double quotes because CPP needs to be expanded
6724     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6725     do
6726       ac_preproc_ok=false
6727 for ac_c_preproc_warn_flag in '' yes
6728 do
6729   # Use a header file that comes with gcc, so configuring glibc
6730   # with a fresh cross-compiler works.
6731   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6732   # <limits.h> exists even on freestanding compilers.
6733   # On the NeXT, cc -E runs the code through the compiler's parser,
6734   # not just through cpp. "Syntax error" is here to catch this case.
6735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h.  */
6737 #ifdef __STDC__
6738 # include <limits.h>
6739 #else
6740 # include <assert.h>
6741 #endif
6742                      Syntax error
6743 _ACEOF
6744 if ac_fn_c_try_cpp "$LINENO"; then :
6745
6746 else
6747   # Broken: fails on valid input.
6748 continue
6749 fi
6750 rm -f conftest.err conftest.i conftest.$ac_ext
6751
6752   # OK, works on sane cases.  Now check whether nonexistent headers
6753   # can be detected and how.
6754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h.  */
6756 #include <ac_nonexistent.h>
6757 _ACEOF
6758 if ac_fn_c_try_cpp "$LINENO"; then :
6759   # Broken: success on invalid input.
6760 continue
6761 else
6762   # Passes both tests.
6763 ac_preproc_ok=:
6764 break
6765 fi
6766 rm -f conftest.err conftest.i conftest.$ac_ext
6767
6768 done
6769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6770 rm -f conftest.i conftest.err conftest.$ac_ext
6771 if $ac_preproc_ok; then :
6772   break
6773 fi
6774
6775     done
6776     ac_cv_prog_CPP=$CPP
6777
6778 fi
6779   CPP=$ac_cv_prog_CPP
6780 else
6781   ac_cv_prog_CPP=$CPP
6782 fi
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6784 $as_echo "$CPP" >&6; }
6785 ac_preproc_ok=false
6786 for ac_c_preproc_warn_flag in '' yes
6787 do
6788   # Use a header file that comes with gcc, so configuring glibc
6789   # with a fresh cross-compiler works.
6790   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6791   # <limits.h> exists even on freestanding compilers.
6792   # On the NeXT, cc -E runs the code through the compiler's parser,
6793   # not just through cpp. "Syntax error" is here to catch this case.
6794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h.  */
6796 #ifdef __STDC__
6797 # include <limits.h>
6798 #else
6799 # include <assert.h>
6800 #endif
6801                      Syntax error
6802 _ACEOF
6803 if ac_fn_c_try_cpp "$LINENO"; then :
6804
6805 else
6806   # Broken: fails on valid input.
6807 continue
6808 fi
6809 rm -f conftest.err conftest.i conftest.$ac_ext
6810
6811   # OK, works on sane cases.  Now check whether nonexistent headers
6812   # can be detected and how.
6813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h.  */
6815 #include <ac_nonexistent.h>
6816 _ACEOF
6817 if ac_fn_c_try_cpp "$LINENO"; then :
6818   # Broken: success on invalid input.
6819 continue
6820 else
6821   # Passes both tests.
6822 ac_preproc_ok=:
6823 break
6824 fi
6825 rm -f conftest.err conftest.i conftest.$ac_ext
6826
6827 done
6828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6829 rm -f conftest.i conftest.err conftest.$ac_ext
6830 if $ac_preproc_ok; then :
6831
6832 else
6833   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6835 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6836 See \`config.log' for more details" "$LINENO" 5; }
6837 fi
6838
6839 ac_ext=c
6840 ac_cpp='$CPP $CPPFLAGS'
6841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6844
6845
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6847 $as_echo_n "checking for ANSI C header files... " >&6; }
6848 if ${ac_cv_header_stdc+:} false; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h.  */
6853 #include <stdlib.h>
6854 #include <stdarg.h>
6855 #include <string.h>
6856 #include <float.h>
6857
6858 int
6859 main ()
6860 {
6861
6862   ;
6863   return 0;
6864 }
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867   ac_cv_header_stdc=yes
6868 else
6869   ac_cv_header_stdc=no
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872
6873 if test $ac_cv_header_stdc = yes; then
6874   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h.  */
6877 #include <string.h>
6878
6879 _ACEOF
6880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6881   $EGREP "memchr" >/dev/null 2>&1; then :
6882
6883 else
6884   ac_cv_header_stdc=no
6885 fi
6886 rm -f conftest*
6887
6888 fi
6889
6890 if test $ac_cv_header_stdc = yes; then
6891   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h.  */
6894 #include <stdlib.h>
6895
6896 _ACEOF
6897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6898   $EGREP "free" >/dev/null 2>&1; then :
6899
6900 else
6901   ac_cv_header_stdc=no
6902 fi
6903 rm -f conftest*
6904
6905 fi
6906
6907 if test $ac_cv_header_stdc = yes; then
6908   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6909   if test "$cross_compiling" = yes; then :
6910   :
6911 else
6912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h.  */
6914 #include <ctype.h>
6915 #include <stdlib.h>
6916 #if ((' ' & 0x0FF) == 0x020)
6917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6919 #else
6920 # define ISLOWER(c) \
6921                    (('a' <= (c) && (c) <= 'i') \
6922                      || ('j' <= (c) && (c) <= 'r') \
6923                      || ('s' <= (c) && (c) <= 'z'))
6924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6925 #endif
6926
6927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6928 int
6929 main ()
6930 {
6931   int i;
6932   for (i = 0; i < 256; i++)
6933     if (XOR (islower (i), ISLOWER (i))
6934         || toupper (i) != TOUPPER (i))
6935       return 2;
6936   return 0;
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_run "$LINENO"; then :
6940
6941 else
6942   ac_cv_header_stdc=no
6943 fi
6944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6945   conftest.$ac_objext conftest.beam conftest.$ac_ext
6946 fi
6947
6948 fi
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6951 $as_echo "$ac_cv_header_stdc" >&6; }
6952 if test $ac_cv_header_stdc = yes; then
6953
6954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6955
6956 fi
6957
6958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6960                   inttypes.h stdint.h unistd.h
6961 do :
6962   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6964 "
6965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6966   cat >>confdefs.h <<_ACEOF
6967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6968 _ACEOF
6969
6970 fi
6971
6972 done
6973
6974
6975 for ac_header in dlfcn.h
6976 do :
6977   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6978 "
6979 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6980   cat >>confdefs.h <<_ACEOF
6981 #define HAVE_DLFCN_H 1
6982 _ACEOF
6983
6984 fi
6985
6986 done
6987
6988
6989
6990
6991
6992 # Set options
6993
6994
6995
6996         enable_dlopen=no
6997
6998
6999   enable_win32_dll=no
7000
7001
7002             # Check whether --enable-shared was given.
7003 if test "${enable_shared+set}" = set; then :
7004   enableval=$enable_shared; p=${PACKAGE-default}
7005     case $enableval in
7006     yes) enable_shared=yes ;;
7007     no) enable_shared=no ;;
7008     *)
7009       enable_shared=no
7010       # Look at the argument we got.  We use all the common list separators.
7011       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7012       for pkg in $enableval; do
7013         IFS="$lt_save_ifs"
7014         if test "X$pkg" = "X$p"; then
7015           enable_shared=yes
7016         fi
7017       done
7018       IFS="$lt_save_ifs"
7019       ;;
7020     esac
7021 else
7022   enable_shared=yes
7023 fi
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033   # Check whether --enable-static was given.
7034 if test "${enable_static+set}" = set; then :
7035   enableval=$enable_static; p=${PACKAGE-default}
7036     case $enableval in
7037     yes) enable_static=yes ;;
7038     no) enable_static=no ;;
7039     *)
7040      enable_static=no
7041       # Look at the argument we got.  We use all the common list separators.
7042       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7043       for pkg in $enableval; do
7044         IFS="$lt_save_ifs"
7045         if test "X$pkg" = "X$p"; then
7046           enable_static=yes
7047         fi
7048       done
7049       IFS="$lt_save_ifs"
7050       ;;
7051     esac
7052 else
7053   enable_static=yes
7054 fi
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065 # Check whether --with-pic was given.
7066 if test "${with_pic+set}" = set; then :
7067   withval=$with_pic; lt_p=${PACKAGE-default}
7068     case $withval in
7069     yes|no) pic_mode=$withval ;;
7070     *)
7071       pic_mode=default
7072       # Look at the argument we got.  We use all the common list separators.
7073       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7074       for lt_pkg in $withval; do
7075         IFS="$lt_save_ifs"
7076         if test "X$lt_pkg" = "X$lt_p"; then
7077           pic_mode=yes
7078         fi
7079       done
7080       IFS="$lt_save_ifs"
7081       ;;
7082     esac
7083 else
7084   pic_mode=default
7085 fi
7086
7087
7088 test -z "$pic_mode" && pic_mode=default
7089
7090
7091
7092
7093
7094
7095
7096   # Check whether --enable-fast-install was given.
7097 if test "${enable_fast_install+set}" = set; then :
7098   enableval=$enable_fast_install; p=${PACKAGE-default}
7099     case $enableval in
7100     yes) enable_fast_install=yes ;;
7101     no) enable_fast_install=no ;;
7102     *)
7103       enable_fast_install=no
7104       # Look at the argument we got.  We use all the common list separators.
7105       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7106       for pkg in $enableval; do
7107         IFS="$lt_save_ifs"
7108         if test "X$pkg" = "X$p"; then
7109           enable_fast_install=yes
7110         fi
7111       done
7112       IFS="$lt_save_ifs"
7113       ;;
7114     esac
7115 else
7116   enable_fast_install=yes
7117 fi
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129 # This can be used to rebuild libtool when needed
7130 LIBTOOL_DEPS="$ltmain"
7131
7132 # Always use our own libtool.
7133 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164 test -z "$LN_S" && LN_S="ln -s"
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179 if test -n "${ZSH_VERSION+set}" ; then
7180    setopt NO_GLOB_SUBST
7181 fi
7182
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7184 $as_echo_n "checking for objdir... " >&6; }
7185 if ${lt_cv_objdir+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   rm -f .libs 2>/dev/null
7189 mkdir .libs 2>/dev/null
7190 if test -d .libs; then
7191   lt_cv_objdir=.libs
7192 else
7193   # MS-DOS does not allow filenames that begin with a dot.
7194   lt_cv_objdir=_libs
7195 fi
7196 rmdir .libs 2>/dev/null
7197 fi
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7199 $as_echo "$lt_cv_objdir" >&6; }
7200 objdir=$lt_cv_objdir
7201
7202
7203
7204
7205
7206 cat >>confdefs.h <<_ACEOF
7207 #define LT_OBJDIR "$lt_cv_objdir/"
7208 _ACEOF
7209
7210
7211
7212
7213 case $host_os in
7214 aix3*)
7215   # AIX sometimes has problems with the GCC collect2 program.  For some
7216   # reason, if we set the COLLECT_NAMES environment variable, the problems
7217   # vanish in a puff of smoke.
7218   if test "X${COLLECT_NAMES+set}" != Xset; then
7219     COLLECT_NAMES=
7220     export COLLECT_NAMES
7221   fi
7222   ;;
7223 esac
7224
7225 # Global variables:
7226 ofile=libtool
7227 can_build_shared=yes
7228
7229 # All known linkers require a `.a' archive for static linking (except MSVC,
7230 # which needs '.lib').
7231 libext=a
7232
7233 with_gnu_ld="$lt_cv_prog_gnu_ld"
7234
7235 old_CC="$CC"
7236 old_CFLAGS="$CFLAGS"
7237
7238 # Set sane defaults for various variables
7239 test -z "$CC" && CC=cc
7240 test -z "$LTCC" && LTCC=$CC
7241 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7242 test -z "$LD" && LD=ld
7243 test -z "$ac_objext" && ac_objext=o
7244
7245 for cc_temp in $compiler""; do
7246   case $cc_temp in
7247     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7248     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7249     \-*) ;;
7250     *) break;;
7251   esac
7252 done
7253 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7254
7255
7256 # Only perform the check for file, if the check method requires it
7257 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7258 case $deplibs_check_method in
7259 file_magic*)
7260   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7262 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7263 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   case $MAGIC_CMD in
7267 [\\/*] |  ?:[\\/]*)
7268   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7269   ;;
7270 *)
7271   lt_save_MAGIC_CMD="$MAGIC_CMD"
7272   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7273   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7274   for ac_dir in $ac_dummy; do
7275     IFS="$lt_save_ifs"
7276     test -z "$ac_dir" && ac_dir=.
7277     if test -f $ac_dir/${ac_tool_prefix}file; then
7278       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7279       if test -n "$file_magic_test_file"; then
7280         case $deplibs_check_method in
7281         "file_magic "*)
7282           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7283           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7284           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7285             $EGREP "$file_magic_regex" > /dev/null; then
7286             :
7287           else
7288             cat <<_LT_EOF 1>&2
7289
7290 *** Warning: the command libtool uses to detect shared libraries,
7291 *** $file_magic_cmd, produces output that libtool cannot recognize.
7292 *** The result is that libtool may fail to recognize shared libraries
7293 *** as such.  This will affect the creation of libtool libraries that
7294 *** depend on shared libraries, but programs linked with such libtool
7295 *** libraries will work regardless of this problem.  Nevertheless, you
7296 *** may want to report the problem to your system manager and/or to
7297 *** bug-libtool@gnu.org
7298
7299 _LT_EOF
7300           fi ;;
7301         esac
7302       fi
7303       break
7304     fi
7305   done
7306   IFS="$lt_save_ifs"
7307   MAGIC_CMD="$lt_save_MAGIC_CMD"
7308   ;;
7309 esac
7310 fi
7311
7312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7313 if test -n "$MAGIC_CMD"; then
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7315 $as_echo "$MAGIC_CMD" >&6; }
7316 else
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321
7322
7323
7324
7325 if test -z "$lt_cv_path_MAGIC_CMD"; then
7326   if test -n "$ac_tool_prefix"; then
7327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7328 $as_echo_n "checking for file... " >&6; }
7329 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   case $MAGIC_CMD in
7333 [\\/*] |  ?:[\\/]*)
7334   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7335   ;;
7336 *)
7337   lt_save_MAGIC_CMD="$MAGIC_CMD"
7338   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7339   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7340   for ac_dir in $ac_dummy; do
7341     IFS="$lt_save_ifs"
7342     test -z "$ac_dir" && ac_dir=.
7343     if test -f $ac_dir/file; then
7344       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7345       if test -n "$file_magic_test_file"; then
7346         case $deplibs_check_method in
7347         "file_magic "*)
7348           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7349           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7350           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7351             $EGREP "$file_magic_regex" > /dev/null; then
7352             :
7353           else
7354             cat <<_LT_EOF 1>&2
7355
7356 *** Warning: the command libtool uses to detect shared libraries,
7357 *** $file_magic_cmd, produces output that libtool cannot recognize.
7358 *** The result is that libtool may fail to recognize shared libraries
7359 *** as such.  This will affect the creation of libtool libraries that
7360 *** depend on shared libraries, but programs linked with such libtool
7361 *** libraries will work regardless of this problem.  Nevertheless, you
7362 *** may want to report the problem to your system manager and/or to
7363 *** bug-libtool@gnu.org
7364
7365 _LT_EOF
7366           fi ;;
7367         esac
7368       fi
7369       break
7370     fi
7371   done
7372   IFS="$lt_save_ifs"
7373   MAGIC_CMD="$lt_save_MAGIC_CMD"
7374   ;;
7375 esac
7376 fi
7377
7378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7379 if test -n "$MAGIC_CMD"; then
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7381 $as_echo "$MAGIC_CMD" >&6; }
7382 else
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387
7388   else
7389     MAGIC_CMD=:
7390   fi
7391 fi
7392
7393   fi
7394   ;;
7395 esac
7396
7397 # Use C for the default configuration in the libtool script
7398
7399 lt_save_CC="$CC"
7400 ac_ext=c
7401 ac_cpp='$CPP $CPPFLAGS'
7402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405
7406
7407 # Source file extension for C test sources.
7408 ac_ext=c
7409
7410 # Object file extension for compiled C test sources.
7411 objext=o
7412 objext=$objext
7413
7414 # Code to be used in simple compile tests
7415 lt_simple_compile_test_code="int some_variable = 0;"
7416
7417 # Code to be used in simple link tests
7418 lt_simple_link_test_code='int main(){return(0);}'
7419
7420
7421
7422
7423
7424
7425
7426 # If no C compiler was specified, use CC.
7427 LTCC=${LTCC-"$CC"}
7428
7429 # If no C compiler flags were specified, use CFLAGS.
7430 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7431
7432 # Allow CC to be a program name with arguments.
7433 compiler=$CC
7434
7435 # Save the default compiler, since it gets overwritten when the other
7436 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7437 compiler_DEFAULT=$CC
7438
7439 # save warnings/boilerplate of simple test code
7440 ac_outfile=conftest.$ac_objext
7441 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7443 _lt_compiler_boilerplate=`cat conftest.err`
7444 $RM conftest*
7445
7446 ac_outfile=conftest.$ac_objext
7447 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7449 _lt_linker_boilerplate=`cat conftest.err`
7450 $RM -r conftest*
7451
7452
7453 ## CAVEAT EMPTOR:
7454 ## There is no encapsulation within the following macros, do not change
7455 ## the running order or otherwise move them around unless you know exactly
7456 ## what you are doing...
7457 if test -n "$compiler"; then
7458
7459 lt_prog_compiler_no_builtin_flag=
7460
7461 if test "$GCC" = yes; then
7462   case $cc_basename in
7463   nvcc*)
7464     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7465   *)
7466     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7467   esac
7468
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7470 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7471 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   lt_cv_prog_compiler_rtti_exceptions=no
7475    ac_outfile=conftest.$ac_objext
7476    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7477    lt_compiler_flag="-fno-rtti -fno-exceptions"
7478    # Insert the option either (1) after the last *FLAGS variable, or
7479    # (2) before a word containing "conftest.", or (3) at the end.
7480    # Note that $ac_compile itself does not contain backslashes and begins
7481    # with a dollar sign (not a hyphen), so the echo should work correctly.
7482    # The option is referenced via a variable to avoid confusing sed.
7483    lt_compile=`echo "$ac_compile" | $SED \
7484    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7485    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7486    -e 's:$: $lt_compiler_flag:'`
7487    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7488    (eval "$lt_compile" 2>conftest.err)
7489    ac_status=$?
7490    cat conftest.err >&5
7491    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492    if (exit $ac_status) && test -s "$ac_outfile"; then
7493      # The compiler can only warn and ignore the option if not recognized
7494      # So say no if there are warnings other than the usual output.
7495      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7496      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7497      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7498        lt_cv_prog_compiler_rtti_exceptions=yes
7499      fi
7500    fi
7501    $RM conftest*
7502
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7505 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7506
7507 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7508     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7509 else
7510     :
7511 fi
7512
7513 fi
7514
7515
7516
7517
7518
7519
7520   lt_prog_compiler_wl=
7521 lt_prog_compiler_pic=
7522 lt_prog_compiler_static=
7523
7524
7525   if test "$GCC" = yes; then
7526     lt_prog_compiler_wl='-Wl,'
7527     lt_prog_compiler_static='-static'
7528
7529     case $host_os in
7530       aix*)
7531       # All AIX code is PIC.
7532       if test "$host_cpu" = ia64; then
7533         # AIX 5 now supports IA64 processor
7534         lt_prog_compiler_static='-Bstatic'
7535       fi
7536       ;;
7537
7538     amigaos*)
7539       case $host_cpu in
7540       powerpc)
7541             # see comment about AmigaOS4 .so support
7542             lt_prog_compiler_pic='-fPIC'
7543         ;;
7544       m68k)
7545             # FIXME: we need at least 68020 code to build shared libraries, but
7546             # adding the `-m68020' flag to GCC prevents building anything better,
7547             # like `-m68040'.
7548             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7549         ;;
7550       esac
7551       ;;
7552
7553     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7554       # PIC is the default for these OSes.
7555       ;;
7556
7557     mingw* | cygwin* | pw32* | os2* | cegcc*)
7558       # This hack is so that the source file can tell whether it is being
7559       # built for inclusion in a dll (and should export symbols for example).
7560       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7561       # (--disable-auto-import) libraries
7562       lt_prog_compiler_pic='-DDLL_EXPORT'
7563       ;;
7564
7565     darwin* | rhapsody*)
7566       # PIC is the default on this platform
7567       # Common symbols not allowed in MH_DYLIB files
7568       lt_prog_compiler_pic='-fno-common'
7569       ;;
7570
7571     haiku*)
7572       # PIC is the default for Haiku.
7573       # The "-static" flag exists, but is broken.
7574       lt_prog_compiler_static=
7575       ;;
7576
7577     hpux*)
7578       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7579       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7580       # sets the default TLS model and affects inlining.
7581       case $host_cpu in
7582       hppa*64*)
7583         # +Z the default
7584         ;;
7585       *)
7586         lt_prog_compiler_pic='-fPIC'
7587         ;;
7588       esac
7589       ;;
7590
7591     interix[3-9]*)
7592       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7593       # Instead, we relocate shared libraries at runtime.
7594       ;;
7595
7596     msdosdjgpp*)
7597       # Just because we use GCC doesn't mean we suddenly get shared libraries
7598       # on systems that don't support them.
7599       lt_prog_compiler_can_build_shared=no
7600       enable_shared=no
7601       ;;
7602
7603     *nto* | *qnx*)
7604       # QNX uses GNU C++, but need to define -shared option too, otherwise
7605       # it will coredump.
7606       lt_prog_compiler_pic='-fPIC -shared'
7607       ;;
7608
7609     sysv4*MP*)
7610       if test -d /usr/nec; then
7611         lt_prog_compiler_pic=-Kconform_pic
7612       fi
7613       ;;
7614
7615     *)
7616       lt_prog_compiler_pic='-fPIC'
7617       ;;
7618     esac
7619
7620     case $cc_basename in
7621     nvcc*) # Cuda Compiler Driver 2.2
7622       lt_prog_compiler_wl='-Xlinker '
7623       if test -n "$lt_prog_compiler_pic"; then
7624         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7625       fi
7626       ;;
7627     esac
7628   else
7629     # PORTME Check for flag to pass linker flags through the system compiler.
7630     case $host_os in
7631     aix*)
7632       lt_prog_compiler_wl='-Wl,'
7633       if test "$host_cpu" = ia64; then
7634         # AIX 5 now supports IA64 processor
7635         lt_prog_compiler_static='-Bstatic'
7636       else
7637         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7638       fi
7639       ;;
7640
7641     mingw* | cygwin* | pw32* | os2* | cegcc*)
7642       # This hack is so that the source file can tell whether it is being
7643       # built for inclusion in a dll (and should export symbols for example).
7644       lt_prog_compiler_pic='-DDLL_EXPORT'
7645       ;;
7646
7647     hpux9* | hpux10* | hpux11*)
7648       lt_prog_compiler_wl='-Wl,'
7649       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7650       # not for PA HP-UX.
7651       case $host_cpu in
7652       hppa*64*|ia64*)
7653         # +Z the default
7654         ;;
7655       *)
7656         lt_prog_compiler_pic='+Z'
7657         ;;
7658       esac
7659       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7660       lt_prog_compiler_static='${wl}-a ${wl}archive'
7661       ;;
7662
7663     irix5* | irix6* | nonstopux*)
7664       lt_prog_compiler_wl='-Wl,'
7665       # PIC (with -KPIC) is the default.
7666       lt_prog_compiler_static='-non_shared'
7667       ;;
7668
7669     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7670       case $cc_basename in
7671       # old Intel for x86_64 which still supported -KPIC.
7672       ecc*)
7673         lt_prog_compiler_wl='-Wl,'
7674         lt_prog_compiler_pic='-KPIC'
7675         lt_prog_compiler_static='-static'
7676         ;;
7677       # icc used to be incompatible with GCC.
7678       # ICC 10 doesn't accept -KPIC any more.
7679       icc* | ifort*)
7680         lt_prog_compiler_wl='-Wl,'
7681         lt_prog_compiler_pic='-fPIC'
7682         lt_prog_compiler_static='-static'
7683         ;;
7684       # Lahey Fortran 8.1.
7685       lf95*)
7686         lt_prog_compiler_wl='-Wl,'
7687         lt_prog_compiler_pic='--shared'
7688         lt_prog_compiler_static='--static'
7689         ;;
7690       nagfor*)
7691         # NAG Fortran compiler
7692         lt_prog_compiler_wl='-Wl,-Wl,,'
7693         lt_prog_compiler_pic='-PIC'
7694         lt_prog_compiler_static='-Bstatic'
7695         ;;
7696       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7697         # Portland Group compilers (*not* the Pentium gcc compiler,
7698         # which looks to be a dead project)
7699         lt_prog_compiler_wl='-Wl,'
7700         lt_prog_compiler_pic='-fpic'
7701         lt_prog_compiler_static='-Bstatic'
7702         ;;
7703       ccc*)
7704         lt_prog_compiler_wl='-Wl,'
7705         # All Alpha code is PIC.
7706         lt_prog_compiler_static='-non_shared'
7707         ;;
7708       xl* | bgxl* | bgf* | mpixl*)
7709         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7710         lt_prog_compiler_wl='-Wl,'
7711         lt_prog_compiler_pic='-qpic'
7712         lt_prog_compiler_static='-qstaticlink'
7713         ;;
7714       *)
7715         case `$CC -V 2>&1 | sed 5q` in
7716         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7717           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7718           lt_prog_compiler_pic='-KPIC'
7719           lt_prog_compiler_static='-Bstatic'
7720           lt_prog_compiler_wl=''
7721           ;;
7722         *Sun\ F* | *Sun*Fortran*)
7723           lt_prog_compiler_pic='-KPIC'
7724           lt_prog_compiler_static='-Bstatic'
7725           lt_prog_compiler_wl='-Qoption ld '
7726           ;;
7727         *Sun\ C*)
7728           # Sun C 5.9
7729           lt_prog_compiler_pic='-KPIC'
7730           lt_prog_compiler_static='-Bstatic'
7731           lt_prog_compiler_wl='-Wl,'
7732           ;;
7733         *Intel*\ [CF]*Compiler*)
7734           lt_prog_compiler_wl='-Wl,'
7735           lt_prog_compiler_pic='-fPIC'
7736           lt_prog_compiler_static='-static'
7737           ;;
7738         *Portland\ Group*)
7739           lt_prog_compiler_wl='-Wl,'
7740           lt_prog_compiler_pic='-fpic'
7741           lt_prog_compiler_static='-Bstatic'
7742           ;;
7743         esac
7744         ;;
7745       esac
7746       ;;
7747
7748     newsos6)
7749       lt_prog_compiler_pic='-KPIC'
7750       lt_prog_compiler_static='-Bstatic'
7751       ;;
7752
7753     *nto* | *qnx*)
7754       # QNX uses GNU C++, but need to define -shared option too, otherwise
7755       # it will coredump.
7756       lt_prog_compiler_pic='-fPIC -shared'
7757       ;;
7758
7759     osf3* | osf4* | osf5*)
7760       lt_prog_compiler_wl='-Wl,'
7761       # All OSF/1 code is PIC.
7762       lt_prog_compiler_static='-non_shared'
7763       ;;
7764
7765     rdos*)
7766       lt_prog_compiler_static='-non_shared'
7767       ;;
7768
7769     solaris*)
7770       lt_prog_compiler_pic='-KPIC'
7771       lt_prog_compiler_static='-Bstatic'
7772       case $cc_basename in
7773       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7774         lt_prog_compiler_wl='-Qoption ld ';;
7775       *)
7776         lt_prog_compiler_wl='-Wl,';;
7777       esac
7778       ;;
7779
7780     sunos4*)
7781       lt_prog_compiler_wl='-Qoption ld '
7782       lt_prog_compiler_pic='-PIC'
7783       lt_prog_compiler_static='-Bstatic'
7784       ;;
7785
7786     sysv4 | sysv4.2uw2* | sysv4.3*)
7787       lt_prog_compiler_wl='-Wl,'
7788       lt_prog_compiler_pic='-KPIC'
7789       lt_prog_compiler_static='-Bstatic'
7790       ;;
7791
7792     sysv4*MP*)
7793       if test -d /usr/nec ;then
7794         lt_prog_compiler_pic='-Kconform_pic'
7795         lt_prog_compiler_static='-Bstatic'
7796       fi
7797       ;;
7798
7799     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7800       lt_prog_compiler_wl='-Wl,'
7801       lt_prog_compiler_pic='-KPIC'
7802       lt_prog_compiler_static='-Bstatic'
7803       ;;
7804
7805     unicos*)
7806       lt_prog_compiler_wl='-Wl,'
7807       lt_prog_compiler_can_build_shared=no
7808       ;;
7809
7810     uts4*)
7811       lt_prog_compiler_pic='-pic'
7812       lt_prog_compiler_static='-Bstatic'
7813       ;;
7814
7815     *)
7816       lt_prog_compiler_can_build_shared=no
7817       ;;
7818     esac
7819   fi
7820
7821 case $host_os in
7822   # For platforms which do not support PIC, -DPIC is meaningless:
7823   *djgpp*)
7824     lt_prog_compiler_pic=
7825     ;;
7826   *)
7827     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7828     ;;
7829 esac
7830
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7832 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7833 if ${lt_cv_prog_compiler_pic+:} false; then :
7834   $as_echo_n "(cached) " >&6
7835 else
7836   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7839 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7840 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7841
7842 #
7843 # Check to make sure the PIC flag actually works.
7844 #
7845 if test -n "$lt_prog_compiler_pic"; then
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7847 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7848 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   lt_cv_prog_compiler_pic_works=no
7852    ac_outfile=conftest.$ac_objext
7853    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7855    # Insert the option either (1) after the last *FLAGS variable, or
7856    # (2) before a word containing "conftest.", or (3) at the end.
7857    # Note that $ac_compile itself does not contain backslashes and begins
7858    # with a dollar sign (not a hyphen), so the echo should work correctly.
7859    # The option is referenced via a variable to avoid confusing sed.
7860    lt_compile=`echo "$ac_compile" | $SED \
7861    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863    -e 's:$: $lt_compiler_flag:'`
7864    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7865    (eval "$lt_compile" 2>conftest.err)
7866    ac_status=$?
7867    cat conftest.err >&5
7868    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869    if (exit $ac_status) && test -s "$ac_outfile"; then
7870      # The compiler can only warn and ignore the option if not recognized
7871      # So say no if there are warnings other than the usual output.
7872      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7873      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875        lt_cv_prog_compiler_pic_works=yes
7876      fi
7877    fi
7878    $RM conftest*
7879
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7882 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7883
7884 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7885     case $lt_prog_compiler_pic in
7886      "" | " "*) ;;
7887      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7888      esac
7889 else
7890     lt_prog_compiler_pic=
7891      lt_prog_compiler_can_build_shared=no
7892 fi
7893
7894 fi
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906 #
7907 # Check to make sure the static flag actually works.
7908 #
7909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7911 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7912 if ${lt_cv_prog_compiler_static_works+:} false; then :
7913   $as_echo_n "(cached) " >&6
7914 else
7915   lt_cv_prog_compiler_static_works=no
7916    save_LDFLAGS="$LDFLAGS"
7917    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7918    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7919    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7920      # The linker can only warn and ignore the option if not recognized
7921      # So say no if there are warnings
7922      if test -s conftest.err; then
7923        # Append any errors to the config.log.
7924        cat conftest.err 1>&5
7925        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7926        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927        if diff conftest.exp conftest.er2 >/dev/null; then
7928          lt_cv_prog_compiler_static_works=yes
7929        fi
7930      else
7931        lt_cv_prog_compiler_static_works=yes
7932      fi
7933    fi
7934    $RM -r conftest*
7935    LDFLAGS="$save_LDFLAGS"
7936
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7939 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7940
7941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7942     :
7943 else
7944     lt_prog_compiler_static=
7945 fi
7946
7947
7948
7949
7950
7951
7952
7953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7955 if ${lt_cv_prog_compiler_c_o+:} false; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   lt_cv_prog_compiler_c_o=no
7959    $RM -r conftest 2>/dev/null
7960    mkdir conftest
7961    cd conftest
7962    mkdir out
7963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7964
7965    lt_compiler_flag="-o out/conftest2.$ac_objext"
7966    # Insert the option either (1) after the last *FLAGS variable, or
7967    # (2) before a word containing "conftest.", or (3) at the end.
7968    # Note that $ac_compile itself does not contain backslashes and begins
7969    # with a dollar sign (not a hyphen), so the echo should work correctly.
7970    lt_compile=`echo "$ac_compile" | $SED \
7971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973    -e 's:$: $lt_compiler_flag:'`
7974    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7975    (eval "$lt_compile" 2>out/conftest.err)
7976    ac_status=$?
7977    cat out/conftest.err >&5
7978    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7980    then
7981      # The compiler can only warn and ignore the option if not recognized
7982      # So say no if there are warnings
7983      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7984      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7985      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7986        lt_cv_prog_compiler_c_o=yes
7987      fi
7988    fi
7989    chmod u+w . 2>&5
7990    $RM conftest*
7991    # SGI C++ compiler will create directory out/ii_files/ for
7992    # template instantiation
7993    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7994    $RM out/* && rmdir out
7995    cd ..
7996    $RM -r conftest
7997    $RM conftest*
7998
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8002
8003
8004
8005
8006
8007
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8010 if ${lt_cv_prog_compiler_c_o+:} false; then :
8011   $as_echo_n "(cached) " >&6
8012 else
8013   lt_cv_prog_compiler_c_o=no
8014    $RM -r conftest 2>/dev/null
8015    mkdir conftest
8016    cd conftest
8017    mkdir out
8018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8019
8020    lt_compiler_flag="-o out/conftest2.$ac_objext"
8021    # Insert the option either (1) after the last *FLAGS variable, or
8022    # (2) before a word containing "conftest.", or (3) at the end.
8023    # Note that $ac_compile itself does not contain backslashes and begins
8024    # with a dollar sign (not a hyphen), so the echo should work correctly.
8025    lt_compile=`echo "$ac_compile" | $SED \
8026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8028    -e 's:$: $lt_compiler_flag:'`
8029    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8030    (eval "$lt_compile" 2>out/conftest.err)
8031    ac_status=$?
8032    cat out/conftest.err >&5
8033    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8035    then
8036      # The compiler can only warn and ignore the option if not recognized
8037      # So say no if there are warnings
8038      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8039      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8040      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8041        lt_cv_prog_compiler_c_o=yes
8042      fi
8043    fi
8044    chmod u+w . 2>&5
8045    $RM conftest*
8046    # SGI C++ compiler will create directory out/ii_files/ for
8047    # template instantiation
8048    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8049    $RM out/* && rmdir out
8050    cd ..
8051    $RM -r conftest
8052    $RM conftest*
8053
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8057
8058
8059
8060
8061 hard_links="nottested"
8062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8063   # do not overwrite the value of need_locks provided by the user
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8065 $as_echo_n "checking if we can lock with hard links... " >&6; }
8066   hard_links=yes
8067   $RM conftest*
8068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8069   touch conftest.a
8070   ln conftest.a conftest.b 2>&5 || hard_links=no
8071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8073 $as_echo "$hard_links" >&6; }
8074   if test "$hard_links" = no; then
8075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8076 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8077     need_locks=warn
8078   fi
8079 else
8080   need_locks=no
8081 fi
8082
8083
8084
8085
8086
8087
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8090
8091   runpath_var=
8092   allow_undefined_flag=
8093   always_export_symbols=no
8094   archive_cmds=
8095   archive_expsym_cmds=
8096   compiler_needs_object=no
8097   enable_shared_with_static_runtimes=no
8098   export_dynamic_flag_spec=
8099   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8100   hardcode_automatic=no
8101   hardcode_direct=no
8102   hardcode_direct_absolute=no
8103   hardcode_libdir_flag_spec=
8104   hardcode_libdir_separator=
8105   hardcode_minus_L=no
8106   hardcode_shlibpath_var=unsupported
8107   inherit_rpath=no
8108   link_all_deplibs=unknown
8109   module_cmds=
8110   module_expsym_cmds=
8111   old_archive_from_new_cmds=
8112   old_archive_from_expsyms_cmds=
8113   thread_safe_flag_spec=
8114   whole_archive_flag_spec=
8115   # include_expsyms should be a list of space-separated symbols to be *always*
8116   # included in the symbol list
8117   include_expsyms=
8118   # exclude_expsyms can be an extended regexp of symbols to exclude
8119   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8120   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8121   # as well as any symbol that contains `d'.
8122   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8123   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8124   # platforms (ab)use it in PIC code, but their linkers get confused if
8125   # the symbol is explicitly referenced.  Since portable code cannot
8126   # rely on this symbol name, it's probably fine to never include it in
8127   # preloaded symbol tables.
8128   # Exclude shared library initialization/finalization symbols.
8129   extract_expsyms_cmds=
8130
8131   case $host_os in
8132   cygwin* | mingw* | pw32* | cegcc*)
8133     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8134     # When not using gcc, we currently assume that we are using
8135     # Microsoft Visual C++.
8136     if test "$GCC" != yes; then
8137       with_gnu_ld=no
8138     fi
8139     ;;
8140   interix*)
8141     # we just hope/assume this is gcc and not c89 (= MSVC++)
8142     with_gnu_ld=yes
8143     ;;
8144   openbsd*)
8145     with_gnu_ld=no
8146     ;;
8147   linux* | k*bsd*-gnu | gnu*)
8148     link_all_deplibs=no
8149     ;;
8150   esac
8151
8152   ld_shlibs=yes
8153
8154   # On some targets, GNU ld is compatible enough with the native linker
8155   # that we're better off using the native interface for both.
8156   lt_use_gnu_ld_interface=no
8157   if test "$with_gnu_ld" = yes; then
8158     case $host_os in
8159       aix*)
8160         # The AIX port of GNU ld has always aspired to compatibility
8161         # with the native linker.  However, as the warning in the GNU ld
8162         # block says, versions before 2.19.5* couldn't really create working
8163         # shared libraries, regardless of the interface used.
8164         case `$LD -v 2>&1` in
8165           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8166           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8167           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8168           *)
8169             lt_use_gnu_ld_interface=yes
8170             ;;
8171         esac
8172         ;;
8173       *)
8174         lt_use_gnu_ld_interface=yes
8175         ;;
8176     esac
8177   fi
8178
8179   if test "$lt_use_gnu_ld_interface" = yes; then
8180     # If archive_cmds runs LD, not CC, wlarc should be empty
8181     wlarc='${wl}'
8182
8183     # Set some defaults for GNU ld with shared library support. These
8184     # are reset later if shared libraries are not supported. Putting them
8185     # here allows them to be overridden if necessary.
8186     runpath_var=LD_RUN_PATH
8187     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8188     export_dynamic_flag_spec='${wl}--export-dynamic'
8189     # ancient GNU ld didn't support --whole-archive et. al.
8190     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8191       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8192     else
8193       whole_archive_flag_spec=
8194     fi
8195     supports_anon_versioning=no
8196     case `$LD -v 2>&1` in
8197       *GNU\ gold*) supports_anon_versioning=yes ;;
8198       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8199       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8200       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8201       *\ 2.11.*) ;; # other 2.11 versions
8202       *) supports_anon_versioning=yes ;;
8203     esac
8204
8205     # See if GNU ld supports shared libraries.
8206     case $host_os in
8207     aix[3-9]*)
8208       # On AIX/PPC, the GNU linker is very broken
8209       if test "$host_cpu" != ia64; then
8210         ld_shlibs=no
8211         cat <<_LT_EOF 1>&2
8212
8213 *** Warning: the GNU linker, at least up to release 2.19, is reported
8214 *** to be unable to reliably create shared libraries on AIX.
8215 *** Therefore, libtool is disabling shared libraries support.  If you
8216 *** really care for shared libraries, you may want to install binutils
8217 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8218 *** You will then need to restart the configuration process.
8219
8220 _LT_EOF
8221       fi
8222       ;;
8223
8224     amigaos*)
8225       case $host_cpu in
8226       powerpc)
8227             # see comment about AmigaOS4 .so support
8228             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229             archive_expsym_cmds=''
8230         ;;
8231       m68k)
8232             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)'
8233             hardcode_libdir_flag_spec='-L$libdir'
8234             hardcode_minus_L=yes
8235         ;;
8236       esac
8237       ;;
8238
8239     beos*)
8240       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8241         allow_undefined_flag=unsupported
8242         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8243         # support --undefined.  This deserves some investigation.  FIXME
8244         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245       else
8246         ld_shlibs=no
8247       fi
8248       ;;
8249
8250     cygwin* | mingw* | pw32* | cegcc*)
8251       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8252       # as there is no search path for DLLs.
8253       hardcode_libdir_flag_spec='-L$libdir'
8254       export_dynamic_flag_spec='${wl}--export-all-symbols'
8255       allow_undefined_flag=unsupported
8256       always_export_symbols=no
8257       enable_shared_with_static_runtimes=yes
8258       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8259       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8260
8261       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8262         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8263         # If the export-symbols file already is a .def file (1st line
8264         # is EXPORTS), use it as is; otherwise, prepend...
8265         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8266           cp $export_symbols $output_objdir/$soname.def;
8267         else
8268           echo EXPORTS > $output_objdir/$soname.def;
8269           cat $export_symbols >> $output_objdir/$soname.def;
8270         fi~
8271         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8272       else
8273         ld_shlibs=no
8274       fi
8275       ;;
8276
8277     haiku*)
8278       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8279       link_all_deplibs=yes
8280       ;;
8281
8282     interix[3-9]*)
8283       hardcode_direct=no
8284       hardcode_shlibpath_var=no
8285       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286       export_dynamic_flag_spec='${wl}-E'
8287       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8288       # Instead, shared libraries are loaded at an image base (0x10000000 by
8289       # default) and relocated if they conflict, which is a slow very memory
8290       # consuming and fragmenting process.  To avoid this, we pick a random,
8291       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8292       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8293       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8294       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'
8295       ;;
8296
8297     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8298       tmp_diet=no
8299       if test "$host_os" = linux-dietlibc; then
8300         case $cc_basename in
8301           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8302         esac
8303       fi
8304       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8305          && test "$tmp_diet" = no
8306       then
8307         tmp_addflag=' $pic_flag'
8308         tmp_sharedflag='-shared'
8309         case $cc_basename,$host_cpu in
8310         pgcc*)                          # Portland Group C compiler
8311           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8312           tmp_addflag=' $pic_flag'
8313           ;;
8314         pgf77* | pgf90* | pgf95* | pgfortran*)
8315                                         # Portland Group f77 and f90 compilers
8316           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8317           tmp_addflag=' $pic_flag -Mnomain' ;;
8318         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8319           tmp_addflag=' -i_dynamic' ;;
8320         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8321           tmp_addflag=' -i_dynamic -nofor_main' ;;
8322         ifc* | ifort*)                  # Intel Fortran compiler
8323           tmp_addflag=' -nofor_main' ;;
8324         lf95*)                          # Lahey Fortran 8.1
8325           whole_archive_flag_spec=
8326           tmp_sharedflag='--shared' ;;
8327         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8328           tmp_sharedflag='-qmkshrobj'
8329           tmp_addflag= ;;
8330         nvcc*)  # Cuda Compiler Driver 2.2
8331           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8332           compiler_needs_object=yes
8333           ;;
8334         esac
8335         case `$CC -V 2>&1 | sed 5q` in
8336         *Sun\ C*)                       # Sun C 5.9
8337           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8338           compiler_needs_object=yes
8339           tmp_sharedflag='-G' ;;
8340         *Sun\ F*)                       # Sun Fortran 8.3
8341           tmp_sharedflag='-G' ;;
8342         esac
8343         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344
8345         if test "x$supports_anon_versioning" = xyes; then
8346           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8347             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8348             echo "local: *; };" >> $output_objdir/$libname.ver~
8349             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8350         fi
8351
8352         case $cc_basename in
8353         xlf* | bgf* | bgxlf* | mpixlf*)
8354           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8355           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8356           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8357           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8358           if test "x$supports_anon_versioning" = xyes; then
8359             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8360               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8361               echo "local: *; };" >> $output_objdir/$libname.ver~
8362               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8363           fi
8364           ;;
8365         esac
8366       else
8367         ld_shlibs=no
8368       fi
8369       ;;
8370
8371     netbsd* | netbsdelf*-gnu)
8372       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8373         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8374         wlarc=
8375       else
8376         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8377         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8378       fi
8379       ;;
8380
8381     solaris*)
8382       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8383         ld_shlibs=no
8384         cat <<_LT_EOF 1>&2
8385
8386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8387 *** create shared libraries on Solaris systems.  Therefore, libtool
8388 *** is disabling shared libraries support.  We urge you to upgrade GNU
8389 *** binutils to release 2.9.1 or newer.  Another option is to modify
8390 *** your PATH or compiler configuration so that the native linker is
8391 *** used, and then restart.
8392
8393 _LT_EOF
8394       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8395         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8396         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8397       else
8398         ld_shlibs=no
8399       fi
8400       ;;
8401
8402     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8403       case `$LD -v 2>&1` in
8404         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8405         ld_shlibs=no
8406         cat <<_LT_EOF 1>&2
8407
8408 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8409 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8410 *** is disabling shared libraries support.  We urge you to upgrade GNU
8411 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8412 *** your PATH or compiler configuration so that the native linker is
8413 *** used, and then restart.
8414
8415 _LT_EOF
8416         ;;
8417         *)
8418           # For security reasons, it is highly recommended that you always
8419           # use absolute paths for naming shared libraries, and exclude the
8420           # DT_RUNPATH tag from executables and libraries.  But doing so
8421           # requires that you compile everything twice, which is a pain.
8422           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8423             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8425             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8426           else
8427             ld_shlibs=no
8428           fi
8429         ;;
8430       esac
8431       ;;
8432
8433     sunos4*)
8434       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8435       wlarc=
8436       hardcode_direct=yes
8437       hardcode_shlibpath_var=no
8438       ;;
8439
8440     *)
8441       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8442         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8443         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8444       else
8445         ld_shlibs=no
8446       fi
8447       ;;
8448     esac
8449
8450     if test "$ld_shlibs" = no; then
8451       runpath_var=
8452       hardcode_libdir_flag_spec=
8453       export_dynamic_flag_spec=
8454       whole_archive_flag_spec=
8455     fi
8456   else
8457     # PORTME fill in a description of your system's linker (not GNU ld)
8458     case $host_os in
8459     aix3*)
8460       allow_undefined_flag=unsupported
8461       always_export_symbols=yes
8462       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'
8463       # Note: this linker hardcodes the directories in LIBPATH if there
8464       # are no directories specified by -L.
8465       hardcode_minus_L=yes
8466       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8467         # Neither direct hardcoding nor static linking is supported with a
8468         # broken collect2.
8469         hardcode_direct=unsupported
8470       fi
8471       ;;
8472
8473     aix[4-9]*)
8474       if test "$host_cpu" = ia64; then
8475         # On IA64, the linker does run time linking by default, so we don't
8476         # have to do anything special.
8477         aix_use_runtimelinking=no
8478         exp_sym_flag='-Bexport'
8479         no_entry_flag=""
8480       else
8481         # If we're using GNU nm, then we don't want the "-C" option.
8482         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8483         # Also, AIX nm treats weak defined symbols like other global
8484         # defined symbols, whereas GNU nm marks them as "W".
8485         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8486           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8487         else
8488           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'
8489         fi
8490         aix_use_runtimelinking=no
8491
8492         # Test if we are trying to use run time linking or normal
8493         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8494         # need to do runtime linking.
8495         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8496           for ld_flag in $LDFLAGS; do
8497           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8498             aix_use_runtimelinking=yes
8499             break
8500           fi
8501           done
8502           ;;
8503         esac
8504
8505         exp_sym_flag='-bexport'
8506         no_entry_flag='-bnoentry'
8507       fi
8508
8509       # When large executables or shared objects are built, AIX ld can
8510       # have problems creating the table of contents.  If linking a library
8511       # or program results in "error TOC overflow" add -mminimal-toc to
8512       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8513       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8514
8515       archive_cmds=''
8516       hardcode_direct=yes
8517       hardcode_direct_absolute=yes
8518       hardcode_libdir_separator=':'
8519       link_all_deplibs=yes
8520       file_list_spec='${wl}-f,'
8521
8522       if test "$GCC" = yes; then
8523         case $host_os in aix4.[012]|aix4.[012].*)
8524         # We only want to do this on AIX 4.2 and lower, the check
8525         # below for broken collect2 doesn't work under 4.3+
8526           collect2name=`${CC} -print-prog-name=collect2`
8527           if test -f "$collect2name" &&
8528            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8529           then
8530           # We have reworked collect2
8531           :
8532           else
8533           # We have old collect2
8534           hardcode_direct=unsupported
8535           # It fails to find uninstalled libraries when the uninstalled
8536           # path is not listed in the libpath.  Setting hardcode_minus_L
8537           # to unsupported forces relinking
8538           hardcode_minus_L=yes
8539           hardcode_libdir_flag_spec='-L$libdir'
8540           hardcode_libdir_separator=
8541           fi
8542           ;;
8543         esac
8544         shared_flag='-shared'
8545         if test "$aix_use_runtimelinking" = yes; then
8546           shared_flag="$shared_flag "'${wl}-G'
8547         fi
8548         link_all_deplibs=no
8549       else
8550         # not using gcc
8551         if test "$host_cpu" = ia64; then
8552         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8553         # chokes on -Wl,-G. The following line is correct:
8554           shared_flag='-G'
8555         else
8556           if test "$aix_use_runtimelinking" = yes; then
8557             shared_flag='${wl}-G'
8558           else
8559             shared_flag='${wl}-bM:SRE'
8560           fi
8561         fi
8562       fi
8563
8564       export_dynamic_flag_spec='${wl}-bexpall'
8565       # It seems that -bexpall does not export symbols beginning with
8566       # underscore (_), so it is better to generate a list of symbols to export.
8567       always_export_symbols=yes
8568       if test "$aix_use_runtimelinking" = yes; then
8569         # Warning - without using the other runtime loading flags (-brtl),
8570         # -berok will link without error, but may produce a broken library.
8571         allow_undefined_flag='-berok'
8572         # Determine the default libpath from the value encoded in an
8573         # empty executable.
8574         if test "${lt_cv_aix_libpath+set}" = set; then
8575   aix_libpath=$lt_cv_aix_libpath
8576 else
8577   if ${lt_cv_aix_libpath_+:} false; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h.  */
8582
8583 int
8584 main ()
8585 {
8586
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 if ac_fn_c_try_link "$LINENO"; then :
8592
8593   lt_aix_libpath_sed='
8594       /Import File Strings/,/^$/ {
8595           /^0/ {
8596               s/^0  *\([^ ]*\) *$/\1/
8597               p
8598           }
8599       }'
8600   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8601   # Check for a 64-bit object if we didn't find anything.
8602   if test -z "$lt_cv_aix_libpath_"; then
8603     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8604   fi
8605 fi
8606 rm -f core conftest.err conftest.$ac_objext \
8607     conftest$ac_exeext conftest.$ac_ext
8608   if test -z "$lt_cv_aix_libpath_"; then
8609     lt_cv_aix_libpath_="/usr/lib:/lib"
8610   fi
8611
8612 fi
8613
8614   aix_libpath=$lt_cv_aix_libpath_
8615 fi
8616
8617         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8618         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8619       else
8620         if test "$host_cpu" = ia64; then
8621           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8622           allow_undefined_flag="-z nodefs"
8623           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"
8624         else
8625          # Determine the default libpath from the value encoded in an
8626          # empty executable.
8627          if test "${lt_cv_aix_libpath+set}" = set; then
8628   aix_libpath=$lt_cv_aix_libpath
8629 else
8630   if ${lt_cv_aix_libpath_+:} false; then :
8631   $as_echo_n "(cached) " >&6
8632 else
8633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h.  */
8635
8636 int
8637 main ()
8638 {
8639
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 if ac_fn_c_try_link "$LINENO"; then :
8645
8646   lt_aix_libpath_sed='
8647       /Import File Strings/,/^$/ {
8648           /^0/ {
8649               s/^0  *\([^ ]*\) *$/\1/
8650               p
8651           }
8652       }'
8653   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8654   # Check for a 64-bit object if we didn't find anything.
8655   if test -z "$lt_cv_aix_libpath_"; then
8656     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8657   fi
8658 fi
8659 rm -f core conftest.err conftest.$ac_objext \
8660     conftest$ac_exeext conftest.$ac_ext
8661   if test -z "$lt_cv_aix_libpath_"; then
8662     lt_cv_aix_libpath_="/usr/lib:/lib"
8663   fi
8664
8665 fi
8666
8667   aix_libpath=$lt_cv_aix_libpath_
8668 fi
8669
8670          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8671           # Warning - without using the other run time loading flags,
8672           # -berok will link without error, but may produce a broken library.
8673           no_undefined_flag=' ${wl}-bernotok'
8674           allow_undefined_flag=' ${wl}-berok'
8675           if test "$with_gnu_ld" = yes; then
8676             # We only use this code for GNU lds that support --whole-archive.
8677             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8678           else
8679             # Exported symbols can be pulled into shared objects from archives
8680             whole_archive_flag_spec='$convenience'
8681           fi
8682           archive_cmds_need_lc=yes
8683           # This is similar to how AIX traditionally builds its shared libraries.
8684           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'
8685         fi
8686       fi
8687       ;;
8688
8689     amigaos*)
8690       case $host_cpu in
8691       powerpc)
8692             # see comment about AmigaOS4 .so support
8693             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694             archive_expsym_cmds=''
8695         ;;
8696       m68k)
8697             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)'
8698             hardcode_libdir_flag_spec='-L$libdir'
8699             hardcode_minus_L=yes
8700         ;;
8701       esac
8702       ;;
8703
8704     bsdi[45]*)
8705       export_dynamic_flag_spec=-rdynamic
8706       ;;
8707
8708     cygwin* | mingw* | pw32* | cegcc*)
8709       # When not using gcc, we currently assume that we are using
8710       # Microsoft Visual C++.
8711       # hardcode_libdir_flag_spec is actually meaningless, as there is
8712       # no search path for DLLs.
8713       case $cc_basename in
8714       cl*)
8715         # Native MSVC
8716         hardcode_libdir_flag_spec=' '
8717         allow_undefined_flag=unsupported
8718         always_export_symbols=yes
8719         file_list_spec='@'
8720         # Tell ltmain to make .lib files, not .a files.
8721         libext=lib
8722         # Tell ltmain to make .dll files, not .so files.
8723         shrext_cmds=".dll"
8724         # FIXME: Setting linknames here is a bad hack.
8725         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8726         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8727             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8728           else
8729             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8730           fi~
8731           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8732           linknames='
8733         # The linker will not automatically build a static lib if we build a DLL.
8734         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8735         enable_shared_with_static_runtimes=yes
8736         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8737         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8738         # Don't use ranlib
8739         old_postinstall_cmds='chmod 644 $oldlib'
8740         postlink_cmds='lt_outputfile="@OUTPUT@"~
8741           lt_tool_outputfile="@TOOL_OUTPUT@"~
8742           case $lt_outputfile in
8743             *.exe|*.EXE) ;;
8744             *)
8745               lt_outputfile="$lt_outputfile.exe"
8746               lt_tool_outputfile="$lt_tool_outputfile.exe"
8747               ;;
8748           esac~
8749           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8750             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8751             $RM "$lt_outputfile.manifest";
8752           fi'
8753         ;;
8754       *)
8755         # Assume MSVC wrapper
8756         hardcode_libdir_flag_spec=' '
8757         allow_undefined_flag=unsupported
8758         # Tell ltmain to make .lib files, not .a files.
8759         libext=lib
8760         # Tell ltmain to make .dll files, not .so files.
8761         shrext_cmds=".dll"
8762         # FIXME: Setting linknames here is a bad hack.
8763         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8764         # The linker will automatically build a .lib file if we build a DLL.
8765         old_archive_from_new_cmds='true'
8766         # FIXME: Should let the user specify the lib program.
8767         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8768         enable_shared_with_static_runtimes=yes
8769         ;;
8770       esac
8771       ;;
8772
8773     darwin* | rhapsody*)
8774
8775
8776   archive_cmds_need_lc=no
8777   hardcode_direct=no
8778   hardcode_automatic=yes
8779   hardcode_shlibpath_var=unsupported
8780   if test "$lt_cv_ld_force_load" = "yes"; then
8781     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8782
8783   else
8784     whole_archive_flag_spec=''
8785   fi
8786   link_all_deplibs=yes
8787   allow_undefined_flag="$_lt_dar_allow_undefined"
8788   case $cc_basename in
8789      ifort*) _lt_dar_can_shared=yes ;;
8790      *) _lt_dar_can_shared=$GCC ;;
8791   esac
8792   if test "$_lt_dar_can_shared" = "yes"; then
8793     output_verbose_link_cmd=func_echo_all
8794     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8795     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8796     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}"
8797     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}"
8798
8799   else
8800   ld_shlibs=no
8801   fi
8802
8803       ;;
8804
8805     dgux*)
8806       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807       hardcode_libdir_flag_spec='-L$libdir'
8808       hardcode_shlibpath_var=no
8809       ;;
8810
8811     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8812     # support.  Future versions do this automatically, but an explicit c++rt0.o
8813     # does not break anything, and helps significantly (at the cost of a little
8814     # extra space).
8815     freebsd2.2*)
8816       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8817       hardcode_libdir_flag_spec='-R$libdir'
8818       hardcode_direct=yes
8819       hardcode_shlibpath_var=no
8820       ;;
8821
8822     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8823     freebsd2.*)
8824       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8825       hardcode_direct=yes
8826       hardcode_minus_L=yes
8827       hardcode_shlibpath_var=no
8828       ;;
8829
8830     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8831     freebsd* | dragonfly*)
8832       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8833       hardcode_libdir_flag_spec='-R$libdir'
8834       hardcode_direct=yes
8835       hardcode_shlibpath_var=no
8836       ;;
8837
8838     hpux9*)
8839       if test "$GCC" = yes; then
8840         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8841       else
8842         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'
8843       fi
8844       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8845       hardcode_libdir_separator=:
8846       hardcode_direct=yes
8847
8848       # hardcode_minus_L: Not really in the search PATH,
8849       # but as the default location of the library.
8850       hardcode_minus_L=yes
8851       export_dynamic_flag_spec='${wl}-E'
8852       ;;
8853
8854     hpux10*)
8855       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8856         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8857       else
8858         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8859       fi
8860       if test "$with_gnu_ld" = no; then
8861         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8862         hardcode_libdir_separator=:
8863         hardcode_direct=yes
8864         hardcode_direct_absolute=yes
8865         export_dynamic_flag_spec='${wl}-E'
8866         # hardcode_minus_L: Not really in the search PATH,
8867         # but as the default location of the library.
8868         hardcode_minus_L=yes
8869       fi
8870       ;;
8871
8872     hpux11*)
8873       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8874         case $host_cpu in
8875         hppa*64*)
8876           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877           ;;
8878         ia64*)
8879           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8880           ;;
8881         *)
8882           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8883           ;;
8884         esac
8885       else
8886         case $host_cpu in
8887         hppa*64*)
8888           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8889           ;;
8890         ia64*)
8891           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8892           ;;
8893         *)
8894
8895           # Older versions of the 11.00 compiler do not understand -b yet
8896           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8897           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8898 $as_echo_n "checking if $CC understands -b... " >&6; }
8899 if ${lt_cv_prog_compiler__b+:} false; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   lt_cv_prog_compiler__b=no
8903    save_LDFLAGS="$LDFLAGS"
8904    LDFLAGS="$LDFLAGS -b"
8905    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8906    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8907      # The linker can only warn and ignore the option if not recognized
8908      # So say no if there are warnings
8909      if test -s conftest.err; then
8910        # Append any errors to the config.log.
8911        cat conftest.err 1>&5
8912        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8913        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8914        if diff conftest.exp conftest.er2 >/dev/null; then
8915          lt_cv_prog_compiler__b=yes
8916        fi
8917      else
8918        lt_cv_prog_compiler__b=yes
8919      fi
8920    fi
8921    $RM -r conftest*
8922    LDFLAGS="$save_LDFLAGS"
8923
8924 fi
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8926 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8927
8928 if test x"$lt_cv_prog_compiler__b" = xyes; then
8929     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8930 else
8931     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8932 fi
8933
8934           ;;
8935         esac
8936       fi
8937       if test "$with_gnu_ld" = no; then
8938         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8939         hardcode_libdir_separator=:
8940
8941         case $host_cpu in
8942         hppa*64*|ia64*)
8943           hardcode_direct=no
8944           hardcode_shlibpath_var=no
8945           ;;
8946         *)
8947           hardcode_direct=yes
8948           hardcode_direct_absolute=yes
8949           export_dynamic_flag_spec='${wl}-E'
8950
8951           # hardcode_minus_L: Not really in the search PATH,
8952           # but as the default location of the library.
8953           hardcode_minus_L=yes
8954           ;;
8955         esac
8956       fi
8957       ;;
8958
8959     irix5* | irix6* | nonstopux*)
8960       if test "$GCC" = yes; then
8961         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8962         # Try to use the -exported_symbol ld option, if it does not
8963         # work, assume that -exports_file does not work either and
8964         # implicitly export all symbols.
8965         # This should be the same for all languages, so no per-tag cache variable.
8966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8967 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8968 if ${lt_cv_irix_exported_symbol+:} false; then :
8969   $as_echo_n "(cached) " >&6
8970 else
8971   save_LDFLAGS="$LDFLAGS"
8972            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8973            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h.  */
8975 int foo (void) { return 0; }
8976 _ACEOF
8977 if ac_fn_c_try_link "$LINENO"; then :
8978   lt_cv_irix_exported_symbol=yes
8979 else
8980   lt_cv_irix_exported_symbol=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext \
8983     conftest$ac_exeext conftest.$ac_ext
8984            LDFLAGS="$save_LDFLAGS"
8985 fi
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8987 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8988         if test "$lt_cv_irix_exported_symbol" = yes; then
8989           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8990         fi
8991       else
8992         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8993         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8994       fi
8995       archive_cmds_need_lc='no'
8996       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997       hardcode_libdir_separator=:
8998       inherit_rpath=yes
8999       link_all_deplibs=yes
9000       ;;
9001
9002     netbsd* | netbsdelf*-gnu)
9003       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9004         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9005       else
9006         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9007       fi
9008       hardcode_libdir_flag_spec='-R$libdir'
9009       hardcode_direct=yes
9010       hardcode_shlibpath_var=no
9011       ;;
9012
9013     newsos6)
9014       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9015       hardcode_direct=yes
9016       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017       hardcode_libdir_separator=:
9018       hardcode_shlibpath_var=no
9019       ;;
9020
9021     *nto* | *qnx*)
9022       ;;
9023
9024     openbsd*)
9025       if test -f /usr/libexec/ld.so; then
9026         hardcode_direct=yes
9027         hardcode_shlibpath_var=no
9028         hardcode_direct_absolute=yes
9029         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9030           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9031           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9032           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9033           export_dynamic_flag_spec='${wl}-E'
9034         else
9035           case $host_os in
9036            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9037              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9038              hardcode_libdir_flag_spec='-R$libdir'
9039              ;;
9040            *)
9041              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9042              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9043              ;;
9044           esac
9045         fi
9046       else
9047         ld_shlibs=no
9048       fi
9049       ;;
9050
9051     os2*)
9052       hardcode_libdir_flag_spec='-L$libdir'
9053       hardcode_minus_L=yes
9054       allow_undefined_flag=unsupported
9055       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'
9056       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9057       ;;
9058
9059     osf3*)
9060       if test "$GCC" = yes; then
9061         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9062         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9063       else
9064         allow_undefined_flag=' -expect_unresolved \*'
9065         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9066       fi
9067       archive_cmds_need_lc='no'
9068       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069       hardcode_libdir_separator=:
9070       ;;
9071
9072     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9073       if test "$GCC" = yes; then
9074         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9075         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9076         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9077       else
9078         allow_undefined_flag=' -expect_unresolved \*'
9079         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9080         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~
9081         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9082
9083         # Both c and cxx compiler support -rpath directly
9084         hardcode_libdir_flag_spec='-rpath $libdir'
9085       fi
9086       archive_cmds_need_lc='no'
9087       hardcode_libdir_separator=:
9088       ;;
9089
9090     solaris*)
9091       no_undefined_flag=' -z defs'
9092       if test "$GCC" = yes; then
9093         wlarc='${wl}'
9094         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9095         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9096           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9097       else
9098         case `$CC -V 2>&1` in
9099         *"Compilers 5.0"*)
9100           wlarc=''
9101           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9103           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9104           ;;
9105         *)
9106           wlarc='${wl}'
9107           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9108           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9109           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9110           ;;
9111         esac
9112       fi
9113       hardcode_libdir_flag_spec='-R$libdir'
9114       hardcode_shlibpath_var=no
9115       case $host_os in
9116       solaris2.[0-5] | solaris2.[0-5].*) ;;
9117       *)
9118         # The compiler driver will combine and reorder linker options,
9119         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9120         # but is careful enough not to reorder.
9121         # Supported since Solaris 2.6 (maybe 2.5.1?)
9122         if test "$GCC" = yes; then
9123           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9124         else
9125           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9126         fi
9127         ;;
9128       esac
9129       link_all_deplibs=yes
9130       ;;
9131
9132     sunos4*)
9133       if test "x$host_vendor" = xsequent; then
9134         # Use $CC to link under sequent, because it throws in some extra .o
9135         # files that make .init and .fini sections work.
9136         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9137       else
9138         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9139       fi
9140       hardcode_libdir_flag_spec='-L$libdir'
9141       hardcode_direct=yes
9142       hardcode_minus_L=yes
9143       hardcode_shlibpath_var=no
9144       ;;
9145
9146     sysv4)
9147       case $host_vendor in
9148         sni)
9149           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150           hardcode_direct=yes # is this really true???
9151         ;;
9152         siemens)
9153           ## LD is ld it makes a PLAMLIB
9154           ## CC just makes a GrossModule.
9155           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9156           reload_cmds='$CC -r -o $output$reload_objs'
9157           hardcode_direct=no
9158         ;;
9159         motorola)
9160           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9162         ;;
9163       esac
9164       runpath_var='LD_RUN_PATH'
9165       hardcode_shlibpath_var=no
9166       ;;
9167
9168     sysv4.3*)
9169       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9170       hardcode_shlibpath_var=no
9171       export_dynamic_flag_spec='-Bexport'
9172       ;;
9173
9174     sysv4*MP*)
9175       if test -d /usr/nec; then
9176         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177         hardcode_shlibpath_var=no
9178         runpath_var=LD_RUN_PATH
9179         hardcode_runpath_var=yes
9180         ld_shlibs=yes
9181       fi
9182       ;;
9183
9184     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9185       no_undefined_flag='${wl}-z,text'
9186       archive_cmds_need_lc=no
9187       hardcode_shlibpath_var=no
9188       runpath_var='LD_RUN_PATH'
9189
9190       if test "$GCC" = yes; then
9191         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9192         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193       else
9194         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9195         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9196       fi
9197       ;;
9198
9199     sysv5* | sco3.2v5* | sco5v6*)
9200       # Note: We can NOT use -z defs as we might desire, because we do not
9201       # link with -lc, and that would cause any symbols used from libc to
9202       # always be unresolved, which means just about no library would
9203       # ever link correctly.  If we're not using GNU ld we use -z text
9204       # though, which does catch some bad symbols but isn't as heavy-handed
9205       # as -z defs.
9206       no_undefined_flag='${wl}-z,text'
9207       allow_undefined_flag='${wl}-z,nodefs'
9208       archive_cmds_need_lc=no
9209       hardcode_shlibpath_var=no
9210       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9211       hardcode_libdir_separator=':'
9212       link_all_deplibs=yes
9213       export_dynamic_flag_spec='${wl}-Bexport'
9214       runpath_var='LD_RUN_PATH'
9215
9216       if test "$GCC" = yes; then
9217         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9218         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9219       else
9220         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9221         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9222       fi
9223       ;;
9224
9225     uts4*)
9226       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9227       hardcode_libdir_flag_spec='-L$libdir'
9228       hardcode_shlibpath_var=no
9229       ;;
9230
9231     *)
9232       ld_shlibs=no
9233       ;;
9234     esac
9235
9236     if test x$host_vendor = xsni; then
9237       case $host in
9238       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9239         export_dynamic_flag_spec='${wl}-Blargedynsym'
9240         ;;
9241       esac
9242     fi
9243   fi
9244
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9246 $as_echo "$ld_shlibs" >&6; }
9247 test "$ld_shlibs" = no && can_build_shared=no
9248
9249 with_gnu_ld=$with_gnu_ld
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265 #
9266 # Do we need to explicitly link libc?
9267 #
9268 case "x$archive_cmds_need_lc" in
9269 x|xyes)
9270   # Assume -lc should be added
9271   archive_cmds_need_lc=yes
9272
9273   if test "$enable_shared" = yes && test "$GCC" = yes; then
9274     case $archive_cmds in
9275     *'~'*)
9276       # FIXME: we may have to deal with multi-command sequences.
9277       ;;
9278     '$CC '*)
9279       # Test whether the compiler implicitly links with -lc since on some
9280       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9281       # to ld, don't add -lc before -lgcc.
9282       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9283 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9284 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   $RM conftest*
9288         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9289
9290         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9291   (eval $ac_compile) 2>&5
9292   ac_status=$?
9293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9294   test $ac_status = 0; } 2>conftest.err; then
9295           soname=conftest
9296           lib=conftest
9297           libobjs=conftest.$ac_objext
9298           deplibs=
9299           wl=$lt_prog_compiler_wl
9300           pic_flag=$lt_prog_compiler_pic
9301           compiler_flags=-v
9302           linker_flags=-v
9303           verstring=
9304           output_objdir=.
9305           libname=conftest
9306           lt_save_allow_undefined_flag=$allow_undefined_flag
9307           allow_undefined_flag=
9308           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9309   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9310   ac_status=$?
9311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9312   test $ac_status = 0; }
9313           then
9314             lt_cv_archive_cmds_need_lc=no
9315           else
9316             lt_cv_archive_cmds_need_lc=yes
9317           fi
9318           allow_undefined_flag=$lt_save_allow_undefined_flag
9319         else
9320           cat conftest.err 1>&5
9321         fi
9322         $RM conftest*
9323
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9326 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9327       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9328       ;;
9329     esac
9330   fi
9331   ;;
9332 esac
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9486 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9487
9488 if test "$GCC" = yes; then
9489   case $host_os in
9490     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9491     *) lt_awk_arg="/^libraries:/" ;;
9492   esac
9493   case $host_os in
9494     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9495     *) lt_sed_strip_eq="s,=/,/,g" ;;
9496   esac
9497   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9498   case $lt_search_path_spec in
9499   *\;*)
9500     # if the path contains ";" then we assume it to be the separator
9501     # otherwise default to the standard path separator (i.e. ":") - it is
9502     # assumed that no part of a normal pathname contains ";" but that should
9503     # okay in the real world where ";" in dirpaths is itself problematic.
9504     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9505     ;;
9506   *)
9507     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9508     ;;
9509   esac
9510   # Ok, now we have the path, separated by spaces, we can step through it
9511   # and add multilib dir if necessary.
9512   lt_tmp_lt_search_path_spec=
9513   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9514   for lt_sys_path in $lt_search_path_spec; do
9515     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9516       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9517     else
9518       test -d "$lt_sys_path" && \
9519         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9520     fi
9521   done
9522   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9523 BEGIN {RS=" "; FS="/|\n";} {
9524   lt_foo="";
9525   lt_count=0;
9526   for (lt_i = NF; lt_i > 0; lt_i--) {
9527     if ($lt_i != "" && $lt_i != ".") {
9528       if ($lt_i == "..") {
9529         lt_count++;
9530       } else {
9531         if (lt_count == 0) {
9532           lt_foo="/" $lt_i lt_foo;
9533         } else {
9534           lt_count--;
9535         }
9536       }
9537     }
9538   }
9539   if (lt_foo != "") { lt_freq[lt_foo]++; }
9540   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9541 }'`
9542   # AWK program above erroneously prepends '/' to C:/dos/paths
9543   # for these hosts.
9544   case $host_os in
9545     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9546       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9547   esac
9548   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9549 else
9550   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9551 fi
9552 library_names_spec=
9553 libname_spec='lib$name'
9554 soname_spec=
9555 shrext_cmds=".so"
9556 postinstall_cmds=
9557 postuninstall_cmds=
9558 finish_cmds=
9559 finish_eval=
9560 shlibpath_var=
9561 shlibpath_overrides_runpath=unknown
9562 version_type=none
9563 dynamic_linker="$host_os ld.so"
9564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9565 need_lib_prefix=unknown
9566 hardcode_into_libs=no
9567
9568 # when you set need_version to no, make sure it does not cause -set_version
9569 # flags to be left without arguments
9570 need_version=unknown
9571
9572 case $host_os in
9573 aix3*)
9574   version_type=linux # correct to gnu/linux during the next big refactor
9575   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9576   shlibpath_var=LIBPATH
9577
9578   # AIX 3 has no versioning support, so we append a major version to the name.
9579   soname_spec='${libname}${release}${shared_ext}$major'
9580   ;;
9581
9582 aix[4-9]*)
9583   version_type=linux # correct to gnu/linux during the next big refactor
9584   need_lib_prefix=no
9585   need_version=no
9586   hardcode_into_libs=yes
9587   if test "$host_cpu" = ia64; then
9588     # AIX 5 supports IA64
9589     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9590     shlibpath_var=LD_LIBRARY_PATH
9591   else
9592     # With GCC up to 2.95.x, collect2 would create an import file
9593     # for dependence libraries.  The import file would start with
9594     # the line `#! .'.  This would cause the generated library to
9595     # depend on `.', always an invalid library.  This was fixed in
9596     # development snapshots of GCC prior to 3.0.
9597     case $host_os in
9598       aix4 | aix4.[01] | aix4.[01].*)
9599       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9600            echo ' yes '
9601            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9602         :
9603       else
9604         can_build_shared=no
9605       fi
9606       ;;
9607     esac
9608     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9609     # soname into executable. Probably we can add versioning support to
9610     # collect2, so additional links can be useful in future.
9611     if test "$aix_use_runtimelinking" = yes; then
9612       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9613       # instead of lib<name>.a to let people know that these are not
9614       # typical AIX shared libraries.
9615       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616     else
9617       # We preserve .a as extension for shared libraries through AIX4.2
9618       # and later when we are not doing run time linking.
9619       library_names_spec='${libname}${release}.a $libname.a'
9620       soname_spec='${libname}${release}${shared_ext}$major'
9621     fi
9622     shlibpath_var=LIBPATH
9623   fi
9624   ;;
9625
9626 amigaos*)
9627   case $host_cpu in
9628   powerpc)
9629     # Since July 2007 AmigaOS4 officially supports .so libraries.
9630     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632     ;;
9633   m68k)
9634     library_names_spec='$libname.ixlibrary $libname.a'
9635     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9636     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9637     ;;
9638   esac
9639   ;;
9640
9641 beos*)
9642   library_names_spec='${libname}${shared_ext}'
9643   dynamic_linker="$host_os ld.so"
9644   shlibpath_var=LIBRARY_PATH
9645   ;;
9646
9647 bsdi[45]*)
9648   version_type=linux # correct to gnu/linux during the next big refactor
9649   need_version=no
9650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651   soname_spec='${libname}${release}${shared_ext}$major'
9652   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9653   shlibpath_var=LD_LIBRARY_PATH
9654   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9655   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9656   # the default ld.so.conf also contains /usr/contrib/lib and
9657   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9658   # libtool to hard-code these into programs
9659   ;;
9660
9661 cygwin* | mingw* | pw32* | cegcc*)
9662   version_type=windows
9663   shrext_cmds=".dll"
9664   need_version=no
9665   need_lib_prefix=no
9666
9667   case $GCC,$cc_basename in
9668   yes,*)
9669     # gcc
9670     library_names_spec='$libname.dll.a'
9671     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9672     postinstall_cmds='base_file=`basename \${file}`~
9673       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9674       dldir=$destdir/`dirname \$dlpath`~
9675       test -d \$dldir || mkdir -p \$dldir~
9676       $install_prog $dir/$dlname \$dldir/$dlname~
9677       chmod a+x \$dldir/$dlname~
9678       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9679         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9680       fi'
9681     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9682       dlpath=$dir/\$dldll~
9683        $RM \$dlpath'
9684     shlibpath_overrides_runpath=yes
9685
9686     case $host_os in
9687     cygwin*)
9688       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9689       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9690
9691       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9692       ;;
9693     mingw* | cegcc*)
9694       # MinGW DLLs use traditional 'lib' prefix
9695       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9696       ;;
9697     pw32*)
9698       # pw32 DLLs use 'pw' prefix rather than 'lib'
9699       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9700       ;;
9701     esac
9702     dynamic_linker='Win32 ld.exe'
9703     ;;
9704
9705   *,cl*)
9706     # Native MSVC
9707     libname_spec='$name'
9708     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9709     library_names_spec='${libname}.dll.lib'
9710
9711     case $build_os in
9712     mingw*)
9713       sys_lib_search_path_spec=
9714       lt_save_ifs=$IFS
9715       IFS=';'
9716       for lt_path in $LIB
9717       do
9718         IFS=$lt_save_ifs
9719         # Let DOS variable expansion print the short 8.3 style file name.
9720         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9721         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9722       done
9723       IFS=$lt_save_ifs
9724       # Convert to MSYS style.
9725       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9726       ;;
9727     cygwin*)
9728       # Convert to unix form, then to dos form, then back to unix form
9729       # but this time dos style (no spaces!) so that the unix form looks
9730       # like /cygdrive/c/PROGRA~1:/cygdr...
9731       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9732       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9733       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9734       ;;
9735     *)
9736       sys_lib_search_path_spec="$LIB"
9737       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9738         # It is most probably a Windows format PATH.
9739         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9740       else
9741         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9742       fi
9743       # FIXME: find the short name or the path components, as spaces are
9744       # common. (e.g. "Program Files" -> "PROGRA~1")
9745       ;;
9746     esac
9747
9748     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9749     postinstall_cmds='base_file=`basename \${file}`~
9750       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9751       dldir=$destdir/`dirname \$dlpath`~
9752       test -d \$dldir || mkdir -p \$dldir~
9753       $install_prog $dir/$dlname \$dldir/$dlname'
9754     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9755       dlpath=$dir/\$dldll~
9756        $RM \$dlpath'
9757     shlibpath_overrides_runpath=yes
9758     dynamic_linker='Win32 link.exe'
9759     ;;
9760
9761   *)
9762     # Assume MSVC wrapper
9763     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9764     dynamic_linker='Win32 ld.exe'
9765     ;;
9766   esac
9767   # FIXME: first we should search . and the directory the executable is in
9768   shlibpath_var=PATH
9769   ;;
9770
9771 darwin* | rhapsody*)
9772   dynamic_linker="$host_os dyld"
9773   version_type=darwin
9774   need_lib_prefix=no
9775   need_version=no
9776   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9777   soname_spec='${libname}${release}${major}$shared_ext'
9778   shlibpath_overrides_runpath=yes
9779   shlibpath_var=DYLD_LIBRARY_PATH
9780   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9781
9782   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9783   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9784   ;;
9785
9786 dgux*)
9787   version_type=linux # correct to gnu/linux during the next big refactor
9788   need_lib_prefix=no
9789   need_version=no
9790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9791   soname_spec='${libname}${release}${shared_ext}$major'
9792   shlibpath_var=LD_LIBRARY_PATH
9793   ;;
9794
9795 freebsd* | dragonfly*)
9796   # DragonFly does not have aout.  When/if they implement a new
9797   # versioning mechanism, adjust this.
9798   if test -x /usr/bin/objformat; then
9799     objformat=`/usr/bin/objformat`
9800   else
9801     case $host_os in
9802     freebsd[23].*) objformat=aout ;;
9803     *) objformat=elf ;;
9804     esac
9805   fi
9806   version_type=freebsd-$objformat
9807   case $version_type in
9808     freebsd-elf*)
9809       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9810       need_version=no
9811       need_lib_prefix=no
9812       ;;
9813     freebsd-*)
9814       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9815       need_version=yes
9816       ;;
9817   esac
9818   shlibpath_var=LD_LIBRARY_PATH
9819   case $host_os in
9820   freebsd2.*)
9821     shlibpath_overrides_runpath=yes
9822     ;;
9823   freebsd3.[01]* | freebsdelf3.[01]*)
9824     shlibpath_overrides_runpath=yes
9825     hardcode_into_libs=yes
9826     ;;
9827   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9828   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9829     shlibpath_overrides_runpath=no
9830     hardcode_into_libs=yes
9831     ;;
9832   *) # from 4.6 on, and DragonFly
9833     shlibpath_overrides_runpath=yes
9834     hardcode_into_libs=yes
9835     ;;
9836   esac
9837   ;;
9838
9839 haiku*)
9840   version_type=linux # correct to gnu/linux during the next big refactor
9841   need_lib_prefix=no
9842   need_version=no
9843   dynamic_linker="$host_os runtime_loader"
9844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9845   soname_spec='${libname}${release}${shared_ext}$major'
9846   shlibpath_var=LIBRARY_PATH
9847   shlibpath_overrides_runpath=yes
9848   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9849   hardcode_into_libs=yes
9850   ;;
9851
9852 hpux9* | hpux10* | hpux11*)
9853   # Give a soname corresponding to the major version so that dld.sl refuses to
9854   # link against other versions.
9855   version_type=sunos
9856   need_lib_prefix=no
9857   need_version=no
9858   case $host_cpu in
9859   ia64*)
9860     shrext_cmds='.so'
9861     hardcode_into_libs=yes
9862     dynamic_linker="$host_os dld.so"
9863     shlibpath_var=LD_LIBRARY_PATH
9864     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866     soname_spec='${libname}${release}${shared_ext}$major'
9867     if test "X$HPUX_IA64_MODE" = X32; then
9868       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9869     else
9870       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9871     fi
9872     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9873     ;;
9874   hppa*64*)
9875     shrext_cmds='.sl'
9876     hardcode_into_libs=yes
9877     dynamic_linker="$host_os dld.sl"
9878     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9879     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881     soname_spec='${libname}${release}${shared_ext}$major'
9882     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9883     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9884     ;;
9885   *)
9886     shrext_cmds='.sl'
9887     dynamic_linker="$host_os dld.sl"
9888     shlibpath_var=SHLIB_PATH
9889     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891     soname_spec='${libname}${release}${shared_ext}$major'
9892     ;;
9893   esac
9894   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9895   postinstall_cmds='chmod 555 $lib'
9896   # or fails outright, so override atomically:
9897   install_override_mode=555
9898   ;;
9899
9900 interix[3-9]*)
9901   version_type=linux # correct to gnu/linux during the next big refactor
9902   need_lib_prefix=no
9903   need_version=no
9904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9905   soname_spec='${libname}${release}${shared_ext}$major'
9906   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9907   shlibpath_var=LD_LIBRARY_PATH
9908   shlibpath_overrides_runpath=no
9909   hardcode_into_libs=yes
9910   ;;
9911
9912 irix5* | irix6* | nonstopux*)
9913   case $host_os in
9914     nonstopux*) version_type=nonstopux ;;
9915     *)
9916         if test "$lt_cv_prog_gnu_ld" = yes; then
9917                 version_type=linux # correct to gnu/linux during the next big refactor
9918         else
9919                 version_type=irix
9920         fi ;;
9921   esac
9922   need_lib_prefix=no
9923   need_version=no
9924   soname_spec='${libname}${release}${shared_ext}$major'
9925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9926   case $host_os in
9927   irix5* | nonstopux*)
9928     libsuff= shlibsuff=
9929     ;;
9930   *)
9931     case $LD in # libtool.m4 will add one of these switches to LD
9932     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9933       libsuff= shlibsuff= libmagic=32-bit;;
9934     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9935       libsuff=32 shlibsuff=N32 libmagic=N32;;
9936     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9937       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9938     *) libsuff= shlibsuff= libmagic=never-match;;
9939     esac
9940     ;;
9941   esac
9942   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9943   shlibpath_overrides_runpath=no
9944   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9945   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9946   hardcode_into_libs=yes
9947   ;;
9948
9949 # No shared lib support for Linux oldld, aout, or coff.
9950 linux*oldld* | linux*aout* | linux*coff*)
9951   dynamic_linker=no
9952   ;;
9953
9954 # This must be glibc/ELF.
9955 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9956   version_type=linux # correct to gnu/linux during the next big refactor
9957   need_lib_prefix=no
9958   need_version=no
9959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960   soname_spec='${libname}${release}${shared_ext}$major'
9961   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9962   shlibpath_var=LD_LIBRARY_PATH
9963   shlibpath_overrides_runpath=no
9964
9965   # Some binutils ld are patched to set DT_RUNPATH
9966   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9967   $as_echo_n "(cached) " >&6
9968 else
9969   lt_cv_shlibpath_overrides_runpath=no
9970     save_LDFLAGS=$LDFLAGS
9971     save_libdir=$libdir
9972     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9973          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h.  */
9976
9977 int
9978 main ()
9979 {
9980
9981   ;
9982   return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_link "$LINENO"; then :
9986   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9987   lt_cv_shlibpath_overrides_runpath=yes
9988 fi
9989 fi
9990 rm -f core conftest.err conftest.$ac_objext \
9991     conftest$ac_exeext conftest.$ac_ext
9992     LDFLAGS=$save_LDFLAGS
9993     libdir=$save_libdir
9994
9995 fi
9996
9997   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9998
9999   # This implies no fast_install, which is unacceptable.
10000   # Some rework will be needed to allow for fast_install
10001   # before this can be enabled.
10002   hardcode_into_libs=yes
10003
10004   # Append ld.so.conf contents to the search path
10005   if test -f /etc/ld.so.conf; then
10006     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10007     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10008   fi
10009
10010   # We used to test for /lib/ld.so.1 and disable shared libraries on
10011   # powerpc, because MkLinux only supported shared libraries with the
10012   # GNU dynamic linker.  Since this was broken with cross compilers,
10013   # most powerpc-linux boxes support dynamic linking these days and
10014   # people can always --disable-shared, the test was removed, and we
10015   # assume the GNU/Linux dynamic linker is in use.
10016   dynamic_linker='GNU/Linux ld.so'
10017   ;;
10018
10019 netbsdelf*-gnu)
10020   version_type=linux
10021   need_lib_prefix=no
10022   need_version=no
10023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10024   soname_spec='${libname}${release}${shared_ext}$major'
10025   shlibpath_var=LD_LIBRARY_PATH
10026   shlibpath_overrides_runpath=no
10027   hardcode_into_libs=yes
10028   dynamic_linker='NetBSD ld.elf_so'
10029   ;;
10030
10031 netbsd*)
10032   version_type=sunos
10033   need_lib_prefix=no
10034   need_version=no
10035   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10036     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10037     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10038     dynamic_linker='NetBSD (a.out) ld.so'
10039   else
10040     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10041     soname_spec='${libname}${release}${shared_ext}$major'
10042     dynamic_linker='NetBSD ld.elf_so'
10043   fi
10044   shlibpath_var=LD_LIBRARY_PATH
10045   shlibpath_overrides_runpath=yes
10046   hardcode_into_libs=yes
10047   ;;
10048
10049 newsos6)
10050   version_type=linux # correct to gnu/linux during the next big refactor
10051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052   shlibpath_var=LD_LIBRARY_PATH
10053   shlibpath_overrides_runpath=yes
10054   ;;
10055
10056 *nto* | *qnx*)
10057   version_type=qnx
10058   need_lib_prefix=no
10059   need_version=no
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061   soname_spec='${libname}${release}${shared_ext}$major'
10062   shlibpath_var=LD_LIBRARY_PATH
10063   shlibpath_overrides_runpath=no
10064   hardcode_into_libs=yes
10065   dynamic_linker='ldqnx.so'
10066   ;;
10067
10068 openbsd*)
10069   version_type=sunos
10070   sys_lib_dlsearch_path_spec="/usr/lib"
10071   need_lib_prefix=no
10072   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10073   case $host_os in
10074     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10075     *)                          need_version=no  ;;
10076   esac
10077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10079   shlibpath_var=LD_LIBRARY_PATH
10080   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10081     case $host_os in
10082       openbsd2.[89] | openbsd2.[89].*)
10083         shlibpath_overrides_runpath=no
10084         ;;
10085       *)
10086         shlibpath_overrides_runpath=yes
10087         ;;
10088       esac
10089   else
10090     shlibpath_overrides_runpath=yes
10091   fi
10092   ;;
10093
10094 os2*)
10095   libname_spec='$name'
10096   shrext_cmds=".dll"
10097   need_lib_prefix=no
10098   library_names_spec='$libname${shared_ext} $libname.a'
10099   dynamic_linker='OS/2 ld.exe'
10100   shlibpath_var=LIBPATH
10101   ;;
10102
10103 osf3* | osf4* | osf5*)
10104   version_type=osf
10105   need_lib_prefix=no
10106   need_version=no
10107   soname_spec='${libname}${release}${shared_ext}$major'
10108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109   shlibpath_var=LD_LIBRARY_PATH
10110   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10111   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10112   ;;
10113
10114 rdos*)
10115   dynamic_linker=no
10116   ;;
10117
10118 solaris*)
10119   version_type=linux # correct to gnu/linux during the next big refactor
10120   need_lib_prefix=no
10121   need_version=no
10122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123   soname_spec='${libname}${release}${shared_ext}$major'
10124   shlibpath_var=LD_LIBRARY_PATH
10125   shlibpath_overrides_runpath=yes
10126   hardcode_into_libs=yes
10127   # ldd complains unless libraries are executable
10128   postinstall_cmds='chmod +x $lib'
10129   ;;
10130
10131 sunos4*)
10132   version_type=sunos
10133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10134   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10135   shlibpath_var=LD_LIBRARY_PATH
10136   shlibpath_overrides_runpath=yes
10137   if test "$with_gnu_ld" = yes; then
10138     need_lib_prefix=no
10139   fi
10140   need_version=yes
10141   ;;
10142
10143 sysv4 | sysv4.3*)
10144   version_type=linux # correct to gnu/linux during the next big refactor
10145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146   soname_spec='${libname}${release}${shared_ext}$major'
10147   shlibpath_var=LD_LIBRARY_PATH
10148   case $host_vendor in
10149     sni)
10150       shlibpath_overrides_runpath=no
10151       need_lib_prefix=no
10152       runpath_var=LD_RUN_PATH
10153       ;;
10154     siemens)
10155       need_lib_prefix=no
10156       ;;
10157     motorola)
10158       need_lib_prefix=no
10159       need_version=no
10160       shlibpath_overrides_runpath=no
10161       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10162       ;;
10163   esac
10164   ;;
10165
10166 sysv4*MP*)
10167   if test -d /usr/nec ;then
10168     version_type=linux # correct to gnu/linux during the next big refactor
10169     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10170     soname_spec='$libname${shared_ext}.$major'
10171     shlibpath_var=LD_LIBRARY_PATH
10172   fi
10173   ;;
10174
10175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10176   version_type=freebsd-elf
10177   need_lib_prefix=no
10178   need_version=no
10179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10180   soname_spec='${libname}${release}${shared_ext}$major'
10181   shlibpath_var=LD_LIBRARY_PATH
10182   shlibpath_overrides_runpath=yes
10183   hardcode_into_libs=yes
10184   if test "$with_gnu_ld" = yes; then
10185     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10186   else
10187     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10188     case $host_os in
10189       sco3.2v5*)
10190         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10191         ;;
10192     esac
10193   fi
10194   sys_lib_dlsearch_path_spec='/usr/lib'
10195   ;;
10196
10197 tpf*)
10198   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10199   version_type=linux # correct to gnu/linux during the next big refactor
10200   need_lib_prefix=no
10201   need_version=no
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203   shlibpath_var=LD_LIBRARY_PATH
10204   shlibpath_overrides_runpath=no
10205   hardcode_into_libs=yes
10206   ;;
10207
10208 uts4*)
10209   version_type=linux # correct to gnu/linux during the next big refactor
10210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211   soname_spec='${libname}${release}${shared_ext}$major'
10212   shlibpath_var=LD_LIBRARY_PATH
10213   ;;
10214
10215 *)
10216   dynamic_linker=no
10217   ;;
10218 esac
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10220 $as_echo "$dynamic_linker" >&6; }
10221 test "$dynamic_linker" = no && can_build_shared=no
10222
10223 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10224 if test "$GCC" = yes; then
10225   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10226 fi
10227
10228 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10229   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10230 fi
10231 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10232   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10233 fi
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10327 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10328 hardcode_action=
10329 if test -n "$hardcode_libdir_flag_spec" ||
10330    test -n "$runpath_var" ||
10331    test "X$hardcode_automatic" = "Xyes" ; then
10332
10333   # We can hardcode non-existent directories.
10334   if test "$hardcode_direct" != no &&
10335      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10336      # have to relink, otherwise we might link with an installed library
10337      # when we should be linking with a yet-to-be-installed one
10338      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10339      test "$hardcode_minus_L" != no; then
10340     # Linking always hardcodes the temporary library directory.
10341     hardcode_action=relink
10342   else
10343     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10344     hardcode_action=immediate
10345   fi
10346 else
10347   # We cannot hardcode anything, or else we can only hardcode existing
10348   # directories.
10349   hardcode_action=unsupported
10350 fi
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10352 $as_echo "$hardcode_action" >&6; }
10353
10354 if test "$hardcode_action" = relink ||
10355    test "$inherit_rpath" = yes; then
10356   # Fast installation is not supported
10357   enable_fast_install=no
10358 elif test "$shlibpath_overrides_runpath" = yes ||
10359      test "$enable_shared" = no; then
10360   # Fast installation is not necessary
10361   enable_fast_install=needless
10362 fi
10363
10364
10365
10366
10367
10368
10369   if test "x$enable_dlopen" != xyes; then
10370   enable_dlopen=unknown
10371   enable_dlopen_self=unknown
10372   enable_dlopen_self_static=unknown
10373 else
10374   lt_cv_dlopen=no
10375   lt_cv_dlopen_libs=
10376
10377   case $host_os in
10378   beos*)
10379     lt_cv_dlopen="load_add_on"
10380     lt_cv_dlopen_libs=
10381     lt_cv_dlopen_self=yes
10382     ;;
10383
10384   mingw* | pw32* | cegcc*)
10385     lt_cv_dlopen="LoadLibrary"
10386     lt_cv_dlopen_libs=
10387     ;;
10388
10389   cygwin*)
10390     lt_cv_dlopen="dlopen"
10391     lt_cv_dlopen_libs=
10392     ;;
10393
10394   darwin*)
10395   # if libdl is installed we need to link against it
10396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10397 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10398 if ${ac_cv_lib_dl_dlopen+:} false; then :
10399   $as_echo_n "(cached) " >&6
10400 else
10401   ac_check_lib_save_LIBS=$LIBS
10402 LIBS="-ldl  $LIBS"
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h.  */
10405
10406 /* Override any GCC internal prototype to avoid an error.
10407    Use char because int might match the return type of a GCC
10408    builtin and then its argument prototype would still apply.  */
10409 #ifdef __cplusplus
10410 extern "C"
10411 #endif
10412 char dlopen ();
10413 int
10414 main ()
10415 {
10416 return dlopen ();
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10422   ac_cv_lib_dl_dlopen=yes
10423 else
10424   ac_cv_lib_dl_dlopen=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext \
10427     conftest$ac_exeext conftest.$ac_ext
10428 LIBS=$ac_check_lib_save_LIBS
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10431 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10432 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10433   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10434 else
10435
10436     lt_cv_dlopen="dyld"
10437     lt_cv_dlopen_libs=
10438     lt_cv_dlopen_self=yes
10439
10440 fi
10441
10442     ;;
10443
10444   *)
10445     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10446 if test "x$ac_cv_func_shl_load" = xyes; then :
10447   lt_cv_dlopen="shl_load"
10448 else
10449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10450 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10451 if ${ac_cv_lib_dld_shl_load+:} false; then :
10452   $as_echo_n "(cached) " >&6
10453 else
10454   ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-ldld  $LIBS"
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h.  */
10458
10459 /* Override any GCC internal prototype to avoid an error.
10460    Use char because int might match the return type of a GCC
10461    builtin and then its argument prototype would still apply.  */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 char shl_load ();
10466 int
10467 main ()
10468 {
10469 return shl_load ();
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475   ac_cv_lib_dld_shl_load=yes
10476 else
10477   ac_cv_lib_dld_shl_load=no
10478 fi
10479 rm -f core conftest.err conftest.$ac_objext \
10480     conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10482 fi
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10484 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10485 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10486   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10487 else
10488   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10489 if test "x$ac_cv_func_dlopen" = xyes; then :
10490   lt_cv_dlopen="dlopen"
10491 else
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10493 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10494 if ${ac_cv_lib_dl_dlopen+:} false; then :
10495   $as_echo_n "(cached) " >&6
10496 else
10497   ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-ldl  $LIBS"
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h.  */
10501
10502 /* Override any GCC internal prototype to avoid an error.
10503    Use char because int might match the return type of a GCC
10504    builtin and then its argument prototype would still apply.  */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char dlopen ();
10509 int
10510 main ()
10511 {
10512 return dlopen ();
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_link "$LINENO"; then :
10518   ac_cv_lib_dl_dlopen=yes
10519 else
10520   ac_cv_lib_dl_dlopen=no
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext \
10523     conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_lib_save_LIBS
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10527 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10528 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10529   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10530 else
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10532 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10533 if ${ac_cv_lib_svld_dlopen+:} false; then :
10534   $as_echo_n "(cached) " >&6
10535 else
10536   ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lsvld  $LIBS"
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h.  */
10540
10541 /* Override any GCC internal prototype to avoid an error.
10542    Use char because int might match the return type of a GCC
10543    builtin and then its argument prototype would still apply.  */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char dlopen ();
10548 int
10549 main ()
10550 {
10551 return dlopen ();
10552   ;
10553   return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557   ac_cv_lib_svld_dlopen=yes
10558 else
10559   ac_cv_lib_svld_dlopen=no
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext \
10562     conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10564 fi
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10566 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10567 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10568   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10569 else
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10571 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10572 if ${ac_cv_lib_dld_dld_link+:} false; then :
10573   $as_echo_n "(cached) " >&6
10574 else
10575   ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-ldld  $LIBS"
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h.  */
10579
10580 /* Override any GCC internal prototype to avoid an error.
10581    Use char because int might match the return type of a GCC
10582    builtin and then its argument prototype would still apply.  */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 char dld_link ();
10587 int
10588 main ()
10589 {
10590 return dld_link ();
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596   ac_cv_lib_dld_dld_link=yes
10597 else
10598   ac_cv_lib_dld_dld_link=no
10599 fi
10600 rm -f core conftest.err conftest.$ac_objext \
10601     conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10603 fi
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10605 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10606 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10607   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10608 fi
10609
10610
10611 fi
10612
10613
10614 fi
10615
10616
10617 fi
10618
10619
10620 fi
10621
10622
10623 fi
10624
10625     ;;
10626   esac
10627
10628   if test "x$lt_cv_dlopen" != xno; then
10629     enable_dlopen=yes
10630   else
10631     enable_dlopen=no
10632   fi
10633
10634   case $lt_cv_dlopen in
10635   dlopen)
10636     save_CPPFLAGS="$CPPFLAGS"
10637     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10638
10639     save_LDFLAGS="$LDFLAGS"
10640     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10641
10642     save_LIBS="$LIBS"
10643     LIBS="$lt_cv_dlopen_libs $LIBS"
10644
10645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10646 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10647 if ${lt_cv_dlopen_self+:} false; then :
10648   $as_echo_n "(cached) " >&6
10649 else
10650           if test "$cross_compiling" = yes; then :
10651   lt_cv_dlopen_self=cross
10652 else
10653   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10654   lt_status=$lt_dlunknown
10655   cat > conftest.$ac_ext <<_LT_EOF
10656 #line $LINENO "configure"
10657 #include "confdefs.h"
10658
10659 #if HAVE_DLFCN_H
10660 #include <dlfcn.h>
10661 #endif
10662
10663 #include <stdio.h>
10664
10665 #ifdef RTLD_GLOBAL
10666 #  define LT_DLGLOBAL           RTLD_GLOBAL
10667 #else
10668 #  ifdef DL_GLOBAL
10669 #    define LT_DLGLOBAL         DL_GLOBAL
10670 #  else
10671 #    define LT_DLGLOBAL         0
10672 #  endif
10673 #endif
10674
10675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10676    find out it does not work in some platform. */
10677 #ifndef LT_DLLAZY_OR_NOW
10678 #  ifdef RTLD_LAZY
10679 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10680 #  else
10681 #    ifdef DL_LAZY
10682 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10683 #    else
10684 #      ifdef RTLD_NOW
10685 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10686 #      else
10687 #        ifdef DL_NOW
10688 #          define LT_DLLAZY_OR_NOW      DL_NOW
10689 #        else
10690 #          define LT_DLLAZY_OR_NOW      0
10691 #        endif
10692 #      endif
10693 #    endif
10694 #  endif
10695 #endif
10696
10697 /* When -fvisbility=hidden is used, assume the code has been annotated
10698    correspondingly for the symbols needed.  */
10699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10700 int fnord () __attribute__((visibility("default")));
10701 #endif
10702
10703 int fnord () { return 42; }
10704 int main ()
10705 {
10706   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10707   int status = $lt_dlunknown;
10708
10709   if (self)
10710     {
10711       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10712       else
10713         {
10714           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10715           else puts (dlerror ());
10716         }
10717       /* dlclose (self); */
10718     }
10719   else
10720     puts (dlerror ());
10721
10722   return status;
10723 }
10724 _LT_EOF
10725   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10726   (eval $ac_link) 2>&5
10727   ac_status=$?
10728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10729   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10730     (./conftest; exit; ) >&5 2>/dev/null
10731     lt_status=$?
10732     case x$lt_status in
10733       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10734       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10735       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10736     esac
10737   else :
10738     # compilation failed
10739     lt_cv_dlopen_self=no
10740   fi
10741 fi
10742 rm -fr conftest*
10743
10744
10745 fi
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10747 $as_echo "$lt_cv_dlopen_self" >&6; }
10748
10749     if test "x$lt_cv_dlopen_self" = xyes; then
10750       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10751       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10752 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10753 if ${lt_cv_dlopen_self_static+:} false; then :
10754   $as_echo_n "(cached) " >&6
10755 else
10756           if test "$cross_compiling" = yes; then :
10757   lt_cv_dlopen_self_static=cross
10758 else
10759   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10760   lt_status=$lt_dlunknown
10761   cat > conftest.$ac_ext <<_LT_EOF
10762 #line $LINENO "configure"
10763 #include "confdefs.h"
10764
10765 #if HAVE_DLFCN_H
10766 #include <dlfcn.h>
10767 #endif
10768
10769 #include <stdio.h>
10770
10771 #ifdef RTLD_GLOBAL
10772 #  define LT_DLGLOBAL           RTLD_GLOBAL
10773 #else
10774 #  ifdef DL_GLOBAL
10775 #    define LT_DLGLOBAL         DL_GLOBAL
10776 #  else
10777 #    define LT_DLGLOBAL         0
10778 #  endif
10779 #endif
10780
10781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10782    find out it does not work in some platform. */
10783 #ifndef LT_DLLAZY_OR_NOW
10784 #  ifdef RTLD_LAZY
10785 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10786 #  else
10787 #    ifdef DL_LAZY
10788 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10789 #    else
10790 #      ifdef RTLD_NOW
10791 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10792 #      else
10793 #        ifdef DL_NOW
10794 #          define LT_DLLAZY_OR_NOW      DL_NOW
10795 #        else
10796 #          define LT_DLLAZY_OR_NOW      0
10797 #        endif
10798 #      endif
10799 #    endif
10800 #  endif
10801 #endif
10802
10803 /* When -fvisbility=hidden is used, assume the code has been annotated
10804    correspondingly for the symbols needed.  */
10805 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10806 int fnord () __attribute__((visibility("default")));
10807 #endif
10808
10809 int fnord () { return 42; }
10810 int main ()
10811 {
10812   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10813   int status = $lt_dlunknown;
10814
10815   if (self)
10816     {
10817       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10818       else
10819         {
10820           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10821           else puts (dlerror ());
10822         }
10823       /* dlclose (self); */
10824     }
10825   else
10826     puts (dlerror ());
10827
10828   return status;
10829 }
10830 _LT_EOF
10831   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10832   (eval $ac_link) 2>&5
10833   ac_status=$?
10834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10835   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10836     (./conftest; exit; ) >&5 2>/dev/null
10837     lt_status=$?
10838     case x$lt_status in
10839       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10840       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10841       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10842     esac
10843   else :
10844     # compilation failed
10845     lt_cv_dlopen_self_static=no
10846   fi
10847 fi
10848 rm -fr conftest*
10849
10850
10851 fi
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10853 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10854     fi
10855
10856     CPPFLAGS="$save_CPPFLAGS"
10857     LDFLAGS="$save_LDFLAGS"
10858     LIBS="$save_LIBS"
10859     ;;
10860   esac
10861
10862   case $lt_cv_dlopen_self in
10863   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10864   *) enable_dlopen_self=unknown ;;
10865   esac
10866
10867   case $lt_cv_dlopen_self_static in
10868   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10869   *) enable_dlopen_self_static=unknown ;;
10870   esac
10871 fi
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889 striplib=
10890 old_striplib=
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10892 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10893 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10894   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10895   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10897 $as_echo "yes" >&6; }
10898 else
10899 # FIXME - insert some real tests, host_os isn't really good enough
10900   case $host_os in
10901   darwin*)
10902     if test -n "$STRIP" ; then
10903       striplib="$STRIP -x"
10904       old_striplib="$STRIP -S"
10905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10906 $as_echo "yes" >&6; }
10907     else
10908       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10910     fi
10911     ;;
10912   *)
10913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10915     ;;
10916   esac
10917 fi
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930   # Report which library types will actually be built
10931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10932 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10934 $as_echo "$can_build_shared" >&6; }
10935
10936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10937 $as_echo_n "checking whether to build shared libraries... " >&6; }
10938   test "$can_build_shared" = "no" && enable_shared=no
10939
10940   # On AIX, shared libraries and static libraries use the same namespace, and
10941   # are all built from PIC.
10942   case $host_os in
10943   aix3*)
10944     test "$enable_shared" = yes && enable_static=no
10945     if test -n "$RANLIB"; then
10946       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10947       postinstall_cmds='$RANLIB $lib'
10948     fi
10949     ;;
10950
10951   aix[4-9]*)
10952     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10953       test "$enable_shared" = yes && enable_static=no
10954     fi
10955     ;;
10956   esac
10957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10958 $as_echo "$enable_shared" >&6; }
10959
10960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10961 $as_echo_n "checking whether to build static libraries... " >&6; }
10962   # Make sure either enable_shared or enable_static is yes.
10963   test "$enable_shared" = yes || enable_static=yes
10964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10965 $as_echo "$enable_static" >&6; }
10966
10967
10968
10969
10970 fi
10971 ac_ext=c
10972 ac_cpp='$CPP $CPPFLAGS'
10973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976
10977 CC="$lt_save_CC"
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993         ac_config_commands="$ac_config_commands libtool"
10994
10995
10996
10997
10998 # Only expand once:
10999
11000
11001 am__api_version='1.15'
11002
11003 # Find a good install program.  We prefer a C program (faster),
11004 # so one script is as good as another.  But avoid the broken or
11005 # incompatible versions:
11006 # SysV /etc/install, /usr/sbin/install
11007 # SunOS /usr/etc/install
11008 # IRIX /sbin/install
11009 # AIX /bin/install
11010 # AmigaOS /C/install, which installs bootblocks on floppy discs
11011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11014 # OS/2's system install, which has a completely different semantic
11015 # ./install, which can be erroneously created by make from ./install.sh.
11016 # Reject install programs that cannot install multiple files.
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11018 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11019 if test -z "$INSTALL"; then
11020 if ${ac_cv_path_install+:} false; then :
11021   $as_echo_n "(cached) " >&6
11022 else
11023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11025 do
11026   IFS=$as_save_IFS
11027   test -z "$as_dir" && as_dir=.
11028     # Account for people who put trailing slashes in PATH elements.
11029 case $as_dir/ in #((
11030   ./ | .// | /[cC]/* | \
11031   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11032   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11033   /usr/ucb/* ) ;;
11034   *)
11035     # OSF1 and SCO ODT 3.0 have their own names for install.
11036     # Don't use installbsd from OSF since it installs stuff as root
11037     # by default.
11038     for ac_prog in ginstall scoinst install; do
11039       for ac_exec_ext in '' $ac_executable_extensions; do
11040         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11041           if test $ac_prog = install &&
11042             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11043             # AIX install.  It has an incompatible calling convention.
11044             :
11045           elif test $ac_prog = install &&
11046             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11047             # program-specific install script used by HP pwplus--don't use.
11048             :
11049           else
11050             rm -rf conftest.one conftest.two conftest.dir
11051             echo one > conftest.one
11052             echo two > conftest.two
11053             mkdir conftest.dir
11054             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11055               test -s conftest.one && test -s conftest.two &&
11056               test -s conftest.dir/conftest.one &&
11057               test -s conftest.dir/conftest.two
11058             then
11059               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11060               break 3
11061             fi
11062           fi
11063         fi
11064       done
11065     done
11066     ;;
11067 esac
11068
11069   done
11070 IFS=$as_save_IFS
11071
11072 rm -rf conftest.one conftest.two conftest.dir
11073
11074 fi
11075   if test "${ac_cv_path_install+set}" = set; then
11076     INSTALL=$ac_cv_path_install
11077   else
11078     # As a last resort, use the slow shell script.  Don't cache a
11079     # value for INSTALL within a source directory, because that will
11080     # break other packages using the cache if that directory is
11081     # removed, or if the value is a relative name.
11082     INSTALL=$ac_install_sh
11083   fi
11084 fi
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11086 $as_echo "$INSTALL" >&6; }
11087
11088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11089 # It thinks the first close brace ends the variable substitution.
11090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11091
11092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11093
11094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11095
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11097 $as_echo_n "checking whether build environment is sane... " >&6; }
11098 # Reject unsafe characters in $srcdir or the absolute working directory
11099 # name.  Accept space and tab only in the latter.
11100 am_lf='
11101 '
11102 case `pwd` in
11103   *[\\\"\#\$\&\'\`$am_lf]*)
11104     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11105 esac
11106 case $srcdir in
11107   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
11108     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11109 esac
11110
11111 # Do 'set' in a subshell so we don't clobber the current shell's
11112 # arguments.  Must try -L first in case configure is actually a
11113 # symlink; some systems play weird games with the mod time of symlinks
11114 # (eg FreeBSD returns the mod time of the symlink's containing
11115 # directory).
11116 if (
11117    am_has_slept=no
11118    for am_try in 1 2; do
11119      echo "timestamp, slept: $am_has_slept" > conftest.file
11120      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11121      if test "$*" = "X"; then
11122         # -L didn't work.
11123         set X `ls -t "$srcdir/configure" conftest.file`
11124      fi
11125      if test "$*" != "X $srcdir/configure conftest.file" \
11126         && test "$*" != "X conftest.file $srcdir/configure"; then
11127
11128         # If neither matched, then we have a broken ls.  This can happen
11129         # if, for instance, CONFIG_SHELL is bash and it inherits a
11130         # broken ls alias from the environment.  This has actually
11131         # happened.  Such a system could not be considered "sane".
11132         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11133   alias in your environment" "$LINENO" 5
11134      fi
11135      if test "$2" = conftest.file || test $am_try -eq 2; then
11136        break
11137      fi
11138      # Just in case.
11139      sleep 1
11140      am_has_slept=yes
11141    done
11142    test "$2" = conftest.file
11143    )
11144 then
11145    # Ok.
11146    :
11147 else
11148    as_fn_error $? "newly created file is older than distributed files!
11149 Check your system clock" "$LINENO" 5
11150 fi
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11152 $as_echo "yes" >&6; }
11153 # If we didn't sleep, we still need to ensure time stamps of config.status and
11154 # generated files are strictly newer.
11155 am_sleep_pid=
11156 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11157   ( sleep 1 ) &
11158   am_sleep_pid=$!
11159 fi
11160
11161 rm -f conftest.file
11162
11163 test "$program_prefix" != NONE &&
11164   program_transform_name="s&^&$program_prefix&;$program_transform_name"
11165 # Use a double $ so make ignores it.
11166 test "$program_suffix" != NONE &&
11167   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11168 # Double any \ or $.
11169 # By default was `s,x,x', remove it if useless.
11170 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11172
11173 if test x"${MISSING+set}" != xset; then
11174   case $am_aux_dir in
11175   *\ * | *\     *)
11176     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11177   *)
11178     MISSING="\${SHELL} $am_aux_dir/missing" ;;
11179   esac
11180 fi
11181 # Use eval to expand $SHELL
11182 if eval "$MISSING --is-lightweight"; then
11183   am_missing_run="$MISSING "
11184 else
11185   am_missing_run=
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11187 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11188 fi
11189
11190 if test x"${install_sh+set}" != xset; then
11191   case $am_aux_dir in
11192   *\ * | *\     *)
11193     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11194   *)
11195     install_sh="\${SHELL} $am_aux_dir/install-sh"
11196   esac
11197 fi
11198
11199 # Installed binaries are usually stripped using 'strip' when the user
11200 # run "make install-strip".  However 'strip' might not be the right
11201 # tool to use in cross-compilation environments, therefore Automake
11202 # will honor the 'STRIP' environment variable to overrule this program.
11203 if test "$cross_compiling" != no; then
11204   if test -n "$ac_tool_prefix"; then
11205   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11206 set dummy ${ac_tool_prefix}strip; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_prog_STRIP+:} false; then :
11210   $as_echo_n "(cached) " >&6
11211 else
11212   if test -n "$STRIP"; then
11213   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11214 else
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH
11217 do
11218   IFS=$as_save_IFS
11219   test -z "$as_dir" && as_dir=.
11220     for ac_exec_ext in '' $ac_executable_extensions; do
11221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224     break 2
11225   fi
11226 done
11227   done
11228 IFS=$as_save_IFS
11229
11230 fi
11231 fi
11232 STRIP=$ac_cv_prog_STRIP
11233 if test -n "$STRIP"; then
11234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11235 $as_echo "$STRIP" >&6; }
11236 else
11237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11239 fi
11240
11241
11242 fi
11243 if test -z "$ac_cv_prog_STRIP"; then
11244   ac_ct_STRIP=$STRIP
11245   # Extract the first word of "strip", so it can be a program name with args.
11246 set dummy strip; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11250   $as_echo_n "(cached) " >&6
11251 else
11252   if test -n "$ac_ct_STRIP"; then
11253   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11254 else
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11257 do
11258   IFS=$as_save_IFS
11259   test -z "$as_dir" && as_dir=.
11260     for ac_exec_ext in '' $ac_executable_extensions; do
11261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262     ac_cv_prog_ac_ct_STRIP="strip"
11263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264     break 2
11265   fi
11266 done
11267   done
11268 IFS=$as_save_IFS
11269
11270 fi
11271 fi
11272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11273 if test -n "$ac_ct_STRIP"; then
11274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11275 $as_echo "$ac_ct_STRIP" >&6; }
11276 else
11277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279 fi
11280
11281   if test "x$ac_ct_STRIP" = x; then
11282     STRIP=":"
11283   else
11284     case $cross_compiling:$ac_tool_warned in
11285 yes:)
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11288 ac_tool_warned=yes ;;
11289 esac
11290     STRIP=$ac_ct_STRIP
11291   fi
11292 else
11293   STRIP="$ac_cv_prog_STRIP"
11294 fi
11295
11296 fi
11297 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11298
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11300 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11301 if test -z "$MKDIR_P"; then
11302   if ${ac_cv_path_mkdir+:} false; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11307 do
11308   IFS=$as_save_IFS
11309   test -z "$as_dir" && as_dir=.
11310     for ac_prog in mkdir gmkdir; do
11311          for ac_exec_ext in '' $ac_executable_extensions; do
11312            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11313            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11314              'mkdir (GNU coreutils) '* | \
11315              'mkdir (coreutils) '* | \
11316              'mkdir (fileutils) '4.1*)
11317                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11318                break 3;;
11319            esac
11320          done
11321        done
11322   done
11323 IFS=$as_save_IFS
11324
11325 fi
11326
11327   test -d ./--version && rmdir ./--version
11328   if test "${ac_cv_path_mkdir+set}" = set; then
11329     MKDIR_P="$ac_cv_path_mkdir -p"
11330   else
11331     # As a last resort, use the slow shell script.  Don't cache a
11332     # value for MKDIR_P within a source directory, because that will
11333     # break other packages using the cache if that directory is
11334     # removed, or if the value is a relative name.
11335     MKDIR_P="$ac_install_sh -d"
11336   fi
11337 fi
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11339 $as_echo "$MKDIR_P" >&6; }
11340
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11342 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11343 set x ${MAKE-make}
11344 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11345 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11346   $as_echo_n "(cached) " >&6
11347 else
11348   cat >conftest.make <<\_ACEOF
11349 SHELL = /bin/sh
11350 all:
11351         @echo '@@@%%%=$(MAKE)=@@@%%%'
11352 _ACEOF
11353 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11354 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11355   *@@@%%%=?*=@@@%%%*)
11356     eval ac_cv_prog_make_${ac_make}_set=yes;;
11357   *)
11358     eval ac_cv_prog_make_${ac_make}_set=no;;
11359 esac
11360 rm -f conftest.make
11361 fi
11362 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11365   SET_MAKE=
11366 else
11367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369   SET_MAKE="MAKE=${MAKE-make}"
11370 fi
11371
11372 rm -rf .tst 2>/dev/null
11373 mkdir .tst 2>/dev/null
11374 if test -d .tst; then
11375   am__leading_dot=.
11376 else
11377   am__leading_dot=_
11378 fi
11379 rmdir .tst 2>/dev/null
11380
11381 DEPDIR="${am__leading_dot}deps"
11382
11383 ac_config_commands="$ac_config_commands depfiles"
11384
11385
11386 am_make=${MAKE-make}
11387 cat > confinc << 'END'
11388 am__doit:
11389         @echo this is the am__doit target
11390 .PHONY: am__doit
11391 END
11392 # If we don't find an include directive, just comment out the code.
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11394 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11395 am__include="#"
11396 am__quote=
11397 _am_result=none
11398 # First try GNU make style include.
11399 echo "include confinc" > confmf
11400 # Ignore all kinds of additional output from 'make'.
11401 case `$am_make -s -f confmf 2> /dev/null` in #(
11402 *the\ am__doit\ target*)
11403   am__include=include
11404   am__quote=
11405   _am_result=GNU
11406   ;;
11407 esac
11408 # Now try BSD make style include.
11409 if test "$am__include" = "#"; then
11410    echo '.include "confinc"' > confmf
11411    case `$am_make -s -f confmf 2> /dev/null` in #(
11412    *the\ am__doit\ target*)
11413      am__include=.include
11414      am__quote="\""
11415      _am_result=BSD
11416      ;;
11417    esac
11418 fi
11419
11420
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11422 $as_echo "$_am_result" >&6; }
11423 rm -f confinc confmf
11424
11425 # Check whether --enable-dependency-tracking was given.
11426 if test "${enable_dependency_tracking+set}" = set; then :
11427   enableval=$enable_dependency_tracking;
11428 fi
11429
11430 if test "x$enable_dependency_tracking" != xno; then
11431   am_depcomp="$ac_aux_dir/depcomp"
11432   AMDEPBACKSLASH='\'
11433   am__nodep='_no'
11434 fi
11435  if test "x$enable_dependency_tracking" != xno; then
11436   AMDEP_TRUE=
11437   AMDEP_FALSE='#'
11438 else
11439   AMDEP_TRUE='#'
11440   AMDEP_FALSE=
11441 fi
11442
11443
11444 # Check whether --enable-silent-rules was given.
11445 if test "${enable_silent_rules+set}" = set; then :
11446   enableval=$enable_silent_rules;
11447 fi
11448
11449 case $enable_silent_rules in # (((
11450   yes) AM_DEFAULT_VERBOSITY=0;;
11451    no) AM_DEFAULT_VERBOSITY=1;;
11452     *) AM_DEFAULT_VERBOSITY=1;;
11453 esac
11454 am_make=${MAKE-make}
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11456 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11457 if ${am_cv_make_support_nested_variables+:} false; then :
11458   $as_echo_n "(cached) " >&6
11459 else
11460   if $as_echo 'TRUE=$(BAR$(V))
11461 BAR0=false
11462 BAR1=true
11463 V=1
11464 am__doit:
11465         @$(TRUE)
11466 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11467   am_cv_make_support_nested_variables=yes
11468 else
11469   am_cv_make_support_nested_variables=no
11470 fi
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11473 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11474 if test $am_cv_make_support_nested_variables = yes; then
11475     AM_V='$(V)'
11476   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11477 else
11478   AM_V=$AM_DEFAULT_VERBOSITY
11479   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11480 fi
11481 AM_BACKSLASH='\'
11482
11483 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11484   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11485   # is not polluted with repeated "-I."
11486   am__isrc=' -I$(srcdir)'
11487   # test to see if srcdir already configured
11488   if test -f $srcdir/config.status; then
11489     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11490   fi
11491 fi
11492
11493 # test whether we have cygpath
11494 if test -z "$CYGPATH_W"; then
11495   if (cygpath --version) >/dev/null 2>/dev/null; then
11496     CYGPATH_W='cygpath -w'
11497   else
11498     CYGPATH_W=echo
11499   fi
11500 fi
11501
11502
11503 # Define the identity of the package.
11504  PACKAGE='flex'
11505  VERSION='2.6.4'
11506
11507
11508 cat >>confdefs.h <<_ACEOF
11509 #define PACKAGE "$PACKAGE"
11510 _ACEOF
11511
11512
11513 cat >>confdefs.h <<_ACEOF
11514 #define VERSION "$VERSION"
11515 _ACEOF
11516
11517 # Some tools Automake needs.
11518
11519 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11520
11521
11522 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11523
11524
11525 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11526
11527
11528 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11529
11530
11531 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11532
11533 # For better backward compatibility.  To be removed once Automake 1.9.x
11534 # dies out for good.  For more background, see:
11535 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11536 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11537 mkdir_p='$(MKDIR_P)'
11538
11539 # We need awk for the "check" target (and possibly the TAP driver).  The
11540 # system "awk" is bad on some platforms.
11541 # Always define AMTAR for backward compatibility.  Yes, it's still used
11542 # in the wild :-(  We should find a proper way to deprecate it ...
11543 AMTAR='$${TAR-tar}'
11544
11545
11546 # We'll loop over all known methods to create a tar archive until one works.
11547 _am_tools='gnutar  pax cpio none'
11548
11549 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11550
11551
11552
11553
11554
11555 depcc="$CC"   am_compiler_list=
11556
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11558 $as_echo_n "checking dependency style of $depcc... " >&6; }
11559 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11560   $as_echo_n "(cached) " >&6
11561 else
11562   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11563   # We make a subdir and do the tests there.  Otherwise we can end up
11564   # making bogus files that we don't know about and never remove.  For
11565   # instance it was reported that on HP-UX the gcc test will end up
11566   # making a dummy file named 'D' -- because '-MD' means "put the output
11567   # in D".
11568   rm -rf conftest.dir
11569   mkdir conftest.dir
11570   # Copy depcomp to subdir because otherwise we won't find it if we're
11571   # using a relative directory.
11572   cp "$am_depcomp" conftest.dir
11573   cd conftest.dir
11574   # We will build objects and dependencies in a subdirectory because
11575   # it helps to detect inapplicable dependency modes.  For instance
11576   # both Tru64's cc and ICC support -MD to output dependencies as a
11577   # side effect of compilation, but ICC will put the dependencies in
11578   # the current directory while Tru64 will put them in the object
11579   # directory.
11580   mkdir sub
11581
11582   am_cv_CC_dependencies_compiler_type=none
11583   if test "$am_compiler_list" = ""; then
11584      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11585   fi
11586   am__universal=false
11587   case " $depcc " in #(
11588      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11589      esac
11590
11591   for depmode in $am_compiler_list; do
11592     # Setup a source with many dependencies, because some compilers
11593     # like to wrap large dependency lists on column 80 (with \), and
11594     # we should not choose a depcomp mode which is confused by this.
11595     #
11596     # We need to recreate these files for each test, as the compiler may
11597     # overwrite some of them when testing with obscure command lines.
11598     # This happens at least with the AIX C compiler.
11599     : > sub/conftest.c
11600     for i in 1 2 3 4 5 6; do
11601       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11602       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11603       # Solaris 10 /bin/sh.
11604       echo '/* dummy */' > sub/conftst$i.h
11605     done
11606     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11607
11608     # We check with '-c' and '-o' for the sake of the "dashmstdout"
11609     # mode.  It turns out that the SunPro C++ compiler does not properly
11610     # handle '-M -o', and we need to detect this.  Also, some Intel
11611     # versions had trouble with output in subdirs.
11612     am__obj=sub/conftest.${OBJEXT-o}
11613     am__minus_obj="-o $am__obj"
11614     case $depmode in
11615     gcc)
11616       # This depmode causes a compiler race in universal mode.
11617       test "$am__universal" = false || continue
11618       ;;
11619     nosideeffect)
11620       # After this tag, mechanisms are not by side-effect, so they'll
11621       # only be used when explicitly requested.
11622       if test "x$enable_dependency_tracking" = xyes; then
11623         continue
11624       else
11625         break
11626       fi
11627       ;;
11628     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11629       # This compiler won't grok '-c -o', but also, the minuso test has
11630       # not run yet.  These depmodes are late enough in the game, and
11631       # so weak that their functioning should not be impacted.
11632       am__obj=conftest.${OBJEXT-o}
11633       am__minus_obj=
11634       ;;
11635     none) break ;;
11636     esac
11637     if depmode=$depmode \
11638        source=sub/conftest.c object=$am__obj \
11639        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11640        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11641          >/dev/null 2>conftest.err &&
11642        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11643        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11644        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11645        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11646       # icc doesn't choke on unknown options, it will just issue warnings
11647       # or remarks (even with -Werror).  So we grep stderr for any message
11648       # that says an option was ignored or not supported.
11649       # When given -MP, icc 7.0 and 7.1 complain thusly:
11650       #   icc: Command line warning: ignoring option '-M'; no argument required
11651       # The diagnosis changed in icc 8.0:
11652       #   icc: Command line remark: option '-MP' not supported
11653       if (grep 'ignoring option' conftest.err ||
11654           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11655         am_cv_CC_dependencies_compiler_type=$depmode
11656         break
11657       fi
11658     fi
11659   done
11660
11661   cd ..
11662   rm -rf conftest.dir
11663 else
11664   am_cv_CC_dependencies_compiler_type=none
11665 fi
11666
11667 fi
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11669 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11670 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11671
11672  if
11673   test "x$enable_dependency_tracking" != xno \
11674   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11675   am__fastdepCC_TRUE=
11676   am__fastdepCC_FALSE='#'
11677 else
11678   am__fastdepCC_TRUE='#'
11679   am__fastdepCC_FALSE=
11680 fi
11681
11682
11683
11684 # POSIX will say in a future version that running "rm -f" with no argument
11685 # is OK; and we want to be able to make that assumption in our Makefile
11686 # recipes.  So use an aggressive probe to check that the usage we want is
11687 # actually supported "in the wild" to an acceptable degree.
11688 # See automake bug#10828.
11689 # To make any issue more visible, cause the running configure to be aborted
11690 # by default if the 'rm' program in use doesn't match our expectations; the
11691 # user can still override this though.
11692 if rm -f && rm -fr && rm -rf; then : OK; else
11693   cat >&2 <<'END'
11694 Oops!
11695
11696 Your 'rm' program seems unable to run without file operands specified
11697 on the command line, even when the '-f' option is present.  This is contrary
11698 to the behaviour of most rm programs out there, and not conforming with
11699 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
11700
11701 Please tell bug-automake@gnu.org about your system, including the value
11702 of your $PATH and any error possibly output before this message.  This
11703 can help us improve future automake versions.
11704
11705 END
11706   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
11707     echo 'Configuration will proceed anyway, since you have set the' >&2
11708     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
11709     echo >&2
11710   else
11711     cat >&2 <<'END'
11712 Aborting the configuration process, to ensure you take notice of the issue.
11713
11714 You can download and install GNU coreutils to get an 'rm' implementation
11715 that behaves properly: <http://www.gnu.org/software/coreutils/>.
11716
11717 If you want to complete the configuration process using your problematic
11718 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
11719 to "yes", and re-run configure.
11720
11721 END
11722     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
11723   fi
11724 fi
11725
11726 ac_config_headers="$ac_config_headers src/config.h"
11727
11728
11729
11730 SHARED_VERSION_INFO="2:0:0"
11731
11732
11733 # checks for programs
11734
11735
11736 mkdir_p="$MKDIR_P"
11737 case $mkdir_p in
11738   [\\/$]* | ?:[\\/]*) ;;
11739   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11740 esac
11741
11742
11743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11744 $as_echo_n "checking whether NLS is requested... " >&6; }
11745     # Check whether --enable-nls was given.
11746 if test "${enable_nls+set}" = set; then :
11747   enableval=$enable_nls; USE_NLS=$enableval
11748 else
11749   USE_NLS=yes
11750 fi
11751
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11753 $as_echo "$USE_NLS" >&6; }
11754
11755
11756
11757
11758       GETTEXT_MACRO_VERSION=0.18
11759
11760
11761
11762
11763 # Prepare PATH_SEPARATOR.
11764 # The user is always right.
11765 if test "${PATH_SEPARATOR+set}" != set; then
11766   echo "#! /bin/sh" >conf$$.sh
11767   echo  "exit 0"   >>conf$$.sh
11768   chmod +x conf$$.sh
11769   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11770     PATH_SEPARATOR=';'
11771   else
11772     PATH_SEPARATOR=:
11773   fi
11774   rm -f conf$$.sh
11775 fi
11776
11777 # Find out how to test for executable files. Don't use a zero-byte file,
11778 # as systems may use methods other than mode bits to determine executability.
11779 cat >conf$$.file <<_ASEOF
11780 #! /bin/sh
11781 exit 0
11782 _ASEOF
11783 chmod +x conf$$.file
11784 if test -x conf$$.file >/dev/null 2>&1; then
11785   ac_executable_p="test -x"
11786 else
11787   ac_executable_p="test -f"
11788 fi
11789 rm -f conf$$.file
11790
11791 # Extract the first word of "msgfmt", so it can be a program name with args.
11792 set dummy msgfmt; ac_word=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if ${ac_cv_path_MSGFMT+:} false; then :
11796   $as_echo_n "(cached) " >&6
11797 else
11798   case "$MSGFMT" in
11799   [\\/]* | ?:[\\/]*)
11800     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11801     ;;
11802   *)
11803     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11804     for ac_dir in $PATH; do
11805       IFS="$ac_save_IFS"
11806       test -z "$ac_dir" && ac_dir=.
11807       for ac_exec_ext in '' $ac_executable_extensions; do
11808         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11809           echo "$as_me: trying $ac_dir/$ac_word..." >&5
11810           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11811      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11812             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11813             break 2
11814           fi
11815         fi
11816       done
11817     done
11818     IFS="$ac_save_IFS"
11819   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11820     ;;
11821 esac
11822 fi
11823 MSGFMT="$ac_cv_path_MSGFMT"
11824 if test "$MSGFMT" != ":"; then
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11826 $as_echo "$MSGFMT" >&6; }
11827 else
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11830 fi
11831
11832   # Extract the first word of "gmsgfmt", so it can be a program name with args.
11833 set dummy gmsgfmt; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if ${ac_cv_path_GMSGFMT+:} false; then :
11837   $as_echo_n "(cached) " >&6
11838 else
11839   case $GMSGFMT in
11840   [\\/]* | ?:[\\/]*)
11841   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11842   ;;
11843   *)
11844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11846 do
11847   IFS=$as_save_IFS
11848   test -z "$as_dir" && as_dir=.
11849     for ac_exec_ext in '' $ac_executable_extensions; do
11850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853     break 2
11854   fi
11855 done
11856   done
11857 IFS=$as_save_IFS
11858
11859   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11860   ;;
11861 esac
11862 fi
11863 GMSGFMT=$ac_cv_path_GMSGFMT
11864 if test -n "$GMSGFMT"; then
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11866 $as_echo "$GMSGFMT" >&6; }
11867 else
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 fi
11871
11872
11873
11874     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11875     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11876     *) MSGFMT_015=$MSGFMT ;;
11877   esac
11878
11879   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11880     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11881     *) GMSGFMT_015=$GMSGFMT ;;
11882   esac
11883
11884
11885
11886 # Prepare PATH_SEPARATOR.
11887 # The user is always right.
11888 if test "${PATH_SEPARATOR+set}" != set; then
11889   echo "#! /bin/sh" >conf$$.sh
11890   echo  "exit 0"   >>conf$$.sh
11891   chmod +x conf$$.sh
11892   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11893     PATH_SEPARATOR=';'
11894   else
11895     PATH_SEPARATOR=:
11896   fi
11897   rm -f conf$$.sh
11898 fi
11899
11900 # Find out how to test for executable files. Don't use a zero-byte file,
11901 # as systems may use methods other than mode bits to determine executability.
11902 cat >conf$$.file <<_ASEOF
11903 #! /bin/sh
11904 exit 0
11905 _ASEOF
11906 chmod +x conf$$.file
11907 if test -x conf$$.file >/dev/null 2>&1; then
11908   ac_executable_p="test -x"
11909 else
11910   ac_executable_p="test -f"
11911 fi
11912 rm -f conf$$.file
11913
11914 # Extract the first word of "xgettext", so it can be a program name with args.
11915 set dummy xgettext; ac_word=$2
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917 $as_echo_n "checking for $ac_word... " >&6; }
11918 if ${ac_cv_path_XGETTEXT+:} false; then :
11919   $as_echo_n "(cached) " >&6
11920 else
11921   case "$XGETTEXT" in
11922   [\\/]* | ?:[\\/]*)
11923     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11924     ;;
11925   *)
11926     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11927     for ac_dir in $PATH; do
11928       IFS="$ac_save_IFS"
11929       test -z "$ac_dir" && ac_dir=.
11930       for ac_exec_ext in '' $ac_executable_extensions; do
11931         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11932           echo "$as_me: trying $ac_dir/$ac_word..." >&5
11933           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11934      (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
11935             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11936             break 2
11937           fi
11938         fi
11939       done
11940     done
11941     IFS="$ac_save_IFS"
11942   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11943     ;;
11944 esac
11945 fi
11946 XGETTEXT="$ac_cv_path_XGETTEXT"
11947 if test "$XGETTEXT" != ":"; then
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11949 $as_echo "$XGETTEXT" >&6; }
11950 else
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11953 fi
11954
11955     rm -f messages.po
11956
11957     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11958     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11959     *) XGETTEXT_015=$XGETTEXT ;;
11960   esac
11961
11962
11963
11964 # Prepare PATH_SEPARATOR.
11965 # The user is always right.
11966 if test "${PATH_SEPARATOR+set}" != set; then
11967   echo "#! /bin/sh" >conf$$.sh
11968   echo  "exit 0"   >>conf$$.sh
11969   chmod +x conf$$.sh
11970   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11971     PATH_SEPARATOR=';'
11972   else
11973     PATH_SEPARATOR=:
11974   fi
11975   rm -f conf$$.sh
11976 fi
11977
11978 # Find out how to test for executable files. Don't use a zero-byte file,
11979 # as systems may use methods other than mode bits to determine executability.
11980 cat >conf$$.file <<_ASEOF
11981 #! /bin/sh
11982 exit 0
11983 _ASEOF
11984 chmod +x conf$$.file
11985 if test -x conf$$.file >/dev/null 2>&1; then
11986   ac_executable_p="test -x"
11987 else
11988   ac_executable_p="test -f"
11989 fi
11990 rm -f conf$$.file
11991
11992 # Extract the first word of "msgmerge", so it can be a program name with args.
11993 set dummy msgmerge; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_path_MSGMERGE+:} false; then :
11997   $as_echo_n "(cached) " >&6
11998 else
11999   case "$MSGMERGE" in
12000   [\\/]* | ?:[\\/]*)
12001     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12002     ;;
12003   *)
12004     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12005     for ac_dir in $PATH; do
12006       IFS="$ac_save_IFS"
12007       test -z "$ac_dir" && ac_dir=.
12008       for ac_exec_ext in '' $ac_executable_extensions; do
12009         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12010           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12011           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12012             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12013             break 2
12014           fi
12015         fi
12016       done
12017     done
12018     IFS="$ac_save_IFS"
12019   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12020     ;;
12021 esac
12022 fi
12023 MSGMERGE="$ac_cv_path_MSGMERGE"
12024 if test "$MSGMERGE" != ":"; then
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12026 $as_echo "$MSGMERGE" >&6; }
12027 else
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12030 fi
12031
12032
12033         test -n "$localedir" || localedir='${datadir}/locale'
12034
12035
12036     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12037
12038
12039   ac_config_commands="$ac_config_commands po-directories"
12040
12041
12042
12043       if test "X$prefix" = "XNONE"; then
12044     acl_final_prefix="$ac_default_prefix"
12045   else
12046     acl_final_prefix="$prefix"
12047   fi
12048   if test "X$exec_prefix" = "XNONE"; then
12049     acl_final_exec_prefix='${prefix}'
12050   else
12051     acl_final_exec_prefix="$exec_prefix"
12052   fi
12053   acl_save_prefix="$prefix"
12054   prefix="$acl_final_prefix"
12055   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12056   prefix="$acl_save_prefix"
12057
12058
12059 # Check whether --with-gnu-ld was given.
12060 if test "${with_gnu_ld+set}" = set; then :
12061   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12062 else
12063   with_gnu_ld=no
12064 fi
12065
12066 # Prepare PATH_SEPARATOR.
12067 # The user is always right.
12068 if test "${PATH_SEPARATOR+set}" != set; then
12069   echo "#! /bin/sh" >conf$$.sh
12070   echo  "exit 0"   >>conf$$.sh
12071   chmod +x conf$$.sh
12072   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12073     PATH_SEPARATOR=';'
12074   else
12075     PATH_SEPARATOR=:
12076   fi
12077   rm -f conf$$.sh
12078 fi
12079 ac_prog=ld
12080 if test "$GCC" = yes; then
12081   # Check if gcc -print-prog-name=ld gives a path.
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12083 $as_echo_n "checking for ld used by GCC... " >&6; }
12084   case $host in
12085   *-*-mingw*)
12086     # gcc leaves a trailing carriage return which upsets mingw
12087     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12088   *)
12089     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12090   esac
12091   case $ac_prog in
12092     # Accept absolute paths.
12093     [\\/]* | [A-Za-z]:[\\/]*)
12094       re_direlt='/[^/][^/]*/\.\./'
12095       # Canonicalize the path of ld
12096       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12097       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12098         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12099       done
12100       test -z "$LD" && LD="$ac_prog"
12101       ;;
12102   "")
12103     # If it fails, then pretend we aren't using GCC.
12104     ac_prog=ld
12105     ;;
12106   *)
12107     # If it is relative, then search for the first ld in PATH.
12108     with_gnu_ld=unknown
12109     ;;
12110   esac
12111 elif test "$with_gnu_ld" = yes; then
12112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12113 $as_echo_n "checking for GNU ld... " >&6; }
12114 else
12115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12116 $as_echo_n "checking for non-GNU ld... " >&6; }
12117 fi
12118 if ${acl_cv_path_LD+:} false; then :
12119   $as_echo_n "(cached) " >&6
12120 else
12121   if test -z "$LD"; then
12122   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12123   for ac_dir in $PATH; do
12124     test -z "$ac_dir" && ac_dir=.
12125     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12126       acl_cv_path_LD="$ac_dir/$ac_prog"
12127       # Check to see if the program is GNU ld.  I'd rather use --version,
12128       # but apparently some GNU ld's only accept -v.
12129       # Break only if it was the GNU/non-GNU ld that we prefer.
12130       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12131       *GNU* | *'with BFD'*)
12132         test "$with_gnu_ld" != no && break ;;
12133       *)
12134         test "$with_gnu_ld" != yes && break ;;
12135       esac
12136     fi
12137   done
12138   IFS="$ac_save_ifs"
12139 else
12140   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12141 fi
12142 fi
12143
12144 LD="$acl_cv_path_LD"
12145 if test -n "$LD"; then
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12147 $as_echo "$LD" >&6; }
12148 else
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 fi
12152 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12154 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12155 if ${acl_cv_prog_gnu_ld+:} false; then :
12156   $as_echo_n "(cached) " >&6
12157 else
12158   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12159 case `$LD -v 2>&1 </dev/null` in
12160 *GNU* | *'with BFD'*)
12161   acl_cv_prog_gnu_ld=yes ;;
12162 *)
12163   acl_cv_prog_gnu_ld=no ;;
12164 esac
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12167 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12168 with_gnu_ld=$acl_cv_prog_gnu_ld
12169
12170
12171
12172
12173                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12174 $as_echo_n "checking for shared library run path origin... " >&6; }
12175 if ${acl_cv_rpath+:} false; then :
12176   $as_echo_n "(cached) " >&6
12177 else
12178
12179     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12180     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12181     . ./conftest.sh
12182     rm -f ./conftest.sh
12183     acl_cv_rpath=done
12184
12185 fi
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12187 $as_echo "$acl_cv_rpath" >&6; }
12188   wl="$acl_cv_wl"
12189   acl_libext="$acl_cv_libext"
12190   acl_shlibext="$acl_cv_shlibext"
12191   acl_libname_spec="$acl_cv_libname_spec"
12192   acl_library_names_spec="$acl_cv_library_names_spec"
12193   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12194   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12195   acl_hardcode_direct="$acl_cv_hardcode_direct"
12196   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12197     # Check whether --enable-rpath was given.
12198 if test "${enable_rpath+set}" = set; then :
12199   enableval=$enable_rpath; :
12200 else
12201   enable_rpath=yes
12202 fi
12203
12204
12205
12206
12207   acl_libdirstem=lib
12208   acl_libdirstem2=
12209   case "$host_os" in
12210     solaris*)
12211                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12212 $as_echo_n "checking for 64-bit host... " >&6; }
12213 if ${gl_cv_solaris_64bit+:} false; then :
12214   $as_echo_n "(cached) " >&6
12215 else
12216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h.  */
12218
12219 #ifdef _LP64
12220 sixtyfour bits
12221 #endif
12222
12223 _ACEOF
12224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12225   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12226   gl_cv_solaris_64bit=yes
12227 else
12228   gl_cv_solaris_64bit=no
12229 fi
12230 rm -f conftest*
12231
12232
12233 fi
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12235 $as_echo "$gl_cv_solaris_64bit" >&6; }
12236       if test $gl_cv_solaris_64bit = yes; then
12237         acl_libdirstem=lib/64
12238         case "$host_cpu" in
12239           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12240           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12241         esac
12242       fi
12243       ;;
12244     *)
12245       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12246       if test -n "$searchpath"; then
12247         acl_save_IFS="${IFS=    }"; IFS=":"
12248         for searchdir in $searchpath; do
12249           if test -d "$searchdir"; then
12250             case "$searchdir" in
12251               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12252               */../ | */.. )
12253                 # Better ignore directories of this form. They are misleading.
12254                 ;;
12255               *) searchdir=`cd "$searchdir" && pwd`
12256                  case "$searchdir" in
12257                    */lib64 ) acl_libdirstem=lib64 ;;
12258                  esac ;;
12259             esac
12260           fi
12261         done
12262         IFS="$acl_save_IFS"
12263       fi
12264       ;;
12265   esac
12266   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279     use_additional=yes
12280
12281   acl_save_prefix="$prefix"
12282   prefix="$acl_final_prefix"
12283   acl_save_exec_prefix="$exec_prefix"
12284   exec_prefix="$acl_final_exec_prefix"
12285
12286     eval additional_includedir=\"$includedir\"
12287     eval additional_libdir=\"$libdir\"
12288
12289   exec_prefix="$acl_save_exec_prefix"
12290   prefix="$acl_save_prefix"
12291
12292
12293 # Check whether --with-libiconv-prefix was given.
12294 if test "${with_libiconv_prefix+set}" = set; then :
12295   withval=$with_libiconv_prefix;
12296     if test "X$withval" = "Xno"; then
12297       use_additional=no
12298     else
12299       if test "X$withval" = "X"; then
12300
12301   acl_save_prefix="$prefix"
12302   prefix="$acl_final_prefix"
12303   acl_save_exec_prefix="$exec_prefix"
12304   exec_prefix="$acl_final_exec_prefix"
12305
12306           eval additional_includedir=\"$includedir\"
12307           eval additional_libdir=\"$libdir\"
12308
12309   exec_prefix="$acl_save_exec_prefix"
12310   prefix="$acl_save_prefix"
12311
12312       else
12313         additional_includedir="$withval/include"
12314         additional_libdir="$withval/$acl_libdirstem"
12315         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12316            && ! test -d "$withval/$acl_libdirstem"; then
12317           additional_libdir="$withval/$acl_libdirstem2"
12318         fi
12319       fi
12320     fi
12321
12322 fi
12323
12324       LIBICONV=
12325   LTLIBICONV=
12326   INCICONV=
12327   LIBICONV_PREFIX=
12328       HAVE_LIBICONV=
12329   rpathdirs=
12330   ltrpathdirs=
12331   names_already_handled=
12332   names_next_round='iconv '
12333   while test -n "$names_next_round"; do
12334     names_this_round="$names_next_round"
12335     names_next_round=
12336     for name in $names_this_round; do
12337       already_handled=
12338       for n in $names_already_handled; do
12339         if test "$n" = "$name"; then
12340           already_handled=yes
12341           break
12342         fi
12343       done
12344       if test -z "$already_handled"; then
12345         names_already_handled="$names_already_handled $name"
12346                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12347         eval value=\"\$HAVE_LIB$uppername\"
12348         if test -n "$value"; then
12349           if test "$value" = yes; then
12350             eval value=\"\$LIB$uppername\"
12351             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12352             eval value=\"\$LTLIB$uppername\"
12353             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12354           else
12355                                     :
12356           fi
12357         else
12358                               found_dir=
12359           found_la=
12360           found_so=
12361           found_a=
12362           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12363           if test -n "$acl_shlibext"; then
12364             shrext=".$acl_shlibext"             # typically: shrext=.so
12365           else
12366             shrext=
12367           fi
12368           if test $use_additional = yes; then
12369             dir="$additional_libdir"
12370                                     if test -n "$acl_shlibext"; then
12371               if test -f "$dir/$libname$shrext"; then
12372                 found_dir="$dir"
12373                 found_so="$dir/$libname$shrext"
12374               else
12375                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12376                   ver=`(cd "$dir" && \
12377                         for f in "$libname$shrext".*; do echo "$f"; done \
12378                         | sed -e "s,^$libname$shrext\\\\.,," \
12379                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12380                         | sed 1q ) 2>/dev/null`
12381                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12382                     found_dir="$dir"
12383                     found_so="$dir/$libname$shrext.$ver"
12384                   fi
12385                 else
12386                   eval library_names=\"$acl_library_names_spec\"
12387                   for f in $library_names; do
12388                     if test -f "$dir/$f"; then
12389                       found_dir="$dir"
12390                       found_so="$dir/$f"
12391                       break
12392                     fi
12393                   done
12394                 fi
12395               fi
12396             fi
12397                         if test "X$found_dir" = "X"; then
12398               if test -f "$dir/$libname.$acl_libext"; then
12399                 found_dir="$dir"
12400                 found_a="$dir/$libname.$acl_libext"
12401               fi
12402             fi
12403             if test "X$found_dir" != "X"; then
12404               if test -f "$dir/$libname.la"; then
12405                 found_la="$dir/$libname.la"
12406               fi
12407             fi
12408           fi
12409           if test "X$found_dir" = "X"; then
12410             for x in $LDFLAGS $LTLIBICONV; do
12411
12412   acl_save_prefix="$prefix"
12413   prefix="$acl_final_prefix"
12414   acl_save_exec_prefix="$exec_prefix"
12415   exec_prefix="$acl_final_exec_prefix"
12416   eval x=\"$x\"
12417   exec_prefix="$acl_save_exec_prefix"
12418   prefix="$acl_save_prefix"
12419
12420               case "$x" in
12421                 -L*)
12422                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12423                                     if test -n "$acl_shlibext"; then
12424                     if test -f "$dir/$libname$shrext"; then
12425                       found_dir="$dir"
12426                       found_so="$dir/$libname$shrext"
12427                     else
12428                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12429                         ver=`(cd "$dir" && \
12430                               for f in "$libname$shrext".*; do echo "$f"; done \
12431                               | sed -e "s,^$libname$shrext\\\\.,," \
12432                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12433                               | sed 1q ) 2>/dev/null`
12434                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12435                           found_dir="$dir"
12436                           found_so="$dir/$libname$shrext.$ver"
12437                         fi
12438                       else
12439                         eval library_names=\"$acl_library_names_spec\"
12440                         for f in $library_names; do
12441                           if test -f "$dir/$f"; then
12442                             found_dir="$dir"
12443                             found_so="$dir/$f"
12444                             break
12445                           fi
12446                         done
12447                       fi
12448                     fi
12449                   fi
12450                                     if test "X$found_dir" = "X"; then
12451                     if test -f "$dir/$libname.$acl_libext"; then
12452                       found_dir="$dir"
12453                       found_a="$dir/$libname.$acl_libext"
12454                     fi
12455                   fi
12456                   if test "X$found_dir" != "X"; then
12457                     if test -f "$dir/$libname.la"; then
12458                       found_la="$dir/$libname.la"
12459                     fi
12460                   fi
12461                   ;;
12462               esac
12463               if test "X$found_dir" != "X"; then
12464                 break
12465               fi
12466             done
12467           fi
12468           if test "X$found_dir" != "X"; then
12469                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12470             if test "X$found_so" != "X"; then
12471                                                         if test "$enable_rpath" = no \
12472                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12473                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12474                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12475               else
12476                                                                                 haveit=
12477                 for x in $ltrpathdirs; do
12478                   if test "X$x" = "X$found_dir"; then
12479                     haveit=yes
12480                     break
12481                   fi
12482                 done
12483                 if test -z "$haveit"; then
12484                   ltrpathdirs="$ltrpathdirs $found_dir"
12485                 fi
12486                                 if test "$acl_hardcode_direct" = yes; then
12487                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12488                 else
12489                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12490                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12491                                                             haveit=
12492                     for x in $rpathdirs; do
12493                       if test "X$x" = "X$found_dir"; then
12494                         haveit=yes
12495                         break
12496                       fi
12497                     done
12498                     if test -z "$haveit"; then
12499                       rpathdirs="$rpathdirs $found_dir"
12500                     fi
12501                   else
12502                                                                                 haveit=
12503                     for x in $LDFLAGS $LIBICONV; do
12504
12505   acl_save_prefix="$prefix"
12506   prefix="$acl_final_prefix"
12507   acl_save_exec_prefix="$exec_prefix"
12508   exec_prefix="$acl_final_exec_prefix"
12509   eval x=\"$x\"
12510   exec_prefix="$acl_save_exec_prefix"
12511   prefix="$acl_save_prefix"
12512
12513                       if test "X$x" = "X-L$found_dir"; then
12514                         haveit=yes
12515                         break
12516                       fi
12517                     done
12518                     if test -z "$haveit"; then
12519                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12520                     fi
12521                     if test "$acl_hardcode_minus_L" != no; then
12522                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12523                     else
12524                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12525                     fi
12526                   fi
12527                 fi
12528               fi
12529             else
12530               if test "X$found_a" != "X"; then
12531                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12532               else
12533                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12534               fi
12535             fi
12536                         additional_includedir=
12537             case "$found_dir" in
12538               */$acl_libdirstem | */$acl_libdirstem/)
12539                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12540                 if test "$name" = 'iconv'; then
12541                   LIBICONV_PREFIX="$basedir"
12542                 fi
12543                 additional_includedir="$basedir/include"
12544                 ;;
12545               */$acl_libdirstem2 | */$acl_libdirstem2/)
12546                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12547                 if test "$name" = 'iconv'; then
12548                   LIBICONV_PREFIX="$basedir"
12549                 fi
12550                 additional_includedir="$basedir/include"
12551                 ;;
12552             esac
12553             if test "X$additional_includedir" != "X"; then
12554                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12555                 haveit=
12556                 if test "X$additional_includedir" = "X/usr/local/include"; then
12557                   if test -n "$GCC"; then
12558                     case $host_os in
12559                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12560                     esac
12561                   fi
12562                 fi
12563                 if test -z "$haveit"; then
12564                   for x in $CPPFLAGS $INCICONV; 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-I$additional_includedir"; then
12575                       haveit=yes
12576                       break
12577                     fi
12578                   done
12579                   if test -z "$haveit"; then
12580                     if test -d "$additional_includedir"; then
12581                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12582                     fi
12583                   fi
12584                 fi
12585               fi
12586             fi
12587                         if test -n "$found_la"; then
12588                                                         save_libdir="$libdir"
12589               case "$found_la" in
12590                 */* | *\\*) . "$found_la" ;;
12591                 *) . "./$found_la" ;;
12592               esac
12593               libdir="$save_libdir"
12594                             for dep in $dependency_libs; do
12595                 case "$dep" in
12596                   -L*)
12597                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12598                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12599                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12600                       haveit=
12601                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12602                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12603                         if test -n "$GCC"; then
12604                           case $host_os in
12605                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12606                           esac
12607                         fi
12608                       fi
12609                       if test -z "$haveit"; then
12610                         haveit=
12611                         for x in $LDFLAGS $LIBICONV; do
12612
12613   acl_save_prefix="$prefix"
12614   prefix="$acl_final_prefix"
12615   acl_save_exec_prefix="$exec_prefix"
12616   exec_prefix="$acl_final_exec_prefix"
12617   eval x=\"$x\"
12618   exec_prefix="$acl_save_exec_prefix"
12619   prefix="$acl_save_prefix"
12620
12621                           if test "X$x" = "X-L$additional_libdir"; then
12622                             haveit=yes
12623                             break
12624                           fi
12625                         done
12626                         if test -z "$haveit"; then
12627                           if test -d "$additional_libdir"; then
12628                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12629                           fi
12630                         fi
12631                         haveit=
12632                         for x in $LDFLAGS $LTLIBICONV; do
12633
12634   acl_save_prefix="$prefix"
12635   prefix="$acl_final_prefix"
12636   acl_save_exec_prefix="$exec_prefix"
12637   exec_prefix="$acl_final_exec_prefix"
12638   eval x=\"$x\"
12639   exec_prefix="$acl_save_exec_prefix"
12640   prefix="$acl_save_prefix"
12641
12642                           if test "X$x" = "X-L$additional_libdir"; then
12643                             haveit=yes
12644                             break
12645                           fi
12646                         done
12647                         if test -z "$haveit"; then
12648                           if test -d "$additional_libdir"; then
12649                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12650                           fi
12651                         fi
12652                       fi
12653                     fi
12654                     ;;
12655                   -R*)
12656                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12657                     if test "$enable_rpath" != no; then
12658                                                                   haveit=
12659                       for x in $rpathdirs; do
12660                         if test "X$x" = "X$dir"; then
12661                           haveit=yes
12662                           break
12663                         fi
12664                       done
12665                       if test -z "$haveit"; then
12666                         rpathdirs="$rpathdirs $dir"
12667                       fi
12668                                                                   haveit=
12669                       for x in $ltrpathdirs; do
12670                         if test "X$x" = "X$dir"; then
12671                           haveit=yes
12672                           break
12673                         fi
12674                       done
12675                       if test -z "$haveit"; then
12676                         ltrpathdirs="$ltrpathdirs $dir"
12677                       fi
12678                     fi
12679                     ;;
12680                   -l*)
12681                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12682                     ;;
12683                   *.la)
12684                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12685                     ;;
12686                   *)
12687                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12688                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12689                     ;;
12690                 esac
12691               done
12692             fi
12693           else
12694                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12695             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12696           fi
12697         fi
12698       fi
12699     done
12700   done
12701   if test "X$rpathdirs" != "X"; then
12702     if test -n "$acl_hardcode_libdir_separator"; then
12703                         alldirs=
12704       for found_dir in $rpathdirs; do
12705         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12706       done
12707             acl_save_libdir="$libdir"
12708       libdir="$alldirs"
12709       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12710       libdir="$acl_save_libdir"
12711       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12712     else
12713             for found_dir in $rpathdirs; do
12714         acl_save_libdir="$libdir"
12715         libdir="$found_dir"
12716         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12717         libdir="$acl_save_libdir"
12718         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12719       done
12720     fi
12721   fi
12722   if test "X$ltrpathdirs" != "X"; then
12723             for found_dir in $ltrpathdirs; do
12724       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12725     done
12726   fi
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12759 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12760 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12761   $as_echo_n "(cached) " >&6
12762 else
12763   gt_save_LIBS="$LIBS"
12764      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12765      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h.  */
12767 #include <CoreFoundation/CFPreferences.h>
12768 int
12769 main ()
12770 {
12771 CFPreferencesCopyAppValue(NULL, NULL)
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 if ac_fn_c_try_link "$LINENO"; then :
12777   gt_cv_func_CFPreferencesCopyAppValue=yes
12778 else
12779   gt_cv_func_CFPreferencesCopyAppValue=no
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext \
12782     conftest$ac_exeext conftest.$ac_ext
12783      LIBS="$gt_save_LIBS"
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12786 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12787   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12788
12789 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12790
12791   fi
12792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12793 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12794 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12795   $as_echo_n "(cached) " >&6
12796 else
12797   gt_save_LIBS="$LIBS"
12798      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12799      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h.  */
12801 #include <CoreFoundation/CFLocale.h>
12802 int
12803 main ()
12804 {
12805 CFLocaleCopyCurrent();
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_link "$LINENO"; then :
12811   gt_cv_func_CFLocaleCopyCurrent=yes
12812 else
12813   gt_cv_func_CFLocaleCopyCurrent=no
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext \
12816     conftest$ac_exeext conftest.$ac_ext
12817      LIBS="$gt_save_LIBS"
12818 fi
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12820 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12821   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12822
12823 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12824
12825   fi
12826   INTL_MACOSX_LIBS=
12827   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12828     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12829   fi
12830
12831
12832
12833
12834
12835
12836   LIBINTL=
12837   LTLIBINTL=
12838   POSUB=
12839
12840     case " $gt_needs " in
12841     *" need-formatstring-macros "*) gt_api_version=3 ;;
12842     *" need-ngettext "*) gt_api_version=2 ;;
12843     *) gt_api_version=1 ;;
12844   esac
12845   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12846   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12847
12848     if test "$USE_NLS" = "yes"; then
12849     gt_use_preinstalled_gnugettext=no
12850
12851
12852         if test $gt_api_version -ge 3; then
12853           gt_revision_test_code='
12854 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12855 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12856 #endif
12857 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12858 '
12859         else
12860           gt_revision_test_code=
12861         fi
12862         if test $gt_api_version -ge 2; then
12863           gt_expression_test_code=' + * ngettext ("", "", 0)'
12864         else
12865           gt_expression_test_code=
12866         fi
12867
12868         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12869 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12870 if eval \${$gt_func_gnugettext_libc+:} false; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h.  */
12875 #include <libintl.h>
12876 $gt_revision_test_code
12877 extern int _nl_msg_cat_cntr;
12878 extern int *_nl_domain_bindings;
12879 int
12880 main ()
12881 {
12882 bindtextdomain ("", "");
12883 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 if ac_fn_c_try_link "$LINENO"; then :
12889   eval "$gt_func_gnugettext_libc=yes"
12890 else
12891   eval "$gt_func_gnugettext_libc=no"
12892 fi
12893 rm -f core conftest.err conftest.$ac_objext \
12894     conftest$ac_exeext conftest.$ac_ext
12895 fi
12896 eval ac_res=\$$gt_func_gnugettext_libc
12897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12898 $as_echo "$ac_res" >&6; }
12899
12900         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12901
12902
12903
12904
12905
12906           am_save_CPPFLAGS="$CPPFLAGS"
12907
12908   for element in $INCICONV; do
12909     haveit=
12910     for x in $CPPFLAGS; do
12911
12912   acl_save_prefix="$prefix"
12913   prefix="$acl_final_prefix"
12914   acl_save_exec_prefix="$exec_prefix"
12915   exec_prefix="$acl_final_exec_prefix"
12916   eval x=\"$x\"
12917   exec_prefix="$acl_save_exec_prefix"
12918   prefix="$acl_save_prefix"
12919
12920       if test "X$x" = "X$element"; then
12921         haveit=yes
12922         break
12923       fi
12924     done
12925     if test -z "$haveit"; then
12926       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12927     fi
12928   done
12929
12930
12931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12932 $as_echo_n "checking for iconv... " >&6; }
12933 if ${am_cv_func_iconv+:} false; then :
12934   $as_echo_n "(cached) " >&6
12935 else
12936
12937     am_cv_func_iconv="no, consider installing GNU libiconv"
12938     am_cv_lib_iconv=no
12939     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h.  */
12941 #include <stdlib.h>
12942 #include <iconv.h>
12943 int
12944 main ()
12945 {
12946 iconv_t cd = iconv_open("","");
12947        iconv(cd,NULL,NULL,NULL,NULL);
12948        iconv_close(cd);
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 if ac_fn_c_try_link "$LINENO"; then :
12954   am_cv_func_iconv=yes
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext \
12957     conftest$ac_exeext conftest.$ac_ext
12958     if test "$am_cv_func_iconv" != yes; then
12959       am_save_LIBS="$LIBS"
12960       LIBS="$LIBS $LIBICONV"
12961       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h.  */
12963 #include <stdlib.h>
12964 #include <iconv.h>
12965 int
12966 main ()
12967 {
12968 iconv_t cd = iconv_open("","");
12969          iconv(cd,NULL,NULL,NULL,NULL);
12970          iconv_close(cd);
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 if ac_fn_c_try_link "$LINENO"; then :
12976   am_cv_lib_iconv=yes
12977         am_cv_func_iconv=yes
12978 fi
12979 rm -f core conftest.err conftest.$ac_objext \
12980     conftest$ac_exeext conftest.$ac_ext
12981       LIBS="$am_save_LIBS"
12982     fi
12983
12984 fi
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12986 $as_echo "$am_cv_func_iconv" >&6; }
12987   if test "$am_cv_func_iconv" = yes; then
12988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12989 $as_echo_n "checking for working iconv... " >&6; }
12990 if ${am_cv_func_iconv_works+:} false; then :
12991   $as_echo_n "(cached) " >&6
12992 else
12993
12994             am_save_LIBS="$LIBS"
12995       if test $am_cv_lib_iconv = yes; then
12996         LIBS="$LIBS $LIBICONV"
12997       fi
12998       if test "$cross_compiling" = yes; then :
12999   case "$host_os" in
13000            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13001            *)            am_cv_func_iconv_works="guessing yes" ;;
13002          esac
13003 else
13004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h.  */
13006
13007 #include <iconv.h>
13008 #include <string.h>
13009 int main ()
13010 {
13011   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13012      returns.  */
13013   {
13014     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13015     if (cd_utf8_to_88591 != (iconv_t)(-1))
13016       {
13017         static const char input[] = "\342\202\254"; /* EURO SIGN */
13018         char buf[10];
13019         const char *inptr = input;
13020         size_t inbytesleft = strlen (input);
13021         char *outptr = buf;
13022         size_t outbytesleft = sizeof (buf);
13023         size_t res = iconv (cd_utf8_to_88591,
13024                             (char **) &inptr, &inbytesleft,
13025                             &outptr, &outbytesleft);
13026         if (res == 0)
13027           return 1;
13028       }
13029   }
13030   /* Test against Solaris 10 bug: Failures are not distinguishable from
13031      successful returns.  */
13032   {
13033     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13034     if (cd_ascii_to_88591 != (iconv_t)(-1))
13035       {
13036         static const char input[] = "\263";
13037         char buf[10];
13038         const char *inptr = input;
13039         size_t inbytesleft = strlen (input);
13040         char *outptr = buf;
13041         size_t outbytesleft = sizeof (buf);
13042         size_t res = iconv (cd_ascii_to_88591,
13043                             (char **) &inptr, &inbytesleft,
13044                             &outptr, &outbytesleft);
13045         if (res == 0)
13046           return 1;
13047       }
13048   }
13049 #if 0 /* This bug could be worked around by the caller.  */
13050   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13051   {
13052     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13053     if (cd_88591_to_utf8 != (iconv_t)(-1))
13054       {
13055         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13056         char buf[50];
13057         const char *inptr = input;
13058         size_t inbytesleft = strlen (input);
13059         char *outptr = buf;
13060         size_t outbytesleft = sizeof (buf);
13061         size_t res = iconv (cd_88591_to_utf8,
13062                             (char **) &inptr, &inbytesleft,
13063                             &outptr, &outbytesleft);
13064         if ((int)res > 0)
13065           return 1;
13066       }
13067   }
13068 #endif
13069   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13070      provided.  */
13071   if (/* Try standardized names.  */
13072       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13073       /* Try IRIX, OSF/1 names.  */
13074       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13075       /* Try AIX names.  */
13076       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13077       /* Try HP-UX names.  */
13078       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13079     return 1;
13080   return 0;
13081 }
13082 _ACEOF
13083 if ac_fn_c_try_run "$LINENO"; then :
13084   am_cv_func_iconv_works=yes
13085 else
13086   am_cv_func_iconv_works=no
13087 fi
13088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13089   conftest.$ac_objext conftest.beam conftest.$ac_ext
13090 fi
13091
13092       LIBS="$am_save_LIBS"
13093
13094 fi
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13096 $as_echo "$am_cv_func_iconv_works" >&6; }
13097     case "$am_cv_func_iconv_works" in
13098       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13099       *)   am_func_iconv=yes ;;
13100     esac
13101   else
13102     am_func_iconv=no am_cv_lib_iconv=no
13103   fi
13104   if test "$am_func_iconv" = yes; then
13105
13106 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13107
13108   fi
13109   if test "$am_cv_lib_iconv" = yes; then
13110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13111 $as_echo_n "checking how to link with libiconv... " >&6; }
13112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13113 $as_echo "$LIBICONV" >&6; }
13114   else
13115             CPPFLAGS="$am_save_CPPFLAGS"
13116     LIBICONV=
13117     LTLIBICONV=
13118   fi
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130     use_additional=yes
13131
13132   acl_save_prefix="$prefix"
13133   prefix="$acl_final_prefix"
13134   acl_save_exec_prefix="$exec_prefix"
13135   exec_prefix="$acl_final_exec_prefix"
13136
13137     eval additional_includedir=\"$includedir\"
13138     eval additional_libdir=\"$libdir\"
13139
13140   exec_prefix="$acl_save_exec_prefix"
13141   prefix="$acl_save_prefix"
13142
13143
13144 # Check whether --with-libintl-prefix was given.
13145 if test "${with_libintl_prefix+set}" = set; then :
13146   withval=$with_libintl_prefix;
13147     if test "X$withval" = "Xno"; then
13148       use_additional=no
13149     else
13150       if test "X$withval" = "X"; then
13151
13152   acl_save_prefix="$prefix"
13153   prefix="$acl_final_prefix"
13154   acl_save_exec_prefix="$exec_prefix"
13155   exec_prefix="$acl_final_exec_prefix"
13156
13157           eval additional_includedir=\"$includedir\"
13158           eval additional_libdir=\"$libdir\"
13159
13160   exec_prefix="$acl_save_exec_prefix"
13161   prefix="$acl_save_prefix"
13162
13163       else
13164         additional_includedir="$withval/include"
13165         additional_libdir="$withval/$acl_libdirstem"
13166         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13167            && ! test -d "$withval/$acl_libdirstem"; then
13168           additional_libdir="$withval/$acl_libdirstem2"
13169         fi
13170       fi
13171     fi
13172
13173 fi
13174
13175       LIBINTL=
13176   LTLIBINTL=
13177   INCINTL=
13178   LIBINTL_PREFIX=
13179       HAVE_LIBINTL=
13180   rpathdirs=
13181   ltrpathdirs=
13182   names_already_handled=
13183   names_next_round='intl '
13184   while test -n "$names_next_round"; do
13185     names_this_round="$names_next_round"
13186     names_next_round=
13187     for name in $names_this_round; do
13188       already_handled=
13189       for n in $names_already_handled; do
13190         if test "$n" = "$name"; then
13191           already_handled=yes
13192           break
13193         fi
13194       done
13195       if test -z "$already_handled"; then
13196         names_already_handled="$names_already_handled $name"
13197                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13198         eval value=\"\$HAVE_LIB$uppername\"
13199         if test -n "$value"; then
13200           if test "$value" = yes; then
13201             eval value=\"\$LIB$uppername\"
13202             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13203             eval value=\"\$LTLIB$uppername\"
13204             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13205           else
13206                                     :
13207           fi
13208         else
13209                               found_dir=
13210           found_la=
13211           found_so=
13212           found_a=
13213           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13214           if test -n "$acl_shlibext"; then
13215             shrext=".$acl_shlibext"             # typically: shrext=.so
13216           else
13217             shrext=
13218           fi
13219           if test $use_additional = yes; then
13220             dir="$additional_libdir"
13221                                     if test -n "$acl_shlibext"; then
13222               if test -f "$dir/$libname$shrext"; then
13223                 found_dir="$dir"
13224                 found_so="$dir/$libname$shrext"
13225               else
13226                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13227                   ver=`(cd "$dir" && \
13228                         for f in "$libname$shrext".*; do echo "$f"; done \
13229                         | sed -e "s,^$libname$shrext\\\\.,," \
13230                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13231                         | sed 1q ) 2>/dev/null`
13232                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13233                     found_dir="$dir"
13234                     found_so="$dir/$libname$shrext.$ver"
13235                   fi
13236                 else
13237                   eval library_names=\"$acl_library_names_spec\"
13238                   for f in $library_names; do
13239                     if test -f "$dir/$f"; then
13240                       found_dir="$dir"
13241                       found_so="$dir/$f"
13242                       break
13243                     fi
13244                   done
13245                 fi
13246               fi
13247             fi
13248                         if test "X$found_dir" = "X"; then
13249               if test -f "$dir/$libname.$acl_libext"; then
13250                 found_dir="$dir"
13251                 found_a="$dir/$libname.$acl_libext"
13252               fi
13253             fi
13254             if test "X$found_dir" != "X"; then
13255               if test -f "$dir/$libname.la"; then
13256                 found_la="$dir/$libname.la"
13257               fi
13258             fi
13259           fi
13260           if test "X$found_dir" = "X"; then
13261             for x in $LDFLAGS $LTLIBINTL; do
13262
13263   acl_save_prefix="$prefix"
13264   prefix="$acl_final_prefix"
13265   acl_save_exec_prefix="$exec_prefix"
13266   exec_prefix="$acl_final_exec_prefix"
13267   eval x=\"$x\"
13268   exec_prefix="$acl_save_exec_prefix"
13269   prefix="$acl_save_prefix"
13270
13271               case "$x" in
13272                 -L*)
13273                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13274                                     if test -n "$acl_shlibext"; then
13275                     if test -f "$dir/$libname$shrext"; then
13276                       found_dir="$dir"
13277                       found_so="$dir/$libname$shrext"
13278                     else
13279                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13280                         ver=`(cd "$dir" && \
13281                               for f in "$libname$shrext".*; do echo "$f"; done \
13282                               | sed -e "s,^$libname$shrext\\\\.,," \
13283                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13284                               | sed 1q ) 2>/dev/null`
13285                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13286                           found_dir="$dir"
13287                           found_so="$dir/$libname$shrext.$ver"
13288                         fi
13289                       else
13290                         eval library_names=\"$acl_library_names_spec\"
13291                         for f in $library_names; do
13292                           if test -f "$dir/$f"; then
13293                             found_dir="$dir"
13294                             found_so="$dir/$f"
13295                             break
13296                           fi
13297                         done
13298                       fi
13299                     fi
13300                   fi
13301                                     if test "X$found_dir" = "X"; then
13302                     if test -f "$dir/$libname.$acl_libext"; then
13303                       found_dir="$dir"
13304                       found_a="$dir/$libname.$acl_libext"
13305                     fi
13306                   fi
13307                   if test "X$found_dir" != "X"; then
13308                     if test -f "$dir/$libname.la"; then
13309                       found_la="$dir/$libname.la"
13310                     fi
13311                   fi
13312                   ;;
13313               esac
13314               if test "X$found_dir" != "X"; then
13315                 break
13316               fi
13317             done
13318           fi
13319           if test "X$found_dir" != "X"; then
13320                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13321             if test "X$found_so" != "X"; then
13322                                                         if test "$enable_rpath" = no \
13323                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13324                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13325                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13326               else
13327                                                                                 haveit=
13328                 for x in $ltrpathdirs; do
13329                   if test "X$x" = "X$found_dir"; then
13330                     haveit=yes
13331                     break
13332                   fi
13333                 done
13334                 if test -z "$haveit"; then
13335                   ltrpathdirs="$ltrpathdirs $found_dir"
13336                 fi
13337                                 if test "$acl_hardcode_direct" = yes; then
13338                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13339                 else
13340                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13341                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13342                                                             haveit=
13343                     for x in $rpathdirs; 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                       rpathdirs="$rpathdirs $found_dir"
13351                     fi
13352                   else
13353                                                                                 haveit=
13354                     for x in $LDFLAGS $LIBINTL; do
13355
13356   acl_save_prefix="$prefix"
13357   prefix="$acl_final_prefix"
13358   acl_save_exec_prefix="$exec_prefix"
13359   exec_prefix="$acl_final_exec_prefix"
13360   eval x=\"$x\"
13361   exec_prefix="$acl_save_exec_prefix"
13362   prefix="$acl_save_prefix"
13363
13364                       if test "X$x" = "X-L$found_dir"; then
13365                         haveit=yes
13366                         break
13367                       fi
13368                     done
13369                     if test -z "$haveit"; then
13370                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13371                     fi
13372                     if test "$acl_hardcode_minus_L" != no; then
13373                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13374                     else
13375                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13376                     fi
13377                   fi
13378                 fi
13379               fi
13380             else
13381               if test "X$found_a" != "X"; then
13382                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13383               else
13384                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13385               fi
13386             fi
13387                         additional_includedir=
13388             case "$found_dir" in
13389               */$acl_libdirstem | */$acl_libdirstem/)
13390                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13391                 if test "$name" = 'intl'; then
13392                   LIBINTL_PREFIX="$basedir"
13393                 fi
13394                 additional_includedir="$basedir/include"
13395                 ;;
13396               */$acl_libdirstem2 | */$acl_libdirstem2/)
13397                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13398                 if test "$name" = 'intl'; then
13399                   LIBINTL_PREFIX="$basedir"
13400                 fi
13401                 additional_includedir="$basedir/include"
13402                 ;;
13403             esac
13404             if test "X$additional_includedir" != "X"; then
13405                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13406                 haveit=
13407                 if test "X$additional_includedir" = "X/usr/local/include"; then
13408                   if test -n "$GCC"; then
13409                     case $host_os in
13410                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13411                     esac
13412                   fi
13413                 fi
13414                 if test -z "$haveit"; then
13415                   for x in $CPPFLAGS $INCINTL; do
13416
13417   acl_save_prefix="$prefix"
13418   prefix="$acl_final_prefix"
13419   acl_save_exec_prefix="$exec_prefix"
13420   exec_prefix="$acl_final_exec_prefix"
13421   eval x=\"$x\"
13422   exec_prefix="$acl_save_exec_prefix"
13423   prefix="$acl_save_prefix"
13424
13425                     if test "X$x" = "X-I$additional_includedir"; then
13426                       haveit=yes
13427                       break
13428                     fi
13429                   done
13430                   if test -z "$haveit"; then
13431                     if test -d "$additional_includedir"; then
13432                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13433                     fi
13434                   fi
13435                 fi
13436               fi
13437             fi
13438                         if test -n "$found_la"; then
13439                                                         save_libdir="$libdir"
13440               case "$found_la" in
13441                 */* | *\\*) . "$found_la" ;;
13442                 *) . "./$found_la" ;;
13443               esac
13444               libdir="$save_libdir"
13445                             for dep in $dependency_libs; do
13446                 case "$dep" in
13447                   -L*)
13448                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13449                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13450                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13451                       haveit=
13452                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13453                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13454                         if test -n "$GCC"; then
13455                           case $host_os in
13456                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13457                           esac
13458                         fi
13459                       fi
13460                       if test -z "$haveit"; then
13461                         haveit=
13462                         for x in $LDFLAGS $LIBINTL; do
13463
13464   acl_save_prefix="$prefix"
13465   prefix="$acl_final_prefix"
13466   acl_save_exec_prefix="$exec_prefix"
13467   exec_prefix="$acl_final_exec_prefix"
13468   eval x=\"$x\"
13469   exec_prefix="$acl_save_exec_prefix"
13470   prefix="$acl_save_prefix"
13471
13472                           if test "X$x" = "X-L$additional_libdir"; then
13473                             haveit=yes
13474                             break
13475                           fi
13476                         done
13477                         if test -z "$haveit"; then
13478                           if test -d "$additional_libdir"; then
13479                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13480                           fi
13481                         fi
13482                         haveit=
13483                         for x in $LDFLAGS $LTLIBINTL; do
13484
13485   acl_save_prefix="$prefix"
13486   prefix="$acl_final_prefix"
13487   acl_save_exec_prefix="$exec_prefix"
13488   exec_prefix="$acl_final_exec_prefix"
13489   eval x=\"$x\"
13490   exec_prefix="$acl_save_exec_prefix"
13491   prefix="$acl_save_prefix"
13492
13493                           if test "X$x" = "X-L$additional_libdir"; then
13494                             haveit=yes
13495                             break
13496                           fi
13497                         done
13498                         if test -z "$haveit"; then
13499                           if test -d "$additional_libdir"; then
13500                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13501                           fi
13502                         fi
13503                       fi
13504                     fi
13505                     ;;
13506                   -R*)
13507                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13508                     if test "$enable_rpath" != no; then
13509                                                                   haveit=
13510                       for x in $rpathdirs; do
13511                         if test "X$x" = "X$dir"; then
13512                           haveit=yes
13513                           break
13514                         fi
13515                       done
13516                       if test -z "$haveit"; then
13517                         rpathdirs="$rpathdirs $dir"
13518                       fi
13519                                                                   haveit=
13520                       for x in $ltrpathdirs; do
13521                         if test "X$x" = "X$dir"; then
13522                           haveit=yes
13523                           break
13524                         fi
13525                       done
13526                       if test -z "$haveit"; then
13527                         ltrpathdirs="$ltrpathdirs $dir"
13528                       fi
13529                     fi
13530                     ;;
13531                   -l*)
13532                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13533                     ;;
13534                   *.la)
13535                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13536                     ;;
13537                   *)
13538                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13539                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13540                     ;;
13541                 esac
13542               done
13543             fi
13544           else
13545                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13546             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13547           fi
13548         fi
13549       fi
13550     done
13551   done
13552   if test "X$rpathdirs" != "X"; then
13553     if test -n "$acl_hardcode_libdir_separator"; then
13554                         alldirs=
13555       for found_dir in $rpathdirs; do
13556         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13557       done
13558             acl_save_libdir="$libdir"
13559       libdir="$alldirs"
13560       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13561       libdir="$acl_save_libdir"
13562       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13563     else
13564             for found_dir in $rpathdirs; do
13565         acl_save_libdir="$libdir"
13566         libdir="$found_dir"
13567         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13568         libdir="$acl_save_libdir"
13569         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13570       done
13571     fi
13572   fi
13573   if test "X$ltrpathdirs" != "X"; then
13574             for found_dir in $ltrpathdirs; do
13575       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13576     done
13577   fi
13578
13579
13580
13581
13582
13583
13584           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13585 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13586 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13587   $as_echo_n "(cached) " >&6
13588 else
13589   gt_save_CPPFLAGS="$CPPFLAGS"
13590             CPPFLAGS="$CPPFLAGS $INCINTL"
13591             gt_save_LIBS="$LIBS"
13592             LIBS="$LIBS $LIBINTL"
13593                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h.  */
13595 #include <libintl.h>
13596 $gt_revision_test_code
13597 extern int _nl_msg_cat_cntr;
13598 extern
13599 #ifdef __cplusplus
13600 "C"
13601 #endif
13602 const char *_nl_expand_alias (const char *);
13603 int
13604 main ()
13605 {
13606 bindtextdomain ("", "");
13607 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13608   ;
13609   return 0;
13610 }
13611 _ACEOF
13612 if ac_fn_c_try_link "$LINENO"; then :
13613   eval "$gt_func_gnugettext_libintl=yes"
13614 else
13615   eval "$gt_func_gnugettext_libintl=no"
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext \
13618     conftest$ac_exeext conftest.$ac_ext
13619                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13620               LIBS="$LIBS $LIBICONV"
13621               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h.  */
13623 #include <libintl.h>
13624 $gt_revision_test_code
13625 extern int _nl_msg_cat_cntr;
13626 extern
13627 #ifdef __cplusplus
13628 "C"
13629 #endif
13630 const char *_nl_expand_alias (const char *);
13631 int
13632 main ()
13633 {
13634 bindtextdomain ("", "");
13635 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13636   ;
13637   return 0;
13638 }
13639 _ACEOF
13640 if ac_fn_c_try_link "$LINENO"; then :
13641   LIBINTL="$LIBINTL $LIBICONV"
13642                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13643                 eval "$gt_func_gnugettext_libintl=yes"
13644
13645 fi
13646 rm -f core conftest.err conftest.$ac_objext \
13647     conftest$ac_exeext conftest.$ac_ext
13648             fi
13649             CPPFLAGS="$gt_save_CPPFLAGS"
13650             LIBS="$gt_save_LIBS"
13651 fi
13652 eval ac_res=\$$gt_func_gnugettext_libintl
13653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13654 $as_echo "$ac_res" >&6; }
13655         fi
13656
13657                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13658            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13659                 && test "$PACKAGE" != gettext-runtime \
13660                 && test "$PACKAGE" != gettext-tools; }; then
13661           gt_use_preinstalled_gnugettext=yes
13662         else
13663                     LIBINTL=
13664           LTLIBINTL=
13665           INCINTL=
13666         fi
13667
13668
13669
13670     if test -n "$INTL_MACOSX_LIBS"; then
13671       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13672          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13673                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13674         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13675       fi
13676     fi
13677
13678     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13679        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13680
13681 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13682
13683     else
13684       USE_NLS=no
13685     fi
13686   fi
13687
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13689 $as_echo_n "checking whether to use NLS... " >&6; }
13690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13691 $as_echo "$USE_NLS" >&6; }
13692   if test "$USE_NLS" = "yes"; then
13693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13694 $as_echo_n "checking where the gettext function comes from... " >&6; }
13695     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13696       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13697         gt_source="external libintl"
13698       else
13699         gt_source="libc"
13700       fi
13701     else
13702       gt_source="included intl directory"
13703     fi
13704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13705 $as_echo "$gt_source" >&6; }
13706   fi
13707
13708   if test "$USE_NLS" = "yes"; then
13709
13710     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13711       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13713 $as_echo_n "checking how to link with libintl... " >&6; }
13714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13715 $as_echo "$LIBINTL" >&6; }
13716
13717   for element in $INCINTL; do
13718     haveit=
13719     for x in $CPPFLAGS; do
13720
13721   acl_save_prefix="$prefix"
13722   prefix="$acl_final_prefix"
13723   acl_save_exec_prefix="$exec_prefix"
13724   exec_prefix="$acl_final_exec_prefix"
13725   eval x=\"$x\"
13726   exec_prefix="$acl_save_exec_prefix"
13727   prefix="$acl_save_prefix"
13728
13729       if test "X$x" = "X$element"; then
13730         haveit=yes
13731         break
13732       fi
13733     done
13734     if test -z "$haveit"; then
13735       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13736     fi
13737   done
13738
13739       fi
13740
13741
13742 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13743
13744
13745 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13746
13747     fi
13748
13749         POSUB=po
13750   fi
13751
13752
13753
13754     INTLLIBS="$LIBINTL"
13755
13756
13757
13758
13759
13760
13761
13762 for ac_prog in 'bison -y' byacc
13763 do
13764   # Extract the first word of "$ac_prog", so it can be a program name with args.
13765 set dummy $ac_prog; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_prog_YACC+:} false; then :
13769   $as_echo_n "(cached) " >&6
13770 else
13771   if test -n "$YACC"; then
13772   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777   IFS=$as_save_IFS
13778   test -z "$as_dir" && as_dir=.
13779     for ac_exec_ext in '' $ac_executable_extensions; do
13780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781     ac_cv_prog_YACC="$ac_prog"
13782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783     break 2
13784   fi
13785 done
13786   done
13787 IFS=$as_save_IFS
13788
13789 fi
13790 fi
13791 YACC=$ac_cv_prog_YACC
13792 if test -n "$YACC"; then
13793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13794 $as_echo "$YACC" >&6; }
13795 else
13796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13798 fi
13799
13800
13801   test -n "$YACC" && break
13802 done
13803 test -n "$YACC" || YACC="yacc"
13804
13805 if test "$YACC" != 'bison -y'; then :
13806
13807         YACC="\${top_srcdir}/build-aux/missing bison -y"
13808         { $as_echo "$as_me:${as_lineno-$LINENO}: no bison program found: only required for maintainers" >&5
13809 $as_echo "$as_me: no bison program found: only required for maintainers" >&6;}
13810
13811 fi
13812  if test "$YACC" = 'bison -y'; then
13813   HAVE_BISON_TRUE=
13814   HAVE_BISON_FALSE='#'
13815 else
13816   HAVE_BISON_TRUE='#'
13817   HAVE_BISON_FALSE=
13818 fi
13819
13820 for ac_prog in flex lex
13821 do
13822   # Extract the first word of "$ac_prog", so it can be a program name with args.
13823 set dummy $ac_prog; ac_word=$2
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13825 $as_echo_n "checking for $ac_word... " >&6; }
13826 if ${ac_cv_prog_LEX+:} false; then :
13827   $as_echo_n "(cached) " >&6
13828 else
13829   if test -n "$LEX"; then
13830   ac_cv_prog_LEX="$LEX" # Let the user override the test.
13831 else
13832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13833 for as_dir in $PATH
13834 do
13835   IFS=$as_save_IFS
13836   test -z "$as_dir" && as_dir=.
13837     for ac_exec_ext in '' $ac_executable_extensions; do
13838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13839     ac_cv_prog_LEX="$ac_prog"
13840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13841     break 2
13842   fi
13843 done
13844   done
13845 IFS=$as_save_IFS
13846
13847 fi
13848 fi
13849 LEX=$ac_cv_prog_LEX
13850 if test -n "$LEX"; then
13851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13852 $as_echo "$LEX" >&6; }
13853 else
13854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855 $as_echo "no" >&6; }
13856 fi
13857
13858
13859   test -n "$LEX" && break
13860 done
13861 test -n "$LEX" || LEX=":"
13862
13863 if test "x$LEX" != "x:"; then
13864   cat >conftest.l <<_ACEOF
13865 %%
13866 a { ECHO; }
13867 b { REJECT; }
13868 c { yymore (); }
13869 d { yyless (1); }
13870 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
13871     yyless ((input () != 0)); }
13872 f { unput (yytext[0]); }
13873 . { BEGIN INITIAL; }
13874 %%
13875 #ifdef YYTEXT_POINTER
13876 extern char *yytext;
13877 #endif
13878 int
13879 main (void)
13880 {
13881   return ! yylex () + ! yywrap ();
13882 }
13883 _ACEOF
13884 { { ac_try="$LEX conftest.l"
13885 case "(($ac_try" in
13886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887   *) ac_try_echo=$ac_try;;
13888 esac
13889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13890 $as_echo "$ac_try_echo"; } >&5
13891   (eval "$LEX conftest.l") 2>&5
13892   ac_status=$?
13893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894   test $ac_status = 0; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13896 $as_echo_n "checking lex output file root... " >&6; }
13897 if ${ac_cv_prog_lex_root+:} false; then :
13898   $as_echo_n "(cached) " >&6
13899 else
13900
13901 if test -f lex.yy.c; then
13902   ac_cv_prog_lex_root=lex.yy
13903 elif test -f lexyy.c; then
13904   ac_cv_prog_lex_root=lexyy
13905 else
13906   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13907 fi
13908 fi
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13910 $as_echo "$ac_cv_prog_lex_root" >&6; }
13911 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13912
13913 if test -z "${LEXLIB+set}"; then
13914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13915 $as_echo_n "checking lex library... " >&6; }
13916 if ${ac_cv_lib_lex+:} false; then :
13917   $as_echo_n "(cached) " >&6
13918 else
13919
13920     ac_save_LIBS=$LIBS
13921     ac_cv_lib_lex='none needed'
13922     for ac_lib in '' -lfl -ll; do
13923       LIBS="$ac_lib $ac_save_LIBS"
13924       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h.  */
13926 `cat $LEX_OUTPUT_ROOT.c`
13927 _ACEOF
13928 if ac_fn_c_try_link "$LINENO"; then :
13929   ac_cv_lib_lex=$ac_lib
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext \
13932     conftest$ac_exeext conftest.$ac_ext
13933       test "$ac_cv_lib_lex" != 'none needed' && break
13934     done
13935     LIBS=$ac_save_LIBS
13936
13937 fi
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13939 $as_echo "$ac_cv_lib_lex" >&6; }
13940   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13941 fi
13942
13943
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13945 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13946 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13947   $as_echo_n "(cached) " >&6
13948 else
13949   # POSIX says lex can declare yytext either as a pointer or an array; the
13950 # default is implementation-dependent.  Figure out which it is, since
13951 # not all implementations provide the %pointer and %array declarations.
13952 ac_cv_prog_lex_yytext_pointer=no
13953 ac_save_LIBS=$LIBS
13954 LIBS="$LEXLIB $ac_save_LIBS"
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h.  */
13957
13958   #define YYTEXT_POINTER 1
13959 `cat $LEX_OUTPUT_ROOT.c`
13960 _ACEOF
13961 if ac_fn_c_try_link "$LINENO"; then :
13962   ac_cv_prog_lex_yytext_pointer=yes
13963 fi
13964 rm -f core conftest.err conftest.$ac_objext \
13965     conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_save_LIBS
13967
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13970 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13971 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13972
13973 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13974
13975 fi
13976 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13977
13978 fi
13979 if test "$LEX" = :; then
13980   LEX=${am_missing_run}flex
13981 fi
13982 ac_ext=c
13983 ac_cpp='$CPP $CPPFLAGS'
13984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13987 if test -n "$ac_tool_prefix"; then
13988   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if ${ac_cv_prog_CC+:} false; then :
13993   $as_echo_n "(cached) " >&6
13994 else
13995   if test -n "$CC"; then
13996   ac_cv_prog_CC="$CC" # Let the user override the test.
13997 else
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14000 do
14001   IFS=$as_save_IFS
14002   test -z "$as_dir" && as_dir=.
14003     for ac_exec_ext in '' $ac_executable_extensions; do
14004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14005     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14007     break 2
14008   fi
14009 done
14010   done
14011 IFS=$as_save_IFS
14012
14013 fi
14014 fi
14015 CC=$ac_cv_prog_CC
14016 if test -n "$CC"; then
14017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14018 $as_echo "$CC" >&6; }
14019 else
14020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14022 fi
14023
14024
14025 fi
14026 if test -z "$ac_cv_prog_CC"; then
14027   ac_ct_CC=$CC
14028   # Extract the first word of "gcc", so it can be a program name with args.
14029 set dummy gcc; ac_word=$2
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14031 $as_echo_n "checking for $ac_word... " >&6; }
14032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14033   $as_echo_n "(cached) " >&6
14034 else
14035   if test -n "$ac_ct_CC"; then
14036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14037 else
14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039 for as_dir in $PATH
14040 do
14041   IFS=$as_save_IFS
14042   test -z "$as_dir" && as_dir=.
14043     for ac_exec_ext in '' $ac_executable_extensions; do
14044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14045     ac_cv_prog_ac_ct_CC="gcc"
14046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14047     break 2
14048   fi
14049 done
14050   done
14051 IFS=$as_save_IFS
14052
14053 fi
14054 fi
14055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14056 if test -n "$ac_ct_CC"; then
14057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14058 $as_echo "$ac_ct_CC" >&6; }
14059 else
14060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14062 fi
14063
14064   if test "x$ac_ct_CC" = x; then
14065     CC=""
14066   else
14067     case $cross_compiling:$ac_tool_warned in
14068 yes:)
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14071 ac_tool_warned=yes ;;
14072 esac
14073     CC=$ac_ct_CC
14074   fi
14075 else
14076   CC="$ac_cv_prog_CC"
14077 fi
14078
14079 if test -z "$CC"; then
14080           if test -n "$ac_tool_prefix"; then
14081     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14082 set dummy ${ac_tool_prefix}cc; ac_word=$2
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14084 $as_echo_n "checking for $ac_word... " >&6; }
14085 if ${ac_cv_prog_CC+:} false; then :
14086   $as_echo_n "(cached) " >&6
14087 else
14088   if test -n "$CC"; then
14089   ac_cv_prog_CC="$CC" # Let the user override the test.
14090 else
14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092 for as_dir in $PATH
14093 do
14094   IFS=$as_save_IFS
14095   test -z "$as_dir" && as_dir=.
14096     for ac_exec_ext in '' $ac_executable_extensions; do
14097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14098     ac_cv_prog_CC="${ac_tool_prefix}cc"
14099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14100     break 2
14101   fi
14102 done
14103   done
14104 IFS=$as_save_IFS
14105
14106 fi
14107 fi
14108 CC=$ac_cv_prog_CC
14109 if test -n "$CC"; then
14110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14111 $as_echo "$CC" >&6; }
14112 else
14113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14115 fi
14116
14117
14118   fi
14119 fi
14120 if test -z "$CC"; then
14121   # Extract the first word of "cc", so it can be a program name with args.
14122 set dummy cc; ac_word=$2
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14124 $as_echo_n "checking for $ac_word... " >&6; }
14125 if ${ac_cv_prog_CC+:} false; then :
14126   $as_echo_n "(cached) " >&6
14127 else
14128   if test -n "$CC"; then
14129   ac_cv_prog_CC="$CC" # Let the user override the test.
14130 else
14131   ac_prog_rejected=no
14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133 for as_dir in $PATH
14134 do
14135   IFS=$as_save_IFS
14136   test -z "$as_dir" && as_dir=.
14137     for ac_exec_ext in '' $ac_executable_extensions; do
14138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14139     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14140        ac_prog_rejected=yes
14141        continue
14142      fi
14143     ac_cv_prog_CC="cc"
14144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14145     break 2
14146   fi
14147 done
14148   done
14149 IFS=$as_save_IFS
14150
14151 if test $ac_prog_rejected = yes; then
14152   # We found a bogon in the path, so make sure we never use it.
14153   set dummy $ac_cv_prog_CC
14154   shift
14155   if test $# != 0; then
14156     # We chose a different compiler from the bogus one.
14157     # However, it has the same basename, so the bogon will be chosen
14158     # first if we set CC to just the basename; use the full file name.
14159     shift
14160     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14161   fi
14162 fi
14163 fi
14164 fi
14165 CC=$ac_cv_prog_CC
14166 if test -n "$CC"; then
14167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14168 $as_echo "$CC" >&6; }
14169 else
14170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 $as_echo "no" >&6; }
14172 fi
14173
14174
14175 fi
14176 if test -z "$CC"; then
14177   if test -n "$ac_tool_prefix"; then
14178   for ac_prog in cl.exe
14179   do
14180     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if ${ac_cv_prog_CC+:} false; then :
14185   $as_echo_n "(cached) " >&6
14186 else
14187   if test -n "$CC"; then
14188   ac_cv_prog_CC="$CC" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14192 do
14193   IFS=$as_save_IFS
14194   test -z "$as_dir" && as_dir=.
14195     for ac_exec_ext in '' $ac_executable_extensions; do
14196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199     break 2
14200   fi
14201 done
14202   done
14203 IFS=$as_save_IFS
14204
14205 fi
14206 fi
14207 CC=$ac_cv_prog_CC
14208 if test -n "$CC"; then
14209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14210 $as_echo "$CC" >&6; }
14211 else
14212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14214 fi
14215
14216
14217     test -n "$CC" && break
14218   done
14219 fi
14220 if test -z "$CC"; then
14221   ac_ct_CC=$CC
14222   for ac_prog in cl.exe
14223 do
14224   # Extract the first word of "$ac_prog", so it can be a program name with args.
14225 set dummy $ac_prog; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14229   $as_echo_n "(cached) " >&6
14230 else
14231   if test -n "$ac_ct_CC"; then
14232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14233 else
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14236 do
14237   IFS=$as_save_IFS
14238   test -z "$as_dir" && as_dir=.
14239     for ac_exec_ext in '' $ac_executable_extensions; do
14240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241     ac_cv_prog_ac_ct_CC="$ac_prog"
14242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243     break 2
14244   fi
14245 done
14246   done
14247 IFS=$as_save_IFS
14248
14249 fi
14250 fi
14251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14252 if test -n "$ac_ct_CC"; then
14253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14254 $as_echo "$ac_ct_CC" >&6; }
14255 else
14256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14258 fi
14259
14260
14261   test -n "$ac_ct_CC" && break
14262 done
14263
14264   if test "x$ac_ct_CC" = x; then
14265     CC=""
14266   else
14267     case $cross_compiling:$ac_tool_warned in
14268 yes:)
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14271 ac_tool_warned=yes ;;
14272 esac
14273     CC=$ac_ct_CC
14274   fi
14275 fi
14276
14277 fi
14278
14279
14280 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14282 as_fn_error $? "no acceptable C compiler found in \$PATH
14283 See \`config.log' for more details" "$LINENO" 5; }
14284
14285 # Provide some information about the compiler.
14286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14287 set X $ac_compile
14288 ac_compiler=$2
14289 for ac_option in --version -v -V -qversion; do
14290   { { ac_try="$ac_compiler $ac_option >&5"
14291 case "(($ac_try" in
14292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293   *) ac_try_echo=$ac_try;;
14294 esac
14295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14296 $as_echo "$ac_try_echo"; } >&5
14297   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14298   ac_status=$?
14299   if test -s conftest.err; then
14300     sed '10a\
14301 ... rest of stderr output deleted ...
14302          10q' conftest.err >conftest.er1
14303     cat conftest.er1 >&5
14304   fi
14305   rm -f conftest.er1 conftest.err
14306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14307   test $ac_status = 0; }
14308 done
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14311 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14312 if ${ac_cv_c_compiler_gnu+:} false; then :
14313   $as_echo_n "(cached) " >&6
14314 else
14315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h.  */
14317
14318 int
14319 main ()
14320 {
14321 #ifndef __GNUC__
14322        choke me
14323 #endif
14324
14325   ;
14326   return 0;
14327 }
14328 _ACEOF
14329 if ac_fn_c_try_compile "$LINENO"; then :
14330   ac_compiler_gnu=yes
14331 else
14332   ac_compiler_gnu=no
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14336
14337 fi
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14339 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14340 if test $ac_compiler_gnu = yes; then
14341   GCC=yes
14342 else
14343   GCC=
14344 fi
14345 ac_test_CFLAGS=${CFLAGS+set}
14346 ac_save_CFLAGS=$CFLAGS
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14348 $as_echo_n "checking whether $CC accepts -g... " >&6; }
14349 if ${ac_cv_prog_cc_g+:} false; then :
14350   $as_echo_n "(cached) " >&6
14351 else
14352   ac_save_c_werror_flag=$ac_c_werror_flag
14353    ac_c_werror_flag=yes
14354    ac_cv_prog_cc_g=no
14355    CFLAGS="-g"
14356    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h.  */
14358
14359 int
14360 main ()
14361 {
14362
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 if ac_fn_c_try_compile "$LINENO"; then :
14368   ac_cv_prog_cc_g=yes
14369 else
14370   CFLAGS=""
14371       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h.  */
14373
14374 int
14375 main ()
14376 {
14377
14378   ;
14379   return 0;
14380 }
14381 _ACEOF
14382 if ac_fn_c_try_compile "$LINENO"; then :
14383
14384 else
14385   ac_c_werror_flag=$ac_save_c_werror_flag
14386          CFLAGS="-g"
14387          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h.  */
14389
14390 int
14391 main ()
14392 {
14393
14394   ;
14395   return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_compile "$LINENO"; then :
14399   ac_cv_prog_cc_g=yes
14400 fi
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 fi
14405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406    ac_c_werror_flag=$ac_save_c_werror_flag
14407 fi
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14409 $as_echo "$ac_cv_prog_cc_g" >&6; }
14410 if test "$ac_test_CFLAGS" = set; then
14411   CFLAGS=$ac_save_CFLAGS
14412 elif test $ac_cv_prog_cc_g = yes; then
14413   if test "$GCC" = yes; then
14414     CFLAGS="-g -O2"
14415   else
14416     CFLAGS="-g"
14417   fi
14418 else
14419   if test "$GCC" = yes; then
14420     CFLAGS="-O2"
14421   else
14422     CFLAGS=
14423   fi
14424 fi
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14426 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14427 if ${ac_cv_prog_cc_c89+:} false; then :
14428   $as_echo_n "(cached) " >&6
14429 else
14430   ac_cv_prog_cc_c89=no
14431 ac_save_CC=$CC
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h.  */
14434 #include <stdarg.h>
14435 #include <stdio.h>
14436 struct stat;
14437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14438 struct buf { int x; };
14439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14440 static char *e (p, i)
14441      char **p;
14442      int i;
14443 {
14444   return p[i];
14445 }
14446 static char *f (char * (*g) (char **, int), char **p, ...)
14447 {
14448   char *s;
14449   va_list v;
14450   va_start (v,p);
14451   s = g (p, va_arg (v,int));
14452   va_end (v);
14453   return s;
14454 }
14455
14456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14457    function prototypes and stuff, but not '\xHH' hex character constants.
14458    These don't provoke an error unfortunately, instead are silently treated
14459    as 'x'.  The following induces an error, until -std is added to get
14460    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14461    array size at least.  It's necessary to write '\x00'==0 to get something
14462    that's true only with -std.  */
14463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14464
14465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14466    inside strings and character constants.  */
14467 #define FOO(x) 'x'
14468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14469
14470 int test (int i, double x);
14471 struct s1 {int (*f) (int a);};
14472 struct s2 {int (*f) (double a);};
14473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14474 int argc;
14475 char **argv;
14476 int
14477 main ()
14478 {
14479 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14480   ;
14481   return 0;
14482 }
14483 _ACEOF
14484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14485         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14486 do
14487   CC="$ac_save_CC $ac_arg"
14488   if ac_fn_c_try_compile "$LINENO"; then :
14489   ac_cv_prog_cc_c89=$ac_arg
14490 fi
14491 rm -f core conftest.err conftest.$ac_objext
14492   test "x$ac_cv_prog_cc_c89" != "xno" && break
14493 done
14494 rm -f conftest.$ac_ext
14495 CC=$ac_save_CC
14496
14497 fi
14498 # AC_CACHE_VAL
14499 case "x$ac_cv_prog_cc_c89" in
14500   x)
14501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14502 $as_echo "none needed" >&6; } ;;
14503   xno)
14504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14505 $as_echo "unsupported" >&6; } ;;
14506   *)
14507     CC="$CC $ac_cv_prog_cc_c89"
14508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14510 esac
14511 if test "x$ac_cv_prog_cc_c89" != xno; then :
14512
14513 fi
14514
14515 ac_ext=c
14516 ac_cpp='$CPP $CPPFLAGS'
14517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14520
14521 ac_ext=c
14522 ac_cpp='$CPP $CPPFLAGS'
14523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14527 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14528 if ${am_cv_prog_cc_c_o+:} false; then :
14529   $as_echo_n "(cached) " >&6
14530 else
14531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h.  */
14533
14534 int
14535 main ()
14536 {
14537
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542   # Make sure it works both with $CC and with simple cc.
14543   # Following AC_PROG_CC_C_O, we do the test twice because some
14544   # compilers refuse to overwrite an existing .o file with -o,
14545   # though they will create one.
14546   am_cv_prog_cc_c_o=yes
14547   for am_i in 1 2; do
14548     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14549    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14550    ac_status=$?
14551    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552    (exit $ac_status); } \
14553          && test -f conftest2.$ac_objext; then
14554       : OK
14555     else
14556       am_cv_prog_cc_c_o=no
14557       break
14558     fi
14559   done
14560   rm -f core conftest*
14561   unset am_i
14562 fi
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14564 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14565 if test "$am_cv_prog_cc_c_o" != yes; then
14566    # Losing compiler, so override with the script.
14567    # FIXME: It is wrong to rewrite CC.
14568    # But if we don't then we get into trouble of one sort or another.
14569    # A longer-term fix would be to have automake use am__CC in this case,
14570    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14571    CC="$am_aux_dir/compile $CC"
14572 fi
14573 ac_ext=c
14574 ac_cpp='$CPP $CPPFLAGS'
14575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14578
14579
14580
14581
14582
14583 save_cross_compiling=$cross_compiling
14584 save_ac_tool_prefix=$ac_tool_prefix
14585 cross_compiling=no
14586 ac_tool_prefix=
14587
14588 ac_ext=c
14589 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
14590 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
14591 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
14592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14593 if test -n "$ac_tool_prefix"; then
14594   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14595 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14597 $as_echo_n "checking for $ac_word... " >&6; }
14598 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
14599   $as_echo_n "(cached) " >&6
14600 else
14601   if test -n "$CC_FOR_BUILD"; then
14602   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14603 else
14604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14605 for as_dir in $PATH
14606 do
14607   IFS=$as_save_IFS
14608   test -z "$as_dir" && as_dir=.
14609     for ac_exec_ext in '' $ac_executable_extensions; do
14610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14611     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
14612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14613     break 2
14614   fi
14615 done
14616   done
14617 IFS=$as_save_IFS
14618
14619 fi
14620 fi
14621 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14622 if test -n "$CC_FOR_BUILD"; then
14623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14624 $as_echo "$CC_FOR_BUILD" >&6; }
14625 else
14626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14628 fi
14629
14630
14631 fi
14632 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
14633   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
14634   # Extract the first word of "gcc", so it can be a program name with args.
14635 set dummy gcc; ac_word=$2
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14637 $as_echo_n "checking for $ac_word... " >&6; }
14638 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
14639   $as_echo_n "(cached) " >&6
14640 else
14641   if test -n "$ac_ct_CC_FOR_BUILD"; then
14642   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
14643 else
14644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14645 for as_dir in $PATH
14646 do
14647   IFS=$as_save_IFS
14648   test -z "$as_dir" && as_dir=.
14649     for ac_exec_ext in '' $ac_executable_extensions; do
14650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14651     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
14652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14653     break 2
14654   fi
14655 done
14656   done
14657 IFS=$as_save_IFS
14658
14659 fi
14660 fi
14661 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
14662 if test -n "$ac_ct_CC_FOR_BUILD"; then
14663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
14664 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
14665 else
14666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667 $as_echo "no" >&6; }
14668 fi
14669
14670   if test "x$ac_ct_CC_FOR_BUILD" = x; then
14671     CC_FOR_BUILD=""
14672   else
14673     case $cross_compiling:$ac_tool_warned in
14674 yes:)
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
14676 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
14677 ac_tool_warned=yes ;;
14678 esac
14679     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
14680   fi
14681 else
14682   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
14683 fi
14684
14685 if test -z "$CC_FOR_BUILD"; then
14686           if test -n "$ac_tool_prefix"; then
14687     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14688 set dummy ${ac_tool_prefix}cc; ac_word=$2
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14690 $as_echo_n "checking for $ac_word... " >&6; }
14691 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
14692   $as_echo_n "(cached) " >&6
14693 else
14694   if test -n "$CC_FOR_BUILD"; then
14695   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14696 else
14697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14698 for as_dir in $PATH
14699 do
14700   IFS=$as_save_IFS
14701   test -z "$as_dir" && as_dir=.
14702     for ac_exec_ext in '' $ac_executable_extensions; do
14703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14704     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
14705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14706     break 2
14707   fi
14708 done
14709   done
14710 IFS=$as_save_IFS
14711
14712 fi
14713 fi
14714 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14715 if test -n "$CC_FOR_BUILD"; then
14716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14717 $as_echo "$CC_FOR_BUILD" >&6; }
14718 else
14719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720 $as_echo "no" >&6; }
14721 fi
14722
14723
14724   fi
14725 fi
14726 if test -z "$CC_FOR_BUILD"; then
14727   # Extract the first word of "cc", so it can be a program name with args.
14728 set dummy cc; ac_word=$2
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14730 $as_echo_n "checking for $ac_word... " >&6; }
14731 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
14732   $as_echo_n "(cached) " >&6
14733 else
14734   if test -n "$CC_FOR_BUILD"; then
14735   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14736 else
14737   ac_prog_rejected=no
14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14740 do
14741   IFS=$as_save_IFS
14742   test -z "$as_dir" && as_dir=.
14743     for ac_exec_ext in '' $ac_executable_extensions; do
14744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14745     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14746        ac_prog_rejected=yes
14747        continue
14748      fi
14749     ac_cv_prog_CC_FOR_BUILD="cc"
14750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14751     break 2
14752   fi
14753 done
14754   done
14755 IFS=$as_save_IFS
14756
14757 if test $ac_prog_rejected = yes; then
14758   # We found a bogon in the path, so make sure we never use it.
14759   set dummy $ac_cv_prog_CC_FOR_BUILD
14760   shift
14761   if test $# != 0; then
14762     # We chose a different compiler from the bogus one.
14763     # However, it has the same basename, so the bogon will be chosen
14764     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
14765     shift
14766     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
14767   fi
14768 fi
14769 fi
14770 fi
14771 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14772 if test -n "$CC_FOR_BUILD"; then
14773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14774 $as_echo "$CC_FOR_BUILD" >&6; }
14775 else
14776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14777 $as_echo "no" >&6; }
14778 fi
14779
14780
14781 fi
14782 if test -z "$CC_FOR_BUILD"; then
14783   if test -n "$ac_tool_prefix"; then
14784   for ac_prog in cl.exe
14785   do
14786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789 $as_echo_n "checking for $ac_word... " >&6; }
14790 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
14791   $as_echo_n "(cached) " >&6
14792 else
14793   if test -n "$CC_FOR_BUILD"; then
14794   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
14795 else
14796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in $PATH
14798 do
14799   IFS=$as_save_IFS
14800   test -z "$as_dir" && as_dir=.
14801     for ac_exec_ext in '' $ac_executable_extensions; do
14802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14803     ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
14804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14805     break 2
14806   fi
14807 done
14808   done
14809 IFS=$as_save_IFS
14810
14811 fi
14812 fi
14813 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
14814 if test -n "$CC_FOR_BUILD"; then
14815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
14816 $as_echo "$CC_FOR_BUILD" >&6; }
14817 else
14818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14819 $as_echo "no" >&6; }
14820 fi
14821
14822
14823     test -n "$CC_FOR_BUILD" && break
14824   done
14825 fi
14826 if test -z "$CC_FOR_BUILD"; then
14827   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
14828   for ac_prog in cl.exe
14829 do
14830   # Extract the first word of "$ac_prog", so it can be a program name with args.
14831 set dummy $ac_prog; ac_word=$2
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14833 $as_echo_n "checking for $ac_word... " >&6; }
14834 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
14835   $as_echo_n "(cached) " >&6
14836 else
14837   if test -n "$ac_ct_CC_FOR_BUILD"; then
14838   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
14839 else
14840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14841 for as_dir in $PATH
14842 do
14843   IFS=$as_save_IFS
14844   test -z "$as_dir" && as_dir=.
14845     for ac_exec_ext in '' $ac_executable_extensions; do
14846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14847     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
14848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14849     break 2
14850   fi
14851 done
14852   done
14853 IFS=$as_save_IFS
14854
14855 fi
14856 fi
14857 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
14858 if test -n "$ac_ct_CC_FOR_BUILD"; then
14859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
14860 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
14861 else
14862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14863 $as_echo "no" >&6; }
14864 fi
14865
14866
14867   test -n "$ac_ct_CC_FOR_BUILD" && break
14868 done
14869
14870   if test "x$ac_ct_CC_FOR_BUILD" = x; then
14871     CC_FOR_BUILD=""
14872   else
14873     case $cross_compiling:$ac_tool_warned in
14874 yes:)
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
14876 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
14877 ac_tool_warned=yes ;;
14878 esac
14879     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
14880   fi
14881 fi
14882
14883 fi
14884
14885
14886 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14888 as_fn_error $? "no acceptable C compiler found in \$PATH
14889 See \`config.log' for more details" "$LINENO" 5; }
14890
14891 # Provide some information about the compiler.
14892 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14893 set X $ac_build_compile
14894 ac_compiler=$2
14895 for ac_option in --version -v -V -qversion; do
14896   { { ac_try="$ac_compiler $ac_option >&5"
14897 case "(($ac_try" in
14898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899   *) ac_try_echo=$ac_try;;
14900 esac
14901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14902 $as_echo "$ac_try_echo"; } >&5
14903   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14904   ac_status=$?
14905   if test -s conftest.err; then
14906     sed '10a\
14907 ... rest of stderr output deleted ...
14908          10q' conftest.err >conftest.er1
14909     cat conftest.er1 >&5
14910   fi
14911   rm -f conftest.er1 conftest.err
14912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14913   test $ac_status = 0; }
14914 done
14915
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14917 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14918 if ${ac_cv_c_compiler_gnu+:} false; then :
14919   $as_echo_n "(cached) " >&6
14920 else
14921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h.  */
14923
14924 int
14925 main ()
14926 {
14927 #ifndef __GNUC__
14928        choke me
14929 #endif
14930
14931   ;
14932   return 0;
14933 }
14934 _ACEOF
14935 if ac_fn_c_try_compile "$LINENO"; then :
14936   ac_compiler_gnu=yes
14937 else
14938   ac_compiler_gnu=no
14939 fi
14940 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
14941 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14942
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14945 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14946 if test $ac_compiler_gnu = yes; then
14947   GCC=yes
14948 else
14949   GCC=
14950 fi
14951 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
14952 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
14954 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
14955 if ${ac_cv_build_prog_cc_g+:} false; then :
14956   $as_echo_n "(cached) " >&6
14957 else
14958   ac_save_c_werror_flag=$ac_c_werror_flag
14959    ac_c_werror_flag=yes
14960    ac_cv_build_prog_cc_g=no
14961    CFLAGS_FOR_BUILD="-g"
14962    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h.  */
14964
14965 int
14966 main ()
14967 {
14968
14969   ;
14970   return 0;
14971 }
14972 _ACEOF
14973 if ac_fn_c_try_compile "$LINENO"; then :
14974   ac_cv_build_prog_cc_g=yes
14975 else
14976   CFLAGS_FOR_BUILD=""
14977       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h.  */
14979
14980 int
14981 main ()
14982 {
14983
14984   ;
14985   return 0;
14986 }
14987 _ACEOF
14988 if ac_fn_c_try_compile "$LINENO"; then :
14989
14990 else
14991   ac_c_werror_flag=$ac_save_c_werror_flag
14992          CFLAGS_FOR_BUILD="-g"
14993          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h.  */
14995
14996 int
14997 main ()
14998 {
14999
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 if ac_fn_c_try_compile "$LINENO"; then :
15005   ac_cv_build_prog_cc_g=yes
15006 fi
15007 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15008 fi
15009 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15010 fi
15011 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
15012    ac_c_werror_flag=$ac_save_c_werror_flag
15013 fi
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
15015 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
15016 if test "$ac_test_CFLAGS" = set; then
15017   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
15018 elif test $ac_cv_build_prog_cc_g = yes; then
15019   if test "$GCC" = yes; then
15020     CFLAGS_FOR_BUILD="-g -O2"
15021   else
15022     CFLAGS_FOR_BUILD="-g"
15023   fi
15024 else
15025   if test "$GCC" = yes; then
15026     CFLAGS_FOR_BUILD="-O2"
15027   else
15028     CFLAGS_FOR_BUILD=
15029   fi
15030 fi
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
15032 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
15033 if ${ac_cv_prog_cc_c89+:} false; then :
15034   $as_echo_n "(cached) " >&6
15035 else
15036   ac_cv_prog_cc_c89=no
15037 ac_save_CC=$CC_FOR_BUILD
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h.  */
15040 #include <stdarg.h>
15041 #include <stdio.h>
15042 struct stat;
15043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15044 struct buf { int x; };
15045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15046 static char *e (p, i)
15047      char **p;
15048      int i;
15049 {
15050   return p[i];
15051 }
15052 static char *f (char * (*g) (char **, int), char **p, ...)
15053 {
15054   char *s;
15055   va_list v;
15056   va_start (v,p);
15057   s = g (p, va_arg (v,int));
15058   va_end (v);
15059   return s;
15060 }
15061
15062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15063    function prototypes and stuff, but not '\xHH' hex character constants.
15064    These don't provoke an error unfortunately, instead are silently treated
15065    as 'x'.  The following induces an error, until -std is added to get
15066    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15067    array size at least.  It's necessary to write '\x00'==0 to get something
15068    that's true only with -std.  */
15069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15070
15071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15072    inside strings and character constants.  */
15073 #define FOO(x) 'x'
15074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15075
15076 int test (int i, double x);
15077 struct s1 {int (*f) (int a);};
15078 struct s2 {int (*f) (double a);};
15079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15080 int argc;
15081 char **argv;
15082 int
15083 main ()
15084 {
15085 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15091         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15092 do
15093   CC_FOR_BUILD="$ac_save_CC $ac_arg"
15094   if ac_fn_c_try_compile "$LINENO"; then :
15095   ac_cv_prog_cc_c89=$ac_arg
15096 fi
15097 rm -f core conftest.err conftest.$ac_build_objext
15098   test "x$ac_cv_prog_cc_c89" != "xno" && break
15099 done
15100 rm -f conftest.$ac_ext
15101 CC_FOR_BUILD=$ac_save_CC
15102
15103 fi
15104 # AC_CACHE_VAL
15105 case "x$ac_cv_prog_cc_c89" in
15106   x)
15107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15108 $as_echo "none needed" >&6; } ;;
15109   xno)
15110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15111 $as_echo "unsupported" >&6; } ;;
15112   *)
15113     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
15114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15115 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15116 esac
15117 if test "x$ac_cv_prog_cc_c89" != xno; then :
15118
15119 fi
15120
15121 ac_ext=c
15122 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15123 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15124 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15126
15127 ac_ext=c
15128 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15129 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15130 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
15133 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
15134 if ${am_cv_prog_cc_c_o+:} false; then :
15135   $as_echo_n "(cached) " >&6
15136 else
15137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h.  */
15139
15140 int
15141 main ()
15142 {
15143
15144   ;
15145   return 0;
15146 }
15147 _ACEOF
15148   # Make sure it works both with $CC and with simple cc.
15149   # Following AC_PROG_CC_C_O, we do the test twice because some
15150   # compilers refuse to overwrite an existing .o file with -o,
15151   # though they will create one.
15152   am_cv_prog_cc_c_o=yes
15153   for am_i in 1 2; do
15154     if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
15155    ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
15156    ac_status=$?
15157    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158    (exit $ac_status); } \
15159          && test -f conftest2.$ac_build_objext; then
15160       : OK
15161     else
15162       am_cv_prog_cc_c_o=no
15163       break
15164     fi
15165   done
15166   rm -f core conftest*
15167   unset am_i
15168 fi
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15170 $as_echo "$am_cv_prog_cc_c_o" >&6; }
15171 if test "$am_cv_prog_cc_c_o" != yes; then
15172    # Losing compiler, so override with the script.
15173    # FIXME: It is wrong to rewrite CC.
15174    # But if we don't then we get into trouble of one sort or another.
15175    # A longer-term fix would be to have automake use am__CC in this case,
15176    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15177    CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
15178 fi
15179 ac_ext=c
15180 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15181 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15182 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15184
15185
15186 ac_ext=c
15187 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15188 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15189 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15192 $as_echo_n "checking how to run the C preprocessor... " >&6; }
15193 # On Suns, sometimes $CPP names a directory.
15194 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
15195   CPP_FOR_BUILD=
15196 fi
15197 if test -z "$CPP_FOR_BUILD"; then
15198   if ${ac_cv_build_prog_CPP+:} false; then :
15199   $as_echo_n "(cached) " >&6
15200 else
15201       # Double quotes because CPP needs to be expanded
15202     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
15203     do
15204       ac_preproc_ok=false
15205 for ac_c_preproc_warn_flag in '' yes
15206 do
15207   # Use a header file that comes with gcc, so configuring glibc
15208   # with a fresh cross-compiler works.
15209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15210   # <limits.h> exists even on freestanding compilers.
15211   # On the NeXT, cc -E runs the code through the compiler's parser,
15212   # not just through cpp. "Syntax error" is here to catch this case.
15213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h.  */
15215 #ifdef __STDC__
15216 # include <limits.h>
15217 #else
15218 # include <assert.h>
15219 #endif
15220                      Syntax error
15221 _ACEOF
15222 if ac_fn_c_try_cpp "$LINENO"; then :
15223
15224 else
15225   # Broken: fails on valid input.
15226 continue
15227 fi
15228 rm -f conftest.err conftest.i conftest.$ac_ext
15229
15230   # OK, works on sane cases.  Now check whether nonexistent headers
15231   # can be detected and how.
15232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h.  */
15234 #include <ac_nonexistent.h>
15235 _ACEOF
15236 if ac_fn_c_try_cpp "$LINENO"; then :
15237   # Broken: success on invalid input.
15238 continue
15239 else
15240   # Passes both tests.
15241 ac_preproc_ok=:
15242 break
15243 fi
15244 rm -f conftest.err conftest.i conftest.$ac_ext
15245
15246 done
15247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15248 rm -f conftest.i conftest.err conftest.$ac_ext
15249 if $ac_preproc_ok; then :
15250   break
15251 fi
15252
15253     done
15254     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
15255
15256 fi
15257   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
15258 else
15259   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
15260 fi
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
15262 $as_echo "$CPP_FOR_BUILD" >&6; }
15263 ac_preproc_ok=false
15264 for ac_c_preproc_warn_flag in '' yes
15265 do
15266   # Use a header file that comes with gcc, so configuring glibc
15267   # with a fresh cross-compiler works.
15268   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15269   # <limits.h> exists even on freestanding compilers.
15270   # On the NeXT, cc -E runs the code through the compiler's parser,
15271   # not just through cpp. "Syntax error" is here to catch this case.
15272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h.  */
15274 #ifdef __STDC__
15275 # include <limits.h>
15276 #else
15277 # include <assert.h>
15278 #endif
15279                      Syntax error
15280 _ACEOF
15281 if ac_fn_c_try_cpp "$LINENO"; then :
15282
15283 else
15284   # Broken: fails on valid input.
15285 continue
15286 fi
15287 rm -f conftest.err conftest.i conftest.$ac_ext
15288
15289   # OK, works on sane cases.  Now check whether nonexistent headers
15290   # can be detected and how.
15291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h.  */
15293 #include <ac_nonexistent.h>
15294 _ACEOF
15295 if ac_fn_c_try_cpp "$LINENO"; then :
15296   # Broken: success on invalid input.
15297 continue
15298 else
15299   # Passes both tests.
15300 ac_preproc_ok=:
15301 break
15302 fi
15303 rm -f conftest.err conftest.i conftest.$ac_ext
15304
15305 done
15306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15307 rm -f conftest.i conftest.err conftest.$ac_ext
15308 if $ac_preproc_ok; then :
15309
15310 else
15311   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15313 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
15314 See \`config.log' for more details" "$LINENO" 5; }
15315 fi
15316
15317 ac_ext=c
15318 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
15319 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
15320 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
15321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15322
15323
15324
15325 ac_tool_prefix=$save_ac_tool_prefix
15326 cross_compiling=$save_cross_compiling
15327
15328
15329 BUILD_EXEEXT=$ac_build_exeext
15330 BUILD_OBJEXT=$ac_build_objext
15331
15332 ac_ext=cpp
15333 ac_cpp='$CXXCPP $CPPFLAGS'
15334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15337 if test -z "$CXX"; then
15338   if test -n "$CCC"; then
15339     CXX=$CCC
15340   else
15341     if test -n "$ac_tool_prefix"; then
15342   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15343   do
15344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15347 $as_echo_n "checking for $ac_word... " >&6; }
15348 if ${ac_cv_prog_CXX+:} false; then :
15349   $as_echo_n "(cached) " >&6
15350 else
15351   if test -n "$CXX"; then
15352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15353 else
15354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15355 for as_dir in $PATH
15356 do
15357   IFS=$as_save_IFS
15358   test -z "$as_dir" && as_dir=.
15359     for ac_exec_ext in '' $ac_executable_extensions; do
15360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15363     break 2
15364   fi
15365 done
15366   done
15367 IFS=$as_save_IFS
15368
15369 fi
15370 fi
15371 CXX=$ac_cv_prog_CXX
15372 if test -n "$CXX"; then
15373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15374 $as_echo "$CXX" >&6; }
15375 else
15376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15378 fi
15379
15380
15381     test -n "$CXX" && break
15382   done
15383 fi
15384 if test -z "$CXX"; then
15385   ac_ct_CXX=$CXX
15386   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15387 do
15388   # Extract the first word of "$ac_prog", so it can be a program name with args.
15389 set dummy $ac_prog; ac_word=$2
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15391 $as_echo_n "checking for $ac_word... " >&6; }
15392 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
15393   $as_echo_n "(cached) " >&6
15394 else
15395   if test -n "$ac_ct_CXX"; then
15396   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15397 else
15398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15399 for as_dir in $PATH
15400 do
15401   IFS=$as_save_IFS
15402   test -z "$as_dir" && as_dir=.
15403     for ac_exec_ext in '' $ac_executable_extensions; do
15404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15405     ac_cv_prog_ac_ct_CXX="$ac_prog"
15406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15407     break 2
15408   fi
15409 done
15410   done
15411 IFS=$as_save_IFS
15412
15413 fi
15414 fi
15415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15416 if test -n "$ac_ct_CXX"; then
15417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15418 $as_echo "$ac_ct_CXX" >&6; }
15419 else
15420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15422 fi
15423
15424
15425   test -n "$ac_ct_CXX" && break
15426 done
15427
15428   if test "x$ac_ct_CXX" = x; then
15429     CXX="g++"
15430   else
15431     case $cross_compiling:$ac_tool_warned in
15432 yes:)
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15435 ac_tool_warned=yes ;;
15436 esac
15437     CXX=$ac_ct_CXX
15438   fi
15439 fi
15440
15441   fi
15442 fi
15443 # Provide some information about the compiler.
15444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15445 set X $ac_compile
15446 ac_compiler=$2
15447 for ac_option in --version -v -V -qversion; do
15448   { { ac_try="$ac_compiler $ac_option >&5"
15449 case "(($ac_try" in
15450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451   *) ac_try_echo=$ac_try;;
15452 esac
15453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15454 $as_echo "$ac_try_echo"; } >&5
15455   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15456   ac_status=$?
15457   if test -s conftest.err; then
15458     sed '10a\
15459 ... rest of stderr output deleted ...
15460          10q' conftest.err >conftest.er1
15461     cat conftest.er1 >&5
15462   fi
15463   rm -f conftest.er1 conftest.err
15464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465   test $ac_status = 0; }
15466 done
15467
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
15469 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
15470 if ${ac_cv_cxx_compiler_gnu+:} false; then :
15471   $as_echo_n "(cached) " >&6
15472 else
15473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h.  */
15475
15476 int
15477 main ()
15478 {
15479 #ifndef __GNUC__
15480        choke me
15481 #endif
15482
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 if ac_fn_cxx_try_compile "$LINENO"; then :
15488   ac_compiler_gnu=yes
15489 else
15490   ac_compiler_gnu=no
15491 fi
15492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15494
15495 fi
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15497 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
15498 if test $ac_compiler_gnu = yes; then
15499   GXX=yes
15500 else
15501   GXX=
15502 fi
15503 ac_test_CXXFLAGS=${CXXFLAGS+set}
15504 ac_save_CXXFLAGS=$CXXFLAGS
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15506 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
15507 if ${ac_cv_prog_cxx_g+:} false; then :
15508   $as_echo_n "(cached) " >&6
15509 else
15510   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15511    ac_cxx_werror_flag=yes
15512    ac_cv_prog_cxx_g=no
15513    CXXFLAGS="-g"
15514    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h.  */
15516
15517 int
15518 main ()
15519 {
15520
15521   ;
15522   return 0;
15523 }
15524 _ACEOF
15525 if ac_fn_cxx_try_compile "$LINENO"; then :
15526   ac_cv_prog_cxx_g=yes
15527 else
15528   CXXFLAGS=""
15529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h.  */
15531
15532 int
15533 main ()
15534 {
15535
15536   ;
15537   return 0;
15538 }
15539 _ACEOF
15540 if ac_fn_cxx_try_compile "$LINENO"; then :
15541
15542 else
15543   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15544          CXXFLAGS="-g"
15545          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h.  */
15547
15548 int
15549 main ()
15550 {
15551
15552   ;
15553   return 0;
15554 }
15555 _ACEOF
15556 if ac_fn_cxx_try_compile "$LINENO"; then :
15557   ac_cv_prog_cxx_g=yes
15558 fi
15559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 fi
15561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15567 $as_echo "$ac_cv_prog_cxx_g" >&6; }
15568 if test "$ac_test_CXXFLAGS" = set; then
15569   CXXFLAGS=$ac_save_CXXFLAGS
15570 elif test $ac_cv_prog_cxx_g = yes; then
15571   if test "$GXX" = yes; then
15572     CXXFLAGS="-g -O2"
15573   else
15574     CXXFLAGS="-g"
15575   fi
15576 else
15577   if test "$GXX" = yes; then
15578     CXXFLAGS="-O2"
15579   else
15580     CXXFLAGS=
15581   fi
15582 fi
15583 ac_ext=c
15584 ac_cpp='$CPP $CPPFLAGS'
15585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15588
15589
15590
15591 func_stripname_cnf ()
15592 {
15593   case ${2} in
15594   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15595   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15596   esac
15597 } # func_stripname_cnf
15598
15599       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15600     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15601     (test "X$CXX" != "Xg++"))) ; then
15602   ac_ext=cpp
15603 ac_cpp='$CXXCPP $CPPFLAGS'
15604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15608 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15609 if test -z "$CXXCPP"; then
15610   if ${ac_cv_prog_CXXCPP+:} false; then :
15611   $as_echo_n "(cached) " >&6
15612 else
15613       # Double quotes because CXXCPP needs to be expanded
15614     for CXXCPP in "$CXX -E" "/lib/cpp"
15615     do
15616       ac_preproc_ok=false
15617 for ac_cxx_preproc_warn_flag in '' yes
15618 do
15619   # Use a header file that comes with gcc, so configuring glibc
15620   # with a fresh cross-compiler works.
15621   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15622   # <limits.h> exists even on freestanding compilers.
15623   # On the NeXT, cc -E runs the code through the compiler's parser,
15624   # not just through cpp. "Syntax error" is here to catch this case.
15625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h.  */
15627 #ifdef __STDC__
15628 # include <limits.h>
15629 #else
15630 # include <assert.h>
15631 #endif
15632                      Syntax error
15633 _ACEOF
15634 if ac_fn_cxx_try_cpp "$LINENO"; then :
15635
15636 else
15637   # Broken: fails on valid input.
15638 continue
15639 fi
15640 rm -f conftest.err conftest.i conftest.$ac_ext
15641
15642   # OK, works on sane cases.  Now check whether nonexistent headers
15643   # can be detected and how.
15644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h.  */
15646 #include <ac_nonexistent.h>
15647 _ACEOF
15648 if ac_fn_cxx_try_cpp "$LINENO"; then :
15649   # Broken: success on invalid input.
15650 continue
15651 else
15652   # Passes both tests.
15653 ac_preproc_ok=:
15654 break
15655 fi
15656 rm -f conftest.err conftest.i conftest.$ac_ext
15657
15658 done
15659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15660 rm -f conftest.i conftest.err conftest.$ac_ext
15661 if $ac_preproc_ok; then :
15662   break
15663 fi
15664
15665     done
15666     ac_cv_prog_CXXCPP=$CXXCPP
15667
15668 fi
15669   CXXCPP=$ac_cv_prog_CXXCPP
15670 else
15671   ac_cv_prog_CXXCPP=$CXXCPP
15672 fi
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15674 $as_echo "$CXXCPP" >&6; }
15675 ac_preproc_ok=false
15676 for ac_cxx_preproc_warn_flag in '' yes
15677 do
15678   # Use a header file that comes with gcc, so configuring glibc
15679   # with a fresh cross-compiler works.
15680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15681   # <limits.h> exists even on freestanding compilers.
15682   # On the NeXT, cc -E runs the code through the compiler's parser,
15683   # not just through cpp. "Syntax error" is here to catch this case.
15684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h.  */
15686 #ifdef __STDC__
15687 # include <limits.h>
15688 #else
15689 # include <assert.h>
15690 #endif
15691                      Syntax error
15692 _ACEOF
15693 if ac_fn_cxx_try_cpp "$LINENO"; then :
15694
15695 else
15696   # Broken: fails on valid input.
15697 continue
15698 fi
15699 rm -f conftest.err conftest.i conftest.$ac_ext
15700
15701   # OK, works on sane cases.  Now check whether nonexistent headers
15702   # can be detected and how.
15703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h.  */
15705 #include <ac_nonexistent.h>
15706 _ACEOF
15707 if ac_fn_cxx_try_cpp "$LINENO"; then :
15708   # Broken: success on invalid input.
15709 continue
15710 else
15711   # Passes both tests.
15712 ac_preproc_ok=:
15713 break
15714 fi
15715 rm -f conftest.err conftest.i conftest.$ac_ext
15716
15717 done
15718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15719 rm -f conftest.i conftest.err conftest.$ac_ext
15720 if $ac_preproc_ok; then :
15721
15722 else
15723   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15725 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15726 See \`config.log' for more details" "$LINENO" 5; }
15727 fi
15728
15729 ac_ext=c
15730 ac_cpp='$CPP $CPPFLAGS'
15731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15734
15735 else
15736   _lt_caught_CXX_error=yes
15737 fi
15738
15739 ac_ext=cpp
15740 ac_cpp='$CXXCPP $CPPFLAGS'
15741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15744
15745 archive_cmds_need_lc_CXX=no
15746 allow_undefined_flag_CXX=
15747 always_export_symbols_CXX=no
15748 archive_expsym_cmds_CXX=
15749 compiler_needs_object_CXX=no
15750 export_dynamic_flag_spec_CXX=
15751 hardcode_direct_CXX=no
15752 hardcode_direct_absolute_CXX=no
15753 hardcode_libdir_flag_spec_CXX=
15754 hardcode_libdir_separator_CXX=
15755 hardcode_minus_L_CXX=no
15756 hardcode_shlibpath_var_CXX=unsupported
15757 hardcode_automatic_CXX=no
15758 inherit_rpath_CXX=no
15759 module_cmds_CXX=
15760 module_expsym_cmds_CXX=
15761 link_all_deplibs_CXX=unknown
15762 old_archive_cmds_CXX=$old_archive_cmds
15763 reload_flag_CXX=$reload_flag
15764 reload_cmds_CXX=$reload_cmds
15765 no_undefined_flag_CXX=
15766 whole_archive_flag_spec_CXX=
15767 enable_shared_with_static_runtimes_CXX=no
15768
15769 # Source file extension for C++ test sources.
15770 ac_ext=cpp
15771
15772 # Object file extension for compiled C++ test sources.
15773 objext=o
15774 objext_CXX=$objext
15775
15776 # No sense in running all these tests if we already determined that
15777 # the CXX compiler isn't working.  Some variables (like enable_shared)
15778 # are currently assumed to apply to all compilers on this platform,
15779 # and will be corrupted by setting them based on a non-working compiler.
15780 if test "$_lt_caught_CXX_error" != yes; then
15781   # Code to be used in simple compile tests
15782   lt_simple_compile_test_code="int some_variable = 0;"
15783
15784   # Code to be used in simple link tests
15785   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15786
15787   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15788
15789
15790
15791
15792
15793
15794 # If no C compiler was specified, use CC.
15795 LTCC=${LTCC-"$CC"}
15796
15797 # If no C compiler flags were specified, use CFLAGS.
15798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15799
15800 # Allow CC to be a program name with arguments.
15801 compiler=$CC
15802
15803
15804   # save warnings/boilerplate of simple test code
15805   ac_outfile=conftest.$ac_objext
15806 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15807 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15808 _lt_compiler_boilerplate=`cat conftest.err`
15809 $RM conftest*
15810
15811   ac_outfile=conftest.$ac_objext
15812 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15813 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15814 _lt_linker_boilerplate=`cat conftest.err`
15815 $RM -r conftest*
15816
15817
15818   # Allow CC to be a program name with arguments.
15819   lt_save_CC=$CC
15820   lt_save_CFLAGS=$CFLAGS
15821   lt_save_LD=$LD
15822   lt_save_GCC=$GCC
15823   GCC=$GXX
15824   lt_save_with_gnu_ld=$with_gnu_ld
15825   lt_save_path_LD=$lt_cv_path_LD
15826   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15827     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15828   else
15829     $as_unset lt_cv_prog_gnu_ld
15830   fi
15831   if test -n "${lt_cv_path_LDCXX+set}"; then
15832     lt_cv_path_LD=$lt_cv_path_LDCXX
15833   else
15834     $as_unset lt_cv_path_LD
15835   fi
15836   test -z "${LDCXX+set}" || LD=$LDCXX
15837   CC=${CXX-"c++"}
15838   CFLAGS=$CXXFLAGS
15839   compiler=$CC
15840   compiler_CXX=$CC
15841   for cc_temp in $compiler""; do
15842   case $cc_temp in
15843     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15844     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15845     \-*) ;;
15846     *) break;;
15847   esac
15848 done
15849 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15850
15851
15852   if test -n "$compiler"; then
15853     # We don't want -fno-exception when compiling C++ code, so set the
15854     # no_builtin_flag separately
15855     if test "$GXX" = yes; then
15856       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15857     else
15858       lt_prog_compiler_no_builtin_flag_CXX=
15859     fi
15860
15861     if test "$GXX" = yes; then
15862       # Set up default GNU C++ configuration
15863
15864
15865
15866 # Check whether --with-gnu-ld was given.
15867 if test "${with_gnu_ld+set}" = set; then :
15868   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15869 else
15870   with_gnu_ld=no
15871 fi
15872
15873 ac_prog=ld
15874 if test "$GCC" = yes; then
15875   # Check if gcc -print-prog-name=ld gives a path.
15876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15877 $as_echo_n "checking for ld used by $CC... " >&6; }
15878   case $host in
15879   *-*-mingw*)
15880     # gcc leaves a trailing carriage return which upsets mingw
15881     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15882   *)
15883     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15884   esac
15885   case $ac_prog in
15886     # Accept absolute paths.
15887     [\\/]* | ?:[\\/]*)
15888       re_direlt='/[^/][^/]*/\.\./'
15889       # Canonicalize the pathname of ld
15890       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15891       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15892         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15893       done
15894       test -z "$LD" && LD="$ac_prog"
15895       ;;
15896   "")
15897     # If it fails, then pretend we aren't using GCC.
15898     ac_prog=ld
15899     ;;
15900   *)
15901     # If it is relative, then search for the first ld in PATH.
15902     with_gnu_ld=unknown
15903     ;;
15904   esac
15905 elif test "$with_gnu_ld" = yes; then
15906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15907 $as_echo_n "checking for GNU ld... " >&6; }
15908 else
15909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15910 $as_echo_n "checking for non-GNU ld... " >&6; }
15911 fi
15912 if ${lt_cv_path_LD+:} false; then :
15913   $as_echo_n "(cached) " >&6
15914 else
15915   if test -z "$LD"; then
15916   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15917   for ac_dir in $PATH; do
15918     IFS="$lt_save_ifs"
15919     test -z "$ac_dir" && ac_dir=.
15920     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15921       lt_cv_path_LD="$ac_dir/$ac_prog"
15922       # Check to see if the program is GNU ld.  I'd rather use --version,
15923       # but apparently some variants of GNU ld only accept -v.
15924       # Break only if it was the GNU/non-GNU ld that we prefer.
15925       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15926       *GNU* | *'with BFD'*)
15927         test "$with_gnu_ld" != no && break
15928         ;;
15929       *)
15930         test "$with_gnu_ld" != yes && break
15931         ;;
15932       esac
15933     fi
15934   done
15935   IFS="$lt_save_ifs"
15936 else
15937   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15938 fi
15939 fi
15940
15941 LD="$lt_cv_path_LD"
15942 if test -n "$LD"; then
15943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15944 $as_echo "$LD" >&6; }
15945 else
15946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947 $as_echo "no" >&6; }
15948 fi
15949 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15952 if ${lt_cv_prog_gnu_ld+:} false; then :
15953   $as_echo_n "(cached) " >&6
15954 else
15955   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15956 case `$LD -v 2>&1 </dev/null` in
15957 *GNU* | *'with BFD'*)
15958   lt_cv_prog_gnu_ld=yes
15959   ;;
15960 *)
15961   lt_cv_prog_gnu_ld=no
15962   ;;
15963 esac
15964 fi
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15966 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15967 with_gnu_ld=$lt_cv_prog_gnu_ld
15968
15969
15970
15971
15972
15973
15974
15975       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15976       # archiving commands below assume that GNU ld is being used.
15977       if test "$with_gnu_ld" = yes; then
15978         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15979         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15980
15981         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15982         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15983
15984         # If archive_cmds runs LD, not CC, wlarc should be empty
15985         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15986         #     investigate it a little bit more. (MM)
15987         wlarc='${wl}'
15988
15989         # ancient GNU ld didn't support --whole-archive et. al.
15990         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15991           $GREP 'no-whole-archive' > /dev/null; then
15992           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15993         else
15994           whole_archive_flag_spec_CXX=
15995         fi
15996       else
15997         with_gnu_ld=no
15998         wlarc=
15999
16000         # A generic and very simple default shared library creation
16001         # command for GNU C++ for the case where it uses the native
16002         # linker, instead of GNU ld.  If possible, this setting should
16003         # overridden to take advantage of the native linker features on
16004         # the platform it is being used on.
16005         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16006       fi
16007
16008       # Commands to make compiler produce verbose output that lists
16009       # what "hidden" libraries, object files and flags are used when
16010       # linking a shared library.
16011       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16012
16013     else
16014       GXX=no
16015       with_gnu_ld=no
16016       wlarc=
16017     fi
16018
16019     # PORTME: fill in a description of your system's C++ link characteristics
16020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16022     ld_shlibs_CXX=yes
16023     case $host_os in
16024       aix3*)
16025         # FIXME: insert proper C++ library support
16026         ld_shlibs_CXX=no
16027         ;;
16028       aix[4-9]*)
16029         if test "$host_cpu" = ia64; then
16030           # On IA64, the linker does run time linking by default, so we don't
16031           # have to do anything special.
16032           aix_use_runtimelinking=no
16033           exp_sym_flag='-Bexport'
16034           no_entry_flag=""
16035         else
16036           aix_use_runtimelinking=no
16037
16038           # Test if we are trying to use run time linking or normal
16039           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16040           # need to do runtime linking.
16041           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16042             for ld_flag in $LDFLAGS; do
16043               case $ld_flag in
16044               *-brtl*)
16045                 aix_use_runtimelinking=yes
16046                 break
16047                 ;;
16048               esac
16049             done
16050             ;;
16051           esac
16052
16053           exp_sym_flag='-bexport'
16054           no_entry_flag='-bnoentry'
16055         fi
16056
16057         # When large executables or shared objects are built, AIX ld can
16058         # have problems creating the table of contents.  If linking a library
16059         # or program results in "error TOC overflow" add -mminimal-toc to
16060         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16061         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16062
16063         archive_cmds_CXX=''
16064         hardcode_direct_CXX=yes
16065         hardcode_direct_absolute_CXX=yes
16066         hardcode_libdir_separator_CXX=':'
16067         link_all_deplibs_CXX=yes
16068         file_list_spec_CXX='${wl}-f,'
16069
16070         if test "$GXX" = yes; then
16071           case $host_os in aix4.[012]|aix4.[012].*)
16072           # We only want to do this on AIX 4.2 and lower, the check
16073           # below for broken collect2 doesn't work under 4.3+
16074           collect2name=`${CC} -print-prog-name=collect2`
16075           if test -f "$collect2name" &&
16076              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16077           then
16078             # We have reworked collect2
16079             :
16080           else
16081             # We have old collect2
16082             hardcode_direct_CXX=unsupported
16083             # It fails to find uninstalled libraries when the uninstalled
16084             # path is not listed in the libpath.  Setting hardcode_minus_L
16085             # to unsupported forces relinking
16086             hardcode_minus_L_CXX=yes
16087             hardcode_libdir_flag_spec_CXX='-L$libdir'
16088             hardcode_libdir_separator_CXX=
16089           fi
16090           esac
16091           shared_flag='-shared'
16092           if test "$aix_use_runtimelinking" = yes; then
16093             shared_flag="$shared_flag "'${wl}-G'
16094           fi
16095         else
16096           # not using gcc
16097           if test "$host_cpu" = ia64; then
16098           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16099           # chokes on -Wl,-G. The following line is correct:
16100           shared_flag='-G'
16101           else
16102             if test "$aix_use_runtimelinking" = yes; then
16103               shared_flag='${wl}-G'
16104             else
16105               shared_flag='${wl}-bM:SRE'
16106             fi
16107           fi
16108         fi
16109
16110         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16111         # It seems that -bexpall does not export symbols beginning with
16112         # underscore (_), so it is better to generate a list of symbols to
16113         # export.
16114         always_export_symbols_CXX=yes
16115         if test "$aix_use_runtimelinking" = yes; then
16116           # Warning - without using the other runtime loading flags (-brtl),
16117           # -berok will link without error, but may produce a broken library.
16118           allow_undefined_flag_CXX='-berok'
16119           # Determine the default libpath from the value encoded in an empty
16120           # executable.
16121           if test "${lt_cv_aix_libpath+set}" = set; then
16122   aix_libpath=$lt_cv_aix_libpath
16123 else
16124   if ${lt_cv_aix_libpath__CXX+:} false; then :
16125   $as_echo_n "(cached) " >&6
16126 else
16127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h.  */
16129
16130 int
16131 main ()
16132 {
16133
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 if ac_fn_cxx_try_link "$LINENO"; then :
16139
16140   lt_aix_libpath_sed='
16141       /Import File Strings/,/^$/ {
16142           /^0/ {
16143               s/^0  *\([^ ]*\) *$/\1/
16144               p
16145           }
16146       }'
16147   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16148   # Check for a 64-bit object if we didn't find anything.
16149   if test -z "$lt_cv_aix_libpath__CXX"; then
16150     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16151   fi
16152 fi
16153 rm -f core conftest.err conftest.$ac_objext \
16154     conftest$ac_exeext conftest.$ac_ext
16155   if test -z "$lt_cv_aix_libpath__CXX"; then
16156     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16157   fi
16158
16159 fi
16160
16161   aix_libpath=$lt_cv_aix_libpath__CXX
16162 fi
16163
16164           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16165
16166           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16167         else
16168           if test "$host_cpu" = ia64; then
16169             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16170             allow_undefined_flag_CXX="-z nodefs"
16171             archive_expsym_cmds_CXX="\$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"
16172           else
16173             # Determine the default libpath from the value encoded in an
16174             # empty executable.
16175             if test "${lt_cv_aix_libpath+set}" = set; then
16176   aix_libpath=$lt_cv_aix_libpath
16177 else
16178   if ${lt_cv_aix_libpath__CXX+:} false; then :
16179   $as_echo_n "(cached) " >&6
16180 else
16181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h.  */
16183
16184 int
16185 main ()
16186 {
16187
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 if ac_fn_cxx_try_link "$LINENO"; then :
16193
16194   lt_aix_libpath_sed='
16195       /Import File Strings/,/^$/ {
16196           /^0/ {
16197               s/^0  *\([^ ]*\) *$/\1/
16198               p
16199           }
16200       }'
16201   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16202   # Check for a 64-bit object if we didn't find anything.
16203   if test -z "$lt_cv_aix_libpath__CXX"; then
16204     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16205   fi
16206 fi
16207 rm -f core conftest.err conftest.$ac_objext \
16208     conftest$ac_exeext conftest.$ac_ext
16209   if test -z "$lt_cv_aix_libpath__CXX"; then
16210     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16211   fi
16212
16213 fi
16214
16215   aix_libpath=$lt_cv_aix_libpath__CXX
16216 fi
16217
16218             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16219             # Warning - without using the other run time loading flags,
16220             # -berok will link without error, but may produce a broken library.
16221             no_undefined_flag_CXX=' ${wl}-bernotok'
16222             allow_undefined_flag_CXX=' ${wl}-berok'
16223             if test "$with_gnu_ld" = yes; then
16224               # We only use this code for GNU lds that support --whole-archive.
16225               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16226             else
16227               # Exported symbols can be pulled into shared objects from archives
16228               whole_archive_flag_spec_CXX='$convenience'
16229             fi
16230             archive_cmds_need_lc_CXX=yes
16231             # This is similar to how AIX traditionally builds its shared
16232             # libraries.
16233             archive_expsym_cmds_CXX="\$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'
16234           fi
16235         fi
16236         ;;
16237
16238       beos*)
16239         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16240           allow_undefined_flag_CXX=unsupported
16241           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16242           # support --undefined.  This deserves some investigation.  FIXME
16243           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244         else
16245           ld_shlibs_CXX=no
16246         fi
16247         ;;
16248
16249       chorus*)
16250         case $cc_basename in
16251           *)
16252           # FIXME: insert proper C++ library support
16253           ld_shlibs_CXX=no
16254           ;;
16255         esac
16256         ;;
16257
16258       cygwin* | mingw* | pw32* | cegcc*)
16259         case $GXX,$cc_basename in
16260         ,cl* | no,cl*)
16261           # Native MSVC
16262           # hardcode_libdir_flag_spec is actually meaningless, as there is
16263           # no search path for DLLs.
16264           hardcode_libdir_flag_spec_CXX=' '
16265           allow_undefined_flag_CXX=unsupported
16266           always_export_symbols_CXX=yes
16267           file_list_spec_CXX='@'
16268           # Tell ltmain to make .lib files, not .a files.
16269           libext=lib
16270           # Tell ltmain to make .dll files, not .so files.
16271           shrext_cmds=".dll"
16272           # FIXME: Setting linknames here is a bad hack.
16273           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16274           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16275               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16276             else
16277               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16278             fi~
16279             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16280             linknames='
16281           # The linker will not automatically build a static lib if we build a DLL.
16282           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16283           enable_shared_with_static_runtimes_CXX=yes
16284           # Don't use ranlib
16285           old_postinstall_cmds_CXX='chmod 644 $oldlib'
16286           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16287             lt_tool_outputfile="@TOOL_OUTPUT@"~
16288             case $lt_outputfile in
16289               *.exe|*.EXE) ;;
16290               *)
16291                 lt_outputfile="$lt_outputfile.exe"
16292                 lt_tool_outputfile="$lt_tool_outputfile.exe"
16293                 ;;
16294             esac~
16295             func_to_tool_file "$lt_outputfile"~
16296             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16297               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16298               $RM "$lt_outputfile.manifest";
16299             fi'
16300           ;;
16301         *)
16302           # g++
16303           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16304           # as there is no search path for DLLs.
16305           hardcode_libdir_flag_spec_CXX='-L$libdir'
16306           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16307           allow_undefined_flag_CXX=unsupported
16308           always_export_symbols_CXX=no
16309           enable_shared_with_static_runtimes_CXX=yes
16310
16311           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16312             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16313             # If the export-symbols file already is a .def file (1st line
16314             # is EXPORTS), use it as is; otherwise, prepend...
16315             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16316               cp $export_symbols $output_objdir/$soname.def;
16317             else
16318               echo EXPORTS > $output_objdir/$soname.def;
16319               cat $export_symbols >> $output_objdir/$soname.def;
16320             fi~
16321             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16322           else
16323             ld_shlibs_CXX=no
16324           fi
16325           ;;
16326         esac
16327         ;;
16328       darwin* | rhapsody*)
16329
16330
16331   archive_cmds_need_lc_CXX=no
16332   hardcode_direct_CXX=no
16333   hardcode_automatic_CXX=yes
16334   hardcode_shlibpath_var_CXX=unsupported
16335   if test "$lt_cv_ld_force_load" = "yes"; then
16336     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16337
16338   else
16339     whole_archive_flag_spec_CXX=''
16340   fi
16341   link_all_deplibs_CXX=yes
16342   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16343   case $cc_basename in
16344      ifort*) _lt_dar_can_shared=yes ;;
16345      *) _lt_dar_can_shared=$GCC ;;
16346   esac
16347   if test "$_lt_dar_can_shared" = "yes"; then
16348     output_verbose_link_cmd=func_echo_all
16349     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16350     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16351     archive_expsym_cmds_CXX="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}"
16352     module_expsym_cmds_CXX="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}"
16353        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16354       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
16355       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
16356     fi
16357
16358   else
16359   ld_shlibs_CXX=no
16360   fi
16361
16362         ;;
16363
16364       dgux*)
16365         case $cc_basename in
16366           ec++*)
16367             # FIXME: insert proper C++ library support
16368             ld_shlibs_CXX=no
16369             ;;
16370           ghcx*)
16371             # Green Hills C++ Compiler
16372             # FIXME: insert proper C++ library support
16373             ld_shlibs_CXX=no
16374             ;;
16375           *)
16376             # FIXME: insert proper C++ library support
16377             ld_shlibs_CXX=no
16378             ;;
16379         esac
16380         ;;
16381
16382       freebsd2.*)
16383         # C++ shared libraries reported to be fairly broken before
16384         # switch to ELF
16385         ld_shlibs_CXX=no
16386         ;;
16387
16388       freebsd-elf*)
16389         archive_cmds_need_lc_CXX=no
16390         ;;
16391
16392       freebsd* | dragonfly*)
16393         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16394         # conventions
16395         ld_shlibs_CXX=yes
16396         ;;
16397
16398       haiku*)
16399         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16400         link_all_deplibs_CXX=yes
16401         ;;
16402
16403       hpux9*)
16404         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16405         hardcode_libdir_separator_CXX=:
16406         export_dynamic_flag_spec_CXX='${wl}-E'
16407         hardcode_direct_CXX=yes
16408         hardcode_minus_L_CXX=yes # Not in the search PATH,
16409                                              # but as the default
16410                                              # location of the library.
16411
16412         case $cc_basename in
16413           CC*)
16414             # FIXME: insert proper C++ library support
16415             ld_shlibs_CXX=no
16416             ;;
16417           aCC*)
16418             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16419             # Commands to make compiler produce verbose output that lists
16420             # what "hidden" libraries, object files and flags are used when
16421             # linking a shared library.
16422             #
16423             # There doesn't appear to be a way to prevent this compiler from
16424             # explicitly linking system object files so we need to strip them
16425             # from the output so that they don't get included in the library
16426             # dependencies.
16427             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16428             ;;
16429           *)
16430             if test "$GXX" = yes; then
16431               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16432             else
16433               # FIXME: insert proper C++ library support
16434               ld_shlibs_CXX=no
16435             fi
16436             ;;
16437         esac
16438         ;;
16439
16440       hpux10*|hpux11*)
16441         if test $with_gnu_ld = no; then
16442           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16443           hardcode_libdir_separator_CXX=:
16444
16445           case $host_cpu in
16446             hppa*64*|ia64*)
16447               ;;
16448             *)
16449               export_dynamic_flag_spec_CXX='${wl}-E'
16450               ;;
16451           esac
16452         fi
16453         case $host_cpu in
16454           hppa*64*|ia64*)
16455             hardcode_direct_CXX=no
16456             hardcode_shlibpath_var_CXX=no
16457             ;;
16458           *)
16459             hardcode_direct_CXX=yes
16460             hardcode_direct_absolute_CXX=yes
16461             hardcode_minus_L_CXX=yes # Not in the search PATH,
16462                                                  # but as the default
16463                                                  # location of the library.
16464             ;;
16465         esac
16466
16467         case $cc_basename in
16468           CC*)
16469             # FIXME: insert proper C++ library support
16470             ld_shlibs_CXX=no
16471             ;;
16472           aCC*)
16473             case $host_cpu in
16474               hppa*64*)
16475                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16476                 ;;
16477               ia64*)
16478                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16479                 ;;
16480               *)
16481                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16482                 ;;
16483             esac
16484             # Commands to make compiler produce verbose output that lists
16485             # what "hidden" libraries, object files and flags are used when
16486             # linking a shared library.
16487             #
16488             # There doesn't appear to be a way to prevent this compiler from
16489             # explicitly linking system object files so we need to strip them
16490             # from the output so that they don't get included in the library
16491             # dependencies.
16492             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16493             ;;
16494           *)
16495             if test "$GXX" = yes; then
16496               if test $with_gnu_ld = no; then
16497                 case $host_cpu in
16498                   hppa*64*)
16499                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16500                     ;;
16501                   ia64*)
16502                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16503                     ;;
16504                   *)
16505                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16506                     ;;
16507                 esac
16508               fi
16509             else
16510               # FIXME: insert proper C++ library support
16511               ld_shlibs_CXX=no
16512             fi
16513             ;;
16514         esac
16515         ;;
16516
16517       interix[3-9]*)
16518         hardcode_direct_CXX=no
16519         hardcode_shlibpath_var_CXX=no
16520         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16521         export_dynamic_flag_spec_CXX='${wl}-E'
16522         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16523         # Instead, shared libraries are loaded at an image base (0x10000000 by
16524         # default) and relocated if they conflict, which is a slow very memory
16525         # consuming and fragmenting process.  To avoid this, we pick a random,
16526         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16527         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16528         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16529         archive_expsym_cmds_CXX='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'
16530         ;;
16531       irix5* | irix6*)
16532         case $cc_basename in
16533           CC*)
16534             # SGI C++
16535             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16536
16537             # Archives containing C++ object files must be created using
16538             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16539             # necessary to make sure instantiated templates are included
16540             # in the archive.
16541             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16542             ;;
16543           *)
16544             if test "$GXX" = yes; then
16545               if test "$with_gnu_ld" = no; then
16546                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16547               else
16548                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
16549               fi
16550             fi
16551             link_all_deplibs_CXX=yes
16552             ;;
16553         esac
16554         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16555         hardcode_libdir_separator_CXX=:
16556         inherit_rpath_CXX=yes
16557         ;;
16558
16559       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16560         case $cc_basename in
16561           KCC*)
16562             # Kuck and Associates, Inc. (KAI) C++ Compiler
16563
16564             # KCC will only create a shared library if the output file
16565             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16566             # to its proper name (with version) after linking.
16567             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16568             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16569             # Commands to make compiler produce verbose output that lists
16570             # what "hidden" libraries, object files and flags are used when
16571             # linking a shared library.
16572             #
16573             # There doesn't appear to be a way to prevent this compiler from
16574             # explicitly linking system object files so we need to strip them
16575             # from the output so that they don't get included in the library
16576             # dependencies.
16577             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16578
16579             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16580             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16581
16582             # Archives containing C++ object files must be created using
16583             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16584             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16585             ;;
16586           icpc* | ecpc* )
16587             # Intel C++
16588             with_gnu_ld=yes
16589             # version 8.0 and above of icpc choke on multiply defined symbols
16590             # if we add $predep_objects and $postdep_objects, however 7.1 and
16591             # earlier do not add the objects themselves.
16592             case `$CC -V 2>&1` in
16593               *"Version 7."*)
16594                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16595                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16596                 ;;
16597               *)  # Version 8.0 or newer
16598                 tmp_idyn=
16599                 case $host_cpu in
16600                   ia64*) tmp_idyn=' -i_dynamic';;
16601                 esac
16602                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16603                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16604                 ;;
16605             esac
16606             archive_cmds_need_lc_CXX=no
16607             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16608             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16609             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16610             ;;
16611           pgCC* | pgcpp*)
16612             # Portland Group C++ compiler
16613             case `$CC -V` in
16614             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16615               prelink_cmds_CXX='tpldir=Template.dir~
16616                 rm -rf $tpldir~
16617                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16618                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16619               old_archive_cmds_CXX='tpldir=Template.dir~
16620                 rm -rf $tpldir~
16621                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16622                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16623                 $RANLIB $oldlib'
16624               archive_cmds_CXX='tpldir=Template.dir~
16625                 rm -rf $tpldir~
16626                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16627                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16628               archive_expsym_cmds_CXX='tpldir=Template.dir~
16629                 rm -rf $tpldir~
16630                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16631                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16632               ;;
16633             *) # Version 6 and above use weak symbols
16634               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16635               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16636               ;;
16637             esac
16638
16639             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16640             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16641             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16642             ;;
16643           cxx*)
16644             # Compaq C++
16645             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16646             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16647
16648             runpath_var=LD_RUN_PATH
16649             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16650             hardcode_libdir_separator_CXX=:
16651
16652             # Commands to make compiler produce verbose output that lists
16653             # what "hidden" libraries, object files and flags are used when
16654             # linking a shared library.
16655             #
16656             # There doesn't appear to be a way to prevent this compiler from
16657             # explicitly linking system object files so we need to strip them
16658             # from the output so that they don't get included in the library
16659             # dependencies.
16660             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16661             ;;
16662           xl* | mpixl* | bgxl*)
16663             # IBM XL 8.0 on PPC, with GNU ld
16664             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16665             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16666             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16667             if test "x$supports_anon_versioning" = xyes; then
16668               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16669                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16670                 echo "local: *; };" >> $output_objdir/$libname.ver~
16671                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16672             fi
16673             ;;
16674           *)
16675             case `$CC -V 2>&1 | sed 5q` in
16676             *Sun\ C*)
16677               # Sun C++ 5.9
16678               no_undefined_flag_CXX=' -zdefs'
16679               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16680               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16681               hardcode_libdir_flag_spec_CXX='-R$libdir'
16682               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16683               compiler_needs_object_CXX=yes
16684
16685               # Not sure whether something based on
16686               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16687               # would be better.
16688               output_verbose_link_cmd='func_echo_all'
16689
16690               # Archives containing C++ object files must be created using
16691               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16692               # necessary to make sure instantiated templates are included
16693               # in the archive.
16694               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16695               ;;
16696             esac
16697             ;;
16698         esac
16699         ;;
16700
16701       lynxos*)
16702         # FIXME: insert proper C++ library support
16703         ld_shlibs_CXX=no
16704         ;;
16705
16706       m88k*)
16707         # FIXME: insert proper C++ library support
16708         ld_shlibs_CXX=no
16709         ;;
16710
16711       mvs*)
16712         case $cc_basename in
16713           cxx*)
16714             # FIXME: insert proper C++ library support
16715             ld_shlibs_CXX=no
16716             ;;
16717           *)
16718             # FIXME: insert proper C++ library support
16719             ld_shlibs_CXX=no
16720             ;;
16721         esac
16722         ;;
16723
16724       netbsd*)
16725         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16726           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16727           wlarc=
16728           hardcode_libdir_flag_spec_CXX='-R$libdir'
16729           hardcode_direct_CXX=yes
16730           hardcode_shlibpath_var_CXX=no
16731         fi
16732         # Workaround some broken pre-1.5 toolchains
16733         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16734         ;;
16735
16736       *nto* | *qnx*)
16737         ld_shlibs_CXX=yes
16738         ;;
16739
16740       openbsd2*)
16741         # C++ shared libraries are fairly broken
16742         ld_shlibs_CXX=no
16743         ;;
16744
16745       openbsd*)
16746         if test -f /usr/libexec/ld.so; then
16747           hardcode_direct_CXX=yes
16748           hardcode_shlibpath_var_CXX=no
16749           hardcode_direct_absolute_CXX=yes
16750           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16751           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16752           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16753             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16754             export_dynamic_flag_spec_CXX='${wl}-E'
16755             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16756           fi
16757           output_verbose_link_cmd=func_echo_all
16758         else
16759           ld_shlibs_CXX=no
16760         fi
16761         ;;
16762
16763       osf3* | osf4* | osf5*)
16764         case $cc_basename in
16765           KCC*)
16766             # Kuck and Associates, Inc. (KAI) C++ Compiler
16767
16768             # KCC will only create a shared library if the output file
16769             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16770             # to its proper name (with version) after linking.
16771             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16772
16773             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16774             hardcode_libdir_separator_CXX=:
16775
16776             # Archives containing C++ object files must be created using
16777             # the KAI C++ compiler.
16778             case $host in
16779               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16780               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16781             esac
16782             ;;
16783           RCC*)
16784             # Rational C++ 2.4.1
16785             # FIXME: insert proper C++ library support
16786             ld_shlibs_CXX=no
16787             ;;
16788           cxx*)
16789             case $host in
16790               osf3*)
16791                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16792                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16793                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16794                 ;;
16795               *)
16796                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16797                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16798                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16799                   echo "-hidden">> $lib.exp~
16800                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
16801                   $RM $lib.exp'
16802                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16803                 ;;
16804             esac
16805
16806             hardcode_libdir_separator_CXX=:
16807
16808             # Commands to make compiler produce verbose output that lists
16809             # what "hidden" libraries, object files and flags are used when
16810             # linking a shared library.
16811             #
16812             # There doesn't appear to be a way to prevent this compiler from
16813             # explicitly linking system object files so we need to strip them
16814             # from the output so that they don't get included in the library
16815             # dependencies.
16816             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16817             ;;
16818           *)
16819             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16820               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16821               case $host in
16822                 osf3*)
16823                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16824                   ;;
16825                 *)
16826                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16827                   ;;
16828               esac
16829
16830               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16831               hardcode_libdir_separator_CXX=:
16832
16833               # Commands to make compiler produce verbose output that lists
16834               # what "hidden" libraries, object files and flags are used when
16835               # linking a shared library.
16836               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16837
16838             else
16839               # FIXME: insert proper C++ library support
16840               ld_shlibs_CXX=no
16841             fi
16842             ;;
16843         esac
16844         ;;
16845
16846       psos*)
16847         # FIXME: insert proper C++ library support
16848         ld_shlibs_CXX=no
16849         ;;
16850
16851       sunos4*)
16852         case $cc_basename in
16853           CC*)
16854             # Sun C++ 4.x
16855             # FIXME: insert proper C++ library support
16856             ld_shlibs_CXX=no
16857             ;;
16858           lcc*)
16859             # Lucid
16860             # FIXME: insert proper C++ library support
16861             ld_shlibs_CXX=no
16862             ;;
16863           *)
16864             # FIXME: insert proper C++ library support
16865             ld_shlibs_CXX=no
16866             ;;
16867         esac
16868         ;;
16869
16870       solaris*)
16871         case $cc_basename in
16872           CC* | sunCC*)
16873             # Sun C++ 4.2, 5.x and Centerline C++
16874             archive_cmds_need_lc_CXX=yes
16875             no_undefined_flag_CXX=' -zdefs'
16876             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16877             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16878               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16879
16880             hardcode_libdir_flag_spec_CXX='-R$libdir'
16881             hardcode_shlibpath_var_CXX=no
16882             case $host_os in
16883               solaris2.[0-5] | solaris2.[0-5].*) ;;
16884               *)
16885                 # The compiler driver will combine and reorder linker options,
16886                 # but understands `-z linker_flag'.
16887                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16888                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16889                 ;;
16890             esac
16891             link_all_deplibs_CXX=yes
16892
16893             output_verbose_link_cmd='func_echo_all'
16894
16895             # Archives containing C++ object files must be created using
16896             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16897             # necessary to make sure instantiated templates are included
16898             # in the archive.
16899             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16900             ;;
16901           gcx*)
16902             # Green Hills C++ Compiler
16903             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16904
16905             # The C++ compiler must be used to create the archive.
16906             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16907             ;;
16908           *)
16909             # GNU C++ compiler with Solaris linker
16910             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16911               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16912               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16913                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16914                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16915                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16916
16917                 # Commands to make compiler produce verbose output that lists
16918                 # what "hidden" libraries, object files and flags are used when
16919                 # linking a shared library.
16920                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16921               else
16922                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16923                 # platform.
16924                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16925                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16926                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16927
16928                 # Commands to make compiler produce verbose output that lists
16929                 # what "hidden" libraries, object files and flags are used when
16930                 # linking a shared library.
16931                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16932               fi
16933
16934               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16935               case $host_os in
16936                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16937                 *)
16938                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16939                   ;;
16940               esac
16941             fi
16942             ;;
16943         esac
16944         ;;
16945
16946     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16947       no_undefined_flag_CXX='${wl}-z,text'
16948       archive_cmds_need_lc_CXX=no
16949       hardcode_shlibpath_var_CXX=no
16950       runpath_var='LD_RUN_PATH'
16951
16952       case $cc_basename in
16953         CC*)
16954           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16955           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16956           ;;
16957         *)
16958           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16959           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16960           ;;
16961       esac
16962       ;;
16963
16964       sysv5* | sco3.2v5* | sco5v6*)
16965         # Note: We can NOT use -z defs as we might desire, because we do not
16966         # link with -lc, and that would cause any symbols used from libc to
16967         # always be unresolved, which means just about no library would
16968         # ever link correctly.  If we're not using GNU ld we use -z text
16969         # though, which does catch some bad symbols but isn't as heavy-handed
16970         # as -z defs.
16971         no_undefined_flag_CXX='${wl}-z,text'
16972         allow_undefined_flag_CXX='${wl}-z,nodefs'
16973         archive_cmds_need_lc_CXX=no
16974         hardcode_shlibpath_var_CXX=no
16975         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16976         hardcode_libdir_separator_CXX=':'
16977         link_all_deplibs_CXX=yes
16978         export_dynamic_flag_spec_CXX='${wl}-Bexport'
16979         runpath_var='LD_RUN_PATH'
16980
16981         case $cc_basename in
16982           CC*)
16983             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16984             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16985             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16986               '"$old_archive_cmds_CXX"
16987             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16988               '"$reload_cmds_CXX"
16989             ;;
16990           *)
16991             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16992             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16993             ;;
16994         esac
16995       ;;
16996
16997       tandem*)
16998         case $cc_basename in
16999           NCC*)
17000             # NonStop-UX NCC 3.20
17001             # FIXME: insert proper C++ library support
17002             ld_shlibs_CXX=no
17003             ;;
17004           *)
17005             # FIXME: insert proper C++ library support
17006             ld_shlibs_CXX=no
17007             ;;
17008         esac
17009         ;;
17010
17011       vxworks*)
17012         # FIXME: insert proper C++ library support
17013         ld_shlibs_CXX=no
17014         ;;
17015
17016       *)
17017         # FIXME: insert proper C++ library support
17018         ld_shlibs_CXX=no
17019         ;;
17020     esac
17021
17022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17023 $as_echo "$ld_shlibs_CXX" >&6; }
17024     test "$ld_shlibs_CXX" = no && can_build_shared=no
17025
17026     GCC_CXX="$GXX"
17027     LD_CXX="$LD"
17028
17029     ## CAVEAT EMPTOR:
17030     ## There is no encapsulation within the following macros, do not change
17031     ## the running order or otherwise move them around unless you know exactly
17032     ## what you are doing...
17033     # Dependencies to place before and after the object being linked:
17034 predep_objects_CXX=
17035 postdep_objects_CXX=
17036 predeps_CXX=
17037 postdeps_CXX=
17038 compiler_lib_search_path_CXX=
17039
17040 cat > conftest.$ac_ext <<_LT_EOF
17041 class Foo
17042 {
17043 public:
17044   Foo (void) { a = 0; }
17045 private:
17046   int a;
17047 };
17048 _LT_EOF
17049
17050
17051 _lt_libdeps_save_CFLAGS=$CFLAGS
17052 case "$CC $CFLAGS " in #(
17053 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17054 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17055 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17056 esac
17057
17058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17059   (eval $ac_compile) 2>&5
17060   ac_status=$?
17061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17062   test $ac_status = 0; }; then
17063   # Parse the compiler output and extract the necessary
17064   # objects, libraries and library flags.
17065
17066   # Sentinel used to keep track of whether or not we are before
17067   # the conftest object file.
17068   pre_test_object_deps_done=no
17069
17070   for p in `eval "$output_verbose_link_cmd"`; do
17071     case ${prev}${p} in
17072
17073     -L* | -R* | -l*)
17074        # Some compilers place space between "-{L,R}" and the path.
17075        # Remove the space.
17076        if test $p = "-L" ||
17077           test $p = "-R"; then
17078          prev=$p
17079          continue
17080        fi
17081
17082        # Expand the sysroot to ease extracting the directories later.
17083        if test -z "$prev"; then
17084          case $p in
17085          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17086          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17087          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17088          esac
17089        fi
17090        case $p in
17091        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17092        esac
17093        if test "$pre_test_object_deps_done" = no; then
17094          case ${prev} in
17095          -L | -R)
17096            # Internal compiler library paths should come after those
17097            # provided the user.  The postdeps already come after the
17098            # user supplied libs so there is no need to process them.
17099            if test -z "$compiler_lib_search_path_CXX"; then
17100              compiler_lib_search_path_CXX="${prev}${p}"
17101            else
17102              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17103            fi
17104            ;;
17105          # The "-l" case would never come before the object being
17106          # linked, so don't bother handling this case.
17107          esac
17108        else
17109          if test -z "$postdeps_CXX"; then
17110            postdeps_CXX="${prev}${p}"
17111          else
17112            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17113          fi
17114        fi
17115        prev=
17116        ;;
17117
17118     *.lto.$objext) ;; # Ignore GCC LTO objects
17119     *.$objext)
17120        # This assumes that the test object file only shows up
17121        # once in the compiler output.
17122        if test "$p" = "conftest.$objext"; then
17123          pre_test_object_deps_done=yes
17124          continue
17125        fi
17126
17127        if test "$pre_test_object_deps_done" = no; then
17128          if test -z "$predep_objects_CXX"; then
17129            predep_objects_CXX="$p"
17130          else
17131            predep_objects_CXX="$predep_objects_CXX $p"
17132          fi
17133        else
17134          if test -z "$postdep_objects_CXX"; then
17135            postdep_objects_CXX="$p"
17136          else
17137            postdep_objects_CXX="$postdep_objects_CXX $p"
17138          fi
17139        fi
17140        ;;
17141
17142     *) ;; # Ignore the rest.
17143
17144     esac
17145   done
17146
17147   # Clean up.
17148   rm -f a.out a.exe
17149 else
17150   echo "libtool.m4: error: problem compiling CXX test program"
17151 fi
17152
17153 $RM -f confest.$objext
17154 CFLAGS=$_lt_libdeps_save_CFLAGS
17155
17156 # PORTME: override above test on systems where it is broken
17157 case $host_os in
17158 interix[3-9]*)
17159   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17160   # hack all around it, let's just trust "g++" to DTRT.
17161   predep_objects_CXX=
17162   postdep_objects_CXX=
17163   postdeps_CXX=
17164   ;;
17165
17166 linux*)
17167   case `$CC -V 2>&1 | sed 5q` in
17168   *Sun\ C*)
17169     # Sun C++ 5.9
17170
17171     # The more standards-conforming stlport4 library is
17172     # incompatible with the Cstd library. Avoid specifying
17173     # it if it's in CXXFLAGS. Ignore libCrun as
17174     # -library=stlport4 depends on it.
17175     case " $CXX $CXXFLAGS " in
17176     *" -library=stlport4 "*)
17177       solaris_use_stlport4=yes
17178       ;;
17179     esac
17180
17181     if test "$solaris_use_stlport4" != yes; then
17182       postdeps_CXX='-library=Cstd -library=Crun'
17183     fi
17184     ;;
17185   esac
17186   ;;
17187
17188 solaris*)
17189   case $cc_basename in
17190   CC* | sunCC*)
17191     # The more standards-conforming stlport4 library is
17192     # incompatible with the Cstd library. Avoid specifying
17193     # it if it's in CXXFLAGS. Ignore libCrun as
17194     # -library=stlport4 depends on it.
17195     case " $CXX $CXXFLAGS " in
17196     *" -library=stlport4 "*)
17197       solaris_use_stlport4=yes
17198       ;;
17199     esac
17200
17201     # Adding this requires a known-good setup of shared libraries for
17202     # Sun compiler versions before 5.6, else PIC objects from an old
17203     # archive will be linked into the output, leading to subtle bugs.
17204     if test "$solaris_use_stlport4" != yes; then
17205       postdeps_CXX='-library=Cstd -library=Crun'
17206     fi
17207     ;;
17208   esac
17209   ;;
17210 esac
17211
17212
17213 case " $postdeps_CXX " in
17214 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17215 esac
17216  compiler_lib_search_dirs_CXX=
17217 if test -n "${compiler_lib_search_path_CXX}"; then
17218  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17219 fi
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251     lt_prog_compiler_wl_CXX=
17252 lt_prog_compiler_pic_CXX=
17253 lt_prog_compiler_static_CXX=
17254
17255
17256   # C++ specific cases for pic, static, wl, etc.
17257   if test "$GXX" = yes; then
17258     lt_prog_compiler_wl_CXX='-Wl,'
17259     lt_prog_compiler_static_CXX='-static'
17260
17261     case $host_os in
17262     aix*)
17263       # All AIX code is PIC.
17264       if test "$host_cpu" = ia64; then
17265         # AIX 5 now supports IA64 processor
17266         lt_prog_compiler_static_CXX='-Bstatic'
17267       fi
17268       ;;
17269
17270     amigaos*)
17271       case $host_cpu in
17272       powerpc)
17273             # see comment about AmigaOS4 .so support
17274             lt_prog_compiler_pic_CXX='-fPIC'
17275         ;;
17276       m68k)
17277             # FIXME: we need at least 68020 code to build shared libraries, but
17278             # adding the `-m68020' flag to GCC prevents building anything better,
17279             # like `-m68040'.
17280             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17281         ;;
17282       esac
17283       ;;
17284
17285     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17286       # PIC is the default for these OSes.
17287       ;;
17288     mingw* | cygwin* | os2* | pw32* | cegcc*)
17289       # This hack is so that the source file can tell whether it is being
17290       # built for inclusion in a dll (and should export symbols for example).
17291       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17292       # (--disable-auto-import) libraries
17293       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17294       ;;
17295     darwin* | rhapsody*)
17296       # PIC is the default on this platform
17297       # Common symbols not allowed in MH_DYLIB files
17298       lt_prog_compiler_pic_CXX='-fno-common'
17299       ;;
17300     *djgpp*)
17301       # DJGPP does not support shared libraries at all
17302       lt_prog_compiler_pic_CXX=
17303       ;;
17304     haiku*)
17305       # PIC is the default for Haiku.
17306       # The "-static" flag exists, but is broken.
17307       lt_prog_compiler_static_CXX=
17308       ;;
17309     interix[3-9]*)
17310       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17311       # Instead, we relocate shared libraries at runtime.
17312       ;;
17313     sysv4*MP*)
17314       if test -d /usr/nec; then
17315         lt_prog_compiler_pic_CXX=-Kconform_pic
17316       fi
17317       ;;
17318     hpux*)
17319       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17320       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17321       # sets the default TLS model and affects inlining.
17322       case $host_cpu in
17323       hppa*64*)
17324         ;;
17325       *)
17326         lt_prog_compiler_pic_CXX='-fPIC'
17327         ;;
17328       esac
17329       ;;
17330     *qnx* | *nto*)
17331       # QNX uses GNU C++, but need to define -shared option too, otherwise
17332       # it will coredump.
17333       lt_prog_compiler_pic_CXX='-fPIC -shared'
17334       ;;
17335     *)
17336       lt_prog_compiler_pic_CXX='-fPIC'
17337       ;;
17338     esac
17339   else
17340     case $host_os in
17341       aix[4-9]*)
17342         # All AIX code is PIC.
17343         if test "$host_cpu" = ia64; then
17344           # AIX 5 now supports IA64 processor
17345           lt_prog_compiler_static_CXX='-Bstatic'
17346         else
17347           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17348         fi
17349         ;;
17350       chorus*)
17351         case $cc_basename in
17352         cxch68*)
17353           # Green Hills C++ Compiler
17354           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17355           ;;
17356         esac
17357         ;;
17358       mingw* | cygwin* | os2* | pw32* | cegcc*)
17359         # This hack is so that the source file can tell whether it is being
17360         # built for inclusion in a dll (and should export symbols for example).
17361         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17362         ;;
17363       dgux*)
17364         case $cc_basename in
17365           ec++*)
17366             lt_prog_compiler_pic_CXX='-KPIC'
17367             ;;
17368           ghcx*)
17369             # Green Hills C++ Compiler
17370             lt_prog_compiler_pic_CXX='-pic'
17371             ;;
17372           *)
17373             ;;
17374         esac
17375         ;;
17376       freebsd* | dragonfly*)
17377         # FreeBSD uses GNU C++
17378         ;;
17379       hpux9* | hpux10* | hpux11*)
17380         case $cc_basename in
17381           CC*)
17382             lt_prog_compiler_wl_CXX='-Wl,'
17383             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17384             if test "$host_cpu" != ia64; then
17385               lt_prog_compiler_pic_CXX='+Z'
17386             fi
17387             ;;
17388           aCC*)
17389             lt_prog_compiler_wl_CXX='-Wl,'
17390             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17391             case $host_cpu in
17392             hppa*64*|ia64*)
17393               # +Z the default
17394               ;;
17395             *)
17396               lt_prog_compiler_pic_CXX='+Z'
17397               ;;
17398             esac
17399             ;;
17400           *)
17401             ;;
17402         esac
17403         ;;
17404       interix*)
17405         # This is c89, which is MS Visual C++ (no shared libs)
17406         # Anyone wants to do a port?
17407         ;;
17408       irix5* | irix6* | nonstopux*)
17409         case $cc_basename in
17410           CC*)
17411             lt_prog_compiler_wl_CXX='-Wl,'
17412             lt_prog_compiler_static_CXX='-non_shared'
17413             # CC pic flag -KPIC is the default.
17414             ;;
17415           *)
17416             ;;
17417         esac
17418         ;;
17419       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17420         case $cc_basename in
17421           KCC*)
17422             # KAI C++ Compiler
17423             lt_prog_compiler_wl_CXX='--backend -Wl,'
17424             lt_prog_compiler_pic_CXX='-fPIC'
17425             ;;
17426           ecpc* )
17427             # old Intel C++ for x86_64 which still supported -KPIC.
17428             lt_prog_compiler_wl_CXX='-Wl,'
17429             lt_prog_compiler_pic_CXX='-KPIC'
17430             lt_prog_compiler_static_CXX='-static'
17431             ;;
17432           icpc* )
17433             # Intel C++, used to be incompatible with GCC.
17434             # ICC 10 doesn't accept -KPIC any more.
17435             lt_prog_compiler_wl_CXX='-Wl,'
17436             lt_prog_compiler_pic_CXX='-fPIC'
17437             lt_prog_compiler_static_CXX='-static'
17438             ;;
17439           pgCC* | pgcpp*)
17440             # Portland Group C++ compiler
17441             lt_prog_compiler_wl_CXX='-Wl,'
17442             lt_prog_compiler_pic_CXX='-fpic'
17443             lt_prog_compiler_static_CXX='-Bstatic'
17444             ;;
17445           cxx*)
17446             # Compaq C++
17447             # Make sure the PIC flag is empty.  It appears that all Alpha
17448             # Linux and Compaq Tru64 Unix objects are PIC.
17449             lt_prog_compiler_pic_CXX=
17450             lt_prog_compiler_static_CXX='-non_shared'
17451             ;;
17452           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17453             # IBM XL 8.0, 9.0 on PPC and BlueGene
17454             lt_prog_compiler_wl_CXX='-Wl,'
17455             lt_prog_compiler_pic_CXX='-qpic'
17456             lt_prog_compiler_static_CXX='-qstaticlink'
17457             ;;
17458           *)
17459             case `$CC -V 2>&1 | sed 5q` in
17460             *Sun\ C*)
17461               # Sun C++ 5.9
17462               lt_prog_compiler_pic_CXX='-KPIC'
17463               lt_prog_compiler_static_CXX='-Bstatic'
17464               lt_prog_compiler_wl_CXX='-Qoption ld '
17465               ;;
17466             esac
17467             ;;
17468         esac
17469         ;;
17470       lynxos*)
17471         ;;
17472       m88k*)
17473         ;;
17474       mvs*)
17475         case $cc_basename in
17476           cxx*)
17477             lt_prog_compiler_pic_CXX='-W c,exportall'
17478             ;;
17479           *)
17480             ;;
17481         esac
17482         ;;
17483       netbsd* | netbsdelf*-gnu)
17484         ;;
17485       *qnx* | *nto*)
17486         # QNX uses GNU C++, but need to define -shared option too, otherwise
17487         # it will coredump.
17488         lt_prog_compiler_pic_CXX='-fPIC -shared'
17489         ;;
17490       osf3* | osf4* | osf5*)
17491         case $cc_basename in
17492           KCC*)
17493             lt_prog_compiler_wl_CXX='--backend -Wl,'
17494             ;;
17495           RCC*)
17496             # Rational C++ 2.4.1
17497             lt_prog_compiler_pic_CXX='-pic'
17498             ;;
17499           cxx*)
17500             # Digital/Compaq C++
17501             lt_prog_compiler_wl_CXX='-Wl,'
17502             # Make sure the PIC flag is empty.  It appears that all Alpha
17503             # Linux and Compaq Tru64 Unix objects are PIC.
17504             lt_prog_compiler_pic_CXX=
17505             lt_prog_compiler_static_CXX='-non_shared'
17506             ;;
17507           *)
17508             ;;
17509         esac
17510         ;;
17511       psos*)
17512         ;;
17513       solaris*)
17514         case $cc_basename in
17515           CC* | sunCC*)
17516             # Sun C++ 4.2, 5.x and Centerline C++
17517             lt_prog_compiler_pic_CXX='-KPIC'
17518             lt_prog_compiler_static_CXX='-Bstatic'
17519             lt_prog_compiler_wl_CXX='-Qoption ld '
17520             ;;
17521           gcx*)
17522             # Green Hills C++ Compiler
17523             lt_prog_compiler_pic_CXX='-PIC'
17524             ;;
17525           *)
17526             ;;
17527         esac
17528         ;;
17529       sunos4*)
17530         case $cc_basename in
17531           CC*)
17532             # Sun C++ 4.x
17533             lt_prog_compiler_pic_CXX='-pic'
17534             lt_prog_compiler_static_CXX='-Bstatic'
17535             ;;
17536           lcc*)
17537             # Lucid
17538             lt_prog_compiler_pic_CXX='-pic'
17539             ;;
17540           *)
17541             ;;
17542         esac
17543         ;;
17544       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17545         case $cc_basename in
17546           CC*)
17547             lt_prog_compiler_wl_CXX='-Wl,'
17548             lt_prog_compiler_pic_CXX='-KPIC'
17549             lt_prog_compiler_static_CXX='-Bstatic'
17550             ;;
17551         esac
17552         ;;
17553       tandem*)
17554         case $cc_basename in
17555           NCC*)
17556             # NonStop-UX NCC 3.20
17557             lt_prog_compiler_pic_CXX='-KPIC'
17558             ;;
17559           *)
17560             ;;
17561         esac
17562         ;;
17563       vxworks*)
17564         ;;
17565       *)
17566         lt_prog_compiler_can_build_shared_CXX=no
17567         ;;
17568     esac
17569   fi
17570
17571 case $host_os in
17572   # For platforms which do not support PIC, -DPIC is meaningless:
17573   *djgpp*)
17574     lt_prog_compiler_pic_CXX=
17575     ;;
17576   *)
17577     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17578     ;;
17579 esac
17580
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17582 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17583 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17584   $as_echo_n "(cached) " >&6
17585 else
17586   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17587 fi
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17589 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17590 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17591
17592 #
17593 # Check to make sure the PIC flag actually works.
17594 #
17595 if test -n "$lt_prog_compiler_pic_CXX"; then
17596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17597 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17598 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17599   $as_echo_n "(cached) " >&6
17600 else
17601   lt_cv_prog_compiler_pic_works_CXX=no
17602    ac_outfile=conftest.$ac_objext
17603    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17604    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17605    # Insert the option either (1) after the last *FLAGS variable, or
17606    # (2) before a word containing "conftest.", or (3) at the end.
17607    # Note that $ac_compile itself does not contain backslashes and begins
17608    # with a dollar sign (not a hyphen), so the echo should work correctly.
17609    # The option is referenced via a variable to avoid confusing sed.
17610    lt_compile=`echo "$ac_compile" | $SED \
17611    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17612    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17613    -e 's:$: $lt_compiler_flag:'`
17614    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17615    (eval "$lt_compile" 2>conftest.err)
17616    ac_status=$?
17617    cat conftest.err >&5
17618    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619    if (exit $ac_status) && test -s "$ac_outfile"; then
17620      # The compiler can only warn and ignore the option if not recognized
17621      # So say no if there are warnings other than the usual output.
17622      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17623      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17624      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17625        lt_cv_prog_compiler_pic_works_CXX=yes
17626      fi
17627    fi
17628    $RM conftest*
17629
17630 fi
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17632 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17633
17634 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17635     case $lt_prog_compiler_pic_CXX in
17636      "" | " "*) ;;
17637      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17638      esac
17639 else
17640     lt_prog_compiler_pic_CXX=
17641      lt_prog_compiler_can_build_shared_CXX=no
17642 fi
17643
17644 fi
17645
17646
17647
17648
17649
17650 #
17651 # Check to make sure the static flag actually works.
17652 #
17653 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17655 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17656 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17657   $as_echo_n "(cached) " >&6
17658 else
17659   lt_cv_prog_compiler_static_works_CXX=no
17660    save_LDFLAGS="$LDFLAGS"
17661    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17662    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17663    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17664      # The linker can only warn and ignore the option if not recognized
17665      # So say no if there are warnings
17666      if test -s conftest.err; then
17667        # Append any errors to the config.log.
17668        cat conftest.err 1>&5
17669        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17670        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17671        if diff conftest.exp conftest.er2 >/dev/null; then
17672          lt_cv_prog_compiler_static_works_CXX=yes
17673        fi
17674      else
17675        lt_cv_prog_compiler_static_works_CXX=yes
17676      fi
17677    fi
17678    $RM -r conftest*
17679    LDFLAGS="$save_LDFLAGS"
17680
17681 fi
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17683 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17684
17685 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17686     :
17687 else
17688     lt_prog_compiler_static_CXX=
17689 fi
17690
17691
17692
17693
17694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17695 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17696 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17697   $as_echo_n "(cached) " >&6
17698 else
17699   lt_cv_prog_compiler_c_o_CXX=no
17700    $RM -r conftest 2>/dev/null
17701    mkdir conftest
17702    cd conftest
17703    mkdir out
17704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17705
17706    lt_compiler_flag="-o out/conftest2.$ac_objext"
17707    # Insert the option either (1) after the last *FLAGS variable, or
17708    # (2) before a word containing "conftest.", or (3) at the end.
17709    # Note that $ac_compile itself does not contain backslashes and begins
17710    # with a dollar sign (not a hyphen), so the echo should work correctly.
17711    lt_compile=`echo "$ac_compile" | $SED \
17712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17714    -e 's:$: $lt_compiler_flag:'`
17715    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17716    (eval "$lt_compile" 2>out/conftest.err)
17717    ac_status=$?
17718    cat out/conftest.err >&5
17719    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17721    then
17722      # The compiler can only warn and ignore the option if not recognized
17723      # So say no if there are warnings
17724      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17725      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17726      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17727        lt_cv_prog_compiler_c_o_CXX=yes
17728      fi
17729    fi
17730    chmod u+w . 2>&5
17731    $RM conftest*
17732    # SGI C++ compiler will create directory out/ii_files/ for
17733    # template instantiation
17734    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17735    $RM out/* && rmdir out
17736    cd ..
17737    $RM -r conftest
17738    $RM conftest*
17739
17740 fi
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17742 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17743
17744
17745
17746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17748 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17749   $as_echo_n "(cached) " >&6
17750 else
17751   lt_cv_prog_compiler_c_o_CXX=no
17752    $RM -r conftest 2>/dev/null
17753    mkdir conftest
17754    cd conftest
17755    mkdir out
17756    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17757
17758    lt_compiler_flag="-o out/conftest2.$ac_objext"
17759    # Insert the option either (1) after the last *FLAGS variable, or
17760    # (2) before a word containing "conftest.", or (3) at the end.
17761    # Note that $ac_compile itself does not contain backslashes and begins
17762    # with a dollar sign (not a hyphen), so the echo should work correctly.
17763    lt_compile=`echo "$ac_compile" | $SED \
17764    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17765    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17766    -e 's:$: $lt_compiler_flag:'`
17767    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17768    (eval "$lt_compile" 2>out/conftest.err)
17769    ac_status=$?
17770    cat out/conftest.err >&5
17771    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17773    then
17774      # The compiler can only warn and ignore the option if not recognized
17775      # So say no if there are warnings
17776      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17777      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17778      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17779        lt_cv_prog_compiler_c_o_CXX=yes
17780      fi
17781    fi
17782    chmod u+w . 2>&5
17783    $RM conftest*
17784    # SGI C++ compiler will create directory out/ii_files/ for
17785    # template instantiation
17786    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17787    $RM out/* && rmdir out
17788    cd ..
17789    $RM -r conftest
17790    $RM conftest*
17791
17792 fi
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17794 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17795
17796
17797
17798
17799 hard_links="nottested"
17800 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17801   # do not overwrite the value of need_locks provided by the user
17802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17803 $as_echo_n "checking if we can lock with hard links... " >&6; }
17804   hard_links=yes
17805   $RM conftest*
17806   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17807   touch conftest.a
17808   ln conftest.a conftest.b 2>&5 || hard_links=no
17809   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17811 $as_echo "$hard_links" >&6; }
17812   if test "$hard_links" = no; then
17813     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17814 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17815     need_locks=warn
17816   fi
17817 else
17818   need_locks=no
17819 fi
17820
17821
17822
17823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17825
17826   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17827   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17828   case $host_os in
17829   aix[4-9]*)
17830     # If we're using GNU nm, then we don't want the "-C" option.
17831     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17832     # Also, AIX nm treats weak defined symbols like other global defined
17833     # symbols, whereas GNU nm marks them as "W".
17834     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17835       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17836     else
17837       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17838     fi
17839     ;;
17840   pw32*)
17841     export_symbols_cmds_CXX="$ltdll_cmds"
17842     ;;
17843   cygwin* | mingw* | cegcc*)
17844     case $cc_basename in
17845     cl*)
17846       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17847       ;;
17848     *)
17849       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17850       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17851       ;;
17852     esac
17853     ;;
17854   linux* | k*bsd*-gnu | gnu*)
17855     link_all_deplibs_CXX=no
17856     ;;
17857   *)
17858     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17859     ;;
17860   esac
17861
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17863 $as_echo "$ld_shlibs_CXX" >&6; }
17864 test "$ld_shlibs_CXX" = no && can_build_shared=no
17865
17866 with_gnu_ld_CXX=$with_gnu_ld
17867
17868
17869
17870
17871
17872
17873 #
17874 # Do we need to explicitly link libc?
17875 #
17876 case "x$archive_cmds_need_lc_CXX" in
17877 x|xyes)
17878   # Assume -lc should be added
17879   archive_cmds_need_lc_CXX=yes
17880
17881   if test "$enable_shared" = yes && test "$GCC" = yes; then
17882     case $archive_cmds_CXX in
17883     *'~'*)
17884       # FIXME: we may have to deal with multi-command sequences.
17885       ;;
17886     '$CC '*)
17887       # Test whether the compiler implicitly links with -lc since on some
17888       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17889       # to ld, don't add -lc before -lgcc.
17890       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17891 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17892 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17893   $as_echo_n "(cached) " >&6
17894 else
17895   $RM conftest*
17896         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17897
17898         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17899   (eval $ac_compile) 2>&5
17900   ac_status=$?
17901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17902   test $ac_status = 0; } 2>conftest.err; then
17903           soname=conftest
17904           lib=conftest
17905           libobjs=conftest.$ac_objext
17906           deplibs=
17907           wl=$lt_prog_compiler_wl_CXX
17908           pic_flag=$lt_prog_compiler_pic_CXX
17909           compiler_flags=-v
17910           linker_flags=-v
17911           verstring=
17912           output_objdir=.
17913           libname=conftest
17914           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17915           allow_undefined_flag_CXX=
17916           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17917   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17918   ac_status=$?
17919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17920   test $ac_status = 0; }
17921           then
17922             lt_cv_archive_cmds_need_lc_CXX=no
17923           else
17924             lt_cv_archive_cmds_need_lc_CXX=yes
17925           fi
17926           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17927         else
17928           cat conftest.err 1>&5
17929         fi
17930         $RM conftest*
17931
17932 fi
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17934 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17935       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17936       ;;
17937     esac
17938   fi
17939   ;;
17940 esac
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18004 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18005
18006 library_names_spec=
18007 libname_spec='lib$name'
18008 soname_spec=
18009 shrext_cmds=".so"
18010 postinstall_cmds=
18011 postuninstall_cmds=
18012 finish_cmds=
18013 finish_eval=
18014 shlibpath_var=
18015 shlibpath_overrides_runpath=unknown
18016 version_type=none
18017 dynamic_linker="$host_os ld.so"
18018 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18019 need_lib_prefix=unknown
18020 hardcode_into_libs=no
18021
18022 # when you set need_version to no, make sure it does not cause -set_version
18023 # flags to be left without arguments
18024 need_version=unknown
18025
18026 case $host_os in
18027 aix3*)
18028   version_type=linux # correct to gnu/linux during the next big refactor
18029   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18030   shlibpath_var=LIBPATH
18031
18032   # AIX 3 has no versioning support, so we append a major version to the name.
18033   soname_spec='${libname}${release}${shared_ext}$major'
18034   ;;
18035
18036 aix[4-9]*)
18037   version_type=linux # correct to gnu/linux during the next big refactor
18038   need_lib_prefix=no
18039   need_version=no
18040   hardcode_into_libs=yes
18041   if test "$host_cpu" = ia64; then
18042     # AIX 5 supports IA64
18043     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18044     shlibpath_var=LD_LIBRARY_PATH
18045   else
18046     # With GCC up to 2.95.x, collect2 would create an import file
18047     # for dependence libraries.  The import file would start with
18048     # the line `#! .'.  This would cause the generated library to
18049     # depend on `.', always an invalid library.  This was fixed in
18050     # development snapshots of GCC prior to 3.0.
18051     case $host_os in
18052       aix4 | aix4.[01] | aix4.[01].*)
18053       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18054            echo ' yes '
18055            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18056         :
18057       else
18058         can_build_shared=no
18059       fi
18060       ;;
18061     esac
18062     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18063     # soname into executable. Probably we can add versioning support to
18064     # collect2, so additional links can be useful in future.
18065     if test "$aix_use_runtimelinking" = yes; then
18066       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18067       # instead of lib<name>.a to let people know that these are not
18068       # typical AIX shared libraries.
18069       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18070     else
18071       # We preserve .a as extension for shared libraries through AIX4.2
18072       # and later when we are not doing run time linking.
18073       library_names_spec='${libname}${release}.a $libname.a'
18074       soname_spec='${libname}${release}${shared_ext}$major'
18075     fi
18076     shlibpath_var=LIBPATH
18077   fi
18078   ;;
18079
18080 amigaos*)
18081   case $host_cpu in
18082   powerpc)
18083     # Since July 2007 AmigaOS4 officially supports .so libraries.
18084     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086     ;;
18087   m68k)
18088     library_names_spec='$libname.ixlibrary $libname.a'
18089     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18090     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
18091     ;;
18092   esac
18093   ;;
18094
18095 beos*)
18096   library_names_spec='${libname}${shared_ext}'
18097   dynamic_linker="$host_os ld.so"
18098   shlibpath_var=LIBRARY_PATH
18099   ;;
18100
18101 bsdi[45]*)
18102   version_type=linux # correct to gnu/linux during the next big refactor
18103   need_version=no
18104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105   soname_spec='${libname}${release}${shared_ext}$major'
18106   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18107   shlibpath_var=LD_LIBRARY_PATH
18108   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18109   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18110   # the default ld.so.conf also contains /usr/contrib/lib and
18111   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18112   # libtool to hard-code these into programs
18113   ;;
18114
18115 cygwin* | mingw* | pw32* | cegcc*)
18116   version_type=windows
18117   shrext_cmds=".dll"
18118   need_version=no
18119   need_lib_prefix=no
18120
18121   case $GCC,$cc_basename in
18122   yes,*)
18123     # gcc
18124     library_names_spec='$libname.dll.a'
18125     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18126     postinstall_cmds='base_file=`basename \${file}`~
18127       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18128       dldir=$destdir/`dirname \$dlpath`~
18129       test -d \$dldir || mkdir -p \$dldir~
18130       $install_prog $dir/$dlname \$dldir/$dlname~
18131       chmod a+x \$dldir/$dlname~
18132       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18133         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18134       fi'
18135     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18136       dlpath=$dir/\$dldll~
18137        $RM \$dlpath'
18138     shlibpath_overrides_runpath=yes
18139
18140     case $host_os in
18141     cygwin*)
18142       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18143       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18144
18145       ;;
18146     mingw* | cegcc*)
18147       # MinGW DLLs use traditional 'lib' prefix
18148       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18149       ;;
18150     pw32*)
18151       # pw32 DLLs use 'pw' prefix rather than 'lib'
18152       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18153       ;;
18154     esac
18155     dynamic_linker='Win32 ld.exe'
18156     ;;
18157
18158   *,cl*)
18159     # Native MSVC
18160     libname_spec='$name'
18161     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18162     library_names_spec='${libname}.dll.lib'
18163
18164     case $build_os in
18165     mingw*)
18166       sys_lib_search_path_spec=
18167       lt_save_ifs=$IFS
18168       IFS=';'
18169       for lt_path in $LIB
18170       do
18171         IFS=$lt_save_ifs
18172         # Let DOS variable expansion print the short 8.3 style file name.
18173         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18174         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18175       done
18176       IFS=$lt_save_ifs
18177       # Convert to MSYS style.
18178       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18179       ;;
18180     cygwin*)
18181       # Convert to unix form, then to dos form, then back to unix form
18182       # but this time dos style (no spaces!) so that the unix form looks
18183       # like /cygdrive/c/PROGRA~1:/cygdr...
18184       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18185       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18186       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18187       ;;
18188     *)
18189       sys_lib_search_path_spec="$LIB"
18190       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18191         # It is most probably a Windows format PATH.
18192         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18193       else
18194         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18195       fi
18196       # FIXME: find the short name or the path components, as spaces are
18197       # common. (e.g. "Program Files" -> "PROGRA~1")
18198       ;;
18199     esac
18200
18201     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18202     postinstall_cmds='base_file=`basename \${file}`~
18203       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18204       dldir=$destdir/`dirname \$dlpath`~
18205       test -d \$dldir || mkdir -p \$dldir~
18206       $install_prog $dir/$dlname \$dldir/$dlname'
18207     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18208       dlpath=$dir/\$dldll~
18209        $RM \$dlpath'
18210     shlibpath_overrides_runpath=yes
18211     dynamic_linker='Win32 link.exe'
18212     ;;
18213
18214   *)
18215     # Assume MSVC wrapper
18216     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18217     dynamic_linker='Win32 ld.exe'
18218     ;;
18219   esac
18220   # FIXME: first we should search . and the directory the executable is in
18221   shlibpath_var=PATH
18222   ;;
18223
18224 darwin* | rhapsody*)
18225   dynamic_linker="$host_os dyld"
18226   version_type=darwin
18227   need_lib_prefix=no
18228   need_version=no
18229   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18230   soname_spec='${libname}${release}${major}$shared_ext'
18231   shlibpath_overrides_runpath=yes
18232   shlibpath_var=DYLD_LIBRARY_PATH
18233   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18234
18235   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18236   ;;
18237
18238 dgux*)
18239   version_type=linux # correct to gnu/linux during the next big refactor
18240   need_lib_prefix=no
18241   need_version=no
18242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18243   soname_spec='${libname}${release}${shared_ext}$major'
18244   shlibpath_var=LD_LIBRARY_PATH
18245   ;;
18246
18247 freebsd* | dragonfly*)
18248   # DragonFly does not have aout.  When/if they implement a new
18249   # versioning mechanism, adjust this.
18250   if test -x /usr/bin/objformat; then
18251     objformat=`/usr/bin/objformat`
18252   else
18253     case $host_os in
18254     freebsd[23].*) objformat=aout ;;
18255     *) objformat=elf ;;
18256     esac
18257   fi
18258   version_type=freebsd-$objformat
18259   case $version_type in
18260     freebsd-elf*)
18261       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18262       need_version=no
18263       need_lib_prefix=no
18264       ;;
18265     freebsd-*)
18266       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18267       need_version=yes
18268       ;;
18269   esac
18270   shlibpath_var=LD_LIBRARY_PATH
18271   case $host_os in
18272   freebsd2.*)
18273     shlibpath_overrides_runpath=yes
18274     ;;
18275   freebsd3.[01]* | freebsdelf3.[01]*)
18276     shlibpath_overrides_runpath=yes
18277     hardcode_into_libs=yes
18278     ;;
18279   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18280   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18281     shlibpath_overrides_runpath=no
18282     hardcode_into_libs=yes
18283     ;;
18284   *) # from 4.6 on, and DragonFly
18285     shlibpath_overrides_runpath=yes
18286     hardcode_into_libs=yes
18287     ;;
18288   esac
18289   ;;
18290
18291 haiku*)
18292   version_type=linux # correct to gnu/linux during the next big refactor
18293   need_lib_prefix=no
18294   need_version=no
18295   dynamic_linker="$host_os runtime_loader"
18296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18297   soname_spec='${libname}${release}${shared_ext}$major'
18298   shlibpath_var=LIBRARY_PATH
18299   shlibpath_overrides_runpath=yes
18300   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18301   hardcode_into_libs=yes
18302   ;;
18303
18304 hpux9* | hpux10* | hpux11*)
18305   # Give a soname corresponding to the major version so that dld.sl refuses to
18306   # link against other versions.
18307   version_type=sunos
18308   need_lib_prefix=no
18309   need_version=no
18310   case $host_cpu in
18311   ia64*)
18312     shrext_cmds='.so'
18313     hardcode_into_libs=yes
18314     dynamic_linker="$host_os dld.so"
18315     shlibpath_var=LD_LIBRARY_PATH
18316     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318     soname_spec='${libname}${release}${shared_ext}$major'
18319     if test "X$HPUX_IA64_MODE" = X32; then
18320       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18321     else
18322       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18323     fi
18324     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18325     ;;
18326   hppa*64*)
18327     shrext_cmds='.sl'
18328     hardcode_into_libs=yes
18329     dynamic_linker="$host_os dld.sl"
18330     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18331     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333     soname_spec='${libname}${release}${shared_ext}$major'
18334     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18335     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18336     ;;
18337   *)
18338     shrext_cmds='.sl'
18339     dynamic_linker="$host_os dld.sl"
18340     shlibpath_var=SHLIB_PATH
18341     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343     soname_spec='${libname}${release}${shared_ext}$major'
18344     ;;
18345   esac
18346   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18347   postinstall_cmds='chmod 555 $lib'
18348   # or fails outright, so override atomically:
18349   install_override_mode=555
18350   ;;
18351
18352 interix[3-9]*)
18353   version_type=linux # correct to gnu/linux during the next big refactor
18354   need_lib_prefix=no
18355   need_version=no
18356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18357   soname_spec='${libname}${release}${shared_ext}$major'
18358   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18359   shlibpath_var=LD_LIBRARY_PATH
18360   shlibpath_overrides_runpath=no
18361   hardcode_into_libs=yes
18362   ;;
18363
18364 irix5* | irix6* | nonstopux*)
18365   case $host_os in
18366     nonstopux*) version_type=nonstopux ;;
18367     *)
18368         if test "$lt_cv_prog_gnu_ld" = yes; then
18369                 version_type=linux # correct to gnu/linux during the next big refactor
18370         else
18371                 version_type=irix
18372         fi ;;
18373   esac
18374   need_lib_prefix=no
18375   need_version=no
18376   soname_spec='${libname}${release}${shared_ext}$major'
18377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18378   case $host_os in
18379   irix5* | nonstopux*)
18380     libsuff= shlibsuff=
18381     ;;
18382   *)
18383     case $LD in # libtool.m4 will add one of these switches to LD
18384     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18385       libsuff= shlibsuff= libmagic=32-bit;;
18386     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18387       libsuff=32 shlibsuff=N32 libmagic=N32;;
18388     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18389       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18390     *) libsuff= shlibsuff= libmagic=never-match;;
18391     esac
18392     ;;
18393   esac
18394   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18395   shlibpath_overrides_runpath=no
18396   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18397   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18398   hardcode_into_libs=yes
18399   ;;
18400
18401 # No shared lib support for Linux oldld, aout, or coff.
18402 linux*oldld* | linux*aout* | linux*coff*)
18403   dynamic_linker=no
18404   ;;
18405
18406 # This must be glibc/ELF.
18407 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18408   version_type=linux # correct to gnu/linux during the next big refactor
18409   need_lib_prefix=no
18410   need_version=no
18411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18412   soname_spec='${libname}${release}${shared_ext}$major'
18413   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18414   shlibpath_var=LD_LIBRARY_PATH
18415   shlibpath_overrides_runpath=no
18416
18417   # Some binutils ld are patched to set DT_RUNPATH
18418   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18419   $as_echo_n "(cached) " >&6
18420 else
18421   lt_cv_shlibpath_overrides_runpath=no
18422     save_LDFLAGS=$LDFLAGS
18423     save_libdir=$libdir
18424     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18425          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h.  */
18428
18429 int
18430 main ()
18431 {
18432
18433   ;
18434   return 0;
18435 }
18436 _ACEOF
18437 if ac_fn_cxx_try_link "$LINENO"; then :
18438   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18439   lt_cv_shlibpath_overrides_runpath=yes
18440 fi
18441 fi
18442 rm -f core conftest.err conftest.$ac_objext \
18443     conftest$ac_exeext conftest.$ac_ext
18444     LDFLAGS=$save_LDFLAGS
18445     libdir=$save_libdir
18446
18447 fi
18448
18449   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18450
18451   # This implies no fast_install, which is unacceptable.
18452   # Some rework will be needed to allow for fast_install
18453   # before this can be enabled.
18454   hardcode_into_libs=yes
18455
18456   # Append ld.so.conf contents to the search path
18457   if test -f /etc/ld.so.conf; then
18458     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18459     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18460   fi
18461
18462   # We used to test for /lib/ld.so.1 and disable shared libraries on
18463   # powerpc, because MkLinux only supported shared libraries with the
18464   # GNU dynamic linker.  Since this was broken with cross compilers,
18465   # most powerpc-linux boxes support dynamic linking these days and
18466   # people can always --disable-shared, the test was removed, and we
18467   # assume the GNU/Linux dynamic linker is in use.
18468   dynamic_linker='GNU/Linux ld.so'
18469   ;;
18470
18471 netbsdelf*-gnu)
18472   version_type=linux
18473   need_lib_prefix=no
18474   need_version=no
18475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18476   soname_spec='${libname}${release}${shared_ext}$major'
18477   shlibpath_var=LD_LIBRARY_PATH
18478   shlibpath_overrides_runpath=no
18479   hardcode_into_libs=yes
18480   dynamic_linker='NetBSD ld.elf_so'
18481   ;;
18482
18483 netbsd*)
18484   version_type=sunos
18485   need_lib_prefix=no
18486   need_version=no
18487   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18489     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18490     dynamic_linker='NetBSD (a.out) ld.so'
18491   else
18492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18493     soname_spec='${libname}${release}${shared_ext}$major'
18494     dynamic_linker='NetBSD ld.elf_so'
18495   fi
18496   shlibpath_var=LD_LIBRARY_PATH
18497   shlibpath_overrides_runpath=yes
18498   hardcode_into_libs=yes
18499   ;;
18500
18501 newsos6)
18502   version_type=linux # correct to gnu/linux during the next big refactor
18503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504   shlibpath_var=LD_LIBRARY_PATH
18505   shlibpath_overrides_runpath=yes
18506   ;;
18507
18508 *nto* | *qnx*)
18509   version_type=qnx
18510   need_lib_prefix=no
18511   need_version=no
18512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513   soname_spec='${libname}${release}${shared_ext}$major'
18514   shlibpath_var=LD_LIBRARY_PATH
18515   shlibpath_overrides_runpath=no
18516   hardcode_into_libs=yes
18517   dynamic_linker='ldqnx.so'
18518   ;;
18519
18520 openbsd*)
18521   version_type=sunos
18522   sys_lib_dlsearch_path_spec="/usr/lib"
18523   need_lib_prefix=no
18524   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18525   case $host_os in
18526     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18527     *)                          need_version=no  ;;
18528   esac
18529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18530   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18531   shlibpath_var=LD_LIBRARY_PATH
18532   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18533     case $host_os in
18534       openbsd2.[89] | openbsd2.[89].*)
18535         shlibpath_overrides_runpath=no
18536         ;;
18537       *)
18538         shlibpath_overrides_runpath=yes
18539         ;;
18540       esac
18541   else
18542     shlibpath_overrides_runpath=yes
18543   fi
18544   ;;
18545
18546 os2*)
18547   libname_spec='$name'
18548   shrext_cmds=".dll"
18549   need_lib_prefix=no
18550   library_names_spec='$libname${shared_ext} $libname.a'
18551   dynamic_linker='OS/2 ld.exe'
18552   shlibpath_var=LIBPATH
18553   ;;
18554
18555 osf3* | osf4* | osf5*)
18556   version_type=osf
18557   need_lib_prefix=no
18558   need_version=no
18559   soname_spec='${libname}${release}${shared_ext}$major'
18560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561   shlibpath_var=LD_LIBRARY_PATH
18562   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18563   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18564   ;;
18565
18566 rdos*)
18567   dynamic_linker=no
18568   ;;
18569
18570 solaris*)
18571   version_type=linux # correct to gnu/linux during the next big refactor
18572   need_lib_prefix=no
18573   need_version=no
18574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18575   soname_spec='${libname}${release}${shared_ext}$major'
18576   shlibpath_var=LD_LIBRARY_PATH
18577   shlibpath_overrides_runpath=yes
18578   hardcode_into_libs=yes
18579   # ldd complains unless libraries are executable
18580   postinstall_cmds='chmod +x $lib'
18581   ;;
18582
18583 sunos4*)
18584   version_type=sunos
18585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18586   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18587   shlibpath_var=LD_LIBRARY_PATH
18588   shlibpath_overrides_runpath=yes
18589   if test "$with_gnu_ld" = yes; then
18590     need_lib_prefix=no
18591   fi
18592   need_version=yes
18593   ;;
18594
18595 sysv4 | sysv4.3*)
18596   version_type=linux # correct to gnu/linux during the next big refactor
18597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18598   soname_spec='${libname}${release}${shared_ext}$major'
18599   shlibpath_var=LD_LIBRARY_PATH
18600   case $host_vendor in
18601     sni)
18602       shlibpath_overrides_runpath=no
18603       need_lib_prefix=no
18604       runpath_var=LD_RUN_PATH
18605       ;;
18606     siemens)
18607       need_lib_prefix=no
18608       ;;
18609     motorola)
18610       need_lib_prefix=no
18611       need_version=no
18612       shlibpath_overrides_runpath=no
18613       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18614       ;;
18615   esac
18616   ;;
18617
18618 sysv4*MP*)
18619   if test -d /usr/nec ;then
18620     version_type=linux # correct to gnu/linux during the next big refactor
18621     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18622     soname_spec='$libname${shared_ext}.$major'
18623     shlibpath_var=LD_LIBRARY_PATH
18624   fi
18625   ;;
18626
18627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18628   version_type=freebsd-elf
18629   need_lib_prefix=no
18630   need_version=no
18631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18632   soname_spec='${libname}${release}${shared_ext}$major'
18633   shlibpath_var=LD_LIBRARY_PATH
18634   shlibpath_overrides_runpath=yes
18635   hardcode_into_libs=yes
18636   if test "$with_gnu_ld" = yes; then
18637     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18638   else
18639     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18640     case $host_os in
18641       sco3.2v5*)
18642         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18643         ;;
18644     esac
18645   fi
18646   sys_lib_dlsearch_path_spec='/usr/lib'
18647   ;;
18648
18649 tpf*)
18650   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18651   version_type=linux # correct to gnu/linux during the next big refactor
18652   need_lib_prefix=no
18653   need_version=no
18654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655   shlibpath_var=LD_LIBRARY_PATH
18656   shlibpath_overrides_runpath=no
18657   hardcode_into_libs=yes
18658   ;;
18659
18660 uts4*)
18661   version_type=linux # correct to gnu/linux during the next big refactor
18662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18663   soname_spec='${libname}${release}${shared_ext}$major'
18664   shlibpath_var=LD_LIBRARY_PATH
18665   ;;
18666
18667 *)
18668   dynamic_linker=no
18669   ;;
18670 esac
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18672 $as_echo "$dynamic_linker" >&6; }
18673 test "$dynamic_linker" = no && can_build_shared=no
18674
18675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18676 if test "$GCC" = yes; then
18677   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18678 fi
18679
18680 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18681   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18682 fi
18683 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18684   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18685 fi
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18725 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18726 hardcode_action_CXX=
18727 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18728    test -n "$runpath_var_CXX" ||
18729    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18730
18731   # We can hardcode non-existent directories.
18732   if test "$hardcode_direct_CXX" != no &&
18733      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18734      # have to relink, otherwise we might link with an installed library
18735      # when we should be linking with a yet-to-be-installed one
18736      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18737      test "$hardcode_minus_L_CXX" != no; then
18738     # Linking always hardcodes the temporary library directory.
18739     hardcode_action_CXX=relink
18740   else
18741     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18742     hardcode_action_CXX=immediate
18743   fi
18744 else
18745   # We cannot hardcode anything, or else we can only hardcode existing
18746   # directories.
18747   hardcode_action_CXX=unsupported
18748 fi
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18750 $as_echo "$hardcode_action_CXX" >&6; }
18751
18752 if test "$hardcode_action_CXX" = relink ||
18753    test "$inherit_rpath_CXX" = yes; then
18754   # Fast installation is not supported
18755   enable_fast_install=no
18756 elif test "$shlibpath_overrides_runpath" = yes ||
18757      test "$enable_shared" = no; then
18758   # Fast installation is not necessary
18759   enable_fast_install=needless
18760 fi
18761
18762
18763
18764
18765
18766
18767
18768   fi # test -n "$compiler"
18769
18770   CC=$lt_save_CC
18771   CFLAGS=$lt_save_CFLAGS
18772   LDCXX=$LD
18773   LD=$lt_save_LD
18774   GCC=$lt_save_GCC
18775   with_gnu_ld=$lt_save_with_gnu_ld
18776   lt_cv_path_LDCXX=$lt_cv_path_LD
18777   lt_cv_path_LD=$lt_save_path_LD
18778   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18779   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18780 fi # test "$_lt_caught_CXX_error" != yes
18781
18782 ac_ext=c
18783 ac_cpp='$CPP $CPPFLAGS'
18784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18787
18788
18789 depcc="$CXX"  am_compiler_list=
18790
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18792 $as_echo_n "checking dependency style of $depcc... " >&6; }
18793 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
18794   $as_echo_n "(cached) " >&6
18795 else
18796   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18797   # We make a subdir and do the tests there.  Otherwise we can end up
18798   # making bogus files that we don't know about and never remove.  For
18799   # instance it was reported that on HP-UX the gcc test will end up
18800   # making a dummy file named 'D' -- because '-MD' means "put the output
18801   # in D".
18802   rm -rf conftest.dir
18803   mkdir conftest.dir
18804   # Copy depcomp to subdir because otherwise we won't find it if we're
18805   # using a relative directory.
18806   cp "$am_depcomp" conftest.dir
18807   cd conftest.dir
18808   # We will build objects and dependencies in a subdirectory because
18809   # it helps to detect inapplicable dependency modes.  For instance
18810   # both Tru64's cc and ICC support -MD to output dependencies as a
18811   # side effect of compilation, but ICC will put the dependencies in
18812   # the current directory while Tru64 will put them in the object
18813   # directory.
18814   mkdir sub
18815
18816   am_cv_CXX_dependencies_compiler_type=none
18817   if test "$am_compiler_list" = ""; then
18818      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18819   fi
18820   am__universal=false
18821   case " $depcc " in #(
18822      *\ -arch\ *\ -arch\ *) am__universal=true ;;
18823      esac
18824
18825   for depmode in $am_compiler_list; do
18826     # Setup a source with many dependencies, because some compilers
18827     # like to wrap large dependency lists on column 80 (with \), and
18828     # we should not choose a depcomp mode which is confused by this.
18829     #
18830     # We need to recreate these files for each test, as the compiler may
18831     # overwrite some of them when testing with obscure command lines.
18832     # This happens at least with the AIX C compiler.
18833     : > sub/conftest.c
18834     for i in 1 2 3 4 5 6; do
18835       echo '#include "conftst'$i'.h"' >> sub/conftest.c
18836       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18837       # Solaris 10 /bin/sh.
18838       echo '/* dummy */' > sub/conftst$i.h
18839     done
18840     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18841
18842     # We check with '-c' and '-o' for the sake of the "dashmstdout"
18843     # mode.  It turns out that the SunPro C++ compiler does not properly
18844     # handle '-M -o', and we need to detect this.  Also, some Intel
18845     # versions had trouble with output in subdirs.
18846     am__obj=sub/conftest.${OBJEXT-o}
18847     am__minus_obj="-o $am__obj"
18848     case $depmode in
18849     gcc)
18850       # This depmode causes a compiler race in universal mode.
18851       test "$am__universal" = false || continue
18852       ;;
18853     nosideeffect)
18854       # After this tag, mechanisms are not by side-effect, so they'll
18855       # only be used when explicitly requested.
18856       if test "x$enable_dependency_tracking" = xyes; then
18857         continue
18858       else
18859         break
18860       fi
18861       ;;
18862     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18863       # This compiler won't grok '-c -o', but also, the minuso test has
18864       # not run yet.  These depmodes are late enough in the game, and
18865       # so weak that their functioning should not be impacted.
18866       am__obj=conftest.${OBJEXT-o}
18867       am__minus_obj=
18868       ;;
18869     none) break ;;
18870     esac
18871     if depmode=$depmode \
18872        source=sub/conftest.c object=$am__obj \
18873        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18874        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18875          >/dev/null 2>conftest.err &&
18876        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18877        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18878        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18879        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18880       # icc doesn't choke on unknown options, it will just issue warnings
18881       # or remarks (even with -Werror).  So we grep stderr for any message
18882       # that says an option was ignored or not supported.
18883       # When given -MP, icc 7.0 and 7.1 complain thusly:
18884       #   icc: Command line warning: ignoring option '-M'; no argument required
18885       # The diagnosis changed in icc 8.0:
18886       #   icc: Command line remark: option '-MP' not supported
18887       if (grep 'ignoring option' conftest.err ||
18888           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18889         am_cv_CXX_dependencies_compiler_type=$depmode
18890         break
18891       fi
18892     fi
18893   done
18894
18895   cd ..
18896   rm -rf conftest.dir
18897 else
18898   am_cv_CXX_dependencies_compiler_type=none
18899 fi
18900
18901 fi
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
18903 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
18904 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18905
18906  if
18907   test "x$enable_dependency_tracking" != xno \
18908   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18909   am__fastdepCXX_TRUE=
18910   am__fastdepCXX_FALSE='#'
18911 else
18912   am__fastdepCXX_TRUE='#'
18913   am__fastdepCXX_FALSE=
18914 fi
18915
18916
18917
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18919 $as_echo_n "checking whether ln -s works... " >&6; }
18920 LN_S=$as_ln_s
18921 if test "$LN_S" = "ln -s"; then
18922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18923 $as_echo "yes" >&6; }
18924 else
18925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18926 $as_echo "no, using $LN_S" >&6; }
18927 fi
18928
18929 for ac_prog in gawk mawk nawk awk
18930 do
18931   # Extract the first word of "$ac_prog", so it can be a program name with args.
18932 set dummy $ac_prog; ac_word=$2
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18934 $as_echo_n "checking for $ac_word... " >&6; }
18935 if ${ac_cv_prog_AWK+:} false; then :
18936   $as_echo_n "(cached) " >&6
18937 else
18938   if test -n "$AWK"; then
18939   ac_cv_prog_AWK="$AWK" # Let the user override the test.
18940 else
18941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18942 for as_dir in $PATH
18943 do
18944   IFS=$as_save_IFS
18945   test -z "$as_dir" && as_dir=.
18946     for ac_exec_ext in '' $ac_executable_extensions; do
18947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18948     ac_cv_prog_AWK="$ac_prog"
18949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18950     break 2
18951   fi
18952 done
18953   done
18954 IFS=$as_save_IFS
18955
18956 fi
18957 fi
18958 AWK=$ac_cv_prog_AWK
18959 if test -n "$AWK"; then
18960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18961 $as_echo "$AWK" >&6; }
18962 else
18963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18964 $as_echo "no" >&6; }
18965 fi
18966
18967
18968   test -n "$AWK" && break
18969 done
18970
18971
18972
18973 # allow passing a variable `WARNINGFLAGS',
18974 #   either when invoking `configure', or when invoking `make'
18975 # default to something useful if GCC was detected
18976
18977 # Check whether --enable-warnings was given.
18978 if test "${enable_warnings+set}" = set; then :
18979   enableval=$enable_warnings; if test "x$GCC" = xyes; then :
18980    : ${WARNINGFLAGS="-Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion -Wno-unused-but-set-variable"}
18981 fi
18982 fi
18983
18984
18985
18986
18987 # Check whether --enable-libfl was given.
18988 if test "${enable_libfl+set}" = set; then :
18989   enableval=$enable_libfl;
18990 else
18991   enable_libfl=yes
18992 fi
18993
18994  if test "x$enable_libfl" = xyes; then
18995   ENABLE_LIBFL_TRUE=
18996   ENABLE_LIBFL_FALSE='#'
18997 else
18998   ENABLE_LIBFL_TRUE='#'
18999   ENABLE_LIBFL_FALSE=
19000 fi
19001
19002
19003 # --disable-bootstrap is intended only to workaround problems with bootstrap
19004 # (e.g. when cross-compiling flex or when bootstrapping has bugs).
19005 # Ideally we should be able to bootstrap even when cross-compiling.
19006 # Check whether --enable-bootstrap was given.
19007 if test "${enable_bootstrap+set}" = set; then :
19008   enableval=$enable_bootstrap;
19009 else
19010   enable_bootstrap=yes
19011 fi
19012
19013  if test "x$enable_bootstrap" = xyes; then
19014   ENABLE_BOOTSTRAP_TRUE=
19015   ENABLE_BOOTSTRAP_FALSE='#'
19016 else
19017   ENABLE_BOOTSTRAP_TRUE='#'
19018   ENABLE_BOOTSTRAP_FALSE=
19019 fi
19020
19021
19022  if test "x$cross_compiling" = xyes; then
19023   CROSS_TRUE=
19024   CROSS_FALSE='#'
19025 else
19026   CROSS_TRUE='#'
19027   CROSS_FALSE=
19028 fi
19029
19030
19031 # Extract the first word of "help2man", so it can be a program name with args.
19032 set dummy help2man; ac_word=$2
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19034 $as_echo_n "checking for $ac_word... " >&6; }
19035 if ${ac_cv_path_HELP2MAN+:} false; then :
19036   $as_echo_n "(cached) " >&6
19037 else
19038   case $HELP2MAN in
19039   [\\/]* | ?:[\\/]*)
19040   ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
19041   ;;
19042   *)
19043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19044 for as_dir in $PATH
19045 do
19046   IFS=$as_save_IFS
19047   test -z "$as_dir" && as_dir=.
19048     for ac_exec_ext in '' $ac_executable_extensions; do
19049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19050     ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
19051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19052     break 2
19053   fi
19054 done
19055   done
19056 IFS=$as_save_IFS
19057
19058   test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="\${top_srcdir}/build-aux/missing help2man"
19059   ;;
19060 esac
19061 fi
19062 HELP2MAN=$ac_cv_path_HELP2MAN
19063 if test -n "$HELP2MAN"; then
19064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
19065 $as_echo "$HELP2MAN" >&6; }
19066 else
19067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19068 $as_echo "no" >&6; }
19069 fi
19070
19071
19072   if test "$HELP2MAN" = "\${top_srcdir}/build-aux/missing help2man"; then :
19073   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: help2man: program not found: building man page will not work" >&5
19074 $as_echo "$as_me: WARNING: help2man: program not found: building man page will not work" >&2;}
19075
19076 fi
19077
19078 for ac_prog in gtexi2dvi texi2dvi
19079 do
19080   # Extract the first word of "$ac_prog", so it can be a program name with args.
19081 set dummy $ac_prog; ac_word=$2
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19083 $as_echo_n "checking for $ac_word... " >&6; }
19084 if ${ac_cv_path_TEXI2DVI+:} false; then :
19085   $as_echo_n "(cached) " >&6
19086 else
19087   case $TEXI2DVI in
19088   [\\/]* | ?:[\\/]*)
19089   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
19090   ;;
19091   *)
19092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19093 for as_dir in $PATH
19094 do
19095   IFS=$as_save_IFS
19096   test -z "$as_dir" && as_dir=.
19097     for ac_exec_ext in '' $ac_executable_extensions; do
19098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19099     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
19100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19101     break 2
19102   fi
19103 done
19104   done
19105 IFS=$as_save_IFS
19106
19107   ;;
19108 esac
19109 fi
19110 TEXI2DVI=$ac_cv_path_TEXI2DVI
19111 if test -n "$TEXI2DVI"; then
19112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
19113 $as_echo "$TEXI2DVI" >&6; }
19114 else
19115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19116 $as_echo "no" >&6; }
19117 fi
19118
19119
19120   test -n "$TEXI2DVI" && break
19121 done
19122 test -n "$TEXI2DVI" || TEXI2DVI="\${top_srcdir}/build-aux/missing texi2dvi"
19123
19124   if test "$TEXI2DVI" = "\${top_srcdir}/build-aux/missing texi2dvi"; then :
19125   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: texi2dvi: program not found: building pdf version of manual will not work" >&5
19126 $as_echo "$as_me: WARNING: texi2dvi: program not found: building pdf version of manual will not work" >&2;}
19127
19128 fi
19129
19130 # Check for a m4 that supports -P
19131
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5
19133 $as_echo_n "checking for m4 that supports -P... " >&6; }
19134 if ${ac_cv_path_M4+:} false; then :
19135   $as_echo_n "(cached) " >&6
19136 else
19137   if test -z "$M4"; then
19138   ac_path_M4_found=false
19139   # Loop through the user's path and test for each of PROGNAME-LIST
19140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19141 for as_dir in $PATH
19142 do
19143   IFS=$as_save_IFS
19144   test -z "$as_dir" && as_dir=.
19145     for ac_prog in gm4 gnum4 m4; do
19146     for ac_exec_ext in '' $ac_executable_extensions; do
19147       ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
19148       as_fn_executable_p "$ac_path_M4" || continue
19149 m4out=`echo 'm''4_divnum' | $ac_path_M4 -P`
19150                 test "x$m4out" = x0 \
19151                 && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
19152       $ac_path_M4_found && break 3
19153     done
19154   done
19155   done
19156 IFS=$as_save_IFS
19157   if test -z "$ac_cv_path_M4"; then
19158     as_fn_error $? "could not find m4 that supports -P" "$LINENO" 5
19159   fi
19160 else
19161   ac_cv_path_M4=$M4
19162 fi
19163
19164 fi
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
19166 $as_echo "$ac_cv_path_M4" >&6; }
19167 M4=$ac_cv_path_M4
19168
19169
19170 cat >>confdefs.h <<_ACEOF
19171 #define M4 "$M4"
19172 _ACEOF
19173
19174
19175 # Extract the first word of "indent", so it can be a program name with args.
19176 set dummy indent; ac_word=$2
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19178 $as_echo_n "checking for $ac_word... " >&6; }
19179 if ${ac_cv_path_INDENT+:} false; then :
19180   $as_echo_n "(cached) " >&6
19181 else
19182   case $INDENT in
19183   [\\/]* | ?:[\\/]*)
19184   ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
19185   ;;
19186   *)
19187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19188 for as_dir in $PATH
19189 do
19190   IFS=$as_save_IFS
19191   test -z "$as_dir" && as_dir=.
19192     for ac_exec_ext in '' $ac_executable_extensions; do
19193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19194     ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
19195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19196     break 2
19197   fi
19198 done
19199   done
19200 IFS=$as_save_IFS
19201
19202   test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="\${top_srcdir}/build-aux/missing indent"
19203   ;;
19204 esac
19205 fi
19206 INDENT=$ac_cv_path_INDENT
19207 if test -n "$INDENT"; then
19208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
19209 $as_echo "$INDENT" >&6; }
19210 else
19211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19213 fi
19214
19215
19216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
19217 $as_echo_n "checking if $INDENT is GNU indent... " >&6; }
19218   if $INDENT --version 2>/dev/null | head -n 1 | grep "GNU indent" >/dev/null; then :
19219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19220 $as_echo "yes" >&6; }
19221 else
19222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19223 $as_echo "no" >&6; }
19224      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent; 'make indent' may not function properly" >&5
19225 $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent; 'make indent' may not function properly" >&2;}
19226
19227 fi
19228
19229 # checks for headers
19230
19231 for ac_header in regex.h strings.h sys/stat.h sys/wait.h unistd.h
19232 do :
19233   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19234 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19236   cat >>confdefs.h <<_ACEOF
19237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19238 _ACEOF
19239
19240 else
19241   as_fn_error $? "required header not found on your system" "$LINENO" 5
19242 fi
19243
19244 done
19245
19246
19247 for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h
19248 do :
19249   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19250 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19251 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19252   cat >>confdefs.h <<_ACEOF
19253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19254 _ACEOF
19255
19256 fi
19257
19258 done
19259
19260
19261 # checks for libraries
19262
19263 # The test test-pthread uses libpthread, so we check for it here, but
19264 # all we need is the preprocessor symbol defined since we don't need
19265 # LIBS to include libpthread for building flex.
19266
19267 LIBPTHREAD=''
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
19269 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
19270 if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
19271   $as_echo_n "(cached) " >&6
19272 else
19273   ac_check_lib_save_LIBS=$LIBS
19274 LIBS="-lpthread  $LIBS"
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h.  */
19277
19278 /* Override any GCC internal prototype to avoid an error.
19279    Use char because int might match the return type of a GCC
19280    builtin and then its argument prototype would still apply.  */
19281 #ifdef __cplusplus
19282 extern "C"
19283 #endif
19284 char pthread_mutex_lock ();
19285 int
19286 main ()
19287 {
19288 return pthread_mutex_lock ();
19289   ;
19290   return 0;
19291 }
19292 _ACEOF
19293 if ac_fn_c_try_link "$LINENO"; then :
19294   ac_cv_lib_pthread_pthread_mutex_lock=yes
19295 else
19296   ac_cv_lib_pthread_pthread_mutex_lock=no
19297 fi
19298 rm -f core conftest.err conftest.$ac_objext \
19299     conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19301 fi
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
19303 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
19304 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
19305   for ac_header in pthread.h
19306 do :
19307   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19308 if test "x$ac_cv_header_pthread_h" = xyes; then :
19309   cat >>confdefs.h <<_ACEOF
19310 #define HAVE_PTHREAD_H 1
19311 _ACEOF
19312  LIBPTHREAD=-lpthread
19313 else
19314   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread tests will be skipped" >&5
19315 $as_echo "$as_me: WARNING: pthread tests will be skipped" >&2;}
19316 fi
19317
19318 done
19319
19320 else
19321   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread tests will be skipped" >&5
19322 $as_echo "$as_me: WARNING: pthread tests will be skipped" >&2;}
19323 fi
19324
19325
19326
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
19328 $as_echo_n "checking for log10 in -lm... " >&6; }
19329 if ${ac_cv_lib_m_log10+:} false; then :
19330   $as_echo_n "(cached) " >&6
19331 else
19332   ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lm  $LIBS"
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h.  */
19336
19337 /* Override any GCC internal prototype to avoid an error.
19338    Use char because int might match the return type of a GCC
19339    builtin and then its argument prototype would still apply.  */
19340 #ifdef __cplusplus
19341 extern "C"
19342 #endif
19343 char log10 ();
19344 int
19345 main ()
19346 {
19347 return log10 ();
19348   ;
19349   return 0;
19350 }
19351 _ACEOF
19352 if ac_fn_c_try_link "$LINENO"; then :
19353   ac_cv_lib_m_log10=yes
19354 else
19355   ac_cv_lib_m_log10=no
19356 fi
19357 rm -f core conftest.err conftest.$ac_objext \
19358     conftest$ac_exeext conftest.$ac_ext
19359 LIBS=$ac_check_lib_save_LIBS
19360 fi
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
19362 $as_echo "$ac_cv_lib_m_log10" >&6; }
19363 if test "x$ac_cv_lib_m_log10" = xyes; then :
19364   cat >>confdefs.h <<_ACEOF
19365 #define HAVE_LIBM 1
19366 _ACEOF
19367
19368   LIBS="-lm $LIBS"
19369
19370 fi
19371
19372
19373 # Checks for typedefs, structures, and compiler characteristics.
19374
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19376 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19377 if ${ac_cv_header_stdbool_h+:} false; then :
19378   $as_echo_n "(cached) " >&6
19379 else
19380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h.  */
19382
19383              #include <stdbool.h>
19384              #ifndef bool
19385               "error: bool is not defined"
19386              #endif
19387              #ifndef false
19388               "error: false is not defined"
19389              #endif
19390              #if false
19391               "error: false is not 0"
19392              #endif
19393              #ifndef true
19394               "error: true is not defined"
19395              #endif
19396              #if true != 1
19397               "error: true is not 1"
19398              #endif
19399              #ifndef __bool_true_false_are_defined
19400               "error: __bool_true_false_are_defined is not defined"
19401              #endif
19402
19403              struct s { _Bool s: 1; _Bool t; } s;
19404
19405              char a[true == 1 ? 1 : -1];
19406              char b[false == 0 ? 1 : -1];
19407              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19408              char d[(bool) 0.5 == true ? 1 : -1];
19409              /* See body of main program for 'e'.  */
19410              char f[(_Bool) 0.0 == false ? 1 : -1];
19411              char g[true];
19412              char h[sizeof (_Bool)];
19413              char i[sizeof s.t];
19414              enum { j = false, k = true, l = false * true, m = true * 256 };
19415              /* The following fails for
19416                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19417              _Bool n[m];
19418              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19419              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19420              /* Catch a bug in an HP-UX C compiler.  See
19421                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19422                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19423               */
19424              _Bool q = true;
19425              _Bool *pq = &q;
19426
19427 int
19428 main ()
19429 {
19430
19431              bool e = &s;
19432              *pq |= q;
19433              *pq |= ! q;
19434              /* Refer to every declared value, to avoid compiler optimizations.  */
19435              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19436                      + !m + !n + !o + !p + !q + !pq);
19437
19438   ;
19439   return 0;
19440 }
19441 _ACEOF
19442 if ac_fn_c_try_compile "$LINENO"; then :
19443   ac_cv_header_stdbool_h=yes
19444 else
19445   ac_cv_header_stdbool_h=no
19446 fi
19447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19448 fi
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19450 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19451    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19452 if test "x$ac_cv_type__Bool" = xyes; then :
19453
19454 cat >>confdefs.h <<_ACEOF
19455 #define HAVE__BOOL 1
19456 _ACEOF
19457
19458
19459 fi
19460
19461
19462 if test $ac_cv_header_stdbool_h = yes; then
19463
19464 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
19465
19466 fi
19467
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19469 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19470 if ${ac_cv_c_const+:} false; then :
19471   $as_echo_n "(cached) " >&6
19472 else
19473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h.  */
19475
19476 int
19477 main ()
19478 {
19479
19480 #ifndef __cplusplus
19481   /* Ultrix mips cc rejects this sort of thing.  */
19482   typedef int charset[2];
19483   const charset cs = { 0, 0 };
19484   /* SunOS 4.1.1 cc rejects this.  */
19485   char const *const *pcpcc;
19486   char **ppc;
19487   /* NEC SVR4.0.2 mips cc rejects this.  */
19488   struct point {int x, y;};
19489   static struct point const zero = {0,0};
19490   /* AIX XL C 1.02.0.0 rejects this.
19491      It does not let you subtract one const X* pointer from another in
19492      an arm of an if-expression whose if-part is not a constant
19493      expression */
19494   const char *g = "string";
19495   pcpcc = &g + (g ? g-g : 0);
19496   /* HPUX 7.0 cc rejects these. */
19497   ++pcpcc;
19498   ppc = (char**) pcpcc;
19499   pcpcc = (char const *const *) ppc;
19500   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19501     char tx;
19502     char *t = &tx;
19503     char const *s = 0 ? (char *) 0 : (char const *) 0;
19504
19505     *t++ = 0;
19506     if (s) return 0;
19507   }
19508   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19509     int x[] = {25, 17};
19510     const int *foo = &x[0];
19511     ++foo;
19512   }
19513   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19514     typedef const int *iptr;
19515     iptr p = 0;
19516     ++p;
19517   }
19518   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19519        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19520     struct s { int j; const int *ap[3]; } bx;
19521     struct s *b = &bx; b->j = 5;
19522   }
19523   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19524     const int foo = 10;
19525     if (!foo) return 0;
19526   }
19527   return !cs[0] && !zero.x;
19528 #endif
19529
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 if ac_fn_c_try_compile "$LINENO"; then :
19535   ac_cv_c_const=yes
19536 else
19537   ac_cv_c_const=no
19538 fi
19539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19540 fi
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19542 $as_echo "$ac_cv_c_const" >&6; }
19543 if test $ac_cv_c_const = no; then
19544
19545 $as_echo "#define const /**/" >>confdefs.h
19546
19547 fi
19548
19549 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19550 if test "x$ac_cv_type_size_t" = xyes; then :
19551
19552 else
19553
19554 cat >>confdefs.h <<_ACEOF
19555 #define size_t unsigned int
19556 _ACEOF
19557
19558 fi
19559
19560
19561 # Checks for library functions.
19562
19563 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19564 # for constant arguments.  Useless!
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19566 $as_echo_n "checking for working alloca.h... " >&6; }
19567 if ${ac_cv_working_alloca_h+:} false; then :
19568   $as_echo_n "(cached) " >&6
19569 else
19570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h.  */
19572 #include <alloca.h>
19573 int
19574 main ()
19575 {
19576 char *p = (char *) alloca (2 * sizeof (int));
19577                           if (p) return 0;
19578   ;
19579   return 0;
19580 }
19581 _ACEOF
19582 if ac_fn_c_try_link "$LINENO"; then :
19583   ac_cv_working_alloca_h=yes
19584 else
19585   ac_cv_working_alloca_h=no
19586 fi
19587 rm -f core conftest.err conftest.$ac_objext \
19588     conftest$ac_exeext conftest.$ac_ext
19589 fi
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19591 $as_echo "$ac_cv_working_alloca_h" >&6; }
19592 if test $ac_cv_working_alloca_h = yes; then
19593
19594 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19595
19596 fi
19597
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19599 $as_echo_n "checking for alloca... " >&6; }
19600 if ${ac_cv_func_alloca_works+:} false; then :
19601   $as_echo_n "(cached) " >&6
19602 else
19603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h.  */
19605 #ifdef __GNUC__
19606 # define alloca __builtin_alloca
19607 #else
19608 # ifdef _MSC_VER
19609 #  include <malloc.h>
19610 #  define alloca _alloca
19611 # else
19612 #  ifdef HAVE_ALLOCA_H
19613 #   include <alloca.h>
19614 #  else
19615 #   ifdef _AIX
19616  #pragma alloca
19617 #   else
19618 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19619 void *alloca (size_t);
19620 #    endif
19621 #   endif
19622 #  endif
19623 # endif
19624 #endif
19625
19626 int
19627 main ()
19628 {
19629 char *p = (char *) alloca (1);
19630                                     if (p) return 0;
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 if ac_fn_c_try_link "$LINENO"; then :
19636   ac_cv_func_alloca_works=yes
19637 else
19638   ac_cv_func_alloca_works=no
19639 fi
19640 rm -f core conftest.err conftest.$ac_objext \
19641     conftest$ac_exeext conftest.$ac_ext
19642 fi
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19644 $as_echo "$ac_cv_func_alloca_works" >&6; }
19645
19646 if test $ac_cv_func_alloca_works = yes; then
19647
19648 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19649
19650 else
19651   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19652 # that cause trouble.  Some versions do not even contain alloca or
19653 # contain a buggy version.  If you still want to use their alloca,
19654 # use ar to extract alloca.o from them instead of compiling alloca.c.
19655
19656 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19657
19658 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19659
19660
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19662 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19663 if ${ac_cv_os_cray+:} false; then :
19664   $as_echo_n "(cached) " >&6
19665 else
19666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h.  */
19668 #if defined CRAY && ! defined CRAY2
19669 webecray
19670 #else
19671 wenotbecray
19672 #endif
19673
19674 _ACEOF
19675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19676   $EGREP "webecray" >/dev/null 2>&1; then :
19677   ac_cv_os_cray=yes
19678 else
19679   ac_cv_os_cray=no
19680 fi
19681 rm -f conftest*
19682
19683 fi
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19685 $as_echo "$ac_cv_os_cray" >&6; }
19686 if test $ac_cv_os_cray = yes; then
19687   for ac_func in _getb67 GETB67 getb67; do
19688     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19689 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19690 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19691
19692 cat >>confdefs.h <<_ACEOF
19693 #define CRAY_STACKSEG_END $ac_func
19694 _ACEOF
19695
19696     break
19697 fi
19698
19699   done
19700 fi
19701
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19703 $as_echo_n "checking stack direction for C alloca... " >&6; }
19704 if ${ac_cv_c_stack_direction+:} false; then :
19705   $as_echo_n "(cached) " >&6
19706 else
19707   if test "$cross_compiling" = yes; then :
19708   ac_cv_c_stack_direction=0
19709 else
19710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h.  */
19712 $ac_includes_default
19713 int
19714 find_stack_direction (int *addr, int depth)
19715 {
19716   int dir, dummy = 0;
19717   if (! addr)
19718     addr = &dummy;
19719   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19720   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19721   return dir + dummy;
19722 }
19723
19724 int
19725 main (int argc, char **argv)
19726 {
19727   return find_stack_direction (0, argc + !argv + 20) < 0;
19728 }
19729 _ACEOF
19730 if ac_fn_c_try_run "$LINENO"; then :
19731   ac_cv_c_stack_direction=1
19732 else
19733   ac_cv_c_stack_direction=-1
19734 fi
19735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19736   conftest.$ac_objext conftest.beam conftest.$ac_ext
19737 fi
19738
19739 fi
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19741 $as_echo "$ac_cv_c_stack_direction" >&6; }
19742 cat >>confdefs.h <<_ACEOF
19743 #define STACK_DIRECTION $ac_cv_c_stack_direction
19744 _ACEOF
19745
19746
19747 fi
19748
19749 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19750 if test "x$ac_cv_type_pid_t" = xyes; then :
19751
19752 else
19753
19754 cat >>confdefs.h <<_ACEOF
19755 #define pid_t int
19756 _ACEOF
19757
19758 fi
19759
19760 for ac_header in vfork.h
19761 do :
19762   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19763 if test "x$ac_cv_header_vfork_h" = xyes; then :
19764   cat >>confdefs.h <<_ACEOF
19765 #define HAVE_VFORK_H 1
19766 _ACEOF
19767
19768 fi
19769
19770 done
19771
19772 for ac_func in fork vfork
19773 do :
19774   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19776 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19777   cat >>confdefs.h <<_ACEOF
19778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19779 _ACEOF
19780
19781 fi
19782 done
19783
19784 if test "x$ac_cv_func_fork" = xyes; then
19785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19786 $as_echo_n "checking for working fork... " >&6; }
19787 if ${ac_cv_func_fork_works+:} false; then :
19788   $as_echo_n "(cached) " >&6
19789 else
19790   if test "$cross_compiling" = yes; then :
19791   ac_cv_func_fork_works=cross
19792 else
19793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19794 /* end confdefs.h.  */
19795 $ac_includes_default
19796 int
19797 main ()
19798 {
19799
19800           /* By Ruediger Kuhlmann. */
19801           return fork () < 0;
19802
19803   ;
19804   return 0;
19805 }
19806 _ACEOF
19807 if ac_fn_c_try_run "$LINENO"; then :
19808   ac_cv_func_fork_works=yes
19809 else
19810   ac_cv_func_fork_works=no
19811 fi
19812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19813   conftest.$ac_objext conftest.beam conftest.$ac_ext
19814 fi
19815
19816 fi
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19818 $as_echo "$ac_cv_func_fork_works" >&6; }
19819
19820 else
19821   ac_cv_func_fork_works=$ac_cv_func_fork
19822 fi
19823 if test "x$ac_cv_func_fork_works" = xcross; then
19824   case $host in
19825     *-*-amigaos* | *-*-msdosdjgpp*)
19826       # Override, as these systems have only a dummy fork() stub
19827       ac_cv_func_fork_works=no
19828       ;;
19829     *)
19830       ac_cv_func_fork_works=yes
19831       ;;
19832   esac
19833   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19834 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19835 fi
19836 ac_cv_func_vfork_works=$ac_cv_func_vfork
19837 if test "x$ac_cv_func_vfork" = xyes; then
19838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19839 $as_echo_n "checking for working vfork... " >&6; }
19840 if ${ac_cv_func_vfork_works+:} false; then :
19841   $as_echo_n "(cached) " >&6
19842 else
19843   if test "$cross_compiling" = yes; then :
19844   ac_cv_func_vfork_works=cross
19845 else
19846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847 /* end confdefs.h.  */
19848 /* Thanks to Paul Eggert for this test.  */
19849 $ac_includes_default
19850 #include <sys/wait.h>
19851 #ifdef HAVE_VFORK_H
19852 # include <vfork.h>
19853 #endif
19854 /* On some sparc systems, changes by the child to local and incoming
19855    argument registers are propagated back to the parent.  The compiler
19856    is told about this with #include <vfork.h>, but some compilers
19857    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19858    static variable whose address is put into a register that is
19859    clobbered by the vfork.  */
19860 static void
19861 #ifdef __cplusplus
19862 sparc_address_test (int arg)
19863 # else
19864 sparc_address_test (arg) int arg;
19865 #endif
19866 {
19867   static pid_t child;
19868   if (!child) {
19869     child = vfork ();
19870     if (child < 0) {
19871       perror ("vfork");
19872       _exit(2);
19873     }
19874     if (!child) {
19875       arg = getpid();
19876       write(-1, "", 0);
19877       _exit (arg);
19878     }
19879   }
19880 }
19881
19882 int
19883 main ()
19884 {
19885   pid_t parent = getpid ();
19886   pid_t child;
19887
19888   sparc_address_test (0);
19889
19890   child = vfork ();
19891
19892   if (child == 0) {
19893     /* Here is another test for sparc vfork register problems.  This
19894        test uses lots of local variables, at least as many local
19895        variables as main has allocated so far including compiler
19896        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19897        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19898        reuse the register of parent for one of the local variables,
19899        since it will think that parent can't possibly be used any more
19900        in this routine.  Assigning to the local variable will thus
19901        munge parent in the parent process.  */
19902     pid_t
19903       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19904       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19905     /* Convince the compiler that p..p7 are live; otherwise, it might
19906        use the same hardware register for all 8 local variables.  */
19907     if (p != p1 || p != p2 || p != p3 || p != p4
19908         || p != p5 || p != p6 || p != p7)
19909       _exit(1);
19910
19911     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19912        from child file descriptors.  If the child closes a descriptor
19913        before it execs or exits, this munges the parent's descriptor
19914        as well.  Test for this by closing stdout in the child.  */
19915     _exit(close(fileno(stdout)) != 0);
19916   } else {
19917     int status;
19918     struct stat st;
19919
19920     while (wait(&status) != child)
19921       ;
19922     return (
19923          /* Was there some problem with vforking?  */
19924          child < 0
19925
19926          /* Did the child fail?  (This shouldn't happen.)  */
19927          || status
19928
19929          /* Did the vfork/compiler bug occur?  */
19930          || parent != getpid()
19931
19932          /* Did the file descriptor bug occur?  */
19933          || fstat(fileno(stdout), &st) != 0
19934          );
19935   }
19936 }
19937 _ACEOF
19938 if ac_fn_c_try_run "$LINENO"; then :
19939   ac_cv_func_vfork_works=yes
19940 else
19941   ac_cv_func_vfork_works=no
19942 fi
19943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19944   conftest.$ac_objext conftest.beam conftest.$ac_ext
19945 fi
19946
19947 fi
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19949 $as_echo "$ac_cv_func_vfork_works" >&6; }
19950
19951 fi;
19952 if test "x$ac_cv_func_fork_works" = xcross; then
19953   ac_cv_func_vfork_works=$ac_cv_func_vfork
19954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19955 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19956 fi
19957
19958 if test "x$ac_cv_func_vfork_works" = xyes; then
19959
19960 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19961
19962 else
19963
19964 $as_echo "#define vfork fork" >>confdefs.h
19965
19966 fi
19967 if test "x$ac_cv_func_fork_works" = xyes; then
19968
19969 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19970
19971 fi
19972
19973 for ac_header in stdlib.h
19974 do :
19975   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19976 if test "x$ac_cv_header_stdlib_h" = xyes; then :
19977   cat >>confdefs.h <<_ACEOF
19978 #define HAVE_STDLIB_H 1
19979 _ACEOF
19980
19981 fi
19982
19983 done
19984
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19986 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19987 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19988   $as_echo_n "(cached) " >&6
19989 else
19990   if test "$cross_compiling" = yes; then :
19991   ac_cv_func_malloc_0_nonnull=no
19992 else
19993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h.  */
19995 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19996 # include <stdlib.h>
19997 #else
19998 char *malloc ();
19999 #endif
20000
20001 int
20002 main ()
20003 {
20004 return ! malloc (0);
20005   ;
20006   return 0;
20007 }
20008 _ACEOF
20009 if ac_fn_c_try_run "$LINENO"; then :
20010   ac_cv_func_malloc_0_nonnull=yes
20011 else
20012   ac_cv_func_malloc_0_nonnull=no
20013 fi
20014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20015   conftest.$ac_objext conftest.beam conftest.$ac_ext
20016 fi
20017
20018 fi
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
20020 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
20021 if test $ac_cv_func_malloc_0_nonnull = yes; then :
20022
20023 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
20024
20025 else
20026   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
20027
20028    case " $LIBOBJS " in
20029   *" malloc.$ac_objext "* ) ;;
20030   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20031  ;;
20032 esac
20033
20034
20035 $as_echo "#define malloc rpl_malloc" >>confdefs.h
20036
20037 fi
20038
20039
20040 if test "$cross_compiling" = yes; then :
20041   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_malloc_0_nonnull guessed because of cross compilation" >&5
20042 $as_echo "$as_me: WARNING: result $ac_cv_func_malloc_0_nonnull guessed because of cross compilation" >&2;}
20043 fi
20044 for ac_header in stdlib.h
20045 do :
20046   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
20047 if test "x$ac_cv_header_stdlib_h" = xyes; then :
20048   cat >>confdefs.h <<_ACEOF
20049 #define HAVE_STDLIB_H 1
20050 _ACEOF
20051
20052 fi
20053
20054 done
20055
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
20057 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
20058 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
20059   $as_echo_n "(cached) " >&6
20060 else
20061   if test "$cross_compiling" = yes; then :
20062   ac_cv_func_realloc_0_nonnull=no
20063 else
20064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h.  */
20066 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20067 # include <stdlib.h>
20068 #else
20069 char *realloc ();
20070 #endif
20071
20072 int
20073 main ()
20074 {
20075 return ! realloc (0, 0);
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 if ac_fn_c_try_run "$LINENO"; then :
20081   ac_cv_func_realloc_0_nonnull=yes
20082 else
20083   ac_cv_func_realloc_0_nonnull=no
20084 fi
20085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20086   conftest.$ac_objext conftest.beam conftest.$ac_ext
20087 fi
20088
20089 fi
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
20091 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
20092 if test $ac_cv_func_realloc_0_nonnull = yes; then :
20093
20094 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
20095
20096 else
20097   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
20098
20099    case " $LIBOBJS " in
20100   *" realloc.$ac_objext "* ) ;;
20101   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
20102  ;;
20103 esac
20104
20105
20106 $as_echo "#define realloc rpl_realloc" >>confdefs.h
20107
20108 fi
20109
20110
20111 if test "$cross_compiling" = yes; then :
20112   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation" >&5
20113 $as_echo "$as_me: WARNING: result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation" >&2;}
20114 fi
20115
20116 for ac_func in dup2 memset regcomp strcasecmp strchr strdup strtol
20117 do :
20118   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20120 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20121   cat >>confdefs.h <<_ACEOF
20122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20123 _ACEOF
20124
20125 else
20126   as_fn_error $? "required library function not found on your system" "$LINENO" 5
20127 fi
20128 done
20129
20130
20131 # Optional library functions
20132 for ac_func in pow setlocale reallocarray
20133 do :
20134   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20136 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20137   cat >>confdefs.h <<_ACEOF
20138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20139 _ACEOF
20140
20141 fi
20142 done
20143
20144
20145 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile po/Makefile.in src/Makefile tools/Makefile tests/Makefile"
20146
20147
20148 cat >confcache <<\_ACEOF
20149 # This file is a shell script that caches the results of configure
20150 # tests run on this system so they can be shared between configure
20151 # scripts and configure runs, see configure's option --config-cache.
20152 # It is not useful on other systems.  If it contains results you don't
20153 # want to keep, you may remove or edit it.
20154 #
20155 # config.status only pays attention to the cache file if you give it
20156 # the --recheck option to rerun configure.
20157 #
20158 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20159 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20160 # following values.
20161
20162 _ACEOF
20163
20164 # The following way of writing the cache mishandles newlines in values,
20165 # but we know of no workaround that is simple, portable, and efficient.
20166 # So, we kill variables containing newlines.
20167 # Ultrix sh set writes to stderr and can't be redirected directly,
20168 # and sets the high bit in the cache file unless we assign to the vars.
20169 (
20170   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20171     eval ac_val=\$$ac_var
20172     case $ac_val in #(
20173     *${as_nl}*)
20174       case $ac_var in #(
20175       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20177       esac
20178       case $ac_var in #(
20179       _ | IFS | as_nl) ;; #(
20180       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20181       *) { eval $ac_var=; unset $ac_var;} ;;
20182       esac ;;
20183     esac
20184   done
20185
20186   (set) 2>&1 |
20187     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20188     *${as_nl}ac_space=\ *)
20189       # `set' does not quote correctly, so add quotes: double-quote
20190       # substitution turns \\\\ into \\, and sed turns \\ into \.
20191       sed -n \
20192         "s/'/'\\\\''/g;
20193           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20194       ;; #(
20195     *)
20196       # `set' quotes correctly as required by POSIX, so do not add quotes.
20197       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20198       ;;
20199     esac |
20200     sort
20201 ) |
20202   sed '
20203      /^ac_cv_env_/b end
20204      t clear
20205      :clear
20206      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20207      t end
20208      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20209      :end' >>confcache
20210 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20211   if test -w "$cache_file"; then
20212     if test "x$cache_file" != "x/dev/null"; then
20213       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20214 $as_echo "$as_me: updating cache $cache_file" >&6;}
20215       if test ! -f "$cache_file" || test -h "$cache_file"; then
20216         cat confcache >"$cache_file"
20217       else
20218         case $cache_file in #(
20219         */* | ?:*)
20220           mv -f confcache "$cache_file"$$ &&
20221           mv -f "$cache_file"$$ "$cache_file" ;; #(
20222         *)
20223           mv -f confcache "$cache_file" ;;
20224         esac
20225       fi
20226     fi
20227   else
20228     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20230   fi
20231 fi
20232 rm -f confcache
20233
20234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20235 # Let make expand exec_prefix.
20236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20237
20238 DEFS=-DHAVE_CONFIG_H
20239
20240 ac_libobjs=
20241 ac_ltlibobjs=
20242 U=
20243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20244   # 1. Remove the extension, and $U if already installed.
20245   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20246   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20247   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20248   #    will be set to the directory where LIBOBJS objects are built.
20249   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20250   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20251 done
20252 LIBOBJS=$ac_libobjs
20253
20254 LTLIBOBJS=$ac_ltlibobjs
20255
20256
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20258 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20259    if test -n "$am_sleep_pid"; then
20260      # Hide warnings about reused PIDs.
20261      wait $am_sleep_pid 2>/dev/null
20262    fi
20263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20264 $as_echo "done" >&6; }
20265 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20266   as_fn_error $? "conditional \"AMDEP\" was never defined.
20267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20268 fi
20269 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20270   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20272 fi
20273  if test -n "$EXEEXT"; then
20274   am__EXEEXT_TRUE=
20275   am__EXEEXT_FALSE='#'
20276 else
20277   am__EXEEXT_TRUE='#'
20278   am__EXEEXT_FALSE=
20279 fi
20280
20281 if test -z "${HAVE_BISON_TRUE}" && test -z "${HAVE_BISON_FALSE}"; then
20282   as_fn_error $? "conditional \"HAVE_BISON\" was never defined.
20283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20284 fi
20285 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20286   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20288 fi
20289 if test -z "${ENABLE_LIBFL_TRUE}" && test -z "${ENABLE_LIBFL_FALSE}"; then
20290   as_fn_error $? "conditional \"ENABLE_LIBFL\" was never defined.
20291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20292 fi
20293 if test -z "${ENABLE_BOOTSTRAP_TRUE}" && test -z "${ENABLE_BOOTSTRAP_FALSE}"; then
20294   as_fn_error $? "conditional \"ENABLE_BOOTSTRAP\" was never defined.
20295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20296 fi
20297 if test -z "${CROSS_TRUE}" && test -z "${CROSS_FALSE}"; then
20298   as_fn_error $? "conditional \"CROSS\" was never defined.
20299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20300 fi
20301
20302 : "${CONFIG_STATUS=./config.status}"
20303 ac_write_fail=0
20304 ac_clean_files_save=$ac_clean_files
20305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20307 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20308 as_write_fail=0
20309 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20310 #! $SHELL
20311 # Generated by $as_me.
20312 # Run this file to recreate the current configuration.
20313 # Compiler output produced by configure, useful for debugging
20314 # configure, is in config.log if it exists.
20315
20316 debug=false
20317 ac_cs_recheck=false
20318 ac_cs_silent=false
20319
20320 SHELL=\${CONFIG_SHELL-$SHELL}
20321 export SHELL
20322 _ASEOF
20323 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20324 ## -------------------- ##
20325 ## M4sh Initialization. ##
20326 ## -------------------- ##
20327
20328 # Be more Bourne compatible
20329 DUALCASE=1; export DUALCASE # for MKS sh
20330 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20331   emulate sh
20332   NULLCMD=:
20333   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20334   # is contrary to our usage.  Disable this feature.
20335   alias -g '${1+"$@"}'='"$@"'
20336   setopt NO_GLOB_SUBST
20337 else
20338   case `(set -o) 2>/dev/null` in #(
20339   *posix*) :
20340     set -o posix ;; #(
20341   *) :
20342      ;;
20343 esac
20344 fi
20345
20346
20347 as_nl='
20348 '
20349 export as_nl
20350 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20351 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20352 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20354 # Prefer a ksh shell builtin over an external printf program on Solaris,
20355 # but without wasting forks for bash or zsh.
20356 if test -z "$BASH_VERSION$ZSH_VERSION" \
20357     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20358   as_echo='print -r --'
20359   as_echo_n='print -rn --'
20360 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20361   as_echo='printf %s\n'
20362   as_echo_n='printf %s'
20363 else
20364   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20365     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20366     as_echo_n='/usr/ucb/echo -n'
20367   else
20368     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20369     as_echo_n_body='eval
20370       arg=$1;
20371       case $arg in #(
20372       *"$as_nl"*)
20373         expr "X$arg" : "X\\(.*\\)$as_nl";
20374         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20375       esac;
20376       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20377     '
20378     export as_echo_n_body
20379     as_echo_n='sh -c $as_echo_n_body as_echo'
20380   fi
20381   export as_echo_body
20382   as_echo='sh -c $as_echo_body as_echo'
20383 fi
20384
20385 # The user is always right.
20386 if test "${PATH_SEPARATOR+set}" != set; then
20387   PATH_SEPARATOR=:
20388   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20389     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20390       PATH_SEPARATOR=';'
20391   }
20392 fi
20393
20394
20395 # IFS
20396 # We need space, tab and new line, in precisely that order.  Quoting is
20397 # there to prevent editors from complaining about space-tab.
20398 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20399 # splitting by setting IFS to empty value.)
20400 IFS=" ""        $as_nl"
20401
20402 # Find who we are.  Look in the path if we contain no directory separator.
20403 as_myself=
20404 case $0 in #((
20405   *[\\/]* ) as_myself=$0 ;;
20406   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20407 for as_dir in $PATH
20408 do
20409   IFS=$as_save_IFS
20410   test -z "$as_dir" && as_dir=.
20411     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20412   done
20413 IFS=$as_save_IFS
20414
20415      ;;
20416 esac
20417 # We did not find ourselves, most probably we were run as `sh COMMAND'
20418 # in which case we are not to be found in the path.
20419 if test "x$as_myself" = x; then
20420   as_myself=$0
20421 fi
20422 if test ! -f "$as_myself"; then
20423   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20424   exit 1
20425 fi
20426
20427 # Unset variables that we do not need and which cause bugs (e.g. in
20428 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20429 # suppresses any "Segmentation fault" message there.  '((' could
20430 # trigger a bug in pdksh 5.2.14.
20431 for as_var in BASH_ENV ENV MAIL MAILPATH
20432 do eval test x\${$as_var+set} = xset \
20433   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20434 done
20435 PS1='$ '
20436 PS2='> '
20437 PS4='+ '
20438
20439 # NLS nuisances.
20440 LC_ALL=C
20441 export LC_ALL
20442 LANGUAGE=C
20443 export LANGUAGE
20444
20445 # CDPATH.
20446 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20447
20448
20449 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20450 # ----------------------------------------
20451 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20452 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20453 # script with STATUS, using 1 if that was 0.
20454 as_fn_error ()
20455 {
20456   as_status=$1; test $as_status -eq 0 && as_status=1
20457   if test "$4"; then
20458     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20459     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20460   fi
20461   $as_echo "$as_me: error: $2" >&2
20462   as_fn_exit $as_status
20463 } # as_fn_error
20464
20465
20466 # as_fn_set_status STATUS
20467 # -----------------------
20468 # Set $? to STATUS, without forking.
20469 as_fn_set_status ()
20470 {
20471   return $1
20472 } # as_fn_set_status
20473
20474 # as_fn_exit STATUS
20475 # -----------------
20476 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20477 as_fn_exit ()
20478 {
20479   set +e
20480   as_fn_set_status $1
20481   exit $1
20482 } # as_fn_exit
20483
20484 # as_fn_unset VAR
20485 # ---------------
20486 # Portably unset VAR.
20487 as_fn_unset ()
20488 {
20489   { eval $1=; unset $1;}
20490 }
20491 as_unset=as_fn_unset
20492 # as_fn_append VAR VALUE
20493 # ----------------------
20494 # Append the text in VALUE to the end of the definition contained in VAR. Take
20495 # advantage of any shell optimizations that allow amortized linear growth over
20496 # repeated appends, instead of the typical quadratic growth present in naive
20497 # implementations.
20498 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20499   eval 'as_fn_append ()
20500   {
20501     eval $1+=\$2
20502   }'
20503 else
20504   as_fn_append ()
20505   {
20506     eval $1=\$$1\$2
20507   }
20508 fi # as_fn_append
20509
20510 # as_fn_arith ARG...
20511 # ------------------
20512 # Perform arithmetic evaluation on the ARGs, and store the result in the
20513 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20514 # must be portable across $(()) and expr.
20515 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20516   eval 'as_fn_arith ()
20517   {
20518     as_val=$(( $* ))
20519   }'
20520 else
20521   as_fn_arith ()
20522   {
20523     as_val=`expr "$@" || test $? -eq 1`
20524   }
20525 fi # as_fn_arith
20526
20527
20528 if expr a : '\(a\)' >/dev/null 2>&1 &&
20529    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20530   as_expr=expr
20531 else
20532   as_expr=false
20533 fi
20534
20535 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20536   as_basename=basename
20537 else
20538   as_basename=false
20539 fi
20540
20541 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20542   as_dirname=dirname
20543 else
20544   as_dirname=false
20545 fi
20546
20547 as_me=`$as_basename -- "$0" ||
20548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20549          X"$0" : 'X\(//\)$' \| \
20550          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20551 $as_echo X/"$0" |
20552     sed '/^.*\/\([^/][^/]*\)\/*$/{
20553             s//\1/
20554             q
20555           }
20556           /^X\/\(\/\/\)$/{
20557             s//\1/
20558             q
20559           }
20560           /^X\/\(\/\).*/{
20561             s//\1/
20562             q
20563           }
20564           s/.*/./; q'`
20565
20566 # Avoid depending upon Character Ranges.
20567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20570 as_cr_digits='0123456789'
20571 as_cr_alnum=$as_cr_Letters$as_cr_digits
20572
20573 ECHO_C= ECHO_N= ECHO_T=
20574 case `echo -n x` in #(((((
20575 -n*)
20576   case `echo 'xy\c'` in
20577   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20578   xy)  ECHO_C='\c';;
20579   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20580        ECHO_T=' ';;
20581   esac;;
20582 *)
20583   ECHO_N='-n';;
20584 esac
20585
20586 rm -f conf$$ conf$$.exe conf$$.file
20587 if test -d conf$$.dir; then
20588   rm -f conf$$.dir/conf$$.file
20589 else
20590   rm -f conf$$.dir
20591   mkdir conf$$.dir 2>/dev/null
20592 fi
20593 if (echo >conf$$.file) 2>/dev/null; then
20594   if ln -s conf$$.file conf$$ 2>/dev/null; then
20595     as_ln_s='ln -s'
20596     # ... but there are two gotchas:
20597     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20598     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20599     # In both cases, we have to default to `cp -pR'.
20600     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20601       as_ln_s='cp -pR'
20602   elif ln conf$$.file conf$$ 2>/dev/null; then
20603     as_ln_s=ln
20604   else
20605     as_ln_s='cp -pR'
20606   fi
20607 else
20608   as_ln_s='cp -pR'
20609 fi
20610 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20611 rmdir conf$$.dir 2>/dev/null
20612
20613
20614 # as_fn_mkdir_p
20615 # -------------
20616 # Create "$as_dir" as a directory, including parents if necessary.
20617 as_fn_mkdir_p ()
20618 {
20619
20620   case $as_dir in #(
20621   -*) as_dir=./$as_dir;;
20622   esac
20623   test -d "$as_dir" || eval $as_mkdir_p || {
20624     as_dirs=
20625     while :; do
20626       case $as_dir in #(
20627       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20628       *) as_qdir=$as_dir;;
20629       esac
20630       as_dirs="'$as_qdir' $as_dirs"
20631       as_dir=`$as_dirname -- "$as_dir" ||
20632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20633          X"$as_dir" : 'X\(//\)[^/]' \| \
20634          X"$as_dir" : 'X\(//\)$' \| \
20635          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20636 $as_echo X"$as_dir" |
20637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20638             s//\1/
20639             q
20640           }
20641           /^X\(\/\/\)[^/].*/{
20642             s//\1/
20643             q
20644           }
20645           /^X\(\/\/\)$/{
20646             s//\1/
20647             q
20648           }
20649           /^X\(\/\).*/{
20650             s//\1/
20651             q
20652           }
20653           s/.*/./; q'`
20654       test -d "$as_dir" && break
20655     done
20656     test -z "$as_dirs" || eval "mkdir $as_dirs"
20657   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20658
20659
20660 } # as_fn_mkdir_p
20661 if mkdir -p . 2>/dev/null; then
20662   as_mkdir_p='mkdir -p "$as_dir"'
20663 else
20664   test -d ./-p && rmdir ./-p
20665   as_mkdir_p=false
20666 fi
20667
20668
20669 # as_fn_executable_p FILE
20670 # -----------------------
20671 # Test if FILE is an executable regular file.
20672 as_fn_executable_p ()
20673 {
20674   test -f "$1" && test -x "$1"
20675 } # as_fn_executable_p
20676 as_test_x='test -x'
20677 as_executable_p=as_fn_executable_p
20678
20679 # Sed expression to map a string onto a valid CPP name.
20680 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20681
20682 # Sed expression to map a string onto a valid variable name.
20683 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20684
20685
20686 exec 6>&1
20687 ## ----------------------------------- ##
20688 ## Main body of $CONFIG_STATUS script. ##
20689 ## ----------------------------------- ##
20690 _ASEOF
20691 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20692
20693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20694 # Save the log message, to keep $0 and so on meaningful, and to
20695 # report actual input values of CONFIG_FILES etc. instead of their
20696 # values after options handling.
20697 ac_log="
20698 This file was extended by the fast lexical analyser generator $as_me 2.6.4, which was
20699 generated by GNU Autoconf 2.69.  Invocation command line was
20700
20701   CONFIG_FILES    = $CONFIG_FILES
20702   CONFIG_HEADERS  = $CONFIG_HEADERS
20703   CONFIG_LINKS    = $CONFIG_LINKS
20704   CONFIG_COMMANDS = $CONFIG_COMMANDS
20705   $ $0 $@
20706
20707 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20708 "
20709
20710 _ACEOF
20711
20712 case $ac_config_files in *"
20713 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20714 esac
20715
20716 case $ac_config_headers in *"
20717 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20718 esac
20719
20720
20721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20722 # Files that config.status was made for.
20723 config_files="$ac_config_files"
20724 config_headers="$ac_config_headers"
20725 config_commands="$ac_config_commands"
20726
20727 _ACEOF
20728
20729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20730 ac_cs_usage="\
20731 \`$as_me' instantiates files and other configuration actions
20732 from templates according to the current configuration.  Unless the files
20733 and actions are specified as TAGs, all are instantiated by default.
20734
20735 Usage: $0 [OPTION]... [TAG]...
20736
20737   -h, --help       print this help, then exit
20738   -V, --version    print version number and configuration settings, then exit
20739       --config     print configuration, then exit
20740   -q, --quiet, --silent
20741                    do not print progress messages
20742   -d, --debug      don't remove temporary files
20743       --recheck    update $as_me by reconfiguring in the same conditions
20744       --file=FILE[:TEMPLATE]
20745                    instantiate the configuration file FILE
20746       --header=FILE[:TEMPLATE]
20747                    instantiate the configuration header FILE
20748
20749 Configuration files:
20750 $config_files
20751
20752 Configuration headers:
20753 $config_headers
20754
20755 Configuration commands:
20756 $config_commands
20757
20758 Report bugs to <flex-help@lists.sourceforge.net>."
20759
20760 _ACEOF
20761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20762 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20763 ac_cs_version="\\
20764 the fast lexical analyser generator config.status 2.6.4
20765 configured by $0, generated by GNU Autoconf 2.69,
20766   with options \\"\$ac_cs_config\\"
20767
20768 Copyright (C) 2012 Free Software Foundation, Inc.
20769 This config.status script is free software; the Free Software Foundation
20770 gives unlimited permission to copy, distribute and modify it."
20771
20772 ac_pwd='$ac_pwd'
20773 srcdir='$srcdir'
20774 INSTALL='$INSTALL'
20775 MKDIR_P='$MKDIR_P'
20776 AWK='$AWK'
20777 test -n "\$AWK" || AWK=awk
20778 _ACEOF
20779
20780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20781 # The default lists apply if the user does not specify any file.
20782 ac_need_defaults=:
20783 while test $# != 0
20784 do
20785   case $1 in
20786   --*=?*)
20787     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20788     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20789     ac_shift=:
20790     ;;
20791   --*=)
20792     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20793     ac_optarg=
20794     ac_shift=:
20795     ;;
20796   *)
20797     ac_option=$1
20798     ac_optarg=$2
20799     ac_shift=shift
20800     ;;
20801   esac
20802
20803   case $ac_option in
20804   # Handling of the options.
20805   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20806     ac_cs_recheck=: ;;
20807   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20808     $as_echo "$ac_cs_version"; exit ;;
20809   --config | --confi | --conf | --con | --co | --c )
20810     $as_echo "$ac_cs_config"; exit ;;
20811   --debug | --debu | --deb | --de | --d | -d )
20812     debug=: ;;
20813   --file | --fil | --fi | --f )
20814     $ac_shift
20815     case $ac_optarg in
20816     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20817     '') as_fn_error $? "missing file argument" ;;
20818     esac
20819     as_fn_append CONFIG_FILES " '$ac_optarg'"
20820     ac_need_defaults=false;;
20821   --header | --heade | --head | --hea )
20822     $ac_shift
20823     case $ac_optarg in
20824     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20825     esac
20826     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20827     ac_need_defaults=false;;
20828   --he | --h)
20829     # Conflict between --help and --header
20830     as_fn_error $? "ambiguous option: \`$1'
20831 Try \`$0 --help' for more information.";;
20832   --help | --hel | -h )
20833     $as_echo "$ac_cs_usage"; exit ;;
20834   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20835   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20836     ac_cs_silent=: ;;
20837
20838   # This is an error.
20839   -*) as_fn_error $? "unrecognized option: \`$1'
20840 Try \`$0 --help' for more information." ;;
20841
20842   *) as_fn_append ac_config_targets " $1"
20843      ac_need_defaults=false ;;
20844
20845   esac
20846   shift
20847 done
20848
20849 ac_configure_extra_args=
20850
20851 if $ac_cs_silent; then
20852   exec 6>/dev/null
20853   ac_configure_extra_args="$ac_configure_extra_args --silent"
20854 fi
20855
20856 _ACEOF
20857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20858 if \$ac_cs_recheck; then
20859   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20860   shift
20861   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20862   CONFIG_SHELL='$SHELL'
20863   export CONFIG_SHELL
20864   exec "\$@"
20865 fi
20866
20867 _ACEOF
20868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20869 exec 5>>config.log
20870 {
20871   echo
20872   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20873 ## Running $as_me. ##
20874 _ASBOX
20875   $as_echo "$ac_log"
20876 } >&5
20877
20878 _ACEOF
20879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20880 #
20881 # INIT-COMMANDS
20882 #
20883
20884
20885 # The HP-UX ksh and POSIX shell print the target directory to stdout
20886 # if CDPATH is set.
20887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20888
20889 sed_quote_subst='$sed_quote_subst'
20890 double_quote_subst='$double_quote_subst'
20891 delay_variable_subst='$delay_variable_subst'
20892 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20893 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20894 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20895 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20896 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20897 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20898 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20899 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20900 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20901 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20902 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20903 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20904 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20905 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20906 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20907 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20908 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20909 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20910 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20911 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20912 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20925 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20926 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20927 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20928 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20929 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20930 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20931 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20932 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20933 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20934 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20935 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20936 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20937 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20938 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20939 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20940 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20941 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20942 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20943 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20944 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20945 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20946 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20947 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20948 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20949 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20950 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20951 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20952 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20953 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20954 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20955 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20956 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20957 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20958 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20959 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20960 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20961 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20962 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20963 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20964 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20965 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20966 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20967 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20968 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20969 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20970 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20971 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20972 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20973 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20974 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20975 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20976 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20977 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20978 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20979 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20980 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20981 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20982 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20983 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20984 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20985 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20986 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20987 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20988 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20989 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20990 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20991 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20992 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20993 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20994 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20995 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20996 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20997 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20998 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20999 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21000 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21001 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21002 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21003 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21004 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21005 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21006 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21007 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21008 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21009 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21010 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21011 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21012 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21013 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21014 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21015 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21016 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21017 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21018 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21019 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21020 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21021 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21022 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21023 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21024 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21025 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21026 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21027 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21028 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21029 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21030 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21031 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21032 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21033 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21034 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21035 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21036 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21037 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21038 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21039 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21040 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21041 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21042 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21043 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21044 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21045 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21046 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21047 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21048 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21049 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21050 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21051 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21052 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21053 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21054 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21055 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21056 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21057 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21058 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21059 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21060 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21061 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21062 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21063 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21064 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21065 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21066 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21067 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21068 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21069 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21070 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21071 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21072 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21073 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21074 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21075 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21076
21077 LTCC='$LTCC'
21078 LTCFLAGS='$LTCFLAGS'
21079 compiler='$compiler_DEFAULT'
21080
21081 # A function that is used when there is no print builtin or printf.
21082 func_fallback_echo ()
21083 {
21084   eval 'cat <<_LTECHO_EOF
21085 \$1
21086 _LTECHO_EOF'
21087 }
21088
21089 # Quote evaled strings.
21090 for var in SHELL \
21091 ECHO \
21092 PATH_SEPARATOR \
21093 SED \
21094 GREP \
21095 EGREP \
21096 FGREP \
21097 LD \
21098 NM \
21099 LN_S \
21100 lt_SP2NL \
21101 lt_NL2SP \
21102 reload_flag \
21103 OBJDUMP \
21104 deplibs_check_method \
21105 file_magic_cmd \
21106 file_magic_glob \
21107 want_nocaseglob \
21108 DLLTOOL \
21109 sharedlib_from_linklib_cmd \
21110 AR \
21111 AR_FLAGS \
21112 archiver_list_spec \
21113 STRIP \
21114 RANLIB \
21115 CC \
21116 CFLAGS \
21117 compiler \
21118 lt_cv_sys_global_symbol_pipe \
21119 lt_cv_sys_global_symbol_to_cdecl \
21120 lt_cv_sys_global_symbol_to_c_name_address \
21121 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21122 nm_file_list_spec \
21123 lt_prog_compiler_no_builtin_flag \
21124 lt_prog_compiler_pic \
21125 lt_prog_compiler_wl \
21126 lt_prog_compiler_static \
21127 lt_cv_prog_compiler_c_o \
21128 need_locks \
21129 MANIFEST_TOOL \
21130 DSYMUTIL \
21131 NMEDIT \
21132 LIPO \
21133 OTOOL \
21134 OTOOL64 \
21135 shrext_cmds \
21136 export_dynamic_flag_spec \
21137 whole_archive_flag_spec \
21138 compiler_needs_object \
21139 with_gnu_ld \
21140 allow_undefined_flag \
21141 no_undefined_flag \
21142 hardcode_libdir_flag_spec \
21143 hardcode_libdir_separator \
21144 exclude_expsyms \
21145 include_expsyms \
21146 file_list_spec \
21147 variables_saved_for_relink \
21148 libname_spec \
21149 library_names_spec \
21150 soname_spec \
21151 install_override_mode \
21152 finish_eval \
21153 old_striplib \
21154 striplib \
21155 compiler_lib_search_dirs \
21156 predep_objects \
21157 postdep_objects \
21158 predeps \
21159 postdeps \
21160 compiler_lib_search_path \
21161 LD_CXX \
21162 reload_flag_CXX \
21163 compiler_CXX \
21164 lt_prog_compiler_no_builtin_flag_CXX \
21165 lt_prog_compiler_pic_CXX \
21166 lt_prog_compiler_wl_CXX \
21167 lt_prog_compiler_static_CXX \
21168 lt_cv_prog_compiler_c_o_CXX \
21169 export_dynamic_flag_spec_CXX \
21170 whole_archive_flag_spec_CXX \
21171 compiler_needs_object_CXX \
21172 with_gnu_ld_CXX \
21173 allow_undefined_flag_CXX \
21174 no_undefined_flag_CXX \
21175 hardcode_libdir_flag_spec_CXX \
21176 hardcode_libdir_separator_CXX \
21177 exclude_expsyms_CXX \
21178 include_expsyms_CXX \
21179 file_list_spec_CXX \
21180 compiler_lib_search_dirs_CXX \
21181 predep_objects_CXX \
21182 postdep_objects_CXX \
21183 predeps_CXX \
21184 postdeps_CXX \
21185 compiler_lib_search_path_CXX; do
21186     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21187     *[\\\\\\\`\\"\\\$]*)
21188       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21189       ;;
21190     *)
21191       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21192       ;;
21193     esac
21194 done
21195
21196 # Double-quote double-evaled strings.
21197 for var in reload_cmds \
21198 old_postinstall_cmds \
21199 old_postuninstall_cmds \
21200 old_archive_cmds \
21201 extract_expsyms_cmds \
21202 old_archive_from_new_cmds \
21203 old_archive_from_expsyms_cmds \
21204 archive_cmds \
21205 archive_expsym_cmds \
21206 module_cmds \
21207 module_expsym_cmds \
21208 export_symbols_cmds \
21209 prelink_cmds \
21210 postlink_cmds \
21211 postinstall_cmds \
21212 postuninstall_cmds \
21213 finish_cmds \
21214 sys_lib_search_path_spec \
21215 sys_lib_dlsearch_path_spec \
21216 reload_cmds_CXX \
21217 old_archive_cmds_CXX \
21218 old_archive_from_new_cmds_CXX \
21219 old_archive_from_expsyms_cmds_CXX \
21220 archive_cmds_CXX \
21221 archive_expsym_cmds_CXX \
21222 module_cmds_CXX \
21223 module_expsym_cmds_CXX \
21224 export_symbols_cmds_CXX \
21225 prelink_cmds_CXX \
21226 postlink_cmds_CXX; do
21227     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21228     *[\\\\\\\`\\"\\\$]*)
21229       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21230       ;;
21231     *)
21232       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21233       ;;
21234     esac
21235 done
21236
21237 ac_aux_dir='$ac_aux_dir'
21238 xsi_shell='$xsi_shell'
21239 lt_shell_append='$lt_shell_append'
21240
21241 # See if we are running on zsh, and set the options which allow our
21242 # commands through without removal of \ escapes INIT.
21243 if test -n "\${ZSH_VERSION+set}" ; then
21244    setopt NO_GLOB_SUBST
21245 fi
21246
21247
21248     PACKAGE='$PACKAGE'
21249     VERSION='$VERSION'
21250     TIMESTAMP='$TIMESTAMP'
21251     RM='$RM'
21252     ofile='$ofile'
21253
21254
21255
21256
21257
21258 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21259 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21260     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21261     # from automake < 1.5.
21262     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21263     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21264     LINGUAS="${LINGUAS-%UNSET%}"
21265
21266
21267 _ACEOF
21268
21269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21270
21271 # Handling of arguments.
21272 for ac_config_target in $ac_config_targets
21273 do
21274   case $ac_config_target in
21275     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21276     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21277     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21278     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21279     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21280     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21281     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21282     "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
21283     "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
21284     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21285     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21286     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21287     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21288
21289   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21290   esac
21291 done
21292
21293
21294 # If the user did not use the arguments to specify the items to instantiate,
21295 # then the envvar interface is used.  Set only those that are not.
21296 # We use the long form for the default assignment because of an extremely
21297 # bizarre bug on SunOS 4.1.3.
21298 if $ac_need_defaults; then
21299   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21300   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21301   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21302 fi
21303
21304 # Have a temporary directory for convenience.  Make it in the build tree
21305 # simply because there is no reason against having it here, and in addition,
21306 # creating and moving files from /tmp can sometimes cause problems.
21307 # Hook for its removal unless debugging.
21308 # Note that there is a small window in which the directory will not be cleaned:
21309 # after its creation but before its name has been assigned to `$tmp'.
21310 $debug ||
21311 {
21312   tmp= ac_tmp=
21313   trap 'exit_status=$?
21314   : "${ac_tmp:=$tmp}"
21315   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21316 ' 0
21317   trap 'as_fn_exit 1' 1 2 13 15
21318 }
21319 # Create a (secure) tmp directory for tmp files.
21320
21321 {
21322   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21323   test -d "$tmp"
21324 }  ||
21325 {
21326   tmp=./conf$$-$RANDOM
21327   (umask 077 && mkdir "$tmp")
21328 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21329 ac_tmp=$tmp
21330
21331 # Set up the scripts for CONFIG_FILES section.
21332 # No need to generate them if there are no CONFIG_FILES.
21333 # This happens for instance with `./config.status config.h'.
21334 if test -n "$CONFIG_FILES"; then
21335
21336
21337 ac_cr=`echo X | tr X '\015'`
21338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21339 # But we know of no other shell where ac_cr would be empty at this
21340 # point, so we can use a bashism as a fallback.
21341 if test "x$ac_cr" = x; then
21342   eval ac_cr=\$\'\\r\'
21343 fi
21344 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21346   ac_cs_awk_cr='\\r'
21347 else
21348   ac_cs_awk_cr=$ac_cr
21349 fi
21350
21351 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21352 _ACEOF
21353
21354
21355 {
21356   echo "cat >conf$$subs.awk <<_ACEOF" &&
21357   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21358   echo "_ACEOF"
21359 } >conf$$subs.sh ||
21360   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21362 ac_delim='%!_!# '
21363 for ac_last_try in false false false false false :; do
21364   . ./conf$$subs.sh ||
21365     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21366
21367   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21368   if test $ac_delim_n = $ac_delim_num; then
21369     break
21370   elif $ac_last_try; then
21371     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21372   else
21373     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21374   fi
21375 done
21376 rm -f conf$$subs.sh
21377
21378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21379 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21380 _ACEOF
21381 sed -n '
21382 h
21383 s/^/S["/; s/!.*/"]=/
21384 p
21385 g
21386 s/^[^!]*!//
21387 :repl
21388 t repl
21389 s/'"$ac_delim"'$//
21390 t delim
21391 :nl
21392 h
21393 s/\(.\{148\}\)..*/\1/
21394 t more1
21395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21396 p
21397 n
21398 b repl
21399 :more1
21400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21401 p
21402 g
21403 s/.\{148\}//
21404 t nl
21405 :delim
21406 h
21407 s/\(.\{148\}\)..*/\1/
21408 t more2
21409 s/["\\]/\\&/g; s/^/"/; s/$/"/
21410 p
21411 b
21412 :more2
21413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21414 p
21415 g
21416 s/.\{148\}//
21417 t delim
21418 ' <conf$$subs.awk | sed '
21419 /^[^""]/{
21420   N
21421   s/\n//
21422 }
21423 ' >>$CONFIG_STATUS || ac_write_fail=1
21424 rm -f conf$$subs.awk
21425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21426 _ACAWK
21427 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21428   for (key in S) S_is_set[key] = 1
21429   FS = "\a"
21430
21431 }
21432 {
21433   line = $ 0
21434   nfields = split(line, field, "@")
21435   substed = 0
21436   len = length(field[1])
21437   for (i = 2; i < nfields; i++) {
21438     key = field[i]
21439     keylen = length(key)
21440     if (S_is_set[key]) {
21441       value = S[key]
21442       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21443       len += length(value) + length(field[++i])
21444       substed = 1
21445     } else
21446       len += 1 + keylen
21447   }
21448
21449   print line
21450 }
21451
21452 _ACAWK
21453 _ACEOF
21454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21455 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21456   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21457 else
21458   cat
21459 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21460   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21461 _ACEOF
21462
21463 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21464 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21465 # trailing colons and then remove the whole line if VPATH becomes empty
21466 # (actually we leave an empty line to preserve line numbers).
21467 if test "x$srcdir" = x.; then
21468   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21469 h
21470 s///
21471 s/^/:/
21472 s/[      ]*$/:/
21473 s/:\$(srcdir):/:/g
21474 s/:\${srcdir}:/:/g
21475 s/:@srcdir@:/:/g
21476 s/^:*//
21477 s/:*$//
21478 x
21479 s/\(=[   ]*\).*/\1/
21480 G
21481 s/\n//
21482 s/^[^=]*=[       ]*$//
21483 }'
21484 fi
21485
21486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21487 fi # test -n "$CONFIG_FILES"
21488
21489 # Set up the scripts for CONFIG_HEADERS section.
21490 # No need to generate them if there are no CONFIG_HEADERS.
21491 # This happens for instance with `./config.status Makefile'.
21492 if test -n "$CONFIG_HEADERS"; then
21493 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21494 BEGIN {
21495 _ACEOF
21496
21497 # Transform confdefs.h into an awk script `defines.awk', embedded as
21498 # here-document in config.status, that substitutes the proper values into
21499 # config.h.in to produce config.h.
21500
21501 # Create a delimiter string that does not exist in confdefs.h, to ease
21502 # handling of long lines.
21503 ac_delim='%!_!# '
21504 for ac_last_try in false false :; do
21505   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21506   if test -z "$ac_tt"; then
21507     break
21508   elif $ac_last_try; then
21509     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21510   else
21511     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21512   fi
21513 done
21514
21515 # For the awk script, D is an array of macro values keyed by name,
21516 # likewise P contains macro parameters if any.  Preserve backslash
21517 # newline sequences.
21518
21519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21520 sed -n '
21521 s/.\{148\}/&'"$ac_delim"'/g
21522 t rset
21523 :rset
21524 s/^[     ]*#[    ]*define[       ][      ]*/ /
21525 t def
21526 d
21527 :def
21528 s/\\$//
21529 t bsnl
21530 s/["\\]/\\&/g
21531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21532 D["\1"]=" \3"/p
21533 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21534 d
21535 :bsnl
21536 s/["\\]/\\&/g
21537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21538 D["\1"]=" \3\\\\\\n"\\/p
21539 t cont
21540 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21541 t cont
21542 d
21543 :cont
21544 n
21545 s/.\{148\}/&'"$ac_delim"'/g
21546 t clear
21547 :clear
21548 s/\\$//
21549 t bsnlc
21550 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21551 d
21552 :bsnlc
21553 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21554 b cont
21555 ' <confdefs.h | sed '
21556 s/'"$ac_delim"'/"\\\
21557 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21558
21559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21560   for (key in D) D_is_set[key] = 1
21561   FS = "\a"
21562 }
21563 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21564   line = \$ 0
21565   split(line, arg, " ")
21566   if (arg[1] == "#") {
21567     defundef = arg[2]
21568     mac1 = arg[3]
21569   } else {
21570     defundef = substr(arg[1], 2)
21571     mac1 = arg[2]
21572   }
21573   split(mac1, mac2, "(") #)
21574   macro = mac2[1]
21575   prefix = substr(line, 1, index(line, defundef) - 1)
21576   if (D_is_set[macro]) {
21577     # Preserve the white space surrounding the "#".
21578     print prefix "define", macro P[macro] D[macro]
21579     next
21580   } else {
21581     # Replace #undef with comments.  This is necessary, for example,
21582     # in the case of _POSIX_SOURCE, which is predefined and required
21583     # on some systems where configure will not decide to define it.
21584     if (defundef == "undef") {
21585       print "/*", prefix defundef, macro, "*/"
21586       next
21587     }
21588   }
21589 }
21590 { print }
21591 _ACAWK
21592 _ACEOF
21593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21594   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21595 fi # test -n "$CONFIG_HEADERS"
21596
21597
21598 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21599 shift
21600 for ac_tag
21601 do
21602   case $ac_tag in
21603   :[FHLC]) ac_mode=$ac_tag; continue;;
21604   esac
21605   case $ac_mode$ac_tag in
21606   :[FHL]*:*);;
21607   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21608   :[FH]-) ac_tag=-:-;;
21609   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21610   esac
21611   ac_save_IFS=$IFS
21612   IFS=:
21613   set x $ac_tag
21614   IFS=$ac_save_IFS
21615   shift
21616   ac_file=$1
21617   shift
21618
21619   case $ac_mode in
21620   :L) ac_source=$1;;
21621   :[FH])
21622     ac_file_inputs=
21623     for ac_f
21624     do
21625       case $ac_f in
21626       -) ac_f="$ac_tmp/stdin";;
21627       *) # Look for the file first in the build tree, then in the source tree
21628          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21629          # because $ac_f cannot contain `:'.
21630          test -f "$ac_f" ||
21631            case $ac_f in
21632            [\\/$]*) false;;
21633            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21634            esac ||
21635            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21636       esac
21637       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21638       as_fn_append ac_file_inputs " '$ac_f'"
21639     done
21640
21641     # Let's still pretend it is `configure' which instantiates (i.e., don't
21642     # use $as_me), people would be surprised to read:
21643     #    /* config.h.  Generated by config.status.  */
21644     configure_input='Generated from '`
21645           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21646         `' by configure.'
21647     if test x"$ac_file" != x-; then
21648       configure_input="$ac_file.  $configure_input"
21649       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21650 $as_echo "$as_me: creating $ac_file" >&6;}
21651     fi
21652     # Neutralize special characters interpreted by sed in replacement strings.
21653     case $configure_input in #(
21654     *\&* | *\|* | *\\* )
21655        ac_sed_conf_input=`$as_echo "$configure_input" |
21656        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21657     *) ac_sed_conf_input=$configure_input;;
21658     esac
21659
21660     case $ac_tag in
21661     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21662       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21663     esac
21664     ;;
21665   esac
21666
21667   ac_dir=`$as_dirname -- "$ac_file" ||
21668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21669          X"$ac_file" : 'X\(//\)[^/]' \| \
21670          X"$ac_file" : 'X\(//\)$' \| \
21671          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21672 $as_echo X"$ac_file" |
21673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21674             s//\1/
21675             q
21676           }
21677           /^X\(\/\/\)[^/].*/{
21678             s//\1/
21679             q
21680           }
21681           /^X\(\/\/\)$/{
21682             s//\1/
21683             q
21684           }
21685           /^X\(\/\).*/{
21686             s//\1/
21687             q
21688           }
21689           s/.*/./; q'`
21690   as_dir="$ac_dir"; as_fn_mkdir_p
21691   ac_builddir=.
21692
21693 case "$ac_dir" in
21694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21695 *)
21696   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21697   # A ".." for each directory in $ac_dir_suffix.
21698   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21699   case $ac_top_builddir_sub in
21700   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21701   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21702   esac ;;
21703 esac
21704 ac_abs_top_builddir=$ac_pwd
21705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21706 # for backward compatibility:
21707 ac_top_builddir=$ac_top_build_prefix
21708
21709 case $srcdir in
21710   .)  # We are building in place.
21711     ac_srcdir=.
21712     ac_top_srcdir=$ac_top_builddir_sub
21713     ac_abs_top_srcdir=$ac_pwd ;;
21714   [\\/]* | ?:[\\/]* )  # Absolute name.
21715     ac_srcdir=$srcdir$ac_dir_suffix;
21716     ac_top_srcdir=$srcdir
21717     ac_abs_top_srcdir=$srcdir ;;
21718   *) # Relative name.
21719     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21720     ac_top_srcdir=$ac_top_build_prefix$srcdir
21721     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21722 esac
21723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21724
21725
21726   case $ac_mode in
21727   :F)
21728   #
21729   # CONFIG_FILE
21730   #
21731
21732   case $INSTALL in
21733   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21734   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21735   esac
21736   ac_MKDIR_P=$MKDIR_P
21737   case $MKDIR_P in
21738   [\\/$]* | ?:[\\/]* ) ;;
21739   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21740   esac
21741 _ACEOF
21742
21743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21744 # If the template does not know about datarootdir, expand it.
21745 # FIXME: This hack should be removed a few years after 2.60.
21746 ac_datarootdir_hack=; ac_datarootdir_seen=
21747 ac_sed_dataroot='
21748 /datarootdir/ {
21749   p
21750   q
21751 }
21752 /@datadir@/p
21753 /@docdir@/p
21754 /@infodir@/p
21755 /@localedir@/p
21756 /@mandir@/p'
21757 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21758 *datarootdir*) ac_datarootdir_seen=yes;;
21759 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21761 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21762 _ACEOF
21763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21764   ac_datarootdir_hack='
21765   s&@datadir@&$datadir&g
21766   s&@docdir@&$docdir&g
21767   s&@infodir@&$infodir&g
21768   s&@localedir@&$localedir&g
21769   s&@mandir@&$mandir&g
21770   s&\\\${datarootdir}&$datarootdir&g' ;;
21771 esac
21772 _ACEOF
21773
21774 # Neutralize VPATH when `$srcdir' = `.'.
21775 # Shell code in configure.ac might set extrasub.
21776 # FIXME: do we really want to maintain this feature?
21777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21778 ac_sed_extra="$ac_vpsub
21779 $extrasub
21780 _ACEOF
21781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21782 :t
21783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21784 s|@configure_input@|$ac_sed_conf_input|;t t
21785 s&@top_builddir@&$ac_top_builddir_sub&;t t
21786 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21787 s&@srcdir@&$ac_srcdir&;t t
21788 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21789 s&@top_srcdir@&$ac_top_srcdir&;t t
21790 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21791 s&@builddir@&$ac_builddir&;t t
21792 s&@abs_builddir@&$ac_abs_builddir&;t t
21793 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21794 s&@INSTALL@&$ac_INSTALL&;t t
21795 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21796 $ac_datarootdir_hack
21797 "
21798 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21799   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21800
21801 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21802   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21803   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21804       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21805   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21806 which seems to be undefined.  Please make sure it is defined" >&5
21807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21808 which seems to be undefined.  Please make sure it is defined" >&2;}
21809
21810   rm -f "$ac_tmp/stdin"
21811   case $ac_file in
21812   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21813   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21814   esac \
21815   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21816  ;;
21817   :H)
21818   #
21819   # CONFIG_HEADER
21820   #
21821   if test x"$ac_file" != x-; then
21822     {
21823       $as_echo "/* $configure_input  */" \
21824       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21825     } >"$ac_tmp/config.h" \
21826       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21827     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21828       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21829 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21830     else
21831       rm -f "$ac_file"
21832       mv "$ac_tmp/config.h" "$ac_file" \
21833         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21834     fi
21835   else
21836     $as_echo "/* $configure_input  */" \
21837       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21838       || as_fn_error $? "could not create -" "$LINENO" 5
21839   fi
21840 # Compute "$ac_file"'s index in $config_headers.
21841 _am_arg="$ac_file"
21842 _am_stamp_count=1
21843 for _am_header in $config_headers :; do
21844   case $_am_header in
21845     $_am_arg | $_am_arg:* )
21846       break ;;
21847     * )
21848       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21849   esac
21850 done
21851 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21852 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21853          X"$_am_arg" : 'X\(//\)[^/]' \| \
21854          X"$_am_arg" : 'X\(//\)$' \| \
21855          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21856 $as_echo X"$_am_arg" |
21857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21858             s//\1/
21859             q
21860           }
21861           /^X\(\/\/\)[^/].*/{
21862             s//\1/
21863             q
21864           }
21865           /^X\(\/\/\)$/{
21866             s//\1/
21867             q
21868           }
21869           /^X\(\/\).*/{
21870             s//\1/
21871             q
21872           }
21873           s/.*/./; q'`/stamp-h$_am_stamp_count
21874  ;;
21875
21876   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21877 $as_echo "$as_me: executing $ac_file commands" >&6;}
21878  ;;
21879   esac
21880
21881
21882   case $ac_file$ac_mode in
21883     "libtool":C)
21884
21885     # See if we are running on zsh, and set the options which allow our
21886     # commands through without removal of \ escapes.
21887     if test -n "${ZSH_VERSION+set}" ; then
21888       setopt NO_GLOB_SUBST
21889     fi
21890
21891     cfgfile="${ofile}T"
21892     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21893     $RM "$cfgfile"
21894
21895     cat <<_LT_EOF >> "$cfgfile"
21896 #! $SHELL
21897
21898 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21899 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21901 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21902 #
21903 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21904 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21905 #                 Foundation, Inc.
21906 #   Written by Gordon Matzigkeit, 1996
21907 #
21908 #   This file is part of GNU Libtool.
21909 #
21910 # GNU Libtool is free software; you can redistribute it and/or
21911 # modify it under the terms of the GNU General Public License as
21912 # published by the Free Software Foundation; either version 2 of
21913 # the License, or (at your option) any later version.
21914 #
21915 # As a special exception to the GNU General Public License,
21916 # if you distribute this file as part of a program or library that
21917 # is built using GNU Libtool, you may include this file under the
21918 # same distribution terms that you use for the rest of that program.
21919 #
21920 # GNU Libtool is distributed in the hope that it will be useful,
21921 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21922 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21923 # GNU General Public License for more details.
21924 #
21925 # You should have received a copy of the GNU General Public License
21926 # along with GNU Libtool; see the file COPYING.  If not, a copy
21927 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21928 # obtained by writing to the Free Software Foundation, Inc.,
21929 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21930
21931
21932 # The names of the tagged configurations supported by this script.
21933 available_tags="CXX "
21934
21935 # ### BEGIN LIBTOOL CONFIG
21936
21937 # Which release of libtool.m4 was used?
21938 macro_version=$macro_version
21939 macro_revision=$macro_revision
21940
21941 # Whether or not to build shared libraries.
21942 build_libtool_libs=$enable_shared
21943
21944 # Whether or not to build static libraries.
21945 build_old_libs=$enable_static
21946
21947 # What type of objects to build.
21948 pic_mode=$pic_mode
21949
21950 # Whether or not to optimize for fast installation.
21951 fast_install=$enable_fast_install
21952
21953 # Shell to use when invoking shell scripts.
21954 SHELL=$lt_SHELL
21955
21956 # An echo program that protects backslashes.
21957 ECHO=$lt_ECHO
21958
21959 # The PATH separator for the build system.
21960 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21961
21962 # The host system.
21963 host_alias=$host_alias
21964 host=$host
21965 host_os=$host_os
21966
21967 # The build system.
21968 build_alias=$build_alias
21969 build=$build
21970 build_os=$build_os
21971
21972 # A sed program that does not truncate output.
21973 SED=$lt_SED
21974
21975 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21976 Xsed="\$SED -e 1s/^X//"
21977
21978 # A grep program that handles long lines.
21979 GREP=$lt_GREP
21980
21981 # An ERE matcher.
21982 EGREP=$lt_EGREP
21983
21984 # A literal string matcher.
21985 FGREP=$lt_FGREP
21986
21987 # A BSD- or MS-compatible name lister.
21988 NM=$lt_NM
21989
21990 # Whether we need soft or hard links.
21991 LN_S=$lt_LN_S
21992
21993 # What is the maximum length of a command?
21994 max_cmd_len=$max_cmd_len
21995
21996 # Object file suffix (normally "o").
21997 objext=$ac_objext
21998
21999 # Executable file suffix (normally "").
22000 exeext=$exeext
22001
22002 # whether the shell understands "unset".
22003 lt_unset=$lt_unset
22004
22005 # turn spaces into newlines.
22006 SP2NL=$lt_lt_SP2NL
22007
22008 # turn newlines into spaces.
22009 NL2SP=$lt_lt_NL2SP
22010
22011 # convert \$build file names to \$host format.
22012 to_host_file_cmd=$lt_cv_to_host_file_cmd
22013
22014 # convert \$build files to toolchain format.
22015 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22016
22017 # An object symbol dumper.
22018 OBJDUMP=$lt_OBJDUMP
22019
22020 # Method to check whether dependent libraries are shared objects.
22021 deplibs_check_method=$lt_deplibs_check_method
22022
22023 # Command to use when deplibs_check_method = "file_magic".
22024 file_magic_cmd=$lt_file_magic_cmd
22025
22026 # How to find potential files when deplibs_check_method = "file_magic".
22027 file_magic_glob=$lt_file_magic_glob
22028
22029 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22030 want_nocaseglob=$lt_want_nocaseglob
22031
22032 # DLL creation program.
22033 DLLTOOL=$lt_DLLTOOL
22034
22035 # Command to associate shared and link libraries.
22036 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22037
22038 # The archiver.
22039 AR=$lt_AR
22040
22041 # Flags to create an archive.
22042 AR_FLAGS=$lt_AR_FLAGS
22043
22044 # How to feed a file listing to the archiver.
22045 archiver_list_spec=$lt_archiver_list_spec
22046
22047 # A symbol stripping program.
22048 STRIP=$lt_STRIP
22049
22050 # Commands used to install an old-style archive.
22051 RANLIB=$lt_RANLIB
22052 old_postinstall_cmds=$lt_old_postinstall_cmds
22053 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22054
22055 # Whether to use a lock for old archive extraction.
22056 lock_old_archive_extraction=$lock_old_archive_extraction
22057
22058 # A C compiler.
22059 LTCC=$lt_CC
22060
22061 # LTCC compiler flags.
22062 LTCFLAGS=$lt_CFLAGS
22063
22064 # Take the output of nm and produce a listing of raw symbols and C names.
22065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22066
22067 # Transform the output of nm in a proper C declaration.
22068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22069
22070 # Transform the output of nm in a C name address pair.
22071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22072
22073 # Transform the output of nm in a C name address pair when lib prefix is needed.
22074 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22075
22076 # Specify filename containing input files for \$NM.
22077 nm_file_list_spec=$lt_nm_file_list_spec
22078
22079 # The root where to search for dependent libraries,and in which our libraries should be installed.
22080 lt_sysroot=$lt_sysroot
22081
22082 # The name of the directory that contains temporary libtool files.
22083 objdir=$objdir
22084
22085 # Used to examine libraries when file_magic_cmd begins with "file".
22086 MAGIC_CMD=$MAGIC_CMD
22087
22088 # Must we lock files when doing compilation?
22089 need_locks=$lt_need_locks
22090
22091 # Manifest tool.
22092 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22093
22094 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22095 DSYMUTIL=$lt_DSYMUTIL
22096
22097 # Tool to change global to local symbols on Mac OS X.
22098 NMEDIT=$lt_NMEDIT
22099
22100 # Tool to manipulate fat objects and archives on Mac OS X.
22101 LIPO=$lt_LIPO
22102
22103 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22104 OTOOL=$lt_OTOOL
22105
22106 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22107 OTOOL64=$lt_OTOOL64
22108
22109 # Old archive suffix (normally "a").
22110 libext=$libext
22111
22112 # Shared library suffix (normally ".so").
22113 shrext_cmds=$lt_shrext_cmds
22114
22115 # The commands to extract the exported symbol list from a shared archive.
22116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22117
22118 # Variables whose values should be saved in libtool wrapper scripts and
22119 # restored at link time.
22120 variables_saved_for_relink=$lt_variables_saved_for_relink
22121
22122 # Do we need the "lib" prefix for modules?
22123 need_lib_prefix=$need_lib_prefix
22124
22125 # Do we need a version for libraries?
22126 need_version=$need_version
22127
22128 # Library versioning type.
22129 version_type=$version_type
22130
22131 # Shared library runtime path variable.
22132 runpath_var=$runpath_var
22133
22134 # Shared library path variable.
22135 shlibpath_var=$shlibpath_var
22136
22137 # Is shlibpath searched before the hard-coded library search path?
22138 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22139
22140 # Format of library name prefix.
22141 libname_spec=$lt_libname_spec
22142
22143 # List of archive names.  First name is the real one, the rest are links.
22144 # The last name is the one that the linker finds with -lNAME
22145 library_names_spec=$lt_library_names_spec
22146
22147 # The coded name of the library, if different from the real name.
22148 soname_spec=$lt_soname_spec
22149
22150 # Permission mode override for installation of shared libraries.
22151 install_override_mode=$lt_install_override_mode
22152
22153 # Command to use after installation of a shared archive.
22154 postinstall_cmds=$lt_postinstall_cmds
22155
22156 # Command to use after uninstallation of a shared archive.
22157 postuninstall_cmds=$lt_postuninstall_cmds
22158
22159 # Commands used to finish a libtool library installation in a directory.
22160 finish_cmds=$lt_finish_cmds
22161
22162 # As "finish_cmds", except a single script fragment to be evaled but
22163 # not shown.
22164 finish_eval=$lt_finish_eval
22165
22166 # Whether we should hardcode library paths into libraries.
22167 hardcode_into_libs=$hardcode_into_libs
22168
22169 # Compile-time system search path for libraries.
22170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22171
22172 # Run-time system search path for libraries.
22173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22174
22175 # Whether dlopen is supported.
22176 dlopen_support=$enable_dlopen
22177
22178 # Whether dlopen of programs is supported.
22179 dlopen_self=$enable_dlopen_self
22180
22181 # Whether dlopen of statically linked programs is supported.
22182 dlopen_self_static=$enable_dlopen_self_static
22183
22184 # Commands to strip libraries.
22185 old_striplib=$lt_old_striplib
22186 striplib=$lt_striplib
22187
22188
22189 # The linker used to build libraries.
22190 LD=$lt_LD
22191
22192 # How to create reloadable object files.
22193 reload_flag=$lt_reload_flag
22194 reload_cmds=$lt_reload_cmds
22195
22196 # Commands used to build an old-style archive.
22197 old_archive_cmds=$lt_old_archive_cmds
22198
22199 # A language specific compiler.
22200 CC=$lt_compiler
22201
22202 # Is the compiler the GNU compiler?
22203 with_gcc=$GCC
22204
22205 # Compiler flag to turn off builtin functions.
22206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22207
22208 # Additional compiler flags for building library objects.
22209 pic_flag=$lt_lt_prog_compiler_pic
22210
22211 # How to pass a linker flag through the compiler.
22212 wl=$lt_lt_prog_compiler_wl
22213
22214 # Compiler flag to prevent dynamic linking.
22215 link_static_flag=$lt_lt_prog_compiler_static
22216
22217 # Does compiler simultaneously support -c and -o options?
22218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22219
22220 # Whether or not to add -lc for building shared libraries.
22221 build_libtool_need_lc=$archive_cmds_need_lc
22222
22223 # Whether or not to disallow shared libs when runtime libs are static.
22224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22225
22226 # Compiler flag to allow reflexive dlopens.
22227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22228
22229 # Compiler flag to generate shared objects directly from archives.
22230 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22231
22232 # Whether the compiler copes with passing no objects directly.
22233 compiler_needs_object=$lt_compiler_needs_object
22234
22235 # Create an old-style archive from a shared archive.
22236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22237
22238 # Create a temporary old-style archive to link instead of a shared archive.
22239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22240
22241 # Commands used to build a shared archive.
22242 archive_cmds=$lt_archive_cmds
22243 archive_expsym_cmds=$lt_archive_expsym_cmds
22244
22245 # Commands used to build a loadable module if different from building
22246 # a shared archive.
22247 module_cmds=$lt_module_cmds
22248 module_expsym_cmds=$lt_module_expsym_cmds
22249
22250 # Whether we are building with GNU ld or not.
22251 with_gnu_ld=$lt_with_gnu_ld
22252
22253 # Flag that allows shared libraries with undefined symbols to be built.
22254 allow_undefined_flag=$lt_allow_undefined_flag
22255
22256 # Flag that enforces no undefined symbols.
22257 no_undefined_flag=$lt_no_undefined_flag
22258
22259 # Flag to hardcode \$libdir into a binary during linking.
22260 # This must work even if \$libdir does not exist
22261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22262
22263 # Whether we need a single "-rpath" flag with a separated argument.
22264 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22265
22266 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22267 # DIR into the resulting binary.
22268 hardcode_direct=$hardcode_direct
22269
22270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22271 # DIR into the resulting binary and the resulting library dependency is
22272 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22273 # library is relocated.
22274 hardcode_direct_absolute=$hardcode_direct_absolute
22275
22276 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22277 # into the resulting binary.
22278 hardcode_minus_L=$hardcode_minus_L
22279
22280 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22281 # into the resulting binary.
22282 hardcode_shlibpath_var=$hardcode_shlibpath_var
22283
22284 # Set to "yes" if building a shared library automatically hardcodes DIR
22285 # into the library and all subsequent libraries and executables linked
22286 # against it.
22287 hardcode_automatic=$hardcode_automatic
22288
22289 # Set to yes if linker adds runtime paths of dependent libraries
22290 # to runtime path list.
22291 inherit_rpath=$inherit_rpath
22292
22293 # Whether libtool must link a program against all its dependency libraries.
22294 link_all_deplibs=$link_all_deplibs
22295
22296 # Set to "yes" if exported symbols are required.
22297 always_export_symbols=$always_export_symbols
22298
22299 # The commands to list exported symbols.
22300 export_symbols_cmds=$lt_export_symbols_cmds
22301
22302 # Symbols that should not be listed in the preloaded symbols.
22303 exclude_expsyms=$lt_exclude_expsyms
22304
22305 # Symbols that must always be exported.
22306 include_expsyms=$lt_include_expsyms
22307
22308 # Commands necessary for linking programs (against libraries) with templates.
22309 prelink_cmds=$lt_prelink_cmds
22310
22311 # Commands necessary for finishing linking programs.
22312 postlink_cmds=$lt_postlink_cmds
22313
22314 # Specify filename containing input files.
22315 file_list_spec=$lt_file_list_spec
22316
22317 # How to hardcode a shared library path into an executable.
22318 hardcode_action=$hardcode_action
22319
22320 # The directories searched by this compiler when creating a shared library.
22321 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22322
22323 # Dependencies to place before and after the objects being linked to
22324 # create a shared library.
22325 predep_objects=$lt_predep_objects
22326 postdep_objects=$lt_postdep_objects
22327 predeps=$lt_predeps
22328 postdeps=$lt_postdeps
22329
22330 # The library search path used internally by the compiler when linking
22331 # a shared library.
22332 compiler_lib_search_path=$lt_compiler_lib_search_path
22333
22334 # ### END LIBTOOL CONFIG
22335
22336 _LT_EOF
22337
22338   case $host_os in
22339   aix3*)
22340     cat <<\_LT_EOF >> "$cfgfile"
22341 # AIX sometimes has problems with the GCC collect2 program.  For some
22342 # reason, if we set the COLLECT_NAMES environment variable, the problems
22343 # vanish in a puff of smoke.
22344 if test "X${COLLECT_NAMES+set}" != Xset; then
22345   COLLECT_NAMES=
22346   export COLLECT_NAMES
22347 fi
22348 _LT_EOF
22349     ;;
22350   esac
22351
22352
22353 ltmain="$ac_aux_dir/ltmain.sh"
22354
22355
22356   # We use sed instead of cat because bash on DJGPP gets confused if
22357   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22358   # text mode, it properly converts lines to CR/LF.  This bash problem
22359   # is reportedly fixed, but why not run on old versions too?
22360   sed '$q' "$ltmain" >> "$cfgfile" \
22361      || (rm -f "$cfgfile"; exit 1)
22362
22363   if test x"$xsi_shell" = xyes; then
22364   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22365 func_dirname ()\
22366 {\
22367 \    case ${1} in\
22368 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22369 \      *  ) func_dirname_result="${3}" ;;\
22370 \    esac\
22371 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22372   && mv -f "$cfgfile.tmp" "$cfgfile" \
22373     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22374 test 0 -eq $? || _lt_function_replace_fail=:
22375
22376
22377   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22378 func_basename ()\
22379 {\
22380 \    func_basename_result="${1##*/}"\
22381 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22382   && mv -f "$cfgfile.tmp" "$cfgfile" \
22383     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22384 test 0 -eq $? || _lt_function_replace_fail=:
22385
22386
22387   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22388 func_dirname_and_basename ()\
22389 {\
22390 \    case ${1} in\
22391 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22392 \      *  ) func_dirname_result="${3}" ;;\
22393 \    esac\
22394 \    func_basename_result="${1##*/}"\
22395 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22396   && mv -f "$cfgfile.tmp" "$cfgfile" \
22397     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22398 test 0 -eq $? || _lt_function_replace_fail=:
22399
22400
22401   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22402 func_stripname ()\
22403 {\
22404 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22405 \    # positional parameters, so assign one to ordinary parameter first.\
22406 \    func_stripname_result=${3}\
22407 \    func_stripname_result=${func_stripname_result#"${1}"}\
22408 \    func_stripname_result=${func_stripname_result%"${2}"}\
22409 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22410   && mv -f "$cfgfile.tmp" "$cfgfile" \
22411     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22412 test 0 -eq $? || _lt_function_replace_fail=:
22413
22414
22415   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22416 func_split_long_opt ()\
22417 {\
22418 \    func_split_long_opt_name=${1%%=*}\
22419 \    func_split_long_opt_arg=${1#*=}\
22420 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22421   && mv -f "$cfgfile.tmp" "$cfgfile" \
22422     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22423 test 0 -eq $? || _lt_function_replace_fail=:
22424
22425
22426   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22427 func_split_short_opt ()\
22428 {\
22429 \    func_split_short_opt_arg=${1#??}\
22430 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22431 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22432   && mv -f "$cfgfile.tmp" "$cfgfile" \
22433     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22434 test 0 -eq $? || _lt_function_replace_fail=:
22435
22436
22437   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22438 func_lo2o ()\
22439 {\
22440 \    case ${1} in\
22441 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22442 \      *)    func_lo2o_result=${1} ;;\
22443 \    esac\
22444 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22445   && mv -f "$cfgfile.tmp" "$cfgfile" \
22446     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22447 test 0 -eq $? || _lt_function_replace_fail=:
22448
22449
22450   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22451 func_xform ()\
22452 {\
22453     func_xform_result=${1%.*}.lo\
22454 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22455   && mv -f "$cfgfile.tmp" "$cfgfile" \
22456     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22457 test 0 -eq $? || _lt_function_replace_fail=:
22458
22459
22460   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22461 func_arith ()\
22462 {\
22463     func_arith_result=$(( $* ))\
22464 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22465   && mv -f "$cfgfile.tmp" "$cfgfile" \
22466     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22467 test 0 -eq $? || _lt_function_replace_fail=:
22468
22469
22470   sed -e '/^func_len ()$/,/^} # func_len /c\
22471 func_len ()\
22472 {\
22473     func_len_result=${#1}\
22474 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22475   && mv -f "$cfgfile.tmp" "$cfgfile" \
22476     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22477 test 0 -eq $? || _lt_function_replace_fail=:
22478
22479 fi
22480
22481 if test x"$lt_shell_append" = xyes; then
22482   sed -e '/^func_append ()$/,/^} # func_append /c\
22483 func_append ()\
22484 {\
22485     eval "${1}+=\\${2}"\
22486 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22487   && mv -f "$cfgfile.tmp" "$cfgfile" \
22488     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22489 test 0 -eq $? || _lt_function_replace_fail=:
22490
22491
22492   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22493 func_append_quoted ()\
22494 {\
22495 \    func_quote_for_eval "${2}"\
22496 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22497 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22498   && mv -f "$cfgfile.tmp" "$cfgfile" \
22499     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22500 test 0 -eq $? || _lt_function_replace_fail=:
22501
22502
22503   # Save a `func_append' function call where possible by direct use of '+='
22504   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22505     && mv -f "$cfgfile.tmp" "$cfgfile" \
22506       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22507   test 0 -eq $? || _lt_function_replace_fail=:
22508 else
22509   # Save a `func_append' function call even when '+=' is not available
22510   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22511     && mv -f "$cfgfile.tmp" "$cfgfile" \
22512       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22513   test 0 -eq $? || _lt_function_replace_fail=:
22514 fi
22515
22516 if test x"$_lt_function_replace_fail" = x":"; then
22517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22518 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22519 fi
22520
22521
22522    mv -f "$cfgfile" "$ofile" ||
22523     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22524   chmod +x "$ofile"
22525
22526
22527     cat <<_LT_EOF >> "$ofile"
22528
22529 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22530
22531 # The linker used to build libraries.
22532 LD=$lt_LD_CXX
22533
22534 # How to create reloadable object files.
22535 reload_flag=$lt_reload_flag_CXX
22536 reload_cmds=$lt_reload_cmds_CXX
22537
22538 # Commands used to build an old-style archive.
22539 old_archive_cmds=$lt_old_archive_cmds_CXX
22540
22541 # A language specific compiler.
22542 CC=$lt_compiler_CXX
22543
22544 # Is the compiler the GNU compiler?
22545 with_gcc=$GCC_CXX
22546
22547 # Compiler flag to turn off builtin functions.
22548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22549
22550 # Additional compiler flags for building library objects.
22551 pic_flag=$lt_lt_prog_compiler_pic_CXX
22552
22553 # How to pass a linker flag through the compiler.
22554 wl=$lt_lt_prog_compiler_wl_CXX
22555
22556 # Compiler flag to prevent dynamic linking.
22557 link_static_flag=$lt_lt_prog_compiler_static_CXX
22558
22559 # Does compiler simultaneously support -c and -o options?
22560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22561
22562 # Whether or not to add -lc for building shared libraries.
22563 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22564
22565 # Whether or not to disallow shared libs when runtime libs are static.
22566 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22567
22568 # Compiler flag to allow reflexive dlopens.
22569 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22570
22571 # Compiler flag to generate shared objects directly from archives.
22572 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22573
22574 # Whether the compiler copes with passing no objects directly.
22575 compiler_needs_object=$lt_compiler_needs_object_CXX
22576
22577 # Create an old-style archive from a shared archive.
22578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22579
22580 # Create a temporary old-style archive to link instead of a shared archive.
22581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22582
22583 # Commands used to build a shared archive.
22584 archive_cmds=$lt_archive_cmds_CXX
22585 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22586
22587 # Commands used to build a loadable module if different from building
22588 # a shared archive.
22589 module_cmds=$lt_module_cmds_CXX
22590 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22591
22592 # Whether we are building with GNU ld or not.
22593 with_gnu_ld=$lt_with_gnu_ld_CXX
22594
22595 # Flag that allows shared libraries with undefined symbols to be built.
22596 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22597
22598 # Flag that enforces no undefined symbols.
22599 no_undefined_flag=$lt_no_undefined_flag_CXX
22600
22601 # Flag to hardcode \$libdir into a binary during linking.
22602 # This must work even if \$libdir does not exist
22603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22604
22605 # Whether we need a single "-rpath" flag with a separated argument.
22606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22607
22608 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22609 # DIR into the resulting binary.
22610 hardcode_direct=$hardcode_direct_CXX
22611
22612 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22613 # DIR into the resulting binary and the resulting library dependency is
22614 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22615 # library is relocated.
22616 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22617
22618 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22619 # into the resulting binary.
22620 hardcode_minus_L=$hardcode_minus_L_CXX
22621
22622 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22623 # into the resulting binary.
22624 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22625
22626 # Set to "yes" if building a shared library automatically hardcodes DIR
22627 # into the library and all subsequent libraries and executables linked
22628 # against it.
22629 hardcode_automatic=$hardcode_automatic_CXX
22630
22631 # Set to yes if linker adds runtime paths of dependent libraries
22632 # to runtime path list.
22633 inherit_rpath=$inherit_rpath_CXX
22634
22635 # Whether libtool must link a program against all its dependency libraries.
22636 link_all_deplibs=$link_all_deplibs_CXX
22637
22638 # Set to "yes" if exported symbols are required.
22639 always_export_symbols=$always_export_symbols_CXX
22640
22641 # The commands to list exported symbols.
22642 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22643
22644 # Symbols that should not be listed in the preloaded symbols.
22645 exclude_expsyms=$lt_exclude_expsyms_CXX
22646
22647 # Symbols that must always be exported.
22648 include_expsyms=$lt_include_expsyms_CXX
22649
22650 # Commands necessary for linking programs (against libraries) with templates.
22651 prelink_cmds=$lt_prelink_cmds_CXX
22652
22653 # Commands necessary for finishing linking programs.
22654 postlink_cmds=$lt_postlink_cmds_CXX
22655
22656 # Specify filename containing input files.
22657 file_list_spec=$lt_file_list_spec_CXX
22658
22659 # How to hardcode a shared library path into an executable.
22660 hardcode_action=$hardcode_action_CXX
22661
22662 # The directories searched by this compiler when creating a shared library.
22663 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22664
22665 # Dependencies to place before and after the objects being linked to
22666 # create a shared library.
22667 predep_objects=$lt_predep_objects_CXX
22668 postdep_objects=$lt_postdep_objects_CXX
22669 predeps=$lt_predeps_CXX
22670 postdeps=$lt_postdeps_CXX
22671
22672 # The library search path used internally by the compiler when linking
22673 # a shared library.
22674 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22675
22676 # ### END LIBTOOL TAG CONFIG: CXX
22677 _LT_EOF
22678
22679  ;;
22680     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22681   # Older Autoconf quotes --file arguments for eval, but not when files
22682   # are listed without --file.  Let's play safe and only enable the eval
22683   # if we detect the quoting.
22684   case $CONFIG_FILES in
22685   *\'*) eval set x "$CONFIG_FILES" ;;
22686   *)   set x $CONFIG_FILES ;;
22687   esac
22688   shift
22689   for mf
22690   do
22691     # Strip MF so we end up with the name of the file.
22692     mf=`echo "$mf" | sed -e 's/:.*$//'`
22693     # Check whether this is an Automake generated Makefile or not.
22694     # We used to match only the files named 'Makefile.in', but
22695     # some people rename them; so instead we look at the file content.
22696     # Grep'ing the first line is not enough: some people post-process
22697     # each Makefile.in and add a new line on top of each file to say so.
22698     # Grep'ing the whole file is not good either: AIX grep has a line
22699     # limit of 2048, but all sed's we know have understand at least 4000.
22700     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22701       dirpart=`$as_dirname -- "$mf" ||
22702 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22703          X"$mf" : 'X\(//\)[^/]' \| \
22704          X"$mf" : 'X\(//\)$' \| \
22705          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22706 $as_echo X"$mf" |
22707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22708             s//\1/
22709             q
22710           }
22711           /^X\(\/\/\)[^/].*/{
22712             s//\1/
22713             q
22714           }
22715           /^X\(\/\/\)$/{
22716             s//\1/
22717             q
22718           }
22719           /^X\(\/\).*/{
22720             s//\1/
22721             q
22722           }
22723           s/.*/./; q'`
22724     else
22725       continue
22726     fi
22727     # Extract the definition of DEPDIR, am__include, and am__quote
22728     # from the Makefile without running 'make'.
22729     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22730     test -z "$DEPDIR" && continue
22731     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22732     test -z "$am__include" && continue
22733     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22734     # Find all dependency output files, they are included files with
22735     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22736     # simplest approach to changing $(DEPDIR) to its actual value in the
22737     # expansion.
22738     for file in `sed -n "
22739       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22740          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22741       # Make sure the directory exists.
22742       test -f "$dirpart/$file" && continue
22743       fdir=`$as_dirname -- "$file" ||
22744 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22745          X"$file" : 'X\(//\)[^/]' \| \
22746          X"$file" : 'X\(//\)$' \| \
22747          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22748 $as_echo X"$file" |
22749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22750             s//\1/
22751             q
22752           }
22753           /^X\(\/\/\)[^/].*/{
22754             s//\1/
22755             q
22756           }
22757           /^X\(\/\/\)$/{
22758             s//\1/
22759             q
22760           }
22761           /^X\(\/\).*/{
22762             s//\1/
22763             q
22764           }
22765           s/.*/./; q'`
22766       as_dir=$dirpart/$fdir; as_fn_mkdir_p
22767       # echo "creating $dirpart/$file"
22768       echo '# dummy' > "$dirpart/$file"
22769     done
22770   done
22771 }
22772  ;;
22773     "po-directories":C)
22774     for ac_file in $CONFIG_FILES; do
22775       # Support "outfile[:infile[:infile...]]"
22776       case "$ac_file" in
22777         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22778       esac
22779       # PO directories have a Makefile.in generated from Makefile.in.in.
22780       case "$ac_file" in */Makefile.in)
22781         # Adjust a relative srcdir.
22782         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22783         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22784         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22785         # In autoconf-2.13 it is called $ac_given_srcdir.
22786         # In autoconf-2.50 it is called $srcdir.
22787         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22788         case "$ac_given_srcdir" in
22789           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22790           /*) top_srcdir="$ac_given_srcdir" ;;
22791           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22792         esac
22793         # Treat a directory as a PO directory if and only if it has a
22794         # POTFILES.in file. This allows packages to have multiple PO
22795         # directories under different names or in different locations.
22796         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22797           rm -f "$ac_dir/POTFILES"
22798           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22799           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22800           POMAKEFILEDEPS="POTFILES.in"
22801           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22802           # on $ac_dir but don't depend on user-specified configuration
22803           # parameters.
22804           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22805             # The LINGUAS file contains the set of available languages.
22806             if test -n "$OBSOLETE_ALL_LINGUAS"; then
22807               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22808             fi
22809             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22810             # Hide the ALL_LINGUAS assigment from automake < 1.5.
22811             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22812             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22813           else
22814             # The set of available languages was given in configure.in.
22815             # Hide the ALL_LINGUAS assigment from automake < 1.5.
22816             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22817           fi
22818           # Compute POFILES
22819           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22820           # Compute UPDATEPOFILES
22821           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22822           # Compute DUMMYPOFILES
22823           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22824           # Compute GMOFILES
22825           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22826           case "$ac_given_srcdir" in
22827             .) srcdirpre= ;;
22828             *) srcdirpre='$(srcdir)/' ;;
22829           esac
22830           POFILES=
22831           UPDATEPOFILES=
22832           DUMMYPOFILES=
22833           GMOFILES=
22834           for lang in $ALL_LINGUAS; do
22835             POFILES="$POFILES $srcdirpre$lang.po"
22836             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22837             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22838             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22839           done
22840           # CATALOGS depends on both $ac_dir and the user's LINGUAS
22841           # environment variable.
22842           INST_LINGUAS=
22843           if test -n "$ALL_LINGUAS"; then
22844             for presentlang in $ALL_LINGUAS; do
22845               useit=no
22846               if test "%UNSET%" != "$LINGUAS"; then
22847                 desiredlanguages="$LINGUAS"
22848               else
22849                 desiredlanguages="$ALL_LINGUAS"
22850               fi
22851               for desiredlang in $desiredlanguages; do
22852                 # Use the presentlang catalog if desiredlang is
22853                 #   a. equal to presentlang, or
22854                 #   b. a variant of presentlang (because in this case,
22855                 #      presentlang can be used as a fallback for messages
22856                 #      which are not translated in the desiredlang catalog).
22857                 case "$desiredlang" in
22858                   "$presentlang"*) useit=yes;;
22859                 esac
22860               done
22861               if test $useit = yes; then
22862                 INST_LINGUAS="$INST_LINGUAS $presentlang"
22863               fi
22864             done
22865           fi
22866           CATALOGS=
22867           if test -n "$INST_LINGUAS"; then
22868             for lang in $INST_LINGUAS; do
22869               CATALOGS="$CATALOGS $lang.gmo"
22870             done
22871           fi
22872           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22873           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"
22874           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22875             if test -f "$f"; then
22876               case "$f" in
22877                 *.orig | *.bak | *~) ;;
22878                 *) cat "$f" >> "$ac_dir/Makefile" ;;
22879               esac
22880             fi
22881           done
22882         fi
22883         ;;
22884       esac
22885     done ;;
22886
22887   esac
22888 done # for ac_tag
22889
22890
22891 as_fn_exit 0
22892 _ACEOF
22893 ac_clean_files=$ac_clean_files_save
22894
22895 test $ac_write_fail = 0 ||
22896   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22897
22898
22899 # configure is writing to config.log, and then calls config.status.
22900 # config.status does its own redirection, appending to config.log.
22901 # Unfortunately, on DOS this fails, as config.log is still kept open
22902 # by configure, so config.status won't be able to write to it; its
22903 # output is simply discarded.  So we exec the FD to /dev/null,
22904 # effectively closing config.log, so it can be properly (re)opened and
22905 # appended to by config.status.  When coming back to configure, we
22906 # need to make the FD available again.
22907 if test "$no_create" != yes; then
22908   ac_cs_success=:
22909   ac_config_status_args=
22910   test "$silent" = yes &&
22911     ac_config_status_args="$ac_config_status_args --quiet"
22912   exec 5>/dev/null
22913   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22914   exec 5>>config.log
22915   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22916   # would make configure fail if this is the last instruction.
22917   $ac_cs_success || as_fn_exit 1
22918 fi
22919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22920   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22921 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22922 fi
22923