Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / mdemo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mdemo 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 lt_ltdl_dir='../../libltdl'
548
549 SHELL=${CONFIG_SHELL-/bin/sh}
550
551
552 test -n "$DJDIR" || exec 7<&0 </dev/null
553 exec 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571
572 # Identity of this package.
573 PACKAGE_NAME='mdemo'
574 PACKAGE_TARNAME='mdemo'
575 PACKAGE_VERSION='1.0'
576 PACKAGE_STRING='mdemo 1.0'
577 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
578 PACKAGE_URL=''
579
580 ac_unique_file="main.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 #  include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #  include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='am__EXEEXT_FALSE
618 am__EXEEXT_TRUE
619 LTLIBOBJS
620 LIBOBJS
621 LIBM
622 STATIC
623 LIBTOOL_DEPS
624 CPP
625 OTOOL64
626 OTOOL
627 LIPO
628 NMEDIT
629 DSYMUTIL
630 MANIFEST_TOOL
631 RANLIB
632 ac_ct_AR
633 AR
634 LN_S
635 NM
636 ac_ct_DUMPBIN
637 DUMPBIN
638 LD
639 FGREP
640 EGREP
641 GREP
642 SED
643 host_os
644 host_vendor
645 host_cpu
646 host
647 build_os
648 build_vendor
649 build_cpu
650 build
651 LIBTOOL
652 OBJDUMP
653 DLLTOOL
654 AS
655 INCLTDL
656 LTDLINCL
657 LTDLDEPS
658 LIBLTDL
659 am__fastdepCC_FALSE
660 am__fastdepCC_TRUE
661 CCDEPMODE
662 AMDEPBACKSLASH
663 AMDEP_FALSE
664 AMDEP_TRUE
665 am__quote
666 am__include
667 DEPDIR
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
674 CC
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
680 AWK
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 enable_dependency_tracking
740 enable_shared
741 enable_static
742 with_pic
743 enable_fast_install
744 with_gnu_ld
745 with_sysroot
746 enable_libtool_lock
747 '
748       ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP'
757
758
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 ac_unrecognized_opts=
763 ac_unrecognized_sep=
764 # The variables have the same names as the options, with
765 # dashes changed to underlines.
766 cache_file=/dev/null
767 exec_prefix=NONE
768 no_create=
769 no_recursion=
770 prefix=NONE
771 program_prefix=NONE
772 program_suffix=NONE
773 program_transform_name=s,x,x,
774 silent=
775 site=
776 srcdir=
777 verbose=
778 x_includes=NONE
779 x_libraries=NONE
780
781 # Installation directory options.
782 # These are left unexpanded so users can "make install exec_prefix=/foo"
783 # and all the variables that are supposed to be based on exec_prefix
784 # by default will actually change.
785 # Use braces instead of parens because sh, perl, etc. also accept them.
786 # (The list follows the same order as the GNU Coding Standards.)
787 bindir='${exec_prefix}/bin'
788 sbindir='${exec_prefix}/sbin'
789 libexecdir='${exec_prefix}/libexec'
790 datarootdir='${prefix}/share'
791 datadir='${datarootdir}'
792 sysconfdir='${prefix}/etc'
793 sharedstatedir='${prefix}/com'
794 localstatedir='${prefix}/var'
795 includedir='${prefix}/include'
796 oldincludedir='/usr/include'
797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798 infodir='${datarootdir}/info'
799 htmldir='${docdir}'
800 dvidir='${docdir}'
801 pdfdir='${docdir}'
802 psdir='${docdir}'
803 libdir='${exec_prefix}/lib'
804 localedir='${datarootdir}/locale'
805 mandir='${datarootdir}/man'
806
807 ac_prev=
808 ac_dashdash=
809 for ac_option
810 do
811   # If the previous option needs an argument, assign it.
812   if test -n "$ac_prev"; then
813     eval $ac_prev=\$ac_option
814     ac_prev=
815     continue
816   fi
817
818   case $ac_option in
819   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820   *=)   ac_optarg= ;;
821   *)    ac_optarg=yes ;;
822   esac
823
824   # Accept the important Cygnus configure options, so we can diagnose typos.
825
826   case $ac_dashdash$ac_option in
827   --)
828     ac_dashdash=yes ;;
829
830   -bindir | --bindir | --bindi | --bind | --bin | --bi)
831     ac_prev=bindir ;;
832   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833     bindir=$ac_optarg ;;
834
835   -build | --build | --buil | --bui | --bu)
836     ac_prev=build_alias ;;
837   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838     build_alias=$ac_optarg ;;
839
840   -cache-file | --cache-file | --cache-fil | --cache-fi \
841   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842     ac_prev=cache_file ;;
843   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845     cache_file=$ac_optarg ;;
846
847   --config-cache | -C)
848     cache_file=config.cache ;;
849
850   -datadir | --datadir | --datadi | --datad)
851     ac_prev=datadir ;;
852   -datadir=* | --datadir=* | --datadi=* | --datad=*)
853     datadir=$ac_optarg ;;
854
855   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856   | --dataroo | --dataro | --datar)
857     ac_prev=datarootdir ;;
858   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860     datarootdir=$ac_optarg ;;
861
862   -disable-* | --disable-*)
863     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864     # Reject names that are not valid shell variable names.
865     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866       as_fn_error $? "invalid feature name: $ac_useropt"
867     ac_useropt_orig=$ac_useropt
868     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869     case $ac_user_opts in
870       *"
871 "enable_$ac_useropt"
872 "*) ;;
873       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874          ac_unrecognized_sep=', ';;
875     esac
876     eval enable_$ac_useropt=no ;;
877
878   -docdir | --docdir | --docdi | --doc | --do)
879     ac_prev=docdir ;;
880   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881     docdir=$ac_optarg ;;
882
883   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884     ac_prev=dvidir ;;
885   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886     dvidir=$ac_optarg ;;
887
888   -enable-* | --enable-*)
889     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890     # Reject names that are not valid shell variable names.
891     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892       as_fn_error $? "invalid feature name: $ac_useropt"
893     ac_useropt_orig=$ac_useropt
894     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895     case $ac_user_opts in
896       *"
897 "enable_$ac_useropt"
898 "*) ;;
899       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900          ac_unrecognized_sep=', ';;
901     esac
902     eval enable_$ac_useropt=\$ac_optarg ;;
903
904   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906   | --exec | --exe | --ex)
907     ac_prev=exec_prefix ;;
908   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910   | --exec=* | --exe=* | --ex=*)
911     exec_prefix=$ac_optarg ;;
912
913   -gas | --gas | --ga | --g)
914     # Obsolete; use --with-gas.
915     with_gas=yes ;;
916
917   -help | --help | --hel | --he | -h)
918     ac_init_help=long ;;
919   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920     ac_init_help=recursive ;;
921   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922     ac_init_help=short ;;
923
924   -host | --host | --hos | --ho)
925     ac_prev=host_alias ;;
926   -host=* | --host=* | --hos=* | --ho=*)
927     host_alias=$ac_optarg ;;
928
929   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930     ac_prev=htmldir ;;
931   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932   | --ht=*)
933     htmldir=$ac_optarg ;;
934
935   -includedir | --includedir | --includedi | --included | --include \
936   | --includ | --inclu | --incl | --inc)
937     ac_prev=includedir ;;
938   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939   | --includ=* | --inclu=* | --incl=* | --inc=*)
940     includedir=$ac_optarg ;;
941
942   -infodir | --infodir | --infodi | --infod | --info | --inf)
943     ac_prev=infodir ;;
944   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945     infodir=$ac_optarg ;;
946
947   -libdir | --libdir | --libdi | --libd)
948     ac_prev=libdir ;;
949   -libdir=* | --libdir=* | --libdi=* | --libd=*)
950     libdir=$ac_optarg ;;
951
952   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953   | --libexe | --libex | --libe)
954     ac_prev=libexecdir ;;
955   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956   | --libexe=* | --libex=* | --libe=*)
957     libexecdir=$ac_optarg ;;
958
959   -localedir | --localedir | --localedi | --localed | --locale)
960     ac_prev=localedir ;;
961   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962     localedir=$ac_optarg ;;
963
964   -localstatedir | --localstatedir | --localstatedi | --localstated \
965   | --localstate | --localstat | --localsta | --localst | --locals)
966     ac_prev=localstatedir ;;
967   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969     localstatedir=$ac_optarg ;;
970
971   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972     ac_prev=mandir ;;
973   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974     mandir=$ac_optarg ;;
975
976   -nfp | --nfp | --nf)
977     # Obsolete; use --without-fp.
978     with_fp=no ;;
979
980   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981   | --no-cr | --no-c | -n)
982     no_create=yes ;;
983
984   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986     no_recursion=yes ;;
987
988   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990   | --oldin | --oldi | --old | --ol | --o)
991     ac_prev=oldincludedir ;;
992   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995     oldincludedir=$ac_optarg ;;
996
997   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998     ac_prev=prefix ;;
999   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000     prefix=$ac_optarg ;;
1001
1002   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003   | --program-pre | --program-pr | --program-p)
1004     ac_prev=program_prefix ;;
1005   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007     program_prefix=$ac_optarg ;;
1008
1009   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010   | --program-suf | --program-su | --program-s)
1011     ac_prev=program_suffix ;;
1012   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014     program_suffix=$ac_optarg ;;
1015
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     ac_prev=program_transform_name ;;
1024   -program-transform-name=* | --program-transform-name=* \
1025   | --program-transform-nam=* | --program-transform-na=* \
1026   | --program-transform-n=* | --program-transform-=* \
1027   | --program-transform=* | --program-transfor=* \
1028   | --program-transfo=* | --program-transf=* \
1029   | --program-trans=* | --program-tran=* \
1030   | --progr-tra=* | --program-tr=* | --program-t=*)
1031     program_transform_name=$ac_optarg ;;
1032
1033   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034     ac_prev=pdfdir ;;
1035   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036     pdfdir=$ac_optarg ;;
1037
1038   -psdir | --psdir | --psdi | --psd | --ps)
1039     ac_prev=psdir ;;
1040   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041     psdir=$ac_optarg ;;
1042
1043   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044   | -silent | --silent | --silen | --sile | --sil)
1045     silent=yes ;;
1046
1047   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048     ac_prev=sbindir ;;
1049   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050   | --sbi=* | --sb=*)
1051     sbindir=$ac_optarg ;;
1052
1053   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055   | --sharedst | --shareds | --shared | --share | --shar \
1056   | --sha | --sh)
1057     ac_prev=sharedstatedir ;;
1058   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061   | --sha=* | --sh=*)
1062     sharedstatedir=$ac_optarg ;;
1063
1064   -site | --site | --sit)
1065     ac_prev=site ;;
1066   -site=* | --site=* | --sit=*)
1067     site=$ac_optarg ;;
1068
1069   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070     ac_prev=srcdir ;;
1071   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072     srcdir=$ac_optarg ;;
1073
1074   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075   | --syscon | --sysco | --sysc | --sys | --sy)
1076     ac_prev=sysconfdir ;;
1077   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079     sysconfdir=$ac_optarg ;;
1080
1081   -target | --target | --targe | --targ | --tar | --ta | --t)
1082     ac_prev=target_alias ;;
1083   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084     target_alias=$ac_optarg ;;
1085
1086   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087     verbose=yes ;;
1088
1089   -version | --version | --versio | --versi | --vers | -V)
1090     ac_init_version=: ;;
1091
1092   -with-* | --with-*)
1093     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096       as_fn_error $? "invalid package name: $ac_useropt"
1097     ac_useropt_orig=$ac_useropt
1098     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099     case $ac_user_opts in
1100       *"
1101 "with_$ac_useropt"
1102 "*) ;;
1103       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104          ac_unrecognized_sep=', ';;
1105     esac
1106     eval with_$ac_useropt=\$ac_optarg ;;
1107
1108   -without-* | --without-*)
1109     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112       as_fn_error $? "invalid package name: $ac_useropt"
1113     ac_useropt_orig=$ac_useropt
1114     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115     case $ac_user_opts in
1116       *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120          ac_unrecognized_sep=', ';;
1121     esac
1122     eval with_$ac_useropt=no ;;
1123
1124   --x)
1125     # Obsolete; use --with-x.
1126     with_x=yes ;;
1127
1128   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129   | --x-incl | --x-inc | --x-in | --x-i)
1130     ac_prev=x_includes ;;
1131   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133     x_includes=$ac_optarg ;;
1134
1135   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137     ac_prev=x_libraries ;;
1138   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140     x_libraries=$ac_optarg ;;
1141
1142   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information"
1144     ;;
1145
1146   *=*)
1147     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148     # Reject names that are not valid shell variable names.
1149     case $ac_envvar in #(
1150       '' | [0-9]* | *[!_$as_cr_alnum]* )
1151       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152     esac
1153     eval $ac_envvar=\$ac_optarg
1154     export $ac_envvar ;;
1155
1156   *)
1157     # FIXME: should be removed in autoconf 3.0.
1158     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1162     ;;
1163
1164   esac
1165 done
1166
1167 if test -n "$ac_prev"; then
1168   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169   as_fn_error $? "missing argument to $ac_option"
1170 fi
1171
1172 if test -n "$ac_unrecognized_opts"; then
1173   case $enable_option_checking in
1174     no) ;;
1175     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1176     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177   esac
1178 fi
1179
1180 # Check all directory arguments for consistency.
1181 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182                 datadir sysconfdir sharedstatedir localstatedir includedir \
1183                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184                 libdir localedir mandir
1185 do
1186   eval ac_val=\$$ac_var
1187   # Remove trailing slashes.
1188   case $ac_val in
1189     */ )
1190       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191       eval $ac_var=\$ac_val;;
1192   esac
1193   # Be sure to have absolute directory names.
1194   case $ac_val in
1195     [\\/$]* | ?:[\\/]* )  continue;;
1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197   esac
1198   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210   if test "x$build_alias" = x; then
1211     cross_compiling=maybe
1212     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1213     If a cross compiler is detected then cross compile mode will be used" >&2
1214   elif test "x$build_alias" != "x$host_alias"; then
1215     cross_compiling=yes
1216   fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228   as_fn_error $? "working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230   as_fn_error $? "pwd does not report name of working directory"
1231
1232
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235   ac_srcdir_defaulted=yes
1236   # Try the directory containing this script, then the parent directory.
1237   ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239          X"$as_myself" : 'X\(//\)[^/]' \| \
1240          X"$as_myself" : 'X\(//\)$' \| \
1241          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244             s//\1/
1245             q
1246           }
1247           /^X\(\/\/\)[^/].*/{
1248             s//\1/
1249             q
1250           }
1251           /^X\(\/\/\)$/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\).*/{
1256             s//\1/
1257             q
1258           }
1259           s/.*/./; q'`
1260   srcdir=$ac_confdir
1261   if test ! -r "$srcdir/$ac_unique_file"; then
1262     srcdir=..
1263   fi
1264 else
1265   ac_srcdir_defaulted=no
1266 fi
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274         pwd)`
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277   srcdir=.
1278 fi
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1282 case $srcdir in
1283 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 esac
1285 for ac_var in $ac_precious_vars; do
1286   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287   eval ac_env_${ac_var}_value=\$${ac_var}
1288   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 done
1291
1292 #
1293 # Report the --help message.
1294 #
1295 if test "$ac_init_help" = "long"; then
1296   # Omit some internal or obsolete options to make the list less imposing.
1297   # This message is too long to be a string in the A/UX 3.1 sh.
1298   cat <<_ACEOF
1299 \`configure' configures mdemo 1.0 to adapt to many kinds of systems.
1300
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE.  See below for descriptions of some of the useful variables.
1305
1306 Defaults for the options are specified in brackets.
1307
1308 Configuration:
1309   -h, --help              display this help and exit
1310       --help=short        display options specific to this package
1311       --help=recursive    display the short help of all the included packages
1312   -V, --version           display version information and exit
1313   -q, --quiet, --silent   do not print \`checking ...' messages
1314       --cache-file=FILE   cache test results in FILE [disabled]
1315   -C, --config-cache      alias for \`--cache-file=config.cache'
1316   -n, --no-create         do not create output files
1317       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1318
1319 Installation directories:
1320   --prefix=PREFIX         install architecture-independent files in PREFIX
1321                           [$ac_default_prefix]
1322   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1323                           [PREFIX]
1324
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1329
1330 For better control, use the options below.
1331
1332 Fine tuning of the installation directories:
1333   --bindir=DIR            user executables [EPREFIX/bin]
1334   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1335   --libexecdir=DIR        program executables [EPREFIX/libexec]
1336   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1337   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1338   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1339   --libdir=DIR            object code libraries [EPREFIX/lib]
1340   --includedir=DIR        C header files [PREFIX/include]
1341   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1342   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1343   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1344   --infodir=DIR           info documentation [DATAROOTDIR/info]
1345   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1346   --mandir=DIR            man documentation [DATAROOTDIR/man]
1347   --docdir=DIR            documentation root [DATAROOTDIR/doc/mdemo]
1348   --htmldir=DIR           html documentation [DOCDIR]
1349   --dvidir=DIR            dvi documentation [DOCDIR]
1350   --pdfdir=DIR            pdf documentation [DOCDIR]
1351   --psdir=DIR             ps documentation [DOCDIR]
1352 _ACEOF
1353
1354   cat <<\_ACEOF
1355
1356 Program names:
1357   --program-prefix=PREFIX            prepend PREFIX to installed program names
1358   --program-suffix=SUFFIX            append SUFFIX to installed program names
1359   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364 _ACEOF
1365 fi
1366
1367 if test -n "$ac_init_help"; then
1368   case $ac_init_help in
1369      short | recursive ) echo "Configuration of mdemo 1.0:";;
1370    esac
1371   cat <<\_ACEOF
1372
1373 Optional Features:
1374   --disable-option-checking  ignore unrecognized --enable/--with options
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --disable-dependency-tracking  speeds up one-time build
1378   --enable-dependency-tracking   do not reject slow dependency extractors
1379   --enable-shared[=PKGS]  build shared libraries [default=yes]
1380   --enable-static[=PKGS]  build static libraries [default=yes]
1381   --enable-fast-install[=PKGS]
1382                           optimize for fast installation [default=yes]
1383   --disable-libtool-lock  avoid locking (might break parallel builds)
1384
1385 Optional Packages:
1386   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1387   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1388   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1389                           both]
1390   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1391   --with-sysroot=DIR Search for dependent libraries within DIR
1392                         (or the compiler's sysroot if not specified).
1393
1394 Some influential environment variables:
1395   CC          C compiler command
1396   CFLAGS      C compiler flags
1397   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1398               nonstandard directory <lib dir>
1399   LIBS        libraries to pass to the linker, e.g. -l<library>
1400   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401               you have headers in a nonstandard directory <include dir>
1402   CPP         C preprocessor
1403
1404 Use these variables to override the choices made by `configure' or to help
1405 it to find libraries and programs with nonstandard names/locations.
1406
1407 Report bugs to <bug-libtool@gnu.org>.
1408 _ACEOF
1409 ac_status=$?
1410 fi
1411
1412 if test "$ac_init_help" = "recursive"; then
1413   # If there are subdirs, report their specific --help.
1414   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415     test -d "$ac_dir" ||
1416       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1417       continue
1418     ac_builddir=.
1419
1420 case "$ac_dir" in
1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *)
1423   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1424   # A ".." for each directory in $ac_dir_suffix.
1425   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1426   case $ac_top_builddir_sub in
1427   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429   esac ;;
1430 esac
1431 ac_abs_top_builddir=$ac_pwd
1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433 # for backward compatibility:
1434 ac_top_builddir=$ac_top_build_prefix
1435
1436 case $srcdir in
1437   .)  # We are building in place.
1438     ac_srcdir=.
1439     ac_top_srcdir=$ac_top_builddir_sub
1440     ac_abs_top_srcdir=$ac_pwd ;;
1441   [\\/]* | ?:[\\/]* )  # Absolute name.
1442     ac_srcdir=$srcdir$ac_dir_suffix;
1443     ac_top_srcdir=$srcdir
1444     ac_abs_top_srcdir=$srcdir ;;
1445   *) # Relative name.
1446     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447     ac_top_srcdir=$ac_top_build_prefix$srcdir
1448     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449 esac
1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451
1452     cd "$ac_dir" || { ac_status=$?; continue; }
1453     # Check for guested configure.
1454     if test -f "$ac_srcdir/configure.gnu"; then
1455       echo &&
1456       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457     elif test -f "$ac_srcdir/configure"; then
1458       echo &&
1459       $SHELL "$ac_srcdir/configure" --help=recursive
1460     else
1461       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462     fi || ac_status=$?
1463     cd "$ac_pwd" || { ac_status=$?; break; }
1464   done
1465 fi
1466
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1469   cat <<\_ACEOF
1470 mdemo configure 1.0
1471 generated by GNU Autoconf 2.68
1472
1473 Copyright (C) 2010 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1476 _ACEOF
1477   exit
1478 fi
1479
1480 ## ------------------------ ##
1481 ## Autoconf initialization. ##
1482 ## ------------------------ ##
1483
1484 # ac_fn_c_try_compile LINENO
1485 # --------------------------
1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_c_try_compile ()
1488 {
1489   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490   rm -f conftest.$ac_objext
1491   if { { ac_try="$ac_compile"
1492 case "(($ac_try" in
1493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494   *) ac_try_echo=$ac_try;;
1495 esac
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498   (eval "$ac_compile") 2>conftest.err
1499   ac_status=$?
1500   if test -s conftest.err; then
1501     grep -v '^ *+' conftest.err >conftest.er1
1502     cat conftest.er1 >&5
1503     mv -f conftest.er1 conftest.err
1504   fi
1505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506   test $ac_status = 0; } && {
1507          test -z "$ac_c_werror_flag" ||
1508          test ! -s conftest.err
1509        } && test -s conftest.$ac_objext; then :
1510   ac_retval=0
1511 else
1512   $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1514
1515         ac_retval=1
1516 fi
1517   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518   as_fn_set_status $ac_retval
1519
1520 } # ac_fn_c_try_compile
1521
1522 # ac_fn_c_try_link LINENO
1523 # -----------------------
1524 # Try to link conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_link ()
1526 {
1527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528   rm -f conftest.$ac_objext conftest$ac_exeext
1529   if { { ac_try="$ac_link"
1530 case "(($ac_try" in
1531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532   *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536   (eval "$ac_link") 2>conftest.err
1537   ac_status=$?
1538   if test -s conftest.err; then
1539     grep -v '^ *+' conftest.err >conftest.er1
1540     cat conftest.er1 >&5
1541     mv -f conftest.er1 conftest.err
1542   fi
1543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544   test $ac_status = 0; } && {
1545          test -z "$ac_c_werror_flag" ||
1546          test ! -s conftest.err
1547        } && test -s conftest$ac_exeext && {
1548          test "$cross_compiling" = yes ||
1549          $as_test_x conftest$ac_exeext
1550        }; then :
1551   ac_retval=0
1552 else
1553   $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556         ac_retval=1
1557 fi
1558   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1559   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1560   # interfere with the next link command; also delete a directory that is
1561   # left behind by Apple's compiler.  We do this before executing the actions.
1562   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1563   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564   as_fn_set_status $ac_retval
1565
1566 } # ac_fn_c_try_link
1567
1568 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1569 # -------------------------------------------------------
1570 # Tests whether HEADER exists and can be compiled using the include files in
1571 # INCLUDES, setting the cache variable VAR accordingly.
1572 ac_fn_c_check_header_compile ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1576 $as_echo_n "checking for $2... " >&6; }
1577 if eval \${$3+:} false; then :
1578   $as_echo_n "(cached) " >&6
1579 else
1580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h.  */
1582 $4
1583 #include <$2>
1584 _ACEOF
1585 if ac_fn_c_try_compile "$LINENO"; then :
1586   eval "$3=yes"
1587 else
1588   eval "$3=no"
1589 fi
1590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591 fi
1592 eval ac_res=\$$3
1593                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594 $as_echo "$ac_res" >&6; }
1595   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596
1597 } # ac_fn_c_check_header_compile
1598
1599 # ac_fn_c_try_cpp LINENO
1600 # ----------------------
1601 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_cpp ()
1603 {
1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605   if { { ac_try="$ac_cpp conftest.$ac_ext"
1606 case "(($ac_try" in
1607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608   *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613   ac_status=$?
1614   if test -s conftest.err; then
1615     grep -v '^ *+' conftest.err >conftest.er1
1616     cat conftest.er1 >&5
1617     mv -f conftest.er1 conftest.err
1618   fi
1619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620   test $ac_status = 0; } > conftest.i && {
1621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622          test ! -s conftest.err
1623        }; then :
1624   ac_retval=0
1625 else
1626   $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629     ac_retval=1
1630 fi
1631   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632   as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_cpp
1635
1636 # ac_fn_c_try_run LINENO
1637 # ----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639 # that executables *can* be run.
1640 ac_fn_c_try_run ()
1641 {
1642   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643   if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646   *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650   (eval "$ac_link") 2>&5
1651   ac_status=$?
1652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654   { { case "(($ac_try" in
1655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656   *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660   (eval "$ac_try") 2>&5
1661   ac_status=$?
1662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663   test $ac_status = 0; }; }; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: program exited with status $ac_status" >&5
1667        $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670        ac_retval=$ac_status
1671 fi
1672   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674   as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_run
1677
1678 # ac_fn_c_check_func LINENO FUNC VAR
1679 # ----------------------------------
1680 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1681 ac_fn_c_check_func ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687   $as_echo_n "(cached) " >&6
1688 else
1689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h.  */
1691 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1693 #define $2 innocuous_$2
1694
1695 /* System header to define __stub macros and hopefully few prototypes,
1696     which can conflict with char $2 (); below.
1697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1698     <limits.h> exists even on freestanding compilers.  */
1699
1700 #ifdef __STDC__
1701 # include <limits.h>
1702 #else
1703 # include <assert.h>
1704 #endif
1705
1706 #undef $2
1707
1708 /* Override any GCC internal prototype to avoid an error.
1709    Use char because int might match the return type of a GCC
1710    builtin and then its argument prototype would still apply.  */
1711 #ifdef __cplusplus
1712 extern "C"
1713 #endif
1714 char $2 ();
1715 /* The GNU C library defines this for functions which it implements
1716     to always fail with ENOSYS.  Some functions are actually named
1717     something starting with __ and the normal name is an alias.  */
1718 #if defined __stub_$2 || defined __stub___$2
1719 choke me
1720 #endif
1721
1722 int
1723 main ()
1724 {
1725 return $2 ();
1726   ;
1727   return 0;
1728 }
1729 _ACEOF
1730 if ac_fn_c_try_link "$LINENO"; then :
1731   eval "$3=yes"
1732 else
1733   eval "$3=no"
1734 fi
1735 rm -f core conftest.err conftest.$ac_objext \
1736     conftest$ac_exeext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_func
1744 cat >config.log <<_ACEOF
1745 This file contains any messages produced by compilers while
1746 running configure, to aid debugging if configure makes a mistake.
1747
1748 It was created by mdemo $as_me 1.0, which was
1749 generated by GNU Autoconf 2.68.  Invocation command line was
1750
1751   $ $0 $@
1752
1753 _ACEOF
1754 exec 5>>config.log
1755 {
1756 cat <<_ASUNAME
1757 ## --------- ##
1758 ## Platform. ##
1759 ## --------- ##
1760
1761 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1762 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1763 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1764 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1765 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1766
1767 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1768 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1769
1770 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1771 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1772 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1773 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1774 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1775 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1776 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1777
1778 _ASUNAME
1779
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 for as_dir in $PATH
1782 do
1783   IFS=$as_save_IFS
1784   test -z "$as_dir" && as_dir=.
1785     $as_echo "PATH: $as_dir"
1786   done
1787 IFS=$as_save_IFS
1788
1789 } >&5
1790
1791 cat >&5 <<_ACEOF
1792
1793
1794 ## ----------- ##
1795 ## Core tests. ##
1796 ## ----------- ##
1797
1798 _ACEOF
1799
1800
1801 # Keep a trace of the command line.
1802 # Strip out --no-create and --no-recursion so they do not pile up.
1803 # Strip out --silent because we don't want to record it for future runs.
1804 # Also quote any args containing shell meta-characters.
1805 # Make two passes to allow for proper duplicate-argument suppression.
1806 ac_configure_args=
1807 ac_configure_args0=
1808 ac_configure_args1=
1809 ac_must_keep_next=false
1810 for ac_pass in 1 2
1811 do
1812   for ac_arg
1813   do
1814     case $ac_arg in
1815     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1816     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1817     | -silent | --silent | --silen | --sile | --sil)
1818       continue ;;
1819     *\'*)
1820       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1821     esac
1822     case $ac_pass in
1823     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1824     2)
1825       as_fn_append ac_configure_args1 " '$ac_arg'"
1826       if test $ac_must_keep_next = true; then
1827         ac_must_keep_next=false # Got value, back to normal.
1828       else
1829         case $ac_arg in
1830           *=* | --config-cache | -C | -disable-* | --disable-* \
1831           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1832           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1833           | -with-* | --with-* | -without-* | --without-* | --x)
1834             case "$ac_configure_args0 " in
1835               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1836             esac
1837             ;;
1838           -* ) ac_must_keep_next=true ;;
1839         esac
1840       fi
1841       as_fn_append ac_configure_args " '$ac_arg'"
1842       ;;
1843     esac
1844   done
1845 done
1846 { ac_configure_args0=; unset ac_configure_args0;}
1847 { ac_configure_args1=; unset ac_configure_args1;}
1848
1849 # When interrupted or exit'd, cleanup temporary files, and complete
1850 # config.log.  We remove comments because anyway the quotes in there
1851 # would cause problems or look ugly.
1852 # WARNING: Use '\'' to represent an apostrophe within the trap.
1853 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1854 trap 'exit_status=$?
1855   # Save into config.log some information that might help in debugging.
1856   {
1857     echo
1858
1859     $as_echo "## ---------------- ##
1860 ## Cache variables. ##
1861 ## ---------------- ##"
1862     echo
1863     # The following way of writing the cache mishandles newlines in values,
1864 (
1865   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1866     eval ac_val=\$$ac_var
1867     case $ac_val in #(
1868     *${as_nl}*)
1869       case $ac_var in #(
1870       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1872       esac
1873       case $ac_var in #(
1874       _ | IFS | as_nl) ;; #(
1875       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1876       *) { eval $ac_var=; unset $ac_var;} ;;
1877       esac ;;
1878     esac
1879   done
1880   (set) 2>&1 |
1881     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1882     *${as_nl}ac_space=\ *)
1883       sed -n \
1884         "s/'\''/'\''\\\\'\'''\''/g;
1885           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1886       ;; #(
1887     *)
1888       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889       ;;
1890     esac |
1891     sort
1892 )
1893     echo
1894
1895     $as_echo "## ----------------- ##
1896 ## Output variables. ##
1897 ## ----------------- ##"
1898     echo
1899     for ac_var in $ac_subst_vars
1900     do
1901       eval ac_val=\$$ac_var
1902       case $ac_val in
1903       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904       esac
1905       $as_echo "$ac_var='\''$ac_val'\''"
1906     done | sort
1907     echo
1908
1909     if test -n "$ac_subst_files"; then
1910       $as_echo "## ------------------- ##
1911 ## File substitutions. ##
1912 ## ------------------- ##"
1913       echo
1914       for ac_var in $ac_subst_files
1915       do
1916         eval ac_val=\$$ac_var
1917         case $ac_val in
1918         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1919         esac
1920         $as_echo "$ac_var='\''$ac_val'\''"
1921       done | sort
1922       echo
1923     fi
1924
1925     if test -s confdefs.h; then
1926       $as_echo "## ----------- ##
1927 ## confdefs.h. ##
1928 ## ----------- ##"
1929       echo
1930       cat confdefs.h
1931       echo
1932     fi
1933     test "$ac_signal" != 0 &&
1934       $as_echo "$as_me: caught signal $ac_signal"
1935     $as_echo "$as_me: exit $exit_status"
1936   } >&5
1937   rm -f core *.core core.conftest.* &&
1938     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1939     exit $exit_status
1940 ' 0
1941 for ac_signal in 1 2 13 15; do
1942   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1943 done
1944 ac_signal=0
1945
1946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1947 rm -f -r conftest* confdefs.h
1948
1949 $as_echo "/* confdefs.h */" > confdefs.h
1950
1951 # Predefined preprocessor variables.
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_NAME "$PACKAGE_NAME"
1955 _ACEOF
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1959 _ACEOF
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1963 _ACEOF
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_STRING "$PACKAGE_STRING"
1967 _ACEOF
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1971 _ACEOF
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_URL "$PACKAGE_URL"
1975 _ACEOF
1976
1977
1978 # Let the site file select an alternate cache file if it wants to.
1979 # Prefer an explicitly selected file to automatically selected ones.
1980 ac_site_file1=NONE
1981 ac_site_file2=NONE
1982 if test -n "$CONFIG_SITE"; then
1983   # We do not want a PATH search for config.site.
1984   case $CONFIG_SITE in #((
1985     -*)  ac_site_file1=./$CONFIG_SITE;;
1986     */*) ac_site_file1=$CONFIG_SITE;;
1987     *)   ac_site_file1=./$CONFIG_SITE;;
1988   esac
1989 elif test "x$prefix" != xNONE; then
1990   ac_site_file1=$prefix/share/config.site
1991   ac_site_file2=$prefix/etc/config.site
1992 else
1993   ac_site_file1=$ac_default_prefix/share/config.site
1994   ac_site_file2=$ac_default_prefix/etc/config.site
1995 fi
1996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1997 do
1998   test "x$ac_site_file" = xNONE && continue
1999   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2002     sed 's/^/| /' "$ac_site_file" >&5
2003     . "$ac_site_file" \
2004       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2006 as_fn_error $? "failed to load site script $ac_site_file
2007 See \`config.log' for more details" "$LINENO" 5; }
2008   fi
2009 done
2010
2011 if test -r "$cache_file"; then
2012   # Some versions of bash will fail to source /dev/null (special files
2013   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2014   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2015     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2016 $as_echo "$as_me: loading cache $cache_file" >&6;}
2017     case $cache_file in
2018       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2019       *)                      . "./$cache_file";;
2020     esac
2021   fi
2022 else
2023   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2024 $as_echo "$as_me: creating cache $cache_file" >&6;}
2025   >$cache_file
2026 fi
2027
2028 # Check that the precious variables saved in the cache have kept the same
2029 # value.
2030 ac_cache_corrupted=false
2031 for ac_var in $ac_precious_vars; do
2032   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2033   eval ac_new_set=\$ac_env_${ac_var}_set
2034   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2035   eval ac_new_val=\$ac_env_${ac_var}_value
2036   case $ac_old_set,$ac_new_set in
2037     set,)
2038       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2039 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2040       ac_cache_corrupted=: ;;
2041     ,set)
2042       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2043 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2044       ac_cache_corrupted=: ;;
2045     ,);;
2046     *)
2047       if test "x$ac_old_val" != "x$ac_new_val"; then
2048         # differences in whitespace do not lead to failure.
2049         ac_old_val_w=`echo x $ac_old_val`
2050         ac_new_val_w=`echo x $ac_new_val`
2051         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2052           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2053 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2054           ac_cache_corrupted=:
2055         else
2056           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2057 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2058           eval $ac_var=\$ac_old_val
2059         fi
2060         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2061 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2062         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2063 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2064       fi;;
2065   esac
2066   # Pass precious variables to config.status.
2067   if test "$ac_new_set" = set; then
2068     case $ac_new_val in
2069     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2070     *) ac_arg=$ac_var=$ac_new_val ;;
2071     esac
2072     case " $ac_configure_args " in
2073       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2074       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2075     esac
2076   fi
2077 done
2078 if $ac_cache_corrupted; then
2079   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2082 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2083   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2084 fi
2085 ## -------------------- ##
2086 ## Main body of script. ##
2087 ## -------------------- ##
2088
2089 ac_ext=c
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094
2095
2096
2097 ac_aux_dir=
2098 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2099   if test -f "$ac_dir/install-sh"; then
2100     ac_aux_dir=$ac_dir
2101     ac_install_sh="$ac_aux_dir/install-sh -c"
2102     break
2103   elif test -f "$ac_dir/install.sh"; then
2104     ac_aux_dir=$ac_dir
2105     ac_install_sh="$ac_aux_dir/install.sh -c"
2106     break
2107   elif test -f "$ac_dir/shtool"; then
2108     ac_aux_dir=$ac_dir
2109     ac_install_sh="$ac_aux_dir/shtool install -c"
2110     break
2111   fi
2112 done
2113 if test -z "$ac_aux_dir"; then
2114   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2115 fi
2116
2117 # These three variables are undocumented and unsupported,
2118 # and are intended to be withdrawn in a future Autoconf release.
2119 # They can cause serious problems if a builder's source tree is in a directory
2120 # whose full name contains unusual characters.
2121 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2122 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2123 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2124
2125
2126
2127
2128 ## ------------------------ ##
2129 ## Automake Initialisation. ##
2130 ## ------------------------ ##
2131 am__api_version='1.11'
2132
2133 # Find a good install program.  We prefer a C program (faster),
2134 # so one script is as good as another.  But avoid the broken or
2135 # incompatible versions:
2136 # SysV /etc/install, /usr/sbin/install
2137 # SunOS /usr/etc/install
2138 # IRIX /sbin/install
2139 # AIX /bin/install
2140 # AmigaOS /C/install, which installs bootblocks on floppy discs
2141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2144 # OS/2's system install, which has a completely different semantic
2145 # ./install, which can be erroneously created by make from ./install.sh.
2146 # Reject install programs that cannot install multiple files.
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2148 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2149 if test -z "$INSTALL"; then
2150 if ${ac_cv_path_install+:} false; then :
2151   $as_echo_n "(cached) " >&6
2152 else
2153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158     # Account for people who put trailing slashes in PATH elements.
2159 case $as_dir/ in #((
2160   ./ | .// | /[cC]/* | \
2161   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2162   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2163   /usr/ucb/* ) ;;
2164   *)
2165     # OSF1 and SCO ODT 3.0 have their own names for install.
2166     # Don't use installbsd from OSF since it installs stuff as root
2167     # by default.
2168     for ac_prog in ginstall scoinst install; do
2169       for ac_exec_ext in '' $ac_executable_extensions; do
2170         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2171           if test $ac_prog = install &&
2172             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2173             # AIX install.  It has an incompatible calling convention.
2174             :
2175           elif test $ac_prog = install &&
2176             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177             # program-specific install script used by HP pwplus--don't use.
2178             :
2179           else
2180             rm -rf conftest.one conftest.two conftest.dir
2181             echo one > conftest.one
2182             echo two > conftest.two
2183             mkdir conftest.dir
2184             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2185               test -s conftest.one && test -s conftest.two &&
2186               test -s conftest.dir/conftest.one &&
2187               test -s conftest.dir/conftest.two
2188             then
2189               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2190               break 3
2191             fi
2192           fi
2193         fi
2194       done
2195     done
2196     ;;
2197 esac
2198
2199   done
2200 IFS=$as_save_IFS
2201
2202 rm -rf conftest.one conftest.two conftest.dir
2203
2204 fi
2205   if test "${ac_cv_path_install+set}" = set; then
2206     INSTALL=$ac_cv_path_install
2207   else
2208     # As a last resort, use the slow shell script.  Don't cache a
2209     # value for INSTALL within a source directory, because that will
2210     # break other packages using the cache if that directory is
2211     # removed, or if the value is a relative name.
2212     INSTALL=$ac_install_sh
2213   fi
2214 fi
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2216 $as_echo "$INSTALL" >&6; }
2217
2218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2219 # It thinks the first close brace ends the variable substitution.
2220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2221
2222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2223
2224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2225
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2227 $as_echo_n "checking whether build environment is sane... " >&6; }
2228 # Just in case
2229 sleep 1
2230 echo timestamp > conftest.file
2231 # Reject unsafe characters in $srcdir or the absolute working directory
2232 # name.  Accept space and tab only in the latter.
2233 am_lf='
2234 '
2235 case `pwd` in
2236   *[\\\"\#\$\&\'\`$am_lf]*)
2237     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2238 esac
2239 case $srcdir in
2240   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2241     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2242 esac
2243
2244 # Do `set' in a subshell so we don't clobber the current shell's
2245 # arguments.  Must try -L first in case configure is actually a
2246 # symlink; some systems play weird games with the mod time of symlinks
2247 # (eg FreeBSD returns the mod time of the symlink's containing
2248 # directory).
2249 if (
2250    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2251    if test "$*" = "X"; then
2252       # -L didn't work.
2253       set X `ls -t "$srcdir/configure" conftest.file`
2254    fi
2255    rm -f conftest.file
2256    if test "$*" != "X $srcdir/configure conftest.file" \
2257       && test "$*" != "X conftest.file $srcdir/configure"; then
2258
2259       # If neither matched, then we have a broken ls.  This can happen
2260       # if, for instance, CONFIG_SHELL is bash and it inherits a
2261       # broken ls alias from the environment.  This has actually
2262       # happened.  Such a system could not be considered "sane".
2263       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2264 alias in your environment" "$LINENO" 5
2265    fi
2266
2267    test "$2" = conftest.file
2268    )
2269 then
2270    # Ok.
2271    :
2272 else
2273    as_fn_error $? "newly created file is older than distributed files!
2274 Check your system clock" "$LINENO" 5
2275 fi
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2277 $as_echo "yes" >&6; }
2278 test "$program_prefix" != NONE &&
2279   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2280 # Use a double $ so make ignores it.
2281 test "$program_suffix" != NONE &&
2282   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2283 # Double any \ or $.
2284 # By default was `s,x,x', remove it if useless.
2285 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2286 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2287
2288 # expand $ac_aux_dir to an absolute path
2289 am_aux_dir=`cd $ac_aux_dir && pwd`
2290
2291 if test x"${MISSING+set}" != xset; then
2292   case $am_aux_dir in
2293   *\ * | *\     *)
2294     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2295   *)
2296     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2297   esac
2298 fi
2299 # Use eval to expand $SHELL
2300 if eval "$MISSING --run true"; then
2301   am_missing_run="$MISSING --run "
2302 else
2303   am_missing_run=
2304   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2305 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2306 fi
2307
2308 if test x"${install_sh}" != xset; then
2309   case $am_aux_dir in
2310   *\ * | *\     *)
2311     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2312   *)
2313     install_sh="\${SHELL} $am_aux_dir/install-sh"
2314   esac
2315 fi
2316
2317 # Installed binaries are usually stripped using `strip' when the user
2318 # run `make install-strip'.  However `strip' might not be the right
2319 # tool to use in cross-compilation environments, therefore Automake
2320 # will honor the `STRIP' environment variable to overrule this program.
2321 if test "$cross_compiling" != no; then
2322   if test -n "$ac_tool_prefix"; then
2323   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}strip; ac_word=$2
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if ${ac_cv_prog_STRIP+:} false; then :
2328   $as_echo_n "(cached) " >&6
2329 else
2330   if test -n "$STRIP"; then
2331   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338     for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345   done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 STRIP=$ac_cv_prog_STRIP
2351 if test -n "$STRIP"; then
2352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2353 $as_echo "$STRIP" >&6; }
2354 else
2355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2356 $as_echo "no" >&6; }
2357 fi
2358
2359
2360 fi
2361 if test -z "$ac_cv_prog_STRIP"; then
2362   ac_ct_STRIP=$STRIP
2363   # Extract the first word of "strip", so it can be a program name with args.
2364 set dummy strip; ac_word=$2
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2366 $as_echo_n "checking for $ac_word... " >&6; }
2367 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2368   $as_echo_n "(cached) " >&6
2369 else
2370   if test -n "$ac_ct_STRIP"; then
2371   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378     for ac_exec_ext in '' $ac_executable_extensions; do
2379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380     ac_cv_prog_ac_ct_STRIP="strip"
2381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385   done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2391 if test -n "$ac_ct_STRIP"; then
2392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2393 $as_echo "$ac_ct_STRIP" >&6; }
2394 else
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2396 $as_echo "no" >&6; }
2397 fi
2398
2399   if test "x$ac_ct_STRIP" = x; then
2400     STRIP=":"
2401   else
2402     case $cross_compiling:$ac_tool_warned in
2403 yes:)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2406 ac_tool_warned=yes ;;
2407 esac
2408     STRIP=$ac_ct_STRIP
2409   fi
2410 else
2411   STRIP="$ac_cv_prog_STRIP"
2412 fi
2413
2414 fi
2415 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2416
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2418 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2419 if test -z "$MKDIR_P"; then
2420   if ${ac_cv_path_mkdir+:} false; then :
2421   $as_echo_n "(cached) " >&6
2422 else
2423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428     for ac_prog in mkdir gmkdir; do
2429          for ac_exec_ext in '' $ac_executable_extensions; do
2430            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2431            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2432              'mkdir (GNU coreutils) '* | \
2433              'mkdir (coreutils) '* | \
2434              'mkdir (fileutils) '4.1*)
2435                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2436                break 3;;
2437            esac
2438          done
2439        done
2440   done
2441 IFS=$as_save_IFS
2442
2443 fi
2444
2445   test -d ./--version && rmdir ./--version
2446   if test "${ac_cv_path_mkdir+set}" = set; then
2447     MKDIR_P="$ac_cv_path_mkdir -p"
2448   else
2449     # As a last resort, use the slow shell script.  Don't cache a
2450     # value for MKDIR_P within a source directory, because that will
2451     # break other packages using the cache if that directory is
2452     # removed, or if the value is a relative name.
2453     MKDIR_P="$ac_install_sh -d"
2454   fi
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2457 $as_echo "$MKDIR_P" >&6; }
2458
2459 mkdir_p="$MKDIR_P"
2460 case $mkdir_p in
2461   [\\/$]* | ?:[\\/]*) ;;
2462   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2463 esac
2464
2465 for ac_prog in gawk mawk nawk awk
2466 do
2467   # Extract the first word of "$ac_prog", so it can be a program name with args.
2468 set dummy $ac_prog; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_AWK+:} false; then :
2472   $as_echo_n "(cached) " >&6
2473 else
2474   if test -n "$AWK"; then
2475   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480   IFS=$as_save_IFS
2481   test -z "$as_dir" && as_dir=.
2482     for ac_exec_ext in '' $ac_executable_extensions; do
2483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484     ac_cv_prog_AWK="$ac_prog"
2485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486     break 2
2487   fi
2488 done
2489   done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 AWK=$ac_cv_prog_AWK
2495 if test -n "$AWK"; then
2496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2497 $as_echo "$AWK" >&6; }
2498 else
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2501 fi
2502
2503
2504   test -n "$AWK" && break
2505 done
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2508 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2509 set x ${MAKE-make}
2510 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2511 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2512   $as_echo_n "(cached) " >&6
2513 else
2514   cat >conftest.make <<\_ACEOF
2515 SHELL = /bin/sh
2516 all:
2517         @echo '@@@%%%=$(MAKE)=@@@%%%'
2518 _ACEOF
2519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2521   *@@@%%%=?*=@@@%%%*)
2522     eval ac_cv_prog_make_${ac_make}_set=yes;;
2523   *)
2524     eval ac_cv_prog_make_${ac_make}_set=no;;
2525 esac
2526 rm -f conftest.make
2527 fi
2528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2530 $as_echo "yes" >&6; }
2531   SET_MAKE=
2532 else
2533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535   SET_MAKE="MAKE=${MAKE-make}"
2536 fi
2537
2538 rm -rf .tst 2>/dev/null
2539 mkdir .tst 2>/dev/null
2540 if test -d .tst; then
2541   am__leading_dot=.
2542 else
2543   am__leading_dot=_
2544 fi
2545 rmdir .tst 2>/dev/null
2546
2547 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2548   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2549   # is not polluted with repeated "-I."
2550   am__isrc=' -I$(srcdir)'
2551   # test to see if srcdir already configured
2552   if test -f $srcdir/config.status; then
2553     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2554   fi
2555 fi
2556
2557 # test whether we have cygpath
2558 if test -z "$CYGPATH_W"; then
2559   if (cygpath --version) >/dev/null 2>/dev/null; then
2560     CYGPATH_W='cygpath -w'
2561   else
2562     CYGPATH_W=echo
2563   fi
2564 fi
2565
2566
2567 # Define the identity of the package.
2568  PACKAGE='mdemo'
2569  VERSION='1.0'
2570
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE "$PACKAGE"
2574 _ACEOF
2575
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define VERSION "$VERSION"
2579 _ACEOF
2580
2581 # Some tools Automake needs.
2582
2583 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2584
2585
2586 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2587
2588
2589 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2590
2591
2592 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2593
2594
2595 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2596
2597 # We need awk for the "check" target.  The system "awk" is bad on
2598 # some platforms.
2599 # Always define AMTAR for backward compatibility.
2600
2601 AMTAR=${AMTAR-"${am_missing_run}tar"}
2602
2603 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2604
2605
2606
2607
2608
2609
2610
2611 ## ------------------ ##
2612 ## C compiler checks. ##
2613 ## ------------------ ##
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 if test -n "$ac_tool_prefix"; then
2620   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_CC+:} false; then :
2625   $as_echo_n "(cached) " >&6
2626 else
2627   if test -n "$CC"; then
2628   ac_cv_prog_CC="$CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635     for ac_exec_ext in '' $ac_executable_extensions; do
2636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642   done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 CC=$ac_cv_prog_CC
2648 if test -n "$CC"; then
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2650 $as_echo "$CC" >&6; }
2651 else
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 fi
2655
2656
2657 fi
2658 if test -z "$ac_cv_prog_CC"; then
2659   ac_ct_CC=$CC
2660   # Extract the first word of "gcc", so it can be a program name with args.
2661 set dummy gcc; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2665   $as_echo_n "(cached) " >&6
2666 else
2667   if test -n "$ac_ct_CC"; then
2668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673   IFS=$as_save_IFS
2674   test -z "$as_dir" && as_dir=.
2675     for ac_exec_ext in '' $ac_executable_extensions; do
2676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677     ac_cv_prog_ac_ct_CC="gcc"
2678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679     break 2
2680   fi
2681 done
2682   done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2690 $as_echo "$ac_ct_CC" >&6; }
2691 else
2692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2694 fi
2695
2696   if test "x$ac_ct_CC" = x; then
2697     CC=""
2698   else
2699     case $cross_compiling:$ac_tool_warned in
2700 yes:)
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703 ac_tool_warned=yes ;;
2704 esac
2705     CC=$ac_ct_CC
2706   fi
2707 else
2708   CC="$ac_cv_prog_CC"
2709 fi
2710
2711 if test -z "$CC"; then
2712           if test -n "$ac_tool_prefix"; then
2713     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}cc; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_CC+:} false; then :
2718   $as_echo_n "(cached) " >&6
2719 else
2720   if test -n "$CC"; then
2721   ac_cv_prog_CC="$CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728     for ac_exec_ext in '' $ac_executable_extensions; do
2729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730     ac_cv_prog_CC="${ac_tool_prefix}cc"
2731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732     break 2
2733   fi
2734 done
2735   done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 CC=$ac_cv_prog_CC
2741 if test -n "$CC"; then
2742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2744 else
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2748
2749
2750   fi
2751 fi
2752 if test -z "$CC"; then
2753   # Extract the first word of "cc", so it can be a program name with args.
2754 set dummy cc; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_CC+:} false; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   if test -n "$CC"; then
2761   ac_cv_prog_CC="$CC" # Let the user override the test.
2762 else
2763   ac_prog_rejected=no
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767   IFS=$as_save_IFS
2768   test -z "$as_dir" && as_dir=.
2769     for ac_exec_ext in '' $ac_executable_extensions; do
2770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2772        ac_prog_rejected=yes
2773        continue
2774      fi
2775     ac_cv_prog_CC="cc"
2776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780   done
2781 IFS=$as_save_IFS
2782
2783 if test $ac_prog_rejected = yes; then
2784   # We found a bogon in the path, so make sure we never use it.
2785   set dummy $ac_cv_prog_CC
2786   shift
2787   if test $# != 0; then
2788     # We chose a different compiler from the bogus one.
2789     # However, it has the same basename, so the bogon will be chosen
2790     # first if we set CC to just the basename; use the full file name.
2791     shift
2792     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2793   fi
2794 fi
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2801 else
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807 fi
2808 if test -z "$CC"; then
2809   if test -n "$ac_tool_prefix"; then
2810   for ac_prog in cl.exe
2811   do
2812     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_CC+:} false; then :
2817   $as_echo_n "(cached) " >&6
2818 else
2819   if test -n "$CC"; then
2820   ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827     for ac_exec_ext in '' $ac_executable_extensions; do
2828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834   done
2835 IFS=$as_save_IFS
2836
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842 $as_echo "$CC" >&6; }
2843 else
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847
2848
2849     test -n "$CC" && break
2850   done
2851 fi
2852 if test -z "$CC"; then
2853   ac_ct_CC=$CC
2854   for ac_prog in cl.exe
2855 do
2856   # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy $ac_prog; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2861   $as_echo_n "(cached) " >&6
2862 else
2863   if test -n "$ac_ct_CC"; then
2864   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869   IFS=$as_save_IFS
2870   test -z "$as_dir" && as_dir=.
2871     for ac_exec_ext in '' $ac_executable_extensions; do
2872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873     ac_cv_prog_ac_ct_CC="$ac_prog"
2874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875     break 2
2876   fi
2877 done
2878   done
2879 IFS=$as_save_IFS
2880
2881 fi
2882 fi
2883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2884 if test -n "$ac_ct_CC"; then
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2886 $as_echo "$ac_ct_CC" >&6; }
2887 else
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2890 fi
2891
2892
2893   test -n "$ac_ct_CC" && break
2894 done
2895
2896   if test "x$ac_ct_CC" = x; then
2897     CC=""
2898   else
2899     case $cross_compiling:$ac_tool_warned in
2900 yes:)
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2903 ac_tool_warned=yes ;;
2904 esac
2905     CC=$ac_ct_CC
2906   fi
2907 fi
2908
2909 fi
2910
2911
2912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 as_fn_error $? "no acceptable C compiler found in \$PATH
2915 See \`config.log' for more details" "$LINENO" 5; }
2916
2917 # Provide some information about the compiler.
2918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2919 set X $ac_compile
2920 ac_compiler=$2
2921 for ac_option in --version -v -V -qversion; do
2922   { { ac_try="$ac_compiler $ac_option >&5"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2930   ac_status=$?
2931   if test -s conftest.err; then
2932     sed '10a\
2933 ... rest of stderr output deleted ...
2934          10q' conftest.err >conftest.er1
2935     cat conftest.er1 >&5
2936   fi
2937   rm -f conftest.er1 conftest.err
2938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939   test $ac_status = 0; }
2940 done
2941
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h.  */
2944
2945 int
2946 main ()
2947 {
2948
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 ac_clean_files_save=$ac_clean_files
2954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2955 # Try to create an executable without -o first, disregard a.out.
2956 # It will help us diagnose broken compilers, and finding out an intuition
2957 # of exeext.
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2959 $as_echo_n "checking whether the C compiler works... " >&6; }
2960 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961
2962 # The possible output files:
2963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2964
2965 ac_rmfiles=
2966 for ac_file in $ac_files
2967 do
2968   case $ac_file in
2969     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2970     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2971   esac
2972 done
2973 rm -f $ac_rmfiles
2974
2975 if { { ac_try="$ac_link_default"
2976 case "(($ac_try" in
2977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978   *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982   (eval "$ac_link_default") 2>&5
2983   ac_status=$?
2984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985   test $ac_status = 0; }; then :
2986   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2988 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2989 # so that the user can short-circuit this test for compilers unknown to
2990 # Autoconf.
2991 for ac_file in $ac_files ''
2992 do
2993   test -f "$ac_file" || continue
2994   case $ac_file in
2995     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2996         ;;
2997     [ab].out )
2998         # We found the default executable, but exeext='' is most
2999         # certainly right.
3000         break;;
3001     *.* )
3002         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3003         then :; else
3004            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005         fi
3006         # We set ac_cv_exeext here because the later test for it is not
3007         # safe: cross compilers may not add the suffix if given an `-o'
3008         # argument, so we may need to know it at that point already.
3009         # Even if this section looks crufty: it has the advantage of
3010         # actually working.
3011         break;;
3012     * )
3013         break;;
3014   esac
3015 done
3016 test "$ac_cv_exeext" = no && ac_cv_exeext=
3017
3018 else
3019   ac_file=''
3020 fi
3021 if test -z "$ac_file"; then :
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 $as_echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error 77 "C compiler cannot create executables
3030 See \`config.log' for more details" "$LINENO" 5; }
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3033 $as_echo "yes" >&6; }
3034 fi
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3036 $as_echo_n "checking for C compiler default output file name... " >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3038 $as_echo "$ac_file" >&6; }
3039 ac_exeext=$ac_cv_exeext
3040
3041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3042 ac_clean_files=$ac_clean_files_save
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3044 $as_echo_n "checking for suffix of executables... " >&6; }
3045 if { { ac_try="$ac_link"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052   (eval "$ac_link") 2>&5
3053   ac_status=$?
3054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055   test $ac_status = 0; }; then :
3056   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3057 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3058 # work properly (i.e., refer to `conftest.exe'), while it won't with
3059 # `rm'.
3060 for ac_file in conftest.exe conftest conftest.*; do
3061   test -f "$ac_file" || continue
3062   case $ac_file in
3063     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3064     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065           break;;
3066     * ) break;;
3067   esac
3068 done
3069 else
3070   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3073 See \`config.log' for more details" "$LINENO" 5; }
3074 fi
3075 rm -f conftest conftest$ac_cv_exeext
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3077 $as_echo "$ac_cv_exeext" >&6; }
3078
3079 rm -f conftest.$ac_ext
3080 EXEEXT=$ac_cv_exeext
3081 ac_exeext=$EXEEXT
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h.  */
3084 #include <stdio.h>
3085 int
3086 main ()
3087 {
3088 FILE *f = fopen ("conftest.out", "w");
3089  return ferror (f) || fclose (f) != 0;
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 ac_clean_files="$ac_clean_files conftest.out"
3096 # Check that the compiler produces executables we can run.  If not, either
3097 # the compiler is broken, or we cross compile.
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3099 $as_echo_n "checking whether we are cross compiling... " >&6; }
3100 if test "$cross_compiling" != yes; then
3101   { { ac_try="$ac_link"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108   (eval "$ac_link") 2>&5
3109   ac_status=$?
3110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111   test $ac_status = 0; }
3112   if { ac_try='./conftest$ac_cv_exeext'
3113   { { case "(($ac_try" in
3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115   *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122   test $ac_status = 0; }; }; then
3123     cross_compiling=no
3124   else
3125     if test "$cross_compiling" = maybe; then
3126         cross_compiling=yes
3127     else
3128         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "cannot run C compiled programs.
3131 If you meant to cross compile, use \`--host'.
3132 See \`config.log' for more details" "$LINENO" 5; }
3133     fi
3134   fi
3135 fi
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3137 $as_echo "$cross_compiling" >&6; }
3138
3139 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3140 ac_clean_files=$ac_clean_files_save
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3142 $as_echo_n "checking for suffix of object files... " >&6; }
3143 if ${ac_cv_objext+:} false; then :
3144   $as_echo_n "(cached) " >&6
3145 else
3146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.o conftest.obj
3158 if { { ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165   (eval "$ac_compile") 2>&5
3166   ac_status=$?
3167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168   test $ac_status = 0; }; then :
3169   for ac_file in conftest.o conftest.obj conftest.*; do
3170   test -f "$ac_file" || continue;
3171   case $ac_file in
3172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3173     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174        break;;
3175   esac
3176 done
3177 else
3178   $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "cannot compute suffix of object files: cannot compile
3184 See \`config.log' for more details" "$LINENO" 5; }
3185 fi
3186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 fi
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3189 $as_echo "$ac_cv_objext" >&6; }
3190 OBJEXT=$ac_cv_objext
3191 ac_objext=$OBJEXT
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3194 if ${ac_cv_c_compiler_gnu+:} false; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h.  */
3199
3200 int
3201 main ()
3202 {
3203 #ifndef __GNUC__
3204        choke me
3205 #endif
3206
3207   ;
3208   return 0;
3209 }
3210 _ACEOF
3211 if ac_fn_c_try_compile "$LINENO"; then :
3212   ac_compiler_gnu=yes
3213 else
3214   ac_compiler_gnu=no
3215 fi
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3218
3219 fi
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3222 if test $ac_compiler_gnu = yes; then
3223   GCC=yes
3224 else
3225   GCC=
3226 fi
3227 ac_test_CFLAGS=${CFLAGS+set}
3228 ac_save_CFLAGS=$CFLAGS
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3231 if ${ac_cv_prog_cc_g+:} false; then :
3232   $as_echo_n "(cached) " >&6
3233 else
3234   ac_save_c_werror_flag=$ac_c_werror_flag
3235    ac_c_werror_flag=yes
3236    ac_cv_prog_cc_g=no
3237    CFLAGS="-g"
3238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h.  */
3240
3241 int
3242 main ()
3243 {
3244
3245   ;
3246   return 0;
3247 }
3248 _ACEOF
3249 if ac_fn_c_try_compile "$LINENO"; then :
3250   ac_cv_prog_cc_g=yes
3251 else
3252   CFLAGS=""
3253       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h.  */
3255
3256 int
3257 main ()
3258 {
3259
3260   ;
3261   return 0;
3262 }
3263 _ACEOF
3264 if ac_fn_c_try_compile "$LINENO"; then :
3265
3266 else
3267   ac_c_werror_flag=$ac_save_c_werror_flag
3268          CFLAGS="-g"
3269          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h.  */
3271
3272 int
3273 main ()
3274 {
3275
3276   ;
3277   return 0;
3278 }
3279 _ACEOF
3280 if ac_fn_c_try_compile "$LINENO"; then :
3281   ac_cv_prog_cc_g=yes
3282 fi
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 fi
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 fi
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288    ac_c_werror_flag=$ac_save_c_werror_flag
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3291 $as_echo "$ac_cv_prog_cc_g" >&6; }
3292 if test "$ac_test_CFLAGS" = set; then
3293   CFLAGS=$ac_save_CFLAGS
3294 elif test $ac_cv_prog_cc_g = yes; then
3295   if test "$GCC" = yes; then
3296     CFLAGS="-g -O2"
3297   else
3298     CFLAGS="-g"
3299   fi
3300 else
3301   if test "$GCC" = yes; then
3302     CFLAGS="-O2"
3303   else
3304     CFLAGS=
3305   fi
3306 fi
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3309 if ${ac_cv_prog_cc_c89+:} false; then :
3310   $as_echo_n "(cached) " >&6
3311 else
3312   ac_cv_prog_cc_c89=no
3313 ac_save_CC=$CC
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h.  */
3316 #include <stdarg.h>
3317 #include <stdio.h>
3318 #include <sys/types.h>
3319 #include <sys/stat.h>
3320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3321 struct buf { int x; };
3322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3323 static char *e (p, i)
3324      char **p;
3325      int i;
3326 {
3327   return p[i];
3328 }
3329 static char *f (char * (*g) (char **, int), char **p, ...)
3330 {
3331   char *s;
3332   va_list v;
3333   va_start (v,p);
3334   s = g (p, va_arg (v,int));
3335   va_end (v);
3336   return s;
3337 }
3338
3339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3340    function prototypes and stuff, but not '\xHH' hex character constants.
3341    These don't provoke an error unfortunately, instead are silently treated
3342    as 'x'.  The following induces an error, until -std is added to get
3343    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3344    array size at least.  It's necessary to write '\x00'==0 to get something
3345    that's true only with -std.  */
3346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3347
3348 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3349    inside strings and character constants.  */
3350 #define FOO(x) 'x'
3351 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3352
3353 int test (int i, double x);
3354 struct s1 {int (*f) (int a);};
3355 struct s2 {int (*f) (double a);};
3356 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3357 int argc;
3358 char **argv;
3359 int
3360 main ()
3361 {
3362 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3363   ;
3364   return 0;
3365 }
3366 _ACEOF
3367 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3368         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3369 do
3370   CC="$ac_save_CC $ac_arg"
3371   if ac_fn_c_try_compile "$LINENO"; then :
3372   ac_cv_prog_cc_c89=$ac_arg
3373 fi
3374 rm -f core conftest.err conftest.$ac_objext
3375   test "x$ac_cv_prog_cc_c89" != "xno" && break
3376 done
3377 rm -f conftest.$ac_ext
3378 CC=$ac_save_CC
3379
3380 fi
3381 # AC_CACHE_VAL
3382 case "x$ac_cv_prog_cc_c89" in
3383   x)
3384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3385 $as_echo "none needed" >&6; } ;;
3386   xno)
3387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3388 $as_echo "unsupported" >&6; } ;;
3389   *)
3390     CC="$CC $ac_cv_prog_cc_c89"
3391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3392 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3393 esac
3394 if test "x$ac_cv_prog_cc_c89" != xno; then :
3395
3396 fi
3397
3398 ac_ext=c
3399 ac_cpp='$CPP $CPPFLAGS'
3400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 DEPDIR="${am__leading_dot}deps"
3404
3405 ac_config_commands="$ac_config_commands depfiles"
3406
3407
3408 am_make=${MAKE-make}
3409 cat > confinc << 'END'
3410 am__doit:
3411         @echo this is the am__doit target
3412 .PHONY: am__doit
3413 END
3414 # If we don't find an include directive, just comment out the code.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3416 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3417 am__include="#"
3418 am__quote=
3419 _am_result=none
3420 # First try GNU make style include.
3421 echo "include confinc" > confmf
3422 # Ignore all kinds of additional output from `make'.
3423 case `$am_make -s -f confmf 2> /dev/null` in #(
3424 *the\ am__doit\ target*)
3425   am__include=include
3426   am__quote=
3427   _am_result=GNU
3428   ;;
3429 esac
3430 # Now try BSD make style include.
3431 if test "$am__include" = "#"; then
3432    echo '.include "confinc"' > confmf
3433    case `$am_make -s -f confmf 2> /dev/null` in #(
3434    *the\ am__doit\ target*)
3435      am__include=.include
3436      am__quote="\""
3437      _am_result=BSD
3438      ;;
3439    esac
3440 fi
3441
3442
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3444 $as_echo "$_am_result" >&6; }
3445 rm -f confinc confmf
3446
3447 # Check whether --enable-dependency-tracking was given.
3448 if test "${enable_dependency_tracking+set}" = set; then :
3449   enableval=$enable_dependency_tracking;
3450 fi
3451
3452 if test "x$enable_dependency_tracking" != xno; then
3453   am_depcomp="$ac_aux_dir/depcomp"
3454   AMDEPBACKSLASH='\'
3455 fi
3456  if test "x$enable_dependency_tracking" != xno; then
3457   AMDEP_TRUE=
3458   AMDEP_FALSE='#'
3459 else
3460   AMDEP_TRUE='#'
3461   AMDEP_FALSE=
3462 fi
3463
3464
3465
3466 depcc="$CC"   am_compiler_list=
3467
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3469 $as_echo_n "checking dependency style of $depcc... " >&6; }
3470 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3471   $as_echo_n "(cached) " >&6
3472 else
3473   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3474   # We make a subdir and do the tests there.  Otherwise we can end up
3475   # making bogus files that we don't know about and never remove.  For
3476   # instance it was reported that on HP-UX the gcc test will end up
3477   # making a dummy file named `D' -- because `-MD' means `put the output
3478   # in D'.
3479   mkdir conftest.dir
3480   # Copy depcomp to subdir because otherwise we won't find it if we're
3481   # using a relative directory.
3482   cp "$am_depcomp" conftest.dir
3483   cd conftest.dir
3484   # We will build objects and dependencies in a subdirectory because
3485   # it helps to detect inapplicable dependency modes.  For instance
3486   # both Tru64's cc and ICC support -MD to output dependencies as a
3487   # side effect of compilation, but ICC will put the dependencies in
3488   # the current directory while Tru64 will put them in the object
3489   # directory.
3490   mkdir sub
3491
3492   am_cv_CC_dependencies_compiler_type=none
3493   if test "$am_compiler_list" = ""; then
3494      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3495   fi
3496   am__universal=false
3497   case " $depcc " in #(
3498      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3499      esac
3500
3501   for depmode in $am_compiler_list; do
3502     # Setup a source with many dependencies, because some compilers
3503     # like to wrap large dependency lists on column 80 (with \), and
3504     # we should not choose a depcomp mode which is confused by this.
3505     #
3506     # We need to recreate these files for each test, as the compiler may
3507     # overwrite some of them when testing with obscure command lines.
3508     # This happens at least with the AIX C compiler.
3509     : > sub/conftest.c
3510     for i in 1 2 3 4 5 6; do
3511       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3512       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3513       # Solaris 8's {/usr,}/bin/sh.
3514       touch sub/conftst$i.h
3515     done
3516     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3517
3518     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3519     # mode.  It turns out that the SunPro C++ compiler does not properly
3520     # handle `-M -o', and we need to detect this.  Also, some Intel
3521     # versions had trouble with output in subdirs
3522     am__obj=sub/conftest.${OBJEXT-o}
3523     am__minus_obj="-o $am__obj"
3524     case $depmode in
3525     gcc)
3526       # This depmode causes a compiler race in universal mode.
3527       test "$am__universal" = false || continue
3528       ;;
3529     nosideeffect)
3530       # after this tag, mechanisms are not by side-effect, so they'll
3531       # only be used when explicitly requested
3532       if test "x$enable_dependency_tracking" = xyes; then
3533         continue
3534       else
3535         break
3536       fi
3537       ;;
3538     msvisualcpp | msvcmsys)
3539       # This compiler won't grok `-c -o', but also, the minuso test has
3540       # not run yet.  These depmodes are late enough in the game, and
3541       # so weak that their functioning should not be impacted.
3542       am__obj=conftest.${OBJEXT-o}
3543       am__minus_obj=
3544       ;;
3545     none) break ;;
3546     esac
3547     if depmode=$depmode \
3548        source=sub/conftest.c object=$am__obj \
3549        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3550        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3551          >/dev/null 2>conftest.err &&
3552        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3553        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3554        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3555        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3556       # icc doesn't choke on unknown options, it will just issue warnings
3557       # or remarks (even with -Werror).  So we grep stderr for any message
3558       # that says an option was ignored or not supported.
3559       # When given -MP, icc 7.0 and 7.1 complain thusly:
3560       #   icc: Command line warning: ignoring option '-M'; no argument required
3561       # The diagnosis changed in icc 8.0:
3562       #   icc: Command line remark: option '-MP' not supported
3563       if (grep 'ignoring option' conftest.err ||
3564           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3565         am_cv_CC_dependencies_compiler_type=$depmode
3566         break
3567       fi
3568     fi
3569   done
3570
3571   cd ..
3572   rm -rf conftest.dir
3573 else
3574   am_cv_CC_dependencies_compiler_type=none
3575 fi
3576
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3579 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3580 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3581
3582  if
3583   test "x$enable_dependency_tracking" != xno \
3584   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3585   am__fastdepCC_TRUE=
3586   am__fastdepCC_FALSE='#'
3587 else
3588   am__fastdepCC_TRUE='#'
3589   am__fastdepCC_FALSE=
3590 fi
3591
3592
3593
3594
3595 ## ----------------------- ##
3596 ## Libtool initialisation. ##
3597 ## ----------------------- ##
3598
3599
3600
3601
3602 case $enable_ltdl_convenience in
3603   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
3604   "") enable_ltdl_convenience=yes
3605       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3606 esac
3607 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
3608 LTDLDEPS=$LIBLTDL
3609 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
3610
3611
3612
3613
3614
3615 # For backwards non-gettext consistent compatibility...
3616 INCLTDL="$LTDLINCL"
3617
3618
3619
3620
3621
3622
3623 case `pwd` in
3624   *\ * | *\     *)
3625     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3626 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3627 esac
3628
3629
3630
3631 macro_version='2.4.2'
3632 macro_revision='1.3337'
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646 ltmain="$ac_aux_dir/ltmain.sh"
3647
3648 # Make sure we can run config.sub.
3649 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3650   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3651
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3653 $as_echo_n "checking build system type... " >&6; }
3654 if ${ac_cv_build+:} false; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657   ac_build_alias=$build_alias
3658 test "x$ac_build_alias" = x &&
3659   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3660 test "x$ac_build_alias" = x &&
3661   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3662 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3663   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3664
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3667 $as_echo "$ac_cv_build" >&6; }
3668 case $ac_cv_build in
3669 *-*-*) ;;
3670 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3671 esac
3672 build=$ac_cv_build
3673 ac_save_IFS=$IFS; IFS='-'
3674 set x $ac_cv_build
3675 shift
3676 build_cpu=$1
3677 build_vendor=$2
3678 shift; shift
3679 # Remember, the first character of IFS is used to create $*,
3680 # except with old shells:
3681 build_os=$*
3682 IFS=$ac_save_IFS
3683 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3684
3685
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3687 $as_echo_n "checking host system type... " >&6; }
3688 if ${ac_cv_host+:} false; then :
3689   $as_echo_n "(cached) " >&6
3690 else
3691   if test "x$host_alias" = x; then
3692   ac_cv_host=$ac_cv_build
3693 else
3694   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3695     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3696 fi
3697
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3700 $as_echo "$ac_cv_host" >&6; }
3701 case $ac_cv_host in
3702 *-*-*) ;;
3703 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3704 esac
3705 host=$ac_cv_host
3706 ac_save_IFS=$IFS; IFS='-'
3707 set x $ac_cv_host
3708 shift
3709 host_cpu=$1
3710 host_vendor=$2
3711 shift; shift
3712 # Remember, the first character of IFS is used to create $*,
3713 # except with old shells:
3714 host_os=$*
3715 IFS=$ac_save_IFS
3716 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3717
3718
3719 # Backslashify metacharacters that are still active within
3720 # double-quoted strings.
3721 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3722
3723 # Same as above, but do not quote variable references.
3724 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3725
3726 # Sed substitution to delay expansion of an escaped shell variable in a
3727 # double_quote_subst'ed string.
3728 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3729
3730 # Sed substitution to delay expansion of an escaped single quote.
3731 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3732
3733 # Sed substitution to avoid accidental globbing in evaled expressions
3734 no_glob_subst='s/\*/\\\*/g'
3735
3736 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3737 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3738 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3739
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3741 $as_echo_n "checking how to print strings... " >&6; }
3742 # Test print first, because it will be a builtin if present.
3743 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3744    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3745   ECHO='print -r --'
3746 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3747   ECHO='printf %s\n'
3748 else
3749   # Use this function as a fallback that always works.
3750   func_fallback_echo ()
3751   {
3752     eval 'cat <<_LTECHO_EOF
3753 $1
3754 _LTECHO_EOF'
3755   }
3756   ECHO='func_fallback_echo'
3757 fi
3758
3759 # func_echo_all arg...
3760 # Invoke $ECHO with all args, space-separated.
3761 func_echo_all ()
3762 {
3763     $ECHO ""
3764 }
3765
3766 case "$ECHO" in
3767   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3768 $as_echo "printf" >&6; } ;;
3769   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3770 $as_echo "print -r" >&6; } ;;
3771   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3772 $as_echo "cat" >&6; } ;;
3773 esac
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3789 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3790 if ${ac_cv_path_SED+:} false; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3794      for ac_i in 1 2 3 4 5 6 7; do
3795        ac_script="$ac_script$as_nl$ac_script"
3796      done
3797      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3798      { ac_script=; unset ac_script;}
3799      if test -z "$SED"; then
3800   ac_path_SED_found=false
3801   # Loop through the user's path and test for each of PROGNAME-LIST
3802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805   IFS=$as_save_IFS
3806   test -z "$as_dir" && as_dir=.
3807     for ac_prog in sed gsed; do
3808     for ac_exec_ext in '' $ac_executable_extensions; do
3809       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3810       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3811 # Check for GNU ac_path_SED and select it if it is found.
3812   # Check for GNU $ac_path_SED
3813 case `"$ac_path_SED" --version 2>&1` in
3814 *GNU*)
3815   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3816 *)
3817   ac_count=0
3818   $as_echo_n 0123456789 >"conftest.in"
3819   while :
3820   do
3821     cat "conftest.in" "conftest.in" >"conftest.tmp"
3822     mv "conftest.tmp" "conftest.in"
3823     cp "conftest.in" "conftest.nl"
3824     $as_echo '' >> "conftest.nl"
3825     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3826     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3827     as_fn_arith $ac_count + 1 && ac_count=$as_val
3828     if test $ac_count -gt ${ac_path_SED_max-0}; then
3829       # Best one so far, save it but keep looking for a better one
3830       ac_cv_path_SED="$ac_path_SED"
3831       ac_path_SED_max=$ac_count
3832     fi
3833     # 10*(2^10) chars as input seems more than enough
3834     test $ac_count -gt 10 && break
3835   done
3836   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3837 esac
3838
3839       $ac_path_SED_found && break 3
3840     done
3841   done
3842   done
3843 IFS=$as_save_IFS
3844   if test -z "$ac_cv_path_SED"; then
3845     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3846   fi
3847 else
3848   ac_cv_path_SED=$SED
3849 fi
3850
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3853 $as_echo "$ac_cv_path_SED" >&6; }
3854  SED="$ac_cv_path_SED"
3855   rm -f conftest.sed
3856
3857 test -z "$SED" && SED=sed
3858 Xsed="$SED -e 1s/^X//"
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3872 if ${ac_cv_path_GREP+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   if test -z "$GREP"; then
3876   ac_path_GREP_found=false
3877   # Loop through the user's path and test for each of PROGNAME-LIST
3878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880 do
3881   IFS=$as_save_IFS
3882   test -z "$as_dir" && as_dir=.
3883     for ac_prog in grep ggrep; do
3884     for ac_exec_ext in '' $ac_executable_extensions; do
3885       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3886       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3887 # Check for GNU ac_path_GREP and select it if it is found.
3888   # Check for GNU $ac_path_GREP
3889 case `"$ac_path_GREP" --version 2>&1` in
3890 *GNU*)
3891   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3892 *)
3893   ac_count=0
3894   $as_echo_n 0123456789 >"conftest.in"
3895   while :
3896   do
3897     cat "conftest.in" "conftest.in" >"conftest.tmp"
3898     mv "conftest.tmp" "conftest.in"
3899     cp "conftest.in" "conftest.nl"
3900     $as_echo 'GREP' >> "conftest.nl"
3901     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903     as_fn_arith $ac_count + 1 && ac_count=$as_val
3904     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3905       # Best one so far, save it but keep looking for a better one
3906       ac_cv_path_GREP="$ac_path_GREP"
3907       ac_path_GREP_max=$ac_count
3908     fi
3909     # 10*(2^10) chars as input seems more than enough
3910     test $ac_count -gt 10 && break
3911   done
3912   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913 esac
3914
3915       $ac_path_GREP_found && break 3
3916     done
3917   done
3918   done
3919 IFS=$as_save_IFS
3920   if test -z "$ac_cv_path_GREP"; then
3921     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3922   fi
3923 else
3924   ac_cv_path_GREP=$GREP
3925 fi
3926
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3929 $as_echo "$ac_cv_path_GREP" >&6; }
3930  GREP="$ac_cv_path_GREP"
3931
3932
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3934 $as_echo_n "checking for egrep... " >&6; }
3935 if ${ac_cv_path_EGREP+:} false; then :
3936   $as_echo_n "(cached) " >&6
3937 else
3938   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3939    then ac_cv_path_EGREP="$GREP -E"
3940    else
3941      if test -z "$EGREP"; then
3942   ac_path_EGREP_found=false
3943   # Loop through the user's path and test for each of PROGNAME-LIST
3944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3946 do
3947   IFS=$as_save_IFS
3948   test -z "$as_dir" && as_dir=.
3949     for ac_prog in egrep; do
3950     for ac_exec_ext in '' $ac_executable_extensions; do
3951       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3952       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3953 # Check for GNU ac_path_EGREP and select it if it is found.
3954   # Check for GNU $ac_path_EGREP
3955 case `"$ac_path_EGREP" --version 2>&1` in
3956 *GNU*)
3957   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3958 *)
3959   ac_count=0
3960   $as_echo_n 0123456789 >"conftest.in"
3961   while :
3962   do
3963     cat "conftest.in" "conftest.in" >"conftest.tmp"
3964     mv "conftest.tmp" "conftest.in"
3965     cp "conftest.in" "conftest.nl"
3966     $as_echo 'EGREP' >> "conftest.nl"
3967     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969     as_fn_arith $ac_count + 1 && ac_count=$as_val
3970     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3971       # Best one so far, save it but keep looking for a better one
3972       ac_cv_path_EGREP="$ac_path_EGREP"
3973       ac_path_EGREP_max=$ac_count
3974     fi
3975     # 10*(2^10) chars as input seems more than enough
3976     test $ac_count -gt 10 && break
3977   done
3978   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979 esac
3980
3981       $ac_path_EGREP_found && break 3
3982     done
3983   done
3984   done
3985 IFS=$as_save_IFS
3986   if test -z "$ac_cv_path_EGREP"; then
3987     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3988   fi
3989 else
3990   ac_cv_path_EGREP=$EGREP
3991 fi
3992
3993    fi
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3996 $as_echo "$ac_cv_path_EGREP" >&6; }
3997  EGREP="$ac_cv_path_EGREP"
3998
3999
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4001 $as_echo_n "checking for fgrep... " >&6; }
4002 if ${ac_cv_path_FGREP+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4006    then ac_cv_path_FGREP="$GREP -F"
4007    else
4008      if test -z "$FGREP"; then
4009   ac_path_FGREP_found=false
4010   # Loop through the user's path and test for each of PROGNAME-LIST
4011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4013 do
4014   IFS=$as_save_IFS
4015   test -z "$as_dir" && as_dir=.
4016     for ac_prog in fgrep; do
4017     for ac_exec_ext in '' $ac_executable_extensions; do
4018       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4019       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4020 # Check for GNU ac_path_FGREP and select it if it is found.
4021   # Check for GNU $ac_path_FGREP
4022 case `"$ac_path_FGREP" --version 2>&1` in
4023 *GNU*)
4024   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4025 *)
4026   ac_count=0
4027   $as_echo_n 0123456789 >"conftest.in"
4028   while :
4029   do
4030     cat "conftest.in" "conftest.in" >"conftest.tmp"
4031     mv "conftest.tmp" "conftest.in"
4032     cp "conftest.in" "conftest.nl"
4033     $as_echo 'FGREP' >> "conftest.nl"
4034     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036     as_fn_arith $ac_count + 1 && ac_count=$as_val
4037     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4038       # Best one so far, save it but keep looking for a better one
4039       ac_cv_path_FGREP="$ac_path_FGREP"
4040       ac_path_FGREP_max=$ac_count
4041     fi
4042     # 10*(2^10) chars as input seems more than enough
4043     test $ac_count -gt 10 && break
4044   done
4045   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046 esac
4047
4048       $ac_path_FGREP_found && break 3
4049     done
4050   done
4051   done
4052 IFS=$as_save_IFS
4053   if test -z "$ac_cv_path_FGREP"; then
4054     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4055   fi
4056 else
4057   ac_cv_path_FGREP=$FGREP
4058 fi
4059
4060    fi
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4063 $as_echo "$ac_cv_path_FGREP" >&6; }
4064  FGREP="$ac_cv_path_FGREP"
4065
4066
4067 test -z "$GREP" && GREP=grep
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087 # Check whether --with-gnu-ld was given.
4088 if test "${with_gnu_ld+set}" = set; then :
4089   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4090 else
4091   with_gnu_ld=no
4092 fi
4093
4094 ac_prog=ld
4095 if test "$GCC" = yes; then
4096   # Check if gcc -print-prog-name=ld gives a path.
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4098 $as_echo_n "checking for ld used by $CC... " >&6; }
4099   case $host in
4100   *-*-mingw*)
4101     # gcc leaves a trailing carriage return which upsets mingw
4102     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4103   *)
4104     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4105   esac
4106   case $ac_prog in
4107     # Accept absolute paths.
4108     [\\/]* | ?:[\\/]*)
4109       re_direlt='/[^/][^/]*/\.\./'
4110       # Canonicalize the pathname of ld
4111       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4112       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4113         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4114       done
4115       test -z "$LD" && LD="$ac_prog"
4116       ;;
4117   "")
4118     # If it fails, then pretend we aren't using GCC.
4119     ac_prog=ld
4120     ;;
4121   *)
4122     # If it is relative, then search for the first ld in PATH.
4123     with_gnu_ld=unknown
4124     ;;
4125   esac
4126 elif test "$with_gnu_ld" = yes; then
4127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4128 $as_echo_n "checking for GNU ld... " >&6; }
4129 else
4130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4131 $as_echo_n "checking for non-GNU ld... " >&6; }
4132 fi
4133 if ${lt_cv_path_LD+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if test -z "$LD"; then
4137   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4138   for ac_dir in $PATH; do
4139     IFS="$lt_save_ifs"
4140     test -z "$ac_dir" && ac_dir=.
4141     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4142       lt_cv_path_LD="$ac_dir/$ac_prog"
4143       # Check to see if the program is GNU ld.  I'd rather use --version,
4144       # but apparently some variants of GNU ld only accept -v.
4145       # Break only if it was the GNU/non-GNU ld that we prefer.
4146       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4147       *GNU* | *'with BFD'*)
4148         test "$with_gnu_ld" != no && break
4149         ;;
4150       *)
4151         test "$with_gnu_ld" != yes && break
4152         ;;
4153       esac
4154     fi
4155   done
4156   IFS="$lt_save_ifs"
4157 else
4158   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4159 fi
4160 fi
4161
4162 LD="$lt_cv_path_LD"
4163 if test -n "$LD"; then
4164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4165 $as_echo "$LD" >&6; }
4166 else
4167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4169 fi
4170 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4173 if ${lt_cv_prog_gnu_ld+:} false; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4177 case `$LD -v 2>&1 </dev/null` in
4178 *GNU* | *'with BFD'*)
4179   lt_cv_prog_gnu_ld=yes
4180   ;;
4181 *)
4182   lt_cv_prog_gnu_ld=no
4183   ;;
4184 esac
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4188 with_gnu_ld=$lt_cv_prog_gnu_ld
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4199 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4200 if ${lt_cv_path_NM+:} false; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   if test -n "$NM"; then
4204   # Let the user override the test.
4205   lt_cv_path_NM="$NM"
4206 else
4207   lt_nm_to_check="${ac_tool_prefix}nm"
4208   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4209     lt_nm_to_check="$lt_nm_to_check nm"
4210   fi
4211   for lt_tmp_nm in $lt_nm_to_check; do
4212     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4213     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4214       IFS="$lt_save_ifs"
4215       test -z "$ac_dir" && ac_dir=.
4216       tmp_nm="$ac_dir/$lt_tmp_nm"
4217       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4218         # Check to see if the nm accepts a BSD-compat flag.
4219         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4220         #   nm: unknown option "B" ignored
4221         # Tru64's nm complains that /dev/null is an invalid object file
4222         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4223         */dev/null* | *'Invalid file or object type'*)
4224           lt_cv_path_NM="$tmp_nm -B"
4225           break
4226           ;;
4227         *)
4228           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4229           */dev/null*)
4230             lt_cv_path_NM="$tmp_nm -p"
4231             break
4232             ;;
4233           *)
4234             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4235             continue # so that we can try to find one that supports BSD flags
4236             ;;
4237           esac
4238           ;;
4239         esac
4240       fi
4241     done
4242     IFS="$lt_save_ifs"
4243   done
4244   : ${lt_cv_path_NM=no}
4245 fi
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4248 $as_echo "$lt_cv_path_NM" >&6; }
4249 if test "$lt_cv_path_NM" != "no"; then
4250   NM="$lt_cv_path_NM"
4251 else
4252   # Didn't find any BSD compatible name lister, look for dumpbin.
4253   if test -n "$DUMPBIN"; then :
4254     # Let the user override the test.
4255   else
4256     if test -n "$ac_tool_prefix"; then
4257   for ac_prog in dumpbin "link -dump"
4258   do
4259     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_DUMPBIN+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   if test -n "$DUMPBIN"; then
4267   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274     for ac_exec_ext in '' $ac_executable_extensions; do
4275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278     break 2
4279   fi
4280 done
4281   done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 DUMPBIN=$ac_cv_prog_DUMPBIN
4287 if test -n "$DUMPBIN"; then
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4289 $as_echo "$DUMPBIN" >&6; }
4290 else
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294
4295
4296     test -n "$DUMPBIN" && break
4297   done
4298 fi
4299 if test -z "$DUMPBIN"; then
4300   ac_ct_DUMPBIN=$DUMPBIN
4301   for ac_prog in dumpbin "link -dump"
4302 do
4303   # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy $ac_prog; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   if test -n "$ac_ct_DUMPBIN"; then
4311   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316   IFS=$as_save_IFS
4317   test -z "$as_dir" && as_dir=.
4318     for ac_exec_ext in '' $ac_executable_extensions; do
4319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322     break 2
4323   fi
4324 done
4325   done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4331 if test -n "$ac_ct_DUMPBIN"; then
4332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4333 $as_echo "$ac_ct_DUMPBIN" >&6; }
4334 else
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339
4340   test -n "$ac_ct_DUMPBIN" && break
4341 done
4342
4343   if test "x$ac_ct_DUMPBIN" = x; then
4344     DUMPBIN=":"
4345   else
4346     case $cross_compiling:$ac_tool_warned in
4347 yes:)
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4350 ac_tool_warned=yes ;;
4351 esac
4352     DUMPBIN=$ac_ct_DUMPBIN
4353   fi
4354 fi
4355
4356     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4357     *COFF*)
4358       DUMPBIN="$DUMPBIN -symbols"
4359       ;;
4360     *)
4361       DUMPBIN=:
4362       ;;
4363     esac
4364   fi
4365
4366   if test "$DUMPBIN" != ":"; then
4367     NM="$DUMPBIN"
4368   fi
4369 fi
4370 test -z "$NM" && NM=nm
4371
4372
4373
4374
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4378 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4379 if ${lt_cv_nm_interface+:} false; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382   lt_cv_nm_interface="BSD nm"
4383   echo "int some_variable = 0;" > conftest.$ac_ext
4384   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4385   (eval "$ac_compile" 2>conftest.err)
4386   cat conftest.err >&5
4387   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4388   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4389   cat conftest.err >&5
4390   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4391   cat conftest.out >&5
4392   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4393     lt_cv_nm_interface="MS dumpbin"
4394   fi
4395   rm -f conftest*
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4398 $as_echo "$lt_cv_nm_interface" >&6; }
4399
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4401 $as_echo_n "checking whether ln -s works... " >&6; }
4402 LN_S=$as_ln_s
4403 if test "$LN_S" = "ln -s"; then
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405 $as_echo "yes" >&6; }
4406 else
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4408 $as_echo "no, using $LN_S" >&6; }
4409 fi
4410
4411 # find the maximum length of command line arguments
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4414 if ${lt_cv_sys_max_cmd_len+:} false; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417     i=0
4418   teststring="ABCD"
4419
4420   case $build_os in
4421   msdosdjgpp*)
4422     # On DJGPP, this test can blow up pretty badly due to problems in libc
4423     # (any single argument exceeding 2000 bytes causes a buffer overrun
4424     # during glob expansion).  Even if it were fixed, the result of this
4425     # check would be larger than it should be.
4426     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4427     ;;
4428
4429   gnu*)
4430     # Under GNU Hurd, this test is not required because there is
4431     # no limit to the length of command line arguments.
4432     # Libtool will interpret -1 as no limit whatsoever
4433     lt_cv_sys_max_cmd_len=-1;
4434     ;;
4435
4436   cygwin* | mingw* | cegcc*)
4437     # On Win9x/ME, this test blows up -- it succeeds, but takes
4438     # about 5 minutes as the teststring grows exponentially.
4439     # Worse, since 9x/ME are not pre-emptively multitasking,
4440     # you end up with a "frozen" computer, even though with patience
4441     # the test eventually succeeds (with a max line length of 256k).
4442     # Instead, let's just punt: use the minimum linelength reported by
4443     # all of the supported platforms: 8192 (on NT/2K/XP).
4444     lt_cv_sys_max_cmd_len=8192;
4445     ;;
4446
4447   mint*)
4448     # On MiNT this can take a long time and run out of memory.
4449     lt_cv_sys_max_cmd_len=8192;
4450     ;;
4451
4452   amigaos*)
4453     # On AmigaOS with pdksh, this test takes hours, literally.
4454     # So we just punt and use a minimum line length of 8192.
4455     lt_cv_sys_max_cmd_len=8192;
4456     ;;
4457
4458   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4459     # This has been around since 386BSD, at least.  Likely further.
4460     if test -x /sbin/sysctl; then
4461       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4462     elif test -x /usr/sbin/sysctl; then
4463       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4464     else
4465       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4466     fi
4467     # And add a safety zone
4468     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4469     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4470     ;;
4471
4472   interix*)
4473     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4474     lt_cv_sys_max_cmd_len=196608
4475     ;;
4476
4477   os2*)
4478     # The test takes a long time on OS/2.
4479     lt_cv_sys_max_cmd_len=8192
4480     ;;
4481
4482   osf*)
4483     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4484     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4485     # nice to cause kernel panics so lets avoid the loop below.
4486     # First set a reasonable default.
4487     lt_cv_sys_max_cmd_len=16384
4488     #
4489     if test -x /sbin/sysconfig; then
4490       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4491         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4492       esac
4493     fi
4494     ;;
4495   sco3.2v5*)
4496     lt_cv_sys_max_cmd_len=102400
4497     ;;
4498   sysv5* | sco5v6* | sysv4.2uw2*)
4499     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4500     if test -n "$kargmax"; then
4501       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4502     else
4503       lt_cv_sys_max_cmd_len=32768
4504     fi
4505     ;;
4506   *)
4507     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4508     if test -n "$lt_cv_sys_max_cmd_len"; then
4509       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4510       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4511     else
4512       # Make teststring a little bigger before we do anything with it.
4513       # a 1K string should be a reasonable start.
4514       for i in 1 2 3 4 5 6 7 8 ; do
4515         teststring=$teststring$teststring
4516       done
4517       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4518       # If test is not a shell built-in, we'll probably end up computing a
4519       # maximum length that is only half of the actual maximum length, but
4520       # we can't tell.
4521       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4522                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4523               test $i != 17 # 1/2 MB should be enough
4524       do
4525         i=`expr $i + 1`
4526         teststring=$teststring$teststring
4527       done
4528       # Only check the string length outside the loop.
4529       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4530       teststring=
4531       # Add a significant safety factor because C++ compilers can tack on
4532       # massive amounts of additional arguments before passing them to the
4533       # linker.  It appears as though 1/2 is a usable value.
4534       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4535     fi
4536     ;;
4537   esac
4538
4539 fi
4540
4541 if test -n $lt_cv_sys_max_cmd_len ; then
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4543 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4544 else
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4546 $as_echo "none" >&6; }
4547 fi
4548 max_cmd_len=$lt_cv_sys_max_cmd_len
4549
4550
4551
4552
4553
4554
4555 : ${CP="cp -f"}
4556 : ${MV="mv -f"}
4557 : ${RM="rm -f"}
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4560 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4561 # Try some XSI features
4562 xsi_shell=no
4563 ( _lt_dummy="a/b/c"
4564   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4565       = c,a/b,b/c, \
4566     && eval 'test $(( 1 + 1 )) -eq 2 \
4567     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4568   && xsi_shell=yes
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4570 $as_echo "$xsi_shell" >&6; }
4571
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4574 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4575 lt_shell_append=no
4576 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4577     >/dev/null 2>&1 \
4578   && lt_shell_append=yes
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4580 $as_echo "$lt_shell_append" >&6; }
4581
4582
4583 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4584   lt_unset=unset
4585 else
4586   lt_unset=false
4587 fi
4588
4589
4590
4591
4592
4593 # test EBCDIC or ASCII
4594 case `echo X|tr X '\101'` in
4595  A) # ASCII based system
4596     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4597   lt_SP2NL='tr \040 \012'
4598   lt_NL2SP='tr \015\012 \040\040'
4599   ;;
4600  *) # EBCDIC based system
4601   lt_SP2NL='tr \100 \n'
4602   lt_NL2SP='tr \r\n \100\100'
4603   ;;
4604 esac
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4615 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4616 if ${lt_cv_to_host_file_cmd+:} false; then :
4617   $as_echo_n "(cached) " >&6
4618 else
4619   case $host in
4620   *-*-mingw* )
4621     case $build in
4622       *-*-mingw* ) # actually msys
4623         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4624         ;;
4625       *-*-cygwin* )
4626         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4627         ;;
4628       * ) # otherwise, assume *nix
4629         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4630         ;;
4631     esac
4632     ;;
4633   *-*-cygwin* )
4634     case $build in
4635       *-*-mingw* ) # actually msys
4636         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4637         ;;
4638       *-*-cygwin* )
4639         lt_cv_to_host_file_cmd=func_convert_file_noop
4640         ;;
4641       * ) # otherwise, assume *nix
4642         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4643         ;;
4644     esac
4645     ;;
4646   * ) # unhandled hosts (and "normal" native builds)
4647     lt_cv_to_host_file_cmd=func_convert_file_noop
4648     ;;
4649 esac
4650
4651 fi
4652
4653 to_host_file_cmd=$lt_cv_to_host_file_cmd
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4655 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4656
4657
4658
4659
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4662 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4663 if ${lt_cv_to_tool_file_cmd+:} false; then :
4664   $as_echo_n "(cached) " >&6
4665 else
4666   #assume ordinary cross tools, or native build.
4667 lt_cv_to_tool_file_cmd=func_convert_file_noop
4668 case $host in
4669   *-*-mingw* )
4670     case $build in
4671       *-*-mingw* ) # actually msys
4672         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4673         ;;
4674     esac
4675     ;;
4676 esac
4677
4678 fi
4679
4680 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4682 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4683
4684
4685
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4689 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4690 if ${lt_cv_ld_reload_flag+:} false; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   lt_cv_ld_reload_flag='-r'
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4696 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4697 reload_flag=$lt_cv_ld_reload_flag
4698 case $reload_flag in
4699 "" | " "*) ;;
4700 *) reload_flag=" $reload_flag" ;;
4701 esac
4702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4703 case $host_os in
4704   cygwin* | mingw* | pw32* | cegcc*)
4705     if test "$GCC" != yes; then
4706       reload_cmds=false
4707     fi
4708     ;;
4709   darwin*)
4710     if test "$GCC" = yes; then
4711       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4712     else
4713       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4714     fi
4715     ;;
4716 esac
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726 if test -n "$ac_tool_prefix"; then
4727   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4728 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_OBJDUMP+:} false; then :
4732   $as_echo_n "(cached) " >&6
4733 else
4734   if test -n "$OBJDUMP"; then
4735   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4736 else
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742     for ac_exec_ext in '' $ac_executable_extensions; do
4743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749   done
4750 IFS=$as_save_IFS
4751
4752 fi
4753 fi
4754 OBJDUMP=$ac_cv_prog_OBJDUMP
4755 if test -n "$OBJDUMP"; then
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4757 $as_echo "$OBJDUMP" >&6; }
4758 else
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4761 fi
4762
4763
4764 fi
4765 if test -z "$ac_cv_prog_OBJDUMP"; then
4766   ac_ct_OBJDUMP=$OBJDUMP
4767   # Extract the first word of "objdump", so it can be a program name with args.
4768 set dummy objdump; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4772   $as_echo_n "(cached) " >&6
4773 else
4774   if test -n "$ac_ct_OBJDUMP"; then
4775   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782     for ac_exec_ext in '' $ac_executable_extensions; do
4783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786     break 2
4787   fi
4788 done
4789   done
4790 IFS=$as_save_IFS
4791
4792 fi
4793 fi
4794 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4795 if test -n "$ac_ct_OBJDUMP"; then
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4797 $as_echo "$ac_ct_OBJDUMP" >&6; }
4798 else
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4801 fi
4802
4803   if test "x$ac_ct_OBJDUMP" = x; then
4804     OBJDUMP="false"
4805   else
4806     case $cross_compiling:$ac_tool_warned in
4807 yes:)
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810 ac_tool_warned=yes ;;
4811 esac
4812     OBJDUMP=$ac_ct_OBJDUMP
4813   fi
4814 else
4815   OBJDUMP="$ac_cv_prog_OBJDUMP"
4816 fi
4817
4818 test -z "$OBJDUMP" && OBJDUMP=objdump
4819
4820
4821
4822
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4826 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4827 if ${lt_cv_deplibs_check_method+:} false; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   lt_cv_file_magic_cmd='$MAGIC_CMD'
4831 lt_cv_file_magic_test_file=
4832 lt_cv_deplibs_check_method='unknown'
4833 # Need to set the preceding variable on all platforms that support
4834 # interlibrary dependencies.
4835 # 'none' -- dependencies not supported.
4836 # `unknown' -- same as none, but documents that we really don't know.
4837 # 'pass_all' -- all dependencies passed with no checks.
4838 # 'test_compile' -- check by making test program.
4839 # 'file_magic [[regex]]' -- check by looking for files in library path
4840 # which responds to the $file_magic_cmd with a given extended regex.
4841 # If you have `file' or equivalent on your system and you're not sure
4842 # whether `pass_all' will *always* work, you probably want this one.
4843
4844 case $host_os in
4845 aix[4-9]*)
4846   lt_cv_deplibs_check_method=pass_all
4847   ;;
4848
4849 beos*)
4850   lt_cv_deplibs_check_method=pass_all
4851   ;;
4852
4853 bsdi[45]*)
4854   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4855   lt_cv_file_magic_cmd='/usr/bin/file -L'
4856   lt_cv_file_magic_test_file=/shlib/libc.so
4857   ;;
4858
4859 cygwin*)
4860   # func_win32_libid is a shell function defined in ltmain.sh
4861   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4862   lt_cv_file_magic_cmd='func_win32_libid'
4863   ;;
4864
4865 mingw* | pw32*)
4866   # Base MSYS/MinGW do not provide the 'file' command needed by
4867   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4868   # unless we find 'file', for example because we are cross-compiling.
4869   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4870   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4871     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4872     lt_cv_file_magic_cmd='func_win32_libid'
4873   else
4874     # Keep this pattern in sync with the one in func_win32_libid.
4875     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4876     lt_cv_file_magic_cmd='$OBJDUMP -f'
4877   fi
4878   ;;
4879
4880 cegcc*)
4881   # use the weaker test based on 'objdump'. See mingw*.
4882   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4883   lt_cv_file_magic_cmd='$OBJDUMP -f'
4884   ;;
4885
4886 darwin* | rhapsody*)
4887   lt_cv_deplibs_check_method=pass_all
4888   ;;
4889
4890 freebsd* | dragonfly*)
4891   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4892     case $host_cpu in
4893     i*86 )
4894       # Not sure whether the presence of OpenBSD here was a mistake.
4895       # Let's accept both of them until this is cleared up.
4896       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4897       lt_cv_file_magic_cmd=/usr/bin/file
4898       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4899       ;;
4900     esac
4901   else
4902     lt_cv_deplibs_check_method=pass_all
4903   fi
4904   ;;
4905
4906 gnu*)
4907   lt_cv_deplibs_check_method=pass_all
4908   ;;
4909
4910 haiku*)
4911   lt_cv_deplibs_check_method=pass_all
4912   ;;
4913
4914 hpux10.20* | hpux11*)
4915   lt_cv_file_magic_cmd=/usr/bin/file
4916   case $host_cpu in
4917   ia64*)
4918     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4919     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4920     ;;
4921   hppa*64*)
4922     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]'
4923     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4924     ;;
4925   *)
4926     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4927     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4928     ;;
4929   esac
4930   ;;
4931
4932 interix[3-9]*)
4933   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4934   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4935   ;;
4936
4937 irix5* | irix6* | nonstopux*)
4938   case $LD in
4939   *-32|*"-32 ") libmagic=32-bit;;
4940   *-n32|*"-n32 ") libmagic=N32;;
4941   *-64|*"-64 ") libmagic=64-bit;;
4942   *) libmagic=never-match;;
4943   esac
4944   lt_cv_deplibs_check_method=pass_all
4945   ;;
4946
4947 # This must be glibc/ELF.
4948 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4949   lt_cv_deplibs_check_method=pass_all
4950   ;;
4951
4952 netbsd*)
4953   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4954     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4955   else
4956     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4957   fi
4958   ;;
4959
4960 newos6*)
4961   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4962   lt_cv_file_magic_cmd=/usr/bin/file
4963   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4964   ;;
4965
4966 *nto* | *qnx*)
4967   lt_cv_deplibs_check_method=pass_all
4968   ;;
4969
4970 openbsd*)
4971   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4972     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4973   else
4974     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4975   fi
4976   ;;
4977
4978 osf3* | osf4* | osf5*)
4979   lt_cv_deplibs_check_method=pass_all
4980   ;;
4981
4982 rdos*)
4983   lt_cv_deplibs_check_method=pass_all
4984   ;;
4985
4986 solaris*)
4987   lt_cv_deplibs_check_method=pass_all
4988   ;;
4989
4990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4991   lt_cv_deplibs_check_method=pass_all
4992   ;;
4993
4994 sysv4 | sysv4.3*)
4995   case $host_vendor in
4996   motorola)
4997     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]'
4998     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4999     ;;
5000   ncr)
5001     lt_cv_deplibs_check_method=pass_all
5002     ;;
5003   sequent)
5004     lt_cv_file_magic_cmd='/bin/file'
5005     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5006     ;;
5007   sni)
5008     lt_cv_file_magic_cmd='/bin/file'
5009     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5010     lt_cv_file_magic_test_file=/lib/libc.so
5011     ;;
5012   siemens)
5013     lt_cv_deplibs_check_method=pass_all
5014     ;;
5015   pc)
5016     lt_cv_deplibs_check_method=pass_all
5017     ;;
5018   esac
5019   ;;
5020
5021 tpf*)
5022   lt_cv_deplibs_check_method=pass_all
5023   ;;
5024 esac
5025
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5028 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5029
5030 file_magic_glob=
5031 want_nocaseglob=no
5032 if test "$build" = "$host"; then
5033   case $host_os in
5034   mingw* | pw32*)
5035     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5036       want_nocaseglob=yes
5037     else
5038       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5039     fi
5040     ;;
5041   esac
5042 fi
5043
5044 file_magic_cmd=$lt_cv_file_magic_cmd
5045 deplibs_check_method=$lt_cv_deplibs_check_method
5046 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069 if test -n "$ac_tool_prefix"; then
5070   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5071 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_DLLTOOL+:} false; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   if test -n "$DLLTOOL"; then
5078   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085     for ac_exec_ext in '' $ac_executable_extensions; do
5086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089     break 2
5090   fi
5091 done
5092   done
5093 IFS=$as_save_IFS
5094
5095 fi
5096 fi
5097 DLLTOOL=$ac_cv_prog_DLLTOOL
5098 if test -n "$DLLTOOL"; then
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5100 $as_echo "$DLLTOOL" >&6; }
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106
5107 fi
5108 if test -z "$ac_cv_prog_DLLTOOL"; then
5109   ac_ct_DLLTOOL=$DLLTOOL
5110   # Extract the first word of "dlltool", so it can be a program name with args.
5111 set dummy dlltool; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5115   $as_echo_n "(cached) " >&6
5116 else
5117   if test -n "$ac_ct_DLLTOOL"; then
5118   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123   IFS=$as_save_IFS
5124   test -z "$as_dir" && as_dir=.
5125     for ac_exec_ext in '' $ac_executable_extensions; do
5126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129     break 2
5130   fi
5131 done
5132   done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5138 if test -n "$ac_ct_DLLTOOL"; then
5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5140 $as_echo "$ac_ct_DLLTOOL" >&6; }
5141 else
5142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146   if test "x$ac_ct_DLLTOOL" = x; then
5147     DLLTOOL="false"
5148   else
5149     case $cross_compiling:$ac_tool_warned in
5150 yes:)
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153 ac_tool_warned=yes ;;
5154 esac
5155     DLLTOOL=$ac_ct_DLLTOOL
5156   fi
5157 else
5158   DLLTOOL="$ac_cv_prog_DLLTOOL"
5159 fi
5160
5161 test -z "$DLLTOOL" && DLLTOOL=dlltool
5162
5163
5164
5165
5166
5167
5168
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5170 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5171 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5172   $as_echo_n "(cached) " >&6
5173 else
5174   lt_cv_sharedlib_from_linklib_cmd='unknown'
5175
5176 case $host_os in
5177 cygwin* | mingw* | pw32* | cegcc*)
5178   # two different shell functions defined in ltmain.sh
5179   # decide which to use based on capabilities of $DLLTOOL
5180   case `$DLLTOOL --help 2>&1` in
5181   *--identify-strict*)
5182     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5183     ;;
5184   *)
5185     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5186     ;;
5187   esac
5188   ;;
5189 *)
5190   # fallback: assume linklib IS sharedlib
5191   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5192   ;;
5193 esac
5194
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5197 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5198 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5199 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5200
5201
5202
5203
5204
5205
5206
5207
5208 if test -n "$ac_tool_prefix"; then
5209   for ac_prog in ar
5210   do
5211     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_AR+:} false; then :
5216   $as_echo_n "(cached) " >&6
5217 else
5218   if test -n "$AR"; then
5219   ac_cv_prog_AR="$AR" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226     for ac_exec_ext in '' $ac_executable_extensions; do
5227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233   done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 AR=$ac_cv_prog_AR
5239 if test -n "$AR"; then
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5241 $as_echo "$AR" >&6; }
5242 else
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247
5248     test -n "$AR" && break
5249   done
5250 fi
5251 if test -z "$AR"; then
5252   ac_ct_AR=$AR
5253   for ac_prog in ar
5254 do
5255   # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5260   $as_echo_n "(cached) " >&6
5261 else
5262   if test -n "$ac_ct_AR"; then
5263   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270     for ac_exec_ext in '' $ac_executable_extensions; do
5271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272     ac_cv_prog_ac_ct_AR="$ac_prog"
5273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277   done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5283 if test -n "$ac_ct_AR"; then
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5285 $as_echo "$ac_ct_AR" >&6; }
5286 else
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291
5292   test -n "$ac_ct_AR" && break
5293 done
5294
5295   if test "x$ac_ct_AR" = x; then
5296     AR="false"
5297   else
5298     case $cross_compiling:$ac_tool_warned in
5299 yes:)
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5303 esac
5304     AR=$ac_ct_AR
5305   fi
5306 fi
5307
5308 : ${AR=ar}
5309 : ${AR_FLAGS=cru}
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5322 $as_echo_n "checking for archiver @FILE support... " >&6; }
5323 if ${lt_cv_ar_at_file+:} false; then :
5324   $as_echo_n "(cached) " >&6
5325 else
5326   lt_cv_ar_at_file=no
5327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h.  */
5329
5330 int
5331 main ()
5332 {
5333
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339   echo conftest.$ac_objext > conftest.lst
5340       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5341       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5342   (eval $lt_ar_try) 2>&5
5343   ac_status=$?
5344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5345   test $ac_status = 0; }
5346       if test "$ac_status" -eq 0; then
5347         # Ensure the archiver fails upon bogus file names.
5348         rm -f conftest.$ac_objext libconftest.a
5349         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5350   (eval $lt_ar_try) 2>&5
5351   ac_status=$?
5352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5353   test $ac_status = 0; }
5354         if test "$ac_status" -ne 0; then
5355           lt_cv_ar_at_file=@
5356         fi
5357       fi
5358       rm -f conftest.* libconftest.a
5359
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5365 $as_echo "$lt_cv_ar_at_file" >&6; }
5366
5367 if test "x$lt_cv_ar_at_file" = xno; then
5368   archiver_list_spec=
5369 else
5370   archiver_list_spec=$lt_cv_ar_at_file
5371 fi
5372
5373
5374
5375
5376
5377
5378
5379 if test -n "$ac_tool_prefix"; then
5380   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5381 set dummy ${ac_tool_prefix}strip; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_STRIP+:} false; then :
5385   $as_echo_n "(cached) " >&6
5386 else
5387   if test -n "$STRIP"; then
5388   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395     for ac_exec_ext in '' $ac_executable_extensions; do
5396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402   done
5403 IFS=$as_save_IFS
5404
5405 fi
5406 fi
5407 STRIP=$ac_cv_prog_STRIP
5408 if test -n "$STRIP"; then
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5410 $as_echo "$STRIP" >&6; }
5411 else
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415
5416
5417 fi
5418 if test -z "$ac_cv_prog_STRIP"; then
5419   ac_ct_STRIP=$STRIP
5420   # Extract the first word of "strip", so it can be a program name with args.
5421 set dummy strip; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   if test -n "$ac_ct_STRIP"; then
5428   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435     for ac_exec_ext in '' $ac_executable_extensions; do
5436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437     ac_cv_prog_ac_ct_STRIP="strip"
5438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442   done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5448 if test -n "$ac_ct_STRIP"; then
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5450 $as_echo "$ac_ct_STRIP" >&6; }
5451 else
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456   if test "x$ac_ct_STRIP" = x; then
5457     STRIP=":"
5458   else
5459     case $cross_compiling:$ac_tool_warned in
5460 yes:)
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463 ac_tool_warned=yes ;;
5464 esac
5465     STRIP=$ac_ct_STRIP
5466   fi
5467 else
5468   STRIP="$ac_cv_prog_STRIP"
5469 fi
5470
5471 test -z "$STRIP" && STRIP=:
5472
5473
5474
5475
5476
5477
5478 if test -n "$ac_tool_prefix"; then
5479   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_RANLIB+:} false; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   if test -n "$RANLIB"; then
5487   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494     for ac_exec_ext in '' $ac_executable_extensions; do
5495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499   fi
5500 done
5501   done
5502 IFS=$as_save_IFS
5503
5504 fi
5505 fi
5506 RANLIB=$ac_cv_prog_RANLIB
5507 if test -n "$RANLIB"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5509 $as_echo "$RANLIB" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515
5516 fi
5517 if test -z "$ac_cv_prog_RANLIB"; then
5518   ac_ct_RANLIB=$RANLIB
5519   # Extract the first word of "ranlib", so it can be a program name with args.
5520 set dummy ranlib; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   if test -n "$ac_ct_RANLIB"; then
5527   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536     ac_cv_prog_ac_ct_RANLIB="ranlib"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5547 if test -n "$ac_ct_RANLIB"; then
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5549 $as_echo "$ac_ct_RANLIB" >&6; }
5550 else
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555   if test "x$ac_ct_RANLIB" = x; then
5556     RANLIB=":"
5557   else
5558     case $cross_compiling:$ac_tool_warned in
5559 yes:)
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 ac_tool_warned=yes ;;
5563 esac
5564     RANLIB=$ac_ct_RANLIB
5565   fi
5566 else
5567   RANLIB="$ac_cv_prog_RANLIB"
5568 fi
5569
5570 test -z "$RANLIB" && RANLIB=:
5571
5572
5573
5574
5575
5576
5577 # Determine commands to create old-style static archives.
5578 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5579 old_postinstall_cmds='chmod 644 $oldlib'
5580 old_postuninstall_cmds=
5581
5582 if test -n "$RANLIB"; then
5583   case $host_os in
5584   openbsd*)
5585     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5586     ;;
5587   *)
5588     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5589     ;;
5590   esac
5591   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5592 fi
5593
5594 case $host_os in
5595   darwin*)
5596     lock_old_archive_extraction=yes ;;
5597   *)
5598     lock_old_archive_extraction=no ;;
5599 esac
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 # If no C compiler was specified, use CC.
5640 LTCC=${LTCC-"$CC"}
5641
5642 # If no C compiler flags were specified, use CFLAGS.
5643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5644
5645 # Allow CC to be a program name with arguments.
5646 compiler=$CC
5647
5648
5649 # Check for command to grab the raw symbol name followed by C symbol from nm.
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5651 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5652 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5653   $as_echo_n "(cached) " >&6
5654 else
5655
5656 # These are sane defaults that work on at least a few old systems.
5657 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5658
5659 # Character class describing NM global symbol codes.
5660 symcode='[BCDEGRST]'
5661
5662 # Regexp to match symbols that can be accessed directly from C.
5663 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5664
5665 # Define system-specific variables.
5666 case $host_os in
5667 aix*)
5668   symcode='[BCDT]'
5669   ;;
5670 cygwin* | mingw* | pw32* | cegcc*)
5671   symcode='[ABCDGISTW]'
5672   ;;
5673 hpux*)
5674   if test "$host_cpu" = ia64; then
5675     symcode='[ABCDEGRST]'
5676   fi
5677   ;;
5678 irix* | nonstopux*)
5679   symcode='[BCDEGRST]'
5680   ;;
5681 osf*)
5682   symcode='[BCDEGQRST]'
5683   ;;
5684 solaris*)
5685   symcode='[BDRT]'
5686   ;;
5687 sco3.2v5*)
5688   symcode='[DT]'
5689   ;;
5690 sysv4.2uw2*)
5691   symcode='[DT]'
5692   ;;
5693 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5694   symcode='[ABDT]'
5695   ;;
5696 sysv4)
5697   symcode='[DFNSTU]'
5698   ;;
5699 esac
5700
5701 # If we're using GNU nm, then use its standard symbol codes.
5702 case `$NM -V 2>&1` in
5703 *GNU* | *'with BFD'*)
5704   symcode='[ABCDGIRSTW]' ;;
5705 esac
5706
5707 # Transform an extracted symbol line into a proper C declaration.
5708 # Some systems (esp. on ia64) link data and code symbols differently,
5709 # so use this general approach.
5710 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5711
5712 # Transform an extracted symbol line into symbol name and symbol address
5713 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5714 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'"
5715
5716 # Handle CRLF in mingw tool chain
5717 opt_cr=
5718 case $build_os in
5719 mingw*)
5720   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5721   ;;
5722 esac
5723
5724 # Try without a prefix underscore, then with it.
5725 for ac_symprfx in "" "_"; do
5726
5727   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5728   symxfrm="\\1 $ac_symprfx\\2 \\2"
5729
5730   # Write the raw and C identifiers.
5731   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5732     # Fake it for dumpbin and say T for any non-static function
5733     # and D for any global variable.
5734     # Also find C++ and __fastcall symbols from MSVC++,
5735     # which start with @ or ?.
5736     lt_cv_sys_global_symbol_pipe="$AWK '"\
5737 "     {last_section=section; section=\$ 3};"\
5738 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5739 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5740 "     \$ 0!~/External *\|/{next};"\
5741 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5742 "     {if(hide[section]) next};"\
5743 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5744 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5745 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5746 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5747 "     ' prfx=^$ac_symprfx"
5748   else
5749     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5750   fi
5751   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5752
5753   # Check to see that the pipe works correctly.
5754   pipe_works=no
5755
5756   rm -f conftest*
5757   cat > conftest.$ac_ext <<_LT_EOF
5758 #ifdef __cplusplus
5759 extern "C" {
5760 #endif
5761 char nm_test_var;
5762 void nm_test_func(void);
5763 void nm_test_func(void){}
5764 #ifdef __cplusplus
5765 }
5766 #endif
5767 int main(){nm_test_var='a';nm_test_func();return(0);}
5768 _LT_EOF
5769
5770   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5771   (eval $ac_compile) 2>&5
5772   ac_status=$?
5773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774   test $ac_status = 0; }; then
5775     # Now try to grab the symbols.
5776     nlist=conftest.nm
5777     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5778   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5779   ac_status=$?
5780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781   test $ac_status = 0; } && test -s "$nlist"; then
5782       # Try sorting and uniquifying the output.
5783       if sort "$nlist" | uniq > "$nlist"T; then
5784         mv -f "$nlist"T "$nlist"
5785       else
5786         rm -f "$nlist"T
5787       fi
5788
5789       # Make sure that we snagged all the symbols we need.
5790       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5791         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5792           cat <<_LT_EOF > conftest.$ac_ext
5793 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5794 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5795 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5796    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5797 # define LT_DLSYM_CONST
5798 #elif defined(__osf__)
5799 /* This system does not cope well with relocations in const data.  */
5800 # define LT_DLSYM_CONST
5801 #else
5802 # define LT_DLSYM_CONST const
5803 #endif
5804
5805 #ifdef __cplusplus
5806 extern "C" {
5807 #endif
5808
5809 _LT_EOF
5810           # Now generate the symbol file.
5811           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5812
5813           cat <<_LT_EOF >> conftest.$ac_ext
5814
5815 /* The mapping between symbol names and symbols.  */
5816 LT_DLSYM_CONST struct {
5817   const char *name;
5818   void       *address;
5819 }
5820 lt__PROGRAM__LTX_preloaded_symbols[] =
5821 {
5822   { "@PROGRAM@", (void *) 0 },
5823 _LT_EOF
5824           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5825           cat <<\_LT_EOF >> conftest.$ac_ext
5826   {0, (void *) 0}
5827 };
5828
5829 /* This works around a problem in FreeBSD linker */
5830 #ifdef FREEBSD_WORKAROUND
5831 static const void *lt_preloaded_setup() {
5832   return lt__PROGRAM__LTX_preloaded_symbols;
5833 }
5834 #endif
5835
5836 #ifdef __cplusplus
5837 }
5838 #endif
5839 _LT_EOF
5840           # Now try linking the two files.
5841           mv conftest.$ac_objext conftstm.$ac_objext
5842           lt_globsym_save_LIBS=$LIBS
5843           lt_globsym_save_CFLAGS=$CFLAGS
5844           LIBS="conftstm.$ac_objext"
5845           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5846           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5847   (eval $ac_link) 2>&5
5848   ac_status=$?
5849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5851             pipe_works=yes
5852           fi
5853           LIBS=$lt_globsym_save_LIBS
5854           CFLAGS=$lt_globsym_save_CFLAGS
5855         else
5856           echo "cannot find nm_test_func in $nlist" >&5
5857         fi
5858       else
5859         echo "cannot find nm_test_var in $nlist" >&5
5860       fi
5861     else
5862       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5863     fi
5864   else
5865     echo "$progname: failed program was:" >&5
5866     cat conftest.$ac_ext >&5
5867   fi
5868   rm -rf conftest* conftst*
5869
5870   # Do not use the global_symbol_pipe unless it works.
5871   if test "$pipe_works" = yes; then
5872     break
5873   else
5874     lt_cv_sys_global_symbol_pipe=
5875   fi
5876 done
5877
5878 fi
5879
5880 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5881   lt_cv_sys_global_symbol_to_cdecl=
5882 fi
5883 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5885 $as_echo "failed" >&6; }
5886 else
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5888 $as_echo "ok" >&6; }
5889 fi
5890
5891 # Response file support.
5892 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5893   nm_file_list_spec='@'
5894 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5895   nm_file_list_spec='@'
5896 fi
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5925 $as_echo_n "checking for sysroot... " >&6; }
5926
5927 # Check whether --with-sysroot was given.
5928 if test "${with_sysroot+set}" = set; then :
5929   withval=$with_sysroot;
5930 else
5931   with_sysroot=no
5932 fi
5933
5934
5935 lt_sysroot=
5936 case ${with_sysroot} in #(
5937  yes)
5938    if test "$GCC" = yes; then
5939      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5940    fi
5941    ;; #(
5942  /*)
5943    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5944    ;; #(
5945  no|'')
5946    ;; #(
5947  *)
5948    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5949 $as_echo "${with_sysroot}" >&6; }
5950    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5951    ;;
5952 esac
5953
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5955 $as_echo "${lt_sysroot:-no}" >&6; }
5956
5957
5958
5959
5960
5961 # Check whether --enable-libtool-lock was given.
5962 if test "${enable_libtool_lock+set}" = set; then :
5963   enableval=$enable_libtool_lock;
5964 fi
5965
5966 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5967
5968 # Some flags need to be propagated to the compiler or linker for good
5969 # libtool support.
5970 case $host in
5971 ia64-*-hpux*)
5972   # Find out which ABI we are using.
5973   echo 'int i;' > conftest.$ac_ext
5974   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5975   (eval $ac_compile) 2>&5
5976   ac_status=$?
5977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978   test $ac_status = 0; }; then
5979     case `/usr/bin/file conftest.$ac_objext` in
5980       *ELF-32*)
5981         HPUX_IA64_MODE="32"
5982         ;;
5983       *ELF-64*)
5984         HPUX_IA64_MODE="64"
5985         ;;
5986     esac
5987   fi
5988   rm -rf conftest*
5989   ;;
5990 *-*-irix6*)
5991   # Find out which ABI we are using.
5992   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5993   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5994   (eval $ac_compile) 2>&5
5995   ac_status=$?
5996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5997   test $ac_status = 0; }; then
5998     if test "$lt_cv_prog_gnu_ld" = yes; then
5999       case `/usr/bin/file conftest.$ac_objext` in
6000         *32-bit*)
6001           LD="${LD-ld} -melf32bsmip"
6002           ;;
6003         *N32*)
6004           LD="${LD-ld} -melf32bmipn32"
6005           ;;
6006         *64-bit*)
6007           LD="${LD-ld} -melf64bmip"
6008         ;;
6009       esac
6010     else
6011       case `/usr/bin/file conftest.$ac_objext` in
6012         *32-bit*)
6013           LD="${LD-ld} -32"
6014           ;;
6015         *N32*)
6016           LD="${LD-ld} -n32"
6017           ;;
6018         *64-bit*)
6019           LD="${LD-ld} -64"
6020           ;;
6021       esac
6022     fi
6023   fi
6024   rm -rf conftest*
6025   ;;
6026
6027 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6028 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6029   # Find out which ABI we are using.
6030   echo 'int i;' > conftest.$ac_ext
6031   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6032   (eval $ac_compile) 2>&5
6033   ac_status=$?
6034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035   test $ac_status = 0; }; then
6036     case `/usr/bin/file conftest.o` in
6037       *32-bit*)
6038         case $host in
6039           x86_64-*kfreebsd*-gnu)
6040             LD="${LD-ld} -m elf_i386_fbsd"
6041             ;;
6042           x86_64-*linux*)
6043             LD="${LD-ld} -m elf_i386"
6044             ;;
6045           ppc64-*linux*|powerpc64-*linux*)
6046             LD="${LD-ld} -m elf32ppclinux"
6047             ;;
6048           s390x-*linux*)
6049             LD="${LD-ld} -m elf_s390"
6050             ;;
6051           sparc64-*linux*)
6052             LD="${LD-ld} -m elf32_sparc"
6053             ;;
6054         esac
6055         ;;
6056       *64-bit*)
6057         case $host in
6058           x86_64-*kfreebsd*-gnu)
6059             LD="${LD-ld} -m elf_x86_64_fbsd"
6060             ;;
6061           x86_64-*linux*)
6062             LD="${LD-ld} -m elf_x86_64"
6063             ;;
6064           ppc*-*linux*|powerpc*-*linux*)
6065             LD="${LD-ld} -m elf64ppc"
6066             ;;
6067           s390*-*linux*|s390*-*tpf*)
6068             LD="${LD-ld} -m elf64_s390"
6069             ;;
6070           sparc*-*linux*)
6071             LD="${LD-ld} -m elf64_sparc"
6072             ;;
6073         esac
6074         ;;
6075     esac
6076   fi
6077   rm -rf conftest*
6078   ;;
6079
6080 *-*-sco3.2v5*)
6081   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6082   SAVE_CFLAGS="$CFLAGS"
6083   CFLAGS="$CFLAGS -belf"
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6085 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6086 if ${lt_cv_cc_needs_belf+:} false; then :
6087   $as_echo_n "(cached) " >&6
6088 else
6089   ac_ext=c
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094
6095      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h.  */
6097
6098 int
6099 main ()
6100 {
6101
6102   ;
6103   return 0;
6104 }
6105 _ACEOF
6106 if ac_fn_c_try_link "$LINENO"; then :
6107   lt_cv_cc_needs_belf=yes
6108 else
6109   lt_cv_cc_needs_belf=no
6110 fi
6111 rm -f core conftest.err conftest.$ac_objext \
6112     conftest$ac_exeext conftest.$ac_ext
6113      ac_ext=c
6114 ac_cpp='$CPP $CPPFLAGS'
6115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118
6119 fi
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6121 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6122   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6123     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6124     CFLAGS="$SAVE_CFLAGS"
6125   fi
6126   ;;
6127 *-*solaris*)
6128   # Find out which ABI we are using.
6129   echo 'int i;' > conftest.$ac_ext
6130   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6131   (eval $ac_compile) 2>&5
6132   ac_status=$?
6133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134   test $ac_status = 0; }; then
6135     case `/usr/bin/file conftest.o` in
6136     *64-bit*)
6137       case $lt_cv_prog_gnu_ld in
6138       yes*)
6139         case $host in
6140         i?86-*-solaris*)
6141           LD="${LD-ld} -m elf_x86_64"
6142           ;;
6143         sparc*-*-solaris*)
6144           LD="${LD-ld} -m elf64_sparc"
6145           ;;
6146         esac
6147         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6148         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6149           LD="${LD-ld}_sol2"
6150         fi
6151         ;;
6152       *)
6153         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6154           LD="${LD-ld} -64"
6155         fi
6156         ;;
6157       esac
6158       ;;
6159     esac
6160   fi
6161   rm -rf conftest*
6162   ;;
6163 esac
6164
6165 need_locks="$enable_libtool_lock"
6166
6167 if test -n "$ac_tool_prefix"; then
6168   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}mt; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6173   $as_echo_n "(cached) " >&6
6174 else
6175   if test -n "$MANIFEST_TOOL"; then
6176   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181   IFS=$as_save_IFS
6182   test -z "$as_dir" && as_dir=.
6183     for ac_exec_ext in '' $ac_executable_extensions; do
6184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187     break 2
6188   fi
6189 done
6190   done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6196 if test -n "$MANIFEST_TOOL"; then
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6198 $as_echo "$MANIFEST_TOOL" >&6; }
6199 else
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204
6205 fi
6206 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6207   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6208   # Extract the first word of "mt", so it can be a program name with args.
6209 set dummy mt; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215   if test -n "$ac_ct_MANIFEST_TOOL"; then
6216   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221   IFS=$as_save_IFS
6222   test -z "$as_dir" && as_dir=.
6223     for ac_exec_ext in '' $ac_executable_extensions; do
6224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227     break 2
6228   fi
6229 done
6230   done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6236 if test -n "$ac_ct_MANIFEST_TOOL"; then
6237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6238 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6239 else
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243
6244   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6245     MANIFEST_TOOL=":"
6246   else
6247     case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6254   fi
6255 else
6256   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6257 fi
6258
6259 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6261 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6262 if ${lt_cv_path_mainfest_tool+:} false; then :
6263   $as_echo_n "(cached) " >&6
6264 else
6265   lt_cv_path_mainfest_tool=no
6266   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6267   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6268   cat conftest.err >&5
6269   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6270     lt_cv_path_mainfest_tool=yes
6271   fi
6272   rm -f conftest*
6273 fi
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6275 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6276 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6277   MANIFEST_TOOL=:
6278 fi
6279
6280
6281
6282
6283
6284
6285   case $host_os in
6286     rhapsody* | darwin*)
6287     if test -n "$ac_tool_prefix"; then
6288   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6293   $as_echo_n "(cached) " >&6
6294 else
6295   if test -n "$DSYMUTIL"; then
6296   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303     for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310   done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6316 if test -n "$DSYMUTIL"; then
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6318 $as_echo "$DSYMUTIL" >&6; }
6319 else
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324
6325 fi
6326 if test -z "$ac_cv_prog_DSYMUTIL"; then
6327   ac_ct_DSYMUTIL=$DSYMUTIL
6328   # Extract the first word of "dsymutil", so it can be a program name with args.
6329 set dummy dsymutil; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test -n "$ac_ct_DSYMUTIL"; then
6336   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343     for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350   done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6356 if test -n "$ac_ct_DSYMUTIL"; then
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6358 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6359 else
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364   if test "x$ac_ct_DSYMUTIL" = x; then
6365     DSYMUTIL=":"
6366   else
6367     case $cross_compiling:$ac_tool_warned in
6368 yes:)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6372 esac
6373     DSYMUTIL=$ac_ct_DSYMUTIL
6374   fi
6375 else
6376   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6377 fi
6378
6379     if test -n "$ac_tool_prefix"; then
6380   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if ${ac_cv_prog_NMEDIT+:} false; then :
6385   $as_echo_n "(cached) " >&6
6386 else
6387   if test -n "$NMEDIT"; then
6388   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395     for ac_exec_ext in '' $ac_executable_extensions; do
6396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402   done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 NMEDIT=$ac_cv_prog_NMEDIT
6408 if test -n "$NMEDIT"; then
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6410 $as_echo "$NMEDIT" >&6; }
6411 else
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416
6417 fi
6418 if test -z "$ac_cv_prog_NMEDIT"; then
6419   ac_ct_NMEDIT=$NMEDIT
6420   # Extract the first word of "nmedit", so it can be a program name with args.
6421 set dummy nmedit; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6425   $as_echo_n "(cached) " >&6
6426 else
6427   if test -n "$ac_ct_NMEDIT"; then
6428   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435     for ac_exec_ext in '' $ac_executable_extensions; do
6436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442   done
6443 IFS=$as_save_IFS
6444
6445 fi
6446 fi
6447 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6448 if test -n "$ac_ct_NMEDIT"; then
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6450 $as_echo "$ac_ct_NMEDIT" >&6; }
6451 else
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455
6456   if test "x$ac_ct_NMEDIT" = x; then
6457     NMEDIT=":"
6458   else
6459     case $cross_compiling:$ac_tool_warned in
6460 yes:)
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6464 esac
6465     NMEDIT=$ac_ct_NMEDIT
6466   fi
6467 else
6468   NMEDIT="$ac_cv_prog_NMEDIT"
6469 fi
6470
6471     if test -n "$ac_tool_prefix"; then
6472   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_LIPO+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   if test -n "$LIPO"; then
6480   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487     for ac_exec_ext in '' $ac_executable_extensions; do
6488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494   done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 LIPO=$ac_cv_prog_LIPO
6500 if test -n "$LIPO"; then
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6502 $as_echo "$LIPO" >&6; }
6503 else
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508
6509 fi
6510 if test -z "$ac_cv_prog_LIPO"; then
6511   ac_ct_LIPO=$LIPO
6512   # Extract the first word of "lipo", so it can be a program name with args.
6513 set dummy lipo; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   if test -n "$ac_ct_LIPO"; then
6520   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527     for ac_exec_ext in '' $ac_executable_extensions; do
6528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529     ac_cv_prog_ac_ct_LIPO="lipo"
6530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534   done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6540 if test -n "$ac_ct_LIPO"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6542 $as_echo "$ac_ct_LIPO" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548   if test "x$ac_ct_LIPO" = x; then
6549     LIPO=":"
6550   else
6551     case $cross_compiling:$ac_tool_warned in
6552 yes:)
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6556 esac
6557     LIPO=$ac_ct_LIPO
6558   fi
6559 else
6560   LIPO="$ac_cv_prog_LIPO"
6561 fi
6562
6563     if test -n "$ac_tool_prefix"; then
6564   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}otool; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_OTOOL+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   if test -n "$OTOOL"; then
6572   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579     for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586   done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 OTOOL=$ac_cv_prog_OTOOL
6592 if test -n "$OTOOL"; then
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6594 $as_echo "$OTOOL" >&6; }
6595 else
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600
6601 fi
6602 if test -z "$ac_cv_prog_OTOOL"; then
6603   ac_ct_OTOOL=$OTOOL
6604   # Extract the first word of "otool", so it can be a program name with args.
6605 set dummy otool; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   if test -n "$ac_ct_OTOOL"; then
6612   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619     for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_ac_ct_OTOOL="otool"
6622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626   done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6632 if test -n "$ac_ct_OTOOL"; then
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6634 $as_echo "$ac_ct_OTOOL" >&6; }
6635 else
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639
6640   if test "x$ac_ct_OTOOL" = x; then
6641     OTOOL=":"
6642   else
6643     case $cross_compiling:$ac_tool_warned in
6644 yes:)
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6648 esac
6649     OTOOL=$ac_ct_OTOOL
6650   fi
6651 else
6652   OTOOL="$ac_cv_prog_OTOOL"
6653 fi
6654
6655     if test -n "$ac_tool_prefix"; then
6656   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_OTOOL64+:} false; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663   if test -n "$OTOOL64"; then
6664   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671     for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678   done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 OTOOL64=$ac_cv_prog_OTOOL64
6684 if test -n "$OTOOL64"; then
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6686 $as_echo "$OTOOL64" >&6; }
6687 else
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692
6693 fi
6694 if test -z "$ac_cv_prog_OTOOL64"; then
6695   ac_ct_OTOOL64=$OTOOL64
6696   # Extract the first word of "otool64", so it can be a program name with args.
6697 set dummy otool64; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6701   $as_echo_n "(cached) " >&6
6702 else
6703   if test -n "$ac_ct_OTOOL64"; then
6704   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711     for ac_exec_ext in '' $ac_executable_extensions; do
6712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713     ac_cv_prog_ac_ct_OTOOL64="otool64"
6714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718   done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6724 if test -n "$ac_ct_OTOOL64"; then
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6726 $as_echo "$ac_ct_OTOOL64" >&6; }
6727 else
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731
6732   if test "x$ac_ct_OTOOL64" = x; then
6733     OTOOL64=":"
6734   else
6735     case $cross_compiling:$ac_tool_warned in
6736 yes:)
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741     OTOOL64=$ac_ct_OTOOL64
6742   fi
6743 else
6744   OTOOL64="$ac_cv_prog_OTOOL64"
6745 fi
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6774 $as_echo_n "checking for -single_module linker flag... " >&6; }
6775 if ${lt_cv_apple_cc_single_mod+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   lt_cv_apple_cc_single_mod=no
6779       if test -z "${LT_MULTI_MODULE}"; then
6780         # By default we will add the -single_module flag. You can override
6781         # by either setting the environment variable LT_MULTI_MODULE
6782         # non-empty at configure time, or by adding -multi_module to the
6783         # link flags.
6784         rm -rf libconftest.dylib*
6785         echo "int foo(void){return 1;}" > conftest.c
6786         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6787 -dynamiclib -Wl,-single_module conftest.c" >&5
6788         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6789           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6790         _lt_result=$?
6791         # If there is a non-empty error log, and "single_module"
6792         # appears in it, assume the flag caused a linker warning
6793         if test -s conftest.err && $GREP single_module conftest.err; then
6794           cat conftest.err >&5
6795         # Otherwise, if the output was created with a 0 exit code from
6796         # the compiler, it worked.
6797         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6798           lt_cv_apple_cc_single_mod=yes
6799         else
6800           cat conftest.err >&5
6801         fi
6802         rm -rf libconftest.dylib*
6803         rm -f conftest.*
6804       fi
6805 fi
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6807 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6808
6809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6810 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6811 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   lt_cv_ld_exported_symbols_list=no
6815       save_LDFLAGS=$LDFLAGS
6816       echo "_main" > conftest.sym
6817       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6818       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h.  */
6820
6821 int
6822 main ()
6823 {
6824
6825   ;
6826   return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_link "$LINENO"; then :
6830   lt_cv_ld_exported_symbols_list=yes
6831 else
6832   lt_cv_ld_exported_symbols_list=no
6833 fi
6834 rm -f core conftest.err conftest.$ac_objext \
6835     conftest$ac_exeext conftest.$ac_ext
6836         LDFLAGS="$save_LDFLAGS"
6837
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6840 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6841
6842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6843 $as_echo_n "checking for -force_load linker flag... " >&6; }
6844 if ${lt_cv_ld_force_load+:} false; then :
6845   $as_echo_n "(cached) " >&6
6846 else
6847   lt_cv_ld_force_load=no
6848       cat > conftest.c << _LT_EOF
6849 int forced_loaded() { return 2;}
6850 _LT_EOF
6851       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6852       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6853       echo "$AR cru libconftest.a conftest.o" >&5
6854       $AR cru libconftest.a conftest.o 2>&5
6855       echo "$RANLIB libconftest.a" >&5
6856       $RANLIB libconftest.a 2>&5
6857       cat > conftest.c << _LT_EOF
6858 int main() { return 0;}
6859 _LT_EOF
6860       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6861       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6862       _lt_result=$?
6863       if test -s conftest.err && $GREP force_load conftest.err; then
6864         cat conftest.err >&5
6865       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6866         lt_cv_ld_force_load=yes
6867       else
6868         cat conftest.err >&5
6869       fi
6870         rm -f conftest.err libconftest.a conftest conftest.c
6871         rm -rf conftest.dSYM
6872
6873 fi
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6875 $as_echo "$lt_cv_ld_force_load" >&6; }
6876     case $host_os in
6877     rhapsody* | darwin1.[012])
6878       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6879     darwin1.*)
6880       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6881     darwin*) # darwin 5.x on
6882       # if running on 10.5 or later, the deployment target defaults
6883       # to the OS version, if on x86, and 10.4, the deployment
6884       # target defaults to 10.4. Don't you love it?
6885       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6886         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6887           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6888         10.[012]*)
6889           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6890         10.*)
6891           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6892       esac
6893     ;;
6894   esac
6895     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6896       _lt_dar_single_mod='$single_module'
6897     fi
6898     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6899       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6900     else
6901       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6902     fi
6903     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6904       _lt_dsymutil='~$DSYMUTIL $lib || :'
6905     else
6906       _lt_dsymutil=
6907     fi
6908     ;;
6909   esac
6910
6911 ac_ext=c
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6917 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6918 # On Suns, sometimes $CPP names a directory.
6919 if test -n "$CPP" && test -d "$CPP"; then
6920   CPP=
6921 fi
6922 if test -z "$CPP"; then
6923   if ${ac_cv_prog_CPP+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926       # Double quotes because CPP needs to be expanded
6927     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6928     do
6929       ac_preproc_ok=false
6930 for ac_c_preproc_warn_flag in '' yes
6931 do
6932   # Use a header file that comes with gcc, so configuring glibc
6933   # with a fresh cross-compiler works.
6934   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6935   # <limits.h> exists even on freestanding compilers.
6936   # On the NeXT, cc -E runs the code through the compiler's parser,
6937   # not just through cpp. "Syntax error" is here to catch this case.
6938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h.  */
6940 #ifdef __STDC__
6941 # include <limits.h>
6942 #else
6943 # include <assert.h>
6944 #endif
6945                      Syntax error
6946 _ACEOF
6947 if ac_fn_c_try_cpp "$LINENO"; then :
6948
6949 else
6950   # Broken: fails on valid input.
6951 continue
6952 fi
6953 rm -f conftest.err conftest.i conftest.$ac_ext
6954
6955   # OK, works on sane cases.  Now check whether nonexistent headers
6956   # can be detected and how.
6957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h.  */
6959 #include <ac_nonexistent.h>
6960 _ACEOF
6961 if ac_fn_c_try_cpp "$LINENO"; then :
6962   # Broken: success on invalid input.
6963 continue
6964 else
6965   # Passes both tests.
6966 ac_preproc_ok=:
6967 break
6968 fi
6969 rm -f conftest.err conftest.i conftest.$ac_ext
6970
6971 done
6972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6973 rm -f conftest.i conftest.err conftest.$ac_ext
6974 if $ac_preproc_ok; then :
6975   break
6976 fi
6977
6978     done
6979     ac_cv_prog_CPP=$CPP
6980
6981 fi
6982   CPP=$ac_cv_prog_CPP
6983 else
6984   ac_cv_prog_CPP=$CPP
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6987 $as_echo "$CPP" >&6; }
6988 ac_preproc_ok=false
6989 for ac_c_preproc_warn_flag in '' yes
6990 do
6991   # Use a header file that comes with gcc, so configuring glibc
6992   # with a fresh cross-compiler works.
6993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994   # <limits.h> exists even on freestanding compilers.
6995   # On the NeXT, cc -E runs the code through the compiler's parser,
6996   # not just through cpp. "Syntax error" is here to catch this case.
6997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h.  */
6999 #ifdef __STDC__
7000 # include <limits.h>
7001 #else
7002 # include <assert.h>
7003 #endif
7004                      Syntax error
7005 _ACEOF
7006 if ac_fn_c_try_cpp "$LINENO"; then :
7007
7008 else
7009   # Broken: fails on valid input.
7010 continue
7011 fi
7012 rm -f conftest.err conftest.i conftest.$ac_ext
7013
7014   # OK, works on sane cases.  Now check whether nonexistent headers
7015   # can be detected and how.
7016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018 #include <ac_nonexistent.h>
7019 _ACEOF
7020 if ac_fn_c_try_cpp "$LINENO"; then :
7021   # Broken: success on invalid input.
7022 continue
7023 else
7024   # Passes both tests.
7025 ac_preproc_ok=:
7026 break
7027 fi
7028 rm -f conftest.err conftest.i conftest.$ac_ext
7029
7030 done
7031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7032 rm -f conftest.i conftest.err conftest.$ac_ext
7033 if $ac_preproc_ok; then :
7034
7035 else
7036   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7038 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7039 See \`config.log' for more details" "$LINENO" 5; }
7040 fi
7041
7042 ac_ext=c
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7047
7048
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7050 $as_echo_n "checking for ANSI C header files... " >&6; }
7051 if ${ac_cv_header_stdc+:} false; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h.  */
7056 #include <stdlib.h>
7057 #include <stdarg.h>
7058 #include <string.h>
7059 #include <float.h>
7060
7061 int
7062 main ()
7063 {
7064
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070   ac_cv_header_stdc=yes
7071 else
7072   ac_cv_header_stdc=no
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075
7076 if test $ac_cv_header_stdc = yes; then
7077   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h.  */
7080 #include <string.h>
7081
7082 _ACEOF
7083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084   $EGREP "memchr" >/dev/null 2>&1; then :
7085
7086 else
7087   ac_cv_header_stdc=no
7088 fi
7089 rm -f conftest*
7090
7091 fi
7092
7093 if test $ac_cv_header_stdc = yes; then
7094   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h.  */
7097 #include <stdlib.h>
7098
7099 _ACEOF
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101   $EGREP "free" >/dev/null 2>&1; then :
7102
7103 else
7104   ac_cv_header_stdc=no
7105 fi
7106 rm -f conftest*
7107
7108 fi
7109
7110 if test $ac_cv_header_stdc = yes; then
7111   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7112   if test "$cross_compiling" = yes; then :
7113   :
7114 else
7115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h.  */
7117 #include <ctype.h>
7118 #include <stdlib.h>
7119 #if ((' ' & 0x0FF) == 0x020)
7120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7122 #else
7123 # define ISLOWER(c) \
7124                    (('a' <= (c) && (c) <= 'i') \
7125                      || ('j' <= (c) && (c) <= 'r') \
7126                      || ('s' <= (c) && (c) <= 'z'))
7127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7128 #endif
7129
7130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7131 int
7132 main ()
7133 {
7134   int i;
7135   for (i = 0; i < 256; i++)
7136     if (XOR (islower (i), ISLOWER (i))
7137         || toupper (i) != TOUPPER (i))
7138       return 2;
7139   return 0;
7140 }
7141 _ACEOF
7142 if ac_fn_c_try_run "$LINENO"; then :
7143
7144 else
7145   ac_cv_header_stdc=no
7146 fi
7147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7148   conftest.$ac_objext conftest.beam conftest.$ac_ext
7149 fi
7150
7151 fi
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7154 $as_echo "$ac_cv_header_stdc" >&6; }
7155 if test $ac_cv_header_stdc = yes; then
7156
7157 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7158
7159 fi
7160
7161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7163                   inttypes.h stdint.h unistd.h
7164 do :
7165   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7167 "
7168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7169   cat >>confdefs.h <<_ACEOF
7170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7171 _ACEOF
7172
7173 fi
7174
7175 done
7176
7177
7178 for ac_header in dlfcn.h
7179 do :
7180   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7181 "
7182 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7183   cat >>confdefs.h <<_ACEOF
7184 #define HAVE_DLFCN_H 1
7185 _ACEOF
7186
7187 fi
7188
7189 done
7190
7191
7192
7193
7194
7195 # Set options
7196 enable_dlopen=yes
7197 enable_win32_dll=yes
7198
7199 case $host in
7200 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7201   if test -n "$ac_tool_prefix"; then
7202   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}as; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_AS+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$AS"; then
7210   ac_cv_prog_AS="$AS" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219     ac_cv_prog_AS="${ac_tool_prefix}as"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 AS=$ac_cv_prog_AS
7230 if test -n "$AS"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7232 $as_echo "$AS" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 fi
7240 if test -z "$ac_cv_prog_AS"; then
7241   ac_ct_AS=$AS
7242   # Extract the first word of "as", so it can be a program name with args.
7243 set dummy as; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7247   $as_echo_n "(cached) " >&6
7248 else
7249   if test -n "$ac_ct_AS"; then
7250   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257     for ac_exec_ext in '' $ac_executable_extensions; do
7258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259     ac_cv_prog_ac_ct_AS="as"
7260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264   done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7270 if test -n "$ac_ct_AS"; then
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7272 $as_echo "$ac_ct_AS" >&6; }
7273 else
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278   if test "x$ac_ct_AS" = x; then
7279     AS="false"
7280   else
7281     case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287     AS=$ac_ct_AS
7288   fi
7289 else
7290   AS="$ac_cv_prog_AS"
7291 fi
7292
7293   if test -n "$ac_tool_prefix"; then
7294   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_DLLTOOL+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   if test -n "$DLLTOOL"; then
7302   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 DLLTOOL=$ac_cv_prog_DLLTOOL
7322 if test -n "$DLLTOOL"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7324 $as_echo "$DLLTOOL" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_DLLTOOL"; then
7333   ac_ct_DLLTOOL=$DLLTOOL
7334   # Extract the first word of "dlltool", so it can be a program name with args.
7335 set dummy dlltool; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$ac_ct_DLLTOOL"; then
7342   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7362 if test -n "$ac_ct_DLLTOOL"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7364 $as_echo "$ac_ct_DLLTOOL" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370   if test "x$ac_ct_DLLTOOL" = x; then
7371     DLLTOOL="false"
7372   else
7373     case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379     DLLTOOL=$ac_ct_DLLTOOL
7380   fi
7381 else
7382   DLLTOOL="$ac_cv_prog_DLLTOOL"
7383 fi
7384
7385   if test -n "$ac_tool_prefix"; then
7386   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_OBJDUMP+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   if test -n "$OBJDUMP"; then
7394   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401     for ac_exec_ext in '' $ac_executable_extensions; do
7402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408   done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 OBJDUMP=$ac_cv_prog_OBJDUMP
7414 if test -n "$OBJDUMP"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7416 $as_echo "$OBJDUMP" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422
7423 fi
7424 if test -z "$ac_cv_prog_OBJDUMP"; then
7425   ac_ct_OBJDUMP=$OBJDUMP
7426   # Extract the first word of "objdump", so it can be a program name with args.
7427 set dummy objdump; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7431   $as_echo_n "(cached) " >&6
7432 else
7433   if test -n "$ac_ct_OBJDUMP"; then
7434   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441     for ac_exec_ext in '' $ac_executable_extensions; do
7442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448   done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7454 if test -n "$ac_ct_OBJDUMP"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7456 $as_echo "$ac_ct_OBJDUMP" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462   if test "x$ac_ct_OBJDUMP" = x; then
7463     OBJDUMP="false"
7464   else
7465     case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471     OBJDUMP=$ac_ct_OBJDUMP
7472   fi
7473 else
7474   OBJDUMP="$ac_cv_prog_OBJDUMP"
7475 fi
7476
7477   ;;
7478 esac
7479
7480 test -z "$AS" && AS=as
7481
7482
7483
7484
7485
7486 test -z "$DLLTOOL" && DLLTOOL=dlltool
7487
7488
7489
7490
7491
7492 test -z "$OBJDUMP" && OBJDUMP=objdump
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502             # Check whether --enable-shared was given.
7503 if test "${enable_shared+set}" = set; then :
7504   enableval=$enable_shared; p=${PACKAGE-default}
7505     case $enableval in
7506     yes) enable_shared=yes ;;
7507     no) enable_shared=no ;;
7508     *)
7509       enable_shared=no
7510       # Look at the argument we got.  We use all the common list separators.
7511       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7512       for pkg in $enableval; do
7513         IFS="$lt_save_ifs"
7514         if test "X$pkg" = "X$p"; then
7515           enable_shared=yes
7516         fi
7517       done
7518       IFS="$lt_save_ifs"
7519       ;;
7520     esac
7521 else
7522   enable_shared=yes
7523 fi
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533   # Check whether --enable-static was given.
7534 if test "${enable_static+set}" = set; then :
7535   enableval=$enable_static; p=${PACKAGE-default}
7536     case $enableval in
7537     yes) enable_static=yes ;;
7538     no) enable_static=no ;;
7539     *)
7540      enable_static=no
7541       # Look at the argument we got.  We use all the common list separators.
7542       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7543       for pkg in $enableval; do
7544         IFS="$lt_save_ifs"
7545         if test "X$pkg" = "X$p"; then
7546           enable_static=yes
7547         fi
7548       done
7549       IFS="$lt_save_ifs"
7550       ;;
7551     esac
7552 else
7553   enable_static=yes
7554 fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565 # Check whether --with-pic was given.
7566 if test "${with_pic+set}" = set; then :
7567   withval=$with_pic; lt_p=${PACKAGE-default}
7568     case $withval in
7569     yes|no) pic_mode=$withval ;;
7570     *)
7571       pic_mode=default
7572       # Look at the argument we got.  We use all the common list separators.
7573       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7574       for lt_pkg in $withval; do
7575         IFS="$lt_save_ifs"
7576         if test "X$lt_pkg" = "X$lt_p"; then
7577           pic_mode=yes
7578         fi
7579       done
7580       IFS="$lt_save_ifs"
7581       ;;
7582     esac
7583 else
7584   pic_mode=default
7585 fi
7586
7587
7588 test -z "$pic_mode" && pic_mode=default
7589
7590
7591
7592
7593
7594
7595
7596   # Check whether --enable-fast-install was given.
7597 if test "${enable_fast_install+set}" = set; then :
7598   enableval=$enable_fast_install; p=${PACKAGE-default}
7599     case $enableval in
7600     yes) enable_fast_install=yes ;;
7601     no) enable_fast_install=no ;;
7602     *)
7603       enable_fast_install=no
7604       # Look at the argument we got.  We use all the common list separators.
7605       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606       for pkg in $enableval; do
7607         IFS="$lt_save_ifs"
7608         if test "X$pkg" = "X$p"; then
7609           enable_fast_install=yes
7610         fi
7611       done
7612       IFS="$lt_save_ifs"
7613       ;;
7614     esac
7615 else
7616   enable_fast_install=yes
7617 fi
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 # This can be used to rebuild libtool when needed
7630 LIBTOOL_DEPS="$ltmain"
7631
7632 # Always use our own libtool.
7633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 test -z "$LN_S" && LN_S="ln -s"
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679 if test -n "${ZSH_VERSION+set}" ; then
7680    setopt NO_GLOB_SUBST
7681 fi
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7684 $as_echo_n "checking for objdir... " >&6; }
7685 if ${lt_cv_objdir+:} false; then :
7686   $as_echo_n "(cached) " >&6
7687 else
7688   rm -f .libs 2>/dev/null
7689 mkdir .libs 2>/dev/null
7690 if test -d .libs; then
7691   lt_cv_objdir=.libs
7692 else
7693   # MS-DOS does not allow filenames that begin with a dot.
7694   lt_cv_objdir=_libs
7695 fi
7696 rmdir .libs 2>/dev/null
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7699 $as_echo "$lt_cv_objdir" >&6; }
7700 objdir=$lt_cv_objdir
7701
7702
7703
7704
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define LT_OBJDIR "$lt_cv_objdir/"
7708 _ACEOF
7709
7710
7711
7712
7713 case $host_os in
7714 aix3*)
7715   # AIX sometimes has problems with the GCC collect2 program.  For some
7716   # reason, if we set the COLLECT_NAMES environment variable, the problems
7717   # vanish in a puff of smoke.
7718   if test "X${COLLECT_NAMES+set}" != Xset; then
7719     COLLECT_NAMES=
7720     export COLLECT_NAMES
7721   fi
7722   ;;
7723 esac
7724
7725 # Global variables:
7726 ofile=libtool
7727 can_build_shared=yes
7728
7729 # All known linkers require a `.a' archive for static linking (except MSVC,
7730 # which needs '.lib').
7731 libext=a
7732
7733 with_gnu_ld="$lt_cv_prog_gnu_ld"
7734
7735 old_CC="$CC"
7736 old_CFLAGS="$CFLAGS"
7737
7738 # Set sane defaults for various variables
7739 test -z "$CC" && CC=cc
7740 test -z "$LTCC" && LTCC=$CC
7741 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7742 test -z "$LD" && LD=ld
7743 test -z "$ac_objext" && ac_objext=o
7744
7745 for cc_temp in $compiler""; do
7746   case $cc_temp in
7747     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7748     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7749     \-*) ;;
7750     *) break;;
7751   esac
7752 done
7753 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7754
7755
7756 # Only perform the check for file, if the check method requires it
7757 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7758 case $deplibs_check_method in
7759 file_magic*)
7760   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7762 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7763 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7764   $as_echo_n "(cached) " >&6
7765 else
7766   case $MAGIC_CMD in
7767 [\\/*] |  ?:[\\/]*)
7768   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7769   ;;
7770 *)
7771   lt_save_MAGIC_CMD="$MAGIC_CMD"
7772   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7773   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7774   for ac_dir in $ac_dummy; do
7775     IFS="$lt_save_ifs"
7776     test -z "$ac_dir" && ac_dir=.
7777     if test -f $ac_dir/${ac_tool_prefix}file; then
7778       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7779       if test -n "$file_magic_test_file"; then
7780         case $deplibs_check_method in
7781         "file_magic "*)
7782           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7783           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7785             $EGREP "$file_magic_regex" > /dev/null; then
7786             :
7787           else
7788             cat <<_LT_EOF 1>&2
7789
7790 *** Warning: the command libtool uses to detect shared libraries,
7791 *** $file_magic_cmd, produces output that libtool cannot recognize.
7792 *** The result is that libtool may fail to recognize shared libraries
7793 *** as such.  This will affect the creation of libtool libraries that
7794 *** depend on shared libraries, but programs linked with such libtool
7795 *** libraries will work regardless of this problem.  Nevertheless, you
7796 *** may want to report the problem to your system manager and/or to
7797 *** bug-libtool@gnu.org
7798
7799 _LT_EOF
7800           fi ;;
7801         esac
7802       fi
7803       break
7804     fi
7805   done
7806   IFS="$lt_save_ifs"
7807   MAGIC_CMD="$lt_save_MAGIC_CMD"
7808   ;;
7809 esac
7810 fi
7811
7812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7813 if test -n "$MAGIC_CMD"; then
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7815 $as_echo "$MAGIC_CMD" >&6; }
7816 else
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822
7823
7824
7825 if test -z "$lt_cv_path_MAGIC_CMD"; then
7826   if test -n "$ac_tool_prefix"; then
7827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7828 $as_echo_n "checking for file... " >&6; }
7829 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   case $MAGIC_CMD in
7833 [\\/*] |  ?:[\\/]*)
7834   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7835   ;;
7836 *)
7837   lt_save_MAGIC_CMD="$MAGIC_CMD"
7838   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7839   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7840   for ac_dir in $ac_dummy; do
7841     IFS="$lt_save_ifs"
7842     test -z "$ac_dir" && ac_dir=.
7843     if test -f $ac_dir/file; then
7844       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7845       if test -n "$file_magic_test_file"; then
7846         case $deplibs_check_method in
7847         "file_magic "*)
7848           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7849           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7850           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7851             $EGREP "$file_magic_regex" > /dev/null; then
7852             :
7853           else
7854             cat <<_LT_EOF 1>&2
7855
7856 *** Warning: the command libtool uses to detect shared libraries,
7857 *** $file_magic_cmd, produces output that libtool cannot recognize.
7858 *** The result is that libtool may fail to recognize shared libraries
7859 *** as such.  This will affect the creation of libtool libraries that
7860 *** depend on shared libraries, but programs linked with such libtool
7861 *** libraries will work regardless of this problem.  Nevertheless, you
7862 *** may want to report the problem to your system manager and/or to
7863 *** bug-libtool@gnu.org
7864
7865 _LT_EOF
7866           fi ;;
7867         esac
7868       fi
7869       break
7870     fi
7871   done
7872   IFS="$lt_save_ifs"
7873   MAGIC_CMD="$lt_save_MAGIC_CMD"
7874   ;;
7875 esac
7876 fi
7877
7878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7879 if test -n "$MAGIC_CMD"; then
7880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7881 $as_echo "$MAGIC_CMD" >&6; }
7882 else
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7885 fi
7886
7887
7888   else
7889     MAGIC_CMD=:
7890   fi
7891 fi
7892
7893   fi
7894   ;;
7895 esac
7896
7897 # Use C for the default configuration in the libtool script
7898
7899 lt_save_CC="$CC"
7900 ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906
7907 # Source file extension for C test sources.
7908 ac_ext=c
7909
7910 # Object file extension for compiled C test sources.
7911 objext=o
7912 objext=$objext
7913
7914 # Code to be used in simple compile tests
7915 lt_simple_compile_test_code="int some_variable = 0;"
7916
7917 # Code to be used in simple link tests
7918 lt_simple_link_test_code='int main(){return(0);}'
7919
7920
7921
7922
7923
7924
7925
7926 # If no C compiler was specified, use CC.
7927 LTCC=${LTCC-"$CC"}
7928
7929 # If no C compiler flags were specified, use CFLAGS.
7930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7931
7932 # Allow CC to be a program name with arguments.
7933 compiler=$CC
7934
7935 # Save the default compiler, since it gets overwritten when the other
7936 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7937 compiler_DEFAULT=$CC
7938
7939 # save warnings/boilerplate of simple test code
7940 ac_outfile=conftest.$ac_objext
7941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7943 _lt_compiler_boilerplate=`cat conftest.err`
7944 $RM conftest*
7945
7946 ac_outfile=conftest.$ac_objext
7947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7949 _lt_linker_boilerplate=`cat conftest.err`
7950 $RM -r conftest*
7951
7952
7953 ## CAVEAT EMPTOR:
7954 ## There is no encapsulation within the following macros, do not change
7955 ## the running order or otherwise move them around unless you know exactly
7956 ## what you are doing...
7957 if test -n "$compiler"; then
7958
7959 lt_prog_compiler_no_builtin_flag=
7960
7961 if test "$GCC" = yes; then
7962   case $cc_basename in
7963   nvcc*)
7964     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7965   *)
7966     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7967   esac
7968
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7970 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7971 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7972   $as_echo_n "(cached) " >&6
7973 else
7974   lt_cv_prog_compiler_rtti_exceptions=no
7975    ac_outfile=conftest.$ac_objext
7976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7977    lt_compiler_flag="-fno-rtti -fno-exceptions"
7978    # Insert the option either (1) after the last *FLAGS variable, or
7979    # (2) before a word containing "conftest.", or (3) at the end.
7980    # Note that $ac_compile itself does not contain backslashes and begins
7981    # with a dollar sign (not a hyphen), so the echo should work correctly.
7982    # The option is referenced via a variable to avoid confusing sed.
7983    lt_compile=`echo "$ac_compile" | $SED \
7984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7986    -e 's:$: $lt_compiler_flag:'`
7987    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7988    (eval "$lt_compile" 2>conftest.err)
7989    ac_status=$?
7990    cat conftest.err >&5
7991    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992    if (exit $ac_status) && test -s "$ac_outfile"; then
7993      # The compiler can only warn and ignore the option if not recognized
7994      # So say no if there are warnings other than the usual output.
7995      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7996      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7997      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7998        lt_cv_prog_compiler_rtti_exceptions=yes
7999      fi
8000    fi
8001    $RM conftest*
8002
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8005 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8006
8007 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8008     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8009 else
8010     :
8011 fi
8012
8013 fi
8014
8015
8016
8017
8018
8019
8020   lt_prog_compiler_wl=
8021 lt_prog_compiler_pic=
8022 lt_prog_compiler_static=
8023
8024
8025   if test "$GCC" = yes; then
8026     lt_prog_compiler_wl='-Wl,'
8027     lt_prog_compiler_static='-static'
8028
8029     case $host_os in
8030       aix*)
8031       # All AIX code is PIC.
8032       if test "$host_cpu" = ia64; then
8033         # AIX 5 now supports IA64 processor
8034         lt_prog_compiler_static='-Bstatic'
8035       fi
8036       ;;
8037
8038     amigaos*)
8039       case $host_cpu in
8040       powerpc)
8041             # see comment about AmigaOS4 .so support
8042             lt_prog_compiler_pic='-fPIC'
8043         ;;
8044       m68k)
8045             # FIXME: we need at least 68020 code to build shared libraries, but
8046             # adding the `-m68020' flag to GCC prevents building anything better,
8047             # like `-m68040'.
8048             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8049         ;;
8050       esac
8051       ;;
8052
8053     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8054       # PIC is the default for these OSes.
8055       ;;
8056
8057     mingw* | cygwin* | pw32* | os2* | cegcc*)
8058       # This hack is so that the source file can tell whether it is being
8059       # built for inclusion in a dll (and should export symbols for example).
8060       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8061       # (--disable-auto-import) libraries
8062       lt_prog_compiler_pic='-DDLL_EXPORT'
8063       ;;
8064
8065     darwin* | rhapsody*)
8066       # PIC is the default on this platform
8067       # Common symbols not allowed in MH_DYLIB files
8068       lt_prog_compiler_pic='-fno-common'
8069       ;;
8070
8071     haiku*)
8072       # PIC is the default for Haiku.
8073       # The "-static" flag exists, but is broken.
8074       lt_prog_compiler_static=
8075       ;;
8076
8077     hpux*)
8078       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8079       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8080       # sets the default TLS model and affects inlining.
8081       case $host_cpu in
8082       hppa*64*)
8083         # +Z the default
8084         ;;
8085       *)
8086         lt_prog_compiler_pic='-fPIC'
8087         ;;
8088       esac
8089       ;;
8090
8091     interix[3-9]*)
8092       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8093       # Instead, we relocate shared libraries at runtime.
8094       ;;
8095
8096     msdosdjgpp*)
8097       # Just because we use GCC doesn't mean we suddenly get shared libraries
8098       # on systems that don't support them.
8099       lt_prog_compiler_can_build_shared=no
8100       enable_shared=no
8101       ;;
8102
8103     *nto* | *qnx*)
8104       # QNX uses GNU C++, but need to define -shared option too, otherwise
8105       # it will coredump.
8106       lt_prog_compiler_pic='-fPIC -shared'
8107       ;;
8108
8109     sysv4*MP*)
8110       if test -d /usr/nec; then
8111         lt_prog_compiler_pic=-Kconform_pic
8112       fi
8113       ;;
8114
8115     *)
8116       lt_prog_compiler_pic='-fPIC'
8117       ;;
8118     esac
8119
8120     case $cc_basename in
8121     nvcc*) # Cuda Compiler Driver 2.2
8122       lt_prog_compiler_wl='-Xlinker '
8123       if test -n "$lt_prog_compiler_pic"; then
8124         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8125       fi
8126       ;;
8127     esac
8128   else
8129     # PORTME Check for flag to pass linker flags through the system compiler.
8130     case $host_os in
8131     aix*)
8132       lt_prog_compiler_wl='-Wl,'
8133       if test "$host_cpu" = ia64; then
8134         # AIX 5 now supports IA64 processor
8135         lt_prog_compiler_static='-Bstatic'
8136       else
8137         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8138       fi
8139       ;;
8140
8141     mingw* | cygwin* | pw32* | os2* | cegcc*)
8142       # This hack is so that the source file can tell whether it is being
8143       # built for inclusion in a dll (and should export symbols for example).
8144       lt_prog_compiler_pic='-DDLL_EXPORT'
8145       ;;
8146
8147     hpux9* | hpux10* | hpux11*)
8148       lt_prog_compiler_wl='-Wl,'
8149       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8150       # not for PA HP-UX.
8151       case $host_cpu in
8152       hppa*64*|ia64*)
8153         # +Z the default
8154         ;;
8155       *)
8156         lt_prog_compiler_pic='+Z'
8157         ;;
8158       esac
8159       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8160       lt_prog_compiler_static='${wl}-a ${wl}archive'
8161       ;;
8162
8163     irix5* | irix6* | nonstopux*)
8164       lt_prog_compiler_wl='-Wl,'
8165       # PIC (with -KPIC) is the default.
8166       lt_prog_compiler_static='-non_shared'
8167       ;;
8168
8169     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8170       case $cc_basename in
8171       # old Intel for x86_64 which still supported -KPIC.
8172       ecc*)
8173         lt_prog_compiler_wl='-Wl,'
8174         lt_prog_compiler_pic='-KPIC'
8175         lt_prog_compiler_static='-static'
8176         ;;
8177       # icc used to be incompatible with GCC.
8178       # ICC 10 doesn't accept -KPIC any more.
8179       icc* | ifort*)
8180         lt_prog_compiler_wl='-Wl,'
8181         lt_prog_compiler_pic='-fPIC'
8182         lt_prog_compiler_static='-static'
8183         ;;
8184       # Lahey Fortran 8.1.
8185       lf95*)
8186         lt_prog_compiler_wl='-Wl,'
8187         lt_prog_compiler_pic='--shared'
8188         lt_prog_compiler_static='--static'
8189         ;;
8190       nagfor*)
8191         # NAG Fortran compiler
8192         lt_prog_compiler_wl='-Wl,-Wl,,'
8193         lt_prog_compiler_pic='-PIC'
8194         lt_prog_compiler_static='-Bstatic'
8195         ;;
8196       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8197         # Portland Group compilers (*not* the Pentium gcc compiler,
8198         # which looks to be a dead project)
8199         lt_prog_compiler_wl='-Wl,'
8200         lt_prog_compiler_pic='-fpic'
8201         lt_prog_compiler_static='-Bstatic'
8202         ;;
8203       ccc*)
8204         lt_prog_compiler_wl='-Wl,'
8205         # All Alpha code is PIC.
8206         lt_prog_compiler_static='-non_shared'
8207         ;;
8208       xl* | bgxl* | bgf* | mpixl*)
8209         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8210         lt_prog_compiler_wl='-Wl,'
8211         lt_prog_compiler_pic='-qpic'
8212         lt_prog_compiler_static='-qstaticlink'
8213         ;;
8214       *)
8215         case `$CC -V 2>&1 | sed 5q` in
8216         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8217           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8218           lt_prog_compiler_pic='-KPIC'
8219           lt_prog_compiler_static='-Bstatic'
8220           lt_prog_compiler_wl=''
8221           ;;
8222         *Sun\ F* | *Sun*Fortran*)
8223           lt_prog_compiler_pic='-KPIC'
8224           lt_prog_compiler_static='-Bstatic'
8225           lt_prog_compiler_wl='-Qoption ld '
8226           ;;
8227         *Sun\ C*)
8228           # Sun C 5.9
8229           lt_prog_compiler_pic='-KPIC'
8230           lt_prog_compiler_static='-Bstatic'
8231           lt_prog_compiler_wl='-Wl,'
8232           ;;
8233         *Intel*\ [CF]*Compiler*)
8234           lt_prog_compiler_wl='-Wl,'
8235           lt_prog_compiler_pic='-fPIC'
8236           lt_prog_compiler_static='-static'
8237           ;;
8238         *Portland\ Group*)
8239           lt_prog_compiler_wl='-Wl,'
8240           lt_prog_compiler_pic='-fpic'
8241           lt_prog_compiler_static='-Bstatic'
8242           ;;
8243         esac
8244         ;;
8245       esac
8246       ;;
8247
8248     newsos6)
8249       lt_prog_compiler_pic='-KPIC'
8250       lt_prog_compiler_static='-Bstatic'
8251       ;;
8252
8253     *nto* | *qnx*)
8254       # QNX uses GNU C++, but need to define -shared option too, otherwise
8255       # it will coredump.
8256       lt_prog_compiler_pic='-fPIC -shared'
8257       ;;
8258
8259     osf3* | osf4* | osf5*)
8260       lt_prog_compiler_wl='-Wl,'
8261       # All OSF/1 code is PIC.
8262       lt_prog_compiler_static='-non_shared'
8263       ;;
8264
8265     rdos*)
8266       lt_prog_compiler_static='-non_shared'
8267       ;;
8268
8269     solaris*)
8270       lt_prog_compiler_pic='-KPIC'
8271       lt_prog_compiler_static='-Bstatic'
8272       case $cc_basename in
8273       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8274         lt_prog_compiler_wl='-Qoption ld ';;
8275       *)
8276         lt_prog_compiler_wl='-Wl,';;
8277       esac
8278       ;;
8279
8280     sunos4*)
8281       lt_prog_compiler_wl='-Qoption ld '
8282       lt_prog_compiler_pic='-PIC'
8283       lt_prog_compiler_static='-Bstatic'
8284       ;;
8285
8286     sysv4 | sysv4.2uw2* | sysv4.3*)
8287       lt_prog_compiler_wl='-Wl,'
8288       lt_prog_compiler_pic='-KPIC'
8289       lt_prog_compiler_static='-Bstatic'
8290       ;;
8291
8292     sysv4*MP*)
8293       if test -d /usr/nec ;then
8294         lt_prog_compiler_pic='-Kconform_pic'
8295         lt_prog_compiler_static='-Bstatic'
8296       fi
8297       ;;
8298
8299     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8300       lt_prog_compiler_wl='-Wl,'
8301       lt_prog_compiler_pic='-KPIC'
8302       lt_prog_compiler_static='-Bstatic'
8303       ;;
8304
8305     unicos*)
8306       lt_prog_compiler_wl='-Wl,'
8307       lt_prog_compiler_can_build_shared=no
8308       ;;
8309
8310     uts4*)
8311       lt_prog_compiler_pic='-pic'
8312       lt_prog_compiler_static='-Bstatic'
8313       ;;
8314
8315     *)
8316       lt_prog_compiler_can_build_shared=no
8317       ;;
8318     esac
8319   fi
8320
8321 case $host_os in
8322   # For platforms which do not support PIC, -DPIC is meaningless:
8323   *djgpp*)
8324     lt_prog_compiler_pic=
8325     ;;
8326   *)
8327     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8328     ;;
8329 esac
8330
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8332 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8333 if ${lt_cv_prog_compiler_pic+:} false; then :
8334   $as_echo_n "(cached) " >&6
8335 else
8336   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8339 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8340 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8341
8342 #
8343 # Check to make sure the PIC flag actually works.
8344 #
8345 if test -n "$lt_prog_compiler_pic"; then
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8347 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8348 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   lt_cv_prog_compiler_pic_works=no
8352    ac_outfile=conftest.$ac_objext
8353    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8354    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8355    # Insert the option either (1) after the last *FLAGS variable, or
8356    # (2) before a word containing "conftest.", or (3) at the end.
8357    # Note that $ac_compile itself does not contain backslashes and begins
8358    # with a dollar sign (not a hyphen), so the echo should work correctly.
8359    # The option is referenced via a variable to avoid confusing sed.
8360    lt_compile=`echo "$ac_compile" | $SED \
8361    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8363    -e 's:$: $lt_compiler_flag:'`
8364    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8365    (eval "$lt_compile" 2>conftest.err)
8366    ac_status=$?
8367    cat conftest.err >&5
8368    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369    if (exit $ac_status) && test -s "$ac_outfile"; then
8370      # The compiler can only warn and ignore the option if not recognized
8371      # So say no if there are warnings other than the usual output.
8372      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8373      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8374      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8375        lt_cv_prog_compiler_pic_works=yes
8376      fi
8377    fi
8378    $RM conftest*
8379
8380 fi
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8382 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8383
8384 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8385     case $lt_prog_compiler_pic in
8386      "" | " "*) ;;
8387      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8388      esac
8389 else
8390     lt_prog_compiler_pic=
8391      lt_prog_compiler_can_build_shared=no
8392 fi
8393
8394 fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406 #
8407 # Check to make sure the static flag actually works.
8408 #
8409 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8411 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8412 if ${lt_cv_prog_compiler_static_works+:} false; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   lt_cv_prog_compiler_static_works=no
8416    save_LDFLAGS="$LDFLAGS"
8417    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8418    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8419    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8420      # The linker can only warn and ignore the option if not recognized
8421      # So say no if there are warnings
8422      if test -s conftest.err; then
8423        # Append any errors to the config.log.
8424        cat conftest.err 1>&5
8425        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8426        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8427        if diff conftest.exp conftest.er2 >/dev/null; then
8428          lt_cv_prog_compiler_static_works=yes
8429        fi
8430      else
8431        lt_cv_prog_compiler_static_works=yes
8432      fi
8433    fi
8434    $RM -r conftest*
8435    LDFLAGS="$save_LDFLAGS"
8436
8437 fi
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8439 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8440
8441 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8442     :
8443 else
8444     lt_prog_compiler_static=
8445 fi
8446
8447
8448
8449
8450
8451
8452
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8454 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8455 if ${lt_cv_prog_compiler_c_o+:} false; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   lt_cv_prog_compiler_c_o=no
8459    $RM -r conftest 2>/dev/null
8460    mkdir conftest
8461    cd conftest
8462    mkdir out
8463    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8464
8465    lt_compiler_flag="-o out/conftest2.$ac_objext"
8466    # Insert the option either (1) after the last *FLAGS variable, or
8467    # (2) before a word containing "conftest.", or (3) at the end.
8468    # Note that $ac_compile itself does not contain backslashes and begins
8469    # with a dollar sign (not a hyphen), so the echo should work correctly.
8470    lt_compile=`echo "$ac_compile" | $SED \
8471    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8472    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473    -e 's:$: $lt_compiler_flag:'`
8474    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8475    (eval "$lt_compile" 2>out/conftest.err)
8476    ac_status=$?
8477    cat out/conftest.err >&5
8478    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8480    then
8481      # The compiler can only warn and ignore the option if not recognized
8482      # So say no if there are warnings
8483      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8484      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8485      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8486        lt_cv_prog_compiler_c_o=yes
8487      fi
8488    fi
8489    chmod u+w . 2>&5
8490    $RM conftest*
8491    # SGI C++ compiler will create directory out/ii_files/ for
8492    # template instantiation
8493    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8494    $RM out/* && rmdir out
8495    cd ..
8496    $RM -r conftest
8497    $RM conftest*
8498
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8501 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8502
8503
8504
8505
8506
8507
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8510 if ${lt_cv_prog_compiler_c_o+:} false; then :
8511   $as_echo_n "(cached) " >&6
8512 else
8513   lt_cv_prog_compiler_c_o=no
8514    $RM -r conftest 2>/dev/null
8515    mkdir conftest
8516    cd conftest
8517    mkdir out
8518    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8519
8520    lt_compiler_flag="-o out/conftest2.$ac_objext"
8521    # Insert the option either (1) after the last *FLAGS variable, or
8522    # (2) before a word containing "conftest.", or (3) at the end.
8523    # Note that $ac_compile itself does not contain backslashes and begins
8524    # with a dollar sign (not a hyphen), so the echo should work correctly.
8525    lt_compile=`echo "$ac_compile" | $SED \
8526    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8527    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8528    -e 's:$: $lt_compiler_flag:'`
8529    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8530    (eval "$lt_compile" 2>out/conftest.err)
8531    ac_status=$?
8532    cat out/conftest.err >&5
8533    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8535    then
8536      # The compiler can only warn and ignore the option if not recognized
8537      # So say no if there are warnings
8538      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8539      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8540      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8541        lt_cv_prog_compiler_c_o=yes
8542      fi
8543    fi
8544    chmod u+w . 2>&5
8545    $RM conftest*
8546    # SGI C++ compiler will create directory out/ii_files/ for
8547    # template instantiation
8548    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8549    $RM out/* && rmdir out
8550    cd ..
8551    $RM -r conftest
8552    $RM conftest*
8553
8554 fi
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8556 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8557
8558
8559
8560
8561 hard_links="nottested"
8562 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8563   # do not overwrite the value of need_locks provided by the user
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8565 $as_echo_n "checking if we can lock with hard links... " >&6; }
8566   hard_links=yes
8567   $RM conftest*
8568   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8569   touch conftest.a
8570   ln conftest.a conftest.b 2>&5 || hard_links=no
8571   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8573 $as_echo "$hard_links" >&6; }
8574   if test "$hard_links" = no; then
8575     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8576 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8577     need_locks=warn
8578   fi
8579 else
8580   need_locks=no
8581 fi
8582
8583
8584
8585
8586
8587
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8589 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8590
8591   runpath_var=
8592   allow_undefined_flag=
8593   always_export_symbols=no
8594   archive_cmds=
8595   archive_expsym_cmds=
8596   compiler_needs_object=no
8597   enable_shared_with_static_runtimes=no
8598   export_dynamic_flag_spec=
8599   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8600   hardcode_automatic=no
8601   hardcode_direct=no
8602   hardcode_direct_absolute=no
8603   hardcode_libdir_flag_spec=
8604   hardcode_libdir_separator=
8605   hardcode_minus_L=no
8606   hardcode_shlibpath_var=unsupported
8607   inherit_rpath=no
8608   link_all_deplibs=unknown
8609   module_cmds=
8610   module_expsym_cmds=
8611   old_archive_from_new_cmds=
8612   old_archive_from_expsyms_cmds=
8613   thread_safe_flag_spec=
8614   whole_archive_flag_spec=
8615   # include_expsyms should be a list of space-separated symbols to be *always*
8616   # included in the symbol list
8617   include_expsyms=
8618   # exclude_expsyms can be an extended regexp of symbols to exclude
8619   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8620   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8621   # as well as any symbol that contains `d'.
8622   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8623   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8624   # platforms (ab)use it in PIC code, but their linkers get confused if
8625   # the symbol is explicitly referenced.  Since portable code cannot
8626   # rely on this symbol name, it's probably fine to never include it in
8627   # preloaded symbol tables.
8628   # Exclude shared library initialization/finalization symbols.
8629   extract_expsyms_cmds=
8630
8631   case $host_os in
8632   cygwin* | mingw* | pw32* | cegcc*)
8633     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8634     # When not using gcc, we currently assume that we are using
8635     # Microsoft Visual C++.
8636     if test "$GCC" != yes; then
8637       with_gnu_ld=no
8638     fi
8639     ;;
8640   interix*)
8641     # we just hope/assume this is gcc and not c89 (= MSVC++)
8642     with_gnu_ld=yes
8643     ;;
8644   openbsd*)
8645     with_gnu_ld=no
8646     ;;
8647   esac
8648
8649   ld_shlibs=yes
8650
8651   # On some targets, GNU ld is compatible enough with the native linker
8652   # that we're better off using the native interface for both.
8653   lt_use_gnu_ld_interface=no
8654   if test "$with_gnu_ld" = yes; then
8655     case $host_os in
8656       aix*)
8657         # The AIX port of GNU ld has always aspired to compatibility
8658         # with the native linker.  However, as the warning in the GNU ld
8659         # block says, versions before 2.19.5* couldn't really create working
8660         # shared libraries, regardless of the interface used.
8661         case `$LD -v 2>&1` in
8662           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8663           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8664           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8665           *)
8666             lt_use_gnu_ld_interface=yes
8667             ;;
8668         esac
8669         ;;
8670       *)
8671         lt_use_gnu_ld_interface=yes
8672         ;;
8673     esac
8674   fi
8675
8676   if test "$lt_use_gnu_ld_interface" = yes; then
8677     # If archive_cmds runs LD, not CC, wlarc should be empty
8678     wlarc='${wl}'
8679
8680     # Set some defaults for GNU ld with shared library support. These
8681     # are reset later if shared libraries are not supported. Putting them
8682     # here allows them to be overridden if necessary.
8683     runpath_var=LD_RUN_PATH
8684     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685     export_dynamic_flag_spec='${wl}--export-dynamic'
8686     # ancient GNU ld didn't support --whole-archive et. al.
8687     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8688       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8689     else
8690       whole_archive_flag_spec=
8691     fi
8692     supports_anon_versioning=no
8693     case `$LD -v 2>&1` in
8694       *GNU\ gold*) supports_anon_versioning=yes ;;
8695       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8696       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8697       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8698       *\ 2.11.*) ;; # other 2.11 versions
8699       *) supports_anon_versioning=yes ;;
8700     esac
8701
8702     # See if GNU ld supports shared libraries.
8703     case $host_os in
8704     aix[3-9]*)
8705       # On AIX/PPC, the GNU linker is very broken
8706       if test "$host_cpu" != ia64; then
8707         ld_shlibs=no
8708         cat <<_LT_EOF 1>&2
8709
8710 *** Warning: the GNU linker, at least up to release 2.19, is reported
8711 *** to be unable to reliably create shared libraries on AIX.
8712 *** Therefore, libtool is disabling shared libraries support.  If you
8713 *** really care for shared libraries, you may want to install binutils
8714 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8715 *** You will then need to restart the configuration process.
8716
8717 _LT_EOF
8718       fi
8719       ;;
8720
8721     amigaos*)
8722       case $host_cpu in
8723       powerpc)
8724             # see comment about AmigaOS4 .so support
8725             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726             archive_expsym_cmds=''
8727         ;;
8728       m68k)
8729             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)'
8730             hardcode_libdir_flag_spec='-L$libdir'
8731             hardcode_minus_L=yes
8732         ;;
8733       esac
8734       ;;
8735
8736     beos*)
8737       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738         allow_undefined_flag=unsupported
8739         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8740         # support --undefined.  This deserves some investigation.  FIXME
8741         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742       else
8743         ld_shlibs=no
8744       fi
8745       ;;
8746
8747     cygwin* | mingw* | pw32* | cegcc*)
8748       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8749       # as there is no search path for DLLs.
8750       hardcode_libdir_flag_spec='-L$libdir'
8751       export_dynamic_flag_spec='${wl}--export-all-symbols'
8752       allow_undefined_flag=unsupported
8753       always_export_symbols=no
8754       enable_shared_with_static_runtimes=yes
8755       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'
8756       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8757
8758       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8759         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8760         # If the export-symbols file already is a .def file (1st line
8761         # is EXPORTS), use it as is; otherwise, prepend...
8762         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8763           cp $export_symbols $output_objdir/$soname.def;
8764         else
8765           echo EXPORTS > $output_objdir/$soname.def;
8766           cat $export_symbols >> $output_objdir/$soname.def;
8767         fi~
8768         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8769       else
8770         ld_shlibs=no
8771       fi
8772       ;;
8773
8774     haiku*)
8775       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776       link_all_deplibs=yes
8777       ;;
8778
8779     interix[3-9]*)
8780       hardcode_direct=no
8781       hardcode_shlibpath_var=no
8782       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8783       export_dynamic_flag_spec='${wl}-E'
8784       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8785       # Instead, shared libraries are loaded at an image base (0x10000000 by
8786       # default) and relocated if they conflict, which is a slow very memory
8787       # consuming and fragmenting process.  To avoid this, we pick a random,
8788       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8789       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8790       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8791       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'
8792       ;;
8793
8794     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8795       tmp_diet=no
8796       if test "$host_os" = linux-dietlibc; then
8797         case $cc_basename in
8798           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8799         esac
8800       fi
8801       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8802          && test "$tmp_diet" = no
8803       then
8804         tmp_addflag=' $pic_flag'
8805         tmp_sharedflag='-shared'
8806         case $cc_basename,$host_cpu in
8807         pgcc*)                          # Portland Group C compiler
8808           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'
8809           tmp_addflag=' $pic_flag'
8810           ;;
8811         pgf77* | pgf90* | pgf95* | pgfortran*)
8812                                         # Portland Group f77 and f90 compilers
8813           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'
8814           tmp_addflag=' $pic_flag -Mnomain' ;;
8815         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8816           tmp_addflag=' -i_dynamic' ;;
8817         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8818           tmp_addflag=' -i_dynamic -nofor_main' ;;
8819         ifc* | ifort*)                  # Intel Fortran compiler
8820           tmp_addflag=' -nofor_main' ;;
8821         lf95*)                          # Lahey Fortran 8.1
8822           whole_archive_flag_spec=
8823           tmp_sharedflag='--shared' ;;
8824         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8825           tmp_sharedflag='-qmkshrobj'
8826           tmp_addflag= ;;
8827         nvcc*)  # Cuda Compiler Driver 2.2
8828           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'
8829           compiler_needs_object=yes
8830           ;;
8831         esac
8832         case `$CC -V 2>&1 | sed 5q` in
8833         *Sun\ C*)                       # Sun C 5.9
8834           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'
8835           compiler_needs_object=yes
8836           tmp_sharedflag='-G' ;;
8837         *Sun\ F*)                       # Sun Fortran 8.3
8838           tmp_sharedflag='-G' ;;
8839         esac
8840         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841
8842         if test "x$supports_anon_versioning" = xyes; then
8843           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8844             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8845             echo "local: *; };" >> $output_objdir/$libname.ver~
8846             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8847         fi
8848
8849         case $cc_basename in
8850         xlf* | bgf* | bgxlf* | mpixlf*)
8851           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8852           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8853           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8855           if test "x$supports_anon_versioning" = xyes; then
8856             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8857               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8858               echo "local: *; };" >> $output_objdir/$libname.ver~
8859               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8860           fi
8861           ;;
8862         esac
8863       else
8864         ld_shlibs=no
8865       fi
8866       ;;
8867
8868     netbsd*)
8869       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8870         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8871         wlarc=
8872       else
8873         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8875       fi
8876       ;;
8877
8878     solaris*)
8879       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8880         ld_shlibs=no
8881         cat <<_LT_EOF 1>&2
8882
8883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8884 *** create shared libraries on Solaris systems.  Therefore, libtool
8885 *** is disabling shared libraries support.  We urge you to upgrade GNU
8886 *** binutils to release 2.9.1 or newer.  Another option is to modify
8887 *** your PATH or compiler configuration so that the native linker is
8888 *** used, and then restart.
8889
8890 _LT_EOF
8891       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8892         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8894       else
8895         ld_shlibs=no
8896       fi
8897       ;;
8898
8899     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8900       case `$LD -v 2>&1` in
8901         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8902         ld_shlibs=no
8903         cat <<_LT_EOF 1>&2
8904
8905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8906 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8907 *** is disabling shared libraries support.  We urge you to upgrade GNU
8908 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8909 *** your PATH or compiler configuration so that the native linker is
8910 *** used, and then restart.
8911
8912 _LT_EOF
8913         ;;
8914         *)
8915           # For security reasons, it is highly recommended that you always
8916           # use absolute paths for naming shared libraries, and exclude the
8917           # DT_RUNPATH tag from executables and libraries.  But doing so
8918           # requires that you compile everything twice, which is a pain.
8919           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8920             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8923           else
8924             ld_shlibs=no
8925           fi
8926         ;;
8927       esac
8928       ;;
8929
8930     sunos4*)
8931       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8932       wlarc=
8933       hardcode_direct=yes
8934       hardcode_shlibpath_var=no
8935       ;;
8936
8937     *)
8938       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8939         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8941       else
8942         ld_shlibs=no
8943       fi
8944       ;;
8945     esac
8946
8947     if test "$ld_shlibs" = no; then
8948       runpath_var=
8949       hardcode_libdir_flag_spec=
8950       export_dynamic_flag_spec=
8951       whole_archive_flag_spec=
8952     fi
8953   else
8954     # PORTME fill in a description of your system's linker (not GNU ld)
8955     case $host_os in
8956     aix3*)
8957       allow_undefined_flag=unsupported
8958       always_export_symbols=yes
8959       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'
8960       # Note: this linker hardcodes the directories in LIBPATH if there
8961       # are no directories specified by -L.
8962       hardcode_minus_L=yes
8963       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8964         # Neither direct hardcoding nor static linking is supported with a
8965         # broken collect2.
8966         hardcode_direct=unsupported
8967       fi
8968       ;;
8969
8970     aix[4-9]*)
8971       if test "$host_cpu" = ia64; then
8972         # On IA64, the linker does run time linking by default, so we don't
8973         # have to do anything special.
8974         aix_use_runtimelinking=no
8975         exp_sym_flag='-Bexport'
8976         no_entry_flag=""
8977       else
8978         # If we're using GNU nm, then we don't want the "-C" option.
8979         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8980         # Also, AIX nm treats weak defined symbols like other global
8981         # defined symbols, whereas GNU nm marks them as "W".
8982         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8983           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'
8984         else
8985           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'
8986         fi
8987         aix_use_runtimelinking=no
8988
8989         # Test if we are trying to use run time linking or normal
8990         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8991         # need to do runtime linking.
8992         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8993           for ld_flag in $LDFLAGS; do
8994           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8995             aix_use_runtimelinking=yes
8996             break
8997           fi
8998           done
8999           ;;
9000         esac
9001
9002         exp_sym_flag='-bexport'
9003         no_entry_flag='-bnoentry'
9004       fi
9005
9006       # When large executables or shared objects are built, AIX ld can
9007       # have problems creating the table of contents.  If linking a library
9008       # or program results in "error TOC overflow" add -mminimal-toc to
9009       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9010       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9011
9012       archive_cmds=''
9013       hardcode_direct=yes
9014       hardcode_direct_absolute=yes
9015       hardcode_libdir_separator=':'
9016       link_all_deplibs=yes
9017       file_list_spec='${wl}-f,'
9018
9019       if test "$GCC" = yes; then
9020         case $host_os in aix4.[012]|aix4.[012].*)
9021         # We only want to do this on AIX 4.2 and lower, the check
9022         # below for broken collect2 doesn't work under 4.3+
9023           collect2name=`${CC} -print-prog-name=collect2`
9024           if test -f "$collect2name" &&
9025            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9026           then
9027           # We have reworked collect2
9028           :
9029           else
9030           # We have old collect2
9031           hardcode_direct=unsupported
9032           # It fails to find uninstalled libraries when the uninstalled
9033           # path is not listed in the libpath.  Setting hardcode_minus_L
9034           # to unsupported forces relinking
9035           hardcode_minus_L=yes
9036           hardcode_libdir_flag_spec='-L$libdir'
9037           hardcode_libdir_separator=
9038           fi
9039           ;;
9040         esac
9041         shared_flag='-shared'
9042         if test "$aix_use_runtimelinking" = yes; then
9043           shared_flag="$shared_flag "'${wl}-G'
9044         fi
9045       else
9046         # not using gcc
9047         if test "$host_cpu" = ia64; then
9048         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9049         # chokes on -Wl,-G. The following line is correct:
9050           shared_flag='-G'
9051         else
9052           if test "$aix_use_runtimelinking" = yes; then
9053             shared_flag='${wl}-G'
9054           else
9055             shared_flag='${wl}-bM:SRE'
9056           fi
9057         fi
9058       fi
9059
9060       export_dynamic_flag_spec='${wl}-bexpall'
9061       # It seems that -bexpall does not export symbols beginning with
9062       # underscore (_), so it is better to generate a list of symbols to export.
9063       always_export_symbols=yes
9064       if test "$aix_use_runtimelinking" = yes; then
9065         # Warning - without using the other runtime loading flags (-brtl),
9066         # -berok will link without error, but may produce a broken library.
9067         allow_undefined_flag='-berok'
9068         # Determine the default libpath from the value encoded in an
9069         # empty executable.
9070         if test "${lt_cv_aix_libpath+set}" = set; then
9071   aix_libpath=$lt_cv_aix_libpath
9072 else
9073   if ${lt_cv_aix_libpath_+:} false; then :
9074   $as_echo_n "(cached) " >&6
9075 else
9076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h.  */
9078
9079 int
9080 main ()
9081 {
9082
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 if ac_fn_c_try_link "$LINENO"; then :
9088
9089   lt_aix_libpath_sed='
9090       /Import File Strings/,/^$/ {
9091           /^0/ {
9092               s/^0  *\([^ ]*\) *$/\1/
9093               p
9094           }
9095       }'
9096   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9097   # Check for a 64-bit object if we didn't find anything.
9098   if test -z "$lt_cv_aix_libpath_"; then
9099     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9100   fi
9101 fi
9102 rm -f core conftest.err conftest.$ac_objext \
9103     conftest$ac_exeext conftest.$ac_ext
9104   if test -z "$lt_cv_aix_libpath_"; then
9105     lt_cv_aix_libpath_="/usr/lib:/lib"
9106   fi
9107
9108 fi
9109
9110   aix_libpath=$lt_cv_aix_libpath_
9111 fi
9112
9113         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9114         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"
9115       else
9116         if test "$host_cpu" = ia64; then
9117           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9118           allow_undefined_flag="-z nodefs"
9119           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"
9120         else
9121          # Determine the default libpath from the value encoded in an
9122          # empty executable.
9123          if test "${lt_cv_aix_libpath+set}" = set; then
9124   aix_libpath=$lt_cv_aix_libpath
9125 else
9126   if ${lt_cv_aix_libpath_+:} false; then :
9127   $as_echo_n "(cached) " >&6
9128 else
9129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h.  */
9131
9132 int
9133 main ()
9134 {
9135
9136   ;
9137   return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"; then :
9141
9142   lt_aix_libpath_sed='
9143       /Import File Strings/,/^$/ {
9144           /^0/ {
9145               s/^0  *\([^ ]*\) *$/\1/
9146               p
9147           }
9148       }'
9149   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9150   # Check for a 64-bit object if we didn't find anything.
9151   if test -z "$lt_cv_aix_libpath_"; then
9152     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9153   fi
9154 fi
9155 rm -f core conftest.err conftest.$ac_objext \
9156     conftest$ac_exeext conftest.$ac_ext
9157   if test -z "$lt_cv_aix_libpath_"; then
9158     lt_cv_aix_libpath_="/usr/lib:/lib"
9159   fi
9160
9161 fi
9162
9163   aix_libpath=$lt_cv_aix_libpath_
9164 fi
9165
9166          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9167           # Warning - without using the other run time loading flags,
9168           # -berok will link without error, but may produce a broken library.
9169           no_undefined_flag=' ${wl}-bernotok'
9170           allow_undefined_flag=' ${wl}-berok'
9171           if test "$with_gnu_ld" = yes; then
9172             # We only use this code for GNU lds that support --whole-archive.
9173             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9174           else
9175             # Exported symbols can be pulled into shared objects from archives
9176             whole_archive_flag_spec='$convenience'
9177           fi
9178           archive_cmds_need_lc=yes
9179           # This is similar to how AIX traditionally builds its shared libraries.
9180           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'
9181         fi
9182       fi
9183       ;;
9184
9185     amigaos*)
9186       case $host_cpu in
9187       powerpc)
9188             # see comment about AmigaOS4 .so support
9189             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9190             archive_expsym_cmds=''
9191         ;;
9192       m68k)
9193             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)'
9194             hardcode_libdir_flag_spec='-L$libdir'
9195             hardcode_minus_L=yes
9196         ;;
9197       esac
9198       ;;
9199
9200     bsdi[45]*)
9201       export_dynamic_flag_spec=-rdynamic
9202       ;;
9203
9204     cygwin* | mingw* | pw32* | cegcc*)
9205       # When not using gcc, we currently assume that we are using
9206       # Microsoft Visual C++.
9207       # hardcode_libdir_flag_spec is actually meaningless, as there is
9208       # no search path for DLLs.
9209       case $cc_basename in
9210       cl*)
9211         # Native MSVC
9212         hardcode_libdir_flag_spec=' '
9213         allow_undefined_flag=unsupported
9214         always_export_symbols=yes
9215         file_list_spec='@'
9216         # Tell ltmain to make .lib files, not .a files.
9217         libext=lib
9218         # Tell ltmain to make .dll files, not .so files.
9219         shrext_cmds=".dll"
9220         # FIXME: Setting linknames here is a bad hack.
9221         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9222         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9223             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9224           else
9225             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9226           fi~
9227           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9228           linknames='
9229         # The linker will not automatically build a static lib if we build a DLL.
9230         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9231         enable_shared_with_static_runtimes=yes
9232         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9233         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9234         # Don't use ranlib
9235         old_postinstall_cmds='chmod 644 $oldlib'
9236         postlink_cmds='lt_outputfile="@OUTPUT@"~
9237           lt_tool_outputfile="@TOOL_OUTPUT@"~
9238           case $lt_outputfile in
9239             *.exe|*.EXE) ;;
9240             *)
9241               lt_outputfile="$lt_outputfile.exe"
9242               lt_tool_outputfile="$lt_tool_outputfile.exe"
9243               ;;
9244           esac~
9245           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9246             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9247             $RM "$lt_outputfile.manifest";
9248           fi'
9249         ;;
9250       *)
9251         # Assume MSVC wrapper
9252         hardcode_libdir_flag_spec=' '
9253         allow_undefined_flag=unsupported
9254         # Tell ltmain to make .lib files, not .a files.
9255         libext=lib
9256         # Tell ltmain to make .dll files, not .so files.
9257         shrext_cmds=".dll"
9258         # FIXME: Setting linknames here is a bad hack.
9259         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9260         # The linker will automatically build a .lib file if we build a DLL.
9261         old_archive_from_new_cmds='true'
9262         # FIXME: Should let the user specify the lib program.
9263         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9264         enable_shared_with_static_runtimes=yes
9265         ;;
9266       esac
9267       ;;
9268
9269     darwin* | rhapsody*)
9270
9271
9272   archive_cmds_need_lc=no
9273   hardcode_direct=no
9274   hardcode_automatic=yes
9275   hardcode_shlibpath_var=unsupported
9276   if test "$lt_cv_ld_force_load" = "yes"; then
9277     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\"`'
9278
9279   else
9280     whole_archive_flag_spec=''
9281   fi
9282   link_all_deplibs=yes
9283   allow_undefined_flag="$_lt_dar_allow_undefined"
9284   case $cc_basename in
9285      ifort*) _lt_dar_can_shared=yes ;;
9286      *) _lt_dar_can_shared=$GCC ;;
9287   esac
9288   if test "$_lt_dar_can_shared" = "yes"; then
9289     output_verbose_link_cmd=func_echo_all
9290     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9291     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9292     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}"
9293     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}"
9294
9295   else
9296   ld_shlibs=no
9297   fi
9298
9299       ;;
9300
9301     dgux*)
9302       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303       hardcode_libdir_flag_spec='-L$libdir'
9304       hardcode_shlibpath_var=no
9305       ;;
9306
9307     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9308     # support.  Future versions do this automatically, but an explicit c++rt0.o
9309     # does not break anything, and helps significantly (at the cost of a little
9310     # extra space).
9311     freebsd2.2*)
9312       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9313       hardcode_libdir_flag_spec='-R$libdir'
9314       hardcode_direct=yes
9315       hardcode_shlibpath_var=no
9316       ;;
9317
9318     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9319     freebsd2.*)
9320       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9321       hardcode_direct=yes
9322       hardcode_minus_L=yes
9323       hardcode_shlibpath_var=no
9324       ;;
9325
9326     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9327     freebsd* | dragonfly*)
9328       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9329       hardcode_libdir_flag_spec='-R$libdir'
9330       hardcode_direct=yes
9331       hardcode_shlibpath_var=no
9332       ;;
9333
9334     hpux9*)
9335       if test "$GCC" = yes; then
9336         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'
9337       else
9338         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'
9339       fi
9340       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9341       hardcode_libdir_separator=:
9342       hardcode_direct=yes
9343
9344       # hardcode_minus_L: Not really in the search PATH,
9345       # but as the default location of the library.
9346       hardcode_minus_L=yes
9347       export_dynamic_flag_spec='${wl}-E'
9348       ;;
9349
9350     hpux10*)
9351       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9352         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9353       else
9354         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9355       fi
9356       if test "$with_gnu_ld" = no; then
9357         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9358         hardcode_libdir_separator=:
9359         hardcode_direct=yes
9360         hardcode_direct_absolute=yes
9361         export_dynamic_flag_spec='${wl}-E'
9362         # hardcode_minus_L: Not really in the search PATH,
9363         # but as the default location of the library.
9364         hardcode_minus_L=yes
9365       fi
9366       ;;
9367
9368     hpux11*)
9369       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9370         case $host_cpu in
9371         hppa*64*)
9372           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9373           ;;
9374         ia64*)
9375           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9376           ;;
9377         *)
9378           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9379           ;;
9380         esac
9381       else
9382         case $host_cpu in
9383         hppa*64*)
9384           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9385           ;;
9386         ia64*)
9387           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9388           ;;
9389         *)
9390
9391           # Older versions of the 11.00 compiler do not understand -b yet
9392           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9393           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9394 $as_echo_n "checking if $CC understands -b... " >&6; }
9395 if ${lt_cv_prog_compiler__b+:} false; then :
9396   $as_echo_n "(cached) " >&6
9397 else
9398   lt_cv_prog_compiler__b=no
9399    save_LDFLAGS="$LDFLAGS"
9400    LDFLAGS="$LDFLAGS -b"
9401    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9402    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9403      # The linker can only warn and ignore the option if not recognized
9404      # So say no if there are warnings
9405      if test -s conftest.err; then
9406        # Append any errors to the config.log.
9407        cat conftest.err 1>&5
9408        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9409        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9410        if diff conftest.exp conftest.er2 >/dev/null; then
9411          lt_cv_prog_compiler__b=yes
9412        fi
9413      else
9414        lt_cv_prog_compiler__b=yes
9415      fi
9416    fi
9417    $RM -r conftest*
9418    LDFLAGS="$save_LDFLAGS"
9419
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9422 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9423
9424 if test x"$lt_cv_prog_compiler__b" = xyes; then
9425     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426 else
9427     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9428 fi
9429
9430           ;;
9431         esac
9432       fi
9433       if test "$with_gnu_ld" = no; then
9434         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435         hardcode_libdir_separator=:
9436
9437         case $host_cpu in
9438         hppa*64*|ia64*)
9439           hardcode_direct=no
9440           hardcode_shlibpath_var=no
9441           ;;
9442         *)
9443           hardcode_direct=yes
9444           hardcode_direct_absolute=yes
9445           export_dynamic_flag_spec='${wl}-E'
9446
9447           # hardcode_minus_L: Not really in the search PATH,
9448           # but as the default location of the library.
9449           hardcode_minus_L=yes
9450           ;;
9451         esac
9452       fi
9453       ;;
9454
9455     irix5* | irix6* | nonstopux*)
9456       if test "$GCC" = yes; then
9457         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'
9458         # Try to use the -exported_symbol ld option, if it does not
9459         # work, assume that -exports_file does not work either and
9460         # implicitly export all symbols.
9461         # This should be the same for all languages, so no per-tag cache variable.
9462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9463 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9464 if ${lt_cv_irix_exported_symbol+:} false; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   save_LDFLAGS="$LDFLAGS"
9468            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9469            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h.  */
9471 int foo (void) { return 0; }
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474   lt_cv_irix_exported_symbol=yes
9475 else
9476   lt_cv_irix_exported_symbol=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext \
9479     conftest$ac_exeext conftest.$ac_ext
9480            LDFLAGS="$save_LDFLAGS"
9481 fi
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9483 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9484         if test "$lt_cv_irix_exported_symbol" = yes; then
9485           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'
9486         fi
9487       else
9488         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'
9489         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'
9490       fi
9491       archive_cmds_need_lc='no'
9492       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493       hardcode_libdir_separator=:
9494       inherit_rpath=yes
9495       link_all_deplibs=yes
9496       ;;
9497
9498     netbsd*)
9499       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9500         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9501       else
9502         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9503       fi
9504       hardcode_libdir_flag_spec='-R$libdir'
9505       hardcode_direct=yes
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     newsos6)
9510       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511       hardcode_direct=yes
9512       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513       hardcode_libdir_separator=:
9514       hardcode_shlibpath_var=no
9515       ;;
9516
9517     *nto* | *qnx*)
9518       ;;
9519
9520     openbsd*)
9521       if test -f /usr/libexec/ld.so; then
9522         hardcode_direct=yes
9523         hardcode_shlibpath_var=no
9524         hardcode_direct_absolute=yes
9525         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9526           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9527           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9528           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9529           export_dynamic_flag_spec='${wl}-E'
9530         else
9531           case $host_os in
9532            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9533              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534              hardcode_libdir_flag_spec='-R$libdir'
9535              ;;
9536            *)
9537              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9538              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9539              ;;
9540           esac
9541         fi
9542       else
9543         ld_shlibs=no
9544       fi
9545       ;;
9546
9547     os2*)
9548       hardcode_libdir_flag_spec='-L$libdir'
9549       hardcode_minus_L=yes
9550       allow_undefined_flag=unsupported
9551       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'
9552       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9553       ;;
9554
9555     osf3*)
9556       if test "$GCC" = yes; then
9557         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9558         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'
9559       else
9560         allow_undefined_flag=' -expect_unresolved \*'
9561         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'
9562       fi
9563       archive_cmds_need_lc='no'
9564       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565       hardcode_libdir_separator=:
9566       ;;
9567
9568     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9569       if test "$GCC" = yes; then
9570         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9571         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'
9572         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9573       else
9574         allow_undefined_flag=' -expect_unresolved \*'
9575         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'
9576         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~
9577         $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'
9578
9579         # Both c and cxx compiler support -rpath directly
9580         hardcode_libdir_flag_spec='-rpath $libdir'
9581       fi
9582       archive_cmds_need_lc='no'
9583       hardcode_libdir_separator=:
9584       ;;
9585
9586     solaris*)
9587       no_undefined_flag=' -z defs'
9588       if test "$GCC" = yes; then
9589         wlarc='${wl}'
9590         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9591         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9592           $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'
9593       else
9594         case `$CC -V 2>&1` in
9595         *"Compilers 5.0"*)
9596           wlarc=''
9597           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9600           ;;
9601         *)
9602           wlarc='${wl}'
9603           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9604           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9606           ;;
9607         esac
9608       fi
9609       hardcode_libdir_flag_spec='-R$libdir'
9610       hardcode_shlibpath_var=no
9611       case $host_os in
9612       solaris2.[0-5] | solaris2.[0-5].*) ;;
9613       *)
9614         # The compiler driver will combine and reorder linker options,
9615         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9616         # but is careful enough not to reorder.
9617         # Supported since Solaris 2.6 (maybe 2.5.1?)
9618         if test "$GCC" = yes; then
9619           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9620         else
9621           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9622         fi
9623         ;;
9624       esac
9625       link_all_deplibs=yes
9626       ;;
9627
9628     sunos4*)
9629       if test "x$host_vendor" = xsequent; then
9630         # Use $CC to link under sequent, because it throws in some extra .o
9631         # files that make .init and .fini sections work.
9632         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9633       else
9634         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9635       fi
9636       hardcode_libdir_flag_spec='-L$libdir'
9637       hardcode_direct=yes
9638       hardcode_minus_L=yes
9639       hardcode_shlibpath_var=no
9640       ;;
9641
9642     sysv4)
9643       case $host_vendor in
9644         sni)
9645           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646           hardcode_direct=yes # is this really true???
9647         ;;
9648         siemens)
9649           ## LD is ld it makes a PLAMLIB
9650           ## CC just makes a GrossModule.
9651           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9652           reload_cmds='$CC -r -o $output$reload_objs'
9653           hardcode_direct=no
9654         ;;
9655         motorola)
9656           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9658         ;;
9659       esac
9660       runpath_var='LD_RUN_PATH'
9661       hardcode_shlibpath_var=no
9662       ;;
9663
9664     sysv4.3*)
9665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666       hardcode_shlibpath_var=no
9667       export_dynamic_flag_spec='-Bexport'
9668       ;;
9669
9670     sysv4*MP*)
9671       if test -d /usr/nec; then
9672         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673         hardcode_shlibpath_var=no
9674         runpath_var=LD_RUN_PATH
9675         hardcode_runpath_var=yes
9676         ld_shlibs=yes
9677       fi
9678       ;;
9679
9680     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9681       no_undefined_flag='${wl}-z,text'
9682       archive_cmds_need_lc=no
9683       hardcode_shlibpath_var=no
9684       runpath_var='LD_RUN_PATH'
9685
9686       if test "$GCC" = yes; then
9687         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689       else
9690         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692       fi
9693       ;;
9694
9695     sysv5* | sco3.2v5* | sco5v6*)
9696       # Note: We can NOT use -z defs as we might desire, because we do not
9697       # link with -lc, and that would cause any symbols used from libc to
9698       # always be unresolved, which means just about no library would
9699       # ever link correctly.  If we're not using GNU ld we use -z text
9700       # though, which does catch some bad symbols but isn't as heavy-handed
9701       # as -z defs.
9702       no_undefined_flag='${wl}-z,text'
9703       allow_undefined_flag='${wl}-z,nodefs'
9704       archive_cmds_need_lc=no
9705       hardcode_shlibpath_var=no
9706       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9707       hardcode_libdir_separator=':'
9708       link_all_deplibs=yes
9709       export_dynamic_flag_spec='${wl}-Bexport'
9710       runpath_var='LD_RUN_PATH'
9711
9712       if test "$GCC" = yes; then
9713         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715       else
9716         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718       fi
9719       ;;
9720
9721     uts4*)
9722       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723       hardcode_libdir_flag_spec='-L$libdir'
9724       hardcode_shlibpath_var=no
9725       ;;
9726
9727     *)
9728       ld_shlibs=no
9729       ;;
9730     esac
9731
9732     if test x$host_vendor = xsni; then
9733       case $host in
9734       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9735         export_dynamic_flag_spec='${wl}-Blargedynsym'
9736         ;;
9737       esac
9738     fi
9739   fi
9740
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9742 $as_echo "$ld_shlibs" >&6; }
9743 test "$ld_shlibs" = no && can_build_shared=no
9744
9745 with_gnu_ld=$with_gnu_ld
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761 #
9762 # Do we need to explicitly link libc?
9763 #
9764 case "x$archive_cmds_need_lc" in
9765 x|xyes)
9766   # Assume -lc should be added
9767   archive_cmds_need_lc=yes
9768
9769   if test "$enable_shared" = yes && test "$GCC" = yes; then
9770     case $archive_cmds in
9771     *'~'*)
9772       # FIXME: we may have to deal with multi-command sequences.
9773       ;;
9774     '$CC '*)
9775       # Test whether the compiler implicitly links with -lc since on some
9776       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9777       # to ld, don't add -lc before -lgcc.
9778       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9779 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9780 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   $RM conftest*
9784         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9785
9786         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9787   (eval $ac_compile) 2>&5
9788   ac_status=$?
9789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9790   test $ac_status = 0; } 2>conftest.err; then
9791           soname=conftest
9792           lib=conftest
9793           libobjs=conftest.$ac_objext
9794           deplibs=
9795           wl=$lt_prog_compiler_wl
9796           pic_flag=$lt_prog_compiler_pic
9797           compiler_flags=-v
9798           linker_flags=-v
9799           verstring=
9800           output_objdir=.
9801           libname=conftest
9802           lt_save_allow_undefined_flag=$allow_undefined_flag
9803           allow_undefined_flag=
9804           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9805   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9806   ac_status=$?
9807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808   test $ac_status = 0; }
9809           then
9810             lt_cv_archive_cmds_need_lc=no
9811           else
9812             lt_cv_archive_cmds_need_lc=yes
9813           fi
9814           allow_undefined_flag=$lt_save_allow_undefined_flag
9815         else
9816           cat conftest.err 1>&5
9817         fi
9818         $RM conftest*
9819
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9822 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9823       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9824       ;;
9825     esac
9826   fi
9827   ;;
9828 esac
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9982 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9983
9984 if test "$GCC" = yes; then
9985   case $host_os in
9986     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9987     *) lt_awk_arg="/^libraries:/" ;;
9988   esac
9989   case $host_os in
9990     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9991     *) lt_sed_strip_eq="s,=/,/,g" ;;
9992   esac
9993   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9994   case $lt_search_path_spec in
9995   *\;*)
9996     # if the path contains ";" then we assume it to be the separator
9997     # otherwise default to the standard path separator (i.e. ":") - it is
9998     # assumed that no part of a normal pathname contains ";" but that should
9999     # okay in the real world where ";" in dirpaths is itself problematic.
10000     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10001     ;;
10002   *)
10003     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10004     ;;
10005   esac
10006   # Ok, now we have the path, separated by spaces, we can step through it
10007   # and add multilib dir if necessary.
10008   lt_tmp_lt_search_path_spec=
10009   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10010   for lt_sys_path in $lt_search_path_spec; do
10011     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10012       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10013     else
10014       test -d "$lt_sys_path" && \
10015         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10016     fi
10017   done
10018   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10019 BEGIN {RS=" "; FS="/|\n";} {
10020   lt_foo="";
10021   lt_count=0;
10022   for (lt_i = NF; lt_i > 0; lt_i--) {
10023     if ($lt_i != "" && $lt_i != ".") {
10024       if ($lt_i == "..") {
10025         lt_count++;
10026       } else {
10027         if (lt_count == 0) {
10028           lt_foo="/" $lt_i lt_foo;
10029         } else {
10030           lt_count--;
10031         }
10032       }
10033     }
10034   }
10035   if (lt_foo != "") { lt_freq[lt_foo]++; }
10036   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10037 }'`
10038   # AWK program above erroneously prepends '/' to C:/dos/paths
10039   # for these hosts.
10040   case $host_os in
10041     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10042       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10043   esac
10044   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10045 else
10046   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10047 fi
10048 library_names_spec=
10049 libname_spec='lib$name'
10050 soname_spec=
10051 shrext_cmds=".so"
10052 postinstall_cmds=
10053 postuninstall_cmds=
10054 finish_cmds=
10055 finish_eval=
10056 shlibpath_var=
10057 shlibpath_overrides_runpath=unknown
10058 version_type=none
10059 dynamic_linker="$host_os ld.so"
10060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10061 need_lib_prefix=unknown
10062 hardcode_into_libs=no
10063
10064 # when you set need_version to no, make sure it does not cause -set_version
10065 # flags to be left without arguments
10066 need_version=unknown
10067
10068 case $host_os in
10069 aix3*)
10070   version_type=linux # correct to gnu/linux during the next big refactor
10071   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10072   shlibpath_var=LIBPATH
10073
10074   # AIX 3 has no versioning support, so we append a major version to the name.
10075   soname_spec='${libname}${release}${shared_ext}$major'
10076   ;;
10077
10078 aix[4-9]*)
10079   version_type=linux # correct to gnu/linux during the next big refactor
10080   need_lib_prefix=no
10081   need_version=no
10082   hardcode_into_libs=yes
10083   if test "$host_cpu" = ia64; then
10084     # AIX 5 supports IA64
10085     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10086     shlibpath_var=LD_LIBRARY_PATH
10087   else
10088     # With GCC up to 2.95.x, collect2 would create an import file
10089     # for dependence libraries.  The import file would start with
10090     # the line `#! .'.  This would cause the generated library to
10091     # depend on `.', always an invalid library.  This was fixed in
10092     # development snapshots of GCC prior to 3.0.
10093     case $host_os in
10094       aix4 | aix4.[01] | aix4.[01].*)
10095       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10096            echo ' yes '
10097            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10098         :
10099       else
10100         can_build_shared=no
10101       fi
10102       ;;
10103     esac
10104     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10105     # soname into executable. Probably we can add versioning support to
10106     # collect2, so additional links can be useful in future.
10107     if test "$aix_use_runtimelinking" = yes; then
10108       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10109       # instead of lib<name>.a to let people know that these are not
10110       # typical AIX shared libraries.
10111       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112     else
10113       # We preserve .a as extension for shared libraries through AIX4.2
10114       # and later when we are not doing run time linking.
10115       library_names_spec='${libname}${release}.a $libname.a'
10116       soname_spec='${libname}${release}${shared_ext}$major'
10117     fi
10118     shlibpath_var=LIBPATH
10119   fi
10120   ;;
10121
10122 amigaos*)
10123   case $host_cpu in
10124   powerpc)
10125     # Since July 2007 AmigaOS4 officially supports .so libraries.
10126     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128     ;;
10129   m68k)
10130     library_names_spec='$libname.ixlibrary $libname.a'
10131     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10132     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'
10133     ;;
10134   esac
10135   ;;
10136
10137 beos*)
10138   library_names_spec='${libname}${shared_ext}'
10139   dynamic_linker="$host_os ld.so"
10140   shlibpath_var=LIBRARY_PATH
10141   ;;
10142
10143 bsdi[45]*)
10144   version_type=linux # correct to gnu/linux during the next big refactor
10145   need_version=no
10146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147   soname_spec='${libname}${release}${shared_ext}$major'
10148   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10149   shlibpath_var=LD_LIBRARY_PATH
10150   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10151   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10152   # the default ld.so.conf also contains /usr/contrib/lib and
10153   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10154   # libtool to hard-code these into programs
10155   ;;
10156
10157 cygwin* | mingw* | pw32* | cegcc*)
10158   version_type=windows
10159   shrext_cmds=".dll"
10160   need_version=no
10161   need_lib_prefix=no
10162
10163   case $GCC,$cc_basename in
10164   yes,*)
10165     # gcc
10166     library_names_spec='$libname.dll.a'
10167     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10168     postinstall_cmds='base_file=`basename \${file}`~
10169       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10170       dldir=$destdir/`dirname \$dlpath`~
10171       test -d \$dldir || mkdir -p \$dldir~
10172       $install_prog $dir/$dlname \$dldir/$dlname~
10173       chmod a+x \$dldir/$dlname~
10174       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10175         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10176       fi'
10177     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10178       dlpath=$dir/\$dldll~
10179        $RM \$dlpath'
10180     shlibpath_overrides_runpath=yes
10181
10182     case $host_os in
10183     cygwin*)
10184       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10185       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10186
10187       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10188       ;;
10189     mingw* | cegcc*)
10190       # MinGW DLLs use traditional 'lib' prefix
10191       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10192       ;;
10193     pw32*)
10194       # pw32 DLLs use 'pw' prefix rather than 'lib'
10195       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10196       ;;
10197     esac
10198     dynamic_linker='Win32 ld.exe'
10199     ;;
10200
10201   *,cl*)
10202     # Native MSVC
10203     libname_spec='$name'
10204     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205     library_names_spec='${libname}.dll.lib'
10206
10207     case $build_os in
10208     mingw*)
10209       sys_lib_search_path_spec=
10210       lt_save_ifs=$IFS
10211       IFS=';'
10212       for lt_path in $LIB
10213       do
10214         IFS=$lt_save_ifs
10215         # Let DOS variable expansion print the short 8.3 style file name.
10216         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10217         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10218       done
10219       IFS=$lt_save_ifs
10220       # Convert to MSYS style.
10221       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10222       ;;
10223     cygwin*)
10224       # Convert to unix form, then to dos form, then back to unix form
10225       # but this time dos style (no spaces!) so that the unix form looks
10226       # like /cygdrive/c/PROGRA~1:/cygdr...
10227       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10228       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10229       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10230       ;;
10231     *)
10232       sys_lib_search_path_spec="$LIB"
10233       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10234         # It is most probably a Windows format PATH.
10235         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10236       else
10237         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10238       fi
10239       # FIXME: find the short name or the path components, as spaces are
10240       # common. (e.g. "Program Files" -> "PROGRA~1")
10241       ;;
10242     esac
10243
10244     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10245     postinstall_cmds='base_file=`basename \${file}`~
10246       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10247       dldir=$destdir/`dirname \$dlpath`~
10248       test -d \$dldir || mkdir -p \$dldir~
10249       $install_prog $dir/$dlname \$dldir/$dlname'
10250     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10251       dlpath=$dir/\$dldll~
10252        $RM \$dlpath'
10253     shlibpath_overrides_runpath=yes
10254     dynamic_linker='Win32 link.exe'
10255     ;;
10256
10257   *)
10258     # Assume MSVC wrapper
10259     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10260     dynamic_linker='Win32 ld.exe'
10261     ;;
10262   esac
10263   # FIXME: first we should search . and the directory the executable is in
10264   shlibpath_var=PATH
10265   ;;
10266
10267 darwin* | rhapsody*)
10268   dynamic_linker="$host_os dyld"
10269   version_type=darwin
10270   need_lib_prefix=no
10271   need_version=no
10272   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10273   soname_spec='${libname}${release}${major}$shared_ext'
10274   shlibpath_overrides_runpath=yes
10275   shlibpath_var=DYLD_LIBRARY_PATH
10276   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10277
10278   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10279   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10280   ;;
10281
10282 dgux*)
10283   version_type=linux # correct to gnu/linux during the next big refactor
10284   need_lib_prefix=no
10285   need_version=no
10286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10287   soname_spec='${libname}${release}${shared_ext}$major'
10288   shlibpath_var=LD_LIBRARY_PATH
10289   ;;
10290
10291 freebsd* | dragonfly*)
10292   # DragonFly does not have aout.  When/if they implement a new
10293   # versioning mechanism, adjust this.
10294   if test -x /usr/bin/objformat; then
10295     objformat=`/usr/bin/objformat`
10296   else
10297     case $host_os in
10298     freebsd[23].*) objformat=aout ;;
10299     *) objformat=elf ;;
10300     esac
10301   fi
10302   version_type=freebsd-$objformat
10303   case $version_type in
10304     freebsd-elf*)
10305       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10306       need_version=no
10307       need_lib_prefix=no
10308       ;;
10309     freebsd-*)
10310       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10311       need_version=yes
10312       ;;
10313   esac
10314   shlibpath_var=LD_LIBRARY_PATH
10315   case $host_os in
10316   freebsd2.*)
10317     shlibpath_overrides_runpath=yes
10318     ;;
10319   freebsd3.[01]* | freebsdelf3.[01]*)
10320     shlibpath_overrides_runpath=yes
10321     hardcode_into_libs=yes
10322     ;;
10323   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10324   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10325     shlibpath_overrides_runpath=no
10326     hardcode_into_libs=yes
10327     ;;
10328   *) # from 4.6 on, and DragonFly
10329     shlibpath_overrides_runpath=yes
10330     hardcode_into_libs=yes
10331     ;;
10332   esac
10333   ;;
10334
10335 gnu*)
10336   version_type=linux # correct to gnu/linux during the next big refactor
10337   need_lib_prefix=no
10338   need_version=no
10339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10340   soname_spec='${libname}${release}${shared_ext}$major'
10341   shlibpath_var=LD_LIBRARY_PATH
10342   shlibpath_overrides_runpath=no
10343   hardcode_into_libs=yes
10344   ;;
10345
10346 haiku*)
10347   version_type=linux # correct to gnu/linux during the next big refactor
10348   need_lib_prefix=no
10349   need_version=no
10350   dynamic_linker="$host_os runtime_loader"
10351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10352   soname_spec='${libname}${release}${shared_ext}$major'
10353   shlibpath_var=LIBRARY_PATH
10354   shlibpath_overrides_runpath=yes
10355   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10356   hardcode_into_libs=yes
10357   ;;
10358
10359 hpux9* | hpux10* | hpux11*)
10360   # Give a soname corresponding to the major version so that dld.sl refuses to
10361   # link against other versions.
10362   version_type=sunos
10363   need_lib_prefix=no
10364   need_version=no
10365   case $host_cpu in
10366   ia64*)
10367     shrext_cmds='.so'
10368     hardcode_into_libs=yes
10369     dynamic_linker="$host_os dld.so"
10370     shlibpath_var=LD_LIBRARY_PATH
10371     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373     soname_spec='${libname}${release}${shared_ext}$major'
10374     if test "X$HPUX_IA64_MODE" = X32; then
10375       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10376     else
10377       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10378     fi
10379     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10380     ;;
10381   hppa*64*)
10382     shrext_cmds='.sl'
10383     hardcode_into_libs=yes
10384     dynamic_linker="$host_os dld.sl"
10385     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10386     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388     soname_spec='${libname}${release}${shared_ext}$major'
10389     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10390     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10391     ;;
10392   *)
10393     shrext_cmds='.sl'
10394     dynamic_linker="$host_os dld.sl"
10395     shlibpath_var=SHLIB_PATH
10396     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398     soname_spec='${libname}${release}${shared_ext}$major'
10399     ;;
10400   esac
10401   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10402   postinstall_cmds='chmod 555 $lib'
10403   # or fails outright, so override atomically:
10404   install_override_mode=555
10405   ;;
10406
10407 interix[3-9]*)
10408   version_type=linux # correct to gnu/linux during the next big refactor
10409   need_lib_prefix=no
10410   need_version=no
10411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10412   soname_spec='${libname}${release}${shared_ext}$major'
10413   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10414   shlibpath_var=LD_LIBRARY_PATH
10415   shlibpath_overrides_runpath=no
10416   hardcode_into_libs=yes
10417   ;;
10418
10419 irix5* | irix6* | nonstopux*)
10420   case $host_os in
10421     nonstopux*) version_type=nonstopux ;;
10422     *)
10423         if test "$lt_cv_prog_gnu_ld" = yes; then
10424                 version_type=linux # correct to gnu/linux during the next big refactor
10425         else
10426                 version_type=irix
10427         fi ;;
10428   esac
10429   need_lib_prefix=no
10430   need_version=no
10431   soname_spec='${libname}${release}${shared_ext}$major'
10432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10433   case $host_os in
10434   irix5* | nonstopux*)
10435     libsuff= shlibsuff=
10436     ;;
10437   *)
10438     case $LD in # libtool.m4 will add one of these switches to LD
10439     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10440       libsuff= shlibsuff= libmagic=32-bit;;
10441     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10442       libsuff=32 shlibsuff=N32 libmagic=N32;;
10443     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10444       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10445     *) libsuff= shlibsuff= libmagic=never-match;;
10446     esac
10447     ;;
10448   esac
10449   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10450   shlibpath_overrides_runpath=no
10451   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10452   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10453   hardcode_into_libs=yes
10454   ;;
10455
10456 # No shared lib support for Linux oldld, aout, or coff.
10457 linux*oldld* | linux*aout* | linux*coff*)
10458   dynamic_linker=no
10459   ;;
10460
10461 # This must be glibc/ELF.
10462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10463   version_type=linux # correct to gnu/linux during the next big refactor
10464   need_lib_prefix=no
10465   need_version=no
10466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467   soname_spec='${libname}${release}${shared_ext}$major'
10468   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10469   shlibpath_var=LD_LIBRARY_PATH
10470   shlibpath_overrides_runpath=no
10471
10472   # Some binutils ld are patched to set DT_RUNPATH
10473   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10474   $as_echo_n "(cached) " >&6
10475 else
10476   lt_cv_shlibpath_overrides_runpath=no
10477     save_LDFLAGS=$LDFLAGS
10478     save_libdir=$libdir
10479     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10480          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h.  */
10483
10484 int
10485 main ()
10486 {
10487
10488   ;
10489   return 0;
10490 }
10491 _ACEOF
10492 if ac_fn_c_try_link "$LINENO"; then :
10493   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10494   lt_cv_shlibpath_overrides_runpath=yes
10495 fi
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext \
10498     conftest$ac_exeext conftest.$ac_ext
10499     LDFLAGS=$save_LDFLAGS
10500     libdir=$save_libdir
10501
10502 fi
10503
10504   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10505
10506   # This implies no fast_install, which is unacceptable.
10507   # Some rework will be needed to allow for fast_install
10508   # before this can be enabled.
10509   hardcode_into_libs=yes
10510
10511   # Append ld.so.conf contents to the search path
10512   if test -f /etc/ld.so.conf; then
10513     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' ' '`
10514     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10515   fi
10516
10517   # We used to test for /lib/ld.so.1 and disable shared libraries on
10518   # powerpc, because MkLinux only supported shared libraries with the
10519   # GNU dynamic linker.  Since this was broken with cross compilers,
10520   # most powerpc-linux boxes support dynamic linking these days and
10521   # people can always --disable-shared, the test was removed, and we
10522   # assume the GNU/Linux dynamic linker is in use.
10523   dynamic_linker='GNU/Linux ld.so'
10524   ;;
10525
10526 netbsd*)
10527   version_type=sunos
10528   need_lib_prefix=no
10529   need_version=no
10530   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10532     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10533     dynamic_linker='NetBSD (a.out) ld.so'
10534   else
10535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10536     soname_spec='${libname}${release}${shared_ext}$major'
10537     dynamic_linker='NetBSD ld.elf_so'
10538   fi
10539   shlibpath_var=LD_LIBRARY_PATH
10540   shlibpath_overrides_runpath=yes
10541   hardcode_into_libs=yes
10542   ;;
10543
10544 newsos6)
10545   version_type=linux # correct to gnu/linux during the next big refactor
10546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547   shlibpath_var=LD_LIBRARY_PATH
10548   shlibpath_overrides_runpath=yes
10549   ;;
10550
10551 *nto* | *qnx*)
10552   version_type=qnx
10553   need_lib_prefix=no
10554   need_version=no
10555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556   soname_spec='${libname}${release}${shared_ext}$major'
10557   shlibpath_var=LD_LIBRARY_PATH
10558   shlibpath_overrides_runpath=no
10559   hardcode_into_libs=yes
10560   dynamic_linker='ldqnx.so'
10561   ;;
10562
10563 openbsd*)
10564   version_type=sunos
10565   sys_lib_dlsearch_path_spec="/usr/lib"
10566   need_lib_prefix=no
10567   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10568   case $host_os in
10569     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10570     *)                          need_version=no  ;;
10571   esac
10572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574   shlibpath_var=LD_LIBRARY_PATH
10575   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10576     case $host_os in
10577       openbsd2.[89] | openbsd2.[89].*)
10578         shlibpath_overrides_runpath=no
10579         ;;
10580       *)
10581         shlibpath_overrides_runpath=yes
10582         ;;
10583       esac
10584   else
10585     shlibpath_overrides_runpath=yes
10586   fi
10587   ;;
10588
10589 os2*)
10590   libname_spec='$name'
10591   shrext_cmds=".dll"
10592   need_lib_prefix=no
10593   library_names_spec='$libname${shared_ext} $libname.a'
10594   dynamic_linker='OS/2 ld.exe'
10595   shlibpath_var=LIBPATH
10596   ;;
10597
10598 osf3* | osf4* | osf5*)
10599   version_type=osf
10600   need_lib_prefix=no
10601   need_version=no
10602   soname_spec='${libname}${release}${shared_ext}$major'
10603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604   shlibpath_var=LD_LIBRARY_PATH
10605   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10606   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10607   ;;
10608
10609 rdos*)
10610   dynamic_linker=no
10611   ;;
10612
10613 solaris*)
10614   version_type=linux # correct to gnu/linux during the next big refactor
10615   need_lib_prefix=no
10616   need_version=no
10617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618   soname_spec='${libname}${release}${shared_ext}$major'
10619   shlibpath_var=LD_LIBRARY_PATH
10620   shlibpath_overrides_runpath=yes
10621   hardcode_into_libs=yes
10622   # ldd complains unless libraries are executable
10623   postinstall_cmds='chmod +x $lib'
10624   ;;
10625
10626 sunos4*)
10627   version_type=sunos
10628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10629   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10630   shlibpath_var=LD_LIBRARY_PATH
10631   shlibpath_overrides_runpath=yes
10632   if test "$with_gnu_ld" = yes; then
10633     need_lib_prefix=no
10634   fi
10635   need_version=yes
10636   ;;
10637
10638 sysv4 | sysv4.3*)
10639   version_type=linux # correct to gnu/linux during the next big refactor
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641   soname_spec='${libname}${release}${shared_ext}$major'
10642   shlibpath_var=LD_LIBRARY_PATH
10643   case $host_vendor in
10644     sni)
10645       shlibpath_overrides_runpath=no
10646       need_lib_prefix=no
10647       runpath_var=LD_RUN_PATH
10648       ;;
10649     siemens)
10650       need_lib_prefix=no
10651       ;;
10652     motorola)
10653       need_lib_prefix=no
10654       need_version=no
10655       shlibpath_overrides_runpath=no
10656       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10657       ;;
10658   esac
10659   ;;
10660
10661 sysv4*MP*)
10662   if test -d /usr/nec ;then
10663     version_type=linux # correct to gnu/linux during the next big refactor
10664     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10665     soname_spec='$libname${shared_ext}.$major'
10666     shlibpath_var=LD_LIBRARY_PATH
10667   fi
10668   ;;
10669
10670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10671   version_type=freebsd-elf
10672   need_lib_prefix=no
10673   need_version=no
10674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10675   soname_spec='${libname}${release}${shared_ext}$major'
10676   shlibpath_var=LD_LIBRARY_PATH
10677   shlibpath_overrides_runpath=yes
10678   hardcode_into_libs=yes
10679   if test "$with_gnu_ld" = yes; then
10680     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10681   else
10682     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10683     case $host_os in
10684       sco3.2v5*)
10685         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10686         ;;
10687     esac
10688   fi
10689   sys_lib_dlsearch_path_spec='/usr/lib'
10690   ;;
10691
10692 tpf*)
10693   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10694   version_type=linux # correct to gnu/linux during the next big refactor
10695   need_lib_prefix=no
10696   need_version=no
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698   shlibpath_var=LD_LIBRARY_PATH
10699   shlibpath_overrides_runpath=no
10700   hardcode_into_libs=yes
10701   ;;
10702
10703 uts4*)
10704   version_type=linux # correct to gnu/linux during the next big refactor
10705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706   soname_spec='${libname}${release}${shared_ext}$major'
10707   shlibpath_var=LD_LIBRARY_PATH
10708   ;;
10709
10710 *)
10711   dynamic_linker=no
10712   ;;
10713 esac
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10715 $as_echo "$dynamic_linker" >&6; }
10716 test "$dynamic_linker" = no && can_build_shared=no
10717
10718 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10719 if test "$GCC" = yes; then
10720   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10721 fi
10722
10723 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10724   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10725 fi
10726 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10727   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10728 fi
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10822 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10823 hardcode_action=
10824 if test -n "$hardcode_libdir_flag_spec" ||
10825    test -n "$runpath_var" ||
10826    test "X$hardcode_automatic" = "Xyes" ; then
10827
10828   # We can hardcode non-existent directories.
10829   if test "$hardcode_direct" != no &&
10830      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10831      # have to relink, otherwise we might link with an installed library
10832      # when we should be linking with a yet-to-be-installed one
10833      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10834      test "$hardcode_minus_L" != no; then
10835     # Linking always hardcodes the temporary library directory.
10836     hardcode_action=relink
10837   else
10838     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10839     hardcode_action=immediate
10840   fi
10841 else
10842   # We cannot hardcode anything, or else we can only hardcode existing
10843   # directories.
10844   hardcode_action=unsupported
10845 fi
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10847 $as_echo "$hardcode_action" >&6; }
10848
10849 if test "$hardcode_action" = relink ||
10850    test "$inherit_rpath" = yes; then
10851   # Fast installation is not supported
10852   enable_fast_install=no
10853 elif test "$shlibpath_overrides_runpath" = yes ||
10854      test "$enable_shared" = no; then
10855   # Fast installation is not necessary
10856   enable_fast_install=needless
10857 fi
10858
10859
10860
10861
10862
10863
10864   if test "x$enable_dlopen" != xyes; then
10865   enable_dlopen=unknown
10866   enable_dlopen_self=unknown
10867   enable_dlopen_self_static=unknown
10868 else
10869   lt_cv_dlopen=no
10870   lt_cv_dlopen_libs=
10871
10872   case $host_os in
10873   beos*)
10874     lt_cv_dlopen="load_add_on"
10875     lt_cv_dlopen_libs=
10876     lt_cv_dlopen_self=yes
10877     ;;
10878
10879   mingw* | pw32* | cegcc*)
10880     lt_cv_dlopen="LoadLibrary"
10881     lt_cv_dlopen_libs=
10882     ;;
10883
10884   cygwin*)
10885     lt_cv_dlopen="dlopen"
10886     lt_cv_dlopen_libs=
10887     ;;
10888
10889   darwin*)
10890   # if libdl is installed we need to link against it
10891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10892 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10893 if ${ac_cv_lib_dl_dlopen+:} false; then :
10894   $as_echo_n "(cached) " >&6
10895 else
10896   ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-ldl  $LIBS"
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h.  */
10900
10901 /* Override any GCC internal prototype to avoid an error.
10902    Use char because int might match the return type of a GCC
10903    builtin and then its argument prototype would still apply.  */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 char dlopen ();
10908 int
10909 main ()
10910 {
10911 return dlopen ();
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"; then :
10917   ac_cv_lib_dl_dlopen=yes
10918 else
10919   ac_cv_lib_dl_dlopen=no
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext \
10922     conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10924 fi
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10926 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10927 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10928   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10929 else
10930
10931     lt_cv_dlopen="dyld"
10932     lt_cv_dlopen_libs=
10933     lt_cv_dlopen_self=yes
10934
10935 fi
10936
10937     ;;
10938
10939   *)
10940     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10941 if test "x$ac_cv_func_shl_load" = xyes; then :
10942   lt_cv_dlopen="shl_load"
10943 else
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10946 if ${ac_cv_lib_dld_shl_load+:} false; then :
10947   $as_echo_n "(cached) " >&6
10948 else
10949   ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-ldld  $LIBS"
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h.  */
10953
10954 /* Override any GCC internal prototype to avoid an error.
10955    Use char because int might match the return type of a GCC
10956    builtin and then its argument prototype would still apply.  */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char shl_load ();
10961 int
10962 main ()
10963 {
10964 return shl_load ();
10965   ;
10966   return 0;
10967 }
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"; then :
10970   ac_cv_lib_dld_shl_load=yes
10971 else
10972   ac_cv_lib_dld_shl_load=no
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext \
10975     conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10977 fi
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10979 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10980 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10981   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10982 else
10983   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10984 if test "x$ac_cv_func_dlopen" = xyes; then :
10985   lt_cv_dlopen="dlopen"
10986 else
10987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10989 if ${ac_cv_lib_dl_dlopen+:} false; then :
10990   $as_echo_n "(cached) " >&6
10991 else
10992   ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-ldl  $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h.  */
10996
10997 /* Override any GCC internal prototype to avoid an error.
10998    Use char because int might match the return type of a GCC
10999    builtin and then its argument prototype would still apply.  */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char dlopen ();
11004 int
11005 main ()
11006 {
11007 return dlopen ();
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013   ac_cv_lib_dl_dlopen=yes
11014 else
11015   ac_cv_lib_dl_dlopen=no
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext \
11018     conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11023 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11024   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11025 else
11026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11027 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11028 if ${ac_cv_lib_svld_dlopen+:} false; then :
11029   $as_echo_n "(cached) " >&6
11030 else
11031   ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-lsvld  $LIBS"
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h.  */
11035
11036 /* Override any GCC internal prototype to avoid an error.
11037    Use char because int might match the return type of a GCC
11038    builtin and then its argument prototype would still apply.  */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 char dlopen ();
11043 int
11044 main ()
11045 {
11046 return dlopen ();
11047   ;
11048   return 0;
11049 }
11050 _ACEOF
11051 if ac_fn_c_try_link "$LINENO"; then :
11052   ac_cv_lib_svld_dlopen=yes
11053 else
11054   ac_cv_lib_svld_dlopen=no
11055 fi
11056 rm -f core conftest.err conftest.$ac_objext \
11057     conftest$ac_exeext conftest.$ac_ext
11058 LIBS=$ac_check_lib_save_LIBS
11059 fi
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11061 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11062 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11063   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11064 else
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11066 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11067 if ${ac_cv_lib_dld_dld_link+:} false; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070   ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-ldld  $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h.  */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076    Use char because int might match the return type of a GCC
11077    builtin and then its argument prototype would still apply.  */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char dld_link ();
11082 int
11083 main ()
11084 {
11085 return dld_link ();
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091   ac_cv_lib_dld_dld_link=yes
11092 else
11093   ac_cv_lib_dld_dld_link=no
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext \
11096     conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11100 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11101 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11102   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11103 fi
11104
11105
11106 fi
11107
11108
11109 fi
11110
11111
11112 fi
11113
11114
11115 fi
11116
11117
11118 fi
11119
11120     ;;
11121   esac
11122
11123   if test "x$lt_cv_dlopen" != xno; then
11124     enable_dlopen=yes
11125   else
11126     enable_dlopen=no
11127   fi
11128
11129   case $lt_cv_dlopen in
11130   dlopen)
11131     save_CPPFLAGS="$CPPFLAGS"
11132     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11133
11134     save_LDFLAGS="$LDFLAGS"
11135     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11136
11137     save_LIBS="$LIBS"
11138     LIBS="$lt_cv_dlopen_libs $LIBS"
11139
11140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11141 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11142 if ${lt_cv_dlopen_self+:} false; then :
11143   $as_echo_n "(cached) " >&6
11144 else
11145           if test "$cross_compiling" = yes; then :
11146   lt_cv_dlopen_self=cross
11147 else
11148   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11149   lt_status=$lt_dlunknown
11150   cat > conftest.$ac_ext <<_LT_EOF
11151 #line $LINENO "configure"
11152 #include "confdefs.h"
11153
11154 #if HAVE_DLFCN_H
11155 #include <dlfcn.h>
11156 #endif
11157
11158 #include <stdio.h>
11159
11160 #ifdef RTLD_GLOBAL
11161 #  define LT_DLGLOBAL           RTLD_GLOBAL
11162 #else
11163 #  ifdef DL_GLOBAL
11164 #    define LT_DLGLOBAL         DL_GLOBAL
11165 #  else
11166 #    define LT_DLGLOBAL         0
11167 #  endif
11168 #endif
11169
11170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11171    find out it does not work in some platform. */
11172 #ifndef LT_DLLAZY_OR_NOW
11173 #  ifdef RTLD_LAZY
11174 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11175 #  else
11176 #    ifdef DL_LAZY
11177 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11178 #    else
11179 #      ifdef RTLD_NOW
11180 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11181 #      else
11182 #        ifdef DL_NOW
11183 #          define LT_DLLAZY_OR_NOW      DL_NOW
11184 #        else
11185 #          define LT_DLLAZY_OR_NOW      0
11186 #        endif
11187 #      endif
11188 #    endif
11189 #  endif
11190 #endif
11191
11192 /* When -fvisbility=hidden is used, assume the code has been annotated
11193    correspondingly for the symbols needed.  */
11194 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11195 int fnord () __attribute__((visibility("default")));
11196 #endif
11197
11198 int fnord () { return 42; }
11199 int main ()
11200 {
11201   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11202   int status = $lt_dlunknown;
11203
11204   if (self)
11205     {
11206       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11207       else
11208         {
11209           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11210           else puts (dlerror ());
11211         }
11212       /* dlclose (self); */
11213     }
11214   else
11215     puts (dlerror ());
11216
11217   return status;
11218 }
11219 _LT_EOF
11220   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11221   (eval $ac_link) 2>&5
11222   ac_status=$?
11223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11224   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11225     (./conftest; exit; ) >&5 2>/dev/null
11226     lt_status=$?
11227     case x$lt_status in
11228       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11229       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11230       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11231     esac
11232   else :
11233     # compilation failed
11234     lt_cv_dlopen_self=no
11235   fi
11236 fi
11237 rm -fr conftest*
11238
11239
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11242 $as_echo "$lt_cv_dlopen_self" >&6; }
11243
11244     if test "x$lt_cv_dlopen_self" = xyes; then
11245       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11246       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11247 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11248 if ${lt_cv_dlopen_self_static+:} false; then :
11249   $as_echo_n "(cached) " >&6
11250 else
11251           if test "$cross_compiling" = yes; then :
11252   lt_cv_dlopen_self_static=cross
11253 else
11254   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11255   lt_status=$lt_dlunknown
11256   cat > conftest.$ac_ext <<_LT_EOF
11257 #line $LINENO "configure"
11258 #include "confdefs.h"
11259
11260 #if HAVE_DLFCN_H
11261 #include <dlfcn.h>
11262 #endif
11263
11264 #include <stdio.h>
11265
11266 #ifdef RTLD_GLOBAL
11267 #  define LT_DLGLOBAL           RTLD_GLOBAL
11268 #else
11269 #  ifdef DL_GLOBAL
11270 #    define LT_DLGLOBAL         DL_GLOBAL
11271 #  else
11272 #    define LT_DLGLOBAL         0
11273 #  endif
11274 #endif
11275
11276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11277    find out it does not work in some platform. */
11278 #ifndef LT_DLLAZY_OR_NOW
11279 #  ifdef RTLD_LAZY
11280 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11281 #  else
11282 #    ifdef DL_LAZY
11283 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11284 #    else
11285 #      ifdef RTLD_NOW
11286 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11287 #      else
11288 #        ifdef DL_NOW
11289 #          define LT_DLLAZY_OR_NOW      DL_NOW
11290 #        else
11291 #          define LT_DLLAZY_OR_NOW      0
11292 #        endif
11293 #      endif
11294 #    endif
11295 #  endif
11296 #endif
11297
11298 /* When -fvisbility=hidden is used, assume the code has been annotated
11299    correspondingly for the symbols needed.  */
11300 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11301 int fnord () __attribute__((visibility("default")));
11302 #endif
11303
11304 int fnord () { return 42; }
11305 int main ()
11306 {
11307   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11308   int status = $lt_dlunknown;
11309
11310   if (self)
11311     {
11312       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11313       else
11314         {
11315           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11316           else puts (dlerror ());
11317         }
11318       /* dlclose (self); */
11319     }
11320   else
11321     puts (dlerror ());
11322
11323   return status;
11324 }
11325 _LT_EOF
11326   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11327   (eval $ac_link) 2>&5
11328   ac_status=$?
11329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11330   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11331     (./conftest; exit; ) >&5 2>/dev/null
11332     lt_status=$?
11333     case x$lt_status in
11334       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11335       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11336       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11337     esac
11338   else :
11339     # compilation failed
11340     lt_cv_dlopen_self_static=no
11341   fi
11342 fi
11343 rm -fr conftest*
11344
11345
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11348 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11349     fi
11350
11351     CPPFLAGS="$save_CPPFLAGS"
11352     LDFLAGS="$save_LDFLAGS"
11353     LIBS="$save_LIBS"
11354     ;;
11355   esac
11356
11357   case $lt_cv_dlopen_self in
11358   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11359   *) enable_dlopen_self=unknown ;;
11360   esac
11361
11362   case $lt_cv_dlopen_self_static in
11363   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11364   *) enable_dlopen_self_static=unknown ;;
11365   esac
11366 fi
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384 striplib=
11385 old_striplib=
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11387 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11388 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11389   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11390   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392 $as_echo "yes" >&6; }
11393 else
11394 # FIXME - insert some real tests, host_os isn't really good enough
11395   case $host_os in
11396   darwin*)
11397     if test -n "$STRIP" ; then
11398       striplib="$STRIP -x"
11399       old_striplib="$STRIP -S"
11400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11402     else
11403       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405     fi
11406     ;;
11407   *)
11408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11410     ;;
11411   esac
11412 fi
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425   # Report which library types will actually be built
11426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11427 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11429 $as_echo "$can_build_shared" >&6; }
11430
11431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11432 $as_echo_n "checking whether to build shared libraries... " >&6; }
11433   test "$can_build_shared" = "no" && enable_shared=no
11434
11435   # On AIX, shared libraries and static libraries use the same namespace, and
11436   # are all built from PIC.
11437   case $host_os in
11438   aix3*)
11439     test "$enable_shared" = yes && enable_static=no
11440     if test -n "$RANLIB"; then
11441       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11442       postinstall_cmds='$RANLIB $lib'
11443     fi
11444     ;;
11445
11446   aix[4-9]*)
11447     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11448       test "$enable_shared" = yes && enable_static=no
11449     fi
11450     ;;
11451   esac
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11453 $as_echo "$enable_shared" >&6; }
11454
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11456 $as_echo_n "checking whether to build static libraries... " >&6; }
11457   # Make sure either enable_shared or enable_static is yes.
11458   test "$enable_shared" = yes || enable_static=yes
11459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11460 $as_echo "$enable_static" >&6; }
11461
11462
11463
11464
11465 fi
11466 ac_ext=c
11467 ac_cpp='$CPP $CPPFLAGS'
11468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11471
11472 CC="$lt_save_CC"
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488         ac_config_commands="$ac_config_commands libtool"
11489
11490
11491
11492
11493 # Only expand once:
11494
11495
11496
11497
11498 STATIC=""
11499 test "X$enable_static" = Xyes && STATIC="-static"
11500
11501
11502
11503 ## ---------------------------- ##
11504 ## Libraries required by mdemo. ##
11505 ## ---------------------------- ##
11506 LIBM=
11507 case $host in
11508 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
11509   # These system don't have libm, or don't need it
11510   ;;
11511 *-ncr-sysv4.3*)
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11513 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
11514 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-lmw  $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h.  */
11521
11522 /* Override any GCC internal prototype to avoid an error.
11523    Use char because int might match the return type of a GCC
11524    builtin and then its argument prototype would still apply.  */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char _mwvalidcheckl ();
11529 int
11530 main ()
11531 {
11532 return _mwvalidcheckl ();
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538   ac_cv_lib_mw__mwvalidcheckl=yes
11539 else
11540   ac_cv_lib_mw__mwvalidcheckl=no
11541 fi
11542 rm -f core conftest.err conftest.$ac_objext \
11543     conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11545 fi
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11547 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
11548 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
11549   LIBM="-lmw"
11550 fi
11551
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11553 $as_echo_n "checking for cos in -lm... " >&6; }
11554 if ${ac_cv_lib_m_cos+:} false; then :
11555   $as_echo_n "(cached) " >&6
11556 else
11557   ac_check_lib_save_LIBS=$LIBS
11558 LIBS="-lm  $LIBS"
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h.  */
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563    Use char because int might match the return type of a GCC
11564    builtin and then its argument prototype would still apply.  */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char cos ();
11569 int
11570 main ()
11571 {
11572 return cos ();
11573   ;
11574   return 0;
11575 }
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"; then :
11578   ac_cv_lib_m_cos=yes
11579 else
11580   ac_cv_lib_m_cos=no
11581 fi
11582 rm -f core conftest.err conftest.$ac_objext \
11583     conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11587 $as_echo "$ac_cv_lib_m_cos" >&6; }
11588 if test "x$ac_cv_lib_m_cos" = xyes; then :
11589   LIBM="$LIBM -lm"
11590 fi
11591
11592   ;;
11593 *)
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11595 $as_echo_n "checking for cos in -lm... " >&6; }
11596 if ${ac_cv_lib_m_cos+:} false; then :
11597   $as_echo_n "(cached) " >&6
11598 else
11599   ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-lm  $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h.  */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605    Use char because int might match the return type of a GCC
11606    builtin and then its argument prototype would still apply.  */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char cos ();
11611 int
11612 main ()
11613 {
11614 return cos ();
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620   ac_cv_lib_m_cos=yes
11621 else
11622   ac_cv_lib_m_cos=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625     conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11629 $as_echo "$ac_cv_lib_m_cos" >&6; }
11630 if test "x$ac_cv_lib_m_cos" = xyes; then :
11631   LIBM="-lm"
11632 fi
11633
11634   ;;
11635 esac
11636
11637
11638
11639
11640 ## -------- ##
11641 ## Outputs. ##
11642 ## -------- ##
11643 ac_config_files="$ac_config_files Makefile"
11644
11645 cat >confcache <<\_ACEOF
11646 # This file is a shell script that caches the results of configure
11647 # tests run on this system so they can be shared between configure
11648 # scripts and configure runs, see configure's option --config-cache.
11649 # It is not useful on other systems.  If it contains results you don't
11650 # want to keep, you may remove or edit it.
11651 #
11652 # config.status only pays attention to the cache file if you give it
11653 # the --recheck option to rerun configure.
11654 #
11655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11657 # following values.
11658
11659 _ACEOF
11660
11661 # The following way of writing the cache mishandles newlines in values,
11662 # but we know of no workaround that is simple, portable, and efficient.
11663 # So, we kill variables containing newlines.
11664 # Ultrix sh set writes to stderr and can't be redirected directly,
11665 # and sets the high bit in the cache file unless we assign to the vars.
11666 (
11667   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11668     eval ac_val=\$$ac_var
11669     case $ac_val in #(
11670     *${as_nl}*)
11671       case $ac_var in #(
11672       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11673 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11674       esac
11675       case $ac_var in #(
11676       _ | IFS | as_nl) ;; #(
11677       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11678       *) { eval $ac_var=; unset $ac_var;} ;;
11679       esac ;;
11680     esac
11681   done
11682
11683   (set) 2>&1 |
11684     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11685     *${as_nl}ac_space=\ *)
11686       # `set' does not quote correctly, so add quotes: double-quote
11687       # substitution turns \\\\ into \\, and sed turns \\ into \.
11688       sed -n \
11689         "s/'/'\\\\''/g;
11690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11691       ;; #(
11692     *)
11693       # `set' quotes correctly as required by POSIX, so do not add quotes.
11694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11695       ;;
11696     esac |
11697     sort
11698 ) |
11699   sed '
11700      /^ac_cv_env_/b end
11701      t clear
11702      :clear
11703      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11704      t end
11705      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11706      :end' >>confcache
11707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11708   if test -w "$cache_file"; then
11709     if test "x$cache_file" != "x/dev/null"; then
11710       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11711 $as_echo "$as_me: updating cache $cache_file" >&6;}
11712       if test ! -f "$cache_file" || test -h "$cache_file"; then
11713         cat confcache >"$cache_file"
11714       else
11715         case $cache_file in #(
11716         */* | ?:*)
11717           mv -f confcache "$cache_file"$$ &&
11718           mv -f "$cache_file"$$ "$cache_file" ;; #(
11719         *)
11720           mv -f confcache "$cache_file" ;;
11721         esac
11722       fi
11723     fi
11724   else
11725     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11726 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11727   fi
11728 fi
11729 rm -f confcache
11730
11731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11732 # Let make expand exec_prefix.
11733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11734
11735 # Transform confdefs.h into DEFS.
11736 # Protect against shell expansion while executing Makefile rules.
11737 # Protect against Makefile macro expansion.
11738 #
11739 # If the first sed substitution is executed (which looks for macros that
11740 # take arguments), then branch to the quote section.  Otherwise,
11741 # look for a macro that doesn't take arguments.
11742 ac_script='
11743 :mline
11744 /\\$/{
11745  N
11746  s,\\\n,,
11747  b mline
11748 }
11749 t clear
11750 :clear
11751 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11752 t quote
11753 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11754 t quote
11755 b any
11756 :quote
11757 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11758 s/\[/\\&/g
11759 s/\]/\\&/g
11760 s/\$/$$/g
11761 H
11762 :any
11763 ${
11764         g
11765         s/^\n//
11766         s/\n/ /g
11767         p
11768 }
11769 '
11770 DEFS=`sed -n "$ac_script" confdefs.h`
11771
11772
11773 ac_libobjs=
11774 ac_ltlibobjs=
11775 U=
11776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11777   # 1. Remove the extension, and $U if already installed.
11778   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11779   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11780   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11781   #    will be set to the directory where LIBOBJS objects are built.
11782   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11783   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11784 done
11785 LIBOBJS=$ac_libobjs
11786
11787 LTLIBOBJS=$ac_ltlibobjs
11788
11789
11790  if test -n "$EXEEXT"; then
11791   am__EXEEXT_TRUE=
11792   am__EXEEXT_FALSE='#'
11793 else
11794   am__EXEEXT_TRUE='#'
11795   am__EXEEXT_FALSE=
11796 fi
11797
11798 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11799   as_fn_error $? "conditional \"AMDEP\" was never defined.
11800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11801 fi
11802 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11803   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11805 fi
11806
11807 : "${CONFIG_STATUS=./config.status}"
11808 ac_write_fail=0
11809 ac_clean_files_save=$ac_clean_files
11810 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11812 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11813 as_write_fail=0
11814 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11815 #! $SHELL
11816 # Generated by $as_me.
11817 # Run this file to recreate the current configuration.
11818 # Compiler output produced by configure, useful for debugging
11819 # configure, is in config.log if it exists.
11820
11821 debug=false
11822 ac_cs_recheck=false
11823 ac_cs_silent=false
11824
11825 SHELL=\${CONFIG_SHELL-$SHELL}
11826 export SHELL
11827 _ASEOF
11828 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11829 ## -------------------- ##
11830 ## M4sh Initialization. ##
11831 ## -------------------- ##
11832
11833 # Be more Bourne compatible
11834 DUALCASE=1; export DUALCASE # for MKS sh
11835 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11836   emulate sh
11837   NULLCMD=:
11838   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11839   # is contrary to our usage.  Disable this feature.
11840   alias -g '${1+"$@"}'='"$@"'
11841   setopt NO_GLOB_SUBST
11842 else
11843   case `(set -o) 2>/dev/null` in #(
11844   *posix*) :
11845     set -o posix ;; #(
11846   *) :
11847      ;;
11848 esac
11849 fi
11850
11851
11852 as_nl='
11853 '
11854 export as_nl
11855 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11856 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11857 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11858 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11859 # Prefer a ksh shell builtin over an external printf program on Solaris,
11860 # but without wasting forks for bash or zsh.
11861 if test -z "$BASH_VERSION$ZSH_VERSION" \
11862     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11863   as_echo='print -r --'
11864   as_echo_n='print -rn --'
11865 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11866   as_echo='printf %s\n'
11867   as_echo_n='printf %s'
11868 else
11869   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11870     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11871     as_echo_n='/usr/ucb/echo -n'
11872   else
11873     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11874     as_echo_n_body='eval
11875       arg=$1;
11876       case $arg in #(
11877       *"$as_nl"*)
11878         expr "X$arg" : "X\\(.*\\)$as_nl";
11879         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11880       esac;
11881       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11882     '
11883     export as_echo_n_body
11884     as_echo_n='sh -c $as_echo_n_body as_echo'
11885   fi
11886   export as_echo_body
11887   as_echo='sh -c $as_echo_body as_echo'
11888 fi
11889
11890 # The user is always right.
11891 if test "${PATH_SEPARATOR+set}" != set; then
11892   PATH_SEPARATOR=:
11893   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11894     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11895       PATH_SEPARATOR=';'
11896   }
11897 fi
11898
11899
11900 # IFS
11901 # We need space, tab and new line, in precisely that order.  Quoting is
11902 # there to prevent editors from complaining about space-tab.
11903 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11904 # splitting by setting IFS to empty value.)
11905 IFS=" ""        $as_nl"
11906
11907 # Find who we are.  Look in the path if we contain no directory separator.
11908 as_myself=
11909 case $0 in #((
11910   *[\\/]* ) as_myself=$0 ;;
11911   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11913 do
11914   IFS=$as_save_IFS
11915   test -z "$as_dir" && as_dir=.
11916     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11917   done
11918 IFS=$as_save_IFS
11919
11920      ;;
11921 esac
11922 # We did not find ourselves, most probably we were run as `sh COMMAND'
11923 # in which case we are not to be found in the path.
11924 if test "x$as_myself" = x; then
11925   as_myself=$0
11926 fi
11927 if test ! -f "$as_myself"; then
11928   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11929   exit 1
11930 fi
11931
11932 # Unset variables that we do not need and which cause bugs (e.g. in
11933 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11934 # suppresses any "Segmentation fault" message there.  '((' could
11935 # trigger a bug in pdksh 5.2.14.
11936 for as_var in BASH_ENV ENV MAIL MAILPATH
11937 do eval test x\${$as_var+set} = xset \
11938   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11939 done
11940 PS1='$ '
11941 PS2='> '
11942 PS4='+ '
11943
11944 # NLS nuisances.
11945 LC_ALL=C
11946 export LC_ALL
11947 LANGUAGE=C
11948 export LANGUAGE
11949
11950 # CDPATH.
11951 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11952
11953
11954 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11955 # ----------------------------------------
11956 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11957 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11958 # script with STATUS, using 1 if that was 0.
11959 as_fn_error ()
11960 {
11961   as_status=$1; test $as_status -eq 0 && as_status=1
11962   if test "$4"; then
11963     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11964     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11965   fi
11966   $as_echo "$as_me: error: $2" >&2
11967   as_fn_exit $as_status
11968 } # as_fn_error
11969
11970
11971 # as_fn_set_status STATUS
11972 # -----------------------
11973 # Set $? to STATUS, without forking.
11974 as_fn_set_status ()
11975 {
11976   return $1
11977 } # as_fn_set_status
11978
11979 # as_fn_exit STATUS
11980 # -----------------
11981 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11982 as_fn_exit ()
11983 {
11984   set +e
11985   as_fn_set_status $1
11986   exit $1
11987 } # as_fn_exit
11988
11989 # as_fn_unset VAR
11990 # ---------------
11991 # Portably unset VAR.
11992 as_fn_unset ()
11993 {
11994   { eval $1=; unset $1;}
11995 }
11996 as_unset=as_fn_unset
11997 # as_fn_append VAR VALUE
11998 # ----------------------
11999 # Append the text in VALUE to the end of the definition contained in VAR. Take
12000 # advantage of any shell optimizations that allow amortized linear growth over
12001 # repeated appends, instead of the typical quadratic growth present in naive
12002 # implementations.
12003 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12004   eval 'as_fn_append ()
12005   {
12006     eval $1+=\$2
12007   }'
12008 else
12009   as_fn_append ()
12010   {
12011     eval $1=\$$1\$2
12012   }
12013 fi # as_fn_append
12014
12015 # as_fn_arith ARG...
12016 # ------------------
12017 # Perform arithmetic evaluation on the ARGs, and store the result in the
12018 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12019 # must be portable across $(()) and expr.
12020 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12021   eval 'as_fn_arith ()
12022   {
12023     as_val=$(( $* ))
12024   }'
12025 else
12026   as_fn_arith ()
12027   {
12028     as_val=`expr "$@" || test $? -eq 1`
12029   }
12030 fi # as_fn_arith
12031
12032
12033 if expr a : '\(a\)' >/dev/null 2>&1 &&
12034    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12035   as_expr=expr
12036 else
12037   as_expr=false
12038 fi
12039
12040 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12041   as_basename=basename
12042 else
12043   as_basename=false
12044 fi
12045
12046 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12047   as_dirname=dirname
12048 else
12049   as_dirname=false
12050 fi
12051
12052 as_me=`$as_basename -- "$0" ||
12053 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12054          X"$0" : 'X\(//\)$' \| \
12055          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12056 $as_echo X/"$0" |
12057     sed '/^.*\/\([^/][^/]*\)\/*$/{
12058             s//\1/
12059             q
12060           }
12061           /^X\/\(\/\/\)$/{
12062             s//\1/
12063             q
12064           }
12065           /^X\/\(\/\).*/{
12066             s//\1/
12067             q
12068           }
12069           s/.*/./; q'`
12070
12071 # Avoid depending upon Character Ranges.
12072 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12073 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12074 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12075 as_cr_digits='0123456789'
12076 as_cr_alnum=$as_cr_Letters$as_cr_digits
12077
12078 ECHO_C= ECHO_N= ECHO_T=
12079 case `echo -n x` in #(((((
12080 -n*)
12081   case `echo 'xy\c'` in
12082   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12083   xy)  ECHO_C='\c';;
12084   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12085        ECHO_T=' ';;
12086   esac;;
12087 *)
12088   ECHO_N='-n';;
12089 esac
12090
12091 rm -f conf$$ conf$$.exe conf$$.file
12092 if test -d conf$$.dir; then
12093   rm -f conf$$.dir/conf$$.file
12094 else
12095   rm -f conf$$.dir
12096   mkdir conf$$.dir 2>/dev/null
12097 fi
12098 if (echo >conf$$.file) 2>/dev/null; then
12099   if ln -s conf$$.file conf$$ 2>/dev/null; then
12100     as_ln_s='ln -s'
12101     # ... but there are two gotchas:
12102     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12103     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12104     # In both cases, we have to default to `cp -p'.
12105     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12106       as_ln_s='cp -p'
12107   elif ln conf$$.file conf$$ 2>/dev/null; then
12108     as_ln_s=ln
12109   else
12110     as_ln_s='cp -p'
12111   fi
12112 else
12113   as_ln_s='cp -p'
12114 fi
12115 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12116 rmdir conf$$.dir 2>/dev/null
12117
12118
12119 # as_fn_mkdir_p
12120 # -------------
12121 # Create "$as_dir" as a directory, including parents if necessary.
12122 as_fn_mkdir_p ()
12123 {
12124
12125   case $as_dir in #(
12126   -*) as_dir=./$as_dir;;
12127   esac
12128   test -d "$as_dir" || eval $as_mkdir_p || {
12129     as_dirs=
12130     while :; do
12131       case $as_dir in #(
12132       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12133       *) as_qdir=$as_dir;;
12134       esac
12135       as_dirs="'$as_qdir' $as_dirs"
12136       as_dir=`$as_dirname -- "$as_dir" ||
12137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12138          X"$as_dir" : 'X\(//\)[^/]' \| \
12139          X"$as_dir" : 'X\(//\)$' \| \
12140          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12141 $as_echo X"$as_dir" |
12142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12143             s//\1/
12144             q
12145           }
12146           /^X\(\/\/\)[^/].*/{
12147             s//\1/
12148             q
12149           }
12150           /^X\(\/\/\)$/{
12151             s//\1/
12152             q
12153           }
12154           /^X\(\/\).*/{
12155             s//\1/
12156             q
12157           }
12158           s/.*/./; q'`
12159       test -d "$as_dir" && break
12160     done
12161     test -z "$as_dirs" || eval "mkdir $as_dirs"
12162   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12163
12164
12165 } # as_fn_mkdir_p
12166 if mkdir -p . 2>/dev/null; then
12167   as_mkdir_p='mkdir -p "$as_dir"'
12168 else
12169   test -d ./-p && rmdir ./-p
12170   as_mkdir_p=false
12171 fi
12172
12173 if test -x / >/dev/null 2>&1; then
12174   as_test_x='test -x'
12175 else
12176   if ls -dL / >/dev/null 2>&1; then
12177     as_ls_L_option=L
12178   else
12179     as_ls_L_option=
12180   fi
12181   as_test_x='
12182     eval sh -c '\''
12183       if test -d "$1"; then
12184         test -d "$1/.";
12185       else
12186         case $1 in #(
12187         -*)set "./$1";;
12188         esac;
12189         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12190         ???[sx]*):;;*)false;;esac;fi
12191     '\'' sh
12192   '
12193 fi
12194 as_executable_p=$as_test_x
12195
12196 # Sed expression to map a string onto a valid CPP name.
12197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12198
12199 # Sed expression to map a string onto a valid variable name.
12200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12201
12202
12203 exec 6>&1
12204 ## ----------------------------------- ##
12205 ## Main body of $CONFIG_STATUS script. ##
12206 ## ----------------------------------- ##
12207 _ASEOF
12208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12209
12210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12211 # Save the log message, to keep $0 and so on meaningful, and to
12212 # report actual input values of CONFIG_FILES etc. instead of their
12213 # values after options handling.
12214 ac_log="
12215 This file was extended by mdemo $as_me 1.0, which was
12216 generated by GNU Autoconf 2.68.  Invocation command line was
12217
12218   CONFIG_FILES    = $CONFIG_FILES
12219   CONFIG_HEADERS  = $CONFIG_HEADERS
12220   CONFIG_LINKS    = $CONFIG_LINKS
12221   CONFIG_COMMANDS = $CONFIG_COMMANDS
12222   $ $0 $@
12223
12224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12225 "
12226
12227 _ACEOF
12228
12229 case $ac_config_files in *"
12230 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12231 esac
12232
12233
12234
12235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12236 # Files that config.status was made for.
12237 config_files="$ac_config_files"
12238 config_commands="$ac_config_commands"
12239
12240 _ACEOF
12241
12242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12243 ac_cs_usage="\
12244 \`$as_me' instantiates files and other configuration actions
12245 from templates according to the current configuration.  Unless the files
12246 and actions are specified as TAGs, all are instantiated by default.
12247
12248 Usage: $0 [OPTION]... [TAG]...
12249
12250   -h, --help       print this help, then exit
12251   -V, --version    print version number and configuration settings, then exit
12252       --config     print configuration, then exit
12253   -q, --quiet, --silent
12254                    do not print progress messages
12255   -d, --debug      don't remove temporary files
12256       --recheck    update $as_me by reconfiguring in the same conditions
12257       --file=FILE[:TEMPLATE]
12258                    instantiate the configuration file FILE
12259
12260 Configuration files:
12261 $config_files
12262
12263 Configuration commands:
12264 $config_commands
12265
12266 Report bugs to <bug-libtool@gnu.org>."
12267
12268 _ACEOF
12269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12270 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12271 ac_cs_version="\\
12272 mdemo config.status 1.0
12273 configured by $0, generated by GNU Autoconf 2.68,
12274   with options \\"\$ac_cs_config\\"
12275
12276 Copyright (C) 2010 Free Software Foundation, Inc.
12277 This config.status script is free software; the Free Software Foundation
12278 gives unlimited permission to copy, distribute and modify it."
12279
12280 ac_pwd='$ac_pwd'
12281 srcdir='$srcdir'
12282 INSTALL='$INSTALL'
12283 MKDIR_P='$MKDIR_P'
12284 AWK='$AWK'
12285 test -n "\$AWK" || AWK=awk
12286 _ACEOF
12287
12288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12289 # The default lists apply if the user does not specify any file.
12290 ac_need_defaults=:
12291 while test $# != 0
12292 do
12293   case $1 in
12294   --*=?*)
12295     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12296     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12297     ac_shift=:
12298     ;;
12299   --*=)
12300     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12301     ac_optarg=
12302     ac_shift=:
12303     ;;
12304   *)
12305     ac_option=$1
12306     ac_optarg=$2
12307     ac_shift=shift
12308     ;;
12309   esac
12310
12311   case $ac_option in
12312   # Handling of the options.
12313   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12314     ac_cs_recheck=: ;;
12315   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12316     $as_echo "$ac_cs_version"; exit ;;
12317   --config | --confi | --conf | --con | --co | --c )
12318     $as_echo "$ac_cs_config"; exit ;;
12319   --debug | --debu | --deb | --de | --d | -d )
12320     debug=: ;;
12321   --file | --fil | --fi | --f )
12322     $ac_shift
12323     case $ac_optarg in
12324     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12325     '') as_fn_error $? "missing file argument" ;;
12326     esac
12327     as_fn_append CONFIG_FILES " '$ac_optarg'"
12328     ac_need_defaults=false;;
12329   --he | --h |  --help | --hel | -h )
12330     $as_echo "$ac_cs_usage"; exit ;;
12331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12332   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12333     ac_cs_silent=: ;;
12334
12335   # This is an error.
12336   -*) as_fn_error $? "unrecognized option: \`$1'
12337 Try \`$0 --help' for more information." ;;
12338
12339   *) as_fn_append ac_config_targets " $1"
12340      ac_need_defaults=false ;;
12341
12342   esac
12343   shift
12344 done
12345
12346 ac_configure_extra_args=
12347
12348 if $ac_cs_silent; then
12349   exec 6>/dev/null
12350   ac_configure_extra_args="$ac_configure_extra_args --silent"
12351 fi
12352
12353 _ACEOF
12354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12355 if \$ac_cs_recheck; then
12356   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12357   shift
12358   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12359   CONFIG_SHELL='$SHELL'
12360   export CONFIG_SHELL
12361   exec "\$@"
12362 fi
12363
12364 _ACEOF
12365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12366 exec 5>>config.log
12367 {
12368   echo
12369   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12370 ## Running $as_me. ##
12371 _ASBOX
12372   $as_echo "$ac_log"
12373 } >&5
12374
12375 _ACEOF
12376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12377 #
12378 # INIT-COMMANDS
12379 #
12380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12381
12382
12383 # The HP-UX ksh and POSIX shell print the target directory to stdout
12384 # if CDPATH is set.
12385 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12386
12387 sed_quote_subst='$sed_quote_subst'
12388 double_quote_subst='$double_quote_subst'
12389 delay_variable_subst='$delay_variable_subst'
12390 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12391 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12392 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12393 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12394 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12395 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12396 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12397 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12398 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12399 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12400 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12401 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12402 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12403 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12404 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12405 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12406 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12407 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12408 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12409 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12410 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12411 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12412 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12413 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12414 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12415 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12416 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12417 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12418 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12419 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12420 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12421 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12422 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12423 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12424 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12425 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12426 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12427 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12428 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12429 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12430 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12431 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12432 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12433 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12434 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12435 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12436 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12437 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12438 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12439 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12440 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12441 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12442 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12443 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12444 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12445 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12446 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12447 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"`'
12448 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12449 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12450 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12451 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12452 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12453 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12454 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12455 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12456 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12457 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12458 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12459 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12460 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12461 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12462 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12463 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12464 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12465 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12466 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12467 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12468 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12469 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12470 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12471 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12472 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12473 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12474 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12475 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12476 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12477 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12478 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12479 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12480 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12481 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12482 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12483 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12484 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12485 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12486 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12487 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12488 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12489 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12490 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12491 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12492 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12493 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12494 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12495 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12496 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12497 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12498 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12499 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12500 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12501 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12502 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12503 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12504 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12505 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12506 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12507 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12508 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12509 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12510 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12511 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12512 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12513 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12514 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12515 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12516 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12517 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12518 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12519 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12520 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12521
12522 LTCC='$LTCC'
12523 LTCFLAGS='$LTCFLAGS'
12524 compiler='$compiler_DEFAULT'
12525
12526 # A function that is used when there is no print builtin or printf.
12527 func_fallback_echo ()
12528 {
12529   eval 'cat <<_LTECHO_EOF
12530 \$1
12531 _LTECHO_EOF'
12532 }
12533
12534 # Quote evaled strings.
12535 for var in AS \
12536 DLLTOOL \
12537 OBJDUMP \
12538 SHELL \
12539 ECHO \
12540 PATH_SEPARATOR \
12541 SED \
12542 GREP \
12543 EGREP \
12544 FGREP \
12545 LD \
12546 NM \
12547 LN_S \
12548 lt_SP2NL \
12549 lt_NL2SP \
12550 reload_flag \
12551 deplibs_check_method \
12552 file_magic_cmd \
12553 file_magic_glob \
12554 want_nocaseglob \
12555 sharedlib_from_linklib_cmd \
12556 AR \
12557 AR_FLAGS \
12558 archiver_list_spec \
12559 STRIP \
12560 RANLIB \
12561 CC \
12562 CFLAGS \
12563 compiler \
12564 lt_cv_sys_global_symbol_pipe \
12565 lt_cv_sys_global_symbol_to_cdecl \
12566 lt_cv_sys_global_symbol_to_c_name_address \
12567 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12568 nm_file_list_spec \
12569 lt_prog_compiler_no_builtin_flag \
12570 lt_prog_compiler_pic \
12571 lt_prog_compiler_wl \
12572 lt_prog_compiler_static \
12573 lt_cv_prog_compiler_c_o \
12574 need_locks \
12575 MANIFEST_TOOL \
12576 DSYMUTIL \
12577 NMEDIT \
12578 LIPO \
12579 OTOOL \
12580 OTOOL64 \
12581 shrext_cmds \
12582 export_dynamic_flag_spec \
12583 whole_archive_flag_spec \
12584 compiler_needs_object \
12585 with_gnu_ld \
12586 allow_undefined_flag \
12587 no_undefined_flag \
12588 hardcode_libdir_flag_spec \
12589 hardcode_libdir_separator \
12590 exclude_expsyms \
12591 include_expsyms \
12592 file_list_spec \
12593 variables_saved_for_relink \
12594 libname_spec \
12595 library_names_spec \
12596 soname_spec \
12597 install_override_mode \
12598 finish_eval \
12599 old_striplib \
12600 striplib; do
12601     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12602     *[\\\\\\\`\\"\\\$]*)
12603       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12604       ;;
12605     *)
12606       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12607       ;;
12608     esac
12609 done
12610
12611 # Double-quote double-evaled strings.
12612 for var in reload_cmds \
12613 old_postinstall_cmds \
12614 old_postuninstall_cmds \
12615 old_archive_cmds \
12616 extract_expsyms_cmds \
12617 old_archive_from_new_cmds \
12618 old_archive_from_expsyms_cmds \
12619 archive_cmds \
12620 archive_expsym_cmds \
12621 module_cmds \
12622 module_expsym_cmds \
12623 export_symbols_cmds \
12624 prelink_cmds \
12625 postlink_cmds \
12626 postinstall_cmds \
12627 postuninstall_cmds \
12628 finish_cmds \
12629 sys_lib_search_path_spec \
12630 sys_lib_dlsearch_path_spec; do
12631     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12632     *[\\\\\\\`\\"\\\$]*)
12633       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12634       ;;
12635     *)
12636       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12637       ;;
12638     esac
12639 done
12640
12641 ac_aux_dir='$ac_aux_dir'
12642 xsi_shell='$xsi_shell'
12643 lt_shell_append='$lt_shell_append'
12644
12645 # See if we are running on zsh, and set the options which allow our
12646 # commands through without removal of \ escapes INIT.
12647 if test -n "\${ZSH_VERSION+set}" ; then
12648    setopt NO_GLOB_SUBST
12649 fi
12650
12651
12652     PACKAGE='$PACKAGE'
12653     VERSION='$VERSION'
12654     TIMESTAMP='$TIMESTAMP'
12655     RM='$RM'
12656     ofile='$ofile'
12657
12658
12659
12660
12661 _ACEOF
12662
12663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12664
12665 # Handling of arguments.
12666 for ac_config_target in $ac_config_targets
12667 do
12668   case $ac_config_target in
12669     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12670     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12671     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12672
12673   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12674   esac
12675 done
12676
12677
12678 # If the user did not use the arguments to specify the items to instantiate,
12679 # then the envvar interface is used.  Set only those that are not.
12680 # We use the long form for the default assignment because of an extremely
12681 # bizarre bug on SunOS 4.1.3.
12682 if $ac_need_defaults; then
12683   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12684   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12685 fi
12686
12687 # Have a temporary directory for convenience.  Make it in the build tree
12688 # simply because there is no reason against having it here, and in addition,
12689 # creating and moving files from /tmp can sometimes cause problems.
12690 # Hook for its removal unless debugging.
12691 # Note that there is a small window in which the directory will not be cleaned:
12692 # after its creation but before its name has been assigned to `$tmp'.
12693 $debug ||
12694 {
12695   tmp= ac_tmp=
12696   trap 'exit_status=$?
12697   : "${ac_tmp:=$tmp}"
12698   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12699 ' 0
12700   trap 'as_fn_exit 1' 1 2 13 15
12701 }
12702 # Create a (secure) tmp directory for tmp files.
12703
12704 {
12705   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12706   test -d "$tmp"
12707 }  ||
12708 {
12709   tmp=./conf$$-$RANDOM
12710   (umask 077 && mkdir "$tmp")
12711 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12712 ac_tmp=$tmp
12713
12714 # Set up the scripts for CONFIG_FILES section.
12715 # No need to generate them if there are no CONFIG_FILES.
12716 # This happens for instance with `./config.status config.h'.
12717 if test -n "$CONFIG_FILES"; then
12718
12719
12720 ac_cr=`echo X | tr X '\015'`
12721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12722 # But we know of no other shell where ac_cr would be empty at this
12723 # point, so we can use a bashism as a fallback.
12724 if test "x$ac_cr" = x; then
12725   eval ac_cr=\$\'\\r\'
12726 fi
12727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12729   ac_cs_awk_cr='\\r'
12730 else
12731   ac_cs_awk_cr=$ac_cr
12732 fi
12733
12734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12735 _ACEOF
12736
12737
12738 {
12739   echo "cat >conf$$subs.awk <<_ACEOF" &&
12740   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12741   echo "_ACEOF"
12742 } >conf$$subs.sh ||
12743   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12745 ac_delim='%!_!# '
12746 for ac_last_try in false false false false false :; do
12747   . ./conf$$subs.sh ||
12748     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12749
12750   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12751   if test $ac_delim_n = $ac_delim_num; then
12752     break
12753   elif $ac_last_try; then
12754     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12755   else
12756     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12757   fi
12758 done
12759 rm -f conf$$subs.sh
12760
12761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12762 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12763 _ACEOF
12764 sed -n '
12765 h
12766 s/^/S["/; s/!.*/"]=/
12767 p
12768 g
12769 s/^[^!]*!//
12770 :repl
12771 t repl
12772 s/'"$ac_delim"'$//
12773 t delim
12774 :nl
12775 h
12776 s/\(.\{148\}\)..*/\1/
12777 t more1
12778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12779 p
12780 n
12781 b repl
12782 :more1
12783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12784 p
12785 g
12786 s/.\{148\}//
12787 t nl
12788 :delim
12789 h
12790 s/\(.\{148\}\)..*/\1/
12791 t more2
12792 s/["\\]/\\&/g; s/^/"/; s/$/"/
12793 p
12794 b
12795 :more2
12796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12797 p
12798 g
12799 s/.\{148\}//
12800 t delim
12801 ' <conf$$subs.awk | sed '
12802 /^[^""]/{
12803   N
12804   s/\n//
12805 }
12806 ' >>$CONFIG_STATUS || ac_write_fail=1
12807 rm -f conf$$subs.awk
12808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12809 _ACAWK
12810 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12811   for (key in S) S_is_set[key] = 1
12812   FS = "\a"
12813
12814 }
12815 {
12816   line = $ 0
12817   nfields = split(line, field, "@")
12818   substed = 0
12819   len = length(field[1])
12820   for (i = 2; i < nfields; i++) {
12821     key = field[i]
12822     keylen = length(key)
12823     if (S_is_set[key]) {
12824       value = S[key]
12825       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12826       len += length(value) + length(field[++i])
12827       substed = 1
12828     } else
12829       len += 1 + keylen
12830   }
12831
12832   print line
12833 }
12834
12835 _ACAWK
12836 _ACEOF
12837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12839   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12840 else
12841   cat
12842 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12843   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12844 _ACEOF
12845
12846 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12847 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12848 # trailing colons and then remove the whole line if VPATH becomes empty
12849 # (actually we leave an empty line to preserve line numbers).
12850 if test "x$srcdir" = x.; then
12851   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12852 h
12853 s///
12854 s/^/:/
12855 s/[      ]*$/:/
12856 s/:\$(srcdir):/:/g
12857 s/:\${srcdir}:/:/g
12858 s/:@srcdir@:/:/g
12859 s/^:*//
12860 s/:*$//
12861 x
12862 s/\(=[   ]*\).*/\1/
12863 G
12864 s/\n//
12865 s/^[^=]*=[       ]*$//
12866 }'
12867 fi
12868
12869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12870 fi # test -n "$CONFIG_FILES"
12871
12872
12873 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12874 shift
12875 for ac_tag
12876 do
12877   case $ac_tag in
12878   :[FHLC]) ac_mode=$ac_tag; continue;;
12879   esac
12880   case $ac_mode$ac_tag in
12881   :[FHL]*:*);;
12882   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12883   :[FH]-) ac_tag=-:-;;
12884   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12885   esac
12886   ac_save_IFS=$IFS
12887   IFS=:
12888   set x $ac_tag
12889   IFS=$ac_save_IFS
12890   shift
12891   ac_file=$1
12892   shift
12893
12894   case $ac_mode in
12895   :L) ac_source=$1;;
12896   :[FH])
12897     ac_file_inputs=
12898     for ac_f
12899     do
12900       case $ac_f in
12901       -) ac_f="$ac_tmp/stdin";;
12902       *) # Look for the file first in the build tree, then in the source tree
12903          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12904          # because $ac_f cannot contain `:'.
12905          test -f "$ac_f" ||
12906            case $ac_f in
12907            [\\/$]*) false;;
12908            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12909            esac ||
12910            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12911       esac
12912       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12913       as_fn_append ac_file_inputs " '$ac_f'"
12914     done
12915
12916     # Let's still pretend it is `configure' which instantiates (i.e., don't
12917     # use $as_me), people would be surprised to read:
12918     #    /* config.h.  Generated by config.status.  */
12919     configure_input='Generated from '`
12920           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12921         `' by configure.'
12922     if test x"$ac_file" != x-; then
12923       configure_input="$ac_file.  $configure_input"
12924       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12925 $as_echo "$as_me: creating $ac_file" >&6;}
12926     fi
12927     # Neutralize special characters interpreted by sed in replacement strings.
12928     case $configure_input in #(
12929     *\&* | *\|* | *\\* )
12930        ac_sed_conf_input=`$as_echo "$configure_input" |
12931        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12932     *) ac_sed_conf_input=$configure_input;;
12933     esac
12934
12935     case $ac_tag in
12936     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12937       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12938     esac
12939     ;;
12940   esac
12941
12942   ac_dir=`$as_dirname -- "$ac_file" ||
12943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12944          X"$ac_file" : 'X\(//\)[^/]' \| \
12945          X"$ac_file" : 'X\(//\)$' \| \
12946          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12947 $as_echo X"$ac_file" |
12948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12949             s//\1/
12950             q
12951           }
12952           /^X\(\/\/\)[^/].*/{
12953             s//\1/
12954             q
12955           }
12956           /^X\(\/\/\)$/{
12957             s//\1/
12958             q
12959           }
12960           /^X\(\/\).*/{
12961             s//\1/
12962             q
12963           }
12964           s/.*/./; q'`
12965   as_dir="$ac_dir"; as_fn_mkdir_p
12966   ac_builddir=.
12967
12968 case "$ac_dir" in
12969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12970 *)
12971   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12972   # A ".." for each directory in $ac_dir_suffix.
12973   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12974   case $ac_top_builddir_sub in
12975   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12976   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12977   esac ;;
12978 esac
12979 ac_abs_top_builddir=$ac_pwd
12980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12981 # for backward compatibility:
12982 ac_top_builddir=$ac_top_build_prefix
12983
12984 case $srcdir in
12985   .)  # We are building in place.
12986     ac_srcdir=.
12987     ac_top_srcdir=$ac_top_builddir_sub
12988     ac_abs_top_srcdir=$ac_pwd ;;
12989   [\\/]* | ?:[\\/]* )  # Absolute name.
12990     ac_srcdir=$srcdir$ac_dir_suffix;
12991     ac_top_srcdir=$srcdir
12992     ac_abs_top_srcdir=$srcdir ;;
12993   *) # Relative name.
12994     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12995     ac_top_srcdir=$ac_top_build_prefix$srcdir
12996     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12997 esac
12998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12999
13000
13001   case $ac_mode in
13002   :F)
13003   #
13004   # CONFIG_FILE
13005   #
13006
13007   case $INSTALL in
13008   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13009   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13010   esac
13011   ac_MKDIR_P=$MKDIR_P
13012   case $MKDIR_P in
13013   [\\/$]* | ?:[\\/]* ) ;;
13014   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13015   esac
13016 _ACEOF
13017
13018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13019 # If the template does not know about datarootdir, expand it.
13020 # FIXME: This hack should be removed a few years after 2.60.
13021 ac_datarootdir_hack=; ac_datarootdir_seen=
13022 ac_sed_dataroot='
13023 /datarootdir/ {
13024   p
13025   q
13026 }
13027 /@datadir@/p
13028 /@docdir@/p
13029 /@infodir@/p
13030 /@localedir@/p
13031 /@mandir@/p'
13032 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13033 *datarootdir*) ac_datarootdir_seen=yes;;
13034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13035   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13036 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13037 _ACEOF
13038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13039   ac_datarootdir_hack='
13040   s&@datadir@&$datadir&g
13041   s&@docdir@&$docdir&g
13042   s&@infodir@&$infodir&g
13043   s&@localedir@&$localedir&g
13044   s&@mandir@&$mandir&g
13045   s&\\\${datarootdir}&$datarootdir&g' ;;
13046 esac
13047 _ACEOF
13048
13049 # Neutralize VPATH when `$srcdir' = `.'.
13050 # Shell code in configure.ac might set extrasub.
13051 # FIXME: do we really want to maintain this feature?
13052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13053 ac_sed_extra="$ac_vpsub
13054 $extrasub
13055 _ACEOF
13056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13057 :t
13058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13059 s|@configure_input@|$ac_sed_conf_input|;t t
13060 s&@top_builddir@&$ac_top_builddir_sub&;t t
13061 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13062 s&@srcdir@&$ac_srcdir&;t t
13063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13064 s&@top_srcdir@&$ac_top_srcdir&;t t
13065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13066 s&@builddir@&$ac_builddir&;t t
13067 s&@abs_builddir@&$ac_abs_builddir&;t t
13068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13069 s&@INSTALL@&$ac_INSTALL&;t t
13070 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13071 $ac_datarootdir_hack
13072 "
13073 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13074   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13075
13076 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13077   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13078   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13079       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13080   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13081 which seems to be undefined.  Please make sure it is defined" >&5
13082 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13083 which seems to be undefined.  Please make sure it is defined" >&2;}
13084
13085   rm -f "$ac_tmp/stdin"
13086   case $ac_file in
13087   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13088   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13089   esac \
13090   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13091  ;;
13092
13093
13094   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13095 $as_echo "$as_me: executing $ac_file commands" >&6;}
13096  ;;
13097   esac
13098
13099
13100   case $ac_file$ac_mode in
13101     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13102   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13103   # are listed without --file.  Let's play safe and only enable the eval
13104   # if we detect the quoting.
13105   case $CONFIG_FILES in
13106   *\'*) eval set x "$CONFIG_FILES" ;;
13107   *)   set x $CONFIG_FILES ;;
13108   esac
13109   shift
13110   for mf
13111   do
13112     # Strip MF so we end up with the name of the file.
13113     mf=`echo "$mf" | sed -e 's/:.*$//'`
13114     # Check whether this is an Automake generated Makefile or not.
13115     # We used to match only the files named `Makefile.in', but
13116     # some people rename them; so instead we look at the file content.
13117     # Grep'ing the first line is not enough: some people post-process
13118     # each Makefile.in and add a new line on top of each file to say so.
13119     # Grep'ing the whole file is not good either: AIX grep has a line
13120     # limit of 2048, but all sed's we know have understand at least 4000.
13121     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13122       dirpart=`$as_dirname -- "$mf" ||
13123 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13124          X"$mf" : 'X\(//\)[^/]' \| \
13125          X"$mf" : 'X\(//\)$' \| \
13126          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13127 $as_echo X"$mf" |
13128     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13129             s//\1/
13130             q
13131           }
13132           /^X\(\/\/\)[^/].*/{
13133             s//\1/
13134             q
13135           }
13136           /^X\(\/\/\)$/{
13137             s//\1/
13138             q
13139           }
13140           /^X\(\/\).*/{
13141             s//\1/
13142             q
13143           }
13144           s/.*/./; q'`
13145     else
13146       continue
13147     fi
13148     # Extract the definition of DEPDIR, am__include, and am__quote
13149     # from the Makefile without running `make'.
13150     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13151     test -z "$DEPDIR" && continue
13152     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13153     test -z "am__include" && continue
13154     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13155     # When using ansi2knr, U may be empty or an underscore; expand it
13156     U=`sed -n 's/^U = //p' < "$mf"`
13157     # Find all dependency output files, they are included files with
13158     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13159     # simplest approach to changing $(DEPDIR) to its actual value in the
13160     # expansion.
13161     for file in `sed -n "
13162       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13163          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13164       # Make sure the directory exists.
13165       test -f "$dirpart/$file" && continue
13166       fdir=`$as_dirname -- "$file" ||
13167 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13168          X"$file" : 'X\(//\)[^/]' \| \
13169          X"$file" : 'X\(//\)$' \| \
13170          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13171 $as_echo X"$file" |
13172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13173             s//\1/
13174             q
13175           }
13176           /^X\(\/\/\)[^/].*/{
13177             s//\1/
13178             q
13179           }
13180           /^X\(\/\/\)$/{
13181             s//\1/
13182             q
13183           }
13184           /^X\(\/\).*/{
13185             s//\1/
13186             q
13187           }
13188           s/.*/./; q'`
13189       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13190       # echo "creating $dirpart/$file"
13191       echo '# dummy' > "$dirpart/$file"
13192     done
13193   done
13194 }
13195  ;;
13196     "libtool":C)
13197
13198     # See if we are running on zsh, and set the options which allow our
13199     # commands through without removal of \ escapes.
13200     if test -n "${ZSH_VERSION+set}" ; then
13201       setopt NO_GLOB_SUBST
13202     fi
13203
13204     cfgfile="${ofile}T"
13205     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13206     $RM "$cfgfile"
13207
13208     cat <<_LT_EOF >> "$cfgfile"
13209 #! $SHELL
13210
13211 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13212 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13214 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13215 #
13216 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13217 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13218 #                 Foundation, Inc.
13219 #   Written by Gordon Matzigkeit, 1996
13220 #
13221 #   This file is part of GNU Libtool.
13222 #
13223 # GNU Libtool is free software; you can redistribute it and/or
13224 # modify it under the terms of the GNU General Public License as
13225 # published by the Free Software Foundation; either version 2 of
13226 # the License, or (at your option) any later version.
13227 #
13228 # As a special exception to the GNU General Public License,
13229 # if you distribute this file as part of a program or library that
13230 # is built using GNU Libtool, you may include this file under the
13231 # same distribution terms that you use for the rest of that program.
13232 #
13233 # GNU Libtool is distributed in the hope that it will be useful,
13234 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13235 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13236 # GNU General Public License for more details.
13237 #
13238 # You should have received a copy of the GNU General Public License
13239 # along with GNU Libtool; see the file COPYING.  If not, a copy
13240 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13241 # obtained by writing to the Free Software Foundation, Inc.,
13242 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13243
13244
13245 # The names of the tagged configurations supported by this script.
13246 available_tags=""
13247
13248 # ### BEGIN LIBTOOL CONFIG
13249
13250 # Which release of libtool.m4 was used?
13251 macro_version=$macro_version
13252 macro_revision=$macro_revision
13253
13254 # Assembler program.
13255 AS=$lt_AS
13256
13257 # DLL creation program.
13258 DLLTOOL=$lt_DLLTOOL
13259
13260 # Object dumper program.
13261 OBJDUMP=$lt_OBJDUMP
13262
13263 # Whether or not to build shared libraries.
13264 build_libtool_libs=$enable_shared
13265
13266 # Whether or not to build static libraries.
13267 build_old_libs=$enable_static
13268
13269 # What type of objects to build.
13270 pic_mode=$pic_mode
13271
13272 # Whether or not to optimize for fast installation.
13273 fast_install=$enable_fast_install
13274
13275 # Shell to use when invoking shell scripts.
13276 SHELL=$lt_SHELL
13277
13278 # An echo program that protects backslashes.
13279 ECHO=$lt_ECHO
13280
13281 # The PATH separator for the build system.
13282 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13283
13284 # The host system.
13285 host_alias=$host_alias
13286 host=$host
13287 host_os=$host_os
13288
13289 # The build system.
13290 build_alias=$build_alias
13291 build=$build
13292 build_os=$build_os
13293
13294 # A sed program that does not truncate output.
13295 SED=$lt_SED
13296
13297 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13298 Xsed="\$SED -e 1s/^X//"
13299
13300 # A grep program that handles long lines.
13301 GREP=$lt_GREP
13302
13303 # An ERE matcher.
13304 EGREP=$lt_EGREP
13305
13306 # A literal string matcher.
13307 FGREP=$lt_FGREP
13308
13309 # A BSD- or MS-compatible name lister.
13310 NM=$lt_NM
13311
13312 # Whether we need soft or hard links.
13313 LN_S=$lt_LN_S
13314
13315 # What is the maximum length of a command?
13316 max_cmd_len=$max_cmd_len
13317
13318 # Object file suffix (normally "o").
13319 objext=$ac_objext
13320
13321 # Executable file suffix (normally "").
13322 exeext=$exeext
13323
13324 # whether the shell understands "unset".
13325 lt_unset=$lt_unset
13326
13327 # turn spaces into newlines.
13328 SP2NL=$lt_lt_SP2NL
13329
13330 # turn newlines into spaces.
13331 NL2SP=$lt_lt_NL2SP
13332
13333 # convert \$build file names to \$host format.
13334 to_host_file_cmd=$lt_cv_to_host_file_cmd
13335
13336 # convert \$build files to toolchain format.
13337 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13338
13339 # Method to check whether dependent libraries are shared objects.
13340 deplibs_check_method=$lt_deplibs_check_method
13341
13342 # Command to use when deplibs_check_method = "file_magic".
13343 file_magic_cmd=$lt_file_magic_cmd
13344
13345 # How to find potential files when deplibs_check_method = "file_magic".
13346 file_magic_glob=$lt_file_magic_glob
13347
13348 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13349 want_nocaseglob=$lt_want_nocaseglob
13350
13351 # Command to associate shared and link libraries.
13352 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13353
13354 # The archiver.
13355 AR=$lt_AR
13356
13357 # Flags to create an archive.
13358 AR_FLAGS=$lt_AR_FLAGS
13359
13360 # How to feed a file listing to the archiver.
13361 archiver_list_spec=$lt_archiver_list_spec
13362
13363 # A symbol stripping program.
13364 STRIP=$lt_STRIP
13365
13366 # Commands used to install an old-style archive.
13367 RANLIB=$lt_RANLIB
13368 old_postinstall_cmds=$lt_old_postinstall_cmds
13369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13370
13371 # Whether to use a lock for old archive extraction.
13372 lock_old_archive_extraction=$lock_old_archive_extraction
13373
13374 # A C compiler.
13375 LTCC=$lt_CC
13376
13377 # LTCC compiler flags.
13378 LTCFLAGS=$lt_CFLAGS
13379
13380 # Take the output of nm and produce a listing of raw symbols and C names.
13381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13382
13383 # Transform the output of nm in a proper C declaration.
13384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13385
13386 # Transform the output of nm in a C name address pair.
13387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13388
13389 # Transform the output of nm in a C name address pair when lib prefix is needed.
13390 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13391
13392 # Specify filename containing input files for \$NM.
13393 nm_file_list_spec=$lt_nm_file_list_spec
13394
13395 # The root where to search for dependent libraries,and in which our libraries should be installed.
13396 lt_sysroot=$lt_sysroot
13397
13398 # The name of the directory that contains temporary libtool files.
13399 objdir=$objdir
13400
13401 # Used to examine libraries when file_magic_cmd begins with "file".
13402 MAGIC_CMD=$MAGIC_CMD
13403
13404 # Must we lock files when doing compilation?
13405 need_locks=$lt_need_locks
13406
13407 # Manifest tool.
13408 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13409
13410 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13411 DSYMUTIL=$lt_DSYMUTIL
13412
13413 # Tool to change global to local symbols on Mac OS X.
13414 NMEDIT=$lt_NMEDIT
13415
13416 # Tool to manipulate fat objects and archives on Mac OS X.
13417 LIPO=$lt_LIPO
13418
13419 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13420 OTOOL=$lt_OTOOL
13421
13422 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13423 OTOOL64=$lt_OTOOL64
13424
13425 # Old archive suffix (normally "a").
13426 libext=$libext
13427
13428 # Shared library suffix (normally ".so").
13429 shrext_cmds=$lt_shrext_cmds
13430
13431 # The commands to extract the exported symbol list from a shared archive.
13432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13433
13434 # Variables whose values should be saved in libtool wrapper scripts and
13435 # restored at link time.
13436 variables_saved_for_relink=$lt_variables_saved_for_relink
13437
13438 # Do we need the "lib" prefix for modules?
13439 need_lib_prefix=$need_lib_prefix
13440
13441 # Do we need a version for libraries?
13442 need_version=$need_version
13443
13444 # Library versioning type.
13445 version_type=$version_type
13446
13447 # Shared library runtime path variable.
13448 runpath_var=$runpath_var
13449
13450 # Shared library path variable.
13451 shlibpath_var=$shlibpath_var
13452
13453 # Is shlibpath searched before the hard-coded library search path?
13454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13455
13456 # Format of library name prefix.
13457 libname_spec=$lt_libname_spec
13458
13459 # List of archive names.  First name is the real one, the rest are links.
13460 # The last name is the one that the linker finds with -lNAME
13461 library_names_spec=$lt_library_names_spec
13462
13463 # The coded name of the library, if different from the real name.
13464 soname_spec=$lt_soname_spec
13465
13466 # Permission mode override for installation of shared libraries.
13467 install_override_mode=$lt_install_override_mode
13468
13469 # Command to use after installation of a shared archive.
13470 postinstall_cmds=$lt_postinstall_cmds
13471
13472 # Command to use after uninstallation of a shared archive.
13473 postuninstall_cmds=$lt_postuninstall_cmds
13474
13475 # Commands used to finish a libtool library installation in a directory.
13476 finish_cmds=$lt_finish_cmds
13477
13478 # As "finish_cmds", except a single script fragment to be evaled but
13479 # not shown.
13480 finish_eval=$lt_finish_eval
13481
13482 # Whether we should hardcode library paths into libraries.
13483 hardcode_into_libs=$hardcode_into_libs
13484
13485 # Compile-time system search path for libraries.
13486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13487
13488 # Run-time system search path for libraries.
13489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13490
13491 # Whether dlopen is supported.
13492 dlopen_support=$enable_dlopen
13493
13494 # Whether dlopen of programs is supported.
13495 dlopen_self=$enable_dlopen_self
13496
13497 # Whether dlopen of statically linked programs is supported.
13498 dlopen_self_static=$enable_dlopen_self_static
13499
13500 # Commands to strip libraries.
13501 old_striplib=$lt_old_striplib
13502 striplib=$lt_striplib
13503
13504
13505 # The linker used to build libraries.
13506 LD=$lt_LD
13507
13508 # How to create reloadable object files.
13509 reload_flag=$lt_reload_flag
13510 reload_cmds=$lt_reload_cmds
13511
13512 # Commands used to build an old-style archive.
13513 old_archive_cmds=$lt_old_archive_cmds
13514
13515 # A language specific compiler.
13516 CC=$lt_compiler
13517
13518 # Is the compiler the GNU compiler?
13519 with_gcc=$GCC
13520
13521 # Compiler flag to turn off builtin functions.
13522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13523
13524 # Additional compiler flags for building library objects.
13525 pic_flag=$lt_lt_prog_compiler_pic
13526
13527 # How to pass a linker flag through the compiler.
13528 wl=$lt_lt_prog_compiler_wl
13529
13530 # Compiler flag to prevent dynamic linking.
13531 link_static_flag=$lt_lt_prog_compiler_static
13532
13533 # Does compiler simultaneously support -c and -o options?
13534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13535
13536 # Whether or not to add -lc for building shared libraries.
13537 build_libtool_need_lc=$archive_cmds_need_lc
13538
13539 # Whether or not to disallow shared libs when runtime libs are static.
13540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13541
13542 # Compiler flag to allow reflexive dlopens.
13543 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13544
13545 # Compiler flag to generate shared objects directly from archives.
13546 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13547
13548 # Whether the compiler copes with passing no objects directly.
13549 compiler_needs_object=$lt_compiler_needs_object
13550
13551 # Create an old-style archive from a shared archive.
13552 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13553
13554 # Create a temporary old-style archive to link instead of a shared archive.
13555 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13556
13557 # Commands used to build a shared archive.
13558 archive_cmds=$lt_archive_cmds
13559 archive_expsym_cmds=$lt_archive_expsym_cmds
13560
13561 # Commands used to build a loadable module if different from building
13562 # a shared archive.
13563 module_cmds=$lt_module_cmds
13564 module_expsym_cmds=$lt_module_expsym_cmds
13565
13566 # Whether we are building with GNU ld or not.
13567 with_gnu_ld=$lt_with_gnu_ld
13568
13569 # Flag that allows shared libraries with undefined symbols to be built.
13570 allow_undefined_flag=$lt_allow_undefined_flag
13571
13572 # Flag that enforces no undefined symbols.
13573 no_undefined_flag=$lt_no_undefined_flag
13574
13575 # Flag to hardcode \$libdir into a binary during linking.
13576 # This must work even if \$libdir does not exist
13577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13578
13579 # Whether we need a single "-rpath" flag with a separated argument.
13580 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13581
13582 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13583 # DIR into the resulting binary.
13584 hardcode_direct=$hardcode_direct
13585
13586 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13587 # DIR into the resulting binary and the resulting library dependency is
13588 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13589 # library is relocated.
13590 hardcode_direct_absolute=$hardcode_direct_absolute
13591
13592 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13593 # into the resulting binary.
13594 hardcode_minus_L=$hardcode_minus_L
13595
13596 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13597 # into the resulting binary.
13598 hardcode_shlibpath_var=$hardcode_shlibpath_var
13599
13600 # Set to "yes" if building a shared library automatically hardcodes DIR
13601 # into the library and all subsequent libraries and executables linked
13602 # against it.
13603 hardcode_automatic=$hardcode_automatic
13604
13605 # Set to yes if linker adds runtime paths of dependent libraries
13606 # to runtime path list.
13607 inherit_rpath=$inherit_rpath
13608
13609 # Whether libtool must link a program against all its dependency libraries.
13610 link_all_deplibs=$link_all_deplibs
13611
13612 # Set to "yes" if exported symbols are required.
13613 always_export_symbols=$always_export_symbols
13614
13615 # The commands to list exported symbols.
13616 export_symbols_cmds=$lt_export_symbols_cmds
13617
13618 # Symbols that should not be listed in the preloaded symbols.
13619 exclude_expsyms=$lt_exclude_expsyms
13620
13621 # Symbols that must always be exported.
13622 include_expsyms=$lt_include_expsyms
13623
13624 # Commands necessary for linking programs (against libraries) with templates.
13625 prelink_cmds=$lt_prelink_cmds
13626
13627 # Commands necessary for finishing linking programs.
13628 postlink_cmds=$lt_postlink_cmds
13629
13630 # Specify filename containing input files.
13631 file_list_spec=$lt_file_list_spec
13632
13633 # How to hardcode a shared library path into an executable.
13634 hardcode_action=$hardcode_action
13635
13636 # ### END LIBTOOL CONFIG
13637
13638 _LT_EOF
13639
13640   case $host_os in
13641   aix3*)
13642     cat <<\_LT_EOF >> "$cfgfile"
13643 # AIX sometimes has problems with the GCC collect2 program.  For some
13644 # reason, if we set the COLLECT_NAMES environment variable, the problems
13645 # vanish in a puff of smoke.
13646 if test "X${COLLECT_NAMES+set}" != Xset; then
13647   COLLECT_NAMES=
13648   export COLLECT_NAMES
13649 fi
13650 _LT_EOF
13651     ;;
13652   esac
13653
13654
13655 ltmain="$ac_aux_dir/ltmain.sh"
13656
13657
13658   # We use sed instead of cat because bash on DJGPP gets confused if
13659   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13660   # text mode, it properly converts lines to CR/LF.  This bash problem
13661   # is reportedly fixed, but why not run on old versions too?
13662   sed '$q' "$ltmain" >> "$cfgfile" \
13663      || (rm -f "$cfgfile"; exit 1)
13664
13665   if test x"$xsi_shell" = xyes; then
13666   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13667 func_dirname ()\
13668 {\
13669 \    case ${1} in\
13670 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13671 \      *  ) func_dirname_result="${3}" ;;\
13672 \    esac\
13673 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13674   && mv -f "$cfgfile.tmp" "$cfgfile" \
13675     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13676 test 0 -eq $? || _lt_function_replace_fail=:
13677
13678
13679   sed -e '/^func_basename ()$/,/^} # func_basename /c\
13680 func_basename ()\
13681 {\
13682 \    func_basename_result="${1##*/}"\
13683 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13684   && mv -f "$cfgfile.tmp" "$cfgfile" \
13685     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13686 test 0 -eq $? || _lt_function_replace_fail=:
13687
13688
13689   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13690 func_dirname_and_basename ()\
13691 {\
13692 \    case ${1} in\
13693 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13694 \      *  ) func_dirname_result="${3}" ;;\
13695 \    esac\
13696 \    func_basename_result="${1##*/}"\
13697 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13698   && mv -f "$cfgfile.tmp" "$cfgfile" \
13699     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13700 test 0 -eq $? || _lt_function_replace_fail=:
13701
13702
13703   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13704 func_stripname ()\
13705 {\
13706 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13707 \    # positional parameters, so assign one to ordinary parameter first.\
13708 \    func_stripname_result=${3}\
13709 \    func_stripname_result=${func_stripname_result#"${1}"}\
13710 \    func_stripname_result=${func_stripname_result%"${2}"}\
13711 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13712   && mv -f "$cfgfile.tmp" "$cfgfile" \
13713     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13714 test 0 -eq $? || _lt_function_replace_fail=:
13715
13716
13717   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13718 func_split_long_opt ()\
13719 {\
13720 \    func_split_long_opt_name=${1%%=*}\
13721 \    func_split_long_opt_arg=${1#*=}\
13722 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13723   && mv -f "$cfgfile.tmp" "$cfgfile" \
13724     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13725 test 0 -eq $? || _lt_function_replace_fail=:
13726
13727
13728   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13729 func_split_short_opt ()\
13730 {\
13731 \    func_split_short_opt_arg=${1#??}\
13732 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13733 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13734   && mv -f "$cfgfile.tmp" "$cfgfile" \
13735     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13736 test 0 -eq $? || _lt_function_replace_fail=:
13737
13738
13739   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13740 func_lo2o ()\
13741 {\
13742 \    case ${1} in\
13743 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13744 \      *)    func_lo2o_result=${1} ;;\
13745 \    esac\
13746 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13747   && mv -f "$cfgfile.tmp" "$cfgfile" \
13748     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13749 test 0 -eq $? || _lt_function_replace_fail=:
13750
13751
13752   sed -e '/^func_xform ()$/,/^} # func_xform /c\
13753 func_xform ()\
13754 {\
13755     func_xform_result=${1%.*}.lo\
13756 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13757   && mv -f "$cfgfile.tmp" "$cfgfile" \
13758     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13759 test 0 -eq $? || _lt_function_replace_fail=:
13760
13761
13762   sed -e '/^func_arith ()$/,/^} # func_arith /c\
13763 func_arith ()\
13764 {\
13765     func_arith_result=$(( $* ))\
13766 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13767   && mv -f "$cfgfile.tmp" "$cfgfile" \
13768     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13769 test 0 -eq $? || _lt_function_replace_fail=:
13770
13771
13772   sed -e '/^func_len ()$/,/^} # func_len /c\
13773 func_len ()\
13774 {\
13775     func_len_result=${#1}\
13776 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13777   && mv -f "$cfgfile.tmp" "$cfgfile" \
13778     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13779 test 0 -eq $? || _lt_function_replace_fail=:
13780
13781 fi
13782
13783 if test x"$lt_shell_append" = xyes; then
13784   sed -e '/^func_append ()$/,/^} # func_append /c\
13785 func_append ()\
13786 {\
13787     eval "${1}+=\\${2}"\
13788 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13789   && mv -f "$cfgfile.tmp" "$cfgfile" \
13790     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13791 test 0 -eq $? || _lt_function_replace_fail=:
13792
13793
13794   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13795 func_append_quoted ()\
13796 {\
13797 \    func_quote_for_eval "${2}"\
13798 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13799 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13800   && mv -f "$cfgfile.tmp" "$cfgfile" \
13801     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13802 test 0 -eq $? || _lt_function_replace_fail=:
13803
13804
13805   # Save a `func_append' function call where possible by direct use of '+='
13806   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13807     && mv -f "$cfgfile.tmp" "$cfgfile" \
13808       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13809   test 0 -eq $? || _lt_function_replace_fail=:
13810 else
13811   # Save a `func_append' function call even when '+=' is not available
13812   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13813     && mv -f "$cfgfile.tmp" "$cfgfile" \
13814       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13815   test 0 -eq $? || _lt_function_replace_fail=:
13816 fi
13817
13818 if test x"$_lt_function_replace_fail" = x":"; then
13819   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13820 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13821 fi
13822
13823
13824    mv -f "$cfgfile" "$ofile" ||
13825     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13826   chmod +x "$ofile"
13827
13828  ;;
13829
13830   esac
13831 done # for ac_tag
13832
13833
13834 as_fn_exit 0
13835 _ACEOF
13836 ac_clean_files=$ac_clean_files_save
13837
13838 test $ac_write_fail = 0 ||
13839   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13840
13841
13842 # configure is writing to config.log, and then calls config.status.
13843 # config.status does its own redirection, appending to config.log.
13844 # Unfortunately, on DOS this fails, as config.log is still kept open
13845 # by configure, so config.status won't be able to write to it; its
13846 # output is simply discarded.  So we exec the FD to /dev/null,
13847 # effectively closing config.log, so it can be properly (re)opened and
13848 # appended to by config.status.  When coming back to configure, we
13849 # need to make the FD available again.
13850 if test "$no_create" != yes; then
13851   ac_cs_success=:
13852   ac_config_status_args=
13853   test "$silent" = yes &&
13854     ac_config_status_args="$ac_config_status_args --quiet"
13855   exec 5>/dev/null
13856   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13857   exec 5>>config.log
13858   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13859   # would make configure fail if this is the last instruction.
13860   $ac_cs_success || as_fn_exit 1
13861 fi
13862 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13863   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13864 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13865 fi
13866