Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / cdemo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for cdemo 1.0.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='cdemo'
572 PACKAGE_TARNAME='cdemo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='cdemo 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
576 PACKAGE_URL=''
577
578 ac_unique_file="main.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 LIBM
620 LIBTOOL_DEPS
621 CPP
622 OTOOL64
623 OTOOL
624 LIPO
625 NMEDIT
626 DSYMUTIL
627 MANIFEST_TOOL
628 RANLIB
629 ac_ct_AR
630 AR
631 DLLTOOL
632 OBJDUMP
633 LN_S
634 NM
635 ac_ct_DUMPBIN
636 DUMPBIN
637 LD
638 FGREP
639 EGREP
640 GREP
641 SED
642 host_os
643 host_vendor
644 host_cpu
645 host
646 build_os
647 build_vendor
648 build_cpu
649 build
650 LIBTOOL
651 am__fastdepCC_FALSE
652 am__fastdepCC_TRUE
653 CCDEPMODE
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 OBJEXT
661 EXEEXT
662 ac_ct_CC
663 CPPFLAGS
664 LDFLAGS
665 CFLAGS
666 CC
667 am__untar
668 am__tar
669 AMTAR
670 am__leading_dot
671 SET_MAKE
672 AWK
673 mkdir_p
674 MKDIR_P
675 INSTALL_STRIP_PROGRAM
676 STRIP
677 install_sh
678 MAKEINFO
679 AUTOHEADER
680 AUTOMAKE
681 AUTOCONF
682 ACLOCAL
683 VERSION
684 PACKAGE
685 CYGPATH_W
686 am__isrc
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_dependency_tracking
732 enable_shared
733 enable_static
734 with_pic
735 enable_fast_install
736 with_gnu_ld
737 with_sysroot
738 enable_libtool_lock
739 '
740       ac_precious_vars='build_alias
741 host_alias
742 target_alias
743 CC
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
772
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
798
799 ac_prev=
800 ac_dashdash=
801 for ac_option
802 do
803   # If the previous option needs an argument, assign it.
804   if test -n "$ac_prev"; then
805     eval $ac_prev=\$ac_option
806     ac_prev=
807     continue
808   fi
809
810   case $ac_option in
811   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812   *=)   ac_optarg= ;;
813   *)    ac_optarg=yes ;;
814   esac
815
816   # Accept the important Cygnus configure options, so we can diagnose typos.
817
818   case $ac_dashdash$ac_option in
819   --)
820     ac_dashdash=yes ;;
821
822   -bindir | --bindir | --bindi | --bind | --bin | --bi)
823     ac_prev=bindir ;;
824   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825     bindir=$ac_optarg ;;
826
827   -build | --build | --buil | --bui | --bu)
828     ac_prev=build_alias ;;
829   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830     build_alias=$ac_optarg ;;
831
832   -cache-file | --cache-file | --cache-fil | --cache-fi \
833   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834     ac_prev=cache_file ;;
835   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837     cache_file=$ac_optarg ;;
838
839   --config-cache | -C)
840     cache_file=config.cache ;;
841
842   -datadir | --datadir | --datadi | --datad)
843     ac_prev=datadir ;;
844   -datadir=* | --datadir=* | --datadi=* | --datad=*)
845     datadir=$ac_optarg ;;
846
847   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848   | --dataroo | --dataro | --datar)
849     ac_prev=datarootdir ;;
850   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852     datarootdir=$ac_optarg ;;
853
854   -disable-* | --disable-*)
855     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856     # Reject names that are not valid shell variable names.
857     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858       as_fn_error $? "invalid feature name: $ac_useropt"
859     ac_useropt_orig=$ac_useropt
860     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861     case $ac_user_opts in
862       *"
863 "enable_$ac_useropt"
864 "*) ;;
865       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866          ac_unrecognized_sep=', ';;
867     esac
868     eval enable_$ac_useropt=no ;;
869
870   -docdir | --docdir | --docdi | --doc | --do)
871     ac_prev=docdir ;;
872   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873     docdir=$ac_optarg ;;
874
875   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876     ac_prev=dvidir ;;
877   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878     dvidir=$ac_optarg ;;
879
880   -enable-* | --enable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error $? "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=\$ac_optarg ;;
895
896   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898   | --exec | --exe | --ex)
899     ac_prev=exec_prefix ;;
900   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902   | --exec=* | --exe=* | --ex=*)
903     exec_prefix=$ac_optarg ;;
904
905   -gas | --gas | --ga | --g)
906     # Obsolete; use --with-gas.
907     with_gas=yes ;;
908
909   -help | --help | --hel | --he | -h)
910     ac_init_help=long ;;
911   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912     ac_init_help=recursive ;;
913   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914     ac_init_help=short ;;
915
916   -host | --host | --hos | --ho)
917     ac_prev=host_alias ;;
918   -host=* | --host=* | --hos=* | --ho=*)
919     host_alias=$ac_optarg ;;
920
921   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922     ac_prev=htmldir ;;
923   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924   | --ht=*)
925     htmldir=$ac_optarg ;;
926
927   -includedir | --includedir | --includedi | --included | --include \
928   | --includ | --inclu | --incl | --inc)
929     ac_prev=includedir ;;
930   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931   | --includ=* | --inclu=* | --incl=* | --inc=*)
932     includedir=$ac_optarg ;;
933
934   -infodir | --infodir | --infodi | --infod | --info | --inf)
935     ac_prev=infodir ;;
936   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937     infodir=$ac_optarg ;;
938
939   -libdir | --libdir | --libdi | --libd)
940     ac_prev=libdir ;;
941   -libdir=* | --libdir=* | --libdi=* | --libd=*)
942     libdir=$ac_optarg ;;
943
944   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945   | --libexe | --libex | --libe)
946     ac_prev=libexecdir ;;
947   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948   | --libexe=* | --libex=* | --libe=*)
949     libexecdir=$ac_optarg ;;
950
951   -localedir | --localedir | --localedi | --localed | --locale)
952     ac_prev=localedir ;;
953   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954     localedir=$ac_optarg ;;
955
956   -localstatedir | --localstatedir | --localstatedi | --localstated \
957   | --localstate | --localstat | --localsta | --localst | --locals)
958     ac_prev=localstatedir ;;
959   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961     localstatedir=$ac_optarg ;;
962
963   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964     ac_prev=mandir ;;
965   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966     mandir=$ac_optarg ;;
967
968   -nfp | --nfp | --nf)
969     # Obsolete; use --without-fp.
970     with_fp=no ;;
971
972   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973   | --no-cr | --no-c | -n)
974     no_create=yes ;;
975
976   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978     no_recursion=yes ;;
979
980   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982   | --oldin | --oldi | --old | --ol | --o)
983     ac_prev=oldincludedir ;;
984   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987     oldincludedir=$ac_optarg ;;
988
989   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990     ac_prev=prefix ;;
991   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992     prefix=$ac_optarg ;;
993
994   -program-prefix | --program-prefix | --program-prefi | --program-pref \
995   | --program-pre | --program-pr | --program-p)
996     ac_prev=program_prefix ;;
997   -program-prefix=* | --program-prefix=* | --program-prefi=* \
998   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999     program_prefix=$ac_optarg ;;
1000
1001   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002   | --program-suf | --program-su | --program-s)
1003     ac_prev=program_suffix ;;
1004   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006     program_suffix=$ac_optarg ;;
1007
1008   -program-transform-name | --program-transform-name \
1009   | --program-transform-nam | --program-transform-na \
1010   | --program-transform-n | --program-transform- \
1011   | --program-transform | --program-transfor \
1012   | --program-transfo | --program-transf \
1013   | --program-trans | --program-tran \
1014   | --progr-tra | --program-tr | --program-t)
1015     ac_prev=program_transform_name ;;
1016   -program-transform-name=* | --program-transform-name=* \
1017   | --program-transform-nam=* | --program-transform-na=* \
1018   | --program-transform-n=* | --program-transform-=* \
1019   | --program-transform=* | --program-transfor=* \
1020   | --program-transfo=* | --program-transf=* \
1021   | --program-trans=* | --program-tran=* \
1022   | --progr-tra=* | --program-tr=* | --program-t=*)
1023     program_transform_name=$ac_optarg ;;
1024
1025   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026     ac_prev=pdfdir ;;
1027   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028     pdfdir=$ac_optarg ;;
1029
1030   -psdir | --psdir | --psdi | --psd | --ps)
1031     ac_prev=psdir ;;
1032   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033     psdir=$ac_optarg ;;
1034
1035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036   | -silent | --silent | --silen | --sile | --sil)
1037     silent=yes ;;
1038
1039   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040     ac_prev=sbindir ;;
1041   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042   | --sbi=* | --sb=*)
1043     sbindir=$ac_optarg ;;
1044
1045   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047   | --sharedst | --shareds | --shared | --share | --shar \
1048   | --sha | --sh)
1049     ac_prev=sharedstatedir ;;
1050   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053   | --sha=* | --sh=*)
1054     sharedstatedir=$ac_optarg ;;
1055
1056   -site | --site | --sit)
1057     ac_prev=site ;;
1058   -site=* | --site=* | --sit=*)
1059     site=$ac_optarg ;;
1060
1061   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062     ac_prev=srcdir ;;
1063   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064     srcdir=$ac_optarg ;;
1065
1066   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067   | --syscon | --sysco | --sysc | --sys | --sy)
1068     ac_prev=sysconfdir ;;
1069   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071     sysconfdir=$ac_optarg ;;
1072
1073   -target | --target | --targe | --targ | --tar | --ta | --t)
1074     ac_prev=target_alias ;;
1075   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076     target_alias=$ac_optarg ;;
1077
1078   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079     verbose=yes ;;
1080
1081   -version | --version | --versio | --versi | --vers | -V)
1082     ac_init_version=: ;;
1083
1084   -with-* | --with-*)
1085     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088       as_fn_error $? "invalid package name: $ac_useropt"
1089     ac_useropt_orig=$ac_useropt
1090     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091     case $ac_user_opts in
1092       *"
1093 "with_$ac_useropt"
1094 "*) ;;
1095       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096          ac_unrecognized_sep=', ';;
1097     esac
1098     eval with_$ac_useropt=\$ac_optarg ;;
1099
1100   -without-* | --without-*)
1101     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104       as_fn_error $? "invalid package name: $ac_useropt"
1105     ac_useropt_orig=$ac_useropt
1106     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107     case $ac_user_opts in
1108       *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112          ac_unrecognized_sep=', ';;
1113     esac
1114     eval with_$ac_useropt=no ;;
1115
1116   --x)
1117     # Obsolete; use --with-x.
1118     with_x=yes ;;
1119
1120   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121   | --x-incl | --x-inc | --x-in | --x-i)
1122     ac_prev=x_includes ;;
1123   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125     x_includes=$ac_optarg ;;
1126
1127   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129     ac_prev=x_libraries ;;
1130   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132     x_libraries=$ac_optarg ;;
1133
1134   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1136     ;;
1137
1138   *=*)
1139     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140     # Reject names that are not valid shell variable names.
1141     case $ac_envvar in #(
1142       '' | [0-9]* | *[!_$as_cr_alnum]* )
1143       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144     esac
1145     eval $ac_envvar=\$ac_optarg
1146     export $ac_envvar ;;
1147
1148   *)
1149     # FIXME: should be removed in autoconf 3.0.
1150     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154     ;;
1155
1156   esac
1157 done
1158
1159 if test -n "$ac_prev"; then
1160   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161   as_fn_error $? "missing argument to $ac_option"
1162 fi
1163
1164 if test -n "$ac_unrecognized_opts"; then
1165   case $enable_option_checking in
1166     no) ;;
1167     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169   esac
1170 fi
1171
1172 # Check all directory arguments for consistency.
1173 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174                 datadir sysconfdir sharedstatedir localstatedir includedir \
1175                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176                 libdir localedir mandir
1177 do
1178   eval ac_val=\$$ac_var
1179   # Remove trailing slashes.
1180   case $ac_val in
1181     */ )
1182       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183       eval $ac_var=\$ac_val;;
1184   esac
1185   # Be sure to have absolute directory names.
1186   case $ac_val in
1187     [\\/$]* | ?:[\\/]* )  continue;;
1188     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189   esac
1190   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191 done
1192
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1199
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202   if test "x$build_alias" = x; then
1203     cross_compiling=maybe
1204     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1205     If a cross compiler is detected then cross compile mode will be used" >&2
1206   elif test "x$build_alias" != "x$host_alias"; then
1207     cross_compiling=yes
1208   fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220   as_fn_error $? "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222   as_fn_error $? "pwd does not report name of working directory"
1223
1224
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227   ac_srcdir_defaulted=yes
1228   # Try the directory containing this script, then the parent directory.
1229   ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231          X"$as_myself" : 'X\(//\)[^/]' \| \
1232          X"$as_myself" : 'X\(//\)$' \| \
1233          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\/\)[^/].*/{
1240             s//\1/
1241             q
1242           }
1243           /^X\(\/\/\)$/{
1244             s//\1/
1245             q
1246           }
1247           /^X\(\/\).*/{
1248             s//\1/
1249             q
1250           }
1251           s/.*/./; q'`
1252   srcdir=$ac_confdir
1253   if test ! -r "$srcdir/$ac_unique_file"; then
1254     srcdir=..
1255   fi
1256 else
1257   ac_srcdir_defaulted=no
1258 fi
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1262 fi
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1266         pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269   srcdir=.
1270 fi
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279   eval ac_env_${ac_var}_value=\$${ac_var}
1280   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1283
1284 #
1285 # Report the --help message.
1286 #
1287 if test "$ac_init_help" = "long"; then
1288   # Omit some internal or obsolete options to make the list less imposing.
1289   # This message is too long to be a string in the A/UX 3.1 sh.
1290   cat <<_ACEOF
1291 \`configure' configures cdemo 1.0 to adapt to many kinds of systems.
1292
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE.  See below for descriptions of some of the useful variables.
1297
1298 Defaults for the options are specified in brackets.
1299
1300 Configuration:
1301   -h, --help              display this help and exit
1302       --help=short        display options specific to this package
1303       --help=recursive    display the short help of all the included packages
1304   -V, --version           display version information and exit
1305   -q, --quiet, --silent   do not print \`checking ...' messages
1306       --cache-file=FILE   cache test results in FILE [disabled]
1307   -C, --config-cache      alias for \`--cache-file=config.cache'
1308   -n, --no-create         do not create output files
1309       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1310
1311 Installation directories:
1312   --prefix=PREFIX         install architecture-independent files in PREFIX
1313                           [$ac_default_prefix]
1314   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1315                           [PREFIX]
1316
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1321
1322 For better control, use the options below.
1323
1324 Fine tuning of the installation directories:
1325   --bindir=DIR            user executables [EPREFIX/bin]
1326   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1327   --libexecdir=DIR        program executables [EPREFIX/libexec]
1328   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1329   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1330   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1331   --libdir=DIR            object code libraries [EPREFIX/lib]
1332   --includedir=DIR        C header files [PREFIX/include]
1333   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1334   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1335   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1336   --infodir=DIR           info documentation [DATAROOTDIR/info]
1337   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1338   --mandir=DIR            man documentation [DATAROOTDIR/man]
1339   --docdir=DIR            documentation root [DATAROOTDIR/doc/cdemo]
1340   --htmldir=DIR           html documentation [DOCDIR]
1341   --dvidir=DIR            dvi documentation [DOCDIR]
1342   --pdfdir=DIR            pdf documentation [DOCDIR]
1343   --psdir=DIR             ps documentation [DOCDIR]
1344 _ACEOF
1345
1346   cat <<\_ACEOF
1347
1348 Program names:
1349   --program-prefix=PREFIX            prepend PREFIX to installed program names
1350   --program-suffix=SUFFIX            append SUFFIX to installed program names
1351   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1352
1353 System types:
1354   --build=BUILD     configure for building on BUILD [guessed]
1355   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360   case $ac_init_help in
1361      short | recursive ) echo "Configuration of cdemo 1.0:";;
1362    esac
1363   cat <<\_ACEOF
1364
1365 Optional Features:
1366   --disable-option-checking  ignore unrecognized --enable/--with options
1367   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1368   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1369   --disable-dependency-tracking  speeds up one-time build
1370   --enable-dependency-tracking   do not reject slow dependency extractors
1371   --enable-shared[=PKGS]  build shared libraries [default=yes]
1372   --enable-static[=PKGS]  build static libraries [default=yes]
1373   --enable-fast-install[=PKGS]
1374                           optimize for fast installation [default=yes]
1375   --disable-libtool-lock  avoid locking (might break parallel builds)
1376
1377 Optional Packages:
1378   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1379   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1380   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1381                           both]
1382   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1383   --with-sysroot=DIR Search for dependent libraries within DIR
1384                         (or the compiler's sysroot if not specified).
1385
1386 Some influential environment variables:
1387   CC          C compiler command
1388   CFLAGS      C compiler flags
1389   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1390               nonstandard directory <lib dir>
1391   LIBS        libraries to pass to the linker, e.g. -l<library>
1392   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1393               you have headers in a nonstandard directory <include dir>
1394   CPP         C preprocessor
1395
1396 Use these variables to override the choices made by `configure' or to help
1397 it to find libraries and programs with nonstandard names/locations.
1398
1399 Report bugs to <bug-libtool@gnu.org>.
1400 _ACEOF
1401 ac_status=$?
1402 fi
1403
1404 if test "$ac_init_help" = "recursive"; then
1405   # If there are subdirs, report their specific --help.
1406   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407     test -d "$ac_dir" ||
1408       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409       continue
1410     ac_builddir=.
1411
1412 case "$ac_dir" in
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *)
1415   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1416   # A ".." for each directory in $ac_dir_suffix.
1417   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1418   case $ac_top_builddir_sub in
1419   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421   esac ;;
1422 esac
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1427
1428 case $srcdir in
1429   .)  # We are building in place.
1430     ac_srcdir=.
1431     ac_top_srcdir=$ac_top_builddir_sub
1432     ac_abs_top_srcdir=$ac_pwd ;;
1433   [\\/]* | ?:[\\/]* )  # Absolute name.
1434     ac_srcdir=$srcdir$ac_dir_suffix;
1435     ac_top_srcdir=$srcdir
1436     ac_abs_top_srcdir=$srcdir ;;
1437   *) # Relative name.
1438     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439     ac_top_srcdir=$ac_top_build_prefix$srcdir
1440     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 esac
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443
1444     cd "$ac_dir" || { ac_status=$?; continue; }
1445     # Check for guested configure.
1446     if test -f "$ac_srcdir/configure.gnu"; then
1447       echo &&
1448       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449     elif test -f "$ac_srcdir/configure"; then
1450       echo &&
1451       $SHELL "$ac_srcdir/configure" --help=recursive
1452     else
1453       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454     fi || ac_status=$?
1455     cd "$ac_pwd" || { ac_status=$?; break; }
1456   done
1457 fi
1458
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1461   cat <<\_ACEOF
1462 cdemo configure 1.0
1463 generated by GNU Autoconf 2.68
1464
1465 Copyright (C) 2010 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1468 _ACEOF
1469   exit
1470 fi
1471
1472 ## ------------------------ ##
1473 ## Autoconf initialization. ##
1474 ## ------------------------ ##
1475
1476 # ac_fn_c_try_compile LINENO
1477 # --------------------------
1478 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1479 ac_fn_c_try_compile ()
1480 {
1481   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482   rm -f conftest.$ac_objext
1483   if { { ac_try="$ac_compile"
1484 case "(($ac_try" in
1485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486   *) ac_try_echo=$ac_try;;
1487 esac
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490   (eval "$ac_compile") 2>conftest.err
1491   ac_status=$?
1492   if test -s conftest.err; then
1493     grep -v '^ *+' conftest.err >conftest.er1
1494     cat conftest.er1 >&5
1495     mv -f conftest.er1 conftest.err
1496   fi
1497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498   test $ac_status = 0; } && {
1499          test -z "$ac_c_werror_flag" ||
1500          test ! -s conftest.err
1501        } && test -s conftest.$ac_objext; then :
1502   ac_retval=0
1503 else
1504   $as_echo "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1506
1507         ac_retval=1
1508 fi
1509   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510   as_fn_set_status $ac_retval
1511
1512 } # ac_fn_c_try_compile
1513
1514 # ac_fn_c_try_link LINENO
1515 # -----------------------
1516 # Try to link conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_link ()
1518 {
1519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520   rm -f conftest.$ac_objext conftest$ac_exeext
1521   if { { ac_try="$ac_link"
1522 case "(($ac_try" in
1523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524   *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528   (eval "$ac_link") 2>conftest.err
1529   ac_status=$?
1530   if test -s conftest.err; then
1531     grep -v '^ *+' conftest.err >conftest.er1
1532     cat conftest.er1 >&5
1533     mv -f conftest.er1 conftest.err
1534   fi
1535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536   test $ac_status = 0; } && {
1537          test -z "$ac_c_werror_flag" ||
1538          test ! -s conftest.err
1539        } && test -s conftest$ac_exeext && {
1540          test "$cross_compiling" = yes ||
1541          $as_test_x conftest$ac_exeext
1542        }; then :
1543   ac_retval=0
1544 else
1545   $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548         ac_retval=1
1549 fi
1550   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1551   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1552   # interfere with the next link command; also delete a directory that is
1553   # left behind by Apple's compiler.  We do this before executing the actions.
1554   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556   as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_link
1559
1560 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1561 # -------------------------------------------------------
1562 # Tests whether HEADER exists and can be compiled using the include files in
1563 # INCLUDES, setting the cache variable VAR accordingly.
1564 ac_fn_c_check_header_compile ()
1565 {
1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568 $as_echo_n "checking for $2... " >&6; }
1569 if eval \${$3+:} false; then :
1570   $as_echo_n "(cached) " >&6
1571 else
1572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1573 /* end confdefs.h.  */
1574 $4
1575 #include <$2>
1576 _ACEOF
1577 if ac_fn_c_try_compile "$LINENO"; then :
1578   eval "$3=yes"
1579 else
1580   eval "$3=no"
1581 fi
1582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1583 fi
1584 eval ac_res=\$$3
1585                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586 $as_echo "$ac_res" >&6; }
1587   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588
1589 } # ac_fn_c_check_header_compile
1590
1591 # ac_fn_c_try_cpp LINENO
1592 # ----------------------
1593 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_cpp ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   if { { ac_try="$ac_cpp conftest.$ac_ext"
1598 case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605   ac_status=$?
1606   if test -s conftest.err; then
1607     grep -v '^ *+' conftest.err >conftest.er1
1608     cat conftest.er1 >&5
1609     mv -f conftest.er1 conftest.err
1610   fi
1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612   test $ac_status = 0; } > conftest.i && {
1613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614          test ! -s conftest.err
1615        }; then :
1616   ac_retval=0
1617 else
1618   $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621     ac_retval=1
1622 fi
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_cpp
1627
1628 # ac_fn_c_try_run LINENO
1629 # ----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1631 # that executables *can* be run.
1632 ac_fn_c_try_run ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638   *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642   (eval "$ac_link") 2>&5
1643   ac_status=$?
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1646   { { case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_try") 2>&5
1653   ac_status=$?
1654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655   test $ac_status = 0; }; }; then :
1656   ac_retval=0
1657 else
1658   $as_echo "$as_me: program exited with status $ac_status" >&5
1659        $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662        ac_retval=$ac_status
1663 fi
1664   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666   as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_run
1669
1670 # ac_fn_c_check_func LINENO FUNC VAR
1671 # ----------------------------------
1672 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1673 ac_fn_c_check_func ()
1674 {
1675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679   $as_echo_n "(cached) " >&6
1680 else
1681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h.  */
1683 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1685 #define $2 innocuous_$2
1686
1687 /* System header to define __stub macros and hopefully few prototypes,
1688     which can conflict with char $2 (); below.
1689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1690     <limits.h> exists even on freestanding compilers.  */
1691
1692 #ifdef __STDC__
1693 # include <limits.h>
1694 #else
1695 # include <assert.h>
1696 #endif
1697
1698 #undef $2
1699
1700 /* Override any GCC internal prototype to avoid an error.
1701    Use char because int might match the return type of a GCC
1702    builtin and then its argument prototype would still apply.  */
1703 #ifdef __cplusplus
1704 extern "C"
1705 #endif
1706 char $2 ();
1707 /* The GNU C library defines this for functions which it implements
1708     to always fail with ENOSYS.  Some functions are actually named
1709     something starting with __ and the normal name is an alias.  */
1710 #if defined __stub_$2 || defined __stub___$2
1711 choke me
1712 #endif
1713
1714 int
1715 main ()
1716 {
1717 return $2 ();
1718   ;
1719   return 0;
1720 }
1721 _ACEOF
1722 if ac_fn_c_try_link "$LINENO"; then :
1723   eval "$3=yes"
1724 else
1725   eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext \
1728     conftest$ac_exeext conftest.$ac_ext
1729 fi
1730 eval ac_res=\$$3
1731                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735 } # ac_fn_c_check_func
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1739
1740 It was created by cdemo $as_me 1.0, which was
1741 generated by GNU Autoconf 2.68.  Invocation command line was
1742
1743   $ $0 $@
1744
1745 _ACEOF
1746 exec 5>>config.log
1747 {
1748 cat <<_ASUNAME
1749 ## --------- ##
1750 ## Platform. ##
1751 ## --------- ##
1752
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1761
1762 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1763 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1766 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1767 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1768 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1769
1770 _ASUNAME
1771
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775   IFS=$as_save_IFS
1776   test -z "$as_dir" && as_dir=.
1777     $as_echo "PATH: $as_dir"
1778   done
1779 IFS=$as_save_IFS
1780
1781 } >&5
1782
1783 cat >&5 <<_ACEOF
1784
1785
1786 ## ----------- ##
1787 ## Core tests. ##
1788 ## ----------- ##
1789
1790 _ACEOF
1791
1792
1793 # Keep a trace of the command line.
1794 # Strip out --no-create and --no-recursion so they do not pile up.
1795 # Strip out --silent because we don't want to record it for future runs.
1796 # Also quote any args containing shell meta-characters.
1797 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_configure_args=
1799 ac_configure_args0=
1800 ac_configure_args1=
1801 ac_must_keep_next=false
1802 for ac_pass in 1 2
1803 do
1804   for ac_arg
1805   do
1806     case $ac_arg in
1807     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809     | -silent | --silent | --silen | --sile | --sil)
1810       continue ;;
1811     *\'*)
1812       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813     esac
1814     case $ac_pass in
1815     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1816     2)
1817       as_fn_append ac_configure_args1 " '$ac_arg'"
1818       if test $ac_must_keep_next = true; then
1819         ac_must_keep_next=false # Got value, back to normal.
1820       else
1821         case $ac_arg in
1822           *=* | --config-cache | -C | -disable-* | --disable-* \
1823           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825           | -with-* | --with-* | -without-* | --without-* | --x)
1826             case "$ac_configure_args0 " in
1827               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828             esac
1829             ;;
1830           -* ) ac_must_keep_next=true ;;
1831         esac
1832       fi
1833       as_fn_append ac_configure_args " '$ac_arg'"
1834       ;;
1835     esac
1836   done
1837 done
1838 { ac_configure_args0=; unset ac_configure_args0;}
1839 { ac_configure_args1=; unset ac_configure_args1;}
1840
1841 # When interrupted or exit'd, cleanup temporary files, and complete
1842 # config.log.  We remove comments because anyway the quotes in there
1843 # would cause problems or look ugly.
1844 # WARNING: Use '\'' to represent an apostrophe within the trap.
1845 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846 trap 'exit_status=$?
1847   # Save into config.log some information that might help in debugging.
1848   {
1849     echo
1850
1851     $as_echo "## ---------------- ##
1852 ## Cache variables. ##
1853 ## ---------------- ##"
1854     echo
1855     # The following way of writing the cache mishandles newlines in values,
1856 (
1857   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1858     eval ac_val=\$$ac_var
1859     case $ac_val in #(
1860     *${as_nl}*)
1861       case $ac_var in #(
1862       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1864       esac
1865       case $ac_var in #(
1866       _ | IFS | as_nl) ;; #(
1867       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1868       *) { eval $ac_var=; unset $ac_var;} ;;
1869       esac ;;
1870     esac
1871   done
1872   (set) 2>&1 |
1873     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1874     *${as_nl}ac_space=\ *)
1875       sed -n \
1876         "s/'\''/'\''\\\\'\'''\''/g;
1877           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1878       ;; #(
1879     *)
1880       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1881       ;;
1882     esac |
1883     sort
1884 )
1885     echo
1886
1887     $as_echo "## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##"
1890     echo
1891     for ac_var in $ac_subst_vars
1892     do
1893       eval ac_val=\$$ac_var
1894       case $ac_val in
1895       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896       esac
1897       $as_echo "$ac_var='\''$ac_val'\''"
1898     done | sort
1899     echo
1900
1901     if test -n "$ac_subst_files"; then
1902       $as_echo "## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##"
1905       echo
1906       for ac_var in $ac_subst_files
1907       do
1908         eval ac_val=\$$ac_var
1909         case $ac_val in
1910         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911         esac
1912         $as_echo "$ac_var='\''$ac_val'\''"
1913       done | sort
1914       echo
1915     fi
1916
1917     if test -s confdefs.h; then
1918       $as_echo "## ----------- ##
1919 ## confdefs.h. ##
1920 ## ----------- ##"
1921       echo
1922       cat confdefs.h
1923       echo
1924     fi
1925     test "$ac_signal" != 0 &&
1926       $as_echo "$as_me: caught signal $ac_signal"
1927     $as_echo "$as_me: exit $exit_status"
1928   } >&5
1929   rm -f core *.core core.conftest.* &&
1930     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1931     exit $exit_status
1932 ' 0
1933 for ac_signal in 1 2 13 15; do
1934   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1935 done
1936 ac_signal=0
1937
1938 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1939 rm -f -r conftest* confdefs.h
1940
1941 $as_echo "/* confdefs.h */" > confdefs.h
1942
1943 # Predefined preprocessor variables.
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_NAME "$PACKAGE_NAME"
1947 _ACEOF
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1951 _ACEOF
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1955 _ACEOF
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_STRING "$PACKAGE_STRING"
1959 _ACEOF
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963 _ACEOF
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_URL "$PACKAGE_URL"
1967 _ACEOF
1968
1969
1970 # Let the site file select an alternate cache file if it wants to.
1971 # Prefer an explicitly selected file to automatically selected ones.
1972 ac_site_file1=NONE
1973 ac_site_file2=NONE
1974 if test -n "$CONFIG_SITE"; then
1975   # We do not want a PATH search for config.site.
1976   case $CONFIG_SITE in #((
1977     -*)  ac_site_file1=./$CONFIG_SITE;;
1978     */*) ac_site_file1=$CONFIG_SITE;;
1979     *)   ac_site_file1=./$CONFIG_SITE;;
1980   esac
1981 elif test "x$prefix" != xNONE; then
1982   ac_site_file1=$prefix/share/config.site
1983   ac_site_file2=$prefix/etc/config.site
1984 else
1985   ac_site_file1=$ac_default_prefix/share/config.site
1986   ac_site_file2=$ac_default_prefix/etc/config.site
1987 fi
1988 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1989 do
1990   test "x$ac_site_file" = xNONE && continue
1991   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1992     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1994     sed 's/^/| /' "$ac_site_file" >&5
1995     . "$ac_site_file" \
1996       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998 as_fn_error $? "failed to load site script $ac_site_file
1999 See \`config.log' for more details" "$LINENO" 5; }
2000   fi
2001 done
2002
2003 if test -r "$cache_file"; then
2004   # Some versions of bash will fail to source /dev/null (special files
2005   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2006   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008 $as_echo "$as_me: loading cache $cache_file" >&6;}
2009     case $cache_file in
2010       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011       *)                      . "./$cache_file";;
2012     esac
2013   fi
2014 else
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016 $as_echo "$as_me: creating cache $cache_file" >&6;}
2017   >$cache_file
2018 fi
2019
2020 # Check that the precious variables saved in the cache have kept the same
2021 # value.
2022 ac_cache_corrupted=false
2023 for ac_var in $ac_precious_vars; do
2024   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2025   eval ac_new_set=\$ac_env_${ac_var}_set
2026   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2027   eval ac_new_val=\$ac_env_${ac_var}_value
2028   case $ac_old_set,$ac_new_set in
2029     set,)
2030       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2031 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2032       ac_cache_corrupted=: ;;
2033     ,set)
2034       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2036       ac_cache_corrupted=: ;;
2037     ,);;
2038     *)
2039       if test "x$ac_old_val" != "x$ac_new_val"; then
2040         # differences in whitespace do not lead to failure.
2041         ac_old_val_w=`echo x $ac_old_val`
2042         ac_new_val_w=`echo x $ac_new_val`
2043         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2044           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2045 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2046           ac_cache_corrupted=:
2047         else
2048           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2049 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2050           eval $ac_var=\$ac_old_val
2051         fi
2052         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2053 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2054         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2055 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2056       fi;;
2057   esac
2058   # Pass precious variables to config.status.
2059   if test "$ac_new_set" = set; then
2060     case $ac_new_val in
2061     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2062     *) ac_arg=$ac_var=$ac_new_val ;;
2063     esac
2064     case " $ac_configure_args " in
2065       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2066       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2067     esac
2068   fi
2069 done
2070 if $ac_cache_corrupted; then
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2074 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2075   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2076 fi
2077 ## -------------------- ##
2078 ## Main body of script. ##
2079 ## -------------------- ##
2080
2081 ac_ext=c
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086
2087
2088
2089 ac_aux_dir=
2090 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2091   if test -f "$ac_dir/install-sh"; then
2092     ac_aux_dir=$ac_dir
2093     ac_install_sh="$ac_aux_dir/install-sh -c"
2094     break
2095   elif test -f "$ac_dir/install.sh"; then
2096     ac_aux_dir=$ac_dir
2097     ac_install_sh="$ac_aux_dir/install.sh -c"
2098     break
2099   elif test -f "$ac_dir/shtool"; then
2100     ac_aux_dir=$ac_dir
2101     ac_install_sh="$ac_aux_dir/shtool install -c"
2102     break
2103   fi
2104 done
2105 if test -z "$ac_aux_dir"; then
2106   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2107 fi
2108
2109 # These three variables are undocumented and unsupported,
2110 # and are intended to be withdrawn in a future Autoconf release.
2111 # They can cause serious problems if a builder's source tree is in a directory
2112 # whose full name contains unusual characters.
2113 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2114 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2115 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2116
2117
2118
2119
2120 ## ------------------------ ##
2121 ## Automake Initialisation. ##
2122 ## ------------------------ ##
2123 am__api_version='1.11'
2124
2125 # Find a good install program.  We prefer a C program (faster),
2126 # so one script is as good as another.  But avoid the broken or
2127 # incompatible versions:
2128 # SysV /etc/install, /usr/sbin/install
2129 # SunOS /usr/etc/install
2130 # IRIX /sbin/install
2131 # AIX /bin/install
2132 # AmigaOS /C/install, which installs bootblocks on floppy discs
2133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136 # OS/2's system install, which has a completely different semantic
2137 # ./install, which can be erroneously created by make from ./install.sh.
2138 # Reject install programs that cannot install multiple files.
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2140 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2141 if test -z "$INSTALL"; then
2142 if ${ac_cv_path_install+:} false; then :
2143   $as_echo_n "(cached) " >&6
2144 else
2145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150     # Account for people who put trailing slashes in PATH elements.
2151 case $as_dir/ in #((
2152   ./ | .// | /[cC]/* | \
2153   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2154   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2155   /usr/ucb/* ) ;;
2156   *)
2157     # OSF1 and SCO ODT 3.0 have their own names for install.
2158     # Don't use installbsd from OSF since it installs stuff as root
2159     # by default.
2160     for ac_prog in ginstall scoinst install; do
2161       for ac_exec_ext in '' $ac_executable_extensions; do
2162         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2163           if test $ac_prog = install &&
2164             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165             # AIX install.  It has an incompatible calling convention.
2166             :
2167           elif test $ac_prog = install &&
2168             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169             # program-specific install script used by HP pwplus--don't use.
2170             :
2171           else
2172             rm -rf conftest.one conftest.two conftest.dir
2173             echo one > conftest.one
2174             echo two > conftest.two
2175             mkdir conftest.dir
2176             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2177               test -s conftest.one && test -s conftest.two &&
2178               test -s conftest.dir/conftest.one &&
2179               test -s conftest.dir/conftest.two
2180             then
2181               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2182               break 3
2183             fi
2184           fi
2185         fi
2186       done
2187     done
2188     ;;
2189 esac
2190
2191   done
2192 IFS=$as_save_IFS
2193
2194 rm -rf conftest.one conftest.two conftest.dir
2195
2196 fi
2197   if test "${ac_cv_path_install+set}" = set; then
2198     INSTALL=$ac_cv_path_install
2199   else
2200     # As a last resort, use the slow shell script.  Don't cache a
2201     # value for INSTALL within a source directory, because that will
2202     # break other packages using the cache if that directory is
2203     # removed, or if the value is a relative name.
2204     INSTALL=$ac_install_sh
2205   fi
2206 fi
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2208 $as_echo "$INSTALL" >&6; }
2209
2210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211 # It thinks the first close brace ends the variable substitution.
2212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213
2214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215
2216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2219 $as_echo_n "checking whether build environment is sane... " >&6; }
2220 # Just in case
2221 sleep 1
2222 echo timestamp > conftest.file
2223 # Reject unsafe characters in $srcdir or the absolute working directory
2224 # name.  Accept space and tab only in the latter.
2225 am_lf='
2226 '
2227 case `pwd` in
2228   *[\\\"\#\$\&\'\`$am_lf]*)
2229     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2230 esac
2231 case $srcdir in
2232   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2233     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2234 esac
2235
2236 # Do `set' in a subshell so we don't clobber the current shell's
2237 # arguments.  Must try -L first in case configure is actually a
2238 # symlink; some systems play weird games with the mod time of symlinks
2239 # (eg FreeBSD returns the mod time of the symlink's containing
2240 # directory).
2241 if (
2242    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2243    if test "$*" = "X"; then
2244       # -L didn't work.
2245       set X `ls -t "$srcdir/configure" conftest.file`
2246    fi
2247    rm -f conftest.file
2248    if test "$*" != "X $srcdir/configure conftest.file" \
2249       && test "$*" != "X conftest.file $srcdir/configure"; then
2250
2251       # If neither matched, then we have a broken ls.  This can happen
2252       # if, for instance, CONFIG_SHELL is bash and it inherits a
2253       # broken ls alias from the environment.  This has actually
2254       # happened.  Such a system could not be considered "sane".
2255       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2256 alias in your environment" "$LINENO" 5
2257    fi
2258
2259    test "$2" = conftest.file
2260    )
2261 then
2262    # Ok.
2263    :
2264 else
2265    as_fn_error $? "newly created file is older than distributed files!
2266 Check your system clock" "$LINENO" 5
2267 fi
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2269 $as_echo "yes" >&6; }
2270 test "$program_prefix" != NONE &&
2271   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2272 # Use a double $ so make ignores it.
2273 test "$program_suffix" != NONE &&
2274   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2275 # Double any \ or $.
2276 # By default was `s,x,x', remove it if useless.
2277 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2278 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2279
2280 # expand $ac_aux_dir to an absolute path
2281 am_aux_dir=`cd $ac_aux_dir && pwd`
2282
2283 if test x"${MISSING+set}" != xset; then
2284   case $am_aux_dir in
2285   *\ * | *\     *)
2286     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2287   *)
2288     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2289   esac
2290 fi
2291 # Use eval to expand $SHELL
2292 if eval "$MISSING --run true"; then
2293   am_missing_run="$MISSING --run "
2294 else
2295   am_missing_run=
2296   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2297 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2298 fi
2299
2300 if test x"${install_sh}" != xset; then
2301   case $am_aux_dir in
2302   *\ * | *\     *)
2303     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2304   *)
2305     install_sh="\${SHELL} $am_aux_dir/install-sh"
2306   esac
2307 fi
2308
2309 # Installed binaries are usually stripped using `strip' when the user
2310 # run `make install-strip'.  However `strip' might not be the right
2311 # tool to use in cross-compilation environments, therefore Automake
2312 # will honor the `STRIP' environment variable to overrule this program.
2313 if test "$cross_compiling" != no; then
2314   if test -n "$ac_tool_prefix"; then
2315   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}strip; ac_word=$2
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318 $as_echo_n "checking for $ac_word... " >&6; }
2319 if ${ac_cv_prog_STRIP+:} false; then :
2320   $as_echo_n "(cached) " >&6
2321 else
2322   if test -n "$STRIP"; then
2323   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330     for ac_exec_ext in '' $ac_executable_extensions; do
2331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337   done
2338 IFS=$as_save_IFS
2339
2340 fi
2341 fi
2342 STRIP=$ac_cv_prog_STRIP
2343 if test -n "$STRIP"; then
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2345 $as_echo "$STRIP" >&6; }
2346 else
2347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348 $as_echo "no" >&6; }
2349 fi
2350
2351
2352 fi
2353 if test -z "$ac_cv_prog_STRIP"; then
2354   ac_ct_STRIP=$STRIP
2355   # Extract the first word of "strip", so it can be a program name with args.
2356 set dummy strip; ac_word=$2
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358 $as_echo_n "checking for $ac_word... " >&6; }
2359 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2360   $as_echo_n "(cached) " >&6
2361 else
2362   if test -n "$ac_ct_STRIP"; then
2363   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368   IFS=$as_save_IFS
2369   test -z "$as_dir" && as_dir=.
2370     for ac_exec_ext in '' $ac_executable_extensions; do
2371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372     ac_cv_prog_ac_ct_STRIP="strip"
2373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374     break 2
2375   fi
2376 done
2377   done
2378 IFS=$as_save_IFS
2379
2380 fi
2381 fi
2382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383 if test -n "$ac_ct_STRIP"; then
2384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2385 $as_echo "$ac_ct_STRIP" >&6; }
2386 else
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388 $as_echo "no" >&6; }
2389 fi
2390
2391   if test "x$ac_ct_STRIP" = x; then
2392     STRIP=":"
2393   else
2394     case $cross_compiling:$ac_tool_warned in
2395 yes:)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398 ac_tool_warned=yes ;;
2399 esac
2400     STRIP=$ac_ct_STRIP
2401   fi
2402 else
2403   STRIP="$ac_cv_prog_STRIP"
2404 fi
2405
2406 fi
2407 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2410 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2411 if test -z "$MKDIR_P"; then
2412   if ${ac_cv_path_mkdir+:} false; then :
2413   $as_echo_n "(cached) " >&6
2414 else
2415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420     for ac_prog in mkdir gmkdir; do
2421          for ac_exec_ext in '' $ac_executable_extensions; do
2422            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2423            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2424              'mkdir (GNU coreutils) '* | \
2425              'mkdir (coreutils) '* | \
2426              'mkdir (fileutils) '4.1*)
2427                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2428                break 3;;
2429            esac
2430          done
2431        done
2432   done
2433 IFS=$as_save_IFS
2434
2435 fi
2436
2437   test -d ./--version && rmdir ./--version
2438   if test "${ac_cv_path_mkdir+set}" = set; then
2439     MKDIR_P="$ac_cv_path_mkdir -p"
2440   else
2441     # As a last resort, use the slow shell script.  Don't cache a
2442     # value for MKDIR_P within a source directory, because that will
2443     # break other packages using the cache if that directory is
2444     # removed, or if the value is a relative name.
2445     MKDIR_P="$ac_install_sh -d"
2446   fi
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2449 $as_echo "$MKDIR_P" >&6; }
2450
2451 mkdir_p="$MKDIR_P"
2452 case $mkdir_p in
2453   [\\/$]* | ?:[\\/]*) ;;
2454   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2455 esac
2456
2457 for ac_prog in gawk mawk nawk awk
2458 do
2459   # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_AWK+:} false; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   if test -n "$AWK"; then
2467   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474     for ac_exec_ext in '' $ac_executable_extensions; do
2475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476     ac_cv_prog_AWK="$ac_prog"
2477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481   done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 AWK=$ac_cv_prog_AWK
2487 if test -n "$AWK"; then
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2489 $as_echo "$AWK" >&6; }
2490 else
2491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496   test -n "$AWK" && break
2497 done
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2500 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2501 set x ${MAKE-make}
2502 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2503 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2504   $as_echo_n "(cached) " >&6
2505 else
2506   cat >conftest.make <<\_ACEOF
2507 SHELL = /bin/sh
2508 all:
2509         @echo '@@@%%%=$(MAKE)=@@@%%%'
2510 _ACEOF
2511 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2512 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2513   *@@@%%%=?*=@@@%%%*)
2514     eval ac_cv_prog_make_${ac_make}_set=yes;;
2515   *)
2516     eval ac_cv_prog_make_${ac_make}_set=no;;
2517 esac
2518 rm -f conftest.make
2519 fi
2520 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522 $as_echo "yes" >&6; }
2523   SET_MAKE=
2524 else
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526 $as_echo "no" >&6; }
2527   SET_MAKE="MAKE=${MAKE-make}"
2528 fi
2529
2530 rm -rf .tst 2>/dev/null
2531 mkdir .tst 2>/dev/null
2532 if test -d .tst; then
2533   am__leading_dot=.
2534 else
2535   am__leading_dot=_
2536 fi
2537 rmdir .tst 2>/dev/null
2538
2539 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2540   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2541   # is not polluted with repeated "-I."
2542   am__isrc=' -I$(srcdir)'
2543   # test to see if srcdir already configured
2544   if test -f $srcdir/config.status; then
2545     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2546   fi
2547 fi
2548
2549 # test whether we have cygpath
2550 if test -z "$CYGPATH_W"; then
2551   if (cygpath --version) >/dev/null 2>/dev/null; then
2552     CYGPATH_W='cygpath -w'
2553   else
2554     CYGPATH_W=echo
2555   fi
2556 fi
2557
2558
2559 # Define the identity of the package.
2560  PACKAGE='cdemo'
2561  VERSION='1.0'
2562
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE "$PACKAGE"
2566 _ACEOF
2567
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define VERSION "$VERSION"
2571 _ACEOF
2572
2573 # Some tools Automake needs.
2574
2575 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2576
2577
2578 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2579
2580
2581 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2582
2583
2584 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2585
2586
2587 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2588
2589 # We need awk for the "check" target.  The system "awk" is bad on
2590 # some platforms.
2591 # Always define AMTAR for backward compatibility.
2592
2593 AMTAR=${AMTAR-"${am_missing_run}tar"}
2594
2595 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2596
2597
2598
2599
2600
2601
2602
2603 ## ------------------ ##
2604 ## C compiler checks. ##
2605 ## ------------------ ##
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611 if test -n "$ac_tool_prefix"; then
2612   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_CC+:} false; then :
2617   $as_echo_n "(cached) " >&6
2618 else
2619   if test -n "$CC"; then
2620   ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625   IFS=$as_save_IFS
2626   test -z "$as_dir" && as_dir=.
2627     for ac_exec_ext in '' $ac_executable_extensions; do
2628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631     break 2
2632   fi
2633 done
2634   done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642 $as_echo "$CC" >&6; }
2643 else
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648
2649 fi
2650 if test -z "$ac_cv_prog_CC"; then
2651   ac_ct_CC=$CC
2652   # Extract the first word of "gcc", so it can be a program name with args.
2653 set dummy gcc; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2657   $as_echo_n "(cached) " >&6
2658 else
2659   if test -n "$ac_ct_CC"; then
2660   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665   IFS=$as_save_IFS
2666   test -z "$as_dir" && as_dir=.
2667     for ac_exec_ext in '' $ac_executable_extensions; do
2668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669     ac_cv_prog_ac_ct_CC="gcc"
2670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671     break 2
2672   fi
2673 done
2674   done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680 if test -n "$ac_ct_CC"; then
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2682 $as_echo "$ac_ct_CC" >&6; }
2683 else
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688   if test "x$ac_ct_CC" = x; then
2689     CC=""
2690   else
2691     case $cross_compiling:$ac_tool_warned in
2692 yes:)
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695 ac_tool_warned=yes ;;
2696 esac
2697     CC=$ac_ct_CC
2698   fi
2699 else
2700   CC="$ac_cv_prog_CC"
2701 fi
2702
2703 if test -z "$CC"; then
2704           if test -n "$ac_tool_prefix"; then
2705     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}cc; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_CC+:} false; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   if test -n "$CC"; then
2713   ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720     for ac_exec_ext in '' $ac_executable_extensions; do
2721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722     ac_cv_prog_CC="${ac_tool_prefix}cc"
2723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727   done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2735 $as_echo "$CC" >&6; }
2736 else
2737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742   fi
2743 fi
2744 if test -z "$CC"; then
2745   # Extract the first word of "cc", so it can be a program name with args.
2746 set dummy cc; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_CC+:} false; then :
2750   $as_echo_n "(cached) " >&6
2751 else
2752   if test -n "$CC"; then
2753   ac_cv_prog_CC="$CC" # Let the user override the test.
2754 else
2755   ac_prog_rejected=no
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759   IFS=$as_save_IFS
2760   test -z "$as_dir" && as_dir=.
2761     for ac_exec_ext in '' $ac_executable_extensions; do
2762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2764        ac_prog_rejected=yes
2765        continue
2766      fi
2767     ac_cv_prog_CC="cc"
2768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769     break 2
2770   fi
2771 done
2772   done
2773 IFS=$as_save_IFS
2774
2775 if test $ac_prog_rejected = yes; then
2776   # We found a bogon in the path, so make sure we never use it.
2777   set dummy $ac_cv_prog_CC
2778   shift
2779   if test $# != 0; then
2780     # We chose a different compiler from the bogus one.
2781     # However, it has the same basename, so the bogon will be chosen
2782     # first if we set CC to just the basename; use the full file name.
2783     shift
2784     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2785   fi
2786 fi
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798
2799 fi
2800 if test -z "$CC"; then
2801   if test -n "$ac_tool_prefix"; then
2802   for ac_prog in cl.exe
2803   do
2804     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_CC+:} false; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   if test -n "$CC"; then
2812   ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819     for ac_exec_ext in '' $ac_executable_extensions; do
2820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823     break 2
2824   fi
2825 done
2826   done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 CC=$ac_cv_prog_CC
2832 if test -n "$CC"; then
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834 $as_echo "$CC" >&6; }
2835 else
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840
2841     test -n "$CC" && break
2842   done
2843 fi
2844 if test -z "$CC"; then
2845   ac_ct_CC=$CC
2846   for ac_prog in cl.exe
2847 do
2848   # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   if test -n "$ac_ct_CC"; then
2856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_exec_ext in '' $ac_executable_extensions; do
2864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865     ac_cv_prog_ac_ct_CC="$ac_prog"
2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870   done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876 if test -n "$ac_ct_CC"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2878 $as_echo "$ac_ct_CC" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885   test -n "$ac_ct_CC" && break
2886 done
2887
2888   if test "x$ac_ct_CC" = x; then
2889     CC=""
2890   else
2891     case $cross_compiling:$ac_tool_warned in
2892 yes:)
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2895 ac_tool_warned=yes ;;
2896 esac
2897     CC=$ac_ct_CC
2898   fi
2899 fi
2900
2901 fi
2902
2903
2904 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 as_fn_error $? "no acceptable C compiler found in \$PATH
2907 See \`config.log' for more details" "$LINENO" 5; }
2908
2909 # Provide some information about the compiler.
2910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2911 set X $ac_compile
2912 ac_compiler=$2
2913 for ac_option in --version -v -V -qversion; do
2914   { { ac_try="$ac_compiler $ac_option >&5"
2915 case "(($ac_try" in
2916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917   *) ac_try_echo=$ac_try;;
2918 esac
2919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 $as_echo "$ac_try_echo"; } >&5
2921   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2922   ac_status=$?
2923   if test -s conftest.err; then
2924     sed '10a\
2925 ... rest of stderr output deleted ...
2926          10q' conftest.err >conftest.er1
2927     cat conftest.er1 >&5
2928   fi
2929   rm -f conftest.er1 conftest.err
2930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931   test $ac_status = 0; }
2932 done
2933
2934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h.  */
2936
2937 int
2938 main ()
2939 {
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 ac_clean_files_save=$ac_clean_files
2946 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2947 # Try to create an executable without -o first, disregard a.out.
2948 # It will help us diagnose broken compilers, and finding out an intuition
2949 # of exeext.
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2951 $as_echo_n "checking whether the C compiler works... " >&6; }
2952 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2953
2954 # The possible output files:
2955 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2956
2957 ac_rmfiles=
2958 for ac_file in $ac_files
2959 do
2960   case $ac_file in
2961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2962     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2963   esac
2964 done
2965 rm -f $ac_rmfiles
2966
2967 if { { ac_try="$ac_link_default"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974   (eval "$ac_link_default") 2>&5
2975   ac_status=$?
2976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977   test $ac_status = 0; }; then :
2978   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2979 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2980 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2981 # so that the user can short-circuit this test for compilers unknown to
2982 # Autoconf.
2983 for ac_file in $ac_files ''
2984 do
2985   test -f "$ac_file" || continue
2986   case $ac_file in
2987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2988         ;;
2989     [ab].out )
2990         # We found the default executable, but exeext='' is most
2991         # certainly right.
2992         break;;
2993     *.* )
2994         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2995         then :; else
2996            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2997         fi
2998         # We set ac_cv_exeext here because the later test for it is not
2999         # safe: cross compilers may not add the suffix if given an `-o'
3000         # argument, so we may need to know it at that point already.
3001         # Even if this section looks crufty: it has the advantage of
3002         # actually working.
3003         break;;
3004     * )
3005         break;;
3006   esac
3007 done
3008 test "$ac_cv_exeext" = no && ac_cv_exeext=
3009
3010 else
3011   ac_file=''
3012 fi
3013 if test -z "$ac_file"; then :
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 $as_echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3021 as_fn_error 77 "C compiler cannot create executables
3022 See \`config.log' for more details" "$LINENO" 5; }
3023 else
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025 $as_echo "yes" >&6; }
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3028 $as_echo_n "checking for C compiler default output file name... " >&6; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3030 $as_echo "$ac_file" >&6; }
3031 ac_exeext=$ac_cv_exeext
3032
3033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3034 ac_clean_files=$ac_clean_files_save
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3036 $as_echo_n "checking for suffix of executables... " >&6; }
3037 if { { ac_try="$ac_link"
3038 case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044   (eval "$ac_link") 2>&5
3045   ac_status=$?
3046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047   test $ac_status = 0; }; then :
3048   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3049 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3050 # work properly (i.e., refer to `conftest.exe'), while it won't with
3051 # `rm'.
3052 for ac_file in conftest.exe conftest conftest.*; do
3053   test -f "$ac_file" || continue
3054   case $ac_file in
3055     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3056     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3057           break;;
3058     * ) break;;
3059   esac
3060 done
3061 else
3062   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3064 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3065 See \`config.log' for more details" "$LINENO" 5; }
3066 fi
3067 rm -f conftest conftest$ac_cv_exeext
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3069 $as_echo "$ac_cv_exeext" >&6; }
3070
3071 rm -f conftest.$ac_ext
3072 EXEEXT=$ac_cv_exeext
3073 ac_exeext=$EXEEXT
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h.  */
3076 #include <stdio.h>
3077 int
3078 main ()
3079 {
3080 FILE *f = fopen ("conftest.out", "w");
3081  return ferror (f) || fclose (f) != 0;
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 ac_clean_files="$ac_clean_files conftest.out"
3088 # Check that the compiler produces executables we can run.  If not, either
3089 # the compiler is broken, or we cross compile.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3091 $as_echo_n "checking whether we are cross compiling... " >&6; }
3092 if test "$cross_compiling" != yes; then
3093   { { ac_try="$ac_link"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100   (eval "$ac_link") 2>&5
3101   ac_status=$?
3102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103   test $ac_status = 0; }
3104   if { ac_try='./conftest$ac_cv_exeext'
3105   { { case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111   (eval "$ac_try") 2>&5
3112   ac_status=$?
3113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114   test $ac_status = 0; }; }; then
3115     cross_compiling=no
3116   else
3117     if test "$cross_compiling" = maybe; then
3118         cross_compiling=yes
3119     else
3120         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error $? "cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details" "$LINENO" 5; }
3125     fi
3126   fi
3127 fi
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3129 $as_echo "$cross_compiling" >&6; }
3130
3131 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3132 ac_clean_files=$ac_clean_files_save
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3134 $as_echo_n "checking for suffix of object files... " >&6; }
3135 if ${ac_cv_objext+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h.  */
3140
3141 int
3142 main ()
3143 {
3144
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.o conftest.obj
3150 if { { ac_try="$ac_compile"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157   (eval "$ac_compile") 2>&5
3158   ac_status=$?
3159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160   test $ac_status = 0; }; then :
3161   for ac_file in conftest.o conftest.obj conftest.*; do
3162   test -f "$ac_file" || continue;
3163   case $ac_file in
3164     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3165     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3166        break;;
3167   esac
3168 done
3169 else
3170   $as_echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error $? "cannot compute suffix of object files: cannot compile
3176 See \`config.log' for more details" "$LINENO" 5; }
3177 fi
3178 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3181 $as_echo "$ac_cv_objext" >&6; }
3182 OBJEXT=$ac_cv_objext
3183 ac_objext=$OBJEXT
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3185 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3186 if ${ac_cv_c_compiler_gnu+:} false; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195 #ifndef __GNUC__
3196        choke me
3197 #endif
3198
3199   ;
3200   return 0;
3201 }
3202 _ACEOF
3203 if ac_fn_c_try_compile "$LINENO"; then :
3204   ac_compiler_gnu=yes
3205 else
3206   ac_compiler_gnu=no
3207 fi
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3210
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3213 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3214 if test $ac_compiler_gnu = yes; then
3215   GCC=yes
3216 else
3217   GCC=
3218 fi
3219 ac_test_CFLAGS=${CFLAGS+set}
3220 ac_save_CFLAGS=$CFLAGS
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3222 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3223 if ${ac_cv_prog_cc_g+:} false; then :
3224   $as_echo_n "(cached) " >&6
3225 else
3226   ac_save_c_werror_flag=$ac_c_werror_flag
3227    ac_c_werror_flag=yes
3228    ac_cv_prog_cc_g=no
3229    CFLAGS="-g"
3230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h.  */
3232
3233 int
3234 main ()
3235 {
3236
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 if ac_fn_c_try_compile "$LINENO"; then :
3242   ac_cv_prog_cc_g=yes
3243 else
3244   CFLAGS=""
3245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251
3252   ;
3253   return 0;
3254 }
3255 _ACEOF
3256 if ac_fn_c_try_compile "$LINENO"; then :
3257
3258 else
3259   ac_c_werror_flag=$ac_save_c_werror_flag
3260          CFLAGS="-g"
3261          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 if ac_fn_c_try_compile "$LINENO"; then :
3273   ac_cv_prog_cc_g=yes
3274 fi
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 fi
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 fi
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280    ac_c_werror_flag=$ac_save_c_werror_flag
3281 fi
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3283 $as_echo "$ac_cv_prog_cc_g" >&6; }
3284 if test "$ac_test_CFLAGS" = set; then
3285   CFLAGS=$ac_save_CFLAGS
3286 elif test $ac_cv_prog_cc_g = yes; then
3287   if test "$GCC" = yes; then
3288     CFLAGS="-g -O2"
3289   else
3290     CFLAGS="-g"
3291   fi
3292 else
3293   if test "$GCC" = yes; then
3294     CFLAGS="-O2"
3295   else
3296     CFLAGS=
3297   fi
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3300 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3301 if ${ac_cv_prog_cc_c89+:} false; then :
3302   $as_echo_n "(cached) " >&6
3303 else
3304   ac_cv_prog_cc_c89=no
3305 ac_save_CC=$CC
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h.  */
3308 #include <stdarg.h>
3309 #include <stdio.h>
3310 #include <sys/types.h>
3311 #include <sys/stat.h>
3312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3313 struct buf { int x; };
3314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3315 static char *e (p, i)
3316      char **p;
3317      int i;
3318 {
3319   return p[i];
3320 }
3321 static char *f (char * (*g) (char **, int), char **p, ...)
3322 {
3323   char *s;
3324   va_list v;
3325   va_start (v,p);
3326   s = g (p, va_arg (v,int));
3327   va_end (v);
3328   return s;
3329 }
3330
3331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3332    function prototypes and stuff, but not '\xHH' hex character constants.
3333    These don't provoke an error unfortunately, instead are silently treated
3334    as 'x'.  The following induces an error, until -std is added to get
3335    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3336    array size at least.  It's necessary to write '\x00'==0 to get something
3337    that's true only with -std.  */
3338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3339
3340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3341    inside strings and character constants.  */
3342 #define FOO(x) 'x'
3343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3344
3345 int test (int i, double x);
3346 struct s1 {int (*f) (int a);};
3347 struct s2 {int (*f) (double a);};
3348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3349 int argc;
3350 char **argv;
3351 int
3352 main ()
3353 {
3354 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3360         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361 do
3362   CC="$ac_save_CC $ac_arg"
3363   if ac_fn_c_try_compile "$LINENO"; then :
3364   ac_cv_prog_cc_c89=$ac_arg
3365 fi
3366 rm -f core conftest.err conftest.$ac_objext
3367   test "x$ac_cv_prog_cc_c89" != "xno" && break
3368 done
3369 rm -f conftest.$ac_ext
3370 CC=$ac_save_CC
3371
3372 fi
3373 # AC_CACHE_VAL
3374 case "x$ac_cv_prog_cc_c89" in
3375   x)
3376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3377 $as_echo "none needed" >&6; } ;;
3378   xno)
3379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3380 $as_echo "unsupported" >&6; } ;;
3381   *)
3382     CC="$CC $ac_cv_prog_cc_c89"
3383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3384 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3385 esac
3386 if test "x$ac_cv_prog_cc_c89" != xno; then :
3387
3388 fi
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 DEPDIR="${am__leading_dot}deps"
3396
3397 ac_config_commands="$ac_config_commands depfiles"
3398
3399
3400 am_make=${MAKE-make}
3401 cat > confinc << 'END'
3402 am__doit:
3403         @echo this is the am__doit target
3404 .PHONY: am__doit
3405 END
3406 # If we don't find an include directive, just comment out the code.
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3408 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3409 am__include="#"
3410 am__quote=
3411 _am_result=none
3412 # First try GNU make style include.
3413 echo "include confinc" > confmf
3414 # Ignore all kinds of additional output from `make'.
3415 case `$am_make -s -f confmf 2> /dev/null` in #(
3416 *the\ am__doit\ target*)
3417   am__include=include
3418   am__quote=
3419   _am_result=GNU
3420   ;;
3421 esac
3422 # Now try BSD make style include.
3423 if test "$am__include" = "#"; then
3424    echo '.include "confinc"' > confmf
3425    case `$am_make -s -f confmf 2> /dev/null` in #(
3426    *the\ am__doit\ target*)
3427      am__include=.include
3428      am__quote="\""
3429      _am_result=BSD
3430      ;;
3431    esac
3432 fi
3433
3434
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3436 $as_echo "$_am_result" >&6; }
3437 rm -f confinc confmf
3438
3439 # Check whether --enable-dependency-tracking was given.
3440 if test "${enable_dependency_tracking+set}" = set; then :
3441   enableval=$enable_dependency_tracking;
3442 fi
3443
3444 if test "x$enable_dependency_tracking" != xno; then
3445   am_depcomp="$ac_aux_dir/depcomp"
3446   AMDEPBACKSLASH='\'
3447 fi
3448  if test "x$enable_dependency_tracking" != xno; then
3449   AMDEP_TRUE=
3450   AMDEP_FALSE='#'
3451 else
3452   AMDEP_TRUE='#'
3453   AMDEP_FALSE=
3454 fi
3455
3456
3457
3458 depcc="$CC"   am_compiler_list=
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3461 $as_echo_n "checking dependency style of $depcc... " >&6; }
3462 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3466   # We make a subdir and do the tests there.  Otherwise we can end up
3467   # making bogus files that we don't know about and never remove.  For
3468   # instance it was reported that on HP-UX the gcc test will end up
3469   # making a dummy file named `D' -- because `-MD' means `put the output
3470   # in D'.
3471   mkdir conftest.dir
3472   # Copy depcomp to subdir because otherwise we won't find it if we're
3473   # using a relative directory.
3474   cp "$am_depcomp" conftest.dir
3475   cd conftest.dir
3476   # We will build objects and dependencies in a subdirectory because
3477   # it helps to detect inapplicable dependency modes.  For instance
3478   # both Tru64's cc and ICC support -MD to output dependencies as a
3479   # side effect of compilation, but ICC will put the dependencies in
3480   # the current directory while Tru64 will put them in the object
3481   # directory.
3482   mkdir sub
3483
3484   am_cv_CC_dependencies_compiler_type=none
3485   if test "$am_compiler_list" = ""; then
3486      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3487   fi
3488   am__universal=false
3489   case " $depcc " in #(
3490      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3491      esac
3492
3493   for depmode in $am_compiler_list; do
3494     # Setup a source with many dependencies, because some compilers
3495     # like to wrap large dependency lists on column 80 (with \), and
3496     # we should not choose a depcomp mode which is confused by this.
3497     #
3498     # We need to recreate these files for each test, as the compiler may
3499     # overwrite some of them when testing with obscure command lines.
3500     # This happens at least with the AIX C compiler.
3501     : > sub/conftest.c
3502     for i in 1 2 3 4 5 6; do
3503       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3504       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3505       # Solaris 8's {/usr,}/bin/sh.
3506       touch sub/conftst$i.h
3507     done
3508     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3509
3510     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3511     # mode.  It turns out that the SunPro C++ compiler does not properly
3512     # handle `-M -o', and we need to detect this.  Also, some Intel
3513     # versions had trouble with output in subdirs
3514     am__obj=sub/conftest.${OBJEXT-o}
3515     am__minus_obj="-o $am__obj"
3516     case $depmode in
3517     gcc)
3518       # This depmode causes a compiler race in universal mode.
3519       test "$am__universal" = false || continue
3520       ;;
3521     nosideeffect)
3522       # after this tag, mechanisms are not by side-effect, so they'll
3523       # only be used when explicitly requested
3524       if test "x$enable_dependency_tracking" = xyes; then
3525         continue
3526       else
3527         break
3528       fi
3529       ;;
3530     msvisualcpp | msvcmsys)
3531       # This compiler won't grok `-c -o', but also, the minuso test has
3532       # not run yet.  These depmodes are late enough in the game, and
3533       # so weak that their functioning should not be impacted.
3534       am__obj=conftest.${OBJEXT-o}
3535       am__minus_obj=
3536       ;;
3537     none) break ;;
3538     esac
3539     if depmode=$depmode \
3540        source=sub/conftest.c object=$am__obj \
3541        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3542        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3543          >/dev/null 2>conftest.err &&
3544        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3545        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3546        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3547        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3548       # icc doesn't choke on unknown options, it will just issue warnings
3549       # or remarks (even with -Werror).  So we grep stderr for any message
3550       # that says an option was ignored or not supported.
3551       # When given -MP, icc 7.0 and 7.1 complain thusly:
3552       #   icc: Command line warning: ignoring option '-M'; no argument required
3553       # The diagnosis changed in icc 8.0:
3554       #   icc: Command line remark: option '-MP' not supported
3555       if (grep 'ignoring option' conftest.err ||
3556           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3557         am_cv_CC_dependencies_compiler_type=$depmode
3558         break
3559       fi
3560     fi
3561   done
3562
3563   cd ..
3564   rm -rf conftest.dir
3565 else
3566   am_cv_CC_dependencies_compiler_type=none
3567 fi
3568
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3571 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3572 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3573
3574  if
3575   test "x$enable_dependency_tracking" != xno \
3576   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3577   am__fastdepCC_TRUE=
3578   am__fastdepCC_FALSE='#'
3579 else
3580   am__fastdepCC_TRUE='#'
3581   am__fastdepCC_FALSE=
3582 fi
3583
3584
3585
3586
3587 ## ----------------------- ##
3588 ## Libtool initialisation. ##
3589 ## ----------------------- ##
3590 case `pwd` in
3591   *\ * | *\     *)
3592     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3593 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3594 esac
3595
3596
3597
3598 macro_version='2.4.2'
3599 macro_revision='1.3337'
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613 ltmain="$ac_aux_dir/ltmain.sh"
3614
3615 # Make sure we can run config.sub.
3616 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3617   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3618
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3620 $as_echo_n "checking build system type... " >&6; }
3621 if ${ac_cv_build+:} false; then :
3622   $as_echo_n "(cached) " >&6
3623 else
3624   ac_build_alias=$build_alias
3625 test "x$ac_build_alias" = x &&
3626   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3627 test "x$ac_build_alias" = x &&
3628   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3629 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3630   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3631
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3634 $as_echo "$ac_cv_build" >&6; }
3635 case $ac_cv_build in
3636 *-*-*) ;;
3637 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3638 esac
3639 build=$ac_cv_build
3640 ac_save_IFS=$IFS; IFS='-'
3641 set x $ac_cv_build
3642 shift
3643 build_cpu=$1
3644 build_vendor=$2
3645 shift; shift
3646 # Remember, the first character of IFS is used to create $*,
3647 # except with old shells:
3648 build_os=$*
3649 IFS=$ac_save_IFS
3650 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3651
3652
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3654 $as_echo_n "checking host system type... " >&6; }
3655 if ${ac_cv_host+:} false; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   if test "x$host_alias" = x; then
3659   ac_cv_host=$ac_cv_build
3660 else
3661   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3662     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3663 fi
3664
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3667 $as_echo "$ac_cv_host" >&6; }
3668 case $ac_cv_host in
3669 *-*-*) ;;
3670 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3671 esac
3672 host=$ac_cv_host
3673 ac_save_IFS=$IFS; IFS='-'
3674 set x $ac_cv_host
3675 shift
3676 host_cpu=$1
3677 host_vendor=$2
3678 shift; shift
3679 # Remember, the first character of IFS is used to create $*,
3680 # except with old shells:
3681 host_os=$*
3682 IFS=$ac_save_IFS
3683 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3684
3685
3686 # Backslashify metacharacters that are still active within
3687 # double-quoted strings.
3688 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3689
3690 # Same as above, but do not quote variable references.
3691 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3692
3693 # Sed substitution to delay expansion of an escaped shell variable in a
3694 # double_quote_subst'ed string.
3695 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3696
3697 # Sed substitution to delay expansion of an escaped single quote.
3698 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3699
3700 # Sed substitution to avoid accidental globbing in evaled expressions
3701 no_glob_subst='s/\*/\\\*/g'
3702
3703 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3704 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3706
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3708 $as_echo_n "checking how to print strings... " >&6; }
3709 # Test print first, because it will be a builtin if present.
3710 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3711    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3712   ECHO='print -r --'
3713 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3714   ECHO='printf %s\n'
3715 else
3716   # Use this function as a fallback that always works.
3717   func_fallback_echo ()
3718   {
3719     eval 'cat <<_LTECHO_EOF
3720 $1
3721 _LTECHO_EOF'
3722   }
3723   ECHO='func_fallback_echo'
3724 fi
3725
3726 # func_echo_all arg...
3727 # Invoke $ECHO with all args, space-separated.
3728 func_echo_all ()
3729 {
3730     $ECHO ""
3731 }
3732
3733 case "$ECHO" in
3734   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3735 $as_echo "printf" >&6; } ;;
3736   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3737 $as_echo "print -r" >&6; } ;;
3738   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3739 $as_echo "cat" >&6; } ;;
3740 esac
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3756 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3757 if ${ac_cv_path_SED+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3761      for ac_i in 1 2 3 4 5 6 7; do
3762        ac_script="$ac_script$as_nl$ac_script"
3763      done
3764      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3765      { ac_script=; unset ac_script;}
3766      if test -z "$SED"; then
3767   ac_path_SED_found=false
3768   # Loop through the user's path and test for each of PROGNAME-LIST
3769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774     for ac_prog in sed gsed; do
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3777       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3778 # Check for GNU ac_path_SED and select it if it is found.
3779   # Check for GNU $ac_path_SED
3780 case `"$ac_path_SED" --version 2>&1` in
3781 *GNU*)
3782   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3783 *)
3784   ac_count=0
3785   $as_echo_n 0123456789 >"conftest.in"
3786   while :
3787   do
3788     cat "conftest.in" "conftest.in" >"conftest.tmp"
3789     mv "conftest.tmp" "conftest.in"
3790     cp "conftest.in" "conftest.nl"
3791     $as_echo '' >> "conftest.nl"
3792     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794     as_fn_arith $ac_count + 1 && ac_count=$as_val
3795     if test $ac_count -gt ${ac_path_SED_max-0}; then
3796       # Best one so far, save it but keep looking for a better one
3797       ac_cv_path_SED="$ac_path_SED"
3798       ac_path_SED_max=$ac_count
3799     fi
3800     # 10*(2^10) chars as input seems more than enough
3801     test $ac_count -gt 10 && break
3802   done
3803   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804 esac
3805
3806       $ac_path_SED_found && break 3
3807     done
3808   done
3809   done
3810 IFS=$as_save_IFS
3811   if test -z "$ac_cv_path_SED"; then
3812     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3813   fi
3814 else
3815   ac_cv_path_SED=$SED
3816 fi
3817
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3820 $as_echo "$ac_cv_path_SED" >&6; }
3821  SED="$ac_cv_path_SED"
3822   rm -f conftest.sed
3823
3824 test -z "$SED" && SED=sed
3825 Xsed="$SED -e 1s/^X//"
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3839 if ${ac_cv_path_GREP+:} false; then :
3840   $as_echo_n "(cached) " >&6
3841 else
3842   if test -z "$GREP"; then
3843   ac_path_GREP_found=false
3844   # Loop through the user's path and test for each of PROGNAME-LIST
3845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850     for ac_prog in grep ggrep; do
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3853       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3854 # Check for GNU ac_path_GREP and select it if it is found.
3855   # Check for GNU $ac_path_GREP
3856 case `"$ac_path_GREP" --version 2>&1` in
3857 *GNU*)
3858   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3859 *)
3860   ac_count=0
3861   $as_echo_n 0123456789 >"conftest.in"
3862   while :
3863   do
3864     cat "conftest.in" "conftest.in" >"conftest.tmp"
3865     mv "conftest.tmp" "conftest.in"
3866     cp "conftest.in" "conftest.nl"
3867     $as_echo 'GREP' >> "conftest.nl"
3868     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870     as_fn_arith $ac_count + 1 && ac_count=$as_val
3871     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3872       # Best one so far, save it but keep looking for a better one
3873       ac_cv_path_GREP="$ac_path_GREP"
3874       ac_path_GREP_max=$ac_count
3875     fi
3876     # 10*(2^10) chars as input seems more than enough
3877     test $ac_count -gt 10 && break
3878   done
3879   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880 esac
3881
3882       $ac_path_GREP_found && break 3
3883     done
3884   done
3885   done
3886 IFS=$as_save_IFS
3887   if test -z "$ac_cv_path_GREP"; then
3888     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3889   fi
3890 else
3891   ac_cv_path_GREP=$GREP
3892 fi
3893
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3896 $as_echo "$ac_cv_path_GREP" >&6; }
3897  GREP="$ac_cv_path_GREP"
3898
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3901 $as_echo_n "checking for egrep... " >&6; }
3902 if ${ac_cv_path_EGREP+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906    then ac_cv_path_EGREP="$GREP -E"
3907    else
3908      if test -z "$EGREP"; then
3909   ac_path_EGREP_found=false
3910   # Loop through the user's path and test for each of PROGNAME-LIST
3911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916     for ac_prog in egrep; do
3917     for ac_exec_ext in '' $ac_executable_extensions; do
3918       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3919       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3920 # Check for GNU ac_path_EGREP and select it if it is found.
3921   # Check for GNU $ac_path_EGREP
3922 case `"$ac_path_EGREP" --version 2>&1` in
3923 *GNU*)
3924   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3925 *)
3926   ac_count=0
3927   $as_echo_n 0123456789 >"conftest.in"
3928   while :
3929   do
3930     cat "conftest.in" "conftest.in" >"conftest.tmp"
3931     mv "conftest.tmp" "conftest.in"
3932     cp "conftest.in" "conftest.nl"
3933     $as_echo 'EGREP' >> "conftest.nl"
3934     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936     as_fn_arith $ac_count + 1 && ac_count=$as_val
3937     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3938       # Best one so far, save it but keep looking for a better one
3939       ac_cv_path_EGREP="$ac_path_EGREP"
3940       ac_path_EGREP_max=$ac_count
3941     fi
3942     # 10*(2^10) chars as input seems more than enough
3943     test $ac_count -gt 10 && break
3944   done
3945   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946 esac
3947
3948       $ac_path_EGREP_found && break 3
3949     done
3950   done
3951   done
3952 IFS=$as_save_IFS
3953   if test -z "$ac_cv_path_EGREP"; then
3954     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3955   fi
3956 else
3957   ac_cv_path_EGREP=$EGREP
3958 fi
3959
3960    fi
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3963 $as_echo "$ac_cv_path_EGREP" >&6; }
3964  EGREP="$ac_cv_path_EGREP"
3965
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3968 $as_echo_n "checking for fgrep... " >&6; }
3969 if ${ac_cv_path_FGREP+:} false; then :
3970   $as_echo_n "(cached) " >&6
3971 else
3972   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3973    then ac_cv_path_FGREP="$GREP -F"
3974    else
3975      if test -z "$FGREP"; then
3976   ac_path_FGREP_found=false
3977   # Loop through the user's path and test for each of PROGNAME-LIST
3978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983     for ac_prog in fgrep; do
3984     for ac_exec_ext in '' $ac_executable_extensions; do
3985       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3986       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3987 # Check for GNU ac_path_FGREP and select it if it is found.
3988   # Check for GNU $ac_path_FGREP
3989 case `"$ac_path_FGREP" --version 2>&1` in
3990 *GNU*)
3991   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3992 *)
3993   ac_count=0
3994   $as_echo_n 0123456789 >"conftest.in"
3995   while :
3996   do
3997     cat "conftest.in" "conftest.in" >"conftest.tmp"
3998     mv "conftest.tmp" "conftest.in"
3999     cp "conftest.in" "conftest.nl"
4000     $as_echo 'FGREP' >> "conftest.nl"
4001     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003     as_fn_arith $ac_count + 1 && ac_count=$as_val
4004     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4005       # Best one so far, save it but keep looking for a better one
4006       ac_cv_path_FGREP="$ac_path_FGREP"
4007       ac_path_FGREP_max=$ac_count
4008     fi
4009     # 10*(2^10) chars as input seems more than enough
4010     test $ac_count -gt 10 && break
4011   done
4012   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 esac
4014
4015       $ac_path_FGREP_found && break 3
4016     done
4017   done
4018   done
4019 IFS=$as_save_IFS
4020   if test -z "$ac_cv_path_FGREP"; then
4021     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4022   fi
4023 else
4024   ac_cv_path_FGREP=$FGREP
4025 fi
4026
4027    fi
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4030 $as_echo "$ac_cv_path_FGREP" >&6; }
4031  FGREP="$ac_cv_path_FGREP"
4032
4033
4034 test -z "$GREP" && GREP=grep
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054 # Check whether --with-gnu-ld was given.
4055 if test "${with_gnu_ld+set}" = set; then :
4056   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4057 else
4058   with_gnu_ld=no
4059 fi
4060
4061 ac_prog=ld
4062 if test "$GCC" = yes; then
4063   # Check if gcc -print-prog-name=ld gives a path.
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4065 $as_echo_n "checking for ld used by $CC... " >&6; }
4066   case $host in
4067   *-*-mingw*)
4068     # gcc leaves a trailing carriage return which upsets mingw
4069     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4070   *)
4071     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4072   esac
4073   case $ac_prog in
4074     # Accept absolute paths.
4075     [\\/]* | ?:[\\/]*)
4076       re_direlt='/[^/][^/]*/\.\./'
4077       # Canonicalize the pathname of ld
4078       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4079       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4080         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4081       done
4082       test -z "$LD" && LD="$ac_prog"
4083       ;;
4084   "")
4085     # If it fails, then pretend we aren't using GCC.
4086     ac_prog=ld
4087     ;;
4088   *)
4089     # If it is relative, then search for the first ld in PATH.
4090     with_gnu_ld=unknown
4091     ;;
4092   esac
4093 elif test "$with_gnu_ld" = yes; then
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4095 $as_echo_n "checking for GNU ld... " >&6; }
4096 else
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4098 $as_echo_n "checking for non-GNU ld... " >&6; }
4099 fi
4100 if ${lt_cv_path_LD+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if test -z "$LD"; then
4104   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4105   for ac_dir in $PATH; do
4106     IFS="$lt_save_ifs"
4107     test -z "$ac_dir" && ac_dir=.
4108     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4109       lt_cv_path_LD="$ac_dir/$ac_prog"
4110       # Check to see if the program is GNU ld.  I'd rather use --version,
4111       # but apparently some variants of GNU ld only accept -v.
4112       # Break only if it was the GNU/non-GNU ld that we prefer.
4113       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4114       *GNU* | *'with BFD'*)
4115         test "$with_gnu_ld" != no && break
4116         ;;
4117       *)
4118         test "$with_gnu_ld" != yes && break
4119         ;;
4120       esac
4121     fi
4122   done
4123   IFS="$lt_save_ifs"
4124 else
4125   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4126 fi
4127 fi
4128
4129 LD="$lt_cv_path_LD"
4130 if test -n "$LD"; then
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4132 $as_echo "$LD" >&6; }
4133 else
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136 fi
4137 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4140 if ${lt_cv_prog_gnu_ld+:} false; then :
4141   $as_echo_n "(cached) " >&6
4142 else
4143   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4144 case `$LD -v 2>&1 </dev/null` in
4145 *GNU* | *'with BFD'*)
4146   lt_cv_prog_gnu_ld=yes
4147   ;;
4148 *)
4149   lt_cv_prog_gnu_ld=no
4150   ;;
4151 esac
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4154 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4155 with_gnu_ld=$lt_cv_prog_gnu_ld
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4166 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4167 if ${lt_cv_path_NM+:} false; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   if test -n "$NM"; then
4171   # Let the user override the test.
4172   lt_cv_path_NM="$NM"
4173 else
4174   lt_nm_to_check="${ac_tool_prefix}nm"
4175   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4176     lt_nm_to_check="$lt_nm_to_check nm"
4177   fi
4178   for lt_tmp_nm in $lt_nm_to_check; do
4179     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4180     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4181       IFS="$lt_save_ifs"
4182       test -z "$ac_dir" && ac_dir=.
4183       tmp_nm="$ac_dir/$lt_tmp_nm"
4184       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4185         # Check to see if the nm accepts a BSD-compat flag.
4186         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4187         #   nm: unknown option "B" ignored
4188         # Tru64's nm complains that /dev/null is an invalid object file
4189         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4190         */dev/null* | *'Invalid file or object type'*)
4191           lt_cv_path_NM="$tmp_nm -B"
4192           break
4193           ;;
4194         *)
4195           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4196           */dev/null*)
4197             lt_cv_path_NM="$tmp_nm -p"
4198             break
4199             ;;
4200           *)
4201             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4202             continue # so that we can try to find one that supports BSD flags
4203             ;;
4204           esac
4205           ;;
4206         esac
4207       fi
4208     done
4209     IFS="$lt_save_ifs"
4210   done
4211   : ${lt_cv_path_NM=no}
4212 fi
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4215 $as_echo "$lt_cv_path_NM" >&6; }
4216 if test "$lt_cv_path_NM" != "no"; then
4217   NM="$lt_cv_path_NM"
4218 else
4219   # Didn't find any BSD compatible name lister, look for dumpbin.
4220   if test -n "$DUMPBIN"; then :
4221     # Let the user override the test.
4222   else
4223     if test -n "$ac_tool_prefix"; then
4224   for ac_prog in dumpbin "link -dump"
4225   do
4226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_DUMPBIN+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -n "$DUMPBIN"; then
4234   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248   done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 DUMPBIN=$ac_cv_prog_DUMPBIN
4254 if test -n "$DUMPBIN"; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4256 $as_echo "$DUMPBIN" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262
4263     test -n "$DUMPBIN" && break
4264   done
4265 fi
4266 if test -z "$DUMPBIN"; then
4267   ac_ct_DUMPBIN=$DUMPBIN
4268   for ac_prog in dumpbin "link -dump"
4269 do
4270   # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   if test -n "$ac_ct_DUMPBIN"; then
4278   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285     for ac_exec_ext in '' $ac_executable_extensions; do
4286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292   done
4293 IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4298 if test -n "$ac_ct_DUMPBIN"; then
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4300 $as_echo "$ac_ct_DUMPBIN" >&6; }
4301 else
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306
4307   test -n "$ac_ct_DUMPBIN" && break
4308 done
4309
4310   if test "x$ac_ct_DUMPBIN" = x; then
4311     DUMPBIN=":"
4312   else
4313     case $cross_compiling:$ac_tool_warned in
4314 yes:)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319     DUMPBIN=$ac_ct_DUMPBIN
4320   fi
4321 fi
4322
4323     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4324     *COFF*)
4325       DUMPBIN="$DUMPBIN -symbols"
4326       ;;
4327     *)
4328       DUMPBIN=:
4329       ;;
4330     esac
4331   fi
4332
4333   if test "$DUMPBIN" != ":"; then
4334     NM="$DUMPBIN"
4335   fi
4336 fi
4337 test -z "$NM" && NM=nm
4338
4339
4340
4341
4342
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4345 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4346 if ${lt_cv_nm_interface+:} false; then :
4347   $as_echo_n "(cached) " >&6
4348 else
4349   lt_cv_nm_interface="BSD nm"
4350   echo "int some_variable = 0;" > conftest.$ac_ext
4351   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4352   (eval "$ac_compile" 2>conftest.err)
4353   cat conftest.err >&5
4354   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4355   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4356   cat conftest.err >&5
4357   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4358   cat conftest.out >&5
4359   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4360     lt_cv_nm_interface="MS dumpbin"
4361   fi
4362   rm -f conftest*
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4365 $as_echo "$lt_cv_nm_interface" >&6; }
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4368 $as_echo_n "checking whether ln -s works... " >&6; }
4369 LN_S=$as_ln_s
4370 if test "$LN_S" = "ln -s"; then
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4373 else
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4375 $as_echo "no, using $LN_S" >&6; }
4376 fi
4377
4378 # find the maximum length of command line arguments
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4380 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4381 if ${lt_cv_sys_max_cmd_len+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384     i=0
4385   teststring="ABCD"
4386
4387   case $build_os in
4388   msdosdjgpp*)
4389     # On DJGPP, this test can blow up pretty badly due to problems in libc
4390     # (any single argument exceeding 2000 bytes causes a buffer overrun
4391     # during glob expansion).  Even if it were fixed, the result of this
4392     # check would be larger than it should be.
4393     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4394     ;;
4395
4396   gnu*)
4397     # Under GNU Hurd, this test is not required because there is
4398     # no limit to the length of command line arguments.
4399     # Libtool will interpret -1 as no limit whatsoever
4400     lt_cv_sys_max_cmd_len=-1;
4401     ;;
4402
4403   cygwin* | mingw* | cegcc*)
4404     # On Win9x/ME, this test blows up -- it succeeds, but takes
4405     # about 5 minutes as the teststring grows exponentially.
4406     # Worse, since 9x/ME are not pre-emptively multitasking,
4407     # you end up with a "frozen" computer, even though with patience
4408     # the test eventually succeeds (with a max line length of 256k).
4409     # Instead, let's just punt: use the minimum linelength reported by
4410     # all of the supported platforms: 8192 (on NT/2K/XP).
4411     lt_cv_sys_max_cmd_len=8192;
4412     ;;
4413
4414   mint*)
4415     # On MiNT this can take a long time and run out of memory.
4416     lt_cv_sys_max_cmd_len=8192;
4417     ;;
4418
4419   amigaos*)
4420     # On AmigaOS with pdksh, this test takes hours, literally.
4421     # So we just punt and use a minimum line length of 8192.
4422     lt_cv_sys_max_cmd_len=8192;
4423     ;;
4424
4425   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4426     # This has been around since 386BSD, at least.  Likely further.
4427     if test -x /sbin/sysctl; then
4428       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4429     elif test -x /usr/sbin/sysctl; then
4430       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4431     else
4432       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4433     fi
4434     # And add a safety zone
4435     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4436     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4437     ;;
4438
4439   interix*)
4440     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4441     lt_cv_sys_max_cmd_len=196608
4442     ;;
4443
4444   os2*)
4445     # The test takes a long time on OS/2.
4446     lt_cv_sys_max_cmd_len=8192
4447     ;;
4448
4449   osf*)
4450     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4451     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4452     # nice to cause kernel panics so lets avoid the loop below.
4453     # First set a reasonable default.
4454     lt_cv_sys_max_cmd_len=16384
4455     #
4456     if test -x /sbin/sysconfig; then
4457       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4458         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4459       esac
4460     fi
4461     ;;
4462   sco3.2v5*)
4463     lt_cv_sys_max_cmd_len=102400
4464     ;;
4465   sysv5* | sco5v6* | sysv4.2uw2*)
4466     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4467     if test -n "$kargmax"; then
4468       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4469     else
4470       lt_cv_sys_max_cmd_len=32768
4471     fi
4472     ;;
4473   *)
4474     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4475     if test -n "$lt_cv_sys_max_cmd_len"; then
4476       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4477       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4478     else
4479       # Make teststring a little bigger before we do anything with it.
4480       # a 1K string should be a reasonable start.
4481       for i in 1 2 3 4 5 6 7 8 ; do
4482         teststring=$teststring$teststring
4483       done
4484       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4485       # If test is not a shell built-in, we'll probably end up computing a
4486       # maximum length that is only half of the actual maximum length, but
4487       # we can't tell.
4488       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4489                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4490               test $i != 17 # 1/2 MB should be enough
4491       do
4492         i=`expr $i + 1`
4493         teststring=$teststring$teststring
4494       done
4495       # Only check the string length outside the loop.
4496       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4497       teststring=
4498       # Add a significant safety factor because C++ compilers can tack on
4499       # massive amounts of additional arguments before passing them to the
4500       # linker.  It appears as though 1/2 is a usable value.
4501       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4502     fi
4503     ;;
4504   esac
4505
4506 fi
4507
4508 if test -n $lt_cv_sys_max_cmd_len ; then
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4510 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4511 else
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4513 $as_echo "none" >&6; }
4514 fi
4515 max_cmd_len=$lt_cv_sys_max_cmd_len
4516
4517
4518
4519
4520
4521
4522 : ${CP="cp -f"}
4523 : ${MV="mv -f"}
4524 : ${RM="rm -f"}
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4527 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4528 # Try some XSI features
4529 xsi_shell=no
4530 ( _lt_dummy="a/b/c"
4531   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4532       = c,a/b,b/c, \
4533     && eval 'test $(( 1 + 1 )) -eq 2 \
4534     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4535   && xsi_shell=yes
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4537 $as_echo "$xsi_shell" >&6; }
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4541 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4542 lt_shell_append=no
4543 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4544     >/dev/null 2>&1 \
4545   && lt_shell_append=yes
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4547 $as_echo "$lt_shell_append" >&6; }
4548
4549
4550 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4551   lt_unset=unset
4552 else
4553   lt_unset=false
4554 fi
4555
4556
4557
4558
4559
4560 # test EBCDIC or ASCII
4561 case `echo X|tr X '\101'` in
4562  A) # ASCII based system
4563     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4564   lt_SP2NL='tr \040 \012'
4565   lt_NL2SP='tr \015\012 \040\040'
4566   ;;
4567  *) # EBCDIC based system
4568   lt_SP2NL='tr \100 \n'
4569   lt_NL2SP='tr \r\n \100\100'
4570   ;;
4571 esac
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4582 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4583 if ${lt_cv_to_host_file_cmd+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   case $host in
4587   *-*-mingw* )
4588     case $build in
4589       *-*-mingw* ) # actually msys
4590         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4591         ;;
4592       *-*-cygwin* )
4593         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4594         ;;
4595       * ) # otherwise, assume *nix
4596         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4597         ;;
4598     esac
4599     ;;
4600   *-*-cygwin* )
4601     case $build in
4602       *-*-mingw* ) # actually msys
4603         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4604         ;;
4605       *-*-cygwin* )
4606         lt_cv_to_host_file_cmd=func_convert_file_noop
4607         ;;
4608       * ) # otherwise, assume *nix
4609         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4610         ;;
4611     esac
4612     ;;
4613   * ) # unhandled hosts (and "normal" native builds)
4614     lt_cv_to_host_file_cmd=func_convert_file_noop
4615     ;;
4616 esac
4617
4618 fi
4619
4620 to_host_file_cmd=$lt_cv_to_host_file_cmd
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4622 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4623
4624
4625
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4629 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4630 if ${lt_cv_to_tool_file_cmd+:} false; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   #assume ordinary cross tools, or native build.
4634 lt_cv_to_tool_file_cmd=func_convert_file_noop
4635 case $host in
4636   *-*-mingw* )
4637     case $build in
4638       *-*-mingw* ) # actually msys
4639         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4640         ;;
4641     esac
4642     ;;
4643 esac
4644
4645 fi
4646
4647 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4649 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4650
4651
4652
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4656 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4657 if ${lt_cv_ld_reload_flag+:} false; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   lt_cv_ld_reload_flag='-r'
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4663 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4664 reload_flag=$lt_cv_ld_reload_flag
4665 case $reload_flag in
4666 "" | " "*) ;;
4667 *) reload_flag=" $reload_flag" ;;
4668 esac
4669 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4670 case $host_os in
4671   cygwin* | mingw* | pw32* | cegcc*)
4672     if test "$GCC" != yes; then
4673       reload_cmds=false
4674     fi
4675     ;;
4676   darwin*)
4677     if test "$GCC" = yes; then
4678       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4679     else
4680       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4681     fi
4682     ;;
4683 esac
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 if test -n "$ac_tool_prefix"; then
4694   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4695 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if ${ac_cv_prog_OBJDUMP+:} false; then :
4699   $as_echo_n "(cached) " >&6
4700 else
4701   if test -n "$OBJDUMP"; then
4702   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707   IFS=$as_save_IFS
4708   test -z "$as_dir" && as_dir=.
4709     for ac_exec_ext in '' $ac_executable_extensions; do
4710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713     break 2
4714   fi
4715 done
4716   done
4717 IFS=$as_save_IFS
4718
4719 fi
4720 fi
4721 OBJDUMP=$ac_cv_prog_OBJDUMP
4722 if test -n "$OBJDUMP"; then
4723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4724 $as_echo "$OBJDUMP" >&6; }
4725 else
4726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 fi
4729
4730
4731 fi
4732 if test -z "$ac_cv_prog_OBJDUMP"; then
4733   ac_ct_OBJDUMP=$OBJDUMP
4734   # Extract the first word of "objdump", so it can be a program name with args.
4735 set dummy objdump; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -n "$ac_ct_OBJDUMP"; then
4742   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_exec_ext in '' $ac_executable_extensions; do
4750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756   done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4762 if test -n "$ac_ct_OBJDUMP"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4764 $as_echo "$ac_ct_OBJDUMP" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770   if test "x$ac_ct_OBJDUMP" = x; then
4771     OBJDUMP="false"
4772   else
4773     case $cross_compiling:$ac_tool_warned in
4774 yes:)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4778 esac
4779     OBJDUMP=$ac_ct_OBJDUMP
4780   fi
4781 else
4782   OBJDUMP="$ac_cv_prog_OBJDUMP"
4783 fi
4784
4785 test -z "$OBJDUMP" && OBJDUMP=objdump
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4796 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4797 if ${lt_cv_deplibs_check_method+:} false; then :
4798   $as_echo_n "(cached) " >&6
4799 else
4800   lt_cv_file_magic_cmd='$MAGIC_CMD'
4801 lt_cv_file_magic_test_file=
4802 lt_cv_deplibs_check_method='unknown'
4803 # Need to set the preceding variable on all platforms that support
4804 # interlibrary dependencies.
4805 # 'none' -- dependencies not supported.
4806 # `unknown' -- same as none, but documents that we really don't know.
4807 # 'pass_all' -- all dependencies passed with no checks.
4808 # 'test_compile' -- check by making test program.
4809 # 'file_magic [[regex]]' -- check by looking for files in library path
4810 # which responds to the $file_magic_cmd with a given extended regex.
4811 # If you have `file' or equivalent on your system and you're not sure
4812 # whether `pass_all' will *always* work, you probably want this one.
4813
4814 case $host_os in
4815 aix[4-9]*)
4816   lt_cv_deplibs_check_method=pass_all
4817   ;;
4818
4819 beos*)
4820   lt_cv_deplibs_check_method=pass_all
4821   ;;
4822
4823 bsdi[45]*)
4824   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4825   lt_cv_file_magic_cmd='/usr/bin/file -L'
4826   lt_cv_file_magic_test_file=/shlib/libc.so
4827   ;;
4828
4829 cygwin*)
4830   # func_win32_libid is a shell function defined in ltmain.sh
4831   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4832   lt_cv_file_magic_cmd='func_win32_libid'
4833   ;;
4834
4835 mingw* | pw32*)
4836   # Base MSYS/MinGW do not provide the 'file' command needed by
4837   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4838   # unless we find 'file', for example because we are cross-compiling.
4839   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4840   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4841     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4842     lt_cv_file_magic_cmd='func_win32_libid'
4843   else
4844     # Keep this pattern in sync with the one in func_win32_libid.
4845     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4846     lt_cv_file_magic_cmd='$OBJDUMP -f'
4847   fi
4848   ;;
4849
4850 cegcc*)
4851   # use the weaker test based on 'objdump'. See mingw*.
4852   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4853   lt_cv_file_magic_cmd='$OBJDUMP -f'
4854   ;;
4855
4856 darwin* | rhapsody*)
4857   lt_cv_deplibs_check_method=pass_all
4858   ;;
4859
4860 freebsd* | dragonfly*)
4861   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4862     case $host_cpu in
4863     i*86 )
4864       # Not sure whether the presence of OpenBSD here was a mistake.
4865       # Let's accept both of them until this is cleared up.
4866       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4867       lt_cv_file_magic_cmd=/usr/bin/file
4868       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4869       ;;
4870     esac
4871   else
4872     lt_cv_deplibs_check_method=pass_all
4873   fi
4874   ;;
4875
4876 gnu*)
4877   lt_cv_deplibs_check_method=pass_all
4878   ;;
4879
4880 haiku*)
4881   lt_cv_deplibs_check_method=pass_all
4882   ;;
4883
4884 hpux10.20* | hpux11*)
4885   lt_cv_file_magic_cmd=/usr/bin/file
4886   case $host_cpu in
4887   ia64*)
4888     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4889     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4890     ;;
4891   hppa*64*)
4892     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]'
4893     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4894     ;;
4895   *)
4896     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4897     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4898     ;;
4899   esac
4900   ;;
4901
4902 interix[3-9]*)
4903   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4904   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4905   ;;
4906
4907 irix5* | irix6* | nonstopux*)
4908   case $LD in
4909   *-32|*"-32 ") libmagic=32-bit;;
4910   *-n32|*"-n32 ") libmagic=N32;;
4911   *-64|*"-64 ") libmagic=64-bit;;
4912   *) libmagic=never-match;;
4913   esac
4914   lt_cv_deplibs_check_method=pass_all
4915   ;;
4916
4917 # This must be glibc/ELF.
4918 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4919   lt_cv_deplibs_check_method=pass_all
4920   ;;
4921
4922 netbsd*)
4923   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4924     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4925   else
4926     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4927   fi
4928   ;;
4929
4930 newos6*)
4931   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4932   lt_cv_file_magic_cmd=/usr/bin/file
4933   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4934   ;;
4935
4936 *nto* | *qnx*)
4937   lt_cv_deplibs_check_method=pass_all
4938   ;;
4939
4940 openbsd*)
4941   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4942     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4943   else
4944     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4945   fi
4946   ;;
4947
4948 osf3* | osf4* | osf5*)
4949   lt_cv_deplibs_check_method=pass_all
4950   ;;
4951
4952 rdos*)
4953   lt_cv_deplibs_check_method=pass_all
4954   ;;
4955
4956 solaris*)
4957   lt_cv_deplibs_check_method=pass_all
4958   ;;
4959
4960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4961   lt_cv_deplibs_check_method=pass_all
4962   ;;
4963
4964 sysv4 | sysv4.3*)
4965   case $host_vendor in
4966   motorola)
4967     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]'
4968     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4969     ;;
4970   ncr)
4971     lt_cv_deplibs_check_method=pass_all
4972     ;;
4973   sequent)
4974     lt_cv_file_magic_cmd='/bin/file'
4975     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4976     ;;
4977   sni)
4978     lt_cv_file_magic_cmd='/bin/file'
4979     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4980     lt_cv_file_magic_test_file=/lib/libc.so
4981     ;;
4982   siemens)
4983     lt_cv_deplibs_check_method=pass_all
4984     ;;
4985   pc)
4986     lt_cv_deplibs_check_method=pass_all
4987     ;;
4988   esac
4989   ;;
4990
4991 tpf*)
4992   lt_cv_deplibs_check_method=pass_all
4993   ;;
4994 esac
4995
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4998 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4999
5000 file_magic_glob=
5001 want_nocaseglob=no
5002 if test "$build" = "$host"; then
5003   case $host_os in
5004   mingw* | pw32*)
5005     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5006       want_nocaseglob=yes
5007     else
5008       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5009     fi
5010     ;;
5011   esac
5012 fi
5013
5014 file_magic_cmd=$lt_cv_file_magic_cmd
5015 deplibs_check_method=$lt_cv_deplibs_check_method
5016 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039 if test -n "$ac_tool_prefix"; then
5040   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_DLLTOOL+:} false; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if test -n "$DLLTOOL"; then
5048   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055     for ac_exec_ext in '' $ac_executable_extensions; do
5056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059     break 2
5060   fi
5061 done
5062   done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 DLLTOOL=$ac_cv_prog_DLLTOOL
5068 if test -n "$DLLTOOL"; then
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5070 $as_echo "$DLLTOOL" >&6; }
5071 else
5072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077 fi
5078 if test -z "$ac_cv_prog_DLLTOOL"; then
5079   ac_ct_DLLTOOL=$DLLTOOL
5080   # Extract the first word of "dlltool", so it can be a program name with args.
5081 set dummy dlltool; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   if test -n "$ac_ct_DLLTOOL"; then
5088   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095     for ac_exec_ext in '' $ac_executable_extensions; do
5096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102   done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5108 if test -n "$ac_ct_DLLTOOL"; then
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5110 $as_echo "$ac_ct_DLLTOOL" >&6; }
5111 else
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116   if test "x$ac_ct_DLLTOOL" = x; then
5117     DLLTOOL="false"
5118   else
5119     case $cross_compiling:$ac_tool_warned in
5120 yes:)
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5124 esac
5125     DLLTOOL=$ac_ct_DLLTOOL
5126   fi
5127 else
5128   DLLTOOL="$ac_cv_prog_DLLTOOL"
5129 fi
5130
5131 test -z "$DLLTOOL" && DLLTOOL=dlltool
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5143 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5144 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   lt_cv_sharedlib_from_linklib_cmd='unknown'
5148
5149 case $host_os in
5150 cygwin* | mingw* | pw32* | cegcc*)
5151   # two different shell functions defined in ltmain.sh
5152   # decide which to use based on capabilities of $DLLTOOL
5153   case `$DLLTOOL --help 2>&1` in
5154   *--identify-strict*)
5155     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5156     ;;
5157   *)
5158     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5159     ;;
5160   esac
5161   ;;
5162 *)
5163   # fallback: assume linklib IS sharedlib
5164   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5165   ;;
5166 esac
5167
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5170 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5171 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5172 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5173
5174
5175
5176
5177
5178
5179
5180
5181 if test -n "$ac_tool_prefix"; then
5182   for ac_prog in ar
5183   do
5184     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_AR+:} false; then :
5189   $as_echo_n "(cached) " >&6
5190 else
5191   if test -n "$AR"; then
5192   ac_cv_prog_AR="$AR" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199     for ac_exec_ext in '' $ac_executable_extensions; do
5200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203     break 2
5204   fi
5205 done
5206   done
5207 IFS=$as_save_IFS
5208
5209 fi
5210 fi
5211 AR=$ac_cv_prog_AR
5212 if test -n "$AR"; then
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5214 $as_echo "$AR" >&6; }
5215 else
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220
5221     test -n "$AR" && break
5222   done
5223 fi
5224 if test -z "$AR"; then
5225   ac_ct_AR=$AR
5226   for ac_prog in ar
5227 do
5228   # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   if test -n "$ac_ct_AR"; then
5236   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243     for ac_exec_ext in '' $ac_executable_extensions; do
5244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245     ac_cv_prog_ac_ct_AR="$ac_prog"
5246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250   done
5251 IFS=$as_save_IFS
5252
5253 fi
5254 fi
5255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5256 if test -n "$ac_ct_AR"; then
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5258 $as_echo "$ac_ct_AR" >&6; }
5259 else
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5262 fi
5263
5264
5265   test -n "$ac_ct_AR" && break
5266 done
5267
5268   if test "x$ac_ct_AR" = x; then
5269     AR="false"
5270   else
5271     case $cross_compiling:$ac_tool_warned in
5272 yes:)
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275 ac_tool_warned=yes ;;
5276 esac
5277     AR=$ac_ct_AR
5278   fi
5279 fi
5280
5281 : ${AR=ar}
5282 : ${AR_FLAGS=cru}
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5295 $as_echo_n "checking for archiver @FILE support... " >&6; }
5296 if ${lt_cv_ar_at_file+:} false; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   lt_cv_ar_at_file=no
5300    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h.  */
5302
5303 int
5304 main ()
5305 {
5306
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312   echo conftest.$ac_objext > conftest.lst
5313       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5314       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5315   (eval $lt_ar_try) 2>&5
5316   ac_status=$?
5317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5318   test $ac_status = 0; }
5319       if test "$ac_status" -eq 0; then
5320         # Ensure the archiver fails upon bogus file names.
5321         rm -f conftest.$ac_objext libconftest.a
5322         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5323   (eval $lt_ar_try) 2>&5
5324   ac_status=$?
5325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326   test $ac_status = 0; }
5327         if test "$ac_status" -ne 0; then
5328           lt_cv_ar_at_file=@
5329         fi
5330       fi
5331       rm -f conftest.* libconftest.a
5332
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5338 $as_echo "$lt_cv_ar_at_file" >&6; }
5339
5340 if test "x$lt_cv_ar_at_file" = xno; then
5341   archiver_list_spec=
5342 else
5343   archiver_list_spec=$lt_cv_ar_at_file
5344 fi
5345
5346
5347
5348
5349
5350
5351
5352 if test -n "$ac_tool_prefix"; then
5353   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}strip; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_STRIP+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   if test -n "$STRIP"; then
5361   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 STRIP=$ac_cv_prog_STRIP
5381 if test -n "$STRIP"; then
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5383 $as_echo "$STRIP" >&6; }
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389
5390 fi
5391 if test -z "$ac_cv_prog_STRIP"; then
5392   ac_ct_STRIP=$STRIP
5393   # Extract the first word of "strip", so it can be a program name with args.
5394 set dummy strip; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   if test -n "$ac_ct_STRIP"; then
5401   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_exec_ext in '' $ac_executable_extensions; do
5409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410     ac_cv_prog_ac_ct_STRIP="strip"
5411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5421 if test -n "$ac_ct_STRIP"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5423 $as_echo "$ac_ct_STRIP" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429   if test "x$ac_ct_STRIP" = x; then
5430     STRIP=":"
5431   else
5432     case $cross_compiling:$ac_tool_warned in
5433 yes:)
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436 ac_tool_warned=yes ;;
5437 esac
5438     STRIP=$ac_ct_STRIP
5439   fi
5440 else
5441   STRIP="$ac_cv_prog_STRIP"
5442 fi
5443
5444 test -z "$STRIP" && STRIP=:
5445
5446
5447
5448
5449
5450
5451 if test -n "$ac_tool_prefix"; then
5452   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_RANLIB+:} false; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   if test -n "$RANLIB"; then
5460   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 RANLIB=$ac_cv_prog_RANLIB
5480 if test -n "$RANLIB"; then
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5482 $as_echo "$RANLIB" >&6; }
5483 else
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488
5489 fi
5490 if test -z "$ac_cv_prog_RANLIB"; then
5491   ac_ct_RANLIB=$RANLIB
5492   # Extract the first word of "ranlib", so it can be a program name with args.
5493 set dummy ranlib; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   if test -n "$ac_ct_RANLIB"; then
5500   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507     for ac_exec_ext in '' $ac_executable_extensions; do
5508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509     ac_cv_prog_ac_ct_RANLIB="ranlib"
5510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511     break 2
5512   fi
5513 done
5514   done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5520 if test -n "$ac_ct_RANLIB"; then
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5522 $as_echo "$ac_ct_RANLIB" >&6; }
5523 else
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528   if test "x$ac_ct_RANLIB" = x; then
5529     RANLIB=":"
5530   else
5531     case $cross_compiling:$ac_tool_warned in
5532 yes:)
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535 ac_tool_warned=yes ;;
5536 esac
5537     RANLIB=$ac_ct_RANLIB
5538   fi
5539 else
5540   RANLIB="$ac_cv_prog_RANLIB"
5541 fi
5542
5543 test -z "$RANLIB" && RANLIB=:
5544
5545
5546
5547
5548
5549
5550 # Determine commands to create old-style static archives.
5551 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5552 old_postinstall_cmds='chmod 644 $oldlib'
5553 old_postuninstall_cmds=
5554
5555 if test -n "$RANLIB"; then
5556   case $host_os in
5557   openbsd*)
5558     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5559     ;;
5560   *)
5561     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5562     ;;
5563   esac
5564   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5565 fi
5566
5567 case $host_os in
5568   darwin*)
5569     lock_old_archive_extraction=yes ;;
5570   *)
5571     lock_old_archive_extraction=no ;;
5572 esac
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 # If no C compiler was specified, use CC.
5613 LTCC=${LTCC-"$CC"}
5614
5615 # If no C compiler flags were specified, use CFLAGS.
5616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5617
5618 # Allow CC to be a program name with arguments.
5619 compiler=$CC
5620
5621
5622 # Check for command to grab the raw symbol name followed by C symbol from nm.
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5624 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5625 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628
5629 # These are sane defaults that work on at least a few old systems.
5630 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5631
5632 # Character class describing NM global symbol codes.
5633 symcode='[BCDEGRST]'
5634
5635 # Regexp to match symbols that can be accessed directly from C.
5636 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5637
5638 # Define system-specific variables.
5639 case $host_os in
5640 aix*)
5641   symcode='[BCDT]'
5642   ;;
5643 cygwin* | mingw* | pw32* | cegcc*)
5644   symcode='[ABCDGISTW]'
5645   ;;
5646 hpux*)
5647   if test "$host_cpu" = ia64; then
5648     symcode='[ABCDEGRST]'
5649   fi
5650   ;;
5651 irix* | nonstopux*)
5652   symcode='[BCDEGRST]'
5653   ;;
5654 osf*)
5655   symcode='[BCDEGQRST]'
5656   ;;
5657 solaris*)
5658   symcode='[BDRT]'
5659   ;;
5660 sco3.2v5*)
5661   symcode='[DT]'
5662   ;;
5663 sysv4.2uw2*)
5664   symcode='[DT]'
5665   ;;
5666 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5667   symcode='[ABDT]'
5668   ;;
5669 sysv4)
5670   symcode='[DFNSTU]'
5671   ;;
5672 esac
5673
5674 # If we're using GNU nm, then use its standard symbol codes.
5675 case `$NM -V 2>&1` in
5676 *GNU* | *'with BFD'*)
5677   symcode='[ABCDGIRSTW]' ;;
5678 esac
5679
5680 # Transform an extracted symbol line into a proper C declaration.
5681 # Some systems (esp. on ia64) link data and code symbols differently,
5682 # so use this general approach.
5683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5684
5685 # Transform an extracted symbol line into symbol name and symbol address
5686 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5687 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'"
5688
5689 # Handle CRLF in mingw tool chain
5690 opt_cr=
5691 case $build_os in
5692 mingw*)
5693   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5694   ;;
5695 esac
5696
5697 # Try without a prefix underscore, then with it.
5698 for ac_symprfx in "" "_"; do
5699
5700   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5701   symxfrm="\\1 $ac_symprfx\\2 \\2"
5702
5703   # Write the raw and C identifiers.
5704   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5705     # Fake it for dumpbin and say T for any non-static function
5706     # and D for any global variable.
5707     # Also find C++ and __fastcall symbols from MSVC++,
5708     # which start with @ or ?.
5709     lt_cv_sys_global_symbol_pipe="$AWK '"\
5710 "     {last_section=section; section=\$ 3};"\
5711 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5712 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5713 "     \$ 0!~/External *\|/{next};"\
5714 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5715 "     {if(hide[section]) next};"\
5716 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5717 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5718 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5719 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5720 "     ' prfx=^$ac_symprfx"
5721   else
5722     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5723   fi
5724   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5725
5726   # Check to see that the pipe works correctly.
5727   pipe_works=no
5728
5729   rm -f conftest*
5730   cat > conftest.$ac_ext <<_LT_EOF
5731 #ifdef __cplusplus
5732 extern "C" {
5733 #endif
5734 char nm_test_var;
5735 void nm_test_func(void);
5736 void nm_test_func(void){}
5737 #ifdef __cplusplus
5738 }
5739 #endif
5740 int main(){nm_test_var='a';nm_test_func();return(0);}
5741 _LT_EOF
5742
5743   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5744   (eval $ac_compile) 2>&5
5745   ac_status=$?
5746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747   test $ac_status = 0; }; then
5748     # Now try to grab the symbols.
5749     nlist=conftest.nm
5750     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5751   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5752   ac_status=$?
5753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5754   test $ac_status = 0; } && test -s "$nlist"; then
5755       # Try sorting and uniquifying the output.
5756       if sort "$nlist" | uniq > "$nlist"T; then
5757         mv -f "$nlist"T "$nlist"
5758       else
5759         rm -f "$nlist"T
5760       fi
5761
5762       # Make sure that we snagged all the symbols we need.
5763       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5764         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5765           cat <<_LT_EOF > conftest.$ac_ext
5766 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5767 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5768 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5769    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5770 # define LT_DLSYM_CONST
5771 #elif defined(__osf__)
5772 /* This system does not cope well with relocations in const data.  */
5773 # define LT_DLSYM_CONST
5774 #else
5775 # define LT_DLSYM_CONST const
5776 #endif
5777
5778 #ifdef __cplusplus
5779 extern "C" {
5780 #endif
5781
5782 _LT_EOF
5783           # Now generate the symbol file.
5784           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5785
5786           cat <<_LT_EOF >> conftest.$ac_ext
5787
5788 /* The mapping between symbol names and symbols.  */
5789 LT_DLSYM_CONST struct {
5790   const char *name;
5791   void       *address;
5792 }
5793 lt__PROGRAM__LTX_preloaded_symbols[] =
5794 {
5795   { "@PROGRAM@", (void *) 0 },
5796 _LT_EOF
5797           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5798           cat <<\_LT_EOF >> conftest.$ac_ext
5799   {0, (void *) 0}
5800 };
5801
5802 /* This works around a problem in FreeBSD linker */
5803 #ifdef FREEBSD_WORKAROUND
5804 static const void *lt_preloaded_setup() {
5805   return lt__PROGRAM__LTX_preloaded_symbols;
5806 }
5807 #endif
5808
5809 #ifdef __cplusplus
5810 }
5811 #endif
5812 _LT_EOF
5813           # Now try linking the two files.
5814           mv conftest.$ac_objext conftstm.$ac_objext
5815           lt_globsym_save_LIBS=$LIBS
5816           lt_globsym_save_CFLAGS=$CFLAGS
5817           LIBS="conftstm.$ac_objext"
5818           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5819           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5820   (eval $ac_link) 2>&5
5821   ac_status=$?
5822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5824             pipe_works=yes
5825           fi
5826           LIBS=$lt_globsym_save_LIBS
5827           CFLAGS=$lt_globsym_save_CFLAGS
5828         else
5829           echo "cannot find nm_test_func in $nlist" >&5
5830         fi
5831       else
5832         echo "cannot find nm_test_var in $nlist" >&5
5833       fi
5834     else
5835       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5836     fi
5837   else
5838     echo "$progname: failed program was:" >&5
5839     cat conftest.$ac_ext >&5
5840   fi
5841   rm -rf conftest* conftst*
5842
5843   # Do not use the global_symbol_pipe unless it works.
5844   if test "$pipe_works" = yes; then
5845     break
5846   else
5847     lt_cv_sys_global_symbol_pipe=
5848   fi
5849 done
5850
5851 fi
5852
5853 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5854   lt_cv_sys_global_symbol_to_cdecl=
5855 fi
5856 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5858 $as_echo "failed" >&6; }
5859 else
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5861 $as_echo "ok" >&6; }
5862 fi
5863
5864 # Response file support.
5865 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5866   nm_file_list_spec='@'
5867 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5868   nm_file_list_spec='@'
5869 fi
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5898 $as_echo_n "checking for sysroot... " >&6; }
5899
5900 # Check whether --with-sysroot was given.
5901 if test "${with_sysroot+set}" = set; then :
5902   withval=$with_sysroot;
5903 else
5904   with_sysroot=no
5905 fi
5906
5907
5908 lt_sysroot=
5909 case ${with_sysroot} in #(
5910  yes)
5911    if test "$GCC" = yes; then
5912      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5913    fi
5914    ;; #(
5915  /*)
5916    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5917    ;; #(
5918  no|'')
5919    ;; #(
5920  *)
5921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5922 $as_echo "${with_sysroot}" >&6; }
5923    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5924    ;;
5925 esac
5926
5927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5928 $as_echo "${lt_sysroot:-no}" >&6; }
5929
5930
5931
5932
5933
5934 # Check whether --enable-libtool-lock was given.
5935 if test "${enable_libtool_lock+set}" = set; then :
5936   enableval=$enable_libtool_lock;
5937 fi
5938
5939 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5940
5941 # Some flags need to be propagated to the compiler or linker for good
5942 # libtool support.
5943 case $host in
5944 ia64-*-hpux*)
5945   # Find out which ABI we are using.
5946   echo 'int i;' > conftest.$ac_ext
5947   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5948   (eval $ac_compile) 2>&5
5949   ac_status=$?
5950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5951   test $ac_status = 0; }; then
5952     case `/usr/bin/file conftest.$ac_objext` in
5953       *ELF-32*)
5954         HPUX_IA64_MODE="32"
5955         ;;
5956       *ELF-64*)
5957         HPUX_IA64_MODE="64"
5958         ;;
5959     esac
5960   fi
5961   rm -rf conftest*
5962   ;;
5963 *-*-irix6*)
5964   # Find out which ABI we are using.
5965   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5966   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5967   (eval $ac_compile) 2>&5
5968   ac_status=$?
5969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5970   test $ac_status = 0; }; then
5971     if test "$lt_cv_prog_gnu_ld" = yes; then
5972       case `/usr/bin/file conftest.$ac_objext` in
5973         *32-bit*)
5974           LD="${LD-ld} -melf32bsmip"
5975           ;;
5976         *N32*)
5977           LD="${LD-ld} -melf32bmipn32"
5978           ;;
5979         *64-bit*)
5980           LD="${LD-ld} -melf64bmip"
5981         ;;
5982       esac
5983     else
5984       case `/usr/bin/file conftest.$ac_objext` in
5985         *32-bit*)
5986           LD="${LD-ld} -32"
5987           ;;
5988         *N32*)
5989           LD="${LD-ld} -n32"
5990           ;;
5991         *64-bit*)
5992           LD="${LD-ld} -64"
5993           ;;
5994       esac
5995     fi
5996   fi
5997   rm -rf conftest*
5998   ;;
5999
6000 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6001 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6002   # Find out which ABI we are using.
6003   echo 'int i;' > conftest.$ac_ext
6004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6005   (eval $ac_compile) 2>&5
6006   ac_status=$?
6007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6008   test $ac_status = 0; }; then
6009     case `/usr/bin/file conftest.o` in
6010       *32-bit*)
6011         case $host in
6012           x86_64-*kfreebsd*-gnu)
6013             LD="${LD-ld} -m elf_i386_fbsd"
6014             ;;
6015           x86_64-*linux*)
6016             LD="${LD-ld} -m elf_i386"
6017             ;;
6018           ppc64-*linux*|powerpc64-*linux*)
6019             LD="${LD-ld} -m elf32ppclinux"
6020             ;;
6021           s390x-*linux*)
6022             LD="${LD-ld} -m elf_s390"
6023             ;;
6024           sparc64-*linux*)
6025             LD="${LD-ld} -m elf32_sparc"
6026             ;;
6027         esac
6028         ;;
6029       *64-bit*)
6030         case $host in
6031           x86_64-*kfreebsd*-gnu)
6032             LD="${LD-ld} -m elf_x86_64_fbsd"
6033             ;;
6034           x86_64-*linux*)
6035             LD="${LD-ld} -m elf_x86_64"
6036             ;;
6037           ppc*-*linux*|powerpc*-*linux*)
6038             LD="${LD-ld} -m elf64ppc"
6039             ;;
6040           s390*-*linux*|s390*-*tpf*)
6041             LD="${LD-ld} -m elf64_s390"
6042             ;;
6043           sparc*-*linux*)
6044             LD="${LD-ld} -m elf64_sparc"
6045             ;;
6046         esac
6047         ;;
6048     esac
6049   fi
6050   rm -rf conftest*
6051   ;;
6052
6053 *-*-sco3.2v5*)
6054   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6055   SAVE_CFLAGS="$CFLAGS"
6056   CFLAGS="$CFLAGS -belf"
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6058 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6059 if ${lt_cv_cc_needs_belf+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   ac_ext=c
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6067
6068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h.  */
6070
6071 int
6072 main ()
6073 {
6074
6075   ;
6076   return 0;
6077 }
6078 _ACEOF
6079 if ac_fn_c_try_link "$LINENO"; then :
6080   lt_cv_cc_needs_belf=yes
6081 else
6082   lt_cv_cc_needs_belf=no
6083 fi
6084 rm -f core conftest.err conftest.$ac_objext \
6085     conftest$ac_exeext conftest.$ac_ext
6086      ac_ext=c
6087 ac_cpp='$CPP $CPPFLAGS'
6088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6094 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6095   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6096     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6097     CFLAGS="$SAVE_CFLAGS"
6098   fi
6099   ;;
6100 *-*solaris*)
6101   # Find out which ABI we are using.
6102   echo 'int i;' > conftest.$ac_ext
6103   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6104   (eval $ac_compile) 2>&5
6105   ac_status=$?
6106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107   test $ac_status = 0; }; then
6108     case `/usr/bin/file conftest.o` in
6109     *64-bit*)
6110       case $lt_cv_prog_gnu_ld in
6111       yes*)
6112         case $host in
6113         i?86-*-solaris*)
6114           LD="${LD-ld} -m elf_x86_64"
6115           ;;
6116         sparc*-*-solaris*)
6117           LD="${LD-ld} -m elf64_sparc"
6118           ;;
6119         esac
6120         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6121         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6122           LD="${LD-ld}_sol2"
6123         fi
6124         ;;
6125       *)
6126         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6127           LD="${LD-ld} -64"
6128         fi
6129         ;;
6130       esac
6131       ;;
6132     esac
6133   fi
6134   rm -rf conftest*
6135   ;;
6136 esac
6137
6138 need_locks="$enable_libtool_lock"
6139
6140 if test -n "$ac_tool_prefix"; then
6141   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}mt; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   if test -n "$MANIFEST_TOOL"; then
6149   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6169 if test -n "$MANIFEST_TOOL"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6171 $as_echo "$MANIFEST_TOOL" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178 fi
6179 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6180   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6181   # Extract the first word of "mt", so it can be a program name with args.
6182 set dummy mt; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if test -n "$ac_ct_MANIFEST_TOOL"; then
6189   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203   done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6209 if test -n "$ac_ct_MANIFEST_TOOL"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6211 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6218     MANIFEST_TOOL=":"
6219   else
6220     case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6227   fi
6228 else
6229   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6230 fi
6231
6232 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6234 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6235 if ${lt_cv_path_mainfest_tool+:} false; then :
6236   $as_echo_n "(cached) " >&6
6237 else
6238   lt_cv_path_mainfest_tool=no
6239   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6240   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6241   cat conftest.err >&5
6242   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6243     lt_cv_path_mainfest_tool=yes
6244   fi
6245   rm -f conftest*
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6248 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6249 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6250   MANIFEST_TOOL=:
6251 fi
6252
6253
6254
6255
6256
6257
6258   case $host_os in
6259     rhapsody* | darwin*)
6260     if test -n "$ac_tool_prefix"; then
6261   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   if test -n "$DSYMUTIL"; then
6269   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274   IFS=$as_save_IFS
6275   test -z "$as_dir" && as_dir=.
6276     for ac_exec_ext in '' $ac_executable_extensions; do
6277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280     break 2
6281   fi
6282 done
6283   done
6284 IFS=$as_save_IFS
6285
6286 fi
6287 fi
6288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6289 if test -n "$DSYMUTIL"; then
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6291 $as_echo "$DSYMUTIL" >&6; }
6292 else
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6295 fi
6296
6297
6298 fi
6299 if test -z "$ac_cv_prog_DSYMUTIL"; then
6300   ac_ct_DSYMUTIL=$DSYMUTIL
6301   # Extract the first word of "dsymutil", so it can be a program name with args.
6302 set dummy dsymutil; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   if test -n "$ac_ct_DSYMUTIL"; then
6309   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316     for ac_exec_ext in '' $ac_executable_extensions; do
6317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323   done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6329 if test -n "$ac_ct_DSYMUTIL"; then
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6331 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6332 else
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337   if test "x$ac_ct_DSYMUTIL" = x; then
6338     DSYMUTIL=":"
6339   else
6340     case $cross_compiling:$ac_tool_warned in
6341 yes:)
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344 ac_tool_warned=yes ;;
6345 esac
6346     DSYMUTIL=$ac_ct_DSYMUTIL
6347   fi
6348 else
6349   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6350 fi
6351
6352     if test -n "$ac_tool_prefix"; then
6353   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_NMEDIT+:} false; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$NMEDIT"; then
6361   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 NMEDIT=$ac_cv_prog_NMEDIT
6381 if test -n "$NMEDIT"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6383 $as_echo "$NMEDIT" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390 fi
6391 if test -z "$ac_cv_prog_NMEDIT"; then
6392   ac_ct_NMEDIT=$NMEDIT
6393   # Extract the first word of "nmedit", so it can be a program name with args.
6394 set dummy nmedit; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   if test -n "$ac_ct_NMEDIT"; then
6401   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408     for ac_exec_ext in '' $ac_executable_extensions; do
6409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412     break 2
6413   fi
6414 done
6415   done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6421 if test -n "$ac_ct_NMEDIT"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6423 $as_echo "$ac_ct_NMEDIT" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429   if test "x$ac_ct_NMEDIT" = x; then
6430     NMEDIT=":"
6431   else
6432     case $cross_compiling:$ac_tool_warned in
6433 yes:)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436 ac_tool_warned=yes ;;
6437 esac
6438     NMEDIT=$ac_ct_NMEDIT
6439   fi
6440 else
6441   NMEDIT="$ac_cv_prog_NMEDIT"
6442 fi
6443
6444     if test -n "$ac_tool_prefix"; then
6445   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_LIPO+:} false; then :
6450   $as_echo_n "(cached) " >&6
6451 else
6452   if test -n "$LIPO"; then
6453   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467   done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 LIPO=$ac_cv_prog_LIPO
6473 if test -n "$LIPO"; then
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6475 $as_echo "$LIPO" >&6; }
6476 else
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481
6482 fi
6483 if test -z "$ac_cv_prog_LIPO"; then
6484   ac_ct_LIPO=$LIPO
6485   # Extract the first word of "lipo", so it can be a program name with args.
6486 set dummy lipo; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   if test -n "$ac_ct_LIPO"; then
6493   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500     for ac_exec_ext in '' $ac_executable_extensions; do
6501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502     ac_cv_prog_ac_ct_LIPO="lipo"
6503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507   done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6513 if test -n "$ac_ct_LIPO"; then
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6515 $as_echo "$ac_ct_LIPO" >&6; }
6516 else
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521   if test "x$ac_ct_LIPO" = x; then
6522     LIPO=":"
6523   else
6524     case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530     LIPO=$ac_ct_LIPO
6531   fi
6532 else
6533   LIPO="$ac_cv_prog_LIPO"
6534 fi
6535
6536     if test -n "$ac_tool_prefix"; then
6537   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6538 set dummy ${ac_tool_prefix}otool; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_prog_OTOOL+:} false; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544   if test -n "$OTOOL"; then
6545   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552     for ac_exec_ext in '' $ac_executable_extensions; do
6553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556     break 2
6557   fi
6558 done
6559   done
6560 IFS=$as_save_IFS
6561
6562 fi
6563 fi
6564 OTOOL=$ac_cv_prog_OTOOL
6565 if test -n "$OTOOL"; then
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6567 $as_echo "$OTOOL" >&6; }
6568 else
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6571 fi
6572
6573
6574 fi
6575 if test -z "$ac_cv_prog_OTOOL"; then
6576   ac_ct_OTOOL=$OTOOL
6577   # Extract the first word of "otool", so it can be a program name with args.
6578 set dummy otool; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   if test -n "$ac_ct_OTOOL"; then
6585   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6586 else
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592     for ac_exec_ext in '' $ac_executable_extensions; do
6593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594     ac_cv_prog_ac_ct_OTOOL="otool"
6595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596     break 2
6597   fi
6598 done
6599   done
6600 IFS=$as_save_IFS
6601
6602 fi
6603 fi
6604 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6605 if test -n "$ac_ct_OTOOL"; then
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6607 $as_echo "$ac_ct_OTOOL" >&6; }
6608 else
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6611 fi
6612
6613   if test "x$ac_ct_OTOOL" = x; then
6614     OTOOL=":"
6615   else
6616     case $cross_compiling:$ac_tool_warned in
6617 yes:)
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6621 esac
6622     OTOOL=$ac_ct_OTOOL
6623   fi
6624 else
6625   OTOOL="$ac_cv_prog_OTOOL"
6626 fi
6627
6628     if test -n "$ac_tool_prefix"; then
6629   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if ${ac_cv_prog_OTOOL64+:} false; then :
6634   $as_echo_n "(cached) " >&6
6635 else
6636   if test -n "$OTOOL64"; then
6637   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644     for ac_exec_ext in '' $ac_executable_extensions; do
6645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651   done
6652 IFS=$as_save_IFS
6653
6654 fi
6655 fi
6656 OTOOL64=$ac_cv_prog_OTOOL64
6657 if test -n "$OTOOL64"; then
6658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6659 $as_echo "$OTOOL64" >&6; }
6660 else
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664
6665
6666 fi
6667 if test -z "$ac_cv_prog_OTOOL64"; then
6668   ac_ct_OTOOL64=$OTOOL64
6669   # Extract the first word of "otool64", so it can be a program name with args.
6670 set dummy otool64; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   if test -n "$ac_ct_OTOOL64"; then
6677   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684     for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_prog_ac_ct_OTOOL64="otool64"
6687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691   done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6697 if test -n "$ac_ct_OTOOL64"; then
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6699 $as_echo "$ac_ct_OTOOL64" >&6; }
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705   if test "x$ac_ct_OTOOL64" = x; then
6706     OTOOL64=":"
6707   else
6708     case $cross_compiling:$ac_tool_warned in
6709 yes:)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6713 esac
6714     OTOOL64=$ac_ct_OTOOL64
6715   fi
6716 else
6717   OTOOL64="$ac_cv_prog_OTOOL64"
6718 fi
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6747 $as_echo_n "checking for -single_module linker flag... " >&6; }
6748 if ${lt_cv_apple_cc_single_mod+:} false; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   lt_cv_apple_cc_single_mod=no
6752       if test -z "${LT_MULTI_MODULE}"; then
6753         # By default we will add the -single_module flag. You can override
6754         # by either setting the environment variable LT_MULTI_MODULE
6755         # non-empty at configure time, or by adding -multi_module to the
6756         # link flags.
6757         rm -rf libconftest.dylib*
6758         echo "int foo(void){return 1;}" > conftest.c
6759         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6760 -dynamiclib -Wl,-single_module conftest.c" >&5
6761         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6762           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6763         _lt_result=$?
6764         # If there is a non-empty error log, and "single_module"
6765         # appears in it, assume the flag caused a linker warning
6766         if test -s conftest.err && $GREP single_module conftest.err; then
6767           cat conftest.err >&5
6768         # Otherwise, if the output was created with a 0 exit code from
6769         # the compiler, it worked.
6770         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6771           lt_cv_apple_cc_single_mod=yes
6772         else
6773           cat conftest.err >&5
6774         fi
6775         rm -rf libconftest.dylib*
6776         rm -f conftest.*
6777       fi
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6780 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6781
6782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6783 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6784 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   lt_cv_ld_exported_symbols_list=no
6788       save_LDFLAGS=$LDFLAGS
6789       echo "_main" > conftest.sym
6790       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h.  */
6793
6794 int
6795 main ()
6796 {
6797
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 if ac_fn_c_try_link "$LINENO"; then :
6803   lt_cv_ld_exported_symbols_list=yes
6804 else
6805   lt_cv_ld_exported_symbols_list=no
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext \
6808     conftest$ac_exeext conftest.$ac_ext
6809         LDFLAGS="$save_LDFLAGS"
6810
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6813 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6814
6815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6816 $as_echo_n "checking for -force_load linker flag... " >&6; }
6817 if ${lt_cv_ld_force_load+:} false; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820   lt_cv_ld_force_load=no
6821       cat > conftest.c << _LT_EOF
6822 int forced_loaded() { return 2;}
6823 _LT_EOF
6824       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6825       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6826       echo "$AR cru libconftest.a conftest.o" >&5
6827       $AR cru libconftest.a conftest.o 2>&5
6828       echo "$RANLIB libconftest.a" >&5
6829       $RANLIB libconftest.a 2>&5
6830       cat > conftest.c << _LT_EOF
6831 int main() { return 0;}
6832 _LT_EOF
6833       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6834       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6835       _lt_result=$?
6836       if test -s conftest.err && $GREP force_load conftest.err; then
6837         cat conftest.err >&5
6838       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6839         lt_cv_ld_force_load=yes
6840       else
6841         cat conftest.err >&5
6842       fi
6843         rm -f conftest.err libconftest.a conftest conftest.c
6844         rm -rf conftest.dSYM
6845
6846 fi
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6848 $as_echo "$lt_cv_ld_force_load" >&6; }
6849     case $host_os in
6850     rhapsody* | darwin1.[012])
6851       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6852     darwin1.*)
6853       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6854     darwin*) # darwin 5.x on
6855       # if running on 10.5 or later, the deployment target defaults
6856       # to the OS version, if on x86, and 10.4, the deployment
6857       # target defaults to 10.4. Don't you love it?
6858       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6859         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6860           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6861         10.[012]*)
6862           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6863         10.*)
6864           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6865       esac
6866     ;;
6867   esac
6868     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6869       _lt_dar_single_mod='$single_module'
6870     fi
6871     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6872       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6873     else
6874       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6875     fi
6876     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6877       _lt_dsymutil='~$DSYMUTIL $lib || :'
6878     else
6879       _lt_dsymutil=
6880     fi
6881     ;;
6882   esac
6883
6884 ac_ext=c
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6890 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6891 # On Suns, sometimes $CPP names a directory.
6892 if test -n "$CPP" && test -d "$CPP"; then
6893   CPP=
6894 fi
6895 if test -z "$CPP"; then
6896   if ${ac_cv_prog_CPP+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899       # Double quotes because CPP needs to be expanded
6900     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6901     do
6902       ac_preproc_ok=false
6903 for ac_c_preproc_warn_flag in '' yes
6904 do
6905   # Use a header file that comes with gcc, so configuring glibc
6906   # with a fresh cross-compiler works.
6907   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908   # <limits.h> exists even on freestanding compilers.
6909   # On the NeXT, cc -E runs the code through the compiler's parser,
6910   # not just through cpp. "Syntax error" is here to catch this case.
6911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h.  */
6913 #ifdef __STDC__
6914 # include <limits.h>
6915 #else
6916 # include <assert.h>
6917 #endif
6918                      Syntax error
6919 _ACEOF
6920 if ac_fn_c_try_cpp "$LINENO"; then :
6921
6922 else
6923   # Broken: fails on valid input.
6924 continue
6925 fi
6926 rm -f conftest.err conftest.i conftest.$ac_ext
6927
6928   # OK, works on sane cases.  Now check whether nonexistent headers
6929   # can be detected and how.
6930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h.  */
6932 #include <ac_nonexistent.h>
6933 _ACEOF
6934 if ac_fn_c_try_cpp "$LINENO"; then :
6935   # Broken: success on invalid input.
6936 continue
6937 else
6938   # Passes both tests.
6939 ac_preproc_ok=:
6940 break
6941 fi
6942 rm -f conftest.err conftest.i conftest.$ac_ext
6943
6944 done
6945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6946 rm -f conftest.i conftest.err conftest.$ac_ext
6947 if $ac_preproc_ok; then :
6948   break
6949 fi
6950
6951     done
6952     ac_cv_prog_CPP=$CPP
6953
6954 fi
6955   CPP=$ac_cv_prog_CPP
6956 else
6957   ac_cv_prog_CPP=$CPP
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6960 $as_echo "$CPP" >&6; }
6961 ac_preproc_ok=false
6962 for ac_c_preproc_warn_flag in '' yes
6963 do
6964   # Use a header file that comes with gcc, so configuring glibc
6965   # with a fresh cross-compiler works.
6966   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967   # <limits.h> exists even on freestanding compilers.
6968   # On the NeXT, cc -E runs the code through the compiler's parser,
6969   # not just through cpp. "Syntax error" is here to catch this case.
6970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h.  */
6972 #ifdef __STDC__
6973 # include <limits.h>
6974 #else
6975 # include <assert.h>
6976 #endif
6977                      Syntax error
6978 _ACEOF
6979 if ac_fn_c_try_cpp "$LINENO"; then :
6980
6981 else
6982   # Broken: fails on valid input.
6983 continue
6984 fi
6985 rm -f conftest.err conftest.i conftest.$ac_ext
6986
6987   # OK, works on sane cases.  Now check whether nonexistent headers
6988   # can be detected and how.
6989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h.  */
6991 #include <ac_nonexistent.h>
6992 _ACEOF
6993 if ac_fn_c_try_cpp "$LINENO"; then :
6994   # Broken: success on invalid input.
6995 continue
6996 else
6997   # Passes both tests.
6998 ac_preproc_ok=:
6999 break
7000 fi
7001 rm -f conftest.err conftest.i conftest.$ac_ext
7002
7003 done
7004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005 rm -f conftest.i conftest.err conftest.$ac_ext
7006 if $ac_preproc_ok; then :
7007
7008 else
7009   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7011 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7012 See \`config.log' for more details" "$LINENO" 5; }
7013 fi
7014
7015 ac_ext=c
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
7021
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7023 $as_echo_n "checking for ANSI C header files... " >&6; }
7024 if ${ac_cv_header_stdc+:} false; then :
7025   $as_echo_n "(cached) " >&6
7026 else
7027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h.  */
7029 #include <stdlib.h>
7030 #include <stdarg.h>
7031 #include <string.h>
7032 #include <float.h>
7033
7034 int
7035 main ()
7036 {
7037
7038   ;
7039   return 0;
7040 }
7041 _ACEOF
7042 if ac_fn_c_try_compile "$LINENO"; then :
7043   ac_cv_header_stdc=yes
7044 else
7045   ac_cv_header_stdc=no
7046 fi
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048
7049 if test $ac_cv_header_stdc = yes; then
7050   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h.  */
7053 #include <string.h>
7054
7055 _ACEOF
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057   $EGREP "memchr" >/dev/null 2>&1; then :
7058
7059 else
7060   ac_cv_header_stdc=no
7061 fi
7062 rm -f conftest*
7063
7064 fi
7065
7066 if test $ac_cv_header_stdc = yes; then
7067   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h.  */
7070 #include <stdlib.h>
7071
7072 _ACEOF
7073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074   $EGREP "free" >/dev/null 2>&1; then :
7075
7076 else
7077   ac_cv_header_stdc=no
7078 fi
7079 rm -f conftest*
7080
7081 fi
7082
7083 if test $ac_cv_header_stdc = yes; then
7084   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7085   if test "$cross_compiling" = yes; then :
7086   :
7087 else
7088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090 #include <ctype.h>
7091 #include <stdlib.h>
7092 #if ((' ' & 0x0FF) == 0x020)
7093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7095 #else
7096 # define ISLOWER(c) \
7097                    (('a' <= (c) && (c) <= 'i') \
7098                      || ('j' <= (c) && (c) <= 'r') \
7099                      || ('s' <= (c) && (c) <= 'z'))
7100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7101 #endif
7102
7103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7104 int
7105 main ()
7106 {
7107   int i;
7108   for (i = 0; i < 256; i++)
7109     if (XOR (islower (i), ISLOWER (i))
7110         || toupper (i) != TOUPPER (i))
7111       return 2;
7112   return 0;
7113 }
7114 _ACEOF
7115 if ac_fn_c_try_run "$LINENO"; then :
7116
7117 else
7118   ac_cv_header_stdc=no
7119 fi
7120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7121   conftest.$ac_objext conftest.beam conftest.$ac_ext
7122 fi
7123
7124 fi
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7127 $as_echo "$ac_cv_header_stdc" >&6; }
7128 if test $ac_cv_header_stdc = yes; then
7129
7130 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7131
7132 fi
7133
7134 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7135 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7136                   inttypes.h stdint.h unistd.h
7137 do :
7138   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7140 "
7141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7142   cat >>confdefs.h <<_ACEOF
7143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144 _ACEOF
7145
7146 fi
7147
7148 done
7149
7150
7151 for ac_header in dlfcn.h
7152 do :
7153   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7154 "
7155 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7156   cat >>confdefs.h <<_ACEOF
7157 #define HAVE_DLFCN_H 1
7158 _ACEOF
7159
7160 fi
7161
7162 done
7163
7164
7165
7166
7167
7168 # Set options
7169
7170
7171
7172         enable_dlopen=no
7173
7174
7175   enable_win32_dll=no
7176
7177
7178             # Check whether --enable-shared was given.
7179 if test "${enable_shared+set}" = set; then :
7180   enableval=$enable_shared; p=${PACKAGE-default}
7181     case $enableval in
7182     yes) enable_shared=yes ;;
7183     no) enable_shared=no ;;
7184     *)
7185       enable_shared=no
7186       # Look at the argument we got.  We use all the common list separators.
7187       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7188       for pkg in $enableval; do
7189         IFS="$lt_save_ifs"
7190         if test "X$pkg" = "X$p"; then
7191           enable_shared=yes
7192         fi
7193       done
7194       IFS="$lt_save_ifs"
7195       ;;
7196     esac
7197 else
7198   enable_shared=yes
7199 fi
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209   # Check whether --enable-static was given.
7210 if test "${enable_static+set}" = set; then :
7211   enableval=$enable_static; p=${PACKAGE-default}
7212     case $enableval in
7213     yes) enable_static=yes ;;
7214     no) enable_static=no ;;
7215     *)
7216      enable_static=no
7217       # Look at the argument we got.  We use all the common list separators.
7218       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7219       for pkg in $enableval; do
7220         IFS="$lt_save_ifs"
7221         if test "X$pkg" = "X$p"; then
7222           enable_static=yes
7223         fi
7224       done
7225       IFS="$lt_save_ifs"
7226       ;;
7227     esac
7228 else
7229   enable_static=yes
7230 fi
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241 # Check whether --with-pic was given.
7242 if test "${with_pic+set}" = set; then :
7243   withval=$with_pic; lt_p=${PACKAGE-default}
7244     case $withval in
7245     yes|no) pic_mode=$withval ;;
7246     *)
7247       pic_mode=default
7248       # Look at the argument we got.  We use all the common list separators.
7249       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7250       for lt_pkg in $withval; do
7251         IFS="$lt_save_ifs"
7252         if test "X$lt_pkg" = "X$lt_p"; then
7253           pic_mode=yes
7254         fi
7255       done
7256       IFS="$lt_save_ifs"
7257       ;;
7258     esac
7259 else
7260   pic_mode=default
7261 fi
7262
7263
7264 test -z "$pic_mode" && pic_mode=default
7265
7266
7267
7268
7269
7270
7271
7272   # Check whether --enable-fast-install was given.
7273 if test "${enable_fast_install+set}" = set; then :
7274   enableval=$enable_fast_install; p=${PACKAGE-default}
7275     case $enableval in
7276     yes) enable_fast_install=yes ;;
7277     no) enable_fast_install=no ;;
7278     *)
7279       enable_fast_install=no
7280       # Look at the argument we got.  We use all the common list separators.
7281       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7282       for pkg in $enableval; do
7283         IFS="$lt_save_ifs"
7284         if test "X$pkg" = "X$p"; then
7285           enable_fast_install=yes
7286         fi
7287       done
7288       IFS="$lt_save_ifs"
7289       ;;
7290     esac
7291 else
7292   enable_fast_install=yes
7293 fi
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 # This can be used to rebuild libtool when needed
7306 LIBTOOL_DEPS="$ltmain"
7307
7308 # Always use our own libtool.
7309 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340 test -z "$LN_S" && LN_S="ln -s"
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355 if test -n "${ZSH_VERSION+set}" ; then
7356    setopt NO_GLOB_SUBST
7357 fi
7358
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7360 $as_echo_n "checking for objdir... " >&6; }
7361 if ${lt_cv_objdir+:} false; then :
7362   $as_echo_n "(cached) " >&6
7363 else
7364   rm -f .libs 2>/dev/null
7365 mkdir .libs 2>/dev/null
7366 if test -d .libs; then
7367   lt_cv_objdir=.libs
7368 else
7369   # MS-DOS does not allow filenames that begin with a dot.
7370   lt_cv_objdir=_libs
7371 fi
7372 rmdir .libs 2>/dev/null
7373 fi
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7375 $as_echo "$lt_cv_objdir" >&6; }
7376 objdir=$lt_cv_objdir
7377
7378
7379
7380
7381
7382 cat >>confdefs.h <<_ACEOF
7383 #define LT_OBJDIR "$lt_cv_objdir/"
7384 _ACEOF
7385
7386
7387
7388
7389 case $host_os in
7390 aix3*)
7391   # AIX sometimes has problems with the GCC collect2 program.  For some
7392   # reason, if we set the COLLECT_NAMES environment variable, the problems
7393   # vanish in a puff of smoke.
7394   if test "X${COLLECT_NAMES+set}" != Xset; then
7395     COLLECT_NAMES=
7396     export COLLECT_NAMES
7397   fi
7398   ;;
7399 esac
7400
7401 # Global variables:
7402 ofile=libtool
7403 can_build_shared=yes
7404
7405 # All known linkers require a `.a' archive for static linking (except MSVC,
7406 # which needs '.lib').
7407 libext=a
7408
7409 with_gnu_ld="$lt_cv_prog_gnu_ld"
7410
7411 old_CC="$CC"
7412 old_CFLAGS="$CFLAGS"
7413
7414 # Set sane defaults for various variables
7415 test -z "$CC" && CC=cc
7416 test -z "$LTCC" && LTCC=$CC
7417 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7418 test -z "$LD" && LD=ld
7419 test -z "$ac_objext" && ac_objext=o
7420
7421 for cc_temp in $compiler""; do
7422   case $cc_temp in
7423     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7424     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7425     \-*) ;;
7426     *) break;;
7427   esac
7428 done
7429 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7430
7431
7432 # Only perform the check for file, if the check method requires it
7433 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7434 case $deplibs_check_method in
7435 file_magic*)
7436   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7438 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7439 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7440   $as_echo_n "(cached) " >&6
7441 else
7442   case $MAGIC_CMD in
7443 [\\/*] |  ?:[\\/]*)
7444   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7445   ;;
7446 *)
7447   lt_save_MAGIC_CMD="$MAGIC_CMD"
7448   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7449   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7450   for ac_dir in $ac_dummy; do
7451     IFS="$lt_save_ifs"
7452     test -z "$ac_dir" && ac_dir=.
7453     if test -f $ac_dir/${ac_tool_prefix}file; then
7454       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7455       if test -n "$file_magic_test_file"; then
7456         case $deplibs_check_method in
7457         "file_magic "*)
7458           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7459           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7461             $EGREP "$file_magic_regex" > /dev/null; then
7462             :
7463           else
7464             cat <<_LT_EOF 1>&2
7465
7466 *** Warning: the command libtool uses to detect shared libraries,
7467 *** $file_magic_cmd, produces output that libtool cannot recognize.
7468 *** The result is that libtool may fail to recognize shared libraries
7469 *** as such.  This will affect the creation of libtool libraries that
7470 *** depend on shared libraries, but programs linked with such libtool
7471 *** libraries will work regardless of this problem.  Nevertheless, you
7472 *** may want to report the problem to your system manager and/or to
7473 *** bug-libtool@gnu.org
7474
7475 _LT_EOF
7476           fi ;;
7477         esac
7478       fi
7479       break
7480     fi
7481   done
7482   IFS="$lt_save_ifs"
7483   MAGIC_CMD="$lt_save_MAGIC_CMD"
7484   ;;
7485 esac
7486 fi
7487
7488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489 if test -n "$MAGIC_CMD"; then
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7491 $as_echo "$MAGIC_CMD" >&6; }
7492 else
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7495 fi
7496
7497
7498
7499
7500
7501 if test -z "$lt_cv_path_MAGIC_CMD"; then
7502   if test -n "$ac_tool_prefix"; then
7503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7504 $as_echo_n "checking for file... " >&6; }
7505 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   case $MAGIC_CMD in
7509 [\\/*] |  ?:[\\/]*)
7510   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511   ;;
7512 *)
7513   lt_save_MAGIC_CMD="$MAGIC_CMD"
7514   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516   for ac_dir in $ac_dummy; do
7517     IFS="$lt_save_ifs"
7518     test -z "$ac_dir" && ac_dir=.
7519     if test -f $ac_dir/file; then
7520       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7521       if test -n "$file_magic_test_file"; then
7522         case $deplibs_check_method in
7523         "file_magic "*)
7524           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527             $EGREP "$file_magic_regex" > /dev/null; then
7528             :
7529           else
7530             cat <<_LT_EOF 1>&2
7531
7532 *** Warning: the command libtool uses to detect shared libraries,
7533 *** $file_magic_cmd, produces output that libtool cannot recognize.
7534 *** The result is that libtool may fail to recognize shared libraries
7535 *** as such.  This will affect the creation of libtool libraries that
7536 *** depend on shared libraries, but programs linked with such libtool
7537 *** libraries will work regardless of this problem.  Nevertheless, you
7538 *** may want to report the problem to your system manager and/or to
7539 *** bug-libtool@gnu.org
7540
7541 _LT_EOF
7542           fi ;;
7543         esac
7544       fi
7545       break
7546     fi
7547   done
7548   IFS="$lt_save_ifs"
7549   MAGIC_CMD="$lt_save_MAGIC_CMD"
7550   ;;
7551 esac
7552 fi
7553
7554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555 if test -n "$MAGIC_CMD"; then
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7557 $as_echo "$MAGIC_CMD" >&6; }
7558 else
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563
7564   else
7565     MAGIC_CMD=:
7566   fi
7567 fi
7568
7569   fi
7570   ;;
7571 esac
7572
7573 # Use C for the default configuration in the libtool script
7574
7575 lt_save_CC="$CC"
7576 ac_ext=c
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7581
7582
7583 # Source file extension for C test sources.
7584 ac_ext=c
7585
7586 # Object file extension for compiled C test sources.
7587 objext=o
7588 objext=$objext
7589
7590 # Code to be used in simple compile tests
7591 lt_simple_compile_test_code="int some_variable = 0;"
7592
7593 # Code to be used in simple link tests
7594 lt_simple_link_test_code='int main(){return(0);}'
7595
7596
7597
7598
7599
7600
7601
7602 # If no C compiler was specified, use CC.
7603 LTCC=${LTCC-"$CC"}
7604
7605 # If no C compiler flags were specified, use CFLAGS.
7606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7607
7608 # Allow CC to be a program name with arguments.
7609 compiler=$CC
7610
7611 # Save the default compiler, since it gets overwritten when the other
7612 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7613 compiler_DEFAULT=$CC
7614
7615 # save warnings/boilerplate of simple test code
7616 ac_outfile=conftest.$ac_objext
7617 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7619 _lt_compiler_boilerplate=`cat conftest.err`
7620 $RM conftest*
7621
7622 ac_outfile=conftest.$ac_objext
7623 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7625 _lt_linker_boilerplate=`cat conftest.err`
7626 $RM -r conftest*
7627
7628
7629 ## CAVEAT EMPTOR:
7630 ## There is no encapsulation within the following macros, do not change
7631 ## the running order or otherwise move them around unless you know exactly
7632 ## what you are doing...
7633 if test -n "$compiler"; then
7634
7635 lt_prog_compiler_no_builtin_flag=
7636
7637 if test "$GCC" = yes; then
7638   case $cc_basename in
7639   nvcc*)
7640     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7641   *)
7642     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7643   esac
7644
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7646 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7647 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   lt_cv_prog_compiler_rtti_exceptions=no
7651    ac_outfile=conftest.$ac_objext
7652    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7653    lt_compiler_flag="-fno-rtti -fno-exceptions"
7654    # Insert the option either (1) after the last *FLAGS variable, or
7655    # (2) before a word containing "conftest.", or (3) at the end.
7656    # Note that $ac_compile itself does not contain backslashes and begins
7657    # with a dollar sign (not a hyphen), so the echo should work correctly.
7658    # The option is referenced via a variable to avoid confusing sed.
7659    lt_compile=`echo "$ac_compile" | $SED \
7660    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7661    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7662    -e 's:$: $lt_compiler_flag:'`
7663    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7664    (eval "$lt_compile" 2>conftest.err)
7665    ac_status=$?
7666    cat conftest.err >&5
7667    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668    if (exit $ac_status) && test -s "$ac_outfile"; then
7669      # The compiler can only warn and ignore the option if not recognized
7670      # So say no if there are warnings other than the usual output.
7671      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7672      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7673      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7674        lt_cv_prog_compiler_rtti_exceptions=yes
7675      fi
7676    fi
7677    $RM conftest*
7678
7679 fi
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7681 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7682
7683 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7684     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7685 else
7686     :
7687 fi
7688
7689 fi
7690
7691
7692
7693
7694
7695
7696   lt_prog_compiler_wl=
7697 lt_prog_compiler_pic=
7698 lt_prog_compiler_static=
7699
7700
7701   if test "$GCC" = yes; then
7702     lt_prog_compiler_wl='-Wl,'
7703     lt_prog_compiler_static='-static'
7704
7705     case $host_os in
7706       aix*)
7707       # All AIX code is PIC.
7708       if test "$host_cpu" = ia64; then
7709         # AIX 5 now supports IA64 processor
7710         lt_prog_compiler_static='-Bstatic'
7711       fi
7712       ;;
7713
7714     amigaos*)
7715       case $host_cpu in
7716       powerpc)
7717             # see comment about AmigaOS4 .so support
7718             lt_prog_compiler_pic='-fPIC'
7719         ;;
7720       m68k)
7721             # FIXME: we need at least 68020 code to build shared libraries, but
7722             # adding the `-m68020' flag to GCC prevents building anything better,
7723             # like `-m68040'.
7724             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7725         ;;
7726       esac
7727       ;;
7728
7729     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7730       # PIC is the default for these OSes.
7731       ;;
7732
7733     mingw* | cygwin* | pw32* | os2* | cegcc*)
7734       # This hack is so that the source file can tell whether it is being
7735       # built for inclusion in a dll (and should export symbols for example).
7736       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7737       # (--disable-auto-import) libraries
7738       lt_prog_compiler_pic='-DDLL_EXPORT'
7739       ;;
7740
7741     darwin* | rhapsody*)
7742       # PIC is the default on this platform
7743       # Common symbols not allowed in MH_DYLIB files
7744       lt_prog_compiler_pic='-fno-common'
7745       ;;
7746
7747     haiku*)
7748       # PIC is the default for Haiku.
7749       # The "-static" flag exists, but is broken.
7750       lt_prog_compiler_static=
7751       ;;
7752
7753     hpux*)
7754       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7755       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7756       # sets the default TLS model and affects inlining.
7757       case $host_cpu in
7758       hppa*64*)
7759         # +Z the default
7760         ;;
7761       *)
7762         lt_prog_compiler_pic='-fPIC'
7763         ;;
7764       esac
7765       ;;
7766
7767     interix[3-9]*)
7768       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7769       # Instead, we relocate shared libraries at runtime.
7770       ;;
7771
7772     msdosdjgpp*)
7773       # Just because we use GCC doesn't mean we suddenly get shared libraries
7774       # on systems that don't support them.
7775       lt_prog_compiler_can_build_shared=no
7776       enable_shared=no
7777       ;;
7778
7779     *nto* | *qnx*)
7780       # QNX uses GNU C++, but need to define -shared option too, otherwise
7781       # it will coredump.
7782       lt_prog_compiler_pic='-fPIC -shared'
7783       ;;
7784
7785     sysv4*MP*)
7786       if test -d /usr/nec; then
7787         lt_prog_compiler_pic=-Kconform_pic
7788       fi
7789       ;;
7790
7791     *)
7792       lt_prog_compiler_pic='-fPIC'
7793       ;;
7794     esac
7795
7796     case $cc_basename in
7797     nvcc*) # Cuda Compiler Driver 2.2
7798       lt_prog_compiler_wl='-Xlinker '
7799       if test -n "$lt_prog_compiler_pic"; then
7800         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7801       fi
7802       ;;
7803     esac
7804   else
7805     # PORTME Check for flag to pass linker flags through the system compiler.
7806     case $host_os in
7807     aix*)
7808       lt_prog_compiler_wl='-Wl,'
7809       if test "$host_cpu" = ia64; then
7810         # AIX 5 now supports IA64 processor
7811         lt_prog_compiler_static='-Bstatic'
7812       else
7813         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7814       fi
7815       ;;
7816
7817     mingw* | cygwin* | pw32* | os2* | cegcc*)
7818       # This hack is so that the source file can tell whether it is being
7819       # built for inclusion in a dll (and should export symbols for example).
7820       lt_prog_compiler_pic='-DDLL_EXPORT'
7821       ;;
7822
7823     hpux9* | hpux10* | hpux11*)
7824       lt_prog_compiler_wl='-Wl,'
7825       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7826       # not for PA HP-UX.
7827       case $host_cpu in
7828       hppa*64*|ia64*)
7829         # +Z the default
7830         ;;
7831       *)
7832         lt_prog_compiler_pic='+Z'
7833         ;;
7834       esac
7835       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7836       lt_prog_compiler_static='${wl}-a ${wl}archive'
7837       ;;
7838
7839     irix5* | irix6* | nonstopux*)
7840       lt_prog_compiler_wl='-Wl,'
7841       # PIC (with -KPIC) is the default.
7842       lt_prog_compiler_static='-non_shared'
7843       ;;
7844
7845     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7846       case $cc_basename in
7847       # old Intel for x86_64 which still supported -KPIC.
7848       ecc*)
7849         lt_prog_compiler_wl='-Wl,'
7850         lt_prog_compiler_pic='-KPIC'
7851         lt_prog_compiler_static='-static'
7852         ;;
7853       # icc used to be incompatible with GCC.
7854       # ICC 10 doesn't accept -KPIC any more.
7855       icc* | ifort*)
7856         lt_prog_compiler_wl='-Wl,'
7857         lt_prog_compiler_pic='-fPIC'
7858         lt_prog_compiler_static='-static'
7859         ;;
7860       # Lahey Fortran 8.1.
7861       lf95*)
7862         lt_prog_compiler_wl='-Wl,'
7863         lt_prog_compiler_pic='--shared'
7864         lt_prog_compiler_static='--static'
7865         ;;
7866       nagfor*)
7867         # NAG Fortran compiler
7868         lt_prog_compiler_wl='-Wl,-Wl,,'
7869         lt_prog_compiler_pic='-PIC'
7870         lt_prog_compiler_static='-Bstatic'
7871         ;;
7872       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7873         # Portland Group compilers (*not* the Pentium gcc compiler,
7874         # which looks to be a dead project)
7875         lt_prog_compiler_wl='-Wl,'
7876         lt_prog_compiler_pic='-fpic'
7877         lt_prog_compiler_static='-Bstatic'
7878         ;;
7879       ccc*)
7880         lt_prog_compiler_wl='-Wl,'
7881         # All Alpha code is PIC.
7882         lt_prog_compiler_static='-non_shared'
7883         ;;
7884       xl* | bgxl* | bgf* | mpixl*)
7885         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7886         lt_prog_compiler_wl='-Wl,'
7887         lt_prog_compiler_pic='-qpic'
7888         lt_prog_compiler_static='-qstaticlink'
7889         ;;
7890       *)
7891         case `$CC -V 2>&1 | sed 5q` in
7892         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7893           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7894           lt_prog_compiler_pic='-KPIC'
7895           lt_prog_compiler_static='-Bstatic'
7896           lt_prog_compiler_wl=''
7897           ;;
7898         *Sun\ F* | *Sun*Fortran*)
7899           lt_prog_compiler_pic='-KPIC'
7900           lt_prog_compiler_static='-Bstatic'
7901           lt_prog_compiler_wl='-Qoption ld '
7902           ;;
7903         *Sun\ C*)
7904           # Sun C 5.9
7905           lt_prog_compiler_pic='-KPIC'
7906           lt_prog_compiler_static='-Bstatic'
7907           lt_prog_compiler_wl='-Wl,'
7908           ;;
7909         *Intel*\ [CF]*Compiler*)
7910           lt_prog_compiler_wl='-Wl,'
7911           lt_prog_compiler_pic='-fPIC'
7912           lt_prog_compiler_static='-static'
7913           ;;
7914         *Portland\ Group*)
7915           lt_prog_compiler_wl='-Wl,'
7916           lt_prog_compiler_pic='-fpic'
7917           lt_prog_compiler_static='-Bstatic'
7918           ;;
7919         esac
7920         ;;
7921       esac
7922       ;;
7923
7924     newsos6)
7925       lt_prog_compiler_pic='-KPIC'
7926       lt_prog_compiler_static='-Bstatic'
7927       ;;
7928
7929     *nto* | *qnx*)
7930       # QNX uses GNU C++, but need to define -shared option too, otherwise
7931       # it will coredump.
7932       lt_prog_compiler_pic='-fPIC -shared'
7933       ;;
7934
7935     osf3* | osf4* | osf5*)
7936       lt_prog_compiler_wl='-Wl,'
7937       # All OSF/1 code is PIC.
7938       lt_prog_compiler_static='-non_shared'
7939       ;;
7940
7941     rdos*)
7942       lt_prog_compiler_static='-non_shared'
7943       ;;
7944
7945     solaris*)
7946       lt_prog_compiler_pic='-KPIC'
7947       lt_prog_compiler_static='-Bstatic'
7948       case $cc_basename in
7949       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7950         lt_prog_compiler_wl='-Qoption ld ';;
7951       *)
7952         lt_prog_compiler_wl='-Wl,';;
7953       esac
7954       ;;
7955
7956     sunos4*)
7957       lt_prog_compiler_wl='-Qoption ld '
7958       lt_prog_compiler_pic='-PIC'
7959       lt_prog_compiler_static='-Bstatic'
7960       ;;
7961
7962     sysv4 | sysv4.2uw2* | sysv4.3*)
7963       lt_prog_compiler_wl='-Wl,'
7964       lt_prog_compiler_pic='-KPIC'
7965       lt_prog_compiler_static='-Bstatic'
7966       ;;
7967
7968     sysv4*MP*)
7969       if test -d /usr/nec ;then
7970         lt_prog_compiler_pic='-Kconform_pic'
7971         lt_prog_compiler_static='-Bstatic'
7972       fi
7973       ;;
7974
7975     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7976       lt_prog_compiler_wl='-Wl,'
7977       lt_prog_compiler_pic='-KPIC'
7978       lt_prog_compiler_static='-Bstatic'
7979       ;;
7980
7981     unicos*)
7982       lt_prog_compiler_wl='-Wl,'
7983       lt_prog_compiler_can_build_shared=no
7984       ;;
7985
7986     uts4*)
7987       lt_prog_compiler_pic='-pic'
7988       lt_prog_compiler_static='-Bstatic'
7989       ;;
7990
7991     *)
7992       lt_prog_compiler_can_build_shared=no
7993       ;;
7994     esac
7995   fi
7996
7997 case $host_os in
7998   # For platforms which do not support PIC, -DPIC is meaningless:
7999   *djgpp*)
8000     lt_prog_compiler_pic=
8001     ;;
8002   *)
8003     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8004     ;;
8005 esac
8006
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8008 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8009 if ${lt_cv_prog_compiler_pic+:} false; then :
8010   $as_echo_n "(cached) " >&6
8011 else
8012   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8013 fi
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8015 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8016 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8017
8018 #
8019 # Check to make sure the PIC flag actually works.
8020 #
8021 if test -n "$lt_prog_compiler_pic"; then
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8023 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8024 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8025   $as_echo_n "(cached) " >&6
8026 else
8027   lt_cv_prog_compiler_pic_works=no
8028    ac_outfile=conftest.$ac_objext
8029    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8030    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8031    # Insert the option either (1) after the last *FLAGS variable, or
8032    # (2) before a word containing "conftest.", or (3) at the end.
8033    # Note that $ac_compile itself does not contain backslashes and begins
8034    # with a dollar sign (not a hyphen), so the echo should work correctly.
8035    # The option is referenced via a variable to avoid confusing sed.
8036    lt_compile=`echo "$ac_compile" | $SED \
8037    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8038    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8039    -e 's:$: $lt_compiler_flag:'`
8040    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8041    (eval "$lt_compile" 2>conftest.err)
8042    ac_status=$?
8043    cat conftest.err >&5
8044    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045    if (exit $ac_status) && test -s "$ac_outfile"; then
8046      # The compiler can only warn and ignore the option if not recognized
8047      # So say no if there are warnings other than the usual output.
8048      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8049      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8050      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8051        lt_cv_prog_compiler_pic_works=yes
8052      fi
8053    fi
8054    $RM conftest*
8055
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8058 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8059
8060 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8061     case $lt_prog_compiler_pic in
8062      "" | " "*) ;;
8063      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8064      esac
8065 else
8066     lt_prog_compiler_pic=
8067      lt_prog_compiler_can_build_shared=no
8068 fi
8069
8070 fi
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082 #
8083 # Check to make sure the static flag actually works.
8084 #
8085 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8087 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8088 if ${lt_cv_prog_compiler_static_works+:} false; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   lt_cv_prog_compiler_static_works=no
8092    save_LDFLAGS="$LDFLAGS"
8093    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8094    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8095    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8096      # The linker can only warn and ignore the option if not recognized
8097      # So say no if there are warnings
8098      if test -s conftest.err; then
8099        # Append any errors to the config.log.
8100        cat conftest.err 1>&5
8101        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8102        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8103        if diff conftest.exp conftest.er2 >/dev/null; then
8104          lt_cv_prog_compiler_static_works=yes
8105        fi
8106      else
8107        lt_cv_prog_compiler_static_works=yes
8108      fi
8109    fi
8110    $RM -r conftest*
8111    LDFLAGS="$save_LDFLAGS"
8112
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8115 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8116
8117 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8118     :
8119 else
8120     lt_prog_compiler_static=
8121 fi
8122
8123
8124
8125
8126
8127
8128
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8130 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8131 if ${lt_cv_prog_compiler_c_o+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   lt_cv_prog_compiler_c_o=no
8135    $RM -r conftest 2>/dev/null
8136    mkdir conftest
8137    cd conftest
8138    mkdir out
8139    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8140
8141    lt_compiler_flag="-o out/conftest2.$ac_objext"
8142    # Insert the option either (1) after the last *FLAGS variable, or
8143    # (2) before a word containing "conftest.", or (3) at the end.
8144    # Note that $ac_compile itself does not contain backslashes and begins
8145    # with a dollar sign (not a hyphen), so the echo should work correctly.
8146    lt_compile=`echo "$ac_compile" | $SED \
8147    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8148    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8149    -e 's:$: $lt_compiler_flag:'`
8150    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8151    (eval "$lt_compile" 2>out/conftest.err)
8152    ac_status=$?
8153    cat out/conftest.err >&5
8154    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8156    then
8157      # The compiler can only warn and ignore the option if not recognized
8158      # So say no if there are warnings
8159      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8160      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8161      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8162        lt_cv_prog_compiler_c_o=yes
8163      fi
8164    fi
8165    chmod u+w . 2>&5
8166    $RM conftest*
8167    # SGI C++ compiler will create directory out/ii_files/ for
8168    # template instantiation
8169    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8170    $RM out/* && rmdir out
8171    cd ..
8172    $RM -r conftest
8173    $RM conftest*
8174
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8177 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8178
8179
8180
8181
8182
8183
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8186 if ${lt_cv_prog_compiler_c_o+:} false; then :
8187   $as_echo_n "(cached) " >&6
8188 else
8189   lt_cv_prog_compiler_c_o=no
8190    $RM -r conftest 2>/dev/null
8191    mkdir conftest
8192    cd conftest
8193    mkdir out
8194    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8195
8196    lt_compiler_flag="-o out/conftest2.$ac_objext"
8197    # Insert the option either (1) after the last *FLAGS variable, or
8198    # (2) before a word containing "conftest.", or (3) at the end.
8199    # Note that $ac_compile itself does not contain backslashes and begins
8200    # with a dollar sign (not a hyphen), so the echo should work correctly.
8201    lt_compile=`echo "$ac_compile" | $SED \
8202    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8203    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8204    -e 's:$: $lt_compiler_flag:'`
8205    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8206    (eval "$lt_compile" 2>out/conftest.err)
8207    ac_status=$?
8208    cat out/conftest.err >&5
8209    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8211    then
8212      # The compiler can only warn and ignore the option if not recognized
8213      # So say no if there are warnings
8214      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8215      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8216      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8217        lt_cv_prog_compiler_c_o=yes
8218      fi
8219    fi
8220    chmod u+w . 2>&5
8221    $RM conftest*
8222    # SGI C++ compiler will create directory out/ii_files/ for
8223    # template instantiation
8224    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8225    $RM out/* && rmdir out
8226    cd ..
8227    $RM -r conftest
8228    $RM conftest*
8229
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8232 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8233
8234
8235
8236
8237 hard_links="nottested"
8238 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8239   # do not overwrite the value of need_locks provided by the user
8240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8241 $as_echo_n "checking if we can lock with hard links... " >&6; }
8242   hard_links=yes
8243   $RM conftest*
8244   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8245   touch conftest.a
8246   ln conftest.a conftest.b 2>&5 || hard_links=no
8247   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8249 $as_echo "$hard_links" >&6; }
8250   if test "$hard_links" = no; then
8251     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8252 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8253     need_locks=warn
8254   fi
8255 else
8256   need_locks=no
8257 fi
8258
8259
8260
8261
8262
8263
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8265 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8266
8267   runpath_var=
8268   allow_undefined_flag=
8269   always_export_symbols=no
8270   archive_cmds=
8271   archive_expsym_cmds=
8272   compiler_needs_object=no
8273   enable_shared_with_static_runtimes=no
8274   export_dynamic_flag_spec=
8275   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8276   hardcode_automatic=no
8277   hardcode_direct=no
8278   hardcode_direct_absolute=no
8279   hardcode_libdir_flag_spec=
8280   hardcode_libdir_separator=
8281   hardcode_minus_L=no
8282   hardcode_shlibpath_var=unsupported
8283   inherit_rpath=no
8284   link_all_deplibs=unknown
8285   module_cmds=
8286   module_expsym_cmds=
8287   old_archive_from_new_cmds=
8288   old_archive_from_expsyms_cmds=
8289   thread_safe_flag_spec=
8290   whole_archive_flag_spec=
8291   # include_expsyms should be a list of space-separated symbols to be *always*
8292   # included in the symbol list
8293   include_expsyms=
8294   # exclude_expsyms can be an extended regexp of symbols to exclude
8295   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8296   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8297   # as well as any symbol that contains `d'.
8298   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8299   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8300   # platforms (ab)use it in PIC code, but their linkers get confused if
8301   # the symbol is explicitly referenced.  Since portable code cannot
8302   # rely on this symbol name, it's probably fine to never include it in
8303   # preloaded symbol tables.
8304   # Exclude shared library initialization/finalization symbols.
8305   extract_expsyms_cmds=
8306
8307   case $host_os in
8308   cygwin* | mingw* | pw32* | cegcc*)
8309     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8310     # When not using gcc, we currently assume that we are using
8311     # Microsoft Visual C++.
8312     if test "$GCC" != yes; then
8313       with_gnu_ld=no
8314     fi
8315     ;;
8316   interix*)
8317     # we just hope/assume this is gcc and not c89 (= MSVC++)
8318     with_gnu_ld=yes
8319     ;;
8320   openbsd*)
8321     with_gnu_ld=no
8322     ;;
8323   esac
8324
8325   ld_shlibs=yes
8326
8327   # On some targets, GNU ld is compatible enough with the native linker
8328   # that we're better off using the native interface for both.
8329   lt_use_gnu_ld_interface=no
8330   if test "$with_gnu_ld" = yes; then
8331     case $host_os in
8332       aix*)
8333         # The AIX port of GNU ld has always aspired to compatibility
8334         # with the native linker.  However, as the warning in the GNU ld
8335         # block says, versions before 2.19.5* couldn't really create working
8336         # shared libraries, regardless of the interface used.
8337         case `$LD -v 2>&1` in
8338           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8339           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8340           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8341           *)
8342             lt_use_gnu_ld_interface=yes
8343             ;;
8344         esac
8345         ;;
8346       *)
8347         lt_use_gnu_ld_interface=yes
8348         ;;
8349     esac
8350   fi
8351
8352   if test "$lt_use_gnu_ld_interface" = yes; then
8353     # If archive_cmds runs LD, not CC, wlarc should be empty
8354     wlarc='${wl}'
8355
8356     # Set some defaults for GNU ld with shared library support. These
8357     # are reset later if shared libraries are not supported. Putting them
8358     # here allows them to be overridden if necessary.
8359     runpath_var=LD_RUN_PATH
8360     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8361     export_dynamic_flag_spec='${wl}--export-dynamic'
8362     # ancient GNU ld didn't support --whole-archive et. al.
8363     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8364       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8365     else
8366       whole_archive_flag_spec=
8367     fi
8368     supports_anon_versioning=no
8369     case `$LD -v 2>&1` in
8370       *GNU\ gold*) supports_anon_versioning=yes ;;
8371       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8372       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8373       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8374       *\ 2.11.*) ;; # other 2.11 versions
8375       *) supports_anon_versioning=yes ;;
8376     esac
8377
8378     # See if GNU ld supports shared libraries.
8379     case $host_os in
8380     aix[3-9]*)
8381       # On AIX/PPC, the GNU linker is very broken
8382       if test "$host_cpu" != ia64; then
8383         ld_shlibs=no
8384         cat <<_LT_EOF 1>&2
8385
8386 *** Warning: the GNU linker, at least up to release 2.19, is reported
8387 *** to be unable to reliably create shared libraries on AIX.
8388 *** Therefore, libtool is disabling shared libraries support.  If you
8389 *** really care for shared libraries, you may want to install binutils
8390 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8391 *** You will then need to restart the configuration process.
8392
8393 _LT_EOF
8394       fi
8395       ;;
8396
8397     amigaos*)
8398       case $host_cpu in
8399       powerpc)
8400             # see comment about AmigaOS4 .so support
8401             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8402             archive_expsym_cmds=''
8403         ;;
8404       m68k)
8405             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)'
8406             hardcode_libdir_flag_spec='-L$libdir'
8407             hardcode_minus_L=yes
8408         ;;
8409       esac
8410       ;;
8411
8412     beos*)
8413       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8414         allow_undefined_flag=unsupported
8415         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8416         # support --undefined.  This deserves some investigation.  FIXME
8417         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418       else
8419         ld_shlibs=no
8420       fi
8421       ;;
8422
8423     cygwin* | mingw* | pw32* | cegcc*)
8424       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8425       # as there is no search path for DLLs.
8426       hardcode_libdir_flag_spec='-L$libdir'
8427       export_dynamic_flag_spec='${wl}--export-all-symbols'
8428       allow_undefined_flag=unsupported
8429       always_export_symbols=no
8430       enable_shared_with_static_runtimes=yes
8431       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'
8432       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8433
8434       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8435         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8436         # If the export-symbols file already is a .def file (1st line
8437         # is EXPORTS), use it as is; otherwise, prepend...
8438         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8439           cp $export_symbols $output_objdir/$soname.def;
8440         else
8441           echo EXPORTS > $output_objdir/$soname.def;
8442           cat $export_symbols >> $output_objdir/$soname.def;
8443         fi~
8444         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8445       else
8446         ld_shlibs=no
8447       fi
8448       ;;
8449
8450     haiku*)
8451       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452       link_all_deplibs=yes
8453       ;;
8454
8455     interix[3-9]*)
8456       hardcode_direct=no
8457       hardcode_shlibpath_var=no
8458       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8459       export_dynamic_flag_spec='${wl}-E'
8460       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8461       # Instead, shared libraries are loaded at an image base (0x10000000 by
8462       # default) and relocated if they conflict, which is a slow very memory
8463       # consuming and fragmenting process.  To avoid this, we pick a random,
8464       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8465       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8466       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8467       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'
8468       ;;
8469
8470     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8471       tmp_diet=no
8472       if test "$host_os" = linux-dietlibc; then
8473         case $cc_basename in
8474           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8475         esac
8476       fi
8477       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8478          && test "$tmp_diet" = no
8479       then
8480         tmp_addflag=' $pic_flag'
8481         tmp_sharedflag='-shared'
8482         case $cc_basename,$host_cpu in
8483         pgcc*)                          # Portland Group C compiler
8484           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'
8485           tmp_addflag=' $pic_flag'
8486           ;;
8487         pgf77* | pgf90* | pgf95* | pgfortran*)
8488                                         # Portland Group f77 and f90 compilers
8489           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'
8490           tmp_addflag=' $pic_flag -Mnomain' ;;
8491         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8492           tmp_addflag=' -i_dynamic' ;;
8493         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8494           tmp_addflag=' -i_dynamic -nofor_main' ;;
8495         ifc* | ifort*)                  # Intel Fortran compiler
8496           tmp_addflag=' -nofor_main' ;;
8497         lf95*)                          # Lahey Fortran 8.1
8498           whole_archive_flag_spec=
8499           tmp_sharedflag='--shared' ;;
8500         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8501           tmp_sharedflag='-qmkshrobj'
8502           tmp_addflag= ;;
8503         nvcc*)  # Cuda Compiler Driver 2.2
8504           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'
8505           compiler_needs_object=yes
8506           ;;
8507         esac
8508         case `$CC -V 2>&1 | sed 5q` in
8509         *Sun\ C*)                       # Sun C 5.9
8510           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'
8511           compiler_needs_object=yes
8512           tmp_sharedflag='-G' ;;
8513         *Sun\ F*)                       # Sun Fortran 8.3
8514           tmp_sharedflag='-G' ;;
8515         esac
8516         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517
8518         if test "x$supports_anon_versioning" = xyes; then
8519           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8520             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8521             echo "local: *; };" >> $output_objdir/$libname.ver~
8522             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8523         fi
8524
8525         case $cc_basename in
8526         xlf* | bgf* | bgxlf* | mpixlf*)
8527           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8528           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8529           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8530           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8531           if test "x$supports_anon_versioning" = xyes; then
8532             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8533               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8534               echo "local: *; };" >> $output_objdir/$libname.ver~
8535               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8536           fi
8537           ;;
8538         esac
8539       else
8540         ld_shlibs=no
8541       fi
8542       ;;
8543
8544     netbsd*)
8545       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8546         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8547         wlarc=
8548       else
8549         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8551       fi
8552       ;;
8553
8554     solaris*)
8555       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8556         ld_shlibs=no
8557         cat <<_LT_EOF 1>&2
8558
8559 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8560 *** create shared libraries on Solaris systems.  Therefore, libtool
8561 *** is disabling shared libraries support.  We urge you to upgrade GNU
8562 *** binutils to release 2.9.1 or newer.  Another option is to modify
8563 *** your PATH or compiler configuration so that the native linker is
8564 *** used, and then restart.
8565
8566 _LT_EOF
8567       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8568         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8569         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8570       else
8571         ld_shlibs=no
8572       fi
8573       ;;
8574
8575     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8576       case `$LD -v 2>&1` in
8577         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8578         ld_shlibs=no
8579         cat <<_LT_EOF 1>&2
8580
8581 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8582 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8583 *** is disabling shared libraries support.  We urge you to upgrade GNU
8584 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8585 *** your PATH or compiler configuration so that the native linker is
8586 *** used, and then restart.
8587
8588 _LT_EOF
8589         ;;
8590         *)
8591           # For security reasons, it is highly recommended that you always
8592           # use absolute paths for naming shared libraries, and exclude the
8593           # DT_RUNPATH tag from executables and libraries.  But doing so
8594           # requires that you compile everything twice, which is a pain.
8595           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8596             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8597             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8599           else
8600             ld_shlibs=no
8601           fi
8602         ;;
8603       esac
8604       ;;
8605
8606     sunos4*)
8607       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8608       wlarc=
8609       hardcode_direct=yes
8610       hardcode_shlibpath_var=no
8611       ;;
8612
8613     *)
8614       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8615         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8617       else
8618         ld_shlibs=no
8619       fi
8620       ;;
8621     esac
8622
8623     if test "$ld_shlibs" = no; then
8624       runpath_var=
8625       hardcode_libdir_flag_spec=
8626       export_dynamic_flag_spec=
8627       whole_archive_flag_spec=
8628     fi
8629   else
8630     # PORTME fill in a description of your system's linker (not GNU ld)
8631     case $host_os in
8632     aix3*)
8633       allow_undefined_flag=unsupported
8634       always_export_symbols=yes
8635       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'
8636       # Note: this linker hardcodes the directories in LIBPATH if there
8637       # are no directories specified by -L.
8638       hardcode_minus_L=yes
8639       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8640         # Neither direct hardcoding nor static linking is supported with a
8641         # broken collect2.
8642         hardcode_direct=unsupported
8643       fi
8644       ;;
8645
8646     aix[4-9]*)
8647       if test "$host_cpu" = ia64; then
8648         # On IA64, the linker does run time linking by default, so we don't
8649         # have to do anything special.
8650         aix_use_runtimelinking=no
8651         exp_sym_flag='-Bexport'
8652         no_entry_flag=""
8653       else
8654         # If we're using GNU nm, then we don't want the "-C" option.
8655         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8656         # Also, AIX nm treats weak defined symbols like other global
8657         # defined symbols, whereas GNU nm marks them as "W".
8658         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8659           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'
8660         else
8661           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'
8662         fi
8663         aix_use_runtimelinking=no
8664
8665         # Test if we are trying to use run time linking or normal
8666         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8667         # need to do runtime linking.
8668         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8669           for ld_flag in $LDFLAGS; do
8670           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8671             aix_use_runtimelinking=yes
8672             break
8673           fi
8674           done
8675           ;;
8676         esac
8677
8678         exp_sym_flag='-bexport'
8679         no_entry_flag='-bnoentry'
8680       fi
8681
8682       # When large executables or shared objects are built, AIX ld can
8683       # have problems creating the table of contents.  If linking a library
8684       # or program results in "error TOC overflow" add -mminimal-toc to
8685       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8686       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8687
8688       archive_cmds=''
8689       hardcode_direct=yes
8690       hardcode_direct_absolute=yes
8691       hardcode_libdir_separator=':'
8692       link_all_deplibs=yes
8693       file_list_spec='${wl}-f,'
8694
8695       if test "$GCC" = yes; then
8696         case $host_os in aix4.[012]|aix4.[012].*)
8697         # We only want to do this on AIX 4.2 and lower, the check
8698         # below for broken collect2 doesn't work under 4.3+
8699           collect2name=`${CC} -print-prog-name=collect2`
8700           if test -f "$collect2name" &&
8701            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8702           then
8703           # We have reworked collect2
8704           :
8705           else
8706           # We have old collect2
8707           hardcode_direct=unsupported
8708           # It fails to find uninstalled libraries when the uninstalled
8709           # path is not listed in the libpath.  Setting hardcode_minus_L
8710           # to unsupported forces relinking
8711           hardcode_minus_L=yes
8712           hardcode_libdir_flag_spec='-L$libdir'
8713           hardcode_libdir_separator=
8714           fi
8715           ;;
8716         esac
8717         shared_flag='-shared'
8718         if test "$aix_use_runtimelinking" = yes; then
8719           shared_flag="$shared_flag "'${wl}-G'
8720         fi
8721       else
8722         # not using gcc
8723         if test "$host_cpu" = ia64; then
8724         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8725         # chokes on -Wl,-G. The following line is correct:
8726           shared_flag='-G'
8727         else
8728           if test "$aix_use_runtimelinking" = yes; then
8729             shared_flag='${wl}-G'
8730           else
8731             shared_flag='${wl}-bM:SRE'
8732           fi
8733         fi
8734       fi
8735
8736       export_dynamic_flag_spec='${wl}-bexpall'
8737       # It seems that -bexpall does not export symbols beginning with
8738       # underscore (_), so it is better to generate a list of symbols to export.
8739       always_export_symbols=yes
8740       if test "$aix_use_runtimelinking" = yes; then
8741         # Warning - without using the other runtime loading flags (-brtl),
8742         # -berok will link without error, but may produce a broken library.
8743         allow_undefined_flag='-berok'
8744         # Determine the default libpath from the value encoded in an
8745         # empty executable.
8746         if test "${lt_cv_aix_libpath+set}" = set; then
8747   aix_libpath=$lt_cv_aix_libpath
8748 else
8749   if ${lt_cv_aix_libpath_+:} false; then :
8750   $as_echo_n "(cached) " >&6
8751 else
8752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h.  */
8754
8755 int
8756 main ()
8757 {
8758
8759   ;
8760   return 0;
8761 }
8762 _ACEOF
8763 if ac_fn_c_try_link "$LINENO"; then :
8764
8765   lt_aix_libpath_sed='
8766       /Import File Strings/,/^$/ {
8767           /^0/ {
8768               s/^0  *\([^ ]*\) *$/\1/
8769               p
8770           }
8771       }'
8772   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8773   # Check for a 64-bit object if we didn't find anything.
8774   if test -z "$lt_cv_aix_libpath_"; then
8775     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8776   fi
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext \
8779     conftest$ac_exeext conftest.$ac_ext
8780   if test -z "$lt_cv_aix_libpath_"; then
8781     lt_cv_aix_libpath_="/usr/lib:/lib"
8782   fi
8783
8784 fi
8785
8786   aix_libpath=$lt_cv_aix_libpath_
8787 fi
8788
8789         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8790         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"
8791       else
8792         if test "$host_cpu" = ia64; then
8793           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8794           allow_undefined_flag="-z nodefs"
8795           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"
8796         else
8797          # Determine the default libpath from the value encoded in an
8798          # empty executable.
8799          if test "${lt_cv_aix_libpath+set}" = set; then
8800   aix_libpath=$lt_cv_aix_libpath
8801 else
8802   if ${lt_cv_aix_libpath_+:} false; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h.  */
8807
8808 int
8809 main ()
8810 {
8811
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_c_try_link "$LINENO"; then :
8817
8818   lt_aix_libpath_sed='
8819       /Import File Strings/,/^$/ {
8820           /^0/ {
8821               s/^0  *\([^ ]*\) *$/\1/
8822               p
8823           }
8824       }'
8825   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8826   # Check for a 64-bit object if we didn't find anything.
8827   if test -z "$lt_cv_aix_libpath_"; then
8828     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8829   fi
8830 fi
8831 rm -f core conftest.err conftest.$ac_objext \
8832     conftest$ac_exeext conftest.$ac_ext
8833   if test -z "$lt_cv_aix_libpath_"; then
8834     lt_cv_aix_libpath_="/usr/lib:/lib"
8835   fi
8836
8837 fi
8838
8839   aix_libpath=$lt_cv_aix_libpath_
8840 fi
8841
8842          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8843           # Warning - without using the other run time loading flags,
8844           # -berok will link without error, but may produce a broken library.
8845           no_undefined_flag=' ${wl}-bernotok'
8846           allow_undefined_flag=' ${wl}-berok'
8847           if test "$with_gnu_ld" = yes; then
8848             # We only use this code for GNU lds that support --whole-archive.
8849             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8850           else
8851             # Exported symbols can be pulled into shared objects from archives
8852             whole_archive_flag_spec='$convenience'
8853           fi
8854           archive_cmds_need_lc=yes
8855           # This is similar to how AIX traditionally builds its shared libraries.
8856           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'
8857         fi
8858       fi
8859       ;;
8860
8861     amigaos*)
8862       case $host_cpu in
8863       powerpc)
8864             # see comment about AmigaOS4 .so support
8865             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866             archive_expsym_cmds=''
8867         ;;
8868       m68k)
8869             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)'
8870             hardcode_libdir_flag_spec='-L$libdir'
8871             hardcode_minus_L=yes
8872         ;;
8873       esac
8874       ;;
8875
8876     bsdi[45]*)
8877       export_dynamic_flag_spec=-rdynamic
8878       ;;
8879
8880     cygwin* | mingw* | pw32* | cegcc*)
8881       # When not using gcc, we currently assume that we are using
8882       # Microsoft Visual C++.
8883       # hardcode_libdir_flag_spec is actually meaningless, as there is
8884       # no search path for DLLs.
8885       case $cc_basename in
8886       cl*)
8887         # Native MSVC
8888         hardcode_libdir_flag_spec=' '
8889         allow_undefined_flag=unsupported
8890         always_export_symbols=yes
8891         file_list_spec='@'
8892         # Tell ltmain to make .lib files, not .a files.
8893         libext=lib
8894         # Tell ltmain to make .dll files, not .so files.
8895         shrext_cmds=".dll"
8896         # FIXME: Setting linknames here is a bad hack.
8897         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8898         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8899             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8900           else
8901             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8902           fi~
8903           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8904           linknames='
8905         # The linker will not automatically build a static lib if we build a DLL.
8906         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8907         enable_shared_with_static_runtimes=yes
8908         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8909         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8910         # Don't use ranlib
8911         old_postinstall_cmds='chmod 644 $oldlib'
8912         postlink_cmds='lt_outputfile="@OUTPUT@"~
8913           lt_tool_outputfile="@TOOL_OUTPUT@"~
8914           case $lt_outputfile in
8915             *.exe|*.EXE) ;;
8916             *)
8917               lt_outputfile="$lt_outputfile.exe"
8918               lt_tool_outputfile="$lt_tool_outputfile.exe"
8919               ;;
8920           esac~
8921           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8922             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8923             $RM "$lt_outputfile.manifest";
8924           fi'
8925         ;;
8926       *)
8927         # Assume MSVC wrapper
8928         hardcode_libdir_flag_spec=' '
8929         allow_undefined_flag=unsupported
8930         # Tell ltmain to make .lib files, not .a files.
8931         libext=lib
8932         # Tell ltmain to make .dll files, not .so files.
8933         shrext_cmds=".dll"
8934         # FIXME: Setting linknames here is a bad hack.
8935         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8936         # The linker will automatically build a .lib file if we build a DLL.
8937         old_archive_from_new_cmds='true'
8938         # FIXME: Should let the user specify the lib program.
8939         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8940         enable_shared_with_static_runtimes=yes
8941         ;;
8942       esac
8943       ;;
8944
8945     darwin* | rhapsody*)
8946
8947
8948   archive_cmds_need_lc=no
8949   hardcode_direct=no
8950   hardcode_automatic=yes
8951   hardcode_shlibpath_var=unsupported
8952   if test "$lt_cv_ld_force_load" = "yes"; then
8953     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\"`'
8954
8955   else
8956     whole_archive_flag_spec=''
8957   fi
8958   link_all_deplibs=yes
8959   allow_undefined_flag="$_lt_dar_allow_undefined"
8960   case $cc_basename in
8961      ifort*) _lt_dar_can_shared=yes ;;
8962      *) _lt_dar_can_shared=$GCC ;;
8963   esac
8964   if test "$_lt_dar_can_shared" = "yes"; then
8965     output_verbose_link_cmd=func_echo_all
8966     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8967     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8968     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}"
8969     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}"
8970
8971   else
8972   ld_shlibs=no
8973   fi
8974
8975       ;;
8976
8977     dgux*)
8978       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8979       hardcode_libdir_flag_spec='-L$libdir'
8980       hardcode_shlibpath_var=no
8981       ;;
8982
8983     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8984     # support.  Future versions do this automatically, but an explicit c++rt0.o
8985     # does not break anything, and helps significantly (at the cost of a little
8986     # extra space).
8987     freebsd2.2*)
8988       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8989       hardcode_libdir_flag_spec='-R$libdir'
8990       hardcode_direct=yes
8991       hardcode_shlibpath_var=no
8992       ;;
8993
8994     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8995     freebsd2.*)
8996       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8997       hardcode_direct=yes
8998       hardcode_minus_L=yes
8999       hardcode_shlibpath_var=no
9000       ;;
9001
9002     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9003     freebsd* | dragonfly*)
9004       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9005       hardcode_libdir_flag_spec='-R$libdir'
9006       hardcode_direct=yes
9007       hardcode_shlibpath_var=no
9008       ;;
9009
9010     hpux9*)
9011       if test "$GCC" = yes; then
9012         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'
9013       else
9014         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'
9015       fi
9016       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9017       hardcode_libdir_separator=:
9018       hardcode_direct=yes
9019
9020       # hardcode_minus_L: Not really in the search PATH,
9021       # but as the default location of the library.
9022       hardcode_minus_L=yes
9023       export_dynamic_flag_spec='${wl}-E'
9024       ;;
9025
9026     hpux10*)
9027       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9028         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9029       else
9030         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9031       fi
9032       if test "$with_gnu_ld" = no; then
9033         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9034         hardcode_libdir_separator=:
9035         hardcode_direct=yes
9036         hardcode_direct_absolute=yes
9037         export_dynamic_flag_spec='${wl}-E'
9038         # hardcode_minus_L: Not really in the search PATH,
9039         # but as the default location of the library.
9040         hardcode_minus_L=yes
9041       fi
9042       ;;
9043
9044     hpux11*)
9045       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9046         case $host_cpu in
9047         hppa*64*)
9048           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049           ;;
9050         ia64*)
9051           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9052           ;;
9053         *)
9054           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9055           ;;
9056         esac
9057       else
9058         case $host_cpu in
9059         hppa*64*)
9060           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9061           ;;
9062         ia64*)
9063           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9064           ;;
9065         *)
9066
9067           # Older versions of the 11.00 compiler do not understand -b yet
9068           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9069           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9070 $as_echo_n "checking if $CC understands -b... " >&6; }
9071 if ${lt_cv_prog_compiler__b+:} false; then :
9072   $as_echo_n "(cached) " >&6
9073 else
9074   lt_cv_prog_compiler__b=no
9075    save_LDFLAGS="$LDFLAGS"
9076    LDFLAGS="$LDFLAGS -b"
9077    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9078    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9079      # The linker can only warn and ignore the option if not recognized
9080      # So say no if there are warnings
9081      if test -s conftest.err; then
9082        # Append any errors to the config.log.
9083        cat conftest.err 1>&5
9084        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9085        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086        if diff conftest.exp conftest.er2 >/dev/null; then
9087          lt_cv_prog_compiler__b=yes
9088        fi
9089      else
9090        lt_cv_prog_compiler__b=yes
9091      fi
9092    fi
9093    $RM -r conftest*
9094    LDFLAGS="$save_LDFLAGS"
9095
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9098 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9099
9100 if test x"$lt_cv_prog_compiler__b" = xyes; then
9101     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9102 else
9103     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9104 fi
9105
9106           ;;
9107         esac
9108       fi
9109       if test "$with_gnu_ld" = no; then
9110         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9111         hardcode_libdir_separator=:
9112
9113         case $host_cpu in
9114         hppa*64*|ia64*)
9115           hardcode_direct=no
9116           hardcode_shlibpath_var=no
9117           ;;
9118         *)
9119           hardcode_direct=yes
9120           hardcode_direct_absolute=yes
9121           export_dynamic_flag_spec='${wl}-E'
9122
9123           # hardcode_minus_L: Not really in the search PATH,
9124           # but as the default location of the library.
9125           hardcode_minus_L=yes
9126           ;;
9127         esac
9128       fi
9129       ;;
9130
9131     irix5* | irix6* | nonstopux*)
9132       if test "$GCC" = yes; then
9133         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'
9134         # Try to use the -exported_symbol ld option, if it does not
9135         # work, assume that -exports_file does not work either and
9136         # implicitly export all symbols.
9137         # This should be the same for all languages, so no per-tag cache variable.
9138         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9139 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9140 if ${lt_cv_irix_exported_symbol+:} false; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   save_LDFLAGS="$LDFLAGS"
9144            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9145            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h.  */
9147 int foo (void) { return 0; }
9148 _ACEOF
9149 if ac_fn_c_try_link "$LINENO"; then :
9150   lt_cv_irix_exported_symbol=yes
9151 else
9152   lt_cv_irix_exported_symbol=no
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext \
9155     conftest$ac_exeext conftest.$ac_ext
9156            LDFLAGS="$save_LDFLAGS"
9157 fi
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9159 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9160         if test "$lt_cv_irix_exported_symbol" = yes; then
9161           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'
9162         fi
9163       else
9164         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'
9165         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'
9166       fi
9167       archive_cmds_need_lc='no'
9168       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169       hardcode_libdir_separator=:
9170       inherit_rpath=yes
9171       link_all_deplibs=yes
9172       ;;
9173
9174     netbsd*)
9175       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9176         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9177       else
9178         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9179       fi
9180       hardcode_libdir_flag_spec='-R$libdir'
9181       hardcode_direct=yes
9182       hardcode_shlibpath_var=no
9183       ;;
9184
9185     newsos6)
9186       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187       hardcode_direct=yes
9188       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189       hardcode_libdir_separator=:
9190       hardcode_shlibpath_var=no
9191       ;;
9192
9193     *nto* | *qnx*)
9194       ;;
9195
9196     openbsd*)
9197       if test -f /usr/libexec/ld.so; then
9198         hardcode_direct=yes
9199         hardcode_shlibpath_var=no
9200         hardcode_direct_absolute=yes
9201         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9202           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9203           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9204           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9205           export_dynamic_flag_spec='${wl}-E'
9206         else
9207           case $host_os in
9208            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9209              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9210              hardcode_libdir_flag_spec='-R$libdir'
9211              ;;
9212            *)
9213              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9214              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9215              ;;
9216           esac
9217         fi
9218       else
9219         ld_shlibs=no
9220       fi
9221       ;;
9222
9223     os2*)
9224       hardcode_libdir_flag_spec='-L$libdir'
9225       hardcode_minus_L=yes
9226       allow_undefined_flag=unsupported
9227       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'
9228       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9229       ;;
9230
9231     osf3*)
9232       if test "$GCC" = yes; then
9233         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234         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'
9235       else
9236         allow_undefined_flag=' -expect_unresolved \*'
9237         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'
9238       fi
9239       archive_cmds_need_lc='no'
9240       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241       hardcode_libdir_separator=:
9242       ;;
9243
9244     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9245       if test "$GCC" = yes; then
9246         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9247         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'
9248         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249       else
9250         allow_undefined_flag=' -expect_unresolved \*'
9251         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'
9252         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~
9253         $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'
9254
9255         # Both c and cxx compiler support -rpath directly
9256         hardcode_libdir_flag_spec='-rpath $libdir'
9257       fi
9258       archive_cmds_need_lc='no'
9259       hardcode_libdir_separator=:
9260       ;;
9261
9262     solaris*)
9263       no_undefined_flag=' -z defs'
9264       if test "$GCC" = yes; then
9265         wlarc='${wl}'
9266         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268           $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'
9269       else
9270         case `$CC -V 2>&1` in
9271         *"Compilers 5.0"*)
9272           wlarc=''
9273           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9275           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9276           ;;
9277         *)
9278           wlarc='${wl}'
9279           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9280           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9282           ;;
9283         esac
9284       fi
9285       hardcode_libdir_flag_spec='-R$libdir'
9286       hardcode_shlibpath_var=no
9287       case $host_os in
9288       solaris2.[0-5] | solaris2.[0-5].*) ;;
9289       *)
9290         # The compiler driver will combine and reorder linker options,
9291         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9292         # but is careful enough not to reorder.
9293         # Supported since Solaris 2.6 (maybe 2.5.1?)
9294         if test "$GCC" = yes; then
9295           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9296         else
9297           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9298         fi
9299         ;;
9300       esac
9301       link_all_deplibs=yes
9302       ;;
9303
9304     sunos4*)
9305       if test "x$host_vendor" = xsequent; then
9306         # Use $CC to link under sequent, because it throws in some extra .o
9307         # files that make .init and .fini sections work.
9308         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309       else
9310         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9311       fi
9312       hardcode_libdir_flag_spec='-L$libdir'
9313       hardcode_direct=yes
9314       hardcode_minus_L=yes
9315       hardcode_shlibpath_var=no
9316       ;;
9317
9318     sysv4)
9319       case $host_vendor in
9320         sni)
9321           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322           hardcode_direct=yes # is this really true???
9323         ;;
9324         siemens)
9325           ## LD is ld it makes a PLAMLIB
9326           ## CC just makes a GrossModule.
9327           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9328           reload_cmds='$CC -r -o $output$reload_objs'
9329           hardcode_direct=no
9330         ;;
9331         motorola)
9332           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9334         ;;
9335       esac
9336       runpath_var='LD_RUN_PATH'
9337       hardcode_shlibpath_var=no
9338       ;;
9339
9340     sysv4.3*)
9341       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342       hardcode_shlibpath_var=no
9343       export_dynamic_flag_spec='-Bexport'
9344       ;;
9345
9346     sysv4*MP*)
9347       if test -d /usr/nec; then
9348         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349         hardcode_shlibpath_var=no
9350         runpath_var=LD_RUN_PATH
9351         hardcode_runpath_var=yes
9352         ld_shlibs=yes
9353       fi
9354       ;;
9355
9356     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9357       no_undefined_flag='${wl}-z,text'
9358       archive_cmds_need_lc=no
9359       hardcode_shlibpath_var=no
9360       runpath_var='LD_RUN_PATH'
9361
9362       if test "$GCC" = yes; then
9363         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365       else
9366         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368       fi
9369       ;;
9370
9371     sysv5* | sco3.2v5* | sco5v6*)
9372       # Note: We can NOT use -z defs as we might desire, because we do not
9373       # link with -lc, and that would cause any symbols used from libc to
9374       # always be unresolved, which means just about no library would
9375       # ever link correctly.  If we're not using GNU ld we use -z text
9376       # though, which does catch some bad symbols but isn't as heavy-handed
9377       # as -z defs.
9378       no_undefined_flag='${wl}-z,text'
9379       allow_undefined_flag='${wl}-z,nodefs'
9380       archive_cmds_need_lc=no
9381       hardcode_shlibpath_var=no
9382       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9383       hardcode_libdir_separator=':'
9384       link_all_deplibs=yes
9385       export_dynamic_flag_spec='${wl}-Bexport'
9386       runpath_var='LD_RUN_PATH'
9387
9388       if test "$GCC" = yes; then
9389         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391       else
9392         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394       fi
9395       ;;
9396
9397     uts4*)
9398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399       hardcode_libdir_flag_spec='-L$libdir'
9400       hardcode_shlibpath_var=no
9401       ;;
9402
9403     *)
9404       ld_shlibs=no
9405       ;;
9406     esac
9407
9408     if test x$host_vendor = xsni; then
9409       case $host in
9410       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9411         export_dynamic_flag_spec='${wl}-Blargedynsym'
9412         ;;
9413       esac
9414     fi
9415   fi
9416
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9418 $as_echo "$ld_shlibs" >&6; }
9419 test "$ld_shlibs" = no && can_build_shared=no
9420
9421 with_gnu_ld=$with_gnu_ld
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437 #
9438 # Do we need to explicitly link libc?
9439 #
9440 case "x$archive_cmds_need_lc" in
9441 x|xyes)
9442   # Assume -lc should be added
9443   archive_cmds_need_lc=yes
9444
9445   if test "$enable_shared" = yes && test "$GCC" = yes; then
9446     case $archive_cmds in
9447     *'~'*)
9448       # FIXME: we may have to deal with multi-command sequences.
9449       ;;
9450     '$CC '*)
9451       # Test whether the compiler implicitly links with -lc since on some
9452       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9453       # to ld, don't add -lc before -lgcc.
9454       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9455 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9456 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9457   $as_echo_n "(cached) " >&6
9458 else
9459   $RM conftest*
9460         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9461
9462         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9463   (eval $ac_compile) 2>&5
9464   ac_status=$?
9465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9466   test $ac_status = 0; } 2>conftest.err; then
9467           soname=conftest
9468           lib=conftest
9469           libobjs=conftest.$ac_objext
9470           deplibs=
9471           wl=$lt_prog_compiler_wl
9472           pic_flag=$lt_prog_compiler_pic
9473           compiler_flags=-v
9474           linker_flags=-v
9475           verstring=
9476           output_objdir=.
9477           libname=conftest
9478           lt_save_allow_undefined_flag=$allow_undefined_flag
9479           allow_undefined_flag=
9480           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9481   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9482   ac_status=$?
9483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484   test $ac_status = 0; }
9485           then
9486             lt_cv_archive_cmds_need_lc=no
9487           else
9488             lt_cv_archive_cmds_need_lc=yes
9489           fi
9490           allow_undefined_flag=$lt_save_allow_undefined_flag
9491         else
9492           cat conftest.err 1>&5
9493         fi
9494         $RM conftest*
9495
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9498 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9499       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9500       ;;
9501     esac
9502   fi
9503   ;;
9504 esac
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9658 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9659
9660 if test "$GCC" = yes; then
9661   case $host_os in
9662     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9663     *) lt_awk_arg="/^libraries:/" ;;
9664   esac
9665   case $host_os in
9666     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9667     *) lt_sed_strip_eq="s,=/,/,g" ;;
9668   esac
9669   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9670   case $lt_search_path_spec in
9671   *\;*)
9672     # if the path contains ";" then we assume it to be the separator
9673     # otherwise default to the standard path separator (i.e. ":") - it is
9674     # assumed that no part of a normal pathname contains ";" but that should
9675     # okay in the real world where ";" in dirpaths is itself problematic.
9676     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9677     ;;
9678   *)
9679     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9680     ;;
9681   esac
9682   # Ok, now we have the path, separated by spaces, we can step through it
9683   # and add multilib dir if necessary.
9684   lt_tmp_lt_search_path_spec=
9685   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9686   for lt_sys_path in $lt_search_path_spec; do
9687     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9688       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9689     else
9690       test -d "$lt_sys_path" && \
9691         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9692     fi
9693   done
9694   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9695 BEGIN {RS=" "; FS="/|\n";} {
9696   lt_foo="";
9697   lt_count=0;
9698   for (lt_i = NF; lt_i > 0; lt_i--) {
9699     if ($lt_i != "" && $lt_i != ".") {
9700       if ($lt_i == "..") {
9701         lt_count++;
9702       } else {
9703         if (lt_count == 0) {
9704           lt_foo="/" $lt_i lt_foo;
9705         } else {
9706           lt_count--;
9707         }
9708       }
9709     }
9710   }
9711   if (lt_foo != "") { lt_freq[lt_foo]++; }
9712   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9713 }'`
9714   # AWK program above erroneously prepends '/' to C:/dos/paths
9715   # for these hosts.
9716   case $host_os in
9717     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9718       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9719   esac
9720   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9721 else
9722   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9723 fi
9724 library_names_spec=
9725 libname_spec='lib$name'
9726 soname_spec=
9727 shrext_cmds=".so"
9728 postinstall_cmds=
9729 postuninstall_cmds=
9730 finish_cmds=
9731 finish_eval=
9732 shlibpath_var=
9733 shlibpath_overrides_runpath=unknown
9734 version_type=none
9735 dynamic_linker="$host_os ld.so"
9736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9737 need_lib_prefix=unknown
9738 hardcode_into_libs=no
9739
9740 # when you set need_version to no, make sure it does not cause -set_version
9741 # flags to be left without arguments
9742 need_version=unknown
9743
9744 case $host_os in
9745 aix3*)
9746   version_type=linux # correct to gnu/linux during the next big refactor
9747   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9748   shlibpath_var=LIBPATH
9749
9750   # AIX 3 has no versioning support, so we append a major version to the name.
9751   soname_spec='${libname}${release}${shared_ext}$major'
9752   ;;
9753
9754 aix[4-9]*)
9755   version_type=linux # correct to gnu/linux during the next big refactor
9756   need_lib_prefix=no
9757   need_version=no
9758   hardcode_into_libs=yes
9759   if test "$host_cpu" = ia64; then
9760     # AIX 5 supports IA64
9761     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9762     shlibpath_var=LD_LIBRARY_PATH
9763   else
9764     # With GCC up to 2.95.x, collect2 would create an import file
9765     # for dependence libraries.  The import file would start with
9766     # the line `#! .'.  This would cause the generated library to
9767     # depend on `.', always an invalid library.  This was fixed in
9768     # development snapshots of GCC prior to 3.0.
9769     case $host_os in
9770       aix4 | aix4.[01] | aix4.[01].*)
9771       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9772            echo ' yes '
9773            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9774         :
9775       else
9776         can_build_shared=no
9777       fi
9778       ;;
9779     esac
9780     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9781     # soname into executable. Probably we can add versioning support to
9782     # collect2, so additional links can be useful in future.
9783     if test "$aix_use_runtimelinking" = yes; then
9784       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9785       # instead of lib<name>.a to let people know that these are not
9786       # typical AIX shared libraries.
9787       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788     else
9789       # We preserve .a as extension for shared libraries through AIX4.2
9790       # and later when we are not doing run time linking.
9791       library_names_spec='${libname}${release}.a $libname.a'
9792       soname_spec='${libname}${release}${shared_ext}$major'
9793     fi
9794     shlibpath_var=LIBPATH
9795   fi
9796   ;;
9797
9798 amigaos*)
9799   case $host_cpu in
9800   powerpc)
9801     # Since July 2007 AmigaOS4 officially supports .so libraries.
9802     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804     ;;
9805   m68k)
9806     library_names_spec='$libname.ixlibrary $libname.a'
9807     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9808     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'
9809     ;;
9810   esac
9811   ;;
9812
9813 beos*)
9814   library_names_spec='${libname}${shared_ext}'
9815   dynamic_linker="$host_os ld.so"
9816   shlibpath_var=LIBRARY_PATH
9817   ;;
9818
9819 bsdi[45]*)
9820   version_type=linux # correct to gnu/linux during the next big refactor
9821   need_version=no
9822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823   soname_spec='${libname}${release}${shared_ext}$major'
9824   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9825   shlibpath_var=LD_LIBRARY_PATH
9826   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9827   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9828   # the default ld.so.conf also contains /usr/contrib/lib and
9829   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9830   # libtool to hard-code these into programs
9831   ;;
9832
9833 cygwin* | mingw* | pw32* | cegcc*)
9834   version_type=windows
9835   shrext_cmds=".dll"
9836   need_version=no
9837   need_lib_prefix=no
9838
9839   case $GCC,$cc_basename in
9840   yes,*)
9841     # gcc
9842     library_names_spec='$libname.dll.a'
9843     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9844     postinstall_cmds='base_file=`basename \${file}`~
9845       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9846       dldir=$destdir/`dirname \$dlpath`~
9847       test -d \$dldir || mkdir -p \$dldir~
9848       $install_prog $dir/$dlname \$dldir/$dlname~
9849       chmod a+x \$dldir/$dlname~
9850       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9851         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9852       fi'
9853     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9854       dlpath=$dir/\$dldll~
9855        $RM \$dlpath'
9856     shlibpath_overrides_runpath=yes
9857
9858     case $host_os in
9859     cygwin*)
9860       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9861       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9862
9863       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9864       ;;
9865     mingw* | cegcc*)
9866       # MinGW DLLs use traditional 'lib' prefix
9867       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9868       ;;
9869     pw32*)
9870       # pw32 DLLs use 'pw' prefix rather than 'lib'
9871       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9872       ;;
9873     esac
9874     dynamic_linker='Win32 ld.exe'
9875     ;;
9876
9877   *,cl*)
9878     # Native MSVC
9879     libname_spec='$name'
9880     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9881     library_names_spec='${libname}.dll.lib'
9882
9883     case $build_os in
9884     mingw*)
9885       sys_lib_search_path_spec=
9886       lt_save_ifs=$IFS
9887       IFS=';'
9888       for lt_path in $LIB
9889       do
9890         IFS=$lt_save_ifs
9891         # Let DOS variable expansion print the short 8.3 style file name.
9892         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9893         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9894       done
9895       IFS=$lt_save_ifs
9896       # Convert to MSYS style.
9897       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9898       ;;
9899     cygwin*)
9900       # Convert to unix form, then to dos form, then back to unix form
9901       # but this time dos style (no spaces!) so that the unix form looks
9902       # like /cygdrive/c/PROGRA~1:/cygdr...
9903       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9904       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9905       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9906       ;;
9907     *)
9908       sys_lib_search_path_spec="$LIB"
9909       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9910         # It is most probably a Windows format PATH.
9911         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9912       else
9913         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9914       fi
9915       # FIXME: find the short name or the path components, as spaces are
9916       # common. (e.g. "Program Files" -> "PROGRA~1")
9917       ;;
9918     esac
9919
9920     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9921     postinstall_cmds='base_file=`basename \${file}`~
9922       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9923       dldir=$destdir/`dirname \$dlpath`~
9924       test -d \$dldir || mkdir -p \$dldir~
9925       $install_prog $dir/$dlname \$dldir/$dlname'
9926     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9927       dlpath=$dir/\$dldll~
9928        $RM \$dlpath'
9929     shlibpath_overrides_runpath=yes
9930     dynamic_linker='Win32 link.exe'
9931     ;;
9932
9933   *)
9934     # Assume MSVC wrapper
9935     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9936     dynamic_linker='Win32 ld.exe'
9937     ;;
9938   esac
9939   # FIXME: first we should search . and the directory the executable is in
9940   shlibpath_var=PATH
9941   ;;
9942
9943 darwin* | rhapsody*)
9944   dynamic_linker="$host_os dyld"
9945   version_type=darwin
9946   need_lib_prefix=no
9947   need_version=no
9948   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9949   soname_spec='${libname}${release}${major}$shared_ext'
9950   shlibpath_overrides_runpath=yes
9951   shlibpath_var=DYLD_LIBRARY_PATH
9952   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9953
9954   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9955   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9956   ;;
9957
9958 dgux*)
9959   version_type=linux # correct to gnu/linux during the next big refactor
9960   need_lib_prefix=no
9961   need_version=no
9962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9963   soname_spec='${libname}${release}${shared_ext}$major'
9964   shlibpath_var=LD_LIBRARY_PATH
9965   ;;
9966
9967 freebsd* | dragonfly*)
9968   # DragonFly does not have aout.  When/if they implement a new
9969   # versioning mechanism, adjust this.
9970   if test -x /usr/bin/objformat; then
9971     objformat=`/usr/bin/objformat`
9972   else
9973     case $host_os in
9974     freebsd[23].*) objformat=aout ;;
9975     *) objformat=elf ;;
9976     esac
9977   fi
9978   version_type=freebsd-$objformat
9979   case $version_type in
9980     freebsd-elf*)
9981       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9982       need_version=no
9983       need_lib_prefix=no
9984       ;;
9985     freebsd-*)
9986       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9987       need_version=yes
9988       ;;
9989   esac
9990   shlibpath_var=LD_LIBRARY_PATH
9991   case $host_os in
9992   freebsd2.*)
9993     shlibpath_overrides_runpath=yes
9994     ;;
9995   freebsd3.[01]* | freebsdelf3.[01]*)
9996     shlibpath_overrides_runpath=yes
9997     hardcode_into_libs=yes
9998     ;;
9999   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10000   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10001     shlibpath_overrides_runpath=no
10002     hardcode_into_libs=yes
10003     ;;
10004   *) # from 4.6 on, and DragonFly
10005     shlibpath_overrides_runpath=yes
10006     hardcode_into_libs=yes
10007     ;;
10008   esac
10009   ;;
10010
10011 gnu*)
10012   version_type=linux # correct to gnu/linux during the next big refactor
10013   need_lib_prefix=no
10014   need_version=no
10015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10016   soname_spec='${libname}${release}${shared_ext}$major'
10017   shlibpath_var=LD_LIBRARY_PATH
10018   shlibpath_overrides_runpath=no
10019   hardcode_into_libs=yes
10020   ;;
10021
10022 haiku*)
10023   version_type=linux # correct to gnu/linux during the next big refactor
10024   need_lib_prefix=no
10025   need_version=no
10026   dynamic_linker="$host_os runtime_loader"
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   shlibpath_var=LIBRARY_PATH
10030   shlibpath_overrides_runpath=yes
10031   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10032   hardcode_into_libs=yes
10033   ;;
10034
10035 hpux9* | hpux10* | hpux11*)
10036   # Give a soname corresponding to the major version so that dld.sl refuses to
10037   # link against other versions.
10038   version_type=sunos
10039   need_lib_prefix=no
10040   need_version=no
10041   case $host_cpu in
10042   ia64*)
10043     shrext_cmds='.so'
10044     hardcode_into_libs=yes
10045     dynamic_linker="$host_os dld.so"
10046     shlibpath_var=LD_LIBRARY_PATH
10047     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049     soname_spec='${libname}${release}${shared_ext}$major'
10050     if test "X$HPUX_IA64_MODE" = X32; then
10051       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10052     else
10053       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10054     fi
10055     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10056     ;;
10057   hppa*64*)
10058     shrext_cmds='.sl'
10059     hardcode_into_libs=yes
10060     dynamic_linker="$host_os dld.sl"
10061     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10062     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064     soname_spec='${libname}${release}${shared_ext}$major'
10065     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10067     ;;
10068   *)
10069     shrext_cmds='.sl'
10070     dynamic_linker="$host_os dld.sl"
10071     shlibpath_var=SHLIB_PATH
10072     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074     soname_spec='${libname}${release}${shared_ext}$major'
10075     ;;
10076   esac
10077   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10078   postinstall_cmds='chmod 555 $lib'
10079   # or fails outright, so override atomically:
10080   install_override_mode=555
10081   ;;
10082
10083 interix[3-9]*)
10084   version_type=linux # correct to gnu/linux during the next big refactor
10085   need_lib_prefix=no
10086   need_version=no
10087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10088   soname_spec='${libname}${release}${shared_ext}$major'
10089   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10090   shlibpath_var=LD_LIBRARY_PATH
10091   shlibpath_overrides_runpath=no
10092   hardcode_into_libs=yes
10093   ;;
10094
10095 irix5* | irix6* | nonstopux*)
10096   case $host_os in
10097     nonstopux*) version_type=nonstopux ;;
10098     *)
10099         if test "$lt_cv_prog_gnu_ld" = yes; then
10100                 version_type=linux # correct to gnu/linux during the next big refactor
10101         else
10102                 version_type=irix
10103         fi ;;
10104   esac
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}${release}${shared_ext} $libname${shared_ext}'
10109   case $host_os in
10110   irix5* | nonstopux*)
10111     libsuff= shlibsuff=
10112     ;;
10113   *)
10114     case $LD in # libtool.m4 will add one of these switches to LD
10115     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10116       libsuff= shlibsuff= libmagic=32-bit;;
10117     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10118       libsuff=32 shlibsuff=N32 libmagic=N32;;
10119     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10120       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10121     *) libsuff= shlibsuff= libmagic=never-match;;
10122     esac
10123     ;;
10124   esac
10125   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10126   shlibpath_overrides_runpath=no
10127   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10128   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10129   hardcode_into_libs=yes
10130   ;;
10131
10132 # No shared lib support for Linux oldld, aout, or coff.
10133 linux*oldld* | linux*aout* | linux*coff*)
10134   dynamic_linker=no
10135   ;;
10136
10137 # This must be glibc/ELF.
10138 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10139   version_type=linux # correct to gnu/linux during the next big refactor
10140   need_lib_prefix=no
10141   need_version=no
10142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143   soname_spec='${libname}${release}${shared_ext}$major'
10144   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10145   shlibpath_var=LD_LIBRARY_PATH
10146   shlibpath_overrides_runpath=no
10147
10148   # Some binutils ld are patched to set DT_RUNPATH
10149   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10150   $as_echo_n "(cached) " >&6
10151 else
10152   lt_cv_shlibpath_overrides_runpath=no
10153     save_LDFLAGS=$LDFLAGS
10154     save_libdir=$libdir
10155     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10156          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h.  */
10159
10160 int
10161 main ()
10162 {
10163
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 if ac_fn_c_try_link "$LINENO"; then :
10169   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10170   lt_cv_shlibpath_overrides_runpath=yes
10171 fi
10172 fi
10173 rm -f core conftest.err conftest.$ac_objext \
10174     conftest$ac_exeext conftest.$ac_ext
10175     LDFLAGS=$save_LDFLAGS
10176     libdir=$save_libdir
10177
10178 fi
10179
10180   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10181
10182   # This implies no fast_install, which is unacceptable.
10183   # Some rework will be needed to allow for fast_install
10184   # before this can be enabled.
10185   hardcode_into_libs=yes
10186
10187   # Append ld.so.conf contents to the search path
10188   if test -f /etc/ld.so.conf; then
10189     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' ' '`
10190     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10191   fi
10192
10193   # We used to test for /lib/ld.so.1 and disable shared libraries on
10194   # powerpc, because MkLinux only supported shared libraries with the
10195   # GNU dynamic linker.  Since this was broken with cross compilers,
10196   # most powerpc-linux boxes support dynamic linking these days and
10197   # people can always --disable-shared, the test was removed, and we
10198   # assume the GNU/Linux dynamic linker is in use.
10199   dynamic_linker='GNU/Linux ld.so'
10200   ;;
10201
10202 netbsd*)
10203   version_type=sunos
10204   need_lib_prefix=no
10205   need_version=no
10206   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10208     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10209     dynamic_linker='NetBSD (a.out) ld.so'
10210   else
10211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10212     soname_spec='${libname}${release}${shared_ext}$major'
10213     dynamic_linker='NetBSD ld.elf_so'
10214   fi
10215   shlibpath_var=LD_LIBRARY_PATH
10216   shlibpath_overrides_runpath=yes
10217   hardcode_into_libs=yes
10218   ;;
10219
10220 newsos6)
10221   version_type=linux # correct to gnu/linux during the next big refactor
10222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223   shlibpath_var=LD_LIBRARY_PATH
10224   shlibpath_overrides_runpath=yes
10225   ;;
10226
10227 *nto* | *qnx*)
10228   version_type=qnx
10229   need_lib_prefix=no
10230   need_version=no
10231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232   soname_spec='${libname}${release}${shared_ext}$major'
10233   shlibpath_var=LD_LIBRARY_PATH
10234   shlibpath_overrides_runpath=no
10235   hardcode_into_libs=yes
10236   dynamic_linker='ldqnx.so'
10237   ;;
10238
10239 openbsd*)
10240   version_type=sunos
10241   sys_lib_dlsearch_path_spec="/usr/lib"
10242   need_lib_prefix=no
10243   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10244   case $host_os in
10245     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10246     *)                          need_version=no  ;;
10247   esac
10248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10249   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10250   shlibpath_var=LD_LIBRARY_PATH
10251   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10252     case $host_os in
10253       openbsd2.[89] | openbsd2.[89].*)
10254         shlibpath_overrides_runpath=no
10255         ;;
10256       *)
10257         shlibpath_overrides_runpath=yes
10258         ;;
10259       esac
10260   else
10261     shlibpath_overrides_runpath=yes
10262   fi
10263   ;;
10264
10265 os2*)
10266   libname_spec='$name'
10267   shrext_cmds=".dll"
10268   need_lib_prefix=no
10269   library_names_spec='$libname${shared_ext} $libname.a'
10270   dynamic_linker='OS/2 ld.exe'
10271   shlibpath_var=LIBPATH
10272   ;;
10273
10274 osf3* | osf4* | osf5*)
10275   version_type=osf
10276   need_lib_prefix=no
10277   need_version=no
10278   soname_spec='${libname}${release}${shared_ext}$major'
10279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280   shlibpath_var=LD_LIBRARY_PATH
10281   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10282   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10283   ;;
10284
10285 rdos*)
10286   dynamic_linker=no
10287   ;;
10288
10289 solaris*)
10290   version_type=linux # correct to gnu/linux during the next big refactor
10291   need_lib_prefix=no
10292   need_version=no
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294   soname_spec='${libname}${release}${shared_ext}$major'
10295   shlibpath_var=LD_LIBRARY_PATH
10296   shlibpath_overrides_runpath=yes
10297   hardcode_into_libs=yes
10298   # ldd complains unless libraries are executable
10299   postinstall_cmds='chmod +x $lib'
10300   ;;
10301
10302 sunos4*)
10303   version_type=sunos
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10305   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10306   shlibpath_var=LD_LIBRARY_PATH
10307   shlibpath_overrides_runpath=yes
10308   if test "$with_gnu_ld" = yes; then
10309     need_lib_prefix=no
10310   fi
10311   need_version=yes
10312   ;;
10313
10314 sysv4 | sysv4.3*)
10315   version_type=linux # correct to gnu/linux during the next big refactor
10316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317   soname_spec='${libname}${release}${shared_ext}$major'
10318   shlibpath_var=LD_LIBRARY_PATH
10319   case $host_vendor in
10320     sni)
10321       shlibpath_overrides_runpath=no
10322       need_lib_prefix=no
10323       runpath_var=LD_RUN_PATH
10324       ;;
10325     siemens)
10326       need_lib_prefix=no
10327       ;;
10328     motorola)
10329       need_lib_prefix=no
10330       need_version=no
10331       shlibpath_overrides_runpath=no
10332       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10333       ;;
10334   esac
10335   ;;
10336
10337 sysv4*MP*)
10338   if test -d /usr/nec ;then
10339     version_type=linux # correct to gnu/linux during the next big refactor
10340     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10341     soname_spec='$libname${shared_ext}.$major'
10342     shlibpath_var=LD_LIBRARY_PATH
10343   fi
10344   ;;
10345
10346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10347   version_type=freebsd-elf
10348   need_lib_prefix=no
10349   need_version=no
10350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10351   soname_spec='${libname}${release}${shared_ext}$major'
10352   shlibpath_var=LD_LIBRARY_PATH
10353   shlibpath_overrides_runpath=yes
10354   hardcode_into_libs=yes
10355   if test "$with_gnu_ld" = yes; then
10356     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10357   else
10358     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10359     case $host_os in
10360       sco3.2v5*)
10361         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10362         ;;
10363     esac
10364   fi
10365   sys_lib_dlsearch_path_spec='/usr/lib'
10366   ;;
10367
10368 tpf*)
10369   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10370   version_type=linux # correct to gnu/linux during the next big refactor
10371   need_lib_prefix=no
10372   need_version=no
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374   shlibpath_var=LD_LIBRARY_PATH
10375   shlibpath_overrides_runpath=no
10376   hardcode_into_libs=yes
10377   ;;
10378
10379 uts4*)
10380   version_type=linux # correct to gnu/linux during the next big refactor
10381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382   soname_spec='${libname}${release}${shared_ext}$major'
10383   shlibpath_var=LD_LIBRARY_PATH
10384   ;;
10385
10386 *)
10387   dynamic_linker=no
10388   ;;
10389 esac
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10391 $as_echo "$dynamic_linker" >&6; }
10392 test "$dynamic_linker" = no && can_build_shared=no
10393
10394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10395 if test "$GCC" = yes; then
10396   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10397 fi
10398
10399 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10400   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10401 fi
10402 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10403   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10404 fi
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10498 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10499 hardcode_action=
10500 if test -n "$hardcode_libdir_flag_spec" ||
10501    test -n "$runpath_var" ||
10502    test "X$hardcode_automatic" = "Xyes" ; then
10503
10504   # We can hardcode non-existent directories.
10505   if test "$hardcode_direct" != no &&
10506      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10507      # have to relink, otherwise we might link with an installed library
10508      # when we should be linking with a yet-to-be-installed one
10509      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10510      test "$hardcode_minus_L" != no; then
10511     # Linking always hardcodes the temporary library directory.
10512     hardcode_action=relink
10513   else
10514     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10515     hardcode_action=immediate
10516   fi
10517 else
10518   # We cannot hardcode anything, or else we can only hardcode existing
10519   # directories.
10520   hardcode_action=unsupported
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10523 $as_echo "$hardcode_action" >&6; }
10524
10525 if test "$hardcode_action" = relink ||
10526    test "$inherit_rpath" = yes; then
10527   # Fast installation is not supported
10528   enable_fast_install=no
10529 elif test "$shlibpath_overrides_runpath" = yes ||
10530      test "$enable_shared" = no; then
10531   # Fast installation is not necessary
10532   enable_fast_install=needless
10533 fi
10534
10535
10536
10537
10538
10539
10540   if test "x$enable_dlopen" != xyes; then
10541   enable_dlopen=unknown
10542   enable_dlopen_self=unknown
10543   enable_dlopen_self_static=unknown
10544 else
10545   lt_cv_dlopen=no
10546   lt_cv_dlopen_libs=
10547
10548   case $host_os in
10549   beos*)
10550     lt_cv_dlopen="load_add_on"
10551     lt_cv_dlopen_libs=
10552     lt_cv_dlopen_self=yes
10553     ;;
10554
10555   mingw* | pw32* | cegcc*)
10556     lt_cv_dlopen="LoadLibrary"
10557     lt_cv_dlopen_libs=
10558     ;;
10559
10560   cygwin*)
10561     lt_cv_dlopen="dlopen"
10562     lt_cv_dlopen_libs=
10563     ;;
10564
10565   darwin*)
10566   # if libdl is installed we need to link against it
10567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10568 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10569 if ${ac_cv_lib_dl_dlopen+:} false; then :
10570   $as_echo_n "(cached) " >&6
10571 else
10572   ac_check_lib_save_LIBS=$LIBS
10573 LIBS="-ldl  $LIBS"
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h.  */
10576
10577 /* Override any GCC internal prototype to avoid an error.
10578    Use char because int might match the return type of a GCC
10579    builtin and then its argument prototype would still apply.  */
10580 #ifdef __cplusplus
10581 extern "C"
10582 #endif
10583 char dlopen ();
10584 int
10585 main ()
10586 {
10587 return dlopen ();
10588   ;
10589   return 0;
10590 }
10591 _ACEOF
10592 if ac_fn_c_try_link "$LINENO"; then :
10593   ac_cv_lib_dl_dlopen=yes
10594 else
10595   ac_cv_lib_dl_dlopen=no
10596 fi
10597 rm -f core conftest.err conftest.$ac_objext \
10598     conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10600 fi
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10602 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10603 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10604   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10605 else
10606
10607     lt_cv_dlopen="dyld"
10608     lt_cv_dlopen_libs=
10609     lt_cv_dlopen_self=yes
10610
10611 fi
10612
10613     ;;
10614
10615   *)
10616     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10617 if test "x$ac_cv_func_shl_load" = xyes; then :
10618   lt_cv_dlopen="shl_load"
10619 else
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10621 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10622 if ${ac_cv_lib_dld_shl_load+:} false; then :
10623   $as_echo_n "(cached) " >&6
10624 else
10625   ac_check_lib_save_LIBS=$LIBS
10626 LIBS="-ldld  $LIBS"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h.  */
10629
10630 /* Override any GCC internal prototype to avoid an error.
10631    Use char because int might match the return type of a GCC
10632    builtin and then its argument prototype would still apply.  */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 char shl_load ();
10637 int
10638 main ()
10639 {
10640 return shl_load ();
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 if ac_fn_c_try_link "$LINENO"; then :
10646   ac_cv_lib_dld_shl_load=yes
10647 else
10648   ac_cv_lib_dld_shl_load=no
10649 fi
10650 rm -f core conftest.err conftest.$ac_objext \
10651     conftest$ac_exeext conftest.$ac_ext
10652 LIBS=$ac_check_lib_save_LIBS
10653 fi
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10655 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10656 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10657   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10658 else
10659   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10660 if test "x$ac_cv_func_dlopen" = xyes; then :
10661   lt_cv_dlopen="dlopen"
10662 else
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10664 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10665 if ${ac_cv_lib_dl_dlopen+:} false; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   ac_check_lib_save_LIBS=$LIBS
10669 LIBS="-ldl  $LIBS"
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h.  */
10672
10673 /* Override any GCC internal prototype to avoid an error.
10674    Use char because int might match the return type of a GCC
10675    builtin and then its argument prototype would still apply.  */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 char dlopen ();
10680 int
10681 main ()
10682 {
10683 return dlopen ();
10684   ;
10685   return 0;
10686 }
10687 _ACEOF
10688 if ac_fn_c_try_link "$LINENO"; then :
10689   ac_cv_lib_dl_dlopen=yes
10690 else
10691   ac_cv_lib_dl_dlopen=no
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext \
10694     conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10696 fi
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10698 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10699 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10701 else
10702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10703 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10704 if ${ac_cv_lib_svld_dlopen+:} false; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707   ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-lsvld  $LIBS"
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h.  */
10711
10712 /* Override any GCC internal prototype to avoid an error.
10713    Use char because int might match the return type of a GCC
10714    builtin and then its argument prototype would still apply.  */
10715 #ifdef __cplusplus
10716 extern "C"
10717 #endif
10718 char dlopen ();
10719 int
10720 main ()
10721 {
10722 return dlopen ();
10723   ;
10724   return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728   ac_cv_lib_svld_dlopen=yes
10729 else
10730   ac_cv_lib_svld_dlopen=no
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext \
10733     conftest$ac_exeext conftest.$ac_ext
10734 LIBS=$ac_check_lib_save_LIBS
10735 fi
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10737 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10738 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10739   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10740 else
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10742 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10743 if ${ac_cv_lib_dld_dld_link+:} false; then :
10744   $as_echo_n "(cached) " >&6
10745 else
10746   ac_check_lib_save_LIBS=$LIBS
10747 LIBS="-ldld  $LIBS"
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h.  */
10750
10751 /* Override any GCC internal prototype to avoid an error.
10752    Use char because int might match the return type of a GCC
10753    builtin and then its argument prototype would still apply.  */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char dld_link ();
10758 int
10759 main ()
10760 {
10761 return dld_link ();
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 if ac_fn_c_try_link "$LINENO"; then :
10767   ac_cv_lib_dld_dld_link=yes
10768 else
10769   ac_cv_lib_dld_dld_link=no
10770 fi
10771 rm -f core conftest.err conftest.$ac_objext \
10772     conftest$ac_exeext conftest.$ac_ext
10773 LIBS=$ac_check_lib_save_LIBS
10774 fi
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10776 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10777 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10778   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10779 fi
10780
10781
10782 fi
10783
10784
10785 fi
10786
10787
10788 fi
10789
10790
10791 fi
10792
10793
10794 fi
10795
10796     ;;
10797   esac
10798
10799   if test "x$lt_cv_dlopen" != xno; then
10800     enable_dlopen=yes
10801   else
10802     enable_dlopen=no
10803   fi
10804
10805   case $lt_cv_dlopen in
10806   dlopen)
10807     save_CPPFLAGS="$CPPFLAGS"
10808     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10809
10810     save_LDFLAGS="$LDFLAGS"
10811     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10812
10813     save_LIBS="$LIBS"
10814     LIBS="$lt_cv_dlopen_libs $LIBS"
10815
10816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10817 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10818 if ${lt_cv_dlopen_self+:} false; then :
10819   $as_echo_n "(cached) " >&6
10820 else
10821           if test "$cross_compiling" = yes; then :
10822   lt_cv_dlopen_self=cross
10823 else
10824   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10825   lt_status=$lt_dlunknown
10826   cat > conftest.$ac_ext <<_LT_EOF
10827 #line $LINENO "configure"
10828 #include "confdefs.h"
10829
10830 #if HAVE_DLFCN_H
10831 #include <dlfcn.h>
10832 #endif
10833
10834 #include <stdio.h>
10835
10836 #ifdef RTLD_GLOBAL
10837 #  define LT_DLGLOBAL           RTLD_GLOBAL
10838 #else
10839 #  ifdef DL_GLOBAL
10840 #    define LT_DLGLOBAL         DL_GLOBAL
10841 #  else
10842 #    define LT_DLGLOBAL         0
10843 #  endif
10844 #endif
10845
10846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10847    find out it does not work in some platform. */
10848 #ifndef LT_DLLAZY_OR_NOW
10849 #  ifdef RTLD_LAZY
10850 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10851 #  else
10852 #    ifdef DL_LAZY
10853 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10854 #    else
10855 #      ifdef RTLD_NOW
10856 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10857 #      else
10858 #        ifdef DL_NOW
10859 #          define LT_DLLAZY_OR_NOW      DL_NOW
10860 #        else
10861 #          define LT_DLLAZY_OR_NOW      0
10862 #        endif
10863 #      endif
10864 #    endif
10865 #  endif
10866 #endif
10867
10868 /* When -fvisbility=hidden is used, assume the code has been annotated
10869    correspondingly for the symbols needed.  */
10870 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10871 int fnord () __attribute__((visibility("default")));
10872 #endif
10873
10874 int fnord () { return 42; }
10875 int main ()
10876 {
10877   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10878   int status = $lt_dlunknown;
10879
10880   if (self)
10881     {
10882       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10883       else
10884         {
10885           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10886           else puts (dlerror ());
10887         }
10888       /* dlclose (self); */
10889     }
10890   else
10891     puts (dlerror ());
10892
10893   return status;
10894 }
10895 _LT_EOF
10896   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10897   (eval $ac_link) 2>&5
10898   ac_status=$?
10899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10900   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10901     (./conftest; exit; ) >&5 2>/dev/null
10902     lt_status=$?
10903     case x$lt_status in
10904       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10905       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10906       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10907     esac
10908   else :
10909     # compilation failed
10910     lt_cv_dlopen_self=no
10911   fi
10912 fi
10913 rm -fr conftest*
10914
10915
10916 fi
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10918 $as_echo "$lt_cv_dlopen_self" >&6; }
10919
10920     if test "x$lt_cv_dlopen_self" = xyes; then
10921       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10922       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10923 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10924 if ${lt_cv_dlopen_self_static+:} false; then :
10925   $as_echo_n "(cached) " >&6
10926 else
10927           if test "$cross_compiling" = yes; then :
10928   lt_cv_dlopen_self_static=cross
10929 else
10930   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10931   lt_status=$lt_dlunknown
10932   cat > conftest.$ac_ext <<_LT_EOF
10933 #line $LINENO "configure"
10934 #include "confdefs.h"
10935
10936 #if HAVE_DLFCN_H
10937 #include <dlfcn.h>
10938 #endif
10939
10940 #include <stdio.h>
10941
10942 #ifdef RTLD_GLOBAL
10943 #  define LT_DLGLOBAL           RTLD_GLOBAL
10944 #else
10945 #  ifdef DL_GLOBAL
10946 #    define LT_DLGLOBAL         DL_GLOBAL
10947 #  else
10948 #    define LT_DLGLOBAL         0
10949 #  endif
10950 #endif
10951
10952 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10953    find out it does not work in some platform. */
10954 #ifndef LT_DLLAZY_OR_NOW
10955 #  ifdef RTLD_LAZY
10956 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10957 #  else
10958 #    ifdef DL_LAZY
10959 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10960 #    else
10961 #      ifdef RTLD_NOW
10962 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10963 #      else
10964 #        ifdef DL_NOW
10965 #          define LT_DLLAZY_OR_NOW      DL_NOW
10966 #        else
10967 #          define LT_DLLAZY_OR_NOW      0
10968 #        endif
10969 #      endif
10970 #    endif
10971 #  endif
10972 #endif
10973
10974 /* When -fvisbility=hidden is used, assume the code has been annotated
10975    correspondingly for the symbols needed.  */
10976 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10977 int fnord () __attribute__((visibility("default")));
10978 #endif
10979
10980 int fnord () { return 42; }
10981 int main ()
10982 {
10983   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10984   int status = $lt_dlunknown;
10985
10986   if (self)
10987     {
10988       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10989       else
10990         {
10991           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10992           else puts (dlerror ());
10993         }
10994       /* dlclose (self); */
10995     }
10996   else
10997     puts (dlerror ());
10998
10999   return status;
11000 }
11001 _LT_EOF
11002   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11003   (eval $ac_link) 2>&5
11004   ac_status=$?
11005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11006   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11007     (./conftest; exit; ) >&5 2>/dev/null
11008     lt_status=$?
11009     case x$lt_status in
11010       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11011       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11012       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11013     esac
11014   else :
11015     # compilation failed
11016     lt_cv_dlopen_self_static=no
11017   fi
11018 fi
11019 rm -fr conftest*
11020
11021
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11024 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11025     fi
11026
11027     CPPFLAGS="$save_CPPFLAGS"
11028     LDFLAGS="$save_LDFLAGS"
11029     LIBS="$save_LIBS"
11030     ;;
11031   esac
11032
11033   case $lt_cv_dlopen_self in
11034   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11035   *) enable_dlopen_self=unknown ;;
11036   esac
11037
11038   case $lt_cv_dlopen_self_static in
11039   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11040   *) enable_dlopen_self_static=unknown ;;
11041   esac
11042 fi
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 striplib=
11061 old_striplib=
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11063 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11064 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11065   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11066   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; }
11069 else
11070 # FIXME - insert some real tests, host_os isn't really good enough
11071   case $host_os in
11072   darwin*)
11073     if test -n "$STRIP" ; then
11074       striplib="$STRIP -x"
11075       old_striplib="$STRIP -S"
11076       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11077 $as_echo "yes" >&6; }
11078     else
11079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081     fi
11082     ;;
11083   *)
11084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11086     ;;
11087   esac
11088 fi
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101   # Report which library types will actually be built
11102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11103 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11105 $as_echo "$can_build_shared" >&6; }
11106
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11108 $as_echo_n "checking whether to build shared libraries... " >&6; }
11109   test "$can_build_shared" = "no" && enable_shared=no
11110
11111   # On AIX, shared libraries and static libraries use the same namespace, and
11112   # are all built from PIC.
11113   case $host_os in
11114   aix3*)
11115     test "$enable_shared" = yes && enable_static=no
11116     if test -n "$RANLIB"; then
11117       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11118       postinstall_cmds='$RANLIB $lib'
11119     fi
11120     ;;
11121
11122   aix[4-9]*)
11123     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11124       test "$enable_shared" = yes && enable_static=no
11125     fi
11126     ;;
11127   esac
11128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11129 $as_echo "$enable_shared" >&6; }
11130
11131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11132 $as_echo_n "checking whether to build static libraries... " >&6; }
11133   # Make sure either enable_shared or enable_static is yes.
11134   test "$enable_shared" = yes || enable_static=yes
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11136 $as_echo "$enable_static" >&6; }
11137
11138
11139
11140
11141 fi
11142 ac_ext=c
11143 ac_cpp='$CPP $CPPFLAGS'
11144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11147
11148 CC="$lt_save_CC"
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164         ac_config_commands="$ac_config_commands libtool"
11165
11166
11167
11168
11169 # Only expand once:
11170
11171
11172
11173
11174
11175 ## ---------------------------- ##
11176 ## Libraries required by cdemo. ##
11177 ## ---------------------------- ##
11178 LIBM=
11179 case $host in
11180 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
11181   # These system don't have libm, or don't need it
11182   ;;
11183 *-ncr-sysv4.3*)
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11185 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
11186 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
11187   $as_echo_n "(cached) " >&6
11188 else
11189   ac_check_lib_save_LIBS=$LIBS
11190 LIBS="-lmw  $LIBS"
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h.  */
11193
11194 /* Override any GCC internal prototype to avoid an error.
11195    Use char because int might match the return type of a GCC
11196    builtin and then its argument prototype would still apply.  */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 char _mwvalidcheckl ();
11201 int
11202 main ()
11203 {
11204 return _mwvalidcheckl ();
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 if ac_fn_c_try_link "$LINENO"; then :
11210   ac_cv_lib_mw__mwvalidcheckl=yes
11211 else
11212   ac_cv_lib_mw__mwvalidcheckl=no
11213 fi
11214 rm -f core conftest.err conftest.$ac_objext \
11215     conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11219 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
11220 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
11221   LIBM="-lmw"
11222 fi
11223
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11225 $as_echo_n "checking for cos in -lm... " >&6; }
11226 if ${ac_cv_lib_m_cos+:} false; then :
11227   $as_echo_n "(cached) " >&6
11228 else
11229   ac_check_lib_save_LIBS=$LIBS
11230 LIBS="-lm  $LIBS"
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h.  */
11233
11234 /* Override any GCC internal prototype to avoid an error.
11235    Use char because int might match the return type of a GCC
11236    builtin and then its argument prototype would still apply.  */
11237 #ifdef __cplusplus
11238 extern "C"
11239 #endif
11240 char cos ();
11241 int
11242 main ()
11243 {
11244 return cos ();
11245   ;
11246   return 0;
11247 }
11248 _ACEOF
11249 if ac_fn_c_try_link "$LINENO"; then :
11250   ac_cv_lib_m_cos=yes
11251 else
11252   ac_cv_lib_m_cos=no
11253 fi
11254 rm -f core conftest.err conftest.$ac_objext \
11255     conftest$ac_exeext conftest.$ac_ext
11256 LIBS=$ac_check_lib_save_LIBS
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11259 $as_echo "$ac_cv_lib_m_cos" >&6; }
11260 if test "x$ac_cv_lib_m_cos" = xyes; then :
11261   LIBM="$LIBM -lm"
11262 fi
11263
11264   ;;
11265 *)
11266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11267 $as_echo_n "checking for cos in -lm... " >&6; }
11268 if ${ac_cv_lib_m_cos+:} false; then :
11269   $as_echo_n "(cached) " >&6
11270 else
11271   ac_check_lib_save_LIBS=$LIBS
11272 LIBS="-lm  $LIBS"
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h.  */
11275
11276 /* Override any GCC internal prototype to avoid an error.
11277    Use char because int might match the return type of a GCC
11278    builtin and then its argument prototype would still apply.  */
11279 #ifdef __cplusplus
11280 extern "C"
11281 #endif
11282 char cos ();
11283 int
11284 main ()
11285 {
11286 return cos ();
11287   ;
11288   return 0;
11289 }
11290 _ACEOF
11291 if ac_fn_c_try_link "$LINENO"; then :
11292   ac_cv_lib_m_cos=yes
11293 else
11294   ac_cv_lib_m_cos=no
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext \
11297     conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_lib_save_LIBS
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11301 $as_echo "$ac_cv_lib_m_cos" >&6; }
11302 if test "x$ac_cv_lib_m_cos" = xyes; then :
11303   LIBM="-lm"
11304 fi
11305
11306   ;;
11307 esac
11308
11309
11310
11311
11312 ## -------- ##
11313 ## Outputs. ##
11314 ## -------- ##
11315 ac_config_files="$ac_config_files Makefile"
11316
11317 cat >confcache <<\_ACEOF
11318 # This file is a shell script that caches the results of configure
11319 # tests run on this system so they can be shared between configure
11320 # scripts and configure runs, see configure's option --config-cache.
11321 # It is not useful on other systems.  If it contains results you don't
11322 # want to keep, you may remove or edit it.
11323 #
11324 # config.status only pays attention to the cache file if you give it
11325 # the --recheck option to rerun configure.
11326 #
11327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11329 # following values.
11330
11331 _ACEOF
11332
11333 # The following way of writing the cache mishandles newlines in values,
11334 # but we know of no workaround that is simple, portable, and efficient.
11335 # So, we kill variables containing newlines.
11336 # Ultrix sh set writes to stderr and can't be redirected directly,
11337 # and sets the high bit in the cache file unless we assign to the vars.
11338 (
11339   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11340     eval ac_val=\$$ac_var
11341     case $ac_val in #(
11342     *${as_nl}*)
11343       case $ac_var in #(
11344       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11346       esac
11347       case $ac_var in #(
11348       _ | IFS | as_nl) ;; #(
11349       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11350       *) { eval $ac_var=; unset $ac_var;} ;;
11351       esac ;;
11352     esac
11353   done
11354
11355   (set) 2>&1 |
11356     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11357     *${as_nl}ac_space=\ *)
11358       # `set' does not quote correctly, so add quotes: double-quote
11359       # substitution turns \\\\ into \\, and sed turns \\ into \.
11360       sed -n \
11361         "s/'/'\\\\''/g;
11362           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11363       ;; #(
11364     *)
11365       # `set' quotes correctly as required by POSIX, so do not add quotes.
11366       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11367       ;;
11368     esac |
11369     sort
11370 ) |
11371   sed '
11372      /^ac_cv_env_/b end
11373      t clear
11374      :clear
11375      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11376      t end
11377      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11378      :end' >>confcache
11379 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11380   if test -w "$cache_file"; then
11381     if test "x$cache_file" != "x/dev/null"; then
11382       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11383 $as_echo "$as_me: updating cache $cache_file" >&6;}
11384       if test ! -f "$cache_file" || test -h "$cache_file"; then
11385         cat confcache >"$cache_file"
11386       else
11387         case $cache_file in #(
11388         */* | ?:*)
11389           mv -f confcache "$cache_file"$$ &&
11390           mv -f "$cache_file"$$ "$cache_file" ;; #(
11391         *)
11392           mv -f confcache "$cache_file" ;;
11393         esac
11394       fi
11395     fi
11396   else
11397     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11398 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11399   fi
11400 fi
11401 rm -f confcache
11402
11403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11404 # Let make expand exec_prefix.
11405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11406
11407 # Transform confdefs.h into DEFS.
11408 # Protect against shell expansion while executing Makefile rules.
11409 # Protect against Makefile macro expansion.
11410 #
11411 # If the first sed substitution is executed (which looks for macros that
11412 # take arguments), then branch to the quote section.  Otherwise,
11413 # look for a macro that doesn't take arguments.
11414 ac_script='
11415 :mline
11416 /\\$/{
11417  N
11418  s,\\\n,,
11419  b mline
11420 }
11421 t clear
11422 :clear
11423 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11424 t quote
11425 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11426 t quote
11427 b any
11428 :quote
11429 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11430 s/\[/\\&/g
11431 s/\]/\\&/g
11432 s/\$/$$/g
11433 H
11434 :any
11435 ${
11436         g
11437         s/^\n//
11438         s/\n/ /g
11439         p
11440 }
11441 '
11442 DEFS=`sed -n "$ac_script" confdefs.h`
11443
11444
11445 ac_libobjs=
11446 ac_ltlibobjs=
11447 U=
11448 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11449   # 1. Remove the extension, and $U if already installed.
11450   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11451   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11452   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11453   #    will be set to the directory where LIBOBJS objects are built.
11454   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11455   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11456 done
11457 LIBOBJS=$ac_libobjs
11458
11459 LTLIBOBJS=$ac_ltlibobjs
11460
11461
11462  if test -n "$EXEEXT"; then
11463   am__EXEEXT_TRUE=
11464   am__EXEEXT_FALSE='#'
11465 else
11466   am__EXEEXT_TRUE='#'
11467   am__EXEEXT_FALSE=
11468 fi
11469
11470 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11471   as_fn_error $? "conditional \"AMDEP\" was never defined.
11472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11473 fi
11474 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11475   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11477 fi
11478
11479 : "${CONFIG_STATUS=./config.status}"
11480 ac_write_fail=0
11481 ac_clean_files_save=$ac_clean_files
11482 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11484 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11485 as_write_fail=0
11486 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11487 #! $SHELL
11488 # Generated by $as_me.
11489 # Run this file to recreate the current configuration.
11490 # Compiler output produced by configure, useful for debugging
11491 # configure, is in config.log if it exists.
11492
11493 debug=false
11494 ac_cs_recheck=false
11495 ac_cs_silent=false
11496
11497 SHELL=\${CONFIG_SHELL-$SHELL}
11498 export SHELL
11499 _ASEOF
11500 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11501 ## -------------------- ##
11502 ## M4sh Initialization. ##
11503 ## -------------------- ##
11504
11505 # Be more Bourne compatible
11506 DUALCASE=1; export DUALCASE # for MKS sh
11507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11508   emulate sh
11509   NULLCMD=:
11510   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11511   # is contrary to our usage.  Disable this feature.
11512   alias -g '${1+"$@"}'='"$@"'
11513   setopt NO_GLOB_SUBST
11514 else
11515   case `(set -o) 2>/dev/null` in #(
11516   *posix*) :
11517     set -o posix ;; #(
11518   *) :
11519      ;;
11520 esac
11521 fi
11522
11523
11524 as_nl='
11525 '
11526 export as_nl
11527 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11528 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11531 # Prefer a ksh shell builtin over an external printf program on Solaris,
11532 # but without wasting forks for bash or zsh.
11533 if test -z "$BASH_VERSION$ZSH_VERSION" \
11534     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11535   as_echo='print -r --'
11536   as_echo_n='print -rn --'
11537 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11538   as_echo='printf %s\n'
11539   as_echo_n='printf %s'
11540 else
11541   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11542     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11543     as_echo_n='/usr/ucb/echo -n'
11544   else
11545     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11546     as_echo_n_body='eval
11547       arg=$1;
11548       case $arg in #(
11549       *"$as_nl"*)
11550         expr "X$arg" : "X\\(.*\\)$as_nl";
11551         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11552       esac;
11553       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11554     '
11555     export as_echo_n_body
11556     as_echo_n='sh -c $as_echo_n_body as_echo'
11557   fi
11558   export as_echo_body
11559   as_echo='sh -c $as_echo_body as_echo'
11560 fi
11561
11562 # The user is always right.
11563 if test "${PATH_SEPARATOR+set}" != set; then
11564   PATH_SEPARATOR=:
11565   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11566     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11567       PATH_SEPARATOR=';'
11568   }
11569 fi
11570
11571
11572 # IFS
11573 # We need space, tab and new line, in precisely that order.  Quoting is
11574 # there to prevent editors from complaining about space-tab.
11575 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11576 # splitting by setting IFS to empty value.)
11577 IFS=" ""        $as_nl"
11578
11579 # Find who we are.  Look in the path if we contain no directory separator.
11580 as_myself=
11581 case $0 in #((
11582   *[\\/]* ) as_myself=$0 ;;
11583   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586   IFS=$as_save_IFS
11587   test -z "$as_dir" && as_dir=.
11588     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11589   done
11590 IFS=$as_save_IFS
11591
11592      ;;
11593 esac
11594 # We did not find ourselves, most probably we were run as `sh COMMAND'
11595 # in which case we are not to be found in the path.
11596 if test "x$as_myself" = x; then
11597   as_myself=$0
11598 fi
11599 if test ! -f "$as_myself"; then
11600   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11601   exit 1
11602 fi
11603
11604 # Unset variables that we do not need and which cause bugs (e.g. in
11605 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11606 # suppresses any "Segmentation fault" message there.  '((' could
11607 # trigger a bug in pdksh 5.2.14.
11608 for as_var in BASH_ENV ENV MAIL MAILPATH
11609 do eval test x\${$as_var+set} = xset \
11610   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11611 done
11612 PS1='$ '
11613 PS2='> '
11614 PS4='+ '
11615
11616 # NLS nuisances.
11617 LC_ALL=C
11618 export LC_ALL
11619 LANGUAGE=C
11620 export LANGUAGE
11621
11622 # CDPATH.
11623 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11624
11625
11626 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11627 # ----------------------------------------
11628 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11629 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11630 # script with STATUS, using 1 if that was 0.
11631 as_fn_error ()
11632 {
11633   as_status=$1; test $as_status -eq 0 && as_status=1
11634   if test "$4"; then
11635     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11636     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11637   fi
11638   $as_echo "$as_me: error: $2" >&2
11639   as_fn_exit $as_status
11640 } # as_fn_error
11641
11642
11643 # as_fn_set_status STATUS
11644 # -----------------------
11645 # Set $? to STATUS, without forking.
11646 as_fn_set_status ()
11647 {
11648   return $1
11649 } # as_fn_set_status
11650
11651 # as_fn_exit STATUS
11652 # -----------------
11653 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11654 as_fn_exit ()
11655 {
11656   set +e
11657   as_fn_set_status $1
11658   exit $1
11659 } # as_fn_exit
11660
11661 # as_fn_unset VAR
11662 # ---------------
11663 # Portably unset VAR.
11664 as_fn_unset ()
11665 {
11666   { eval $1=; unset $1;}
11667 }
11668 as_unset=as_fn_unset
11669 # as_fn_append VAR VALUE
11670 # ----------------------
11671 # Append the text in VALUE to the end of the definition contained in VAR. Take
11672 # advantage of any shell optimizations that allow amortized linear growth over
11673 # repeated appends, instead of the typical quadratic growth present in naive
11674 # implementations.
11675 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11676   eval 'as_fn_append ()
11677   {
11678     eval $1+=\$2
11679   }'
11680 else
11681   as_fn_append ()
11682   {
11683     eval $1=\$$1\$2
11684   }
11685 fi # as_fn_append
11686
11687 # as_fn_arith ARG...
11688 # ------------------
11689 # Perform arithmetic evaluation on the ARGs, and store the result in the
11690 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11691 # must be portable across $(()) and expr.
11692 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11693   eval 'as_fn_arith ()
11694   {
11695     as_val=$(( $* ))
11696   }'
11697 else
11698   as_fn_arith ()
11699   {
11700     as_val=`expr "$@" || test $? -eq 1`
11701   }
11702 fi # as_fn_arith
11703
11704
11705 if expr a : '\(a\)' >/dev/null 2>&1 &&
11706    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11707   as_expr=expr
11708 else
11709   as_expr=false
11710 fi
11711
11712 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11713   as_basename=basename
11714 else
11715   as_basename=false
11716 fi
11717
11718 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11719   as_dirname=dirname
11720 else
11721   as_dirname=false
11722 fi
11723
11724 as_me=`$as_basename -- "$0" ||
11725 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11726          X"$0" : 'X\(//\)$' \| \
11727          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11728 $as_echo X/"$0" |
11729     sed '/^.*\/\([^/][^/]*\)\/*$/{
11730             s//\1/
11731             q
11732           }
11733           /^X\/\(\/\/\)$/{
11734             s//\1/
11735             q
11736           }
11737           /^X\/\(\/\).*/{
11738             s//\1/
11739             q
11740           }
11741           s/.*/./; q'`
11742
11743 # Avoid depending upon Character Ranges.
11744 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11745 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11746 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11747 as_cr_digits='0123456789'
11748 as_cr_alnum=$as_cr_Letters$as_cr_digits
11749
11750 ECHO_C= ECHO_N= ECHO_T=
11751 case `echo -n x` in #(((((
11752 -n*)
11753   case `echo 'xy\c'` in
11754   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11755   xy)  ECHO_C='\c';;
11756   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11757        ECHO_T=' ';;
11758   esac;;
11759 *)
11760   ECHO_N='-n';;
11761 esac
11762
11763 rm -f conf$$ conf$$.exe conf$$.file
11764 if test -d conf$$.dir; then
11765   rm -f conf$$.dir/conf$$.file
11766 else
11767   rm -f conf$$.dir
11768   mkdir conf$$.dir 2>/dev/null
11769 fi
11770 if (echo >conf$$.file) 2>/dev/null; then
11771   if ln -s conf$$.file conf$$ 2>/dev/null; then
11772     as_ln_s='ln -s'
11773     # ... but there are two gotchas:
11774     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11775     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11776     # In both cases, we have to default to `cp -p'.
11777     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11778       as_ln_s='cp -p'
11779   elif ln conf$$.file conf$$ 2>/dev/null; then
11780     as_ln_s=ln
11781   else
11782     as_ln_s='cp -p'
11783   fi
11784 else
11785   as_ln_s='cp -p'
11786 fi
11787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11788 rmdir conf$$.dir 2>/dev/null
11789
11790
11791 # as_fn_mkdir_p
11792 # -------------
11793 # Create "$as_dir" as a directory, including parents if necessary.
11794 as_fn_mkdir_p ()
11795 {
11796
11797   case $as_dir in #(
11798   -*) as_dir=./$as_dir;;
11799   esac
11800   test -d "$as_dir" || eval $as_mkdir_p || {
11801     as_dirs=
11802     while :; do
11803       case $as_dir in #(
11804       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11805       *) as_qdir=$as_dir;;
11806       esac
11807       as_dirs="'$as_qdir' $as_dirs"
11808       as_dir=`$as_dirname -- "$as_dir" ||
11809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11810          X"$as_dir" : 'X\(//\)[^/]' \| \
11811          X"$as_dir" : 'X\(//\)$' \| \
11812          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11813 $as_echo X"$as_dir" |
11814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11815             s//\1/
11816             q
11817           }
11818           /^X\(\/\/\)[^/].*/{
11819             s//\1/
11820             q
11821           }
11822           /^X\(\/\/\)$/{
11823             s//\1/
11824             q
11825           }
11826           /^X\(\/\).*/{
11827             s//\1/
11828             q
11829           }
11830           s/.*/./; q'`
11831       test -d "$as_dir" && break
11832     done
11833     test -z "$as_dirs" || eval "mkdir $as_dirs"
11834   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11835
11836
11837 } # as_fn_mkdir_p
11838 if mkdir -p . 2>/dev/null; then
11839   as_mkdir_p='mkdir -p "$as_dir"'
11840 else
11841   test -d ./-p && rmdir ./-p
11842   as_mkdir_p=false
11843 fi
11844
11845 if test -x / >/dev/null 2>&1; then
11846   as_test_x='test -x'
11847 else
11848   if ls -dL / >/dev/null 2>&1; then
11849     as_ls_L_option=L
11850   else
11851     as_ls_L_option=
11852   fi
11853   as_test_x='
11854     eval sh -c '\''
11855       if test -d "$1"; then
11856         test -d "$1/.";
11857       else
11858         case $1 in #(
11859         -*)set "./$1";;
11860         esac;
11861         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11862         ???[sx]*):;;*)false;;esac;fi
11863     '\'' sh
11864   '
11865 fi
11866 as_executable_p=$as_test_x
11867
11868 # Sed expression to map a string onto a valid CPP name.
11869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11870
11871 # Sed expression to map a string onto a valid variable name.
11872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11873
11874
11875 exec 6>&1
11876 ## ----------------------------------- ##
11877 ## Main body of $CONFIG_STATUS script. ##
11878 ## ----------------------------------- ##
11879 _ASEOF
11880 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11881
11882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 # Save the log message, to keep $0 and so on meaningful, and to
11884 # report actual input values of CONFIG_FILES etc. instead of their
11885 # values after options handling.
11886 ac_log="
11887 This file was extended by cdemo $as_me 1.0, which was
11888 generated by GNU Autoconf 2.68.  Invocation command line was
11889
11890   CONFIG_FILES    = $CONFIG_FILES
11891   CONFIG_HEADERS  = $CONFIG_HEADERS
11892   CONFIG_LINKS    = $CONFIG_LINKS
11893   CONFIG_COMMANDS = $CONFIG_COMMANDS
11894   $ $0 $@
11895
11896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11897 "
11898
11899 _ACEOF
11900
11901 case $ac_config_files in *"
11902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11903 esac
11904
11905
11906
11907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11908 # Files that config.status was made for.
11909 config_files="$ac_config_files"
11910 config_commands="$ac_config_commands"
11911
11912 _ACEOF
11913
11914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11915 ac_cs_usage="\
11916 \`$as_me' instantiates files and other configuration actions
11917 from templates according to the current configuration.  Unless the files
11918 and actions are specified as TAGs, all are instantiated by default.
11919
11920 Usage: $0 [OPTION]... [TAG]...
11921
11922   -h, --help       print this help, then exit
11923   -V, --version    print version number and configuration settings, then exit
11924       --config     print configuration, then exit
11925   -q, --quiet, --silent
11926                    do not print progress messages
11927   -d, --debug      don't remove temporary files
11928       --recheck    update $as_me by reconfiguring in the same conditions
11929       --file=FILE[:TEMPLATE]
11930                    instantiate the configuration file FILE
11931
11932 Configuration files:
11933 $config_files
11934
11935 Configuration commands:
11936 $config_commands
11937
11938 Report bugs to <bug-libtool@gnu.org>."
11939
11940 _ACEOF
11941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11942 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11943 ac_cs_version="\\
11944 cdemo config.status 1.0
11945 configured by $0, generated by GNU Autoconf 2.68,
11946   with options \\"\$ac_cs_config\\"
11947
11948 Copyright (C) 2010 Free Software Foundation, Inc.
11949 This config.status script is free software; the Free Software Foundation
11950 gives unlimited permission to copy, distribute and modify it."
11951
11952 ac_pwd='$ac_pwd'
11953 srcdir='$srcdir'
11954 INSTALL='$INSTALL'
11955 MKDIR_P='$MKDIR_P'
11956 AWK='$AWK'
11957 test -n "\$AWK" || AWK=awk
11958 _ACEOF
11959
11960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11961 # The default lists apply if the user does not specify any file.
11962 ac_need_defaults=:
11963 while test $# != 0
11964 do
11965   case $1 in
11966   --*=?*)
11967     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11968     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11969     ac_shift=:
11970     ;;
11971   --*=)
11972     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11973     ac_optarg=
11974     ac_shift=:
11975     ;;
11976   *)
11977     ac_option=$1
11978     ac_optarg=$2
11979     ac_shift=shift
11980     ;;
11981   esac
11982
11983   case $ac_option in
11984   # Handling of the options.
11985   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11986     ac_cs_recheck=: ;;
11987   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11988     $as_echo "$ac_cs_version"; exit ;;
11989   --config | --confi | --conf | --con | --co | --c )
11990     $as_echo "$ac_cs_config"; exit ;;
11991   --debug | --debu | --deb | --de | --d | -d )
11992     debug=: ;;
11993   --file | --fil | --fi | --f )
11994     $ac_shift
11995     case $ac_optarg in
11996     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11997     '') as_fn_error $? "missing file argument" ;;
11998     esac
11999     as_fn_append CONFIG_FILES " '$ac_optarg'"
12000     ac_need_defaults=false;;
12001   --he | --h |  --help | --hel | -h )
12002     $as_echo "$ac_cs_usage"; exit ;;
12003   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12004   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12005     ac_cs_silent=: ;;
12006
12007   # This is an error.
12008   -*) as_fn_error $? "unrecognized option: \`$1'
12009 Try \`$0 --help' for more information." ;;
12010
12011   *) as_fn_append ac_config_targets " $1"
12012      ac_need_defaults=false ;;
12013
12014   esac
12015   shift
12016 done
12017
12018 ac_configure_extra_args=
12019
12020 if $ac_cs_silent; then
12021   exec 6>/dev/null
12022   ac_configure_extra_args="$ac_configure_extra_args --silent"
12023 fi
12024
12025 _ACEOF
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 if \$ac_cs_recheck; then
12028   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12029   shift
12030   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12031   CONFIG_SHELL='$SHELL'
12032   export CONFIG_SHELL
12033   exec "\$@"
12034 fi
12035
12036 _ACEOF
12037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12038 exec 5>>config.log
12039 {
12040   echo
12041   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12042 ## Running $as_me. ##
12043 _ASBOX
12044   $as_echo "$ac_log"
12045 } >&5
12046
12047 _ACEOF
12048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12049 #
12050 # INIT-COMMANDS
12051 #
12052 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12053
12054
12055 # The HP-UX ksh and POSIX shell print the target directory to stdout
12056 # if CDPATH is set.
12057 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12058
12059 sed_quote_subst='$sed_quote_subst'
12060 double_quote_subst='$double_quote_subst'
12061 delay_variable_subst='$delay_variable_subst'
12062 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12063 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12064 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12065 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12066 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12067 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12068 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12069 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12070 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12071 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12072 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12073 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12074 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12075 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12076 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12077 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12078 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12079 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12080 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12081 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12082 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12083 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12084 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12085 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12086 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12087 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12088 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12089 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12090 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12091 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12092 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12093 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12094 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12095 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12096 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12097 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12098 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12099 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12100 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12101 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12102 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12103 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12104 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12105 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12106 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12107 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12108 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12109 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12110 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12111 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12112 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12113 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12114 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12115 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12116 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12117 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12118 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"`'
12119 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12120 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12121 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12122 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12123 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12124 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12125 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12126 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12127 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12128 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12129 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12130 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12131 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12132 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12133 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12134 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12135 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12136 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12137 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12138 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12139 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12140 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12141 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12142 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12143 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12144 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12145 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12146 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12147 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12148 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12149 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12150 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12151 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12152 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12153 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12154 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12155 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12156 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12157 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12158 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12159 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12160 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12161 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12162 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12163 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12164 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12165 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12166 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12167 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12168 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12169 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12170 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12171 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12172 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12173 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12174 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12175 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12176 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12177 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12178 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12179 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12180 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12181 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12182 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12183 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12184 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12185 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12186 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12187 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12188 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12189 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12190 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12191 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12192
12193 LTCC='$LTCC'
12194 LTCFLAGS='$LTCFLAGS'
12195 compiler='$compiler_DEFAULT'
12196
12197 # A function that is used when there is no print builtin or printf.
12198 func_fallback_echo ()
12199 {
12200   eval 'cat <<_LTECHO_EOF
12201 \$1
12202 _LTECHO_EOF'
12203 }
12204
12205 # Quote evaled strings.
12206 for var in SHELL \
12207 ECHO \
12208 PATH_SEPARATOR \
12209 SED \
12210 GREP \
12211 EGREP \
12212 FGREP \
12213 LD \
12214 NM \
12215 LN_S \
12216 lt_SP2NL \
12217 lt_NL2SP \
12218 reload_flag \
12219 OBJDUMP \
12220 deplibs_check_method \
12221 file_magic_cmd \
12222 file_magic_glob \
12223 want_nocaseglob \
12224 DLLTOOL \
12225 sharedlib_from_linklib_cmd \
12226 AR \
12227 AR_FLAGS \
12228 archiver_list_spec \
12229 STRIP \
12230 RANLIB \
12231 CC \
12232 CFLAGS \
12233 compiler \
12234 lt_cv_sys_global_symbol_pipe \
12235 lt_cv_sys_global_symbol_to_cdecl \
12236 lt_cv_sys_global_symbol_to_c_name_address \
12237 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12238 nm_file_list_spec \
12239 lt_prog_compiler_no_builtin_flag \
12240 lt_prog_compiler_pic \
12241 lt_prog_compiler_wl \
12242 lt_prog_compiler_static \
12243 lt_cv_prog_compiler_c_o \
12244 need_locks \
12245 MANIFEST_TOOL \
12246 DSYMUTIL \
12247 NMEDIT \
12248 LIPO \
12249 OTOOL \
12250 OTOOL64 \
12251 shrext_cmds \
12252 export_dynamic_flag_spec \
12253 whole_archive_flag_spec \
12254 compiler_needs_object \
12255 with_gnu_ld \
12256 allow_undefined_flag \
12257 no_undefined_flag \
12258 hardcode_libdir_flag_spec \
12259 hardcode_libdir_separator \
12260 exclude_expsyms \
12261 include_expsyms \
12262 file_list_spec \
12263 variables_saved_for_relink \
12264 libname_spec \
12265 library_names_spec \
12266 soname_spec \
12267 install_override_mode \
12268 finish_eval \
12269 old_striplib \
12270 striplib; do
12271     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12272     *[\\\\\\\`\\"\\\$]*)
12273       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12274       ;;
12275     *)
12276       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12277       ;;
12278     esac
12279 done
12280
12281 # Double-quote double-evaled strings.
12282 for var in reload_cmds \
12283 old_postinstall_cmds \
12284 old_postuninstall_cmds \
12285 old_archive_cmds \
12286 extract_expsyms_cmds \
12287 old_archive_from_new_cmds \
12288 old_archive_from_expsyms_cmds \
12289 archive_cmds \
12290 archive_expsym_cmds \
12291 module_cmds \
12292 module_expsym_cmds \
12293 export_symbols_cmds \
12294 prelink_cmds \
12295 postlink_cmds \
12296 postinstall_cmds \
12297 postuninstall_cmds \
12298 finish_cmds \
12299 sys_lib_search_path_spec \
12300 sys_lib_dlsearch_path_spec; do
12301     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12302     *[\\\\\\\`\\"\\\$]*)
12303       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12304       ;;
12305     *)
12306       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12307       ;;
12308     esac
12309 done
12310
12311 ac_aux_dir='$ac_aux_dir'
12312 xsi_shell='$xsi_shell'
12313 lt_shell_append='$lt_shell_append'
12314
12315 # See if we are running on zsh, and set the options which allow our
12316 # commands through without removal of \ escapes INIT.
12317 if test -n "\${ZSH_VERSION+set}" ; then
12318    setopt NO_GLOB_SUBST
12319 fi
12320
12321
12322     PACKAGE='$PACKAGE'
12323     VERSION='$VERSION'
12324     TIMESTAMP='$TIMESTAMP'
12325     RM='$RM'
12326     ofile='$ofile'
12327
12328
12329
12330
12331 _ACEOF
12332
12333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12334
12335 # Handling of arguments.
12336 for ac_config_target in $ac_config_targets
12337 do
12338   case $ac_config_target in
12339     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12340     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12341     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12342
12343   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12344   esac
12345 done
12346
12347
12348 # If the user did not use the arguments to specify the items to instantiate,
12349 # then the envvar interface is used.  Set only those that are not.
12350 # We use the long form for the default assignment because of an extremely
12351 # bizarre bug on SunOS 4.1.3.
12352 if $ac_need_defaults; then
12353   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12354   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12355 fi
12356
12357 # Have a temporary directory for convenience.  Make it in the build tree
12358 # simply because there is no reason against having it here, and in addition,
12359 # creating and moving files from /tmp can sometimes cause problems.
12360 # Hook for its removal unless debugging.
12361 # Note that there is a small window in which the directory will not be cleaned:
12362 # after its creation but before its name has been assigned to `$tmp'.
12363 $debug ||
12364 {
12365   tmp= ac_tmp=
12366   trap 'exit_status=$?
12367   : "${ac_tmp:=$tmp}"
12368   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12369 ' 0
12370   trap 'as_fn_exit 1' 1 2 13 15
12371 }
12372 # Create a (secure) tmp directory for tmp files.
12373
12374 {
12375   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12376   test -d "$tmp"
12377 }  ||
12378 {
12379   tmp=./conf$$-$RANDOM
12380   (umask 077 && mkdir "$tmp")
12381 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12382 ac_tmp=$tmp
12383
12384 # Set up the scripts for CONFIG_FILES section.
12385 # No need to generate them if there are no CONFIG_FILES.
12386 # This happens for instance with `./config.status config.h'.
12387 if test -n "$CONFIG_FILES"; then
12388
12389
12390 ac_cr=`echo X | tr X '\015'`
12391 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12392 # But we know of no other shell where ac_cr would be empty at this
12393 # point, so we can use a bashism as a fallback.
12394 if test "x$ac_cr" = x; then
12395   eval ac_cr=\$\'\\r\'
12396 fi
12397 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12398 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12399   ac_cs_awk_cr='\\r'
12400 else
12401   ac_cs_awk_cr=$ac_cr
12402 fi
12403
12404 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12405 _ACEOF
12406
12407
12408 {
12409   echo "cat >conf$$subs.awk <<_ACEOF" &&
12410   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12411   echo "_ACEOF"
12412 } >conf$$subs.sh ||
12413   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12415 ac_delim='%!_!# '
12416 for ac_last_try in false false false false false :; do
12417   . ./conf$$subs.sh ||
12418     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12419
12420   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12421   if test $ac_delim_n = $ac_delim_num; then
12422     break
12423   elif $ac_last_try; then
12424     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12425   else
12426     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12427   fi
12428 done
12429 rm -f conf$$subs.sh
12430
12431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12432 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12433 _ACEOF
12434 sed -n '
12435 h
12436 s/^/S["/; s/!.*/"]=/
12437 p
12438 g
12439 s/^[^!]*!//
12440 :repl
12441 t repl
12442 s/'"$ac_delim"'$//
12443 t delim
12444 :nl
12445 h
12446 s/\(.\{148\}\)..*/\1/
12447 t more1
12448 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12449 p
12450 n
12451 b repl
12452 :more1
12453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12454 p
12455 g
12456 s/.\{148\}//
12457 t nl
12458 :delim
12459 h
12460 s/\(.\{148\}\)..*/\1/
12461 t more2
12462 s/["\\]/\\&/g; s/^/"/; s/$/"/
12463 p
12464 b
12465 :more2
12466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12467 p
12468 g
12469 s/.\{148\}//
12470 t delim
12471 ' <conf$$subs.awk | sed '
12472 /^[^""]/{
12473   N
12474   s/\n//
12475 }
12476 ' >>$CONFIG_STATUS || ac_write_fail=1
12477 rm -f conf$$subs.awk
12478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12479 _ACAWK
12480 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12481   for (key in S) S_is_set[key] = 1
12482   FS = "\a"
12483
12484 }
12485 {
12486   line = $ 0
12487   nfields = split(line, field, "@")
12488   substed = 0
12489   len = length(field[1])
12490   for (i = 2; i < nfields; i++) {
12491     key = field[i]
12492     keylen = length(key)
12493     if (S_is_set[key]) {
12494       value = S[key]
12495       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12496       len += length(value) + length(field[++i])
12497       substed = 1
12498     } else
12499       len += 1 + keylen
12500   }
12501
12502   print line
12503 }
12504
12505 _ACAWK
12506 _ACEOF
12507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12508 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12509   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12510 else
12511   cat
12512 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12513   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12514 _ACEOF
12515
12516 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12517 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12518 # trailing colons and then remove the whole line if VPATH becomes empty
12519 # (actually we leave an empty line to preserve line numbers).
12520 if test "x$srcdir" = x.; then
12521   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12522 h
12523 s///
12524 s/^/:/
12525 s/[      ]*$/:/
12526 s/:\$(srcdir):/:/g
12527 s/:\${srcdir}:/:/g
12528 s/:@srcdir@:/:/g
12529 s/^:*//
12530 s/:*$//
12531 x
12532 s/\(=[   ]*\).*/\1/
12533 G
12534 s/\n//
12535 s/^[^=]*=[       ]*$//
12536 }'
12537 fi
12538
12539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12540 fi # test -n "$CONFIG_FILES"
12541
12542
12543 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12544 shift
12545 for ac_tag
12546 do
12547   case $ac_tag in
12548   :[FHLC]) ac_mode=$ac_tag; continue;;
12549   esac
12550   case $ac_mode$ac_tag in
12551   :[FHL]*:*);;
12552   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12553   :[FH]-) ac_tag=-:-;;
12554   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12555   esac
12556   ac_save_IFS=$IFS
12557   IFS=:
12558   set x $ac_tag
12559   IFS=$ac_save_IFS
12560   shift
12561   ac_file=$1
12562   shift
12563
12564   case $ac_mode in
12565   :L) ac_source=$1;;
12566   :[FH])
12567     ac_file_inputs=
12568     for ac_f
12569     do
12570       case $ac_f in
12571       -) ac_f="$ac_tmp/stdin";;
12572       *) # Look for the file first in the build tree, then in the source tree
12573          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12574          # because $ac_f cannot contain `:'.
12575          test -f "$ac_f" ||
12576            case $ac_f in
12577            [\\/$]*) false;;
12578            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12579            esac ||
12580            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12581       esac
12582       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12583       as_fn_append ac_file_inputs " '$ac_f'"
12584     done
12585
12586     # Let's still pretend it is `configure' which instantiates (i.e., don't
12587     # use $as_me), people would be surprised to read:
12588     #    /* config.h.  Generated by config.status.  */
12589     configure_input='Generated from '`
12590           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12591         `' by configure.'
12592     if test x"$ac_file" != x-; then
12593       configure_input="$ac_file.  $configure_input"
12594       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12595 $as_echo "$as_me: creating $ac_file" >&6;}
12596     fi
12597     # Neutralize special characters interpreted by sed in replacement strings.
12598     case $configure_input in #(
12599     *\&* | *\|* | *\\* )
12600        ac_sed_conf_input=`$as_echo "$configure_input" |
12601        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12602     *) ac_sed_conf_input=$configure_input;;
12603     esac
12604
12605     case $ac_tag in
12606     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12607       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12608     esac
12609     ;;
12610   esac
12611
12612   ac_dir=`$as_dirname -- "$ac_file" ||
12613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12614          X"$ac_file" : 'X\(//\)[^/]' \| \
12615          X"$ac_file" : 'X\(//\)$' \| \
12616          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12617 $as_echo X"$ac_file" |
12618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12619             s//\1/
12620             q
12621           }
12622           /^X\(\/\/\)[^/].*/{
12623             s//\1/
12624             q
12625           }
12626           /^X\(\/\/\)$/{
12627             s//\1/
12628             q
12629           }
12630           /^X\(\/\).*/{
12631             s//\1/
12632             q
12633           }
12634           s/.*/./; q'`
12635   as_dir="$ac_dir"; as_fn_mkdir_p
12636   ac_builddir=.
12637
12638 case "$ac_dir" in
12639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12640 *)
12641   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12642   # A ".." for each directory in $ac_dir_suffix.
12643   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12644   case $ac_top_builddir_sub in
12645   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12646   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12647   esac ;;
12648 esac
12649 ac_abs_top_builddir=$ac_pwd
12650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12651 # for backward compatibility:
12652 ac_top_builddir=$ac_top_build_prefix
12653
12654 case $srcdir in
12655   .)  # We are building in place.
12656     ac_srcdir=.
12657     ac_top_srcdir=$ac_top_builddir_sub
12658     ac_abs_top_srcdir=$ac_pwd ;;
12659   [\\/]* | ?:[\\/]* )  # Absolute name.
12660     ac_srcdir=$srcdir$ac_dir_suffix;
12661     ac_top_srcdir=$srcdir
12662     ac_abs_top_srcdir=$srcdir ;;
12663   *) # Relative name.
12664     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12665     ac_top_srcdir=$ac_top_build_prefix$srcdir
12666     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12667 esac
12668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12669
12670
12671   case $ac_mode in
12672   :F)
12673   #
12674   # CONFIG_FILE
12675   #
12676
12677   case $INSTALL in
12678   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12679   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12680   esac
12681   ac_MKDIR_P=$MKDIR_P
12682   case $MKDIR_P in
12683   [\\/$]* | ?:[\\/]* ) ;;
12684   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12685   esac
12686 _ACEOF
12687
12688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12689 # If the template does not know about datarootdir, expand it.
12690 # FIXME: This hack should be removed a few years after 2.60.
12691 ac_datarootdir_hack=; ac_datarootdir_seen=
12692 ac_sed_dataroot='
12693 /datarootdir/ {
12694   p
12695   q
12696 }
12697 /@datadir@/p
12698 /@docdir@/p
12699 /@infodir@/p
12700 /@localedir@/p
12701 /@mandir@/p'
12702 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12703 *datarootdir*) ac_datarootdir_seen=yes;;
12704 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12705   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12706 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12707 _ACEOF
12708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12709   ac_datarootdir_hack='
12710   s&@datadir@&$datadir&g
12711   s&@docdir@&$docdir&g
12712   s&@infodir@&$infodir&g
12713   s&@localedir@&$localedir&g
12714   s&@mandir@&$mandir&g
12715   s&\\\${datarootdir}&$datarootdir&g' ;;
12716 esac
12717 _ACEOF
12718
12719 # Neutralize VPATH when `$srcdir' = `.'.
12720 # Shell code in configure.ac might set extrasub.
12721 # FIXME: do we really want to maintain this feature?
12722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12723 ac_sed_extra="$ac_vpsub
12724 $extrasub
12725 _ACEOF
12726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12727 :t
12728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12729 s|@configure_input@|$ac_sed_conf_input|;t t
12730 s&@top_builddir@&$ac_top_builddir_sub&;t t
12731 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12732 s&@srcdir@&$ac_srcdir&;t t
12733 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12734 s&@top_srcdir@&$ac_top_srcdir&;t t
12735 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12736 s&@builddir@&$ac_builddir&;t t
12737 s&@abs_builddir@&$ac_abs_builddir&;t t
12738 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12739 s&@INSTALL@&$ac_INSTALL&;t t
12740 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12741 $ac_datarootdir_hack
12742 "
12743 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12744   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12745
12746 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12747   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12748   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12749       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12751 which seems to be undefined.  Please make sure it is defined" >&5
12752 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12753 which seems to be undefined.  Please make sure it is defined" >&2;}
12754
12755   rm -f "$ac_tmp/stdin"
12756   case $ac_file in
12757   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12758   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12759   esac \
12760   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12761  ;;
12762
12763
12764   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12765 $as_echo "$as_me: executing $ac_file commands" >&6;}
12766  ;;
12767   esac
12768
12769
12770   case $ac_file$ac_mode in
12771     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12772   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12773   # are listed without --file.  Let's play safe and only enable the eval
12774   # if we detect the quoting.
12775   case $CONFIG_FILES in
12776   *\'*) eval set x "$CONFIG_FILES" ;;
12777   *)   set x $CONFIG_FILES ;;
12778   esac
12779   shift
12780   for mf
12781   do
12782     # Strip MF so we end up with the name of the file.
12783     mf=`echo "$mf" | sed -e 's/:.*$//'`
12784     # Check whether this is an Automake generated Makefile or not.
12785     # We used to match only the files named `Makefile.in', but
12786     # some people rename them; so instead we look at the file content.
12787     # Grep'ing the first line is not enough: some people post-process
12788     # each Makefile.in and add a new line on top of each file to say so.
12789     # Grep'ing the whole file is not good either: AIX grep has a line
12790     # limit of 2048, but all sed's we know have understand at least 4000.
12791     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12792       dirpart=`$as_dirname -- "$mf" ||
12793 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12794          X"$mf" : 'X\(//\)[^/]' \| \
12795          X"$mf" : 'X\(//\)$' \| \
12796          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12797 $as_echo X"$mf" |
12798     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12799             s//\1/
12800             q
12801           }
12802           /^X\(\/\/\)[^/].*/{
12803             s//\1/
12804             q
12805           }
12806           /^X\(\/\/\)$/{
12807             s//\1/
12808             q
12809           }
12810           /^X\(\/\).*/{
12811             s//\1/
12812             q
12813           }
12814           s/.*/./; q'`
12815     else
12816       continue
12817     fi
12818     # Extract the definition of DEPDIR, am__include, and am__quote
12819     # from the Makefile without running `make'.
12820     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12821     test -z "$DEPDIR" && continue
12822     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12823     test -z "am__include" && continue
12824     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12825     # When using ansi2knr, U may be empty or an underscore; expand it
12826     U=`sed -n 's/^U = //p' < "$mf"`
12827     # Find all dependency output files, they are included files with
12828     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12829     # simplest approach to changing $(DEPDIR) to its actual value in the
12830     # expansion.
12831     for file in `sed -n "
12832       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12833          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12834       # Make sure the directory exists.
12835       test -f "$dirpart/$file" && continue
12836       fdir=`$as_dirname -- "$file" ||
12837 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12838          X"$file" : 'X\(//\)[^/]' \| \
12839          X"$file" : 'X\(//\)$' \| \
12840          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12841 $as_echo X"$file" |
12842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12843             s//\1/
12844             q
12845           }
12846           /^X\(\/\/\)[^/].*/{
12847             s//\1/
12848             q
12849           }
12850           /^X\(\/\/\)$/{
12851             s//\1/
12852             q
12853           }
12854           /^X\(\/\).*/{
12855             s//\1/
12856             q
12857           }
12858           s/.*/./; q'`
12859       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12860       # echo "creating $dirpart/$file"
12861       echo '# dummy' > "$dirpart/$file"
12862     done
12863   done
12864 }
12865  ;;
12866     "libtool":C)
12867
12868     # See if we are running on zsh, and set the options which allow our
12869     # commands through without removal of \ escapes.
12870     if test -n "${ZSH_VERSION+set}" ; then
12871       setopt NO_GLOB_SUBST
12872     fi
12873
12874     cfgfile="${ofile}T"
12875     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12876     $RM "$cfgfile"
12877
12878     cat <<_LT_EOF >> "$cfgfile"
12879 #! $SHELL
12880
12881 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12882 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12883 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12884 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12885 #
12886 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12887 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
12888 #                 Foundation, Inc.
12889 #   Written by Gordon Matzigkeit, 1996
12890 #
12891 #   This file is part of GNU Libtool.
12892 #
12893 # GNU Libtool is free software; you can redistribute it and/or
12894 # modify it under the terms of the GNU General Public License as
12895 # published by the Free Software Foundation; either version 2 of
12896 # the License, or (at your option) any later version.
12897 #
12898 # As a special exception to the GNU General Public License,
12899 # if you distribute this file as part of a program or library that
12900 # is built using GNU Libtool, you may include this file under the
12901 # same distribution terms that you use for the rest of that program.
12902 #
12903 # GNU Libtool is distributed in the hope that it will be useful,
12904 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12905 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12906 # GNU General Public License for more details.
12907 #
12908 # You should have received a copy of the GNU General Public License
12909 # along with GNU Libtool; see the file COPYING.  If not, a copy
12910 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12911 # obtained by writing to the Free Software Foundation, Inc.,
12912 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12913
12914
12915 # The names of the tagged configurations supported by this script.
12916 available_tags=""
12917
12918 # ### BEGIN LIBTOOL CONFIG
12919
12920 # Which release of libtool.m4 was used?
12921 macro_version=$macro_version
12922 macro_revision=$macro_revision
12923
12924 # Whether or not to build shared libraries.
12925 build_libtool_libs=$enable_shared
12926
12927 # Whether or not to build static libraries.
12928 build_old_libs=$enable_static
12929
12930 # What type of objects to build.
12931 pic_mode=$pic_mode
12932
12933 # Whether or not to optimize for fast installation.
12934 fast_install=$enable_fast_install
12935
12936 # Shell to use when invoking shell scripts.
12937 SHELL=$lt_SHELL
12938
12939 # An echo program that protects backslashes.
12940 ECHO=$lt_ECHO
12941
12942 # The PATH separator for the build system.
12943 PATH_SEPARATOR=$lt_PATH_SEPARATOR
12944
12945 # The host system.
12946 host_alias=$host_alias
12947 host=$host
12948 host_os=$host_os
12949
12950 # The build system.
12951 build_alias=$build_alias
12952 build=$build
12953 build_os=$build_os
12954
12955 # A sed program that does not truncate output.
12956 SED=$lt_SED
12957
12958 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12959 Xsed="\$SED -e 1s/^X//"
12960
12961 # A grep program that handles long lines.
12962 GREP=$lt_GREP
12963
12964 # An ERE matcher.
12965 EGREP=$lt_EGREP
12966
12967 # A literal string matcher.
12968 FGREP=$lt_FGREP
12969
12970 # A BSD- or MS-compatible name lister.
12971 NM=$lt_NM
12972
12973 # Whether we need soft or hard links.
12974 LN_S=$lt_LN_S
12975
12976 # What is the maximum length of a command?
12977 max_cmd_len=$max_cmd_len
12978
12979 # Object file suffix (normally "o").
12980 objext=$ac_objext
12981
12982 # Executable file suffix (normally "").
12983 exeext=$exeext
12984
12985 # whether the shell understands "unset".
12986 lt_unset=$lt_unset
12987
12988 # turn spaces into newlines.
12989 SP2NL=$lt_lt_SP2NL
12990
12991 # turn newlines into spaces.
12992 NL2SP=$lt_lt_NL2SP
12993
12994 # convert \$build file names to \$host format.
12995 to_host_file_cmd=$lt_cv_to_host_file_cmd
12996
12997 # convert \$build files to toolchain format.
12998 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12999
13000 # An object symbol dumper.
13001 OBJDUMP=$lt_OBJDUMP
13002
13003 # Method to check whether dependent libraries are shared objects.
13004 deplibs_check_method=$lt_deplibs_check_method
13005
13006 # Command to use when deplibs_check_method = "file_magic".
13007 file_magic_cmd=$lt_file_magic_cmd
13008
13009 # How to find potential files when deplibs_check_method = "file_magic".
13010 file_magic_glob=$lt_file_magic_glob
13011
13012 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13013 want_nocaseglob=$lt_want_nocaseglob
13014
13015 # DLL creation program.
13016 DLLTOOL=$lt_DLLTOOL
13017
13018 # Command to associate shared and link libraries.
13019 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13020
13021 # The archiver.
13022 AR=$lt_AR
13023
13024 # Flags to create an archive.
13025 AR_FLAGS=$lt_AR_FLAGS
13026
13027 # How to feed a file listing to the archiver.
13028 archiver_list_spec=$lt_archiver_list_spec
13029
13030 # A symbol stripping program.
13031 STRIP=$lt_STRIP
13032
13033 # Commands used to install an old-style archive.
13034 RANLIB=$lt_RANLIB
13035 old_postinstall_cmds=$lt_old_postinstall_cmds
13036 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13037
13038 # Whether to use a lock for old archive extraction.
13039 lock_old_archive_extraction=$lock_old_archive_extraction
13040
13041 # A C compiler.
13042 LTCC=$lt_CC
13043
13044 # LTCC compiler flags.
13045 LTCFLAGS=$lt_CFLAGS
13046
13047 # Take the output of nm and produce a listing of raw symbols and C names.
13048 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13049
13050 # Transform the output of nm in a proper C declaration.
13051 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13052
13053 # Transform the output of nm in a C name address pair.
13054 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13055
13056 # Transform the output of nm in a C name address pair when lib prefix is needed.
13057 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13058
13059 # Specify filename containing input files for \$NM.
13060 nm_file_list_spec=$lt_nm_file_list_spec
13061
13062 # The root where to search for dependent libraries,and in which our libraries should be installed.
13063 lt_sysroot=$lt_sysroot
13064
13065 # The name of the directory that contains temporary libtool files.
13066 objdir=$objdir
13067
13068 # Used to examine libraries when file_magic_cmd begins with "file".
13069 MAGIC_CMD=$MAGIC_CMD
13070
13071 # Must we lock files when doing compilation?
13072 need_locks=$lt_need_locks
13073
13074 # Manifest tool.
13075 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13076
13077 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13078 DSYMUTIL=$lt_DSYMUTIL
13079
13080 # Tool to change global to local symbols on Mac OS X.
13081 NMEDIT=$lt_NMEDIT
13082
13083 # Tool to manipulate fat objects and archives on Mac OS X.
13084 LIPO=$lt_LIPO
13085
13086 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13087 OTOOL=$lt_OTOOL
13088
13089 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13090 OTOOL64=$lt_OTOOL64
13091
13092 # Old archive suffix (normally "a").
13093 libext=$libext
13094
13095 # Shared library suffix (normally ".so").
13096 shrext_cmds=$lt_shrext_cmds
13097
13098 # The commands to extract the exported symbol list from a shared archive.
13099 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13100
13101 # Variables whose values should be saved in libtool wrapper scripts and
13102 # restored at link time.
13103 variables_saved_for_relink=$lt_variables_saved_for_relink
13104
13105 # Do we need the "lib" prefix for modules?
13106 need_lib_prefix=$need_lib_prefix
13107
13108 # Do we need a version for libraries?
13109 need_version=$need_version
13110
13111 # Library versioning type.
13112 version_type=$version_type
13113
13114 # Shared library runtime path variable.
13115 runpath_var=$runpath_var
13116
13117 # Shared library path variable.
13118 shlibpath_var=$shlibpath_var
13119
13120 # Is shlibpath searched before the hard-coded library search path?
13121 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13122
13123 # Format of library name prefix.
13124 libname_spec=$lt_libname_spec
13125
13126 # List of archive names.  First name is the real one, the rest are links.
13127 # The last name is the one that the linker finds with -lNAME
13128 library_names_spec=$lt_library_names_spec
13129
13130 # The coded name of the library, if different from the real name.
13131 soname_spec=$lt_soname_spec
13132
13133 # Permission mode override for installation of shared libraries.
13134 install_override_mode=$lt_install_override_mode
13135
13136 # Command to use after installation of a shared archive.
13137 postinstall_cmds=$lt_postinstall_cmds
13138
13139 # Command to use after uninstallation of a shared archive.
13140 postuninstall_cmds=$lt_postuninstall_cmds
13141
13142 # Commands used to finish a libtool library installation in a directory.
13143 finish_cmds=$lt_finish_cmds
13144
13145 # As "finish_cmds", except a single script fragment to be evaled but
13146 # not shown.
13147 finish_eval=$lt_finish_eval
13148
13149 # Whether we should hardcode library paths into libraries.
13150 hardcode_into_libs=$hardcode_into_libs
13151
13152 # Compile-time system search path for libraries.
13153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13154
13155 # Run-time system search path for libraries.
13156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13157
13158 # Whether dlopen is supported.
13159 dlopen_support=$enable_dlopen
13160
13161 # Whether dlopen of programs is supported.
13162 dlopen_self=$enable_dlopen_self
13163
13164 # Whether dlopen of statically linked programs is supported.
13165 dlopen_self_static=$enable_dlopen_self_static
13166
13167 # Commands to strip libraries.
13168 old_striplib=$lt_old_striplib
13169 striplib=$lt_striplib
13170
13171
13172 # The linker used to build libraries.
13173 LD=$lt_LD
13174
13175 # How to create reloadable object files.
13176 reload_flag=$lt_reload_flag
13177 reload_cmds=$lt_reload_cmds
13178
13179 # Commands used to build an old-style archive.
13180 old_archive_cmds=$lt_old_archive_cmds
13181
13182 # A language specific compiler.
13183 CC=$lt_compiler
13184
13185 # Is the compiler the GNU compiler?
13186 with_gcc=$GCC
13187
13188 # Compiler flag to turn off builtin functions.
13189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13190
13191 # Additional compiler flags for building library objects.
13192 pic_flag=$lt_lt_prog_compiler_pic
13193
13194 # How to pass a linker flag through the compiler.
13195 wl=$lt_lt_prog_compiler_wl
13196
13197 # Compiler flag to prevent dynamic linking.
13198 link_static_flag=$lt_lt_prog_compiler_static
13199
13200 # Does compiler simultaneously support -c and -o options?
13201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13202
13203 # Whether or not to add -lc for building shared libraries.
13204 build_libtool_need_lc=$archive_cmds_need_lc
13205
13206 # Whether or not to disallow shared libs when runtime libs are static.
13207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13208
13209 # Compiler flag to allow reflexive dlopens.
13210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13211
13212 # Compiler flag to generate shared objects directly from archives.
13213 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13214
13215 # Whether the compiler copes with passing no objects directly.
13216 compiler_needs_object=$lt_compiler_needs_object
13217
13218 # Create an old-style archive from a shared archive.
13219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13220
13221 # Create a temporary old-style archive to link instead of a shared archive.
13222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13223
13224 # Commands used to build a shared archive.
13225 archive_cmds=$lt_archive_cmds
13226 archive_expsym_cmds=$lt_archive_expsym_cmds
13227
13228 # Commands used to build a loadable module if different from building
13229 # a shared archive.
13230 module_cmds=$lt_module_cmds
13231 module_expsym_cmds=$lt_module_expsym_cmds
13232
13233 # Whether we are building with GNU ld or not.
13234 with_gnu_ld=$lt_with_gnu_ld
13235
13236 # Flag that allows shared libraries with undefined symbols to be built.
13237 allow_undefined_flag=$lt_allow_undefined_flag
13238
13239 # Flag that enforces no undefined symbols.
13240 no_undefined_flag=$lt_no_undefined_flag
13241
13242 # Flag to hardcode \$libdir into a binary during linking.
13243 # This must work even if \$libdir does not exist
13244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13245
13246 # Whether we need a single "-rpath" flag with a separated argument.
13247 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13248
13249 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13250 # DIR into the resulting binary.
13251 hardcode_direct=$hardcode_direct
13252
13253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13254 # DIR into the resulting binary and the resulting library dependency is
13255 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13256 # library is relocated.
13257 hardcode_direct_absolute=$hardcode_direct_absolute
13258
13259 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13260 # into the resulting binary.
13261 hardcode_minus_L=$hardcode_minus_L
13262
13263 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13264 # into the resulting binary.
13265 hardcode_shlibpath_var=$hardcode_shlibpath_var
13266
13267 # Set to "yes" if building a shared library automatically hardcodes DIR
13268 # into the library and all subsequent libraries and executables linked
13269 # against it.
13270 hardcode_automatic=$hardcode_automatic
13271
13272 # Set to yes if linker adds runtime paths of dependent libraries
13273 # to runtime path list.
13274 inherit_rpath=$inherit_rpath
13275
13276 # Whether libtool must link a program against all its dependency libraries.
13277 link_all_deplibs=$link_all_deplibs
13278
13279 # Set to "yes" if exported symbols are required.
13280 always_export_symbols=$always_export_symbols
13281
13282 # The commands to list exported symbols.
13283 export_symbols_cmds=$lt_export_symbols_cmds
13284
13285 # Symbols that should not be listed in the preloaded symbols.
13286 exclude_expsyms=$lt_exclude_expsyms
13287
13288 # Symbols that must always be exported.
13289 include_expsyms=$lt_include_expsyms
13290
13291 # Commands necessary for linking programs (against libraries) with templates.
13292 prelink_cmds=$lt_prelink_cmds
13293
13294 # Commands necessary for finishing linking programs.
13295 postlink_cmds=$lt_postlink_cmds
13296
13297 # Specify filename containing input files.
13298 file_list_spec=$lt_file_list_spec
13299
13300 # How to hardcode a shared library path into an executable.
13301 hardcode_action=$hardcode_action
13302
13303 # ### END LIBTOOL CONFIG
13304
13305 _LT_EOF
13306
13307   case $host_os in
13308   aix3*)
13309     cat <<\_LT_EOF >> "$cfgfile"
13310 # AIX sometimes has problems with the GCC collect2 program.  For some
13311 # reason, if we set the COLLECT_NAMES environment variable, the problems
13312 # vanish in a puff of smoke.
13313 if test "X${COLLECT_NAMES+set}" != Xset; then
13314   COLLECT_NAMES=
13315   export COLLECT_NAMES
13316 fi
13317 _LT_EOF
13318     ;;
13319   esac
13320
13321
13322 ltmain="$ac_aux_dir/ltmain.sh"
13323
13324
13325   # We use sed instead of cat because bash on DJGPP gets confused if
13326   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13327   # text mode, it properly converts lines to CR/LF.  This bash problem
13328   # is reportedly fixed, but why not run on old versions too?
13329   sed '$q' "$ltmain" >> "$cfgfile" \
13330      || (rm -f "$cfgfile"; exit 1)
13331
13332   if test x"$xsi_shell" = xyes; then
13333   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13334 func_dirname ()\
13335 {\
13336 \    case ${1} in\
13337 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13338 \      *  ) func_dirname_result="${3}" ;;\
13339 \    esac\
13340 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13341   && mv -f "$cfgfile.tmp" "$cfgfile" \
13342     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13343 test 0 -eq $? || _lt_function_replace_fail=:
13344
13345
13346   sed -e '/^func_basename ()$/,/^} # func_basename /c\
13347 func_basename ()\
13348 {\
13349 \    func_basename_result="${1##*/}"\
13350 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13351   && mv -f "$cfgfile.tmp" "$cfgfile" \
13352     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13353 test 0 -eq $? || _lt_function_replace_fail=:
13354
13355
13356   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13357 func_dirname_and_basename ()\
13358 {\
13359 \    case ${1} in\
13360 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13361 \      *  ) func_dirname_result="${3}" ;;\
13362 \    esac\
13363 \    func_basename_result="${1##*/}"\
13364 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13365   && mv -f "$cfgfile.tmp" "$cfgfile" \
13366     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13367 test 0 -eq $? || _lt_function_replace_fail=:
13368
13369
13370   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13371 func_stripname ()\
13372 {\
13373 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13374 \    # positional parameters, so assign one to ordinary parameter first.\
13375 \    func_stripname_result=${3}\
13376 \    func_stripname_result=${func_stripname_result#"${1}"}\
13377 \    func_stripname_result=${func_stripname_result%"${2}"}\
13378 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13379   && mv -f "$cfgfile.tmp" "$cfgfile" \
13380     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13381 test 0 -eq $? || _lt_function_replace_fail=:
13382
13383
13384   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13385 func_split_long_opt ()\
13386 {\
13387 \    func_split_long_opt_name=${1%%=*}\
13388 \    func_split_long_opt_arg=${1#*=}\
13389 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13390   && mv -f "$cfgfile.tmp" "$cfgfile" \
13391     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13392 test 0 -eq $? || _lt_function_replace_fail=:
13393
13394
13395   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13396 func_split_short_opt ()\
13397 {\
13398 \    func_split_short_opt_arg=${1#??}\
13399 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13400 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13401   && mv -f "$cfgfile.tmp" "$cfgfile" \
13402     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13403 test 0 -eq $? || _lt_function_replace_fail=:
13404
13405
13406   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13407 func_lo2o ()\
13408 {\
13409 \    case ${1} in\
13410 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13411 \      *)    func_lo2o_result=${1} ;;\
13412 \    esac\
13413 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13414   && mv -f "$cfgfile.tmp" "$cfgfile" \
13415     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13416 test 0 -eq $? || _lt_function_replace_fail=:
13417
13418
13419   sed -e '/^func_xform ()$/,/^} # func_xform /c\
13420 func_xform ()\
13421 {\
13422     func_xform_result=${1%.*}.lo\
13423 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13424   && mv -f "$cfgfile.tmp" "$cfgfile" \
13425     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13426 test 0 -eq $? || _lt_function_replace_fail=:
13427
13428
13429   sed -e '/^func_arith ()$/,/^} # func_arith /c\
13430 func_arith ()\
13431 {\
13432     func_arith_result=$(( $* ))\
13433 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13434   && mv -f "$cfgfile.tmp" "$cfgfile" \
13435     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13436 test 0 -eq $? || _lt_function_replace_fail=:
13437
13438
13439   sed -e '/^func_len ()$/,/^} # func_len /c\
13440 func_len ()\
13441 {\
13442     func_len_result=${#1}\
13443 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13444   && mv -f "$cfgfile.tmp" "$cfgfile" \
13445     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13446 test 0 -eq $? || _lt_function_replace_fail=:
13447
13448 fi
13449
13450 if test x"$lt_shell_append" = xyes; then
13451   sed -e '/^func_append ()$/,/^} # func_append /c\
13452 func_append ()\
13453 {\
13454     eval "${1}+=\\${2}"\
13455 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13456   && mv -f "$cfgfile.tmp" "$cfgfile" \
13457     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13458 test 0 -eq $? || _lt_function_replace_fail=:
13459
13460
13461   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13462 func_append_quoted ()\
13463 {\
13464 \    func_quote_for_eval "${2}"\
13465 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13466 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13467   && mv -f "$cfgfile.tmp" "$cfgfile" \
13468     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13469 test 0 -eq $? || _lt_function_replace_fail=:
13470
13471
13472   # Save a `func_append' function call where possible by direct use of '+='
13473   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13474     && mv -f "$cfgfile.tmp" "$cfgfile" \
13475       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13476   test 0 -eq $? || _lt_function_replace_fail=:
13477 else
13478   # Save a `func_append' function call even when '+=' is not available
13479   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13480     && mv -f "$cfgfile.tmp" "$cfgfile" \
13481       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13482   test 0 -eq $? || _lt_function_replace_fail=:
13483 fi
13484
13485 if test x"$_lt_function_replace_fail" = x":"; then
13486   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13487 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13488 fi
13489
13490
13491    mv -f "$cfgfile" "$ofile" ||
13492     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13493   chmod +x "$ofile"
13494
13495  ;;
13496
13497   esac
13498 done # for ac_tag
13499
13500
13501 as_fn_exit 0
13502 _ACEOF
13503 ac_clean_files=$ac_clean_files_save
13504
13505 test $ac_write_fail = 0 ||
13506   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13507
13508
13509 # configure is writing to config.log, and then calls config.status.
13510 # config.status does its own redirection, appending to config.log.
13511 # Unfortunately, on DOS this fails, as config.log is still kept open
13512 # by configure, so config.status won't be able to write to it; its
13513 # output is simply discarded.  So we exec the FD to /dev/null,
13514 # effectively closing config.log, so it can be properly (re)opened and
13515 # appended to by config.status.  When coming back to configure, we
13516 # need to make the FD available again.
13517 if test "$no_create" != yes; then
13518   ac_cs_success=:
13519   ac_config_status_args=
13520   test "$silent" = yes &&
13521     ac_config_status_args="$ac_config_status_args --quiet"
13522   exec 5>/dev/null
13523   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13524   exec 5>>config.log
13525   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13526   # would make configure fail if this is the last instruction.
13527   $ac_cs_success || as_fn_exit 1
13528 fi
13529 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13530   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13531 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13532 fi
13533