Initial commit of vpp code.
[vpp.git] / vlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for vlib 1.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='vlib'
589 PACKAGE_TARNAME='vlib'
590 PACKAGE_VERSION='1.1'
591 PACKAGE_STRING='vlib 1.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 #  include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #  include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 PRE_DATA_SIZE
636 DPDK
637 WITH_DPDK_FALSE
638 WITH_DPDK_TRUE
639 CPP
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 MANIFEST_TOOL
646 RANLIB
647 ac_ct_AR
648 AR
649 DLLTOOL
650 OBJDUMP
651 LN_S
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 EGREP
658 GREP
659 SED
660 host_os
661 host_vendor
662 host_cpu
663 host
664 build_os
665 build_vendor
666 build_cpu
667 build
668 LIBTOOL
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_silent_rules
755 enable_dependency_tracking
756 enable_shared
757 enable_static
758 with_pic
759 enable_fast_install
760 with_gnu_ld
761 with_sysroot
762 enable_libtool_lock
763 with_dpdk
764 with_pre_data
765 '
766       ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP'
775
776
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 ac_unrecognized_opts=
781 ac_unrecognized_sep=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
798
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
824
825 ac_prev=
826 ac_dashdash=
827 for ac_option
828 do
829   # If the previous option needs an argument, assign it.
830   if test -n "$ac_prev"; then
831     eval $ac_prev=\$ac_option
832     ac_prev=
833     continue
834   fi
835
836   case $ac_option in
837   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838   *=)   ac_optarg= ;;
839   *)    ac_optarg=yes ;;
840   esac
841
842   # Accept the important Cygnus configure options, so we can diagnose typos.
843
844   case $ac_dashdash$ac_option in
845   --)
846     ac_dashdash=yes ;;
847
848   -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851     bindir=$ac_optarg ;;
852
853   -build | --build | --buil | --bui | --bu)
854     ac_prev=build_alias ;;
855   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856     build_alias=$ac_optarg ;;
857
858   -cache-file | --cache-file | --cache-fil | --cache-fi \
859   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860     ac_prev=cache_file ;;
861   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863     cache_file=$ac_optarg ;;
864
865   --config-cache | -C)
866     cache_file=config.cache ;;
867
868   -datadir | --datadir | --datadi | --datad)
869     ac_prev=datadir ;;
870   -datadir=* | --datadir=* | --datadi=* | --datad=*)
871     datadir=$ac_optarg ;;
872
873   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874   | --dataroo | --dataro | --datar)
875     ac_prev=datarootdir ;;
876   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878     datarootdir=$ac_optarg ;;
879
880   -disable-* | --disable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error $? "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=no ;;
895
896   -docdir | --docdir | --docdi | --doc | --do)
897     ac_prev=docdir ;;
898   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899     docdir=$ac_optarg ;;
900
901   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902     ac_prev=dvidir ;;
903   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904     dvidir=$ac_optarg ;;
905
906   -enable-* | --enable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error $? "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=\$ac_optarg ;;
921
922   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924   | --exec | --exe | --ex)
925     ac_prev=exec_prefix ;;
926   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928   | --exec=* | --exe=* | --ex=*)
929     exec_prefix=$ac_optarg ;;
930
931   -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
934
935   -help | --help | --hel | --he | -h)
936     ac_init_help=long ;;
937   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938     ac_init_help=recursive ;;
939   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940     ac_init_help=short ;;
941
942   -host | --host | --hos | --ho)
943     ac_prev=host_alias ;;
944   -host=* | --host=* | --hos=* | --ho=*)
945     host_alias=$ac_optarg ;;
946
947   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948     ac_prev=htmldir ;;
949   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950   | --ht=*)
951     htmldir=$ac_optarg ;;
952
953   -includedir | --includedir | --includedi | --included | --include \
954   | --includ | --inclu | --incl | --inc)
955     ac_prev=includedir ;;
956   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957   | --includ=* | --inclu=* | --incl=* | --inc=*)
958     includedir=$ac_optarg ;;
959
960   -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963     infodir=$ac_optarg ;;
964
965   -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967   -libdir=* | --libdir=* | --libdi=* | --libd=*)
968     libdir=$ac_optarg ;;
969
970   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971   | --libexe | --libex | --libe)
972     ac_prev=libexecdir ;;
973   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974   | --libexe=* | --libex=* | --libe=*)
975     libexecdir=$ac_optarg ;;
976
977   -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
981
982   -localstatedir | --localstatedir | --localstatedi | --localstated \
983   | --localstate | --localstat | --localsta | --localst | --locals)
984     ac_prev=localstatedir ;;
985   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987     localstatedir=$ac_optarg ;;
988
989   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992     mandir=$ac_optarg ;;
993
994   -nfp | --nfp | --nf)
995     # Obsolete; use --without-fp.
996     with_fp=no ;;
997
998   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999   | --no-cr | --no-c | -n)
1000     no_create=yes ;;
1001
1002   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004     no_recursion=yes ;;
1005
1006   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008   | --oldin | --oldi | --old | --ol | --o)
1009     ac_prev=oldincludedir ;;
1010   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013     oldincludedir=$ac_optarg ;;
1014
1015   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018     prefix=$ac_optarg ;;
1019
1020   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021   | --program-pre | --program-pr | --program-p)
1022     ac_prev=program_prefix ;;
1023   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025     program_prefix=$ac_optarg ;;
1026
1027   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028   | --program-suf | --program-su | --program-s)
1029     ac_prev=program_suffix ;;
1030   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032     program_suffix=$ac_optarg ;;
1033
1034   -program-transform-name | --program-transform-name \
1035   | --program-transform-nam | --program-transform-na \
1036   | --program-transform-n | --program-transform- \
1037   | --program-transform | --program-transfor \
1038   | --program-transfo | --program-transf \
1039   | --program-trans | --program-tran \
1040   | --progr-tra | --program-tr | --program-t)
1041     ac_prev=program_transform_name ;;
1042   -program-transform-name=* | --program-transform-name=* \
1043   | --program-transform-nam=* | --program-transform-na=* \
1044   | --program-transform-n=* | --program-transform-=* \
1045   | --program-transform=* | --program-transfor=* \
1046   | --program-transfo=* | --program-transf=* \
1047   | --program-trans=* | --program-tran=* \
1048   | --progr-tra=* | --program-tr=* | --program-t=*)
1049     program_transform_name=$ac_optarg ;;
1050
1051   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052     ac_prev=pdfdir ;;
1053   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054     pdfdir=$ac_optarg ;;
1055
1056   -psdir | --psdir | --psdi | --psd | --ps)
1057     ac_prev=psdir ;;
1058   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059     psdir=$ac_optarg ;;
1060
1061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062   | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1064
1065   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066     ac_prev=sbindir ;;
1067   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068   | --sbi=* | --sb=*)
1069     sbindir=$ac_optarg ;;
1070
1071   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073   | --sharedst | --shareds | --shared | --share | --shar \
1074   | --sha | --sh)
1075     ac_prev=sharedstatedir ;;
1076   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079   | --sha=* | --sh=*)
1080     sharedstatedir=$ac_optarg ;;
1081
1082   -site | --site | --sit)
1083     ac_prev=site ;;
1084   -site=* | --site=* | --sit=*)
1085     site=$ac_optarg ;;
1086
1087   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088     ac_prev=srcdir ;;
1089   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090     srcdir=$ac_optarg ;;
1091
1092   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093   | --syscon | --sysco | --sysc | --sys | --sy)
1094     ac_prev=sysconfdir ;;
1095   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097     sysconfdir=$ac_optarg ;;
1098
1099   -target | --target | --targe | --targ | --tar | --ta | --t)
1100     ac_prev=target_alias ;;
1101   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102     target_alias=$ac_optarg ;;
1103
1104   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105     verbose=yes ;;
1106
1107   -version | --version | --versio | --versi | --vers | -V)
1108     ac_init_version=: ;;
1109
1110   -with-* | --with-*)
1111     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114       as_fn_error $? "invalid package name: $ac_useropt"
1115     ac_useropt_orig=$ac_useropt
1116     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117     case $ac_user_opts in
1118       *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122          ac_unrecognized_sep=', ';;
1123     esac
1124     eval with_$ac_useropt=\$ac_optarg ;;
1125
1126   -without-* | --without-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       as_fn_error $? "invalid package name: $ac_useropt"
1131     ac_useropt_orig=$ac_useropt
1132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133     case $ac_user_opts in
1134       *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138          ac_unrecognized_sep=', ';;
1139     esac
1140     eval with_$ac_useropt=no ;;
1141
1142   --x)
1143     # Obsolete; use --with-x.
1144     with_x=yes ;;
1145
1146   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147   | --x-incl | --x-inc | --x-in | --x-i)
1148     ac_prev=x_includes ;;
1149   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151     x_includes=$ac_optarg ;;
1152
1153   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155     ac_prev=x_libraries ;;
1156   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158     x_libraries=$ac_optarg ;;
1159
1160   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1162     ;;
1163
1164   *=*)
1165     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166     # Reject names that are not valid shell variable names.
1167     case $ac_envvar in #(
1168       '' | [0-9]* | *[!_$as_cr_alnum]* )
1169       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170     esac
1171     eval $ac_envvar=\$ac_optarg
1172     export $ac_envvar ;;
1173
1174   *)
1175     # FIXME: should be removed in autoconf 3.0.
1176     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180     ;;
1181
1182   esac
1183 done
1184
1185 if test -n "$ac_prev"; then
1186   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187   as_fn_error $? "missing argument to $ac_option"
1188 fi
1189
1190 if test -n "$ac_unrecognized_opts"; then
1191   case $enable_option_checking in
1192     no) ;;
1193     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195   esac
1196 fi
1197
1198 # Check all directory arguments for consistency.
1199 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200                 datadir sysconfdir sharedstatedir localstatedir includedir \
1201                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202                 libdir localedir mandir
1203 do
1204   eval ac_val=\$$ac_var
1205   # Remove trailing slashes.
1206   case $ac_val in
1207     */ )
1208       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209       eval $ac_var=\$ac_val;;
1210   esac
1211   # Be sure to have absolute directory names.
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   as_fn_error $? "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   as_fn_error $? "pwd does not report name of working directory"
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251   ac_srcdir_defaulted=yes
1252   # Try the directory containing this script, then the parent directory.
1253   ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255          X"$as_myself" : 'X\(//\)[^/]' \| \
1256          X"$as_myself" : 'X\(//\)$' \| \
1257          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)[^/].*/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\).*/{
1272             s//\1/
1273             q
1274           }
1275           s/.*/./; q'`
1276   srcdir=$ac_confdir
1277   if test ! -r "$srcdir/$ac_unique_file"; then
1278     srcdir=..
1279   fi
1280 else
1281   ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1290         pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293   srcdir=.
1294 fi
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303   eval ac_env_${ac_var}_value=\$${ac_var}
1304   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1307
1308 #
1309 # Report the --help message.
1310 #
1311 if test "$ac_init_help" = "long"; then
1312   # Omit some internal or obsolete options to make the list less imposing.
1313   # This message is too long to be a string in the A/UX 3.1 sh.
1314   cat <<_ACEOF
1315 \`configure' configures vlib 1.1 to adapt to many kinds of systems.
1316
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE.  See below for descriptions of some of the useful variables.
1321
1322 Defaults for the options are specified in brackets.
1323
1324 Configuration:
1325   -h, --help              display this help and exit
1326       --help=short        display options specific to this package
1327       --help=recursive    display the short help of all the included packages
1328   -V, --version           display version information and exit
1329   -q, --quiet, --silent   do not print \`checking ...' messages
1330       --cache-file=FILE   cache test results in FILE [disabled]
1331   -C, --config-cache      alias for \`--cache-file=config.cache'
1332   -n, --no-create         do not create output files
1333       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1334
1335 Installation directories:
1336   --prefix=PREFIX         install architecture-independent files in PREFIX
1337                           [$ac_default_prefix]
1338   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1339                           [PREFIX]
1340
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1345
1346 For better control, use the options below.
1347
1348 Fine tuning of the installation directories:
1349   --bindir=DIR            user executables [EPREFIX/bin]
1350   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1351   --libexecdir=DIR        program executables [EPREFIX/libexec]
1352   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1353   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1354   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1355   --libdir=DIR            object code libraries [EPREFIX/lib]
1356   --includedir=DIR        C header files [PREFIX/include]
1357   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1358   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1359   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1360   --infodir=DIR           info documentation [DATAROOTDIR/info]
1361   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1362   --mandir=DIR            man documentation [DATAROOTDIR/man]
1363   --docdir=DIR            documentation root [DATAROOTDIR/doc/vlib]
1364   --htmldir=DIR           html documentation [DOCDIR]
1365   --dvidir=DIR            dvi documentation [DOCDIR]
1366   --pdfdir=DIR            pdf documentation [DOCDIR]
1367   --psdir=DIR             ps documentation [DOCDIR]
1368 _ACEOF
1369
1370   cat <<\_ACEOF
1371
1372 Program names:
1373   --program-prefix=PREFIX            prepend PREFIX to installed program names
1374   --program-suffix=SUFFIX            append SUFFIX to installed program names
1375   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of vlib 1.1:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-option-checking  ignore unrecognized --enable/--with options
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-silent-rules   less verbose build output (undo: "make V=1")
1394   --disable-silent-rules  verbose build output (undo: "make V=0")
1395   --enable-dependency-tracking
1396                           do not reject slow dependency extractors
1397   --disable-dependency-tracking
1398                           speeds up one-time build
1399   --enable-shared[=PKGS]  build shared libraries [default=yes]
1400   --enable-static[=PKGS]  build static libraries [default=yes]
1401   --enable-fast-install[=PKGS]
1402                           optimize for fast installation [default=yes]
1403   --disable-libtool-lock  avoid locking (might break parallel builds)
1404
1405 Optional Packages:
1406   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1407   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1408   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1409                           both]
1410   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1411   --with-sysroot=DIR Search for dependent libraries within DIR
1412                         (or the compiler's sysroot if not specified).
1413   --with-dpdk             Use the Intel dpdk
1414   --with-pre-data         Set buffer rewrite space
1415
1416 Some influential environment variables:
1417   CC          C compiler command
1418   CFLAGS      C compiler flags
1419   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1420               nonstandard directory <lib dir>
1421   LIBS        libraries to pass to the linker, e.g. -l<library>
1422   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423               you have headers in a nonstandard directory <include dir>
1424   CPP         C preprocessor
1425
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1428
1429 Report bugs to the package provider.
1430 _ACEOF
1431 ac_status=$?
1432 fi
1433
1434 if test "$ac_init_help" = "recursive"; then
1435   # If there are subdirs, report their specific --help.
1436   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437     test -d "$ac_dir" ||
1438       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439       continue
1440     ac_builddir=.
1441
1442 case "$ac_dir" in
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *)
1445   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446   # A ".." for each directory in $ac_dir_suffix.
1447   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448   case $ac_top_builddir_sub in
1449   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451   esac ;;
1452 esac
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1457
1458 case $srcdir in
1459   .)  # We are building in place.
1460     ac_srcdir=.
1461     ac_top_srcdir=$ac_top_builddir_sub
1462     ac_abs_top_srcdir=$ac_pwd ;;
1463   [\\/]* | ?:[\\/]* )  # Absolute name.
1464     ac_srcdir=$srcdir$ac_dir_suffix;
1465     ac_top_srcdir=$srcdir
1466     ac_abs_top_srcdir=$srcdir ;;
1467   *) # Relative name.
1468     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469     ac_top_srcdir=$ac_top_build_prefix$srcdir
1470     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471 esac
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473
1474     cd "$ac_dir" || { ac_status=$?; continue; }
1475     # Check for guested configure.
1476     if test -f "$ac_srcdir/configure.gnu"; then
1477       echo &&
1478       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479     elif test -f "$ac_srcdir/configure"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure" --help=recursive
1482     else
1483       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484     fi || ac_status=$?
1485     cd "$ac_pwd" || { ac_status=$?; break; }
1486   done
1487 fi
1488
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1491   cat <<\_ACEOF
1492 vlib configure 1.1
1493 generated by GNU Autoconf 2.69
1494
1495 Copyright (C) 2012 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1498 _ACEOF
1499   exit
1500 fi
1501
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1505
1506 # ac_fn_c_try_compile LINENO
1507 # --------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_compile ()
1510 {
1511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512   rm -f conftest.$ac_objext
1513   if { { ac_try="$ac_compile"
1514 case "(($ac_try" in
1515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516   *) ac_try_echo=$ac_try;;
1517 esac
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520   (eval "$ac_compile") 2>conftest.err
1521   ac_status=$?
1522   if test -s conftest.err; then
1523     grep -v '^ *+' conftest.err >conftest.er1
1524     cat conftest.er1 >&5
1525     mv -f conftest.er1 conftest.err
1526   fi
1527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528   test $ac_status = 0; } && {
1529          test -z "$ac_c_werror_flag" ||
1530          test ! -s conftest.err
1531        } && test -s conftest.$ac_objext; then :
1532   ac_retval=0
1533 else
1534   $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1536
1537         ac_retval=1
1538 fi
1539   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540   as_fn_set_status $ac_retval
1541
1542 } # ac_fn_c_try_compile
1543
1544 # ac_fn_c_try_link LINENO
1545 # -----------------------
1546 # Try to link conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_link ()
1548 {
1549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550   rm -f conftest.$ac_objext conftest$ac_exeext
1551   if { { ac_try="$ac_link"
1552 case "(($ac_try" in
1553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554   *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558   (eval "$ac_link") 2>conftest.err
1559   ac_status=$?
1560   if test -s conftest.err; then
1561     grep -v '^ *+' conftest.err >conftest.er1
1562     cat conftest.er1 >&5
1563     mv -f conftest.er1 conftest.err
1564   fi
1565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566   test $ac_status = 0; } && {
1567          test -z "$ac_c_werror_flag" ||
1568          test ! -s conftest.err
1569        } && test -s conftest$ac_exeext && {
1570          test "$cross_compiling" = yes ||
1571          test -x conftest$ac_exeext
1572        }; then :
1573   ac_retval=0
1574 else
1575   $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578         ac_retval=1
1579 fi
1580   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1581   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1582   # interfere with the next link command; also delete a directory that is
1583   # left behind by Apple's compiler.  We do this before executing the actions.
1584   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586   as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_link
1589
1590 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1591 # -------------------------------------------------------
1592 # Tests whether HEADER exists and can be compiled using the include files in
1593 # INCLUDES, setting the cache variable VAR accordingly.
1594 ac_fn_c_check_header_compile ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598 $as_echo_n "checking for $2... " >&6; }
1599 if eval \${$3+:} false; then :
1600   $as_echo_n "(cached) " >&6
1601 else
1602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h.  */
1604 $4
1605 #include <$2>
1606 _ACEOF
1607 if ac_fn_c_try_compile "$LINENO"; then :
1608   eval "$3=yes"
1609 else
1610   eval "$3=no"
1611 fi
1612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1613 fi
1614 eval ac_res=\$$3
1615                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616 $as_echo "$ac_res" >&6; }
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618
1619 } # ac_fn_c_check_header_compile
1620
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_cpp ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 case "(($ac_try" in
1629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630   *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635   ac_status=$?
1636   if test -s conftest.err; then
1637     grep -v '^ *+' conftest.err >conftest.er1
1638     cat conftest.er1 >&5
1639     mv -f conftest.er1 conftest.err
1640   fi
1641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642   test $ac_status = 0; } > conftest.i && {
1643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644          test ! -s conftest.err
1645        }; then :
1646   ac_retval=0
1647 else
1648   $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651     ac_retval=1
1652 fi
1653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654   as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_cpp
1657
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1662 ac_fn_c_try_run ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_link") 2>&5
1673   ac_status=$?
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676   { { case "(($ac_try" in
1677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678   *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682   (eval "$ac_try") 2>&5
1683   ac_status=$?
1684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685   test $ac_status = 0; }; }; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: program exited with status $ac_status" >&5
1689        $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692        ac_retval=$ac_status
1693 fi
1694   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696   as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_run
1699
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709   $as_echo_n "(cached) " >&6
1710 else
1711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h.  */
1713 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1715 #define $2 innocuous_$2
1716
1717 /* System header to define __stub macros and hopefully few prototypes,
1718     which can conflict with char $2 (); below.
1719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1720     <limits.h> exists even on freestanding compilers.  */
1721
1722 #ifdef __STDC__
1723 # include <limits.h>
1724 #else
1725 # include <assert.h>
1726 #endif
1727
1728 #undef $2
1729
1730 /* Override any GCC internal prototype to avoid an error.
1731    Use char because int might match the return type of a GCC
1732    builtin and then its argument prototype would still apply.  */
1733 #ifdef __cplusplus
1734 extern "C"
1735 #endif
1736 char $2 ();
1737 /* The GNU C library defines this for functions which it implements
1738     to always fail with ENOSYS.  Some functions are actually named
1739     something starting with __ and the normal name is an alias.  */
1740 #if defined __stub_$2 || defined __stub___$2
1741 choke me
1742 #endif
1743
1744 int
1745 main ()
1746 {
1747 return $2 ();
1748   ;
1749   return 0;
1750 }
1751 _ACEOF
1752 if ac_fn_c_try_link "$LINENO"; then :
1753   eval "$3=yes"
1754 else
1755   eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext \
1758     conftest$ac_exeext conftest.$ac_ext
1759 fi
1760 eval ac_res=\$$3
1761                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_func
1766 cat >config.log <<_ACEOF
1767 This file contains any messages produced by compilers while
1768 running configure, to aid debugging if configure makes a mistake.
1769
1770 It was created by vlib $as_me 1.1, which was
1771 generated by GNU Autoconf 2.69.  Invocation command line was
1772
1773   $ $0 $@
1774
1775 _ACEOF
1776 exec 5>>config.log
1777 {
1778 cat <<_ASUNAME
1779 ## --------- ##
1780 ## Platform. ##
1781 ## --------- ##
1782
1783 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1784 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1785 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1786 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1787 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1788
1789 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1790 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1791
1792 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1793 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1794 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1795 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1796 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1797 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1798 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1799
1800 _ASUNAME
1801
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1804 do
1805   IFS=$as_save_IFS
1806   test -z "$as_dir" && as_dir=.
1807     $as_echo "PATH: $as_dir"
1808   done
1809 IFS=$as_save_IFS
1810
1811 } >&5
1812
1813 cat >&5 <<_ACEOF
1814
1815
1816 ## ----------- ##
1817 ## Core tests. ##
1818 ## ----------- ##
1819
1820 _ACEOF
1821
1822
1823 # Keep a trace of the command line.
1824 # Strip out --no-create and --no-recursion so they do not pile up.
1825 # Strip out --silent because we don't want to record it for future runs.
1826 # Also quote any args containing shell meta-characters.
1827 # Make two passes to allow for proper duplicate-argument suppression.
1828 ac_configure_args=
1829 ac_configure_args0=
1830 ac_configure_args1=
1831 ac_must_keep_next=false
1832 for ac_pass in 1 2
1833 do
1834   for ac_arg
1835   do
1836     case $ac_arg in
1837     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1838     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1839     | -silent | --silent | --silen | --sile | --sil)
1840       continue ;;
1841     *\'*)
1842       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1843     esac
1844     case $ac_pass in
1845     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1846     2)
1847       as_fn_append ac_configure_args1 " '$ac_arg'"
1848       if test $ac_must_keep_next = true; then
1849         ac_must_keep_next=false # Got value, back to normal.
1850       else
1851         case $ac_arg in
1852           *=* | --config-cache | -C | -disable-* | --disable-* \
1853           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1854           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1855           | -with-* | --with-* | -without-* | --without-* | --x)
1856             case "$ac_configure_args0 " in
1857               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1858             esac
1859             ;;
1860           -* ) ac_must_keep_next=true ;;
1861         esac
1862       fi
1863       as_fn_append ac_configure_args " '$ac_arg'"
1864       ;;
1865     esac
1866   done
1867 done
1868 { ac_configure_args0=; unset ac_configure_args0;}
1869 { ac_configure_args1=; unset ac_configure_args1;}
1870
1871 # When interrupted or exit'd, cleanup temporary files, and complete
1872 # config.log.  We remove comments because anyway the quotes in there
1873 # would cause problems or look ugly.
1874 # WARNING: Use '\'' to represent an apostrophe within the trap.
1875 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1876 trap 'exit_status=$?
1877   # Save into config.log some information that might help in debugging.
1878   {
1879     echo
1880
1881     $as_echo "## ---------------- ##
1882 ## Cache variables. ##
1883 ## ---------------- ##"
1884     echo
1885     # The following way of writing the cache mishandles newlines in values,
1886 (
1887   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1888     eval ac_val=\$$ac_var
1889     case $ac_val in #(
1890     *${as_nl}*)
1891       case $ac_var in #(
1892       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1894       esac
1895       case $ac_var in #(
1896       _ | IFS | as_nl) ;; #(
1897       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1898       *) { eval $ac_var=; unset $ac_var;} ;;
1899       esac ;;
1900     esac
1901   done
1902   (set) 2>&1 |
1903     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1904     *${as_nl}ac_space=\ *)
1905       sed -n \
1906         "s/'\''/'\''\\\\'\'''\''/g;
1907           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1908       ;; #(
1909     *)
1910       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1911       ;;
1912     esac |
1913     sort
1914 )
1915     echo
1916
1917     $as_echo "## ----------------- ##
1918 ## Output variables. ##
1919 ## ----------------- ##"
1920     echo
1921     for ac_var in $ac_subst_vars
1922     do
1923       eval ac_val=\$$ac_var
1924       case $ac_val in
1925       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926       esac
1927       $as_echo "$ac_var='\''$ac_val'\''"
1928     done | sort
1929     echo
1930
1931     if test -n "$ac_subst_files"; then
1932       $as_echo "## ------------------- ##
1933 ## File substitutions. ##
1934 ## ------------------- ##"
1935       echo
1936       for ac_var in $ac_subst_files
1937       do
1938         eval ac_val=\$$ac_var
1939         case $ac_val in
1940         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1941         esac
1942         $as_echo "$ac_var='\''$ac_val'\''"
1943       done | sort
1944       echo
1945     fi
1946
1947     if test -s confdefs.h; then
1948       $as_echo "## ----------- ##
1949 ## confdefs.h. ##
1950 ## ----------- ##"
1951       echo
1952       cat confdefs.h
1953       echo
1954     fi
1955     test "$ac_signal" != 0 &&
1956       $as_echo "$as_me: caught signal $ac_signal"
1957     $as_echo "$as_me: exit $exit_status"
1958   } >&5
1959   rm -f core *.core core.conftest.* &&
1960     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1961     exit $exit_status
1962 ' 0
1963 for ac_signal in 1 2 13 15; do
1964   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1965 done
1966 ac_signal=0
1967
1968 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1969 rm -f -r conftest* confdefs.h
1970
1971 $as_echo "/* confdefs.h */" > confdefs.h
1972
1973 # Predefined preprocessor variables.
1974
1975 cat >>confdefs.h <<_ACEOF
1976 #define PACKAGE_NAME "$PACKAGE_NAME"
1977 _ACEOF
1978
1979 cat >>confdefs.h <<_ACEOF
1980 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1981 _ACEOF
1982
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1985 _ACEOF
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_STRING "$PACKAGE_STRING"
1989 _ACEOF
1990
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1993 _ACEOF
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_URL "$PACKAGE_URL"
1997 _ACEOF
1998
1999
2000 # Let the site file select an alternate cache file if it wants to.
2001 # Prefer an explicitly selected file to automatically selected ones.
2002 ac_site_file1=NONE
2003 ac_site_file2=NONE
2004 if test -n "$CONFIG_SITE"; then
2005   # We do not want a PATH search for config.site.
2006   case $CONFIG_SITE in #((
2007     -*)  ac_site_file1=./$CONFIG_SITE;;
2008     */*) ac_site_file1=$CONFIG_SITE;;
2009     *)   ac_site_file1=./$CONFIG_SITE;;
2010   esac
2011 elif test "x$prefix" != xNONE; then
2012   ac_site_file1=$prefix/share/config.site
2013   ac_site_file2=$prefix/etc/config.site
2014 else
2015   ac_site_file1=$ac_default_prefix/share/config.site
2016   ac_site_file2=$ac_default_prefix/etc/config.site
2017 fi
2018 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2019 do
2020   test "x$ac_site_file" = xNONE && continue
2021   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2022     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2023 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2024     sed 's/^/| /' "$ac_site_file" >&5
2025     . "$ac_site_file" \
2026       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2028 as_fn_error $? "failed to load site script $ac_site_file
2029 See \`config.log' for more details" "$LINENO" 5; }
2030   fi
2031 done
2032
2033 if test -r "$cache_file"; then
2034   # Some versions of bash will fail to source /dev/null (special files
2035   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2036   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2037     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2038 $as_echo "$as_me: loading cache $cache_file" >&6;}
2039     case $cache_file in
2040       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2041       *)                      . "./$cache_file";;
2042     esac
2043   fi
2044 else
2045   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2046 $as_echo "$as_me: creating cache $cache_file" >&6;}
2047   >$cache_file
2048 fi
2049
2050 # Check that the precious variables saved in the cache have kept the same
2051 # value.
2052 ac_cache_corrupted=false
2053 for ac_var in $ac_precious_vars; do
2054   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2055   eval ac_new_set=\$ac_env_${ac_var}_set
2056   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2057   eval ac_new_val=\$ac_env_${ac_var}_value
2058   case $ac_old_set,$ac_new_set in
2059     set,)
2060       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2061 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2062       ac_cache_corrupted=: ;;
2063     ,set)
2064       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2065 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2066       ac_cache_corrupted=: ;;
2067     ,);;
2068     *)
2069       if test "x$ac_old_val" != "x$ac_new_val"; then
2070         # differences in whitespace do not lead to failure.
2071         ac_old_val_w=`echo x $ac_old_val`
2072         ac_new_val_w=`echo x $ac_new_val`
2073         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2074           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2075 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2076           ac_cache_corrupted=:
2077         else
2078           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2079 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2080           eval $ac_var=\$ac_old_val
2081         fi
2082         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2083 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2084         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2085 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2086       fi;;
2087   esac
2088   # Pass precious variables to config.status.
2089   if test "$ac_new_set" = set; then
2090     case $ac_new_val in
2091     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2092     *) ac_arg=$ac_var=$ac_new_val ;;
2093     esac
2094     case " $ac_configure_args " in
2095       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2096       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2097     esac
2098   fi
2099 done
2100 if $ac_cache_corrupted; then
2101   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2103   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2104 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2105   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2106 fi
2107 ## -------------------- ##
2108 ## Main body of script. ##
2109 ## -------------------- ##
2110
2111 ac_ext=c
2112 ac_cpp='$CPP $CPPFLAGS'
2113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2116
2117
2118 am__api_version='1.14'
2119
2120 ac_aux_dir=
2121 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2122   if test -f "$ac_dir/install-sh"; then
2123     ac_aux_dir=$ac_dir
2124     ac_install_sh="$ac_aux_dir/install-sh -c"
2125     break
2126   elif test -f "$ac_dir/install.sh"; then
2127     ac_aux_dir=$ac_dir
2128     ac_install_sh="$ac_aux_dir/install.sh -c"
2129     break
2130   elif test -f "$ac_dir/shtool"; then
2131     ac_aux_dir=$ac_dir
2132     ac_install_sh="$ac_aux_dir/shtool install -c"
2133     break
2134   fi
2135 done
2136 if test -z "$ac_aux_dir"; then
2137   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2138 fi
2139
2140 # These three variables are undocumented and unsupported,
2141 # and are intended to be withdrawn in a future Autoconf release.
2142 # They can cause serious problems if a builder's source tree is in a directory
2143 # whose full name contains unusual characters.
2144 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2145 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2146 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2147
2148
2149 # Find a good install program.  We prefer a C program (faster),
2150 # so one script is as good as another.  But avoid the broken or
2151 # incompatible versions:
2152 # SysV /etc/install, /usr/sbin/install
2153 # SunOS /usr/etc/install
2154 # IRIX /sbin/install
2155 # AIX /bin/install
2156 # AmigaOS /C/install, which installs bootblocks on floppy discs
2157 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2158 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2159 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2160 # OS/2's system install, which has a completely different semantic
2161 # ./install, which can be erroneously created by make from ./install.sh.
2162 # Reject install programs that cannot install multiple files.
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2164 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2165 if test -z "$INSTALL"; then
2166 if ${ac_cv_path_install+:} false; then :
2167   $as_echo_n "(cached) " >&6
2168 else
2169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172   IFS=$as_save_IFS
2173   test -z "$as_dir" && as_dir=.
2174     # Account for people who put trailing slashes in PATH elements.
2175 case $as_dir/ in #((
2176   ./ | .// | /[cC]/* | \
2177   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2178   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2179   /usr/ucb/* ) ;;
2180   *)
2181     # OSF1 and SCO ODT 3.0 have their own names for install.
2182     # Don't use installbsd from OSF since it installs stuff as root
2183     # by default.
2184     for ac_prog in ginstall scoinst install; do
2185       for ac_exec_ext in '' $ac_executable_extensions; do
2186         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2187           if test $ac_prog = install &&
2188             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2189             # AIX install.  It has an incompatible calling convention.
2190             :
2191           elif test $ac_prog = install &&
2192             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2193             # program-specific install script used by HP pwplus--don't use.
2194             :
2195           else
2196             rm -rf conftest.one conftest.two conftest.dir
2197             echo one > conftest.one
2198             echo two > conftest.two
2199             mkdir conftest.dir
2200             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2201               test -s conftest.one && test -s conftest.two &&
2202               test -s conftest.dir/conftest.one &&
2203               test -s conftest.dir/conftest.two
2204             then
2205               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2206               break 3
2207             fi
2208           fi
2209         fi
2210       done
2211     done
2212     ;;
2213 esac
2214
2215   done
2216 IFS=$as_save_IFS
2217
2218 rm -rf conftest.one conftest.two conftest.dir
2219
2220 fi
2221   if test "${ac_cv_path_install+set}" = set; then
2222     INSTALL=$ac_cv_path_install
2223   else
2224     # As a last resort, use the slow shell script.  Don't cache a
2225     # value for INSTALL within a source directory, because that will
2226     # break other packages using the cache if that directory is
2227     # removed, or if the value is a relative name.
2228     INSTALL=$ac_install_sh
2229   fi
2230 fi
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2232 $as_echo "$INSTALL" >&6; }
2233
2234 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2235 # It thinks the first close brace ends the variable substitution.
2236 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2237
2238 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2239
2240 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2241
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2243 $as_echo_n "checking whether build environment is sane... " >&6; }
2244 # Reject unsafe characters in $srcdir or the absolute working directory
2245 # name.  Accept space and tab only in the latter.
2246 am_lf='
2247 '
2248 case `pwd` in
2249   *[\\\"\#\$\&\'\`$am_lf]*)
2250     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2251 esac
2252 case $srcdir in
2253   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2254     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2255 esac
2256
2257 # Do 'set' in a subshell so we don't clobber the current shell's
2258 # arguments.  Must try -L first in case configure is actually a
2259 # symlink; some systems play weird games with the mod time of symlinks
2260 # (eg FreeBSD returns the mod time of the symlink's containing
2261 # directory).
2262 if (
2263    am_has_slept=no
2264    for am_try in 1 2; do
2265      echo "timestamp, slept: $am_has_slept" > conftest.file
2266      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2267      if test "$*" = "X"; then
2268         # -L didn't work.
2269         set X `ls -t "$srcdir/configure" conftest.file`
2270      fi
2271      if test "$*" != "X $srcdir/configure conftest.file" \
2272         && test "$*" != "X conftest.file $srcdir/configure"; then
2273
2274         # If neither matched, then we have a broken ls.  This can happen
2275         # if, for instance, CONFIG_SHELL is bash and it inherits a
2276         # broken ls alias from the environment.  This has actually
2277         # happened.  Such a system could not be considered "sane".
2278         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2279   alias in your environment" "$LINENO" 5
2280      fi
2281      if test "$2" = conftest.file || test $am_try -eq 2; then
2282        break
2283      fi
2284      # Just in case.
2285      sleep 1
2286      am_has_slept=yes
2287    done
2288    test "$2" = conftest.file
2289    )
2290 then
2291    # Ok.
2292    :
2293 else
2294    as_fn_error $? "newly created file is older than distributed files!
2295 Check your system clock" "$LINENO" 5
2296 fi
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2298 $as_echo "yes" >&6; }
2299 # If we didn't sleep, we still need to ensure time stamps of config.status and
2300 # generated files are strictly newer.
2301 am_sleep_pid=
2302 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2303   ( sleep 1 ) &
2304   am_sleep_pid=$!
2305 fi
2306
2307 rm -f conftest.file
2308
2309 test "$program_prefix" != NONE &&
2310   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2311 # Use a double $ so make ignores it.
2312 test "$program_suffix" != NONE &&
2313   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2314 # Double any \ or $.
2315 # By default was `s,x,x', remove it if useless.
2316 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2317 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2318
2319 # expand $ac_aux_dir to an absolute path
2320 am_aux_dir=`cd $ac_aux_dir && pwd`
2321
2322 if test x"${MISSING+set}" != xset; then
2323   case $am_aux_dir in
2324   *\ * | *\     *)
2325     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2326   *)
2327     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2328   esac
2329 fi
2330 # Use eval to expand $SHELL
2331 if eval "$MISSING --is-lightweight"; then
2332   am_missing_run="$MISSING "
2333 else
2334   am_missing_run=
2335   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2336 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2337 fi
2338
2339 if test x"${install_sh}" != xset; then
2340   case $am_aux_dir in
2341   *\ * | *\     *)
2342     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2343   *)
2344     install_sh="\${SHELL} $am_aux_dir/install-sh"
2345   esac
2346 fi
2347
2348 # Installed binaries are usually stripped using 'strip' when the user
2349 # run "make install-strip".  However 'strip' might not be the right
2350 # tool to use in cross-compilation environments, therefore Automake
2351 # will honor the 'STRIP' environment variable to overrule this program.
2352 if test "$cross_compiling" != no; then
2353   if test -n "$ac_tool_prefix"; then
2354   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2355 set dummy ${ac_tool_prefix}strip; ac_word=$2
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2357 $as_echo_n "checking for $ac_word... " >&6; }
2358 if ${ac_cv_prog_STRIP+:} false; then :
2359   $as_echo_n "(cached) " >&6
2360 else
2361   if test -n "$STRIP"; then
2362   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369     for ac_exec_ext in '' $ac_executable_extensions; do
2370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376   done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 STRIP=$ac_cv_prog_STRIP
2382 if test -n "$STRIP"; then
2383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2384 $as_echo "$STRIP" >&6; }
2385 else
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387 $as_echo "no" >&6; }
2388 fi
2389
2390
2391 fi
2392 if test -z "$ac_cv_prog_STRIP"; then
2393   ac_ct_STRIP=$STRIP
2394   # Extract the first word of "strip", so it can be a program name with args.
2395 set dummy strip; ac_word=$2
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2399   $as_echo_n "(cached) " >&6
2400 else
2401   if test -n "$ac_ct_STRIP"; then
2402   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407   IFS=$as_save_IFS
2408   test -z "$as_dir" && as_dir=.
2409     for ac_exec_ext in '' $ac_executable_extensions; do
2410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411     ac_cv_prog_ac_ct_STRIP="strip"
2412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413     break 2
2414   fi
2415 done
2416   done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2422 if test -n "$ac_ct_STRIP"; then
2423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2424 $as_echo "$ac_ct_STRIP" >&6; }
2425 else
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427 $as_echo "no" >&6; }
2428 fi
2429
2430   if test "x$ac_ct_STRIP" = x; then
2431     STRIP=":"
2432   else
2433     case $cross_compiling:$ac_tool_warned in
2434 yes:)
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2437 ac_tool_warned=yes ;;
2438 esac
2439     STRIP=$ac_ct_STRIP
2440   fi
2441 else
2442   STRIP="$ac_cv_prog_STRIP"
2443 fi
2444
2445 fi
2446 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2447
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2449 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2450 if test -z "$MKDIR_P"; then
2451   if ${ac_cv_path_mkdir+:} false; then :
2452   $as_echo_n "(cached) " >&6
2453 else
2454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459     for ac_prog in mkdir gmkdir; do
2460          for ac_exec_ext in '' $ac_executable_extensions; do
2461            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2462            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2463              'mkdir (GNU coreutils) '* | \
2464              'mkdir (coreutils) '* | \
2465              'mkdir (fileutils) '4.1*)
2466                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2467                break 3;;
2468            esac
2469          done
2470        done
2471   done
2472 IFS=$as_save_IFS
2473
2474 fi
2475
2476   test -d ./--version && rmdir ./--version
2477   if test "${ac_cv_path_mkdir+set}" = set; then
2478     MKDIR_P="$ac_cv_path_mkdir -p"
2479   else
2480     # As a last resort, use the slow shell script.  Don't cache a
2481     # value for MKDIR_P within a source directory, because that will
2482     # break other packages using the cache if that directory is
2483     # removed, or if the value is a relative name.
2484     MKDIR_P="$ac_install_sh -d"
2485   fi
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2488 $as_echo "$MKDIR_P" >&6; }
2489
2490 for ac_prog in gawk mawk nawk awk
2491 do
2492   # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy $ac_prog; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_AWK+:} false; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   if test -n "$AWK"; then
2500   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507     for ac_exec_ext in '' $ac_executable_extensions; do
2508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509     ac_cv_prog_AWK="$ac_prog"
2510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514   done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 AWK=$ac_cv_prog_AWK
2520 if test -n "$AWK"; then
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2522 $as_echo "$AWK" >&6; }
2523 else
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528
2529   test -n "$AWK" && break
2530 done
2531
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2533 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2534 set x ${MAKE-make}
2535 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2536 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2537   $as_echo_n "(cached) " >&6
2538 else
2539   cat >conftest.make <<\_ACEOF
2540 SHELL = /bin/sh
2541 all:
2542         @echo '@@@%%%=$(MAKE)=@@@%%%'
2543 _ACEOF
2544 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2545 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2546   *@@@%%%=?*=@@@%%%*)
2547     eval ac_cv_prog_make_${ac_make}_set=yes;;
2548   *)
2549     eval ac_cv_prog_make_${ac_make}_set=no;;
2550 esac
2551 rm -f conftest.make
2552 fi
2553 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555 $as_echo "yes" >&6; }
2556   SET_MAKE=
2557 else
2558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2560   SET_MAKE="MAKE=${MAKE-make}"
2561 fi
2562
2563 rm -rf .tst 2>/dev/null
2564 mkdir .tst 2>/dev/null
2565 if test -d .tst; then
2566   am__leading_dot=.
2567 else
2568   am__leading_dot=_
2569 fi
2570 rmdir .tst 2>/dev/null
2571
2572 # Check whether --enable-silent-rules was given.
2573 if test "${enable_silent_rules+set}" = set; then :
2574   enableval=$enable_silent_rules;
2575 fi
2576
2577 case $enable_silent_rules in # (((
2578   yes) AM_DEFAULT_VERBOSITY=0;;
2579    no) AM_DEFAULT_VERBOSITY=1;;
2580     *) AM_DEFAULT_VERBOSITY=1;;
2581 esac
2582 am_make=${MAKE-make}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2584 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2585 if ${am_cv_make_support_nested_variables+:} false; then :
2586   $as_echo_n "(cached) " >&6
2587 else
2588   if $as_echo 'TRUE=$(BAR$(V))
2589 BAR0=false
2590 BAR1=true
2591 V=1
2592 am__doit:
2593         @$(TRUE)
2594 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2595   am_cv_make_support_nested_variables=yes
2596 else
2597   am_cv_make_support_nested_variables=no
2598 fi
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2601 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2602 if test $am_cv_make_support_nested_variables = yes; then
2603     AM_V='$(V)'
2604   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2605 else
2606   AM_V=$AM_DEFAULT_VERBOSITY
2607   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2608 fi
2609 AM_BACKSLASH='\'
2610
2611 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2612   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2613   # is not polluted with repeated "-I."
2614   am__isrc=' -I$(srcdir)'
2615   # test to see if srcdir already configured
2616   if test -f $srcdir/config.status; then
2617     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2618   fi
2619 fi
2620
2621 # test whether we have cygpath
2622 if test -z "$CYGPATH_W"; then
2623   if (cygpath --version) >/dev/null 2>/dev/null; then
2624     CYGPATH_W='cygpath -w'
2625   else
2626     CYGPATH_W=echo
2627   fi
2628 fi
2629
2630
2631 # Define the identity of the package.
2632  PACKAGE='vlib'
2633  VERSION='1.1'
2634
2635
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE "$PACKAGE"
2638 _ACEOF
2639
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define VERSION "$VERSION"
2643 _ACEOF
2644
2645 # Some tools Automake needs.
2646
2647 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2648
2649
2650 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2651
2652
2653 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2654
2655
2656 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2657
2658
2659 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2660
2661 # For better backward compatibility.  To be removed once Automake 1.9.x
2662 # dies out for good.  For more background, see:
2663 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2664 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2665 mkdir_p='$(MKDIR_P)'
2666
2667 # We need awk for the "check" target.  The system "awk" is bad on
2668 # some platforms.
2669 # Always define AMTAR for backward compatibility.  Yes, it's still used
2670 # in the wild :-(  We should find a proper way to deprecate it ...
2671 AMTAR='$${TAR-tar}'
2672
2673
2674 # We'll loop over all known methods to create a tar archive until one works.
2675 _am_tools='gnutar  pax cpio none'
2676
2677 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2678
2679
2680
2681
2682
2683
2684 # POSIX will say in a future version that running "rm -f" with no argument
2685 # is OK; and we want to be able to make that assumption in our Makefile
2686 # recipes.  So use an aggressive probe to check that the usage we want is
2687 # actually supported "in the wild" to an acceptable degree.
2688 # See automake bug#10828.
2689 # To make any issue more visible, cause the running configure to be aborted
2690 # by default if the 'rm' program in use doesn't match our expectations; the
2691 # user can still override this though.
2692 if rm -f && rm -fr && rm -rf; then : OK; else
2693   cat >&2 <<'END'
2694 Oops!
2695
2696 Your 'rm' program seems unable to run without file operands specified
2697 on the command line, even when the '-f' option is present.  This is contrary
2698 to the behaviour of most rm programs out there, and not conforming with
2699 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2700
2701 Please tell bug-automake@gnu.org about your system, including the value
2702 of your $PATH and any error possibly output before this message.  This
2703 can help us improve future automake versions.
2704
2705 END
2706   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2707     echo 'Configuration will proceed anyway, since you have set the' >&2
2708     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2709     echo >&2
2710   else
2711     cat >&2 <<'END'
2712 Aborting the configuration process, to ensure you take notice of the issue.
2713
2714 You can download and install GNU coreutils to get an 'rm' implementation
2715 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2716
2717 If you want to complete the configuration process using your problematic
2718 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2719 to "yes", and re-run configure.
2720
2721 END
2722     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2723   fi
2724 fi
2725 # Check whether --enable-silent-rules was given.
2726 if test "${enable_silent_rules+set}" = set; then :
2727   enableval=$enable_silent_rules;
2728 fi
2729
2730 case $enable_silent_rules in # (((
2731   yes) AM_DEFAULT_VERBOSITY=0;;
2732    no) AM_DEFAULT_VERBOSITY=1;;
2733     *) AM_DEFAULT_VERBOSITY=1;;
2734 esac
2735 am_make=${MAKE-make}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2737 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2738 if ${am_cv_make_support_nested_variables+:} false; then :
2739   $as_echo_n "(cached) " >&6
2740 else
2741   if $as_echo 'TRUE=$(BAR$(V))
2742 BAR0=false
2743 BAR1=true
2744 V=1
2745 am__doit:
2746         @$(TRUE)
2747 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2748   am_cv_make_support_nested_variables=yes
2749 else
2750   am_cv_make_support_nested_variables=no
2751 fi
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2754 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2755 if test $am_cv_make_support_nested_variables = yes; then
2756     AM_V='$(V)'
2757   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2758 else
2759   AM_V=$AM_DEFAULT_VERBOSITY
2760   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2761 fi
2762 AM_BACKSLASH='\'
2763
2764
2765 ac_ext=c
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770 if test -n "$ac_tool_prefix"; then
2771   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_CC+:} false; then :
2776   $as_echo_n "(cached) " >&6
2777 else
2778   if test -n "$CC"; then
2779   ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786     for ac_exec_ext in '' $ac_executable_extensions; do
2787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793   done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 fi
2809 if test -z "$ac_cv_prog_CC"; then
2810   ac_ct_CC=$CC
2811   # Extract the first word of "gcc", so it can be a program name with args.
2812 set dummy gcc; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$ac_ct_CC"; then
2819   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828     ac_cv_prog_ac_ct_CC="gcc"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2841 $as_echo "$ac_ct_CC" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847   if test "x$ac_ct_CC" = x; then
2848     CC=""
2849   else
2850     case $cross_compiling:$ac_tool_warned in
2851 yes:)
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854 ac_tool_warned=yes ;;
2855 esac
2856     CC=$ac_ct_CC
2857   fi
2858 else
2859   CC="$ac_cv_prog_CC"
2860 fi
2861
2862 if test -z "$CC"; then
2863           if test -n "$ac_tool_prefix"; then
2864     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}cc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_CC+:} false; then :
2869   $as_echo_n "(cached) " >&6
2870 else
2871   if test -n "$CC"; then
2872   ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877   IFS=$as_save_IFS
2878   test -z "$as_dir" && as_dir=.
2879     for ac_exec_ext in '' $ac_executable_extensions; do
2880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881     ac_cv_prog_CC="${ac_tool_prefix}cc"
2882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883     break 2
2884   fi
2885 done
2886   done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2895 else
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900
2901   fi
2902 fi
2903 if test -z "$CC"; then
2904   # Extract the first word of "cc", so it can be a program name with args.
2905 set dummy cc; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if ${ac_cv_prog_CC+:} false; then :
2909   $as_echo_n "(cached) " >&6
2910 else
2911   if test -n "$CC"; then
2912   ac_cv_prog_CC="$CC" # Let the user override the test.
2913 else
2914   ac_prog_rejected=no
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918   IFS=$as_save_IFS
2919   test -z "$as_dir" && as_dir=.
2920     for ac_exec_ext in '' $ac_executable_extensions; do
2921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2923        ac_prog_rejected=yes
2924        continue
2925      fi
2926     ac_cv_prog_CC="cc"
2927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931   done
2932 IFS=$as_save_IFS
2933
2934 if test $ac_prog_rejected = yes; then
2935   # We found a bogon in the path, so make sure we never use it.
2936   set dummy $ac_cv_prog_CC
2937   shift
2938   if test $# != 0; then
2939     # We chose a different compiler from the bogus one.
2940     # However, it has the same basename, so the bogon will be chosen
2941     # first if we set CC to just the basename; use the full file name.
2942     shift
2943     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2944   fi
2945 fi
2946 fi
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958 fi
2959 if test -z "$CC"; then
2960   if test -n "$ac_tool_prefix"; then
2961   for ac_prog in cl.exe
2962   do
2963     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   if test -n "$CC"; then
2971   ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978     for ac_exec_ext in '' $ac_executable_extensions; do
2979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985   done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2994 else
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000     test -n "$CC" && break
3001   done
3002 fi
3003 if test -z "$CC"; then
3004   ac_ct_CC=$CC
3005   for ac_prog in cl.exe
3006 do
3007   # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy $ac_prog; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   if test -n "$ac_ct_CC"; then
3015   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020   IFS=$as_save_IFS
3021   test -z "$as_dir" && as_dir=.
3022     for ac_exec_ext in '' $ac_executable_extensions; do
3023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024     ac_cv_prog_ac_ct_CC="$ac_prog"
3025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026     break 2
3027   fi
3028 done
3029   done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035 if test -n "$ac_ct_CC"; then
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037 $as_echo "$ac_ct_CC" >&6; }
3038 else
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044   test -n "$ac_ct_CC" && break
3045 done
3046
3047   if test "x$ac_ct_CC" = x; then
3048     CC=""
3049   else
3050     case $cross_compiling:$ac_tool_warned in
3051 yes:)
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054 ac_tool_warned=yes ;;
3055 esac
3056     CC=$ac_ct_CC
3057   fi
3058 fi
3059
3060 fi
3061
3062
3063 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065 as_fn_error $? "no acceptable C compiler found in \$PATH
3066 See \`config.log' for more details" "$LINENO" 5; }
3067
3068 # Provide some information about the compiler.
3069 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3070 set X $ac_compile
3071 ac_compiler=$2
3072 for ac_option in --version -v -V -qversion; do
3073   { { ac_try="$ac_compiler $ac_option >&5"
3074 case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3081   ac_status=$?
3082   if test -s conftest.err; then
3083     sed '10a\
3084 ... rest of stderr output deleted ...
3085          10q' conftest.err >conftest.er1
3086     cat conftest.er1 >&5
3087   fi
3088   rm -f conftest.er1 conftest.err
3089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090   test $ac_status = 0; }
3091 done
3092
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h.  */
3095
3096 int
3097 main ()
3098 {
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 ac_clean_files_save=$ac_clean_files
3105 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3106 # Try to create an executable without -o first, disregard a.out.
3107 # It will help us diagnose broken compilers, and finding out an intuition
3108 # of exeext.
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3110 $as_echo_n "checking whether the C compiler works... " >&6; }
3111 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3112
3113 # The possible output files:
3114 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3115
3116 ac_rmfiles=
3117 for ac_file in $ac_files
3118 do
3119   case $ac_file in
3120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3121     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3122   esac
3123 done
3124 rm -f $ac_rmfiles
3125
3126 if { { ac_try="$ac_link_default"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133   (eval "$ac_link_default") 2>&5
3134   ac_status=$?
3135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136   test $ac_status = 0; }; then :
3137   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3138 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3139 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3140 # so that the user can short-circuit this test for compilers unknown to
3141 # Autoconf.
3142 for ac_file in $ac_files ''
3143 do
3144   test -f "$ac_file" || continue
3145   case $ac_file in
3146     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3147         ;;
3148     [ab].out )
3149         # We found the default executable, but exeext='' is most
3150         # certainly right.
3151         break;;
3152     *.* )
3153         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3154         then :; else
3155            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3156         fi
3157         # We set ac_cv_exeext here because the later test for it is not
3158         # safe: cross compilers may not add the suffix if given an `-o'
3159         # argument, so we may need to know it at that point already.
3160         # Even if this section looks crufty: it has the advantage of
3161         # actually working.
3162         break;;
3163     * )
3164         break;;
3165   esac
3166 done
3167 test "$ac_cv_exeext" = no && ac_cv_exeext=
3168
3169 else
3170   ac_file=''
3171 fi
3172 if test -z "$ac_file"; then :
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 $as_echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error 77 "C compiler cannot create executables
3181 See \`config.log' for more details" "$LINENO" 5; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184 $as_echo "yes" >&6; }
3185 fi
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3187 $as_echo_n "checking for C compiler default output file name... " >&6; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3189 $as_echo "$ac_file" >&6; }
3190 ac_exeext=$ac_cv_exeext
3191
3192 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3193 ac_clean_files=$ac_clean_files_save
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3195 $as_echo_n "checking for suffix of executables... " >&6; }
3196 if { { ac_try="$ac_link"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203   (eval "$ac_link") 2>&5
3204   ac_status=$?
3205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206   test $ac_status = 0; }; then :
3207   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3208 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3209 # work properly (i.e., refer to `conftest.exe'), while it won't with
3210 # `rm'.
3211 for ac_file in conftest.exe conftest conftest.*; do
3212   test -f "$ac_file" || continue
3213   case $ac_file in
3214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3215     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216           break;;
3217     * ) break;;
3218   esac
3219 done
3220 else
3221   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3224 See \`config.log' for more details" "$LINENO" 5; }
3225 fi
3226 rm -f conftest conftest$ac_cv_exeext
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3228 $as_echo "$ac_cv_exeext" >&6; }
3229
3230 rm -f conftest.$ac_ext
3231 EXEEXT=$ac_cv_exeext
3232 ac_exeext=$EXEEXT
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h.  */
3235 #include <stdio.h>
3236 int
3237 main ()
3238 {
3239 FILE *f = fopen ("conftest.out", "w");
3240  return ferror (f) || fclose (f) != 0;
3241
3242   ;
3243   return 0;
3244 }
3245 _ACEOF
3246 ac_clean_files="$ac_clean_files conftest.out"
3247 # Check that the compiler produces executables we can run.  If not, either
3248 # the compiler is broken, or we cross compile.
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3250 $as_echo_n "checking whether we are cross compiling... " >&6; }
3251 if test "$cross_compiling" != yes; then
3252   { { ac_try="$ac_link"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259   (eval "$ac_link") 2>&5
3260   ac_status=$?
3261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262   test $ac_status = 0; }
3263   if { ac_try='./conftest$ac_cv_exeext'
3264   { { case "(($ac_try" in
3265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266   *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270   (eval "$ac_try") 2>&5
3271   ac_status=$?
3272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273   test $ac_status = 0; }; }; then
3274     cross_compiling=no
3275   else
3276     if test "$cross_compiling" = maybe; then
3277         cross_compiling=yes
3278     else
3279         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error $? "cannot run C compiled programs.
3282 If you meant to cross compile, use \`--host'.
3283 See \`config.log' for more details" "$LINENO" 5; }
3284     fi
3285   fi
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3288 $as_echo "$cross_compiling" >&6; }
3289
3290 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3293 $as_echo_n "checking for suffix of object files... " >&6; }
3294 if ${ac_cv_objext+:} false; then :
3295   $as_echo_n "(cached) " >&6
3296 else
3297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h.  */
3299
3300 int
3301 main ()
3302 {
3303
3304   ;
3305   return 0;
3306 }
3307 _ACEOF
3308 rm -f conftest.o conftest.obj
3309 if { { ac_try="$ac_compile"
3310 case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 $as_echo "$ac_try_echo"; } >&5
3316   (eval "$ac_compile") 2>&5
3317   ac_status=$?
3318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319   test $ac_status = 0; }; then :
3320   for ac_file in conftest.o conftest.obj conftest.*; do
3321   test -f "$ac_file" || continue;
3322   case $ac_file in
3323     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3324     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3325        break;;
3326   esac
3327 done
3328 else
3329   $as_echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error $? "cannot compute suffix of object files: cannot compile
3335 See \`config.log' for more details" "$LINENO" 5; }
3336 fi
3337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3340 $as_echo "$ac_cv_objext" >&6; }
3341 OBJEXT=$ac_cv_objext
3342 ac_objext=$OBJEXT
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3344 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3345 if ${ac_cv_c_compiler_gnu+:} false; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h.  */
3350
3351 int
3352 main ()
3353 {
3354 #ifndef __GNUC__
3355        choke me
3356 #endif
3357
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"; then :
3363   ac_compiler_gnu=yes
3364 else
3365   ac_compiler_gnu=no
3366 fi
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3372 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3373 if test $ac_compiler_gnu = yes; then
3374   GCC=yes
3375 else
3376   GCC=
3377 fi
3378 ac_test_CFLAGS=${CFLAGS+set}
3379 ac_save_CFLAGS=$CFLAGS
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3381 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3382 if ${ac_cv_prog_cc_g+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   ac_save_c_werror_flag=$ac_c_werror_flag
3386    ac_c_werror_flag=yes
3387    ac_cv_prog_cc_g=no
3388    CFLAGS="-g"
3389    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 if ac_fn_c_try_compile "$LINENO"; then :
3401   ac_cv_prog_cc_g=yes
3402 else
3403   CFLAGS=""
3404       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h.  */
3406
3407 int
3408 main ()
3409 {
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 if ac_fn_c_try_compile "$LINENO"; then :
3416
3417 else
3418   ac_c_werror_flag=$ac_save_c_werror_flag
3419          CFLAGS="-g"
3420          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h.  */
3422
3423 int
3424 main ()
3425 {
3426
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432   ac_cv_prog_cc_g=yes
3433 fi
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 fi
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439    ac_c_werror_flag=$ac_save_c_werror_flag
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3442 $as_echo "$ac_cv_prog_cc_g" >&6; }
3443 if test "$ac_test_CFLAGS" = set; then
3444   CFLAGS=$ac_save_CFLAGS
3445 elif test $ac_cv_prog_cc_g = yes; then
3446   if test "$GCC" = yes; then
3447     CFLAGS="-g -O2"
3448   else
3449     CFLAGS="-g"
3450   fi
3451 else
3452   if test "$GCC" = yes; then
3453     CFLAGS="-O2"
3454   else
3455     CFLAGS=
3456   fi
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3459 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3460 if ${ac_cv_prog_cc_c89+:} false; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   ac_cv_prog_cc_c89=no
3464 ac_save_CC=$CC
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h.  */
3467 #include <stdarg.h>
3468 #include <stdio.h>
3469 struct stat;
3470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3471 struct buf { int x; };
3472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3473 static char *e (p, i)
3474      char **p;
3475      int i;
3476 {
3477   return p[i];
3478 }
3479 static char *f (char * (*g) (char **, int), char **p, ...)
3480 {
3481   char *s;
3482   va_list v;
3483   va_start (v,p);
3484   s = g (p, va_arg (v,int));
3485   va_end (v);
3486   return s;
3487 }
3488
3489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3490    function prototypes and stuff, but not '\xHH' hex character constants.
3491    These don't provoke an error unfortunately, instead are silently treated
3492    as 'x'.  The following induces an error, until -std is added to get
3493    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3494    array size at least.  It's necessary to write '\x00'==0 to get something
3495    that's true only with -std.  */
3496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3497
3498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3499    inside strings and character constants.  */
3500 #define FOO(x) 'x'
3501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3502
3503 int test (int i, double x);
3504 struct s1 {int (*f) (int a);};
3505 struct s2 {int (*f) (double a);};
3506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3507 int argc;
3508 char **argv;
3509 int
3510 main ()
3511 {
3512 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3518         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3519 do
3520   CC="$ac_save_CC $ac_arg"
3521   if ac_fn_c_try_compile "$LINENO"; then :
3522   ac_cv_prog_cc_c89=$ac_arg
3523 fi
3524 rm -f core conftest.err conftest.$ac_objext
3525   test "x$ac_cv_prog_cc_c89" != "xno" && break
3526 done
3527 rm -f conftest.$ac_ext
3528 CC=$ac_save_CC
3529
3530 fi
3531 # AC_CACHE_VAL
3532 case "x$ac_cv_prog_cc_c89" in
3533   x)
3534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3535 $as_echo "none needed" >&6; } ;;
3536   xno)
3537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3538 $as_echo "unsupported" >&6; } ;;
3539   *)
3540     CC="$CC $ac_cv_prog_cc_c89"
3541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3543 esac
3544 if test "x$ac_cv_prog_cc_c89" != xno; then :
3545
3546 fi
3547
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553
3554 ac_ext=c
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3560 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3561 if ${am_cv_prog_cc_c_o+:} false; then :
3562   $as_echo_n "(cached) " >&6
3563 else
3564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h.  */
3566
3567 int
3568 main ()
3569 {
3570
3571   ;
3572   return 0;
3573 }
3574 _ACEOF
3575   # Make sure it works both with $CC and with simple cc.
3576   # Following AC_PROG_CC_C_O, we do the test twice because some
3577   # compilers refuse to overwrite an existing .o file with -o,
3578   # though they will create one.
3579   am_cv_prog_cc_c_o=yes
3580   for am_i in 1 2; do
3581     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3582    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3583    ac_status=$?
3584    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585    (exit $ac_status); } \
3586          && test -f conftest2.$ac_objext; then
3587       : OK
3588     else
3589       am_cv_prog_cc_c_o=no
3590       break
3591     fi
3592   done
3593   rm -f core conftest*
3594   unset am_i
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3597 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3598 if test "$am_cv_prog_cc_c_o" != yes; then
3599    # Losing compiler, so override with the script.
3600    # FIXME: It is wrong to rewrite CC.
3601    # But if we don't then we get into trouble of one sort or another.
3602    # A longer-term fix would be to have automake use am__CC in this case,
3603    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3604    CC="$am_aux_dir/compile $CC"
3605 fi
3606 ac_ext=c
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611
3612 DEPDIR="${am__leading_dot}deps"
3613
3614 ac_config_commands="$ac_config_commands depfiles"
3615
3616
3617 am_make=${MAKE-make}
3618 cat > confinc << 'END'
3619 am__doit:
3620         @echo this is the am__doit target
3621 .PHONY: am__doit
3622 END
3623 # If we don't find an include directive, just comment out the code.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3625 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3626 am__include="#"
3627 am__quote=
3628 _am_result=none
3629 # First try GNU make style include.
3630 echo "include confinc" > confmf
3631 # Ignore all kinds of additional output from 'make'.
3632 case `$am_make -s -f confmf 2> /dev/null` in #(
3633 *the\ am__doit\ target*)
3634   am__include=include
3635   am__quote=
3636   _am_result=GNU
3637   ;;
3638 esac
3639 # Now try BSD make style include.
3640 if test "$am__include" = "#"; then
3641    echo '.include "confinc"' > confmf
3642    case `$am_make -s -f confmf 2> /dev/null` in #(
3643    *the\ am__doit\ target*)
3644      am__include=.include
3645      am__quote="\""
3646      _am_result=BSD
3647      ;;
3648    esac
3649 fi
3650
3651
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3653 $as_echo "$_am_result" >&6; }
3654 rm -f confinc confmf
3655
3656 # Check whether --enable-dependency-tracking was given.
3657 if test "${enable_dependency_tracking+set}" = set; then :
3658   enableval=$enable_dependency_tracking;
3659 fi
3660
3661 if test "x$enable_dependency_tracking" != xno; then
3662   am_depcomp="$ac_aux_dir/depcomp"
3663   AMDEPBACKSLASH='\'
3664   am__nodep='_no'
3665 fi
3666  if test "x$enable_dependency_tracking" != xno; then
3667   AMDEP_TRUE=
3668   AMDEP_FALSE='#'
3669 else
3670   AMDEP_TRUE='#'
3671   AMDEP_FALSE=
3672 fi
3673
3674
3675
3676 depcc="$CC"   am_compiler_list=
3677
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3679 $as_echo_n "checking dependency style of $depcc... " >&6; }
3680 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3681   $as_echo_n "(cached) " >&6
3682 else
3683   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3684   # We make a subdir and do the tests there.  Otherwise we can end up
3685   # making bogus files that we don't know about and never remove.  For
3686   # instance it was reported that on HP-UX the gcc test will end up
3687   # making a dummy file named 'D' -- because '-MD' means "put the output
3688   # in D".
3689   rm -rf conftest.dir
3690   mkdir conftest.dir
3691   # Copy depcomp to subdir because otherwise we won't find it if we're
3692   # using a relative directory.
3693   cp "$am_depcomp" conftest.dir
3694   cd conftest.dir
3695   # We will build objects and dependencies in a subdirectory because
3696   # it helps to detect inapplicable dependency modes.  For instance
3697   # both Tru64's cc and ICC support -MD to output dependencies as a
3698   # side effect of compilation, but ICC will put the dependencies in
3699   # the current directory while Tru64 will put them in the object
3700   # directory.
3701   mkdir sub
3702
3703   am_cv_CC_dependencies_compiler_type=none
3704   if test "$am_compiler_list" = ""; then
3705      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3706   fi
3707   am__universal=false
3708   case " $depcc " in #(
3709      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3710      esac
3711
3712   for depmode in $am_compiler_list; do
3713     # Setup a source with many dependencies, because some compilers
3714     # like to wrap large dependency lists on column 80 (with \), and
3715     # we should not choose a depcomp mode which is confused by this.
3716     #
3717     # We need to recreate these files for each test, as the compiler may
3718     # overwrite some of them when testing with obscure command lines.
3719     # This happens at least with the AIX C compiler.
3720     : > sub/conftest.c
3721     for i in 1 2 3 4 5 6; do
3722       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3723       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3724       # Solaris 10 /bin/sh.
3725       echo '/* dummy */' > sub/conftst$i.h
3726     done
3727     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3728
3729     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3730     # mode.  It turns out that the SunPro C++ compiler does not properly
3731     # handle '-M -o', and we need to detect this.  Also, some Intel
3732     # versions had trouble with output in subdirs.
3733     am__obj=sub/conftest.${OBJEXT-o}
3734     am__minus_obj="-o $am__obj"
3735     case $depmode in
3736     gcc)
3737       # This depmode causes a compiler race in universal mode.
3738       test "$am__universal" = false || continue
3739       ;;
3740     nosideeffect)
3741       # After this tag, mechanisms are not by side-effect, so they'll
3742       # only be used when explicitly requested.
3743       if test "x$enable_dependency_tracking" = xyes; then
3744         continue
3745       else
3746         break
3747       fi
3748       ;;
3749     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3750       # This compiler won't grok '-c -o', but also, the minuso test has
3751       # not run yet.  These depmodes are late enough in the game, and
3752       # so weak that their functioning should not be impacted.
3753       am__obj=conftest.${OBJEXT-o}
3754       am__minus_obj=
3755       ;;
3756     none) break ;;
3757     esac
3758     if depmode=$depmode \
3759        source=sub/conftest.c object=$am__obj \
3760        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3761        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3762          >/dev/null 2>conftest.err &&
3763        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3764        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3765        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3766        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3767       # icc doesn't choke on unknown options, it will just issue warnings
3768       # or remarks (even with -Werror).  So we grep stderr for any message
3769       # that says an option was ignored or not supported.
3770       # When given -MP, icc 7.0 and 7.1 complain thusly:
3771       #   icc: Command line warning: ignoring option '-M'; no argument required
3772       # The diagnosis changed in icc 8.0:
3773       #   icc: Command line remark: option '-MP' not supported
3774       if (grep 'ignoring option' conftest.err ||
3775           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3776         am_cv_CC_dependencies_compiler_type=$depmode
3777         break
3778       fi
3779     fi
3780   done
3781
3782   cd ..
3783   rm -rf conftest.dir
3784 else
3785   am_cv_CC_dependencies_compiler_type=none
3786 fi
3787
3788 fi
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3790 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3791 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3792
3793  if
3794   test "x$enable_dependency_tracking" != xno \
3795   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3796   am__fastdepCC_TRUE=
3797   am__fastdepCC_FALSE='#'
3798 else
3799   am__fastdepCC_TRUE='#'
3800   am__fastdepCC_FALSE=
3801 fi
3802
3803
3804
3805 case `pwd` in
3806   *\ * | *\     *)
3807     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3808 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3809 esac
3810
3811
3812
3813 macro_version='2.4.2'
3814 macro_revision='1.3337'
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828 ltmain="$ac_aux_dir/ltmain.sh"
3829
3830 # Make sure we can run config.sub.
3831 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3832   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3833
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3835 $as_echo_n "checking build system type... " >&6; }
3836 if ${ac_cv_build+:} false; then :
3837   $as_echo_n "(cached) " >&6
3838 else
3839   ac_build_alias=$build_alias
3840 test "x$ac_build_alias" = x &&
3841   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3842 test "x$ac_build_alias" = x &&
3843   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3844 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3845   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3846
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3849 $as_echo "$ac_cv_build" >&6; }
3850 case $ac_cv_build in
3851 *-*-*) ;;
3852 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3853 esac
3854 build=$ac_cv_build
3855 ac_save_IFS=$IFS; IFS='-'
3856 set x $ac_cv_build
3857 shift
3858 build_cpu=$1
3859 build_vendor=$2
3860 shift; shift
3861 # Remember, the first character of IFS is used to create $*,
3862 # except with old shells:
3863 build_os=$*
3864 IFS=$ac_save_IFS
3865 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3866
3867
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3869 $as_echo_n "checking host system type... " >&6; }
3870 if ${ac_cv_host+:} false; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   if test "x$host_alias" = x; then
3874   ac_cv_host=$ac_cv_build
3875 else
3876   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3877     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3878 fi
3879
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3882 $as_echo "$ac_cv_host" >&6; }
3883 case $ac_cv_host in
3884 *-*-*) ;;
3885 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3886 esac
3887 host=$ac_cv_host
3888 ac_save_IFS=$IFS; IFS='-'
3889 set x $ac_cv_host
3890 shift
3891 host_cpu=$1
3892 host_vendor=$2
3893 shift; shift
3894 # Remember, the first character of IFS is used to create $*,
3895 # except with old shells:
3896 host_os=$*
3897 IFS=$ac_save_IFS
3898 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3899
3900
3901 # Backslashify metacharacters that are still active within
3902 # double-quoted strings.
3903 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3904
3905 # Same as above, but do not quote variable references.
3906 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3907
3908 # Sed substitution to delay expansion of an escaped shell variable in a
3909 # double_quote_subst'ed string.
3910 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3911
3912 # Sed substitution to delay expansion of an escaped single quote.
3913 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3914
3915 # Sed substitution to avoid accidental globbing in evaled expressions
3916 no_glob_subst='s/\*/\\\*/g'
3917
3918 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3919 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3920 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3921
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3923 $as_echo_n "checking how to print strings... " >&6; }
3924 # Test print first, because it will be a builtin if present.
3925 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3926    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3927   ECHO='print -r --'
3928 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3929   ECHO='printf %s\n'
3930 else
3931   # Use this function as a fallback that always works.
3932   func_fallback_echo ()
3933   {
3934     eval 'cat <<_LTECHO_EOF
3935 $1
3936 _LTECHO_EOF'
3937   }
3938   ECHO='func_fallback_echo'
3939 fi
3940
3941 # func_echo_all arg...
3942 # Invoke $ECHO with all args, space-separated.
3943 func_echo_all ()
3944 {
3945     $ECHO ""
3946 }
3947
3948 case "$ECHO" in
3949   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3950 $as_echo "printf" >&6; } ;;
3951   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3952 $as_echo "print -r" >&6; } ;;
3953   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3954 $as_echo "cat" >&6; } ;;
3955 esac
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3971 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3972 if ${ac_cv_path_SED+:} false; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3976      for ac_i in 1 2 3 4 5 6 7; do
3977        ac_script="$ac_script$as_nl$ac_script"
3978      done
3979      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3980      { ac_script=; unset ac_script;}
3981      if test -z "$SED"; then
3982   ac_path_SED_found=false
3983   # Loop through the user's path and test for each of PROGNAME-LIST
3984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987   IFS=$as_save_IFS
3988   test -z "$as_dir" && as_dir=.
3989     for ac_prog in sed gsed; do
3990     for ac_exec_ext in '' $ac_executable_extensions; do
3991       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3992       as_fn_executable_p "$ac_path_SED" || continue
3993 # Check for GNU ac_path_SED and select it if it is found.
3994   # Check for GNU $ac_path_SED
3995 case `"$ac_path_SED" --version 2>&1` in
3996 *GNU*)
3997   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3998 *)
3999   ac_count=0
4000   $as_echo_n 0123456789 >"conftest.in"
4001   while :
4002   do
4003     cat "conftest.in" "conftest.in" >"conftest.tmp"
4004     mv "conftest.tmp" "conftest.in"
4005     cp "conftest.in" "conftest.nl"
4006     $as_echo '' >> "conftest.nl"
4007     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009     as_fn_arith $ac_count + 1 && ac_count=$as_val
4010     if test $ac_count -gt ${ac_path_SED_max-0}; then
4011       # Best one so far, save it but keep looking for a better one
4012       ac_cv_path_SED="$ac_path_SED"
4013       ac_path_SED_max=$ac_count
4014     fi
4015     # 10*(2^10) chars as input seems more than enough
4016     test $ac_count -gt 10 && break
4017   done
4018   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019 esac
4020
4021       $ac_path_SED_found && break 3
4022     done
4023   done
4024   done
4025 IFS=$as_save_IFS
4026   if test -z "$ac_cv_path_SED"; then
4027     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4028   fi
4029 else
4030   ac_cv_path_SED=$SED
4031 fi
4032
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4035 $as_echo "$ac_cv_path_SED" >&6; }
4036  SED="$ac_cv_path_SED"
4037   rm -f conftest.sed
4038
4039 test -z "$SED" && SED=sed
4040 Xsed="$SED -e 1s/^X//"
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4053 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4054 if ${ac_cv_path_GREP+:} false; then :
4055   $as_echo_n "(cached) " >&6
4056 else
4057   if test -z "$GREP"; then
4058   ac_path_GREP_found=false
4059   # Loop through the user's path and test for each of PROGNAME-LIST
4060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062 do
4063   IFS=$as_save_IFS
4064   test -z "$as_dir" && as_dir=.
4065     for ac_prog in grep ggrep; do
4066     for ac_exec_ext in '' $ac_executable_extensions; do
4067       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4068       as_fn_executable_p "$ac_path_GREP" || continue
4069 # Check for GNU ac_path_GREP and select it if it is found.
4070   # Check for GNU $ac_path_GREP
4071 case `"$ac_path_GREP" --version 2>&1` in
4072 *GNU*)
4073   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4074 *)
4075   ac_count=0
4076   $as_echo_n 0123456789 >"conftest.in"
4077   while :
4078   do
4079     cat "conftest.in" "conftest.in" >"conftest.tmp"
4080     mv "conftest.tmp" "conftest.in"
4081     cp "conftest.in" "conftest.nl"
4082     $as_echo 'GREP' >> "conftest.nl"
4083     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085     as_fn_arith $ac_count + 1 && ac_count=$as_val
4086     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4087       # Best one so far, save it but keep looking for a better one
4088       ac_cv_path_GREP="$ac_path_GREP"
4089       ac_path_GREP_max=$ac_count
4090     fi
4091     # 10*(2^10) chars as input seems more than enough
4092     test $ac_count -gt 10 && break
4093   done
4094   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095 esac
4096
4097       $ac_path_GREP_found && break 3
4098     done
4099   done
4100   done
4101 IFS=$as_save_IFS
4102   if test -z "$ac_cv_path_GREP"; then
4103     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4104   fi
4105 else
4106   ac_cv_path_GREP=$GREP
4107 fi
4108
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4111 $as_echo "$ac_cv_path_GREP" >&6; }
4112  GREP="$ac_cv_path_GREP"
4113
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4116 $as_echo_n "checking for egrep... " >&6; }
4117 if ${ac_cv_path_EGREP+:} false; then :
4118   $as_echo_n "(cached) " >&6
4119 else
4120   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4121    then ac_cv_path_EGREP="$GREP -E"
4122    else
4123      if test -z "$EGREP"; then
4124   ac_path_EGREP_found=false
4125   # Loop through the user's path and test for each of PROGNAME-LIST
4126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131     for ac_prog in egrep; do
4132     for ac_exec_ext in '' $ac_executable_extensions; do
4133       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4134       as_fn_executable_p "$ac_path_EGREP" || continue
4135 # Check for GNU ac_path_EGREP and select it if it is found.
4136   # Check for GNU $ac_path_EGREP
4137 case `"$ac_path_EGREP" --version 2>&1` in
4138 *GNU*)
4139   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4140 *)
4141   ac_count=0
4142   $as_echo_n 0123456789 >"conftest.in"
4143   while :
4144   do
4145     cat "conftest.in" "conftest.in" >"conftest.tmp"
4146     mv "conftest.tmp" "conftest.in"
4147     cp "conftest.in" "conftest.nl"
4148     $as_echo 'EGREP' >> "conftest.nl"
4149     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4151     as_fn_arith $ac_count + 1 && ac_count=$as_val
4152     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4153       # Best one so far, save it but keep looking for a better one
4154       ac_cv_path_EGREP="$ac_path_EGREP"
4155       ac_path_EGREP_max=$ac_count
4156     fi
4157     # 10*(2^10) chars as input seems more than enough
4158     test $ac_count -gt 10 && break
4159   done
4160   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161 esac
4162
4163       $ac_path_EGREP_found && break 3
4164     done
4165   done
4166   done
4167 IFS=$as_save_IFS
4168   if test -z "$ac_cv_path_EGREP"; then
4169     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4170   fi
4171 else
4172   ac_cv_path_EGREP=$EGREP
4173 fi
4174
4175    fi
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4178 $as_echo "$ac_cv_path_EGREP" >&6; }
4179  EGREP="$ac_cv_path_EGREP"
4180
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4183 $as_echo_n "checking for fgrep... " >&6; }
4184 if ${ac_cv_path_FGREP+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4188    then ac_cv_path_FGREP="$GREP -F"
4189    else
4190      if test -z "$FGREP"; then
4191   ac_path_FGREP_found=false
4192   # Loop through the user's path and test for each of PROGNAME-LIST
4193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198     for ac_prog in fgrep; do
4199     for ac_exec_ext in '' $ac_executable_extensions; do
4200       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4201       as_fn_executable_p "$ac_path_FGREP" || continue
4202 # Check for GNU ac_path_FGREP and select it if it is found.
4203   # Check for GNU $ac_path_FGREP
4204 case `"$ac_path_FGREP" --version 2>&1` in
4205 *GNU*)
4206   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4207 *)
4208   ac_count=0
4209   $as_echo_n 0123456789 >"conftest.in"
4210   while :
4211   do
4212     cat "conftest.in" "conftest.in" >"conftest.tmp"
4213     mv "conftest.tmp" "conftest.in"
4214     cp "conftest.in" "conftest.nl"
4215     $as_echo 'FGREP' >> "conftest.nl"
4216     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4217     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4218     as_fn_arith $ac_count + 1 && ac_count=$as_val
4219     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4220       # Best one so far, save it but keep looking for a better one
4221       ac_cv_path_FGREP="$ac_path_FGREP"
4222       ac_path_FGREP_max=$ac_count
4223     fi
4224     # 10*(2^10) chars as input seems more than enough
4225     test $ac_count -gt 10 && break
4226   done
4227   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4228 esac
4229
4230       $ac_path_FGREP_found && break 3
4231     done
4232   done
4233   done
4234 IFS=$as_save_IFS
4235   if test -z "$ac_cv_path_FGREP"; then
4236     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4237   fi
4238 else
4239   ac_cv_path_FGREP=$FGREP
4240 fi
4241
4242    fi
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4245 $as_echo "$ac_cv_path_FGREP" >&6; }
4246  FGREP="$ac_cv_path_FGREP"
4247
4248
4249 test -z "$GREP" && GREP=grep
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269 # Check whether --with-gnu-ld was given.
4270 if test "${with_gnu_ld+set}" = set; then :
4271   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4272 else
4273   with_gnu_ld=no
4274 fi
4275
4276 ac_prog=ld
4277 if test "$GCC" = yes; then
4278   # Check if gcc -print-prog-name=ld gives a path.
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4280 $as_echo_n "checking for ld used by $CC... " >&6; }
4281   case $host in
4282   *-*-mingw*)
4283     # gcc leaves a trailing carriage return which upsets mingw
4284     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4285   *)
4286     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4287   esac
4288   case $ac_prog in
4289     # Accept absolute paths.
4290     [\\/]* | ?:[\\/]*)
4291       re_direlt='/[^/][^/]*/\.\./'
4292       # Canonicalize the pathname of ld
4293       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4294       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4295         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4296       done
4297       test -z "$LD" && LD="$ac_prog"
4298       ;;
4299   "")
4300     # If it fails, then pretend we aren't using GCC.
4301     ac_prog=ld
4302     ;;
4303   *)
4304     # If it is relative, then search for the first ld in PATH.
4305     with_gnu_ld=unknown
4306     ;;
4307   esac
4308 elif test "$with_gnu_ld" = yes; then
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4310 $as_echo_n "checking for GNU ld... " >&6; }
4311 else
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4313 $as_echo_n "checking for non-GNU ld... " >&6; }
4314 fi
4315 if ${lt_cv_path_LD+:} false; then :
4316   $as_echo_n "(cached) " >&6
4317 else
4318   if test -z "$LD"; then
4319   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4320   for ac_dir in $PATH; do
4321     IFS="$lt_save_ifs"
4322     test -z "$ac_dir" && ac_dir=.
4323     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4324       lt_cv_path_LD="$ac_dir/$ac_prog"
4325       # Check to see if the program is GNU ld.  I'd rather use --version,
4326       # but apparently some variants of GNU ld only accept -v.
4327       # Break only if it was the GNU/non-GNU ld that we prefer.
4328       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4329       *GNU* | *'with BFD'*)
4330         test "$with_gnu_ld" != no && break
4331         ;;
4332       *)
4333         test "$with_gnu_ld" != yes && break
4334         ;;
4335       esac
4336     fi
4337   done
4338   IFS="$lt_save_ifs"
4339 else
4340   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4341 fi
4342 fi
4343
4344 LD="$lt_cv_path_LD"
4345 if test -n "$LD"; then
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4347 $as_echo "$LD" >&6; }
4348 else
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4354 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4355 if ${lt_cv_prog_gnu_ld+:} false; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4359 case `$LD -v 2>&1 </dev/null` in
4360 *GNU* | *'with BFD'*)
4361   lt_cv_prog_gnu_ld=yes
4362   ;;
4363 *)
4364   lt_cv_prog_gnu_ld=no
4365   ;;
4366 esac
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4369 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4370 with_gnu_ld=$lt_cv_prog_gnu_ld
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4381 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4382 if ${lt_cv_path_NM+:} false; then :
4383   $as_echo_n "(cached) " >&6
4384 else
4385   if test -n "$NM"; then
4386   # Let the user override the test.
4387   lt_cv_path_NM="$NM"
4388 else
4389   lt_nm_to_check="${ac_tool_prefix}nm"
4390   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4391     lt_nm_to_check="$lt_nm_to_check nm"
4392   fi
4393   for lt_tmp_nm in $lt_nm_to_check; do
4394     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4395     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4396       IFS="$lt_save_ifs"
4397       test -z "$ac_dir" && ac_dir=.
4398       tmp_nm="$ac_dir/$lt_tmp_nm"
4399       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4400         # Check to see if the nm accepts a BSD-compat flag.
4401         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4402         #   nm: unknown option "B" ignored
4403         # Tru64's nm complains that /dev/null is an invalid object file
4404         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4405         */dev/null* | *'Invalid file or object type'*)
4406           lt_cv_path_NM="$tmp_nm -B"
4407           break
4408           ;;
4409         *)
4410           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4411           */dev/null*)
4412             lt_cv_path_NM="$tmp_nm -p"
4413             break
4414             ;;
4415           *)
4416             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4417             continue # so that we can try to find one that supports BSD flags
4418             ;;
4419           esac
4420           ;;
4421         esac
4422       fi
4423     done
4424     IFS="$lt_save_ifs"
4425   done
4426   : ${lt_cv_path_NM=no}
4427 fi
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4430 $as_echo "$lt_cv_path_NM" >&6; }
4431 if test "$lt_cv_path_NM" != "no"; then
4432   NM="$lt_cv_path_NM"
4433 else
4434   # Didn't find any BSD compatible name lister, look for dumpbin.
4435   if test -n "$DUMPBIN"; then :
4436     # Let the user override the test.
4437   else
4438     if test -n "$ac_tool_prefix"; then
4439   for ac_prog in dumpbin "link -dump"
4440   do
4441     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_DUMPBIN+:} false; then :
4446   $as_echo_n "(cached) " >&6
4447 else
4448   if test -n "$DUMPBIN"; then
4449   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456     for ac_exec_ext in '' $ac_executable_extensions; do
4457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463   done
4464 IFS=$as_save_IFS
4465
4466 fi
4467 fi
4468 DUMPBIN=$ac_cv_prog_DUMPBIN
4469 if test -n "$DUMPBIN"; then
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4471 $as_echo "$DUMPBIN" >&6; }
4472 else
4473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 fi
4476
4477
4478     test -n "$DUMPBIN" && break
4479   done
4480 fi
4481 if test -z "$DUMPBIN"; then
4482   ac_ct_DUMPBIN=$DUMPBIN
4483   for ac_prog in dumpbin "link -dump"
4484 do
4485   # Extract the first word of "$ac_prog", so it can be a program name with args.
4486 set dummy $ac_prog; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492   if test -n "$ac_ct_DUMPBIN"; then
4493   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498   IFS=$as_save_IFS
4499   test -z "$as_dir" && as_dir=.
4500     for ac_exec_ext in '' $ac_executable_extensions; do
4501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504     break 2
4505   fi
4506 done
4507   done
4508 IFS=$as_save_IFS
4509
4510 fi
4511 fi
4512 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4513 if test -n "$ac_ct_DUMPBIN"; then
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4515 $as_echo "$ac_ct_DUMPBIN" >&6; }
4516 else
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4519 fi
4520
4521
4522   test -n "$ac_ct_DUMPBIN" && break
4523 done
4524
4525   if test "x$ac_ct_DUMPBIN" = x; then
4526     DUMPBIN=":"
4527   else
4528     case $cross_compiling:$ac_tool_warned in
4529 yes:)
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4532 ac_tool_warned=yes ;;
4533 esac
4534     DUMPBIN=$ac_ct_DUMPBIN
4535   fi
4536 fi
4537
4538     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4539     *COFF*)
4540       DUMPBIN="$DUMPBIN -symbols"
4541       ;;
4542     *)
4543       DUMPBIN=:
4544       ;;
4545     esac
4546   fi
4547
4548   if test "$DUMPBIN" != ":"; then
4549     NM="$DUMPBIN"
4550   fi
4551 fi
4552 test -z "$NM" && NM=nm
4553
4554
4555
4556
4557
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4560 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4561 if ${lt_cv_nm_interface+:} false; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   lt_cv_nm_interface="BSD nm"
4565   echo "int some_variable = 0;" > conftest.$ac_ext
4566   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4567   (eval "$ac_compile" 2>conftest.err)
4568   cat conftest.err >&5
4569   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4570   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4571   cat conftest.err >&5
4572   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4573   cat conftest.out >&5
4574   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4575     lt_cv_nm_interface="MS dumpbin"
4576   fi
4577   rm -f conftest*
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4580 $as_echo "$lt_cv_nm_interface" >&6; }
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4583 $as_echo_n "checking whether ln -s works... " >&6; }
4584 LN_S=$as_ln_s
4585 if test "$LN_S" = "ln -s"; then
4586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4587 $as_echo "yes" >&6; }
4588 else
4589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4590 $as_echo "no, using $LN_S" >&6; }
4591 fi
4592
4593 # find the maximum length of command line arguments
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4595 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4596 if ${lt_cv_sys_max_cmd_len+:} false; then :
4597   $as_echo_n "(cached) " >&6
4598 else
4599     i=0
4600   teststring="ABCD"
4601
4602   case $build_os in
4603   msdosdjgpp*)
4604     # On DJGPP, this test can blow up pretty badly due to problems in libc
4605     # (any single argument exceeding 2000 bytes causes a buffer overrun
4606     # during glob expansion).  Even if it were fixed, the result of this
4607     # check would be larger than it should be.
4608     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4609     ;;
4610
4611   gnu*)
4612     # Under GNU Hurd, this test is not required because there is
4613     # no limit to the length of command line arguments.
4614     # Libtool will interpret -1 as no limit whatsoever
4615     lt_cv_sys_max_cmd_len=-1;
4616     ;;
4617
4618   cygwin* | mingw* | cegcc*)
4619     # On Win9x/ME, this test blows up -- it succeeds, but takes
4620     # about 5 minutes as the teststring grows exponentially.
4621     # Worse, since 9x/ME are not pre-emptively multitasking,
4622     # you end up with a "frozen" computer, even though with patience
4623     # the test eventually succeeds (with a max line length of 256k).
4624     # Instead, let's just punt: use the minimum linelength reported by
4625     # all of the supported platforms: 8192 (on NT/2K/XP).
4626     lt_cv_sys_max_cmd_len=8192;
4627     ;;
4628
4629   mint*)
4630     # On MiNT this can take a long time and run out of memory.
4631     lt_cv_sys_max_cmd_len=8192;
4632     ;;
4633
4634   amigaos*)
4635     # On AmigaOS with pdksh, this test takes hours, literally.
4636     # So we just punt and use a minimum line length of 8192.
4637     lt_cv_sys_max_cmd_len=8192;
4638     ;;
4639
4640   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4641     # This has been around since 386BSD, at least.  Likely further.
4642     if test -x /sbin/sysctl; then
4643       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4644     elif test -x /usr/sbin/sysctl; then
4645       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4646     else
4647       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4648     fi
4649     # And add a safety zone
4650     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4651     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4652     ;;
4653
4654   interix*)
4655     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4656     lt_cv_sys_max_cmd_len=196608
4657     ;;
4658
4659   os2*)
4660     # The test takes a long time on OS/2.
4661     lt_cv_sys_max_cmd_len=8192
4662     ;;
4663
4664   osf*)
4665     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4666     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4667     # nice to cause kernel panics so lets avoid the loop below.
4668     # First set a reasonable default.
4669     lt_cv_sys_max_cmd_len=16384
4670     #
4671     if test -x /sbin/sysconfig; then
4672       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4673         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4674       esac
4675     fi
4676     ;;
4677   sco3.2v5*)
4678     lt_cv_sys_max_cmd_len=102400
4679     ;;
4680   sysv5* | sco5v6* | sysv4.2uw2*)
4681     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4682     if test -n "$kargmax"; then
4683       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4684     else
4685       lt_cv_sys_max_cmd_len=32768
4686     fi
4687     ;;
4688   *)
4689     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4690     if test -n "$lt_cv_sys_max_cmd_len" && \
4691         test undefined != "$lt_cv_sys_max_cmd_len"; then
4692       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4693       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4694     else
4695       # Make teststring a little bigger before we do anything with it.
4696       # a 1K string should be a reasonable start.
4697       for i in 1 2 3 4 5 6 7 8 ; do
4698         teststring=$teststring$teststring
4699       done
4700       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4701       # If test is not a shell built-in, we'll probably end up computing a
4702       # maximum length that is only half of the actual maximum length, but
4703       # we can't tell.
4704       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4705                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4706               test $i != 17 # 1/2 MB should be enough
4707       do
4708         i=`expr $i + 1`
4709         teststring=$teststring$teststring
4710       done
4711       # Only check the string length outside the loop.
4712       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4713       teststring=
4714       # Add a significant safety factor because C++ compilers can tack on
4715       # massive amounts of additional arguments before passing them to the
4716       # linker.  It appears as though 1/2 is a usable value.
4717       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4718     fi
4719     ;;
4720   esac
4721
4722 fi
4723
4724 if test -n $lt_cv_sys_max_cmd_len ; then
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4726 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4727 else
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4729 $as_echo "none" >&6; }
4730 fi
4731 max_cmd_len=$lt_cv_sys_max_cmd_len
4732
4733
4734
4735
4736
4737
4738 : ${CP="cp -f"}
4739 : ${MV="mv -f"}
4740 : ${RM="rm -f"}
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4743 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4744 # Try some XSI features
4745 xsi_shell=no
4746 ( _lt_dummy="a/b/c"
4747   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4748       = c,a/b,b/c, \
4749     && eval 'test $(( 1 + 1 )) -eq 2 \
4750     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4751   && xsi_shell=yes
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4753 $as_echo "$xsi_shell" >&6; }
4754
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4757 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4758 lt_shell_append=no
4759 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4760     >/dev/null 2>&1 \
4761   && lt_shell_append=yes
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4763 $as_echo "$lt_shell_append" >&6; }
4764
4765
4766 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4767   lt_unset=unset
4768 else
4769   lt_unset=false
4770 fi
4771
4772
4773
4774
4775
4776 # test EBCDIC or ASCII
4777 case `echo X|tr X '\101'` in
4778  A) # ASCII based system
4779     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4780   lt_SP2NL='tr \040 \012'
4781   lt_NL2SP='tr \015\012 \040\040'
4782   ;;
4783  *) # EBCDIC based system
4784   lt_SP2NL='tr \100 \n'
4785   lt_NL2SP='tr \r\n \100\100'
4786   ;;
4787 esac
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4798 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4799 if ${lt_cv_to_host_file_cmd+:} false; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802   case $host in
4803   *-*-mingw* )
4804     case $build in
4805       *-*-mingw* ) # actually msys
4806         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4807         ;;
4808       *-*-cygwin* )
4809         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4810         ;;
4811       * ) # otherwise, assume *nix
4812         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4813         ;;
4814     esac
4815     ;;
4816   *-*-cygwin* )
4817     case $build in
4818       *-*-mingw* ) # actually msys
4819         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4820         ;;
4821       *-*-cygwin* )
4822         lt_cv_to_host_file_cmd=func_convert_file_noop
4823         ;;
4824       * ) # otherwise, assume *nix
4825         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4826         ;;
4827     esac
4828     ;;
4829   * ) # unhandled hosts (and "normal" native builds)
4830     lt_cv_to_host_file_cmd=func_convert_file_noop
4831     ;;
4832 esac
4833
4834 fi
4835
4836 to_host_file_cmd=$lt_cv_to_host_file_cmd
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4838 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4839
4840
4841
4842
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4845 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4846 if ${lt_cv_to_tool_file_cmd+:} false; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   #assume ordinary cross tools, or native build.
4850 lt_cv_to_tool_file_cmd=func_convert_file_noop
4851 case $host in
4852   *-*-mingw* )
4853     case $build in
4854       *-*-mingw* ) # actually msys
4855         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4856         ;;
4857     esac
4858     ;;
4859 esac
4860
4861 fi
4862
4863 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4865 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4866
4867
4868
4869
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4872 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4873 if ${lt_cv_ld_reload_flag+:} false; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876   lt_cv_ld_reload_flag='-r'
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4879 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4880 reload_flag=$lt_cv_ld_reload_flag
4881 case $reload_flag in
4882 "" | " "*) ;;
4883 *) reload_flag=" $reload_flag" ;;
4884 esac
4885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4886 case $host_os in
4887   cygwin* | mingw* | pw32* | cegcc*)
4888     if test "$GCC" != yes; then
4889       reload_cmds=false
4890     fi
4891     ;;
4892   darwin*)
4893     if test "$GCC" = yes; then
4894       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4895     else
4896       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4897     fi
4898     ;;
4899 esac
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909 if test -n "$ac_tool_prefix"; then
4910   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_OBJDUMP+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if test -n "$OBJDUMP"; then
4918   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932   done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 OBJDUMP=$ac_cv_prog_OBJDUMP
4938 if test -n "$OBJDUMP"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4940 $as_echo "$OBJDUMP" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 fi
4948 if test -z "$ac_cv_prog_OBJDUMP"; then
4949   ac_ct_OBJDUMP=$OBJDUMP
4950   # Extract the first word of "objdump", so it can be a program name with args.
4951 set dummy objdump; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   if test -n "$ac_ct_OBJDUMP"; then
4958   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965     for ac_exec_ext in '' $ac_executable_extensions; do
4966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972   done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4978 if test -n "$ac_ct_OBJDUMP"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4980 $as_echo "$ac_ct_OBJDUMP" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986   if test "x$ac_ct_OBJDUMP" = x; then
4987     OBJDUMP="false"
4988   else
4989     case $cross_compiling:$ac_tool_warned in
4990 yes:)
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned=yes ;;
4994 esac
4995     OBJDUMP=$ac_ct_OBJDUMP
4996   fi
4997 else
4998   OBJDUMP="$ac_cv_prog_OBJDUMP"
4999 fi
5000
5001 test -z "$OBJDUMP" && OBJDUMP=objdump
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5012 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5013 if ${lt_cv_deplibs_check_method+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   lt_cv_file_magic_cmd='$MAGIC_CMD'
5017 lt_cv_file_magic_test_file=
5018 lt_cv_deplibs_check_method='unknown'
5019 # Need to set the preceding variable on all platforms that support
5020 # interlibrary dependencies.
5021 # 'none' -- dependencies not supported.
5022 # `unknown' -- same as none, but documents that we really don't know.
5023 # 'pass_all' -- all dependencies passed with no checks.
5024 # 'test_compile' -- check by making test program.
5025 # 'file_magic [[regex]]' -- check by looking for files in library path
5026 # which responds to the $file_magic_cmd with a given extended regex.
5027 # If you have `file' or equivalent on your system and you're not sure
5028 # whether `pass_all' will *always* work, you probably want this one.
5029
5030 case $host_os in
5031 aix[4-9]*)
5032   lt_cv_deplibs_check_method=pass_all
5033   ;;
5034
5035 beos*)
5036   lt_cv_deplibs_check_method=pass_all
5037   ;;
5038
5039 bsdi[45]*)
5040   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5041   lt_cv_file_magic_cmd='/usr/bin/file -L'
5042   lt_cv_file_magic_test_file=/shlib/libc.so
5043   ;;
5044
5045 cygwin*)
5046   # func_win32_libid is a shell function defined in ltmain.sh
5047   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5048   lt_cv_file_magic_cmd='func_win32_libid'
5049   ;;
5050
5051 mingw* | pw32*)
5052   # Base MSYS/MinGW do not provide the 'file' command needed by
5053   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5054   # unless we find 'file', for example because we are cross-compiling.
5055   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5056   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5057     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5058     lt_cv_file_magic_cmd='func_win32_libid'
5059   else
5060     # Keep this pattern in sync with the one in func_win32_libid.
5061     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5062     lt_cv_file_magic_cmd='$OBJDUMP -f'
5063   fi
5064   ;;
5065
5066 cegcc*)
5067   # use the weaker test based on 'objdump'. See mingw*.
5068   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5069   lt_cv_file_magic_cmd='$OBJDUMP -f'
5070   ;;
5071
5072 darwin* | rhapsody*)
5073   lt_cv_deplibs_check_method=pass_all
5074   ;;
5075
5076 freebsd* | dragonfly*)
5077   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5078     case $host_cpu in
5079     i*86 )
5080       # Not sure whether the presence of OpenBSD here was a mistake.
5081       # Let's accept both of them until this is cleared up.
5082       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5083       lt_cv_file_magic_cmd=/usr/bin/file
5084       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5085       ;;
5086     esac
5087   else
5088     lt_cv_deplibs_check_method=pass_all
5089   fi
5090   ;;
5091
5092 haiku*)
5093   lt_cv_deplibs_check_method=pass_all
5094   ;;
5095
5096 hpux10.20* | hpux11*)
5097   lt_cv_file_magic_cmd=/usr/bin/file
5098   case $host_cpu in
5099   ia64*)
5100     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5101     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5102     ;;
5103   hppa*64*)
5104     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]'
5105     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5106     ;;
5107   *)
5108     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5109     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5110     ;;
5111   esac
5112   ;;
5113
5114 interix[3-9]*)
5115   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5116   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5117   ;;
5118
5119 irix5* | irix6* | nonstopux*)
5120   case $LD in
5121   *-32|*"-32 ") libmagic=32-bit;;
5122   *-n32|*"-n32 ") libmagic=N32;;
5123   *-64|*"-64 ") libmagic=64-bit;;
5124   *) libmagic=never-match;;
5125   esac
5126   lt_cv_deplibs_check_method=pass_all
5127   ;;
5128
5129 # This must be glibc/ELF.
5130 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5131   lt_cv_deplibs_check_method=pass_all
5132   ;;
5133
5134 netbsd* | netbsdelf*-gnu)
5135   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5136     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5137   else
5138     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5139   fi
5140   ;;
5141
5142 newos6*)
5143   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5144   lt_cv_file_magic_cmd=/usr/bin/file
5145   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5146   ;;
5147
5148 *nto* | *qnx*)
5149   lt_cv_deplibs_check_method=pass_all
5150   ;;
5151
5152 openbsd*)
5153   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5154     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5155   else
5156     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5157   fi
5158   ;;
5159
5160 osf3* | osf4* | osf5*)
5161   lt_cv_deplibs_check_method=pass_all
5162   ;;
5163
5164 rdos*)
5165   lt_cv_deplibs_check_method=pass_all
5166   ;;
5167
5168 solaris*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5173   lt_cv_deplibs_check_method=pass_all
5174   ;;
5175
5176 sysv4 | sysv4.3*)
5177   case $host_vendor in
5178   motorola)
5179     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]'
5180     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5181     ;;
5182   ncr)
5183     lt_cv_deplibs_check_method=pass_all
5184     ;;
5185   sequent)
5186     lt_cv_file_magic_cmd='/bin/file'
5187     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5188     ;;
5189   sni)
5190     lt_cv_file_magic_cmd='/bin/file'
5191     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5192     lt_cv_file_magic_test_file=/lib/libc.so
5193     ;;
5194   siemens)
5195     lt_cv_deplibs_check_method=pass_all
5196     ;;
5197   pc)
5198     lt_cv_deplibs_check_method=pass_all
5199     ;;
5200   esac
5201   ;;
5202
5203 tpf*)
5204   lt_cv_deplibs_check_method=pass_all
5205   ;;
5206 esac
5207
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5210 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5211
5212 file_magic_glob=
5213 want_nocaseglob=no
5214 if test "$build" = "$host"; then
5215   case $host_os in
5216   mingw* | pw32*)
5217     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5218       want_nocaseglob=yes
5219     else
5220       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5221     fi
5222     ;;
5223   esac
5224 fi
5225
5226 file_magic_cmd=$lt_cv_file_magic_cmd
5227 deplibs_check_method=$lt_cv_deplibs_check_method
5228 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251 if test -n "$ac_tool_prefix"; then
5252   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5253 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_DLLTOOL+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   if test -n "$DLLTOOL"; then
5260   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265   IFS=$as_save_IFS
5266   test -z "$as_dir" && as_dir=.
5267     for ac_exec_ext in '' $ac_executable_extensions; do
5268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271     break 2
5272   fi
5273 done
5274   done
5275 IFS=$as_save_IFS
5276
5277 fi
5278 fi
5279 DLLTOOL=$ac_cv_prog_DLLTOOL
5280 if test -n "$DLLTOOL"; then
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5282 $as_echo "$DLLTOOL" >&6; }
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287
5288
5289 fi
5290 if test -z "$ac_cv_prog_DLLTOOL"; then
5291   ac_ct_DLLTOOL=$DLLTOOL
5292   # Extract the first word of "dlltool", so it can be a program name with args.
5293 set dummy dlltool; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   if test -n "$ac_ct_DLLTOOL"; then
5300   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305   IFS=$as_save_IFS
5306   test -z "$as_dir" && as_dir=.
5307     for ac_exec_ext in '' $ac_executable_extensions; do
5308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311     break 2
5312   fi
5313 done
5314   done
5315 IFS=$as_save_IFS
5316
5317 fi
5318 fi
5319 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5320 if test -n "$ac_ct_DLLTOOL"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5322 $as_echo "$ac_ct_DLLTOOL" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328   if test "x$ac_ct_DLLTOOL" = x; then
5329     DLLTOOL="false"
5330   else
5331     case $cross_compiling:$ac_tool_warned in
5332 yes:)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335 ac_tool_warned=yes ;;
5336 esac
5337     DLLTOOL=$ac_ct_DLLTOOL
5338   fi
5339 else
5340   DLLTOOL="$ac_cv_prog_DLLTOOL"
5341 fi
5342
5343 test -z "$DLLTOOL" && DLLTOOL=dlltool
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5355 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5356 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   lt_cv_sharedlib_from_linklib_cmd='unknown'
5360
5361 case $host_os in
5362 cygwin* | mingw* | pw32* | cegcc*)
5363   # two different shell functions defined in ltmain.sh
5364   # decide which to use based on capabilities of $DLLTOOL
5365   case `$DLLTOOL --help 2>&1` in
5366   *--identify-strict*)
5367     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5368     ;;
5369   *)
5370     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5371     ;;
5372   esac
5373   ;;
5374 *)
5375   # fallback: assume linklib IS sharedlib
5376   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5377   ;;
5378 esac
5379
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5382 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5383 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5384 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5385
5386
5387
5388
5389
5390
5391
5392
5393 if test -n "$ac_tool_prefix"; then
5394   for ac_prog in ar
5395   do
5396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_AR+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   if test -n "$AR"; then
5404   ac_cv_prog_AR="$AR" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411     for ac_exec_ext in '' $ac_executable_extensions; do
5412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415     break 2
5416   fi
5417 done
5418   done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 AR=$ac_cv_prog_AR
5424 if test -n "$AR"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5426 $as_echo "$AR" >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432
5433     test -n "$AR" && break
5434   done
5435 fi
5436 if test -z "$AR"; then
5437   ac_ct_AR=$AR
5438   for ac_prog in ar
5439 do
5440   # Extract the first word of "$ac_prog", so it can be a program name with args.
5441 set dummy $ac_prog; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5445   $as_echo_n "(cached) " >&6
5446 else
5447   if test -n "$ac_ct_AR"; then
5448   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453   IFS=$as_save_IFS
5454   test -z "$as_dir" && as_dir=.
5455     for ac_exec_ext in '' $ac_executable_extensions; do
5456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457     ac_cv_prog_ac_ct_AR="$ac_prog"
5458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459     break 2
5460   fi
5461 done
5462   done
5463 IFS=$as_save_IFS
5464
5465 fi
5466 fi
5467 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5468 if test -n "$ac_ct_AR"; then
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5470 $as_echo "$ac_ct_AR" >&6; }
5471 else
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 fi
5475
5476
5477   test -n "$ac_ct_AR" && break
5478 done
5479
5480   if test "x$ac_ct_AR" = x; then
5481     AR="false"
5482   else
5483     case $cross_compiling:$ac_tool_warned in
5484 yes:)
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487 ac_tool_warned=yes ;;
5488 esac
5489     AR=$ac_ct_AR
5490   fi
5491 fi
5492
5493 : ${AR=ar}
5494 : ${AR_FLAGS=cru}
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5507 $as_echo_n "checking for archiver @FILE support... " >&6; }
5508 if ${lt_cv_ar_at_file+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   lt_cv_ar_at_file=no
5512    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h.  */
5514
5515 int
5516 main ()
5517 {
5518
5519   ;
5520   return 0;
5521 }
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524   echo conftest.$ac_objext > conftest.lst
5525       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5526       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5527   (eval $lt_ar_try) 2>&5
5528   ac_status=$?
5529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5530   test $ac_status = 0; }
5531       if test "$ac_status" -eq 0; then
5532         # Ensure the archiver fails upon bogus file names.
5533         rm -f conftest.$ac_objext libconftest.a
5534         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5535   (eval $lt_ar_try) 2>&5
5536   ac_status=$?
5537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5538   test $ac_status = 0; }
5539         if test "$ac_status" -ne 0; then
5540           lt_cv_ar_at_file=@
5541         fi
5542       fi
5543       rm -f conftest.* libconftest.a
5544
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5550 $as_echo "$lt_cv_ar_at_file" >&6; }
5551
5552 if test "x$lt_cv_ar_at_file" = xno; then
5553   archiver_list_spec=
5554 else
5555   archiver_list_spec=$lt_cv_ar_at_file
5556 fi
5557
5558
5559
5560
5561
5562
5563
5564 if test -n "$ac_tool_prefix"; then
5565   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5566 set dummy ${ac_tool_prefix}strip; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_STRIP+:} false; then :
5570   $as_echo_n "(cached) " >&6
5571 else
5572   if test -n "$STRIP"; then
5573   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578   IFS=$as_save_IFS
5579   test -z "$as_dir" && as_dir=.
5580     for ac_exec_ext in '' $ac_executable_extensions; do
5581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584     break 2
5585   fi
5586 done
5587   done
5588 IFS=$as_save_IFS
5589
5590 fi
5591 fi
5592 STRIP=$ac_cv_prog_STRIP
5593 if test -n "$STRIP"; then
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5595 $as_echo "$STRIP" >&6; }
5596 else
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5599 fi
5600
5601
5602 fi
5603 if test -z "$ac_cv_prog_STRIP"; then
5604   ac_ct_STRIP=$STRIP
5605   # Extract the first word of "strip", so it can be a program name with args.
5606 set dummy strip; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   if test -n "$ac_ct_STRIP"; then
5613   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620     for ac_exec_ext in '' $ac_executable_extensions; do
5621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622     ac_cv_prog_ac_ct_STRIP="strip"
5623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627   done
5628 IFS=$as_save_IFS
5629
5630 fi
5631 fi
5632 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5633 if test -n "$ac_ct_STRIP"; then
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5635 $as_echo "$ac_ct_STRIP" >&6; }
5636 else
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641   if test "x$ac_ct_STRIP" = x; then
5642     STRIP=":"
5643   else
5644     case $cross_compiling:$ac_tool_warned in
5645 yes:)
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648 ac_tool_warned=yes ;;
5649 esac
5650     STRIP=$ac_ct_STRIP
5651   fi
5652 else
5653   STRIP="$ac_cv_prog_STRIP"
5654 fi
5655
5656 test -z "$STRIP" && STRIP=:
5657
5658
5659
5660
5661
5662
5663 if test -n "$ac_tool_prefix"; then
5664   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5665 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_prog_RANLIB+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   if test -n "$RANLIB"; then
5672   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677   IFS=$as_save_IFS
5678   test -z "$as_dir" && as_dir=.
5679     for ac_exec_ext in '' $ac_executable_extensions; do
5680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683     break 2
5684   fi
5685 done
5686   done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 RANLIB=$ac_cv_prog_RANLIB
5692 if test -n "$RANLIB"; then
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5694 $as_echo "$RANLIB" >&6; }
5695 else
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 fi
5699
5700
5701 fi
5702 if test -z "$ac_cv_prog_RANLIB"; then
5703   ac_ct_RANLIB=$RANLIB
5704   # Extract the first word of "ranlib", so it can be a program name with args.
5705 set dummy ranlib; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   if test -n "$ac_ct_RANLIB"; then
5712   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719     for ac_exec_ext in '' $ac_executable_extensions; do
5720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721     ac_cv_prog_ac_ct_RANLIB="ranlib"
5722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726   done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5732 if test -n "$ac_ct_RANLIB"; then
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5734 $as_echo "$ac_ct_RANLIB" >&6; }
5735 else
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740   if test "x$ac_ct_RANLIB" = x; then
5741     RANLIB=":"
5742   else
5743     case $cross_compiling:$ac_tool_warned in
5744 yes:)
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5747 ac_tool_warned=yes ;;
5748 esac
5749     RANLIB=$ac_ct_RANLIB
5750   fi
5751 else
5752   RANLIB="$ac_cv_prog_RANLIB"
5753 fi
5754
5755 test -z "$RANLIB" && RANLIB=:
5756
5757
5758
5759
5760
5761
5762 # Determine commands to create old-style static archives.
5763 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5764 old_postinstall_cmds='chmod 644 $oldlib'
5765 old_postuninstall_cmds=
5766
5767 if test -n "$RANLIB"; then
5768   case $host_os in
5769   openbsd*)
5770     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5771     ;;
5772   *)
5773     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5774     ;;
5775   esac
5776   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5777 fi
5778
5779 case $host_os in
5780   darwin*)
5781     lock_old_archive_extraction=yes ;;
5782   *)
5783     lock_old_archive_extraction=no ;;
5784 esac
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 # If no C compiler was specified, use CC.
5825 LTCC=${LTCC-"$CC"}
5826
5827 # If no C compiler flags were specified, use CFLAGS.
5828 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5829
5830 # Allow CC to be a program name with arguments.
5831 compiler=$CC
5832
5833
5834 # Check for command to grab the raw symbol name followed by C symbol from nm.
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5836 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5837 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840
5841 # These are sane defaults that work on at least a few old systems.
5842 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5843
5844 # Character class describing NM global symbol codes.
5845 symcode='[BCDEGRST]'
5846
5847 # Regexp to match symbols that can be accessed directly from C.
5848 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5849
5850 # Define system-specific variables.
5851 case $host_os in
5852 aix*)
5853   symcode='[BCDT]'
5854   ;;
5855 cygwin* | mingw* | pw32* | cegcc*)
5856   symcode='[ABCDGISTW]'
5857   ;;
5858 hpux*)
5859   if test "$host_cpu" = ia64; then
5860     symcode='[ABCDEGRST]'
5861   fi
5862   ;;
5863 irix* | nonstopux*)
5864   symcode='[BCDEGRST]'
5865   ;;
5866 osf*)
5867   symcode='[BCDEGQRST]'
5868   ;;
5869 solaris*)
5870   symcode='[BDRT]'
5871   ;;
5872 sco3.2v5*)
5873   symcode='[DT]'
5874   ;;
5875 sysv4.2uw2*)
5876   symcode='[DT]'
5877   ;;
5878 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5879   symcode='[ABDT]'
5880   ;;
5881 sysv4)
5882   symcode='[DFNSTU]'
5883   ;;
5884 esac
5885
5886 # If we're using GNU nm, then use its standard symbol codes.
5887 case `$NM -V 2>&1` in
5888 *GNU* | *'with BFD'*)
5889   symcode='[ABCDGIRSTW]' ;;
5890 esac
5891
5892 # Transform an extracted symbol line into a proper C declaration.
5893 # Some systems (esp. on ia64) link data and code symbols differently,
5894 # so use this general approach.
5895 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5896
5897 # Transform an extracted symbol line into symbol name and symbol address
5898 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5899 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'"
5900
5901 # Handle CRLF in mingw tool chain
5902 opt_cr=
5903 case $build_os in
5904 mingw*)
5905   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5906   ;;
5907 esac
5908
5909 # Try without a prefix underscore, then with it.
5910 for ac_symprfx in "" "_"; do
5911
5912   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5913   symxfrm="\\1 $ac_symprfx\\2 \\2"
5914
5915   # Write the raw and C identifiers.
5916   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5917     # Fake it for dumpbin and say T for any non-static function
5918     # and D for any global variable.
5919     # Also find C++ and __fastcall symbols from MSVC++,
5920     # which start with @ or ?.
5921     lt_cv_sys_global_symbol_pipe="$AWK '"\
5922 "     {last_section=section; section=\$ 3};"\
5923 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5924 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5925 "     \$ 0!~/External *\|/{next};"\
5926 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5927 "     {if(hide[section]) next};"\
5928 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5929 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5930 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5931 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5932 "     ' prfx=^$ac_symprfx"
5933   else
5934     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5935   fi
5936   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5937
5938   # Check to see that the pipe works correctly.
5939   pipe_works=no
5940
5941   rm -f conftest*
5942   cat > conftest.$ac_ext <<_LT_EOF
5943 #ifdef __cplusplus
5944 extern "C" {
5945 #endif
5946 char nm_test_var;
5947 void nm_test_func(void);
5948 void nm_test_func(void){}
5949 #ifdef __cplusplus
5950 }
5951 #endif
5952 int main(){nm_test_var='a';nm_test_func();return(0);}
5953 _LT_EOF
5954
5955   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5956   (eval $ac_compile) 2>&5
5957   ac_status=$?
5958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5959   test $ac_status = 0; }; then
5960     # Now try to grab the symbols.
5961     nlist=conftest.nm
5962     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5963   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5964   ac_status=$?
5965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5966   test $ac_status = 0; } && test -s "$nlist"; then
5967       # Try sorting and uniquifying the output.
5968       if sort "$nlist" | uniq > "$nlist"T; then
5969         mv -f "$nlist"T "$nlist"
5970       else
5971         rm -f "$nlist"T
5972       fi
5973
5974       # Make sure that we snagged all the symbols we need.
5975       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5976         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5977           cat <<_LT_EOF > conftest.$ac_ext
5978 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5979 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5980 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5981    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5982 # define LT_DLSYM_CONST
5983 #elif defined(__osf__)
5984 /* This system does not cope well with relocations in const data.  */
5985 # define LT_DLSYM_CONST
5986 #else
5987 # define LT_DLSYM_CONST const
5988 #endif
5989
5990 #ifdef __cplusplus
5991 extern "C" {
5992 #endif
5993
5994 _LT_EOF
5995           # Now generate the symbol file.
5996           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5997
5998           cat <<_LT_EOF >> conftest.$ac_ext
5999
6000 /* The mapping between symbol names and symbols.  */
6001 LT_DLSYM_CONST struct {
6002   const char *name;
6003   void       *address;
6004 }
6005 lt__PROGRAM__LTX_preloaded_symbols[] =
6006 {
6007   { "@PROGRAM@", (void *) 0 },
6008 _LT_EOF
6009           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6010           cat <<\_LT_EOF >> conftest.$ac_ext
6011   {0, (void *) 0}
6012 };
6013
6014 /* This works around a problem in FreeBSD linker */
6015 #ifdef FREEBSD_WORKAROUND
6016 static const void *lt_preloaded_setup() {
6017   return lt__PROGRAM__LTX_preloaded_symbols;
6018 }
6019 #endif
6020
6021 #ifdef __cplusplus
6022 }
6023 #endif
6024 _LT_EOF
6025           # Now try linking the two files.
6026           mv conftest.$ac_objext conftstm.$ac_objext
6027           lt_globsym_save_LIBS=$LIBS
6028           lt_globsym_save_CFLAGS=$CFLAGS
6029           LIBS="conftstm.$ac_objext"
6030           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6031           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6032   (eval $ac_link) 2>&5
6033   ac_status=$?
6034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6036             pipe_works=yes
6037           fi
6038           LIBS=$lt_globsym_save_LIBS
6039           CFLAGS=$lt_globsym_save_CFLAGS
6040         else
6041           echo "cannot find nm_test_func in $nlist" >&5
6042         fi
6043       else
6044         echo "cannot find nm_test_var in $nlist" >&5
6045       fi
6046     else
6047       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6048     fi
6049   else
6050     echo "$progname: failed program was:" >&5
6051     cat conftest.$ac_ext >&5
6052   fi
6053   rm -rf conftest* conftst*
6054
6055   # Do not use the global_symbol_pipe unless it works.
6056   if test "$pipe_works" = yes; then
6057     break
6058   else
6059     lt_cv_sys_global_symbol_pipe=
6060   fi
6061 done
6062
6063 fi
6064
6065 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6066   lt_cv_sys_global_symbol_to_cdecl=
6067 fi
6068 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6070 $as_echo "failed" >&6; }
6071 else
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6073 $as_echo "ok" >&6; }
6074 fi
6075
6076 # Response file support.
6077 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6078   nm_file_list_spec='@'
6079 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6080   nm_file_list_spec='@'
6081 fi
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6110 $as_echo_n "checking for sysroot... " >&6; }
6111
6112 # Check whether --with-sysroot was given.
6113 if test "${with_sysroot+set}" = set; then :
6114   withval=$with_sysroot;
6115 else
6116   with_sysroot=no
6117 fi
6118
6119
6120 lt_sysroot=
6121 case ${with_sysroot} in #(
6122  yes)
6123    if test "$GCC" = yes; then
6124      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6125    fi
6126    ;; #(
6127  /*)
6128    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6129    ;; #(
6130  no|'')
6131    ;; #(
6132  *)
6133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6134 $as_echo "${with_sysroot}" >&6; }
6135    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6136    ;;
6137 esac
6138
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6140 $as_echo "${lt_sysroot:-no}" >&6; }
6141
6142
6143
6144
6145
6146 # Check whether --enable-libtool-lock was given.
6147 if test "${enable_libtool_lock+set}" = set; then :
6148   enableval=$enable_libtool_lock;
6149 fi
6150
6151 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6152
6153 # Some flags need to be propagated to the compiler or linker for good
6154 # libtool support.
6155 case $host in
6156 ia64-*-hpux*)
6157   # Find out which ABI we are using.
6158   echo 'int i;' > conftest.$ac_ext
6159   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6160   (eval $ac_compile) 2>&5
6161   ac_status=$?
6162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163   test $ac_status = 0; }; then
6164     case `/usr/bin/file conftest.$ac_objext` in
6165       *ELF-32*)
6166         HPUX_IA64_MODE="32"
6167         ;;
6168       *ELF-64*)
6169         HPUX_IA64_MODE="64"
6170         ;;
6171     esac
6172   fi
6173   rm -rf conftest*
6174   ;;
6175 *-*-irix6*)
6176   # Find out which ABI we are using.
6177   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6178   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6179   (eval $ac_compile) 2>&5
6180   ac_status=$?
6181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182   test $ac_status = 0; }; then
6183     if test "$lt_cv_prog_gnu_ld" = yes; then
6184       case `/usr/bin/file conftest.$ac_objext` in
6185         *32-bit*)
6186           LD="${LD-ld} -melf32bsmip"
6187           ;;
6188         *N32*)
6189           LD="${LD-ld} -melf32bmipn32"
6190           ;;
6191         *64-bit*)
6192           LD="${LD-ld} -melf64bmip"
6193         ;;
6194       esac
6195     else
6196       case `/usr/bin/file conftest.$ac_objext` in
6197         *32-bit*)
6198           LD="${LD-ld} -32"
6199           ;;
6200         *N32*)
6201           LD="${LD-ld} -n32"
6202           ;;
6203         *64-bit*)
6204           LD="${LD-ld} -64"
6205           ;;
6206       esac
6207     fi
6208   fi
6209   rm -rf conftest*
6210   ;;
6211
6212 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6213 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6214   # Find out which ABI we are using.
6215   echo 'int i;' > conftest.$ac_ext
6216   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6217   (eval $ac_compile) 2>&5
6218   ac_status=$?
6219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220   test $ac_status = 0; }; then
6221     case `/usr/bin/file conftest.o` in
6222       *32-bit*)
6223         case $host in
6224           x86_64-*kfreebsd*-gnu)
6225             LD="${LD-ld} -m elf_i386_fbsd"
6226             ;;
6227           x86_64-*linux*)
6228             case `/usr/bin/file conftest.o` in
6229               *x86-64*)
6230                 LD="${LD-ld} -m elf32_x86_64"
6231                 ;;
6232               *)
6233                 LD="${LD-ld} -m elf_i386"
6234                 ;;
6235             esac
6236             ;;
6237           powerpc64le-*)
6238             LD="${LD-ld} -m elf32lppclinux"
6239             ;;
6240           powerpc64-*)
6241             LD="${LD-ld} -m elf32ppclinux"
6242             ;;
6243           s390x-*linux*)
6244             LD="${LD-ld} -m elf_s390"
6245             ;;
6246           sparc64-*linux*)
6247             LD="${LD-ld} -m elf32_sparc"
6248             ;;
6249         esac
6250         ;;
6251       *64-bit*)
6252         case $host in
6253           x86_64-*kfreebsd*-gnu)
6254             LD="${LD-ld} -m elf_x86_64_fbsd"
6255             ;;
6256           x86_64-*linux*)
6257             LD="${LD-ld} -m elf_x86_64"
6258             ;;
6259           powerpcle-*)
6260             LD="${LD-ld} -m elf64lppc"
6261             ;;
6262           powerpc-*)
6263             LD="${LD-ld} -m elf64ppc"
6264             ;;
6265           s390*-*linux*|s390*-*tpf*)
6266             LD="${LD-ld} -m elf64_s390"
6267             ;;
6268           sparc*-*linux*)
6269             LD="${LD-ld} -m elf64_sparc"
6270             ;;
6271         esac
6272         ;;
6273     esac
6274   fi
6275   rm -rf conftest*
6276   ;;
6277
6278 *-*-sco3.2v5*)
6279   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6280   SAVE_CFLAGS="$CFLAGS"
6281   CFLAGS="$CFLAGS -belf"
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6283 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6284 if ${lt_cv_cc_needs_belf+:} false; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   ac_ext=c
6288 ac_cpp='$CPP $CPPFLAGS'
6289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292
6293      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h.  */
6295
6296 int
6297 main ()
6298 {
6299
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 if ac_fn_c_try_link "$LINENO"; then :
6305   lt_cv_cc_needs_belf=yes
6306 else
6307   lt_cv_cc_needs_belf=no
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext \
6310     conftest$ac_exeext conftest.$ac_ext
6311      ac_ext=c
6312 ac_cpp='$CPP $CPPFLAGS'
6313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6319 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6320   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6321     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6322     CFLAGS="$SAVE_CFLAGS"
6323   fi
6324   ;;
6325 *-*solaris*)
6326   # Find out which ABI we are using.
6327   echo 'int i;' > conftest.$ac_ext
6328   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6329   (eval $ac_compile) 2>&5
6330   ac_status=$?
6331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332   test $ac_status = 0; }; then
6333     case `/usr/bin/file conftest.o` in
6334     *64-bit*)
6335       case $lt_cv_prog_gnu_ld in
6336       yes*)
6337         case $host in
6338         i?86-*-solaris*)
6339           LD="${LD-ld} -m elf_x86_64"
6340           ;;
6341         sparc*-*-solaris*)
6342           LD="${LD-ld} -m elf64_sparc"
6343           ;;
6344         esac
6345         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6346         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6347           LD="${LD-ld}_sol2"
6348         fi
6349         ;;
6350       *)
6351         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6352           LD="${LD-ld} -64"
6353         fi
6354         ;;
6355       esac
6356       ;;
6357     esac
6358   fi
6359   rm -rf conftest*
6360   ;;
6361 esac
6362
6363 need_locks="$enable_libtool_lock"
6364
6365 if test -n "$ac_tool_prefix"; then
6366   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}mt; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   if test -n "$MANIFEST_TOOL"; then
6374   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379   IFS=$as_save_IFS
6380   test -z "$as_dir" && as_dir=.
6381     for ac_exec_ext in '' $ac_executable_extensions; do
6382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385     break 2
6386   fi
6387 done
6388   done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6394 if test -n "$MANIFEST_TOOL"; then
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6396 $as_echo "$MANIFEST_TOOL" >&6; }
6397 else
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400 fi
6401
6402
6403 fi
6404 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6405   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6406   # Extract the first word of "mt", so it can be a program name with args.
6407 set dummy mt; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$ac_ct_MANIFEST_TOOL"; then
6414   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6434 if test -n "$ac_ct_MANIFEST_TOOL"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6436 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6443     MANIFEST_TOOL=":"
6444   else
6445     case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6450 esac
6451     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6452   fi
6453 else
6454   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6455 fi
6456
6457 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6459 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6460 if ${lt_cv_path_mainfest_tool+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   lt_cv_path_mainfest_tool=no
6464   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6465   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6466   cat conftest.err >&5
6467   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6468     lt_cv_path_mainfest_tool=yes
6469   fi
6470   rm -f conftest*
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6473 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6474 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6475   MANIFEST_TOOL=:
6476 fi
6477
6478
6479
6480
6481
6482
6483   case $host_os in
6484     rhapsody* | darwin*)
6485     if test -n "$ac_tool_prefix"; then
6486   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   if test -n "$DSYMUTIL"; then
6494   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508   done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6514 if test -n "$DSYMUTIL"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6516 $as_echo "$DSYMUTIL" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522
6523 fi
6524 if test -z "$ac_cv_prog_DSYMUTIL"; then
6525   ac_ct_DSYMUTIL=$DSYMUTIL
6526   # Extract the first word of "dsymutil", so it can be a program name with args.
6527 set dummy dsymutil; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   if test -n "$ac_ct_DSYMUTIL"; then
6534   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541     for ac_exec_ext in '' $ac_executable_extensions; do
6542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548   done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6554 if test -n "$ac_ct_DSYMUTIL"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6556 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562   if test "x$ac_ct_DSYMUTIL" = x; then
6563     DSYMUTIL=":"
6564   else
6565     case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6570 esac
6571     DSYMUTIL=$ac_ct_DSYMUTIL
6572   fi
6573 else
6574   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6575 fi
6576
6577     if test -n "$ac_tool_prefix"; then
6578   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_NMEDIT+:} false; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   if test -n "$NMEDIT"; then
6586   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591   IFS=$as_save_IFS
6592   test -z "$as_dir" && as_dir=.
6593     for ac_exec_ext in '' $ac_executable_extensions; do
6594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597     break 2
6598   fi
6599 done
6600   done
6601 IFS=$as_save_IFS
6602
6603 fi
6604 fi
6605 NMEDIT=$ac_cv_prog_NMEDIT
6606 if test -n "$NMEDIT"; then
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6608 $as_echo "$NMEDIT" >&6; }
6609 else
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613
6614
6615 fi
6616 if test -z "$ac_cv_prog_NMEDIT"; then
6617   ac_ct_NMEDIT=$NMEDIT
6618   # Extract the first word of "nmedit", so it can be a program name with args.
6619 set dummy nmedit; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625   if test -n "$ac_ct_NMEDIT"; then
6626   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633     for ac_exec_ext in '' $ac_executable_extensions; do
6634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640   done
6641 IFS=$as_save_IFS
6642
6643 fi
6644 fi
6645 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6646 if test -n "$ac_ct_NMEDIT"; then
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6648 $as_echo "$ac_ct_NMEDIT" >&6; }
6649 else
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6652 fi
6653
6654   if test "x$ac_ct_NMEDIT" = x; then
6655     NMEDIT=":"
6656   else
6657     case $cross_compiling:$ac_tool_warned in
6658 yes:)
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663     NMEDIT=$ac_ct_NMEDIT
6664   fi
6665 else
6666   NMEDIT="$ac_cv_prog_NMEDIT"
6667 fi
6668
6669     if test -n "$ac_tool_prefix"; then
6670   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_LIPO+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   if test -n "$LIPO"; then
6678   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685     for ac_exec_ext in '' $ac_executable_extensions; do
6686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692   done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 LIPO=$ac_cv_prog_LIPO
6698 if test -n "$LIPO"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6700 $as_echo "$LIPO" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706
6707 fi
6708 if test -z "$ac_cv_prog_LIPO"; then
6709   ac_ct_LIPO=$LIPO
6710   # Extract the first word of "lipo", so it can be a program name with args.
6711 set dummy lipo; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6715   $as_echo_n "(cached) " >&6
6716 else
6717   if test -n "$ac_ct_LIPO"; then
6718   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725     for ac_exec_ext in '' $ac_executable_extensions; do
6726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727     ac_cv_prog_ac_ct_LIPO="lipo"
6728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732   done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6738 if test -n "$ac_ct_LIPO"; then
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6740 $as_echo "$ac_ct_LIPO" >&6; }
6741 else
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746   if test "x$ac_ct_LIPO" = x; then
6747     LIPO=":"
6748   else
6749     case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755     LIPO=$ac_ct_LIPO
6756   fi
6757 else
6758   LIPO="$ac_cv_prog_LIPO"
6759 fi
6760
6761     if test -n "$ac_tool_prefix"; then
6762   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}otool; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_OTOOL+:} false; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   if test -n "$OTOOL"; then
6770   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777     for ac_exec_ext in '' $ac_executable_extensions; do
6778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784   done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 OTOOL=$ac_cv_prog_OTOOL
6790 if test -n "$OTOOL"; then
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6792 $as_echo "$OTOOL" >&6; }
6793 else
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798
6799 fi
6800 if test -z "$ac_cv_prog_OTOOL"; then
6801   ac_ct_OTOOL=$OTOOL
6802   # Extract the first word of "otool", so it can be a program name with args.
6803 set dummy otool; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6807   $as_echo_n "(cached) " >&6
6808 else
6809   if test -n "$ac_ct_OTOOL"; then
6810   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815   IFS=$as_save_IFS
6816   test -z "$as_dir" && as_dir=.
6817     for ac_exec_ext in '' $ac_executable_extensions; do
6818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819     ac_cv_prog_ac_ct_OTOOL="otool"
6820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824   done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6830 if test -n "$ac_ct_OTOOL"; then
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6832 $as_echo "$ac_ct_OTOOL" >&6; }
6833 else
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6837
6838   if test "x$ac_ct_OTOOL" = x; then
6839     OTOOL=":"
6840   else
6841     case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847     OTOOL=$ac_ct_OTOOL
6848   fi
6849 else
6850   OTOOL="$ac_cv_prog_OTOOL"
6851 fi
6852
6853     if test -n "$ac_tool_prefix"; then
6854   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_OTOOL64+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   if test -n "$OTOOL64"; then
6862   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869     for ac_exec_ext in '' $ac_executable_extensions; do
6870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876   done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 OTOOL64=$ac_cv_prog_OTOOL64
6882 if test -n "$OTOOL64"; then
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6884 $as_echo "$OTOOL64" >&6; }
6885 else
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_OTOOL64"; then
6893   ac_ct_OTOOL64=$OTOOL64
6894   # Extract the first word of "otool64", so it can be a program name with args.
6895 set dummy otool64; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6899   $as_echo_n "(cached) " >&6
6900 else
6901   if test -n "$ac_ct_OTOOL64"; then
6902   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909     for ac_exec_ext in '' $ac_executable_extensions; do
6910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911     ac_cv_prog_ac_ct_OTOOL64="otool64"
6912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916   done
6917 IFS=$as_save_IFS
6918
6919 fi
6920 fi
6921 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6922 if test -n "$ac_ct_OTOOL64"; then
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6924 $as_echo "$ac_ct_OTOOL64" >&6; }
6925 else
6926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6928 fi
6929
6930   if test "x$ac_ct_OTOOL64" = x; then
6931     OTOOL64=":"
6932   else
6933     case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937 ac_tool_warned=yes ;;
6938 esac
6939     OTOOL64=$ac_ct_OTOOL64
6940   fi
6941 else
6942   OTOOL64="$ac_cv_prog_OTOOL64"
6943 fi
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6972 $as_echo_n "checking for -single_module linker flag... " >&6; }
6973 if ${lt_cv_apple_cc_single_mod+:} false; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   lt_cv_apple_cc_single_mod=no
6977       if test -z "${LT_MULTI_MODULE}"; then
6978         # By default we will add the -single_module flag. You can override
6979         # by either setting the environment variable LT_MULTI_MODULE
6980         # non-empty at configure time, or by adding -multi_module to the
6981         # link flags.
6982         rm -rf libconftest.dylib*
6983         echo "int foo(void){return 1;}" > conftest.c
6984         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6985 -dynamiclib -Wl,-single_module conftest.c" >&5
6986         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6987           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6988         _lt_result=$?
6989         # If there is a non-empty error log, and "single_module"
6990         # appears in it, assume the flag caused a linker warning
6991         if test -s conftest.err && $GREP single_module conftest.err; then
6992           cat conftest.err >&5
6993         # Otherwise, if the output was created with a 0 exit code from
6994         # the compiler, it worked.
6995         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6996           lt_cv_apple_cc_single_mod=yes
6997         else
6998           cat conftest.err >&5
6999         fi
7000         rm -rf libconftest.dylib*
7001         rm -f conftest.*
7002       fi
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7005 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7006
7007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7008 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7009 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7010   $as_echo_n "(cached) " >&6
7011 else
7012   lt_cv_ld_exported_symbols_list=no
7013       save_LDFLAGS=$LDFLAGS
7014       echo "_main" > conftest.sym
7015       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7016       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018
7019 int
7020 main ()
7021 {
7022
7023   ;
7024   return 0;
7025 }
7026 _ACEOF
7027 if ac_fn_c_try_link "$LINENO"; then :
7028   lt_cv_ld_exported_symbols_list=yes
7029 else
7030   lt_cv_ld_exported_symbols_list=no
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext \
7033     conftest$ac_exeext conftest.$ac_ext
7034         LDFLAGS="$save_LDFLAGS"
7035
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7038 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7039
7040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7041 $as_echo_n "checking for -force_load linker flag... " >&6; }
7042 if ${lt_cv_ld_force_load+:} false; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045   lt_cv_ld_force_load=no
7046       cat > conftest.c << _LT_EOF
7047 int forced_loaded() { return 2;}
7048 _LT_EOF
7049       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7050       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7051       echo "$AR cru libconftest.a conftest.o" >&5
7052       $AR cru libconftest.a conftest.o 2>&5
7053       echo "$RANLIB libconftest.a" >&5
7054       $RANLIB libconftest.a 2>&5
7055       cat > conftest.c << _LT_EOF
7056 int main() { return 0;}
7057 _LT_EOF
7058       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7059       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7060       _lt_result=$?
7061       if test -s conftest.err && $GREP force_load conftest.err; then
7062         cat conftest.err >&5
7063       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7064         lt_cv_ld_force_load=yes
7065       else
7066         cat conftest.err >&5
7067       fi
7068         rm -f conftest.err libconftest.a conftest conftest.c
7069         rm -rf conftest.dSYM
7070
7071 fi
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7073 $as_echo "$lt_cv_ld_force_load" >&6; }
7074     case $host_os in
7075     rhapsody* | darwin1.[012])
7076       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7077     darwin1.*)
7078       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7079     darwin*) # darwin 5.x on
7080       # if running on 10.5 or later, the deployment target defaults
7081       # to the OS version, if on x86, and 10.4, the deployment
7082       # target defaults to 10.4. Don't you love it?
7083       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7084         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7085           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7086         10.[012]*)
7087           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7088         10.*)
7089           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7090       esac
7091     ;;
7092   esac
7093     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7094       _lt_dar_single_mod='$single_module'
7095     fi
7096     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7097       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7098     else
7099       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7100     fi
7101     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7102       _lt_dsymutil='~$DSYMUTIL $lib || :'
7103     else
7104       _lt_dsymutil=
7105     fi
7106     ;;
7107   esac
7108
7109 ac_ext=c
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7115 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7116 # On Suns, sometimes $CPP names a directory.
7117 if test -n "$CPP" && test -d "$CPP"; then
7118   CPP=
7119 fi
7120 if test -z "$CPP"; then
7121   if ${ac_cv_prog_CPP+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124       # Double quotes because CPP needs to be expanded
7125     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7126     do
7127       ac_preproc_ok=false
7128 for ac_c_preproc_warn_flag in '' yes
7129 do
7130   # Use a header file that comes with gcc, so configuring glibc
7131   # with a fresh cross-compiler works.
7132   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133   # <limits.h> exists even on freestanding compilers.
7134   # On the NeXT, cc -E runs the code through the compiler's parser,
7135   # not just through cpp. "Syntax error" is here to catch this case.
7136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h.  */
7138 #ifdef __STDC__
7139 # include <limits.h>
7140 #else
7141 # include <assert.h>
7142 #endif
7143                      Syntax error
7144 _ACEOF
7145 if ac_fn_c_try_cpp "$LINENO"; then :
7146
7147 else
7148   # Broken: fails on valid input.
7149 continue
7150 fi
7151 rm -f conftest.err conftest.i conftest.$ac_ext
7152
7153   # OK, works on sane cases.  Now check whether nonexistent headers
7154   # can be detected and how.
7155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h.  */
7157 #include <ac_nonexistent.h>
7158 _ACEOF
7159 if ac_fn_c_try_cpp "$LINENO"; then :
7160   # Broken: success on invalid input.
7161 continue
7162 else
7163   # Passes both tests.
7164 ac_preproc_ok=:
7165 break
7166 fi
7167 rm -f conftest.err conftest.i conftest.$ac_ext
7168
7169 done
7170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7171 rm -f conftest.i conftest.err conftest.$ac_ext
7172 if $ac_preproc_ok; then :
7173   break
7174 fi
7175
7176     done
7177     ac_cv_prog_CPP=$CPP
7178
7179 fi
7180   CPP=$ac_cv_prog_CPP
7181 else
7182   ac_cv_prog_CPP=$CPP
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7185 $as_echo "$CPP" >&6; }
7186 ac_preproc_ok=false
7187 for ac_c_preproc_warn_flag in '' yes
7188 do
7189   # Use a header file that comes with gcc, so configuring glibc
7190   # with a fresh cross-compiler works.
7191   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192   # <limits.h> exists even on freestanding compilers.
7193   # On the NeXT, cc -E runs the code through the compiler's parser,
7194   # not just through cpp. "Syntax error" is here to catch this case.
7195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h.  */
7197 #ifdef __STDC__
7198 # include <limits.h>
7199 #else
7200 # include <assert.h>
7201 #endif
7202                      Syntax error
7203 _ACEOF
7204 if ac_fn_c_try_cpp "$LINENO"; then :
7205
7206 else
7207   # Broken: fails on valid input.
7208 continue
7209 fi
7210 rm -f conftest.err conftest.i conftest.$ac_ext
7211
7212   # OK, works on sane cases.  Now check whether nonexistent headers
7213   # can be detected and how.
7214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h.  */
7216 #include <ac_nonexistent.h>
7217 _ACEOF
7218 if ac_fn_c_try_cpp "$LINENO"; then :
7219   # Broken: success on invalid input.
7220 continue
7221 else
7222   # Passes both tests.
7223 ac_preproc_ok=:
7224 break
7225 fi
7226 rm -f conftest.err conftest.i conftest.$ac_ext
7227
7228 done
7229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7230 rm -f conftest.i conftest.err conftest.$ac_ext
7231 if $ac_preproc_ok; then :
7232
7233 else
7234   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7236 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7237 See \`config.log' for more details" "$LINENO" 5; }
7238 fi
7239
7240 ac_ext=c
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245
7246
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7248 $as_echo_n "checking for ANSI C header files... " >&6; }
7249 if ${ac_cv_header_stdc+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h.  */
7254 #include <stdlib.h>
7255 #include <stdarg.h>
7256 #include <string.h>
7257 #include <float.h>
7258
7259 int
7260 main ()
7261 {
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 if ac_fn_c_try_compile "$LINENO"; then :
7268   ac_cv_header_stdc=yes
7269 else
7270   ac_cv_header_stdc=no
7271 fi
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273
7274 if test $ac_cv_header_stdc = yes; then
7275   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h.  */
7278 #include <string.h>
7279
7280 _ACEOF
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282   $EGREP "memchr" >/dev/null 2>&1; then :
7283
7284 else
7285   ac_cv_header_stdc=no
7286 fi
7287 rm -f conftest*
7288
7289 fi
7290
7291 if test $ac_cv_header_stdc = yes; then
7292   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h.  */
7295 #include <stdlib.h>
7296
7297 _ACEOF
7298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7299   $EGREP "free" >/dev/null 2>&1; then :
7300
7301 else
7302   ac_cv_header_stdc=no
7303 fi
7304 rm -f conftest*
7305
7306 fi
7307
7308 if test $ac_cv_header_stdc = yes; then
7309   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7310   if test "$cross_compiling" = yes; then :
7311   :
7312 else
7313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h.  */
7315 #include <ctype.h>
7316 #include <stdlib.h>
7317 #if ((' ' & 0x0FF) == 0x020)
7318 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7319 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7320 #else
7321 # define ISLOWER(c) \
7322                    (('a' <= (c) && (c) <= 'i') \
7323                      || ('j' <= (c) && (c) <= 'r') \
7324                      || ('s' <= (c) && (c) <= 'z'))
7325 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7326 #endif
7327
7328 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7329 int
7330 main ()
7331 {
7332   int i;
7333   for (i = 0; i < 256; i++)
7334     if (XOR (islower (i), ISLOWER (i))
7335         || toupper (i) != TOUPPER (i))
7336       return 2;
7337   return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_c_try_run "$LINENO"; then :
7341
7342 else
7343   ac_cv_header_stdc=no
7344 fi
7345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7346   conftest.$ac_objext conftest.beam conftest.$ac_ext
7347 fi
7348
7349 fi
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7352 $as_echo "$ac_cv_header_stdc" >&6; }
7353 if test $ac_cv_header_stdc = yes; then
7354
7355 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7356
7357 fi
7358
7359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7360 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7361                   inttypes.h stdint.h unistd.h
7362 do :
7363   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7364 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7365 "
7366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7367   cat >>confdefs.h <<_ACEOF
7368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7369 _ACEOF
7370
7371 fi
7372
7373 done
7374
7375
7376 for ac_header in dlfcn.h
7377 do :
7378   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7379 "
7380 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7381   cat >>confdefs.h <<_ACEOF
7382 #define HAVE_DLFCN_H 1
7383 _ACEOF
7384
7385 fi
7386
7387 done
7388
7389
7390
7391
7392
7393 # Set options
7394
7395
7396
7397         enable_dlopen=no
7398
7399
7400   enable_win32_dll=no
7401
7402
7403             # Check whether --enable-shared was given.
7404 if test "${enable_shared+set}" = set; then :
7405   enableval=$enable_shared; p=${PACKAGE-default}
7406     case $enableval in
7407     yes) enable_shared=yes ;;
7408     no) enable_shared=no ;;
7409     *)
7410       enable_shared=no
7411       # Look at the argument we got.  We use all the common list separators.
7412       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413       for pkg in $enableval; do
7414         IFS="$lt_save_ifs"
7415         if test "X$pkg" = "X$p"; then
7416           enable_shared=yes
7417         fi
7418       done
7419       IFS="$lt_save_ifs"
7420       ;;
7421     esac
7422 else
7423   enable_shared=yes
7424 fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434   # Check whether --enable-static was given.
7435 if test "${enable_static+set}" = set; then :
7436   enableval=$enable_static; p=${PACKAGE-default}
7437     case $enableval in
7438     yes) enable_static=yes ;;
7439     no) enable_static=no ;;
7440     *)
7441      enable_static=no
7442       # Look at the argument we got.  We use all the common list separators.
7443       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444       for pkg in $enableval; do
7445         IFS="$lt_save_ifs"
7446         if test "X$pkg" = "X$p"; then
7447           enable_static=yes
7448         fi
7449       done
7450       IFS="$lt_save_ifs"
7451       ;;
7452     esac
7453 else
7454   enable_static=yes
7455 fi
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466 # Check whether --with-pic was given.
7467 if test "${with_pic+set}" = set; then :
7468   withval=$with_pic; lt_p=${PACKAGE-default}
7469     case $withval in
7470     yes|no) pic_mode=$withval ;;
7471     *)
7472       pic_mode=default
7473       # Look at the argument we got.  We use all the common list separators.
7474       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7475       for lt_pkg in $withval; do
7476         IFS="$lt_save_ifs"
7477         if test "X$lt_pkg" = "X$lt_p"; then
7478           pic_mode=yes
7479         fi
7480       done
7481       IFS="$lt_save_ifs"
7482       ;;
7483     esac
7484 else
7485   pic_mode=default
7486 fi
7487
7488
7489 test -z "$pic_mode" && pic_mode=default
7490
7491
7492
7493
7494
7495
7496
7497   # Check whether --enable-fast-install was given.
7498 if test "${enable_fast_install+set}" = set; then :
7499   enableval=$enable_fast_install; p=${PACKAGE-default}
7500     case $enableval in
7501     yes) enable_fast_install=yes ;;
7502     no) enable_fast_install=no ;;
7503     *)
7504       enable_fast_install=no
7505       # Look at the argument we got.  We use all the common list separators.
7506       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7507       for pkg in $enableval; do
7508         IFS="$lt_save_ifs"
7509         if test "X$pkg" = "X$p"; then
7510           enable_fast_install=yes
7511         fi
7512       done
7513       IFS="$lt_save_ifs"
7514       ;;
7515     esac
7516 else
7517   enable_fast_install=yes
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530 # This can be used to rebuild libtool when needed
7531 LIBTOOL_DEPS="$ltmain"
7532
7533 # Always use our own libtool.
7534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565 test -z "$LN_S" && LN_S="ln -s"
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 if test -n "${ZSH_VERSION+set}" ; then
7581    setopt NO_GLOB_SUBST
7582 fi
7583
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7585 $as_echo_n "checking for objdir... " >&6; }
7586 if ${lt_cv_objdir+:} false; then :
7587   $as_echo_n "(cached) " >&6
7588 else
7589   rm -f .libs 2>/dev/null
7590 mkdir .libs 2>/dev/null
7591 if test -d .libs; then
7592   lt_cv_objdir=.libs
7593 else
7594   # MS-DOS does not allow filenames that begin with a dot.
7595   lt_cv_objdir=_libs
7596 fi
7597 rmdir .libs 2>/dev/null
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7600 $as_echo "$lt_cv_objdir" >&6; }
7601 objdir=$lt_cv_objdir
7602
7603
7604
7605
7606
7607 cat >>confdefs.h <<_ACEOF
7608 #define LT_OBJDIR "$lt_cv_objdir/"
7609 _ACEOF
7610
7611
7612
7613
7614 case $host_os in
7615 aix3*)
7616   # AIX sometimes has problems with the GCC collect2 program.  For some
7617   # reason, if we set the COLLECT_NAMES environment variable, the problems
7618   # vanish in a puff of smoke.
7619   if test "X${COLLECT_NAMES+set}" != Xset; then
7620     COLLECT_NAMES=
7621     export COLLECT_NAMES
7622   fi
7623   ;;
7624 esac
7625
7626 # Global variables:
7627 ofile=libtool
7628 can_build_shared=yes
7629
7630 # All known linkers require a `.a' archive for static linking (except MSVC,
7631 # which needs '.lib').
7632 libext=a
7633
7634 with_gnu_ld="$lt_cv_prog_gnu_ld"
7635
7636 old_CC="$CC"
7637 old_CFLAGS="$CFLAGS"
7638
7639 # Set sane defaults for various variables
7640 test -z "$CC" && CC=cc
7641 test -z "$LTCC" && LTCC=$CC
7642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7643 test -z "$LD" && LD=ld
7644 test -z "$ac_objext" && ac_objext=o
7645
7646 for cc_temp in $compiler""; do
7647   case $cc_temp in
7648     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7649     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7650     \-*) ;;
7651     *) break;;
7652   esac
7653 done
7654 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7655
7656
7657 # Only perform the check for file, if the check method requires it
7658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7659 case $deplibs_check_method in
7660 file_magic*)
7661   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7663 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7664 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   case $MAGIC_CMD in
7668 [\\/*] |  ?:[\\/]*)
7669   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7670   ;;
7671 *)
7672   lt_save_MAGIC_CMD="$MAGIC_CMD"
7673   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7674   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7675   for ac_dir in $ac_dummy; do
7676     IFS="$lt_save_ifs"
7677     test -z "$ac_dir" && ac_dir=.
7678     if test -f $ac_dir/${ac_tool_prefix}file; then
7679       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7680       if test -n "$file_magic_test_file"; then
7681         case $deplibs_check_method in
7682         "file_magic "*)
7683           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7684           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7686             $EGREP "$file_magic_regex" > /dev/null; then
7687             :
7688           else
7689             cat <<_LT_EOF 1>&2
7690
7691 *** Warning: the command libtool uses to detect shared libraries,
7692 *** $file_magic_cmd, produces output that libtool cannot recognize.
7693 *** The result is that libtool may fail to recognize shared libraries
7694 *** as such.  This will affect the creation of libtool libraries that
7695 *** depend on shared libraries, but programs linked with such libtool
7696 *** libraries will work regardless of this problem.  Nevertheless, you
7697 *** may want to report the problem to your system manager and/or to
7698 *** bug-libtool@gnu.org
7699
7700 _LT_EOF
7701           fi ;;
7702         esac
7703       fi
7704       break
7705     fi
7706   done
7707   IFS="$lt_save_ifs"
7708   MAGIC_CMD="$lt_save_MAGIC_CMD"
7709   ;;
7710 esac
7711 fi
7712
7713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714 if test -n "$MAGIC_CMD"; then
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7716 $as_echo "$MAGIC_CMD" >&6; }
7717 else
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722
7723
7724
7725
7726 if test -z "$lt_cv_path_MAGIC_CMD"; then
7727   if test -n "$ac_tool_prefix"; then
7728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7729 $as_echo_n "checking for file... " >&6; }
7730 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   case $MAGIC_CMD in
7734 [\\/*] |  ?:[\\/]*)
7735   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7736   ;;
7737 *)
7738   lt_save_MAGIC_CMD="$MAGIC_CMD"
7739   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7740   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7741   for ac_dir in $ac_dummy; do
7742     IFS="$lt_save_ifs"
7743     test -z "$ac_dir" && ac_dir=.
7744     if test -f $ac_dir/file; then
7745       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7746       if test -n "$file_magic_test_file"; then
7747         case $deplibs_check_method in
7748         "file_magic "*)
7749           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7750           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7752             $EGREP "$file_magic_regex" > /dev/null; then
7753             :
7754           else
7755             cat <<_LT_EOF 1>&2
7756
7757 *** Warning: the command libtool uses to detect shared libraries,
7758 *** $file_magic_cmd, produces output that libtool cannot recognize.
7759 *** The result is that libtool may fail to recognize shared libraries
7760 *** as such.  This will affect the creation of libtool libraries that
7761 *** depend on shared libraries, but programs linked with such libtool
7762 *** libraries will work regardless of this problem.  Nevertheless, you
7763 *** may want to report the problem to your system manager and/or to
7764 *** bug-libtool@gnu.org
7765
7766 _LT_EOF
7767           fi ;;
7768         esac
7769       fi
7770       break
7771     fi
7772   done
7773   IFS="$lt_save_ifs"
7774   MAGIC_CMD="$lt_save_MAGIC_CMD"
7775   ;;
7776 esac
7777 fi
7778
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if test -n "$MAGIC_CMD"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7782 $as_echo "$MAGIC_CMD" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789   else
7790     MAGIC_CMD=:
7791   fi
7792 fi
7793
7794   fi
7795   ;;
7796 esac
7797
7798 # Use C for the default configuration in the libtool script
7799
7800 lt_save_CC="$CC"
7801 ac_ext=c
7802 ac_cpp='$CPP $CPPFLAGS'
7803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7806
7807
7808 # Source file extension for C test sources.
7809 ac_ext=c
7810
7811 # Object file extension for compiled C test sources.
7812 objext=o
7813 objext=$objext
7814
7815 # Code to be used in simple compile tests
7816 lt_simple_compile_test_code="int some_variable = 0;"
7817
7818 # Code to be used in simple link tests
7819 lt_simple_link_test_code='int main(){return(0);}'
7820
7821
7822
7823
7824
7825
7826
7827 # If no C compiler was specified, use CC.
7828 LTCC=${LTCC-"$CC"}
7829
7830 # If no C compiler flags were specified, use CFLAGS.
7831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7832
7833 # Allow CC to be a program name with arguments.
7834 compiler=$CC
7835
7836 # Save the default compiler, since it gets overwritten when the other
7837 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7838 compiler_DEFAULT=$CC
7839
7840 # save warnings/boilerplate of simple test code
7841 ac_outfile=conftest.$ac_objext
7842 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7844 _lt_compiler_boilerplate=`cat conftest.err`
7845 $RM conftest*
7846
7847 ac_outfile=conftest.$ac_objext
7848 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7850 _lt_linker_boilerplate=`cat conftest.err`
7851 $RM -r conftest*
7852
7853
7854 if test -n "$compiler"; then
7855
7856 lt_prog_compiler_no_builtin_flag=
7857
7858 if test "$GCC" = yes; then
7859   case $cc_basename in
7860   nvcc*)
7861     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7862   *)
7863     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7864   esac
7865
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7867 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7868 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7869   $as_echo_n "(cached) " >&6
7870 else
7871   lt_cv_prog_compiler_rtti_exceptions=no
7872    ac_outfile=conftest.$ac_objext
7873    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7874    lt_compiler_flag="-fno-rtti -fno-exceptions"
7875    # Insert the option either (1) after the last *FLAGS variable, or
7876    # (2) before a word containing "conftest.", or (3) at the end.
7877    # Note that $ac_compile itself does not contain backslashes and begins
7878    # with a dollar sign (not a hyphen), so the echo should work correctly.
7879    # The option is referenced via a variable to avoid confusing sed.
7880    lt_compile=`echo "$ac_compile" | $SED \
7881    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7882    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7883    -e 's:$: $lt_compiler_flag:'`
7884    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7885    (eval "$lt_compile" 2>conftest.err)
7886    ac_status=$?
7887    cat conftest.err >&5
7888    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889    if (exit $ac_status) && test -s "$ac_outfile"; then
7890      # The compiler can only warn and ignore the option if not recognized
7891      # So say no if there are warnings other than the usual output.
7892      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7893      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7894      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7895        lt_cv_prog_compiler_rtti_exceptions=yes
7896      fi
7897    fi
7898    $RM conftest*
7899
7900 fi
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7902 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7903
7904 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7905     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7906 else
7907     :
7908 fi
7909
7910 fi
7911
7912
7913
7914
7915
7916
7917   lt_prog_compiler_wl=
7918 lt_prog_compiler_pic=
7919 lt_prog_compiler_static=
7920
7921
7922   if test "$GCC" = yes; then
7923     lt_prog_compiler_wl='-Wl,'
7924     lt_prog_compiler_static='-static'
7925
7926     case $host_os in
7927       aix*)
7928       # All AIX code is PIC.
7929       if test "$host_cpu" = ia64; then
7930         # AIX 5 now supports IA64 processor
7931         lt_prog_compiler_static='-Bstatic'
7932       fi
7933       ;;
7934
7935     amigaos*)
7936       case $host_cpu in
7937       powerpc)
7938             # see comment about AmigaOS4 .so support
7939             lt_prog_compiler_pic='-fPIC'
7940         ;;
7941       m68k)
7942             # FIXME: we need at least 68020 code to build shared libraries, but
7943             # adding the `-m68020' flag to GCC prevents building anything better,
7944             # like `-m68040'.
7945             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7946         ;;
7947       esac
7948       ;;
7949
7950     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7951       # PIC is the default for these OSes.
7952       ;;
7953
7954     mingw* | cygwin* | pw32* | os2* | cegcc*)
7955       # This hack is so that the source file can tell whether it is being
7956       # built for inclusion in a dll (and should export symbols for example).
7957       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7958       # (--disable-auto-import) libraries
7959       lt_prog_compiler_pic='-DDLL_EXPORT'
7960       ;;
7961
7962     darwin* | rhapsody*)
7963       # PIC is the default on this platform
7964       # Common symbols not allowed in MH_DYLIB files
7965       lt_prog_compiler_pic='-fno-common'
7966       ;;
7967
7968     haiku*)
7969       # PIC is the default for Haiku.
7970       # The "-static" flag exists, but is broken.
7971       lt_prog_compiler_static=
7972       ;;
7973
7974     hpux*)
7975       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7976       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7977       # sets the default TLS model and affects inlining.
7978       case $host_cpu in
7979       hppa*64*)
7980         # +Z the default
7981         ;;
7982       *)
7983         lt_prog_compiler_pic='-fPIC'
7984         ;;
7985       esac
7986       ;;
7987
7988     interix[3-9]*)
7989       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7990       # Instead, we relocate shared libraries at runtime.
7991       ;;
7992
7993     msdosdjgpp*)
7994       # Just because we use GCC doesn't mean we suddenly get shared libraries
7995       # on systems that don't support them.
7996       lt_prog_compiler_can_build_shared=no
7997       enable_shared=no
7998       ;;
7999
8000     *nto* | *qnx*)
8001       # QNX uses GNU C++, but need to define -shared option too, otherwise
8002       # it will coredump.
8003       lt_prog_compiler_pic='-fPIC -shared'
8004       ;;
8005
8006     sysv4*MP*)
8007       if test -d /usr/nec; then
8008         lt_prog_compiler_pic=-Kconform_pic
8009       fi
8010       ;;
8011
8012     *)
8013       lt_prog_compiler_pic='-fPIC'
8014       ;;
8015     esac
8016
8017     case $cc_basename in
8018     nvcc*) # Cuda Compiler Driver 2.2
8019       lt_prog_compiler_wl='-Xlinker '
8020       if test -n "$lt_prog_compiler_pic"; then
8021         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8022       fi
8023       ;;
8024     esac
8025   else
8026     # PORTME Check for flag to pass linker flags through the system compiler.
8027     case $host_os in
8028     aix*)
8029       lt_prog_compiler_wl='-Wl,'
8030       if test "$host_cpu" = ia64; then
8031         # AIX 5 now supports IA64 processor
8032         lt_prog_compiler_static='-Bstatic'
8033       else
8034         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8035       fi
8036       ;;
8037
8038     mingw* | cygwin* | pw32* | os2* | cegcc*)
8039       # This hack is so that the source file can tell whether it is being
8040       # built for inclusion in a dll (and should export symbols for example).
8041       lt_prog_compiler_pic='-DDLL_EXPORT'
8042       ;;
8043
8044     hpux9* | hpux10* | hpux11*)
8045       lt_prog_compiler_wl='-Wl,'
8046       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8047       # not for PA HP-UX.
8048       case $host_cpu in
8049       hppa*64*|ia64*)
8050         # +Z the default
8051         ;;
8052       *)
8053         lt_prog_compiler_pic='+Z'
8054         ;;
8055       esac
8056       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8057       lt_prog_compiler_static='${wl}-a ${wl}archive'
8058       ;;
8059
8060     irix5* | irix6* | nonstopux*)
8061       lt_prog_compiler_wl='-Wl,'
8062       # PIC (with -KPIC) is the default.
8063       lt_prog_compiler_static='-non_shared'
8064       ;;
8065
8066     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8067       case $cc_basename in
8068       # old Intel for x86_64 which still supported -KPIC.
8069       ecc*)
8070         lt_prog_compiler_wl='-Wl,'
8071         lt_prog_compiler_pic='-KPIC'
8072         lt_prog_compiler_static='-static'
8073         ;;
8074       # icc used to be incompatible with GCC.
8075       # ICC 10 doesn't accept -KPIC any more.
8076       icc* | ifort*)
8077         lt_prog_compiler_wl='-Wl,'
8078         lt_prog_compiler_pic='-fPIC'
8079         lt_prog_compiler_static='-static'
8080         ;;
8081       # Lahey Fortran 8.1.
8082       lf95*)
8083         lt_prog_compiler_wl='-Wl,'
8084         lt_prog_compiler_pic='--shared'
8085         lt_prog_compiler_static='--static'
8086         ;;
8087       nagfor*)
8088         # NAG Fortran compiler
8089         lt_prog_compiler_wl='-Wl,-Wl,,'
8090         lt_prog_compiler_pic='-PIC'
8091         lt_prog_compiler_static='-Bstatic'
8092         ;;
8093       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8094         # Portland Group compilers (*not* the Pentium gcc compiler,
8095         # which looks to be a dead project)
8096         lt_prog_compiler_wl='-Wl,'
8097         lt_prog_compiler_pic='-fpic'
8098         lt_prog_compiler_static='-Bstatic'
8099         ;;
8100       ccc*)
8101         lt_prog_compiler_wl='-Wl,'
8102         # All Alpha code is PIC.
8103         lt_prog_compiler_static='-non_shared'
8104         ;;
8105       xl* | bgxl* | bgf* | mpixl*)
8106         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8107         lt_prog_compiler_wl='-Wl,'
8108         lt_prog_compiler_pic='-qpic'
8109         lt_prog_compiler_static='-qstaticlink'
8110         ;;
8111       *)
8112         case `$CC -V 2>&1 | sed 5q` in
8113         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8114           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8115           lt_prog_compiler_pic='-KPIC'
8116           lt_prog_compiler_static='-Bstatic'
8117           lt_prog_compiler_wl=''
8118           ;;
8119         *Sun\ F* | *Sun*Fortran*)
8120           lt_prog_compiler_pic='-KPIC'
8121           lt_prog_compiler_static='-Bstatic'
8122           lt_prog_compiler_wl='-Qoption ld '
8123           ;;
8124         *Sun\ C*)
8125           # Sun C 5.9
8126           lt_prog_compiler_pic='-KPIC'
8127           lt_prog_compiler_static='-Bstatic'
8128           lt_prog_compiler_wl='-Wl,'
8129           ;;
8130         *Intel*\ [CF]*Compiler*)
8131           lt_prog_compiler_wl='-Wl,'
8132           lt_prog_compiler_pic='-fPIC'
8133           lt_prog_compiler_static='-static'
8134           ;;
8135         *Portland\ Group*)
8136           lt_prog_compiler_wl='-Wl,'
8137           lt_prog_compiler_pic='-fpic'
8138           lt_prog_compiler_static='-Bstatic'
8139           ;;
8140         esac
8141         ;;
8142       esac
8143       ;;
8144
8145     newsos6)
8146       lt_prog_compiler_pic='-KPIC'
8147       lt_prog_compiler_static='-Bstatic'
8148       ;;
8149
8150     *nto* | *qnx*)
8151       # QNX uses GNU C++, but need to define -shared option too, otherwise
8152       # it will coredump.
8153       lt_prog_compiler_pic='-fPIC -shared'
8154       ;;
8155
8156     osf3* | osf4* | osf5*)
8157       lt_prog_compiler_wl='-Wl,'
8158       # All OSF/1 code is PIC.
8159       lt_prog_compiler_static='-non_shared'
8160       ;;
8161
8162     rdos*)
8163       lt_prog_compiler_static='-non_shared'
8164       ;;
8165
8166     solaris*)
8167       lt_prog_compiler_pic='-KPIC'
8168       lt_prog_compiler_static='-Bstatic'
8169       case $cc_basename in
8170       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8171         lt_prog_compiler_wl='-Qoption ld ';;
8172       *)
8173         lt_prog_compiler_wl='-Wl,';;
8174       esac
8175       ;;
8176
8177     sunos4*)
8178       lt_prog_compiler_wl='-Qoption ld '
8179       lt_prog_compiler_pic='-PIC'
8180       lt_prog_compiler_static='-Bstatic'
8181       ;;
8182
8183     sysv4 | sysv4.2uw2* | sysv4.3*)
8184       lt_prog_compiler_wl='-Wl,'
8185       lt_prog_compiler_pic='-KPIC'
8186       lt_prog_compiler_static='-Bstatic'
8187       ;;
8188
8189     sysv4*MP*)
8190       if test -d /usr/nec ;then
8191         lt_prog_compiler_pic='-Kconform_pic'
8192         lt_prog_compiler_static='-Bstatic'
8193       fi
8194       ;;
8195
8196     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8197       lt_prog_compiler_wl='-Wl,'
8198       lt_prog_compiler_pic='-KPIC'
8199       lt_prog_compiler_static='-Bstatic'
8200       ;;
8201
8202     unicos*)
8203       lt_prog_compiler_wl='-Wl,'
8204       lt_prog_compiler_can_build_shared=no
8205       ;;
8206
8207     uts4*)
8208       lt_prog_compiler_pic='-pic'
8209       lt_prog_compiler_static='-Bstatic'
8210       ;;
8211
8212     *)
8213       lt_prog_compiler_can_build_shared=no
8214       ;;
8215     esac
8216   fi
8217
8218 case $host_os in
8219   # For platforms which do not support PIC, -DPIC is meaningless:
8220   *djgpp*)
8221     lt_prog_compiler_pic=
8222     ;;
8223   *)
8224     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8225     ;;
8226 esac
8227
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8230 if ${lt_cv_prog_compiler_pic+:} false; then :
8231   $as_echo_n "(cached) " >&6
8232 else
8233   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8236 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8237 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8238
8239 #
8240 # Check to make sure the PIC flag actually works.
8241 #
8242 if test -n "$lt_prog_compiler_pic"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8245 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   lt_cv_prog_compiler_pic_works=no
8249    ac_outfile=conftest.$ac_objext
8250    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8251    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8252    # Insert the option either (1) after the last *FLAGS variable, or
8253    # (2) before a word containing "conftest.", or (3) at the end.
8254    # Note that $ac_compile itself does not contain backslashes and begins
8255    # with a dollar sign (not a hyphen), so the echo should work correctly.
8256    # The option is referenced via a variable to avoid confusing sed.
8257    lt_compile=`echo "$ac_compile" | $SED \
8258    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8260    -e 's:$: $lt_compiler_flag:'`
8261    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8262    (eval "$lt_compile" 2>conftest.err)
8263    ac_status=$?
8264    cat conftest.err >&5
8265    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266    if (exit $ac_status) && test -s "$ac_outfile"; then
8267      # The compiler can only warn and ignore the option if not recognized
8268      # So say no if there are warnings other than the usual output.
8269      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8270      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8271      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8272        lt_cv_prog_compiler_pic_works=yes
8273      fi
8274    fi
8275    $RM conftest*
8276
8277 fi
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8279 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8280
8281 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8282     case $lt_prog_compiler_pic in
8283      "" | " "*) ;;
8284      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8285      esac
8286 else
8287     lt_prog_compiler_pic=
8288      lt_prog_compiler_can_build_shared=no
8289 fi
8290
8291 fi
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303 #
8304 # Check to make sure the static flag actually works.
8305 #
8306 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8308 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8309 if ${lt_cv_prog_compiler_static_works+:} false; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   lt_cv_prog_compiler_static_works=no
8313    save_LDFLAGS="$LDFLAGS"
8314    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8315    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8316    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8317      # The linker can only warn and ignore the option if not recognized
8318      # So say no if there are warnings
8319      if test -s conftest.err; then
8320        # Append any errors to the config.log.
8321        cat conftest.err 1>&5
8322        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8323        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8324        if diff conftest.exp conftest.er2 >/dev/null; then
8325          lt_cv_prog_compiler_static_works=yes
8326        fi
8327      else
8328        lt_cv_prog_compiler_static_works=yes
8329      fi
8330    fi
8331    $RM -r conftest*
8332    LDFLAGS="$save_LDFLAGS"
8333
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8336 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8337
8338 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8339     :
8340 else
8341     lt_prog_compiler_static=
8342 fi
8343
8344
8345
8346
8347
8348
8349
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8351 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8352 if ${lt_cv_prog_compiler_c_o+:} false; then :
8353   $as_echo_n "(cached) " >&6
8354 else
8355   lt_cv_prog_compiler_c_o=no
8356    $RM -r conftest 2>/dev/null
8357    mkdir conftest
8358    cd conftest
8359    mkdir out
8360    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8361
8362    lt_compiler_flag="-o out/conftest2.$ac_objext"
8363    # Insert the option either (1) after the last *FLAGS variable, or
8364    # (2) before a word containing "conftest.", or (3) at the end.
8365    # Note that $ac_compile itself does not contain backslashes and begins
8366    # with a dollar sign (not a hyphen), so the echo should work correctly.
8367    lt_compile=`echo "$ac_compile" | $SED \
8368    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8369    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8370    -e 's:$: $lt_compiler_flag:'`
8371    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8372    (eval "$lt_compile" 2>out/conftest.err)
8373    ac_status=$?
8374    cat out/conftest.err >&5
8375    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8377    then
8378      # The compiler can only warn and ignore the option if not recognized
8379      # So say no if there are warnings
8380      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8381      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8382      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8383        lt_cv_prog_compiler_c_o=yes
8384      fi
8385    fi
8386    chmod u+w . 2>&5
8387    $RM conftest*
8388    # SGI C++ compiler will create directory out/ii_files/ for
8389    # template instantiation
8390    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8391    $RM out/* && rmdir out
8392    cd ..
8393    $RM -r conftest
8394    $RM conftest*
8395
8396 fi
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8398 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8399
8400
8401
8402
8403
8404
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8407 if ${lt_cv_prog_compiler_c_o+:} false; then :
8408   $as_echo_n "(cached) " >&6
8409 else
8410   lt_cv_prog_compiler_c_o=no
8411    $RM -r conftest 2>/dev/null
8412    mkdir conftest
8413    cd conftest
8414    mkdir out
8415    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8416
8417    lt_compiler_flag="-o out/conftest2.$ac_objext"
8418    # Insert the option either (1) after the last *FLAGS variable, or
8419    # (2) before a word containing "conftest.", or (3) at the end.
8420    # Note that $ac_compile itself does not contain backslashes and begins
8421    # with a dollar sign (not a hyphen), so the echo should work correctly.
8422    lt_compile=`echo "$ac_compile" | $SED \
8423    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8425    -e 's:$: $lt_compiler_flag:'`
8426    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8427    (eval "$lt_compile" 2>out/conftest.err)
8428    ac_status=$?
8429    cat out/conftest.err >&5
8430    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8432    then
8433      # The compiler can only warn and ignore the option if not recognized
8434      # So say no if there are warnings
8435      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8436      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8437      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8438        lt_cv_prog_compiler_c_o=yes
8439      fi
8440    fi
8441    chmod u+w . 2>&5
8442    $RM conftest*
8443    # SGI C++ compiler will create directory out/ii_files/ for
8444    # template instantiation
8445    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8446    $RM out/* && rmdir out
8447    cd ..
8448    $RM -r conftest
8449    $RM conftest*
8450
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8453 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8454
8455
8456
8457
8458 hard_links="nottested"
8459 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8460   # do not overwrite the value of need_locks provided by the user
8461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8462 $as_echo_n "checking if we can lock with hard links... " >&6; }
8463   hard_links=yes
8464   $RM conftest*
8465   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8466   touch conftest.a
8467   ln conftest.a conftest.b 2>&5 || hard_links=no
8468   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8470 $as_echo "$hard_links" >&6; }
8471   if test "$hard_links" = no; then
8472     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8473 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8474     need_locks=warn
8475   fi
8476 else
8477   need_locks=no
8478 fi
8479
8480
8481
8482
8483
8484
8485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8486 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8487
8488   runpath_var=
8489   allow_undefined_flag=
8490   always_export_symbols=no
8491   archive_cmds=
8492   archive_expsym_cmds=
8493   compiler_needs_object=no
8494   enable_shared_with_static_runtimes=no
8495   export_dynamic_flag_spec=
8496   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8497   hardcode_automatic=no
8498   hardcode_direct=no
8499   hardcode_direct_absolute=no
8500   hardcode_libdir_flag_spec=
8501   hardcode_libdir_separator=
8502   hardcode_minus_L=no
8503   hardcode_shlibpath_var=unsupported
8504   inherit_rpath=no
8505   link_all_deplibs=unknown
8506   module_cmds=
8507   module_expsym_cmds=
8508   old_archive_from_new_cmds=
8509   old_archive_from_expsyms_cmds=
8510   thread_safe_flag_spec=
8511   whole_archive_flag_spec=
8512   # include_expsyms should be a list of space-separated symbols to be *always*
8513   # included in the symbol list
8514   include_expsyms=
8515   # exclude_expsyms can be an extended regexp of symbols to exclude
8516   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8517   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8518   # as well as any symbol that contains `d'.
8519   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8520   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8521   # platforms (ab)use it in PIC code, but their linkers get confused if
8522   # the symbol is explicitly referenced.  Since portable code cannot
8523   # rely on this symbol name, it's probably fine to never include it in
8524   # preloaded symbol tables.
8525   # Exclude shared library initialization/finalization symbols.
8526   extract_expsyms_cmds=
8527
8528   case $host_os in
8529   cygwin* | mingw* | pw32* | cegcc*)
8530     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8531     # When not using gcc, we currently assume that we are using
8532     # Microsoft Visual C++.
8533     if test "$GCC" != yes; then
8534       with_gnu_ld=no
8535     fi
8536     ;;
8537   interix*)
8538     # we just hope/assume this is gcc and not c89 (= MSVC++)
8539     with_gnu_ld=yes
8540     ;;
8541   openbsd*)
8542     with_gnu_ld=no
8543     ;;
8544   linux* | k*bsd*-gnu | gnu*)
8545     link_all_deplibs=no
8546     ;;
8547   esac
8548
8549   ld_shlibs=yes
8550
8551   # On some targets, GNU ld is compatible enough with the native linker
8552   # that we're better off using the native interface for both.
8553   lt_use_gnu_ld_interface=no
8554   if test "$with_gnu_ld" = yes; then
8555     case $host_os in
8556       aix*)
8557         # The AIX port of GNU ld has always aspired to compatibility
8558         # with the native linker.  However, as the warning in the GNU ld
8559         # block says, versions before 2.19.5* couldn't really create working
8560         # shared libraries, regardless of the interface used.
8561         case `$LD -v 2>&1` in
8562           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8563           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8564           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8565           *)
8566             lt_use_gnu_ld_interface=yes
8567             ;;
8568         esac
8569         ;;
8570       *)
8571         lt_use_gnu_ld_interface=yes
8572         ;;
8573     esac
8574   fi
8575
8576   if test "$lt_use_gnu_ld_interface" = yes; then
8577     # If archive_cmds runs LD, not CC, wlarc should be empty
8578     wlarc='${wl}'
8579
8580     # Set some defaults for GNU ld with shared library support. These
8581     # are reset later if shared libraries are not supported. Putting them
8582     # here allows them to be overridden if necessary.
8583     runpath_var=LD_RUN_PATH
8584     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8585     export_dynamic_flag_spec='${wl}--export-dynamic'
8586     # ancient GNU ld didn't support --whole-archive et. al.
8587     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8588       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8589     else
8590       whole_archive_flag_spec=
8591     fi
8592     supports_anon_versioning=no
8593     case `$LD -v 2>&1` in
8594       *GNU\ gold*) supports_anon_versioning=yes ;;
8595       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8596       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8597       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8598       *\ 2.11.*) ;; # other 2.11 versions
8599       *) supports_anon_versioning=yes ;;
8600     esac
8601
8602     # See if GNU ld supports shared libraries.
8603     case $host_os in
8604     aix[3-9]*)
8605       # On AIX/PPC, the GNU linker is very broken
8606       if test "$host_cpu" != ia64; then
8607         ld_shlibs=no
8608         cat <<_LT_EOF 1>&2
8609
8610 *** Warning: the GNU linker, at least up to release 2.19, is reported
8611 *** to be unable to reliably create shared libraries on AIX.
8612 *** Therefore, libtool is disabling shared libraries support.  If you
8613 *** really care for shared libraries, you may want to install binutils
8614 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8615 *** You will then need to restart the configuration process.
8616
8617 _LT_EOF
8618       fi
8619       ;;
8620
8621     amigaos*)
8622       case $host_cpu in
8623       powerpc)
8624             # see comment about AmigaOS4 .so support
8625             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8626             archive_expsym_cmds=''
8627         ;;
8628       m68k)
8629             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)'
8630             hardcode_libdir_flag_spec='-L$libdir'
8631             hardcode_minus_L=yes
8632         ;;
8633       esac
8634       ;;
8635
8636     beos*)
8637       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8638         allow_undefined_flag=unsupported
8639         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8640         # support --undefined.  This deserves some investigation.  FIXME
8641         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642       else
8643         ld_shlibs=no
8644       fi
8645       ;;
8646
8647     cygwin* | mingw* | pw32* | cegcc*)
8648       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8649       # as there is no search path for DLLs.
8650       hardcode_libdir_flag_spec='-L$libdir'
8651       export_dynamic_flag_spec='${wl}--export-all-symbols'
8652       allow_undefined_flag=unsupported
8653       always_export_symbols=no
8654       enable_shared_with_static_runtimes=yes
8655       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'
8656       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8657
8658       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8659         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8660         # If the export-symbols file already is a .def file (1st line
8661         # is EXPORTS), use it as is; otherwise, prepend...
8662         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8663           cp $export_symbols $output_objdir/$soname.def;
8664         else
8665           echo EXPORTS > $output_objdir/$soname.def;
8666           cat $export_symbols >> $output_objdir/$soname.def;
8667         fi~
8668         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8669       else
8670         ld_shlibs=no
8671       fi
8672       ;;
8673
8674     haiku*)
8675       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676       link_all_deplibs=yes
8677       ;;
8678
8679     interix[3-9]*)
8680       hardcode_direct=no
8681       hardcode_shlibpath_var=no
8682       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8683       export_dynamic_flag_spec='${wl}-E'
8684       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8685       # Instead, shared libraries are loaded at an image base (0x10000000 by
8686       # default) and relocated if they conflict, which is a slow very memory
8687       # consuming and fragmenting process.  To avoid this, we pick a random,
8688       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8689       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8690       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8691       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'
8692       ;;
8693
8694     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8695       tmp_diet=no
8696       if test "$host_os" = linux-dietlibc; then
8697         case $cc_basename in
8698           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8699         esac
8700       fi
8701       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8702          && test "$tmp_diet" = no
8703       then
8704         tmp_addflag=' $pic_flag'
8705         tmp_sharedflag='-shared'
8706         case $cc_basename,$host_cpu in
8707         pgcc*)                          # Portland Group C compiler
8708           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'
8709           tmp_addflag=' $pic_flag'
8710           ;;
8711         pgf77* | pgf90* | pgf95* | pgfortran*)
8712                                         # Portland Group f77 and f90 compilers
8713           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'
8714           tmp_addflag=' $pic_flag -Mnomain' ;;
8715         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8716           tmp_addflag=' -i_dynamic' ;;
8717         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8718           tmp_addflag=' -i_dynamic -nofor_main' ;;
8719         ifc* | ifort*)                  # Intel Fortran compiler
8720           tmp_addflag=' -nofor_main' ;;
8721         lf95*)                          # Lahey Fortran 8.1
8722           whole_archive_flag_spec=
8723           tmp_sharedflag='--shared' ;;
8724         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8725           tmp_sharedflag='-qmkshrobj'
8726           tmp_addflag= ;;
8727         nvcc*)  # Cuda Compiler Driver 2.2
8728           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'
8729           compiler_needs_object=yes
8730           ;;
8731         esac
8732         case `$CC -V 2>&1 | sed 5q` in
8733         *Sun\ C*)                       # Sun C 5.9
8734           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'
8735           compiler_needs_object=yes
8736           tmp_sharedflag='-G' ;;
8737         *Sun\ F*)                       # Sun Fortran 8.3
8738           tmp_sharedflag='-G' ;;
8739         esac
8740         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741
8742         if test "x$supports_anon_versioning" = xyes; then
8743           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8744             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8745             echo "local: *; };" >> $output_objdir/$libname.ver~
8746             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8747         fi
8748
8749         case $cc_basename in
8750         xlf* | bgf* | bgxlf* | mpixlf*)
8751           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8752           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8753           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8754           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8755           if test "x$supports_anon_versioning" = xyes; then
8756             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8757               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8758               echo "local: *; };" >> $output_objdir/$libname.ver~
8759               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8760           fi
8761           ;;
8762         esac
8763       else
8764         ld_shlibs=no
8765       fi
8766       ;;
8767
8768     netbsd* | netbsdelf*-gnu)
8769       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8770         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8771         wlarc=
8772       else
8773         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8775       fi
8776       ;;
8777
8778     solaris*)
8779       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8780         ld_shlibs=no
8781         cat <<_LT_EOF 1>&2
8782
8783 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8784 *** create shared libraries on Solaris systems.  Therefore, libtool
8785 *** is disabling shared libraries support.  We urge you to upgrade GNU
8786 *** binutils to release 2.9.1 or newer.  Another option is to modify
8787 *** your PATH or compiler configuration so that the native linker is
8788 *** used, and then restart.
8789
8790 _LT_EOF
8791       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794       else
8795         ld_shlibs=no
8796       fi
8797       ;;
8798
8799     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8800       case `$LD -v 2>&1` in
8801         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8802         ld_shlibs=no
8803         cat <<_LT_EOF 1>&2
8804
8805 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8806 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8807 *** is disabling shared libraries support.  We urge you to upgrade GNU
8808 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8809 *** your PATH or compiler configuration so that the native linker is
8810 *** used, and then restart.
8811
8812 _LT_EOF
8813         ;;
8814         *)
8815           # For security reasons, it is highly recommended that you always
8816           # use absolute paths for naming shared libraries, and exclude the
8817           # DT_RUNPATH tag from executables and libraries.  But doing so
8818           # requires that you compile everything twice, which is a pain.
8819           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8820             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8822             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8823           else
8824             ld_shlibs=no
8825           fi
8826         ;;
8827       esac
8828       ;;
8829
8830     sunos4*)
8831       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8832       wlarc=
8833       hardcode_direct=yes
8834       hardcode_shlibpath_var=no
8835       ;;
8836
8837     *)
8838       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8839         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8840         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8841       else
8842         ld_shlibs=no
8843       fi
8844       ;;
8845     esac
8846
8847     if test "$ld_shlibs" = no; then
8848       runpath_var=
8849       hardcode_libdir_flag_spec=
8850       export_dynamic_flag_spec=
8851       whole_archive_flag_spec=
8852     fi
8853   else
8854     # PORTME fill in a description of your system's linker (not GNU ld)
8855     case $host_os in
8856     aix3*)
8857       allow_undefined_flag=unsupported
8858       always_export_symbols=yes
8859       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'
8860       # Note: this linker hardcodes the directories in LIBPATH if there
8861       # are no directories specified by -L.
8862       hardcode_minus_L=yes
8863       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8864         # Neither direct hardcoding nor static linking is supported with a
8865         # broken collect2.
8866         hardcode_direct=unsupported
8867       fi
8868       ;;
8869
8870     aix[4-9]*)
8871       if test "$host_cpu" = ia64; then
8872         # On IA64, the linker does run time linking by default, so we don't
8873         # have to do anything special.
8874         aix_use_runtimelinking=no
8875         exp_sym_flag='-Bexport'
8876         no_entry_flag=""
8877       else
8878         # If we're using GNU nm, then we don't want the "-C" option.
8879         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8880         # Also, AIX nm treats weak defined symbols like other global
8881         # defined symbols, whereas GNU nm marks them as "W".
8882         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8883           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'
8884         else
8885           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'
8886         fi
8887         aix_use_runtimelinking=no
8888
8889         # Test if we are trying to use run time linking or normal
8890         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8891         # need to do runtime linking.
8892         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8893           for ld_flag in $LDFLAGS; do
8894           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8895             aix_use_runtimelinking=yes
8896             break
8897           fi
8898           done
8899           ;;
8900         esac
8901
8902         exp_sym_flag='-bexport'
8903         no_entry_flag='-bnoentry'
8904       fi
8905
8906       # When large executables or shared objects are built, AIX ld can
8907       # have problems creating the table of contents.  If linking a library
8908       # or program results in "error TOC overflow" add -mminimal-toc to
8909       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8910       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8911
8912       archive_cmds=''
8913       hardcode_direct=yes
8914       hardcode_direct_absolute=yes
8915       hardcode_libdir_separator=':'
8916       link_all_deplibs=yes
8917       file_list_spec='${wl}-f,'
8918
8919       if test "$GCC" = yes; then
8920         case $host_os in aix4.[012]|aix4.[012].*)
8921         # We only want to do this on AIX 4.2 and lower, the check
8922         # below for broken collect2 doesn't work under 4.3+
8923           collect2name=`${CC} -print-prog-name=collect2`
8924           if test -f "$collect2name" &&
8925            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8926           then
8927           # We have reworked collect2
8928           :
8929           else
8930           # We have old collect2
8931           hardcode_direct=unsupported
8932           # It fails to find uninstalled libraries when the uninstalled
8933           # path is not listed in the libpath.  Setting hardcode_minus_L
8934           # to unsupported forces relinking
8935           hardcode_minus_L=yes
8936           hardcode_libdir_flag_spec='-L$libdir'
8937           hardcode_libdir_separator=
8938           fi
8939           ;;
8940         esac
8941         shared_flag='-shared'
8942         if test "$aix_use_runtimelinking" = yes; then
8943           shared_flag="$shared_flag "'${wl}-G'
8944         fi
8945         link_all_deplibs=no
8946       else
8947         # not using gcc
8948         if test "$host_cpu" = ia64; then
8949         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8950         # chokes on -Wl,-G. The following line is correct:
8951           shared_flag='-G'
8952         else
8953           if test "$aix_use_runtimelinking" = yes; then
8954             shared_flag='${wl}-G'
8955           else
8956             shared_flag='${wl}-bM:SRE'
8957           fi
8958         fi
8959       fi
8960
8961       export_dynamic_flag_spec='${wl}-bexpall'
8962       # It seems that -bexpall does not export symbols beginning with
8963       # underscore (_), so it is better to generate a list of symbols to export.
8964       always_export_symbols=yes
8965       if test "$aix_use_runtimelinking" = yes; then
8966         # Warning - without using the other runtime loading flags (-brtl),
8967         # -berok will link without error, but may produce a broken library.
8968         allow_undefined_flag='-berok'
8969         # Determine the default libpath from the value encoded in an
8970         # empty executable.
8971         if test "${lt_cv_aix_libpath+set}" = set; then
8972   aix_libpath=$lt_cv_aix_libpath
8973 else
8974   if ${lt_cv_aix_libpath_+:} false; then :
8975   $as_echo_n "(cached) " >&6
8976 else
8977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h.  */
8979
8980 int
8981 main ()
8982 {
8983
8984   ;
8985   return 0;
8986 }
8987 _ACEOF
8988 if ac_fn_c_try_link "$LINENO"; then :
8989
8990   lt_aix_libpath_sed='
8991       /Import File Strings/,/^$/ {
8992           /^0/ {
8993               s/^0  *\([^ ]*\) *$/\1/
8994               p
8995           }
8996       }'
8997   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8998   # Check for a 64-bit object if we didn't find anything.
8999   if test -z "$lt_cv_aix_libpath_"; then
9000     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9001   fi
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext \
9004     conftest$ac_exeext conftest.$ac_ext
9005   if test -z "$lt_cv_aix_libpath_"; then
9006     lt_cv_aix_libpath_="/usr/lib:/lib"
9007   fi
9008
9009 fi
9010
9011   aix_libpath=$lt_cv_aix_libpath_
9012 fi
9013
9014         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9015         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"
9016       else
9017         if test "$host_cpu" = ia64; then
9018           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9019           allow_undefined_flag="-z nodefs"
9020           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"
9021         else
9022          # Determine the default libpath from the value encoded in an
9023          # empty executable.
9024          if test "${lt_cv_aix_libpath+set}" = set; then
9025   aix_libpath=$lt_cv_aix_libpath
9026 else
9027   if ${lt_cv_aix_libpath_+:} false; then :
9028   $as_echo_n "(cached) " >&6
9029 else
9030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h.  */
9032
9033 int
9034 main ()
9035 {
9036
9037   ;
9038   return 0;
9039 }
9040 _ACEOF
9041 if ac_fn_c_try_link "$LINENO"; then :
9042
9043   lt_aix_libpath_sed='
9044       /Import File Strings/,/^$/ {
9045           /^0/ {
9046               s/^0  *\([^ ]*\) *$/\1/
9047               p
9048           }
9049       }'
9050   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9051   # Check for a 64-bit object if we didn't find anything.
9052   if test -z "$lt_cv_aix_libpath_"; then
9053     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054   fi
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext \
9057     conftest$ac_exeext conftest.$ac_ext
9058   if test -z "$lt_cv_aix_libpath_"; then
9059     lt_cv_aix_libpath_="/usr/lib:/lib"
9060   fi
9061
9062 fi
9063
9064   aix_libpath=$lt_cv_aix_libpath_
9065 fi
9066
9067          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9068           # Warning - without using the other run time loading flags,
9069           # -berok will link without error, but may produce a broken library.
9070           no_undefined_flag=' ${wl}-bernotok'
9071           allow_undefined_flag=' ${wl}-berok'
9072           if test "$with_gnu_ld" = yes; then
9073             # We only use this code for GNU lds that support --whole-archive.
9074             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9075           else
9076             # Exported symbols can be pulled into shared objects from archives
9077             whole_archive_flag_spec='$convenience'
9078           fi
9079           archive_cmds_need_lc=yes
9080           # This is similar to how AIX traditionally builds its shared libraries.
9081           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'
9082         fi
9083       fi
9084       ;;
9085
9086     amigaos*)
9087       case $host_cpu in
9088       powerpc)
9089             # see comment about AmigaOS4 .so support
9090             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091             archive_expsym_cmds=''
9092         ;;
9093       m68k)
9094             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)'
9095             hardcode_libdir_flag_spec='-L$libdir'
9096             hardcode_minus_L=yes
9097         ;;
9098       esac
9099       ;;
9100
9101     bsdi[45]*)
9102       export_dynamic_flag_spec=-rdynamic
9103       ;;
9104
9105     cygwin* | mingw* | pw32* | cegcc*)
9106       # When not using gcc, we currently assume that we are using
9107       # Microsoft Visual C++.
9108       # hardcode_libdir_flag_spec is actually meaningless, as there is
9109       # no search path for DLLs.
9110       case $cc_basename in
9111       cl*)
9112         # Native MSVC
9113         hardcode_libdir_flag_spec=' '
9114         allow_undefined_flag=unsupported
9115         always_export_symbols=yes
9116         file_list_spec='@'
9117         # Tell ltmain to make .lib files, not .a files.
9118         libext=lib
9119         # Tell ltmain to make .dll files, not .so files.
9120         shrext_cmds=".dll"
9121         # FIXME: Setting linknames here is a bad hack.
9122         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9123         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9124             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9125           else
9126             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9127           fi~
9128           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9129           linknames='
9130         # The linker will not automatically build a static lib if we build a DLL.
9131         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9132         enable_shared_with_static_runtimes=yes
9133         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9134         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9135         # Don't use ranlib
9136         old_postinstall_cmds='chmod 644 $oldlib'
9137         postlink_cmds='lt_outputfile="@OUTPUT@"~
9138           lt_tool_outputfile="@TOOL_OUTPUT@"~
9139           case $lt_outputfile in
9140             *.exe|*.EXE) ;;
9141             *)
9142               lt_outputfile="$lt_outputfile.exe"
9143               lt_tool_outputfile="$lt_tool_outputfile.exe"
9144               ;;
9145           esac~
9146           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9147             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9148             $RM "$lt_outputfile.manifest";
9149           fi'
9150         ;;
9151       *)
9152         # Assume MSVC wrapper
9153         hardcode_libdir_flag_spec=' '
9154         allow_undefined_flag=unsupported
9155         # Tell ltmain to make .lib files, not .a files.
9156         libext=lib
9157         # Tell ltmain to make .dll files, not .so files.
9158         shrext_cmds=".dll"
9159         # FIXME: Setting linknames here is a bad hack.
9160         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9161         # The linker will automatically build a .lib file if we build a DLL.
9162         old_archive_from_new_cmds='true'
9163         # FIXME: Should let the user specify the lib program.
9164         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9165         enable_shared_with_static_runtimes=yes
9166         ;;
9167       esac
9168       ;;
9169
9170     darwin* | rhapsody*)
9171
9172
9173   archive_cmds_need_lc=no
9174   hardcode_direct=no
9175   hardcode_automatic=yes
9176   hardcode_shlibpath_var=unsupported
9177   if test "$lt_cv_ld_force_load" = "yes"; then
9178     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\"`'
9179
9180   else
9181     whole_archive_flag_spec=''
9182   fi
9183   link_all_deplibs=yes
9184   allow_undefined_flag="$_lt_dar_allow_undefined"
9185   case $cc_basename in
9186      ifort*) _lt_dar_can_shared=yes ;;
9187      *) _lt_dar_can_shared=$GCC ;;
9188   esac
9189   if test "$_lt_dar_can_shared" = "yes"; then
9190     output_verbose_link_cmd=func_echo_all
9191     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9192     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9193     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}"
9194     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}"
9195
9196   else
9197   ld_shlibs=no
9198   fi
9199
9200       ;;
9201
9202     dgux*)
9203       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204       hardcode_libdir_flag_spec='-L$libdir'
9205       hardcode_shlibpath_var=no
9206       ;;
9207
9208     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9209     # support.  Future versions do this automatically, but an explicit c++rt0.o
9210     # does not break anything, and helps significantly (at the cost of a little
9211     # extra space).
9212     freebsd2.2*)
9213       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9214       hardcode_libdir_flag_spec='-R$libdir'
9215       hardcode_direct=yes
9216       hardcode_shlibpath_var=no
9217       ;;
9218
9219     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9220     freebsd2.*)
9221       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9222       hardcode_direct=yes
9223       hardcode_minus_L=yes
9224       hardcode_shlibpath_var=no
9225       ;;
9226
9227     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9228     freebsd* | dragonfly*)
9229       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9230       hardcode_libdir_flag_spec='-R$libdir'
9231       hardcode_direct=yes
9232       hardcode_shlibpath_var=no
9233       ;;
9234
9235     hpux9*)
9236       if test "$GCC" = yes; then
9237         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'
9238       else
9239         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'
9240       fi
9241       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9242       hardcode_libdir_separator=:
9243       hardcode_direct=yes
9244
9245       # hardcode_minus_L: Not really in the search PATH,
9246       # but as the default location of the library.
9247       hardcode_minus_L=yes
9248       export_dynamic_flag_spec='${wl}-E'
9249       ;;
9250
9251     hpux10*)
9252       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9253         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9254       else
9255         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9256       fi
9257       if test "$with_gnu_ld" = no; then
9258         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9259         hardcode_libdir_separator=:
9260         hardcode_direct=yes
9261         hardcode_direct_absolute=yes
9262         export_dynamic_flag_spec='${wl}-E'
9263         # hardcode_minus_L: Not really in the search PATH,
9264         # but as the default location of the library.
9265         hardcode_minus_L=yes
9266       fi
9267       ;;
9268
9269     hpux11*)
9270       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9271         case $host_cpu in
9272         hppa*64*)
9273           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9274           ;;
9275         ia64*)
9276           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9277           ;;
9278         *)
9279           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9280           ;;
9281         esac
9282       else
9283         case $host_cpu in
9284         hppa*64*)
9285           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9286           ;;
9287         ia64*)
9288           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9289           ;;
9290         *)
9291
9292           # Older versions of the 11.00 compiler do not understand -b yet
9293           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9294           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9295 $as_echo_n "checking if $CC understands -b... " >&6; }
9296 if ${lt_cv_prog_compiler__b+:} false; then :
9297   $as_echo_n "(cached) " >&6
9298 else
9299   lt_cv_prog_compiler__b=no
9300    save_LDFLAGS="$LDFLAGS"
9301    LDFLAGS="$LDFLAGS -b"
9302    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9303    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9304      # The linker can only warn and ignore the option if not recognized
9305      # So say no if there are warnings
9306      if test -s conftest.err; then
9307        # Append any errors to the config.log.
9308        cat conftest.err 1>&5
9309        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9310        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9311        if diff conftest.exp conftest.er2 >/dev/null; then
9312          lt_cv_prog_compiler__b=yes
9313        fi
9314      else
9315        lt_cv_prog_compiler__b=yes
9316      fi
9317    fi
9318    $RM -r conftest*
9319    LDFLAGS="$save_LDFLAGS"
9320
9321 fi
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9323 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9324
9325 if test x"$lt_cv_prog_compiler__b" = xyes; then
9326     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9327 else
9328     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9329 fi
9330
9331           ;;
9332         esac
9333       fi
9334       if test "$with_gnu_ld" = no; then
9335         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9336         hardcode_libdir_separator=:
9337
9338         case $host_cpu in
9339         hppa*64*|ia64*)
9340           hardcode_direct=no
9341           hardcode_shlibpath_var=no
9342           ;;
9343         *)
9344           hardcode_direct=yes
9345           hardcode_direct_absolute=yes
9346           export_dynamic_flag_spec='${wl}-E'
9347
9348           # hardcode_minus_L: Not really in the search PATH,
9349           # but as the default location of the library.
9350           hardcode_minus_L=yes
9351           ;;
9352         esac
9353       fi
9354       ;;
9355
9356     irix5* | irix6* | nonstopux*)
9357       if test "$GCC" = yes; then
9358         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'
9359         # Try to use the -exported_symbol ld option, if it does not
9360         # work, assume that -exports_file does not work either and
9361         # implicitly export all symbols.
9362         # This should be the same for all languages, so no per-tag cache variable.
9363         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9364 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9365 if ${lt_cv_irix_exported_symbol+:} false; then :
9366   $as_echo_n "(cached) " >&6
9367 else
9368   save_LDFLAGS="$LDFLAGS"
9369            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9370            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h.  */
9372 int foo (void) { return 0; }
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"; then :
9375   lt_cv_irix_exported_symbol=yes
9376 else
9377   lt_cv_irix_exported_symbol=no
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext \
9380     conftest$ac_exeext conftest.$ac_ext
9381            LDFLAGS="$save_LDFLAGS"
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9384 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9385         if test "$lt_cv_irix_exported_symbol" = yes; then
9386           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'
9387         fi
9388       else
9389         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'
9390         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'
9391       fi
9392       archive_cmds_need_lc='no'
9393       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394       hardcode_libdir_separator=:
9395       inherit_rpath=yes
9396       link_all_deplibs=yes
9397       ;;
9398
9399     netbsd* | netbsdelf*-gnu)
9400       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9401         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9402       else
9403         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9404       fi
9405       hardcode_libdir_flag_spec='-R$libdir'
9406       hardcode_direct=yes
9407       hardcode_shlibpath_var=no
9408       ;;
9409
9410     newsos6)
9411       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412       hardcode_direct=yes
9413       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414       hardcode_libdir_separator=:
9415       hardcode_shlibpath_var=no
9416       ;;
9417
9418     *nto* | *qnx*)
9419       ;;
9420
9421     openbsd*)
9422       if test -f /usr/libexec/ld.so; then
9423         hardcode_direct=yes
9424         hardcode_shlibpath_var=no
9425         hardcode_direct_absolute=yes
9426         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9427           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9428           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9429           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9430           export_dynamic_flag_spec='${wl}-E'
9431         else
9432           case $host_os in
9433            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9434              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9435              hardcode_libdir_flag_spec='-R$libdir'
9436              ;;
9437            *)
9438              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9439              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9440              ;;
9441           esac
9442         fi
9443       else
9444         ld_shlibs=no
9445       fi
9446       ;;
9447
9448     os2*)
9449       hardcode_libdir_flag_spec='-L$libdir'
9450       hardcode_minus_L=yes
9451       allow_undefined_flag=unsupported
9452       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'
9453       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9454       ;;
9455
9456     osf3*)
9457       if test "$GCC" = yes; then
9458         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9459         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'
9460       else
9461         allow_undefined_flag=' -expect_unresolved \*'
9462         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'
9463       fi
9464       archive_cmds_need_lc='no'
9465       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9466       hardcode_libdir_separator=:
9467       ;;
9468
9469     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9470       if test "$GCC" = yes; then
9471         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9472         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'
9473         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474       else
9475         allow_undefined_flag=' -expect_unresolved \*'
9476         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'
9477         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~
9478         $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'
9479
9480         # Both c and cxx compiler support -rpath directly
9481         hardcode_libdir_flag_spec='-rpath $libdir'
9482       fi
9483       archive_cmds_need_lc='no'
9484       hardcode_libdir_separator=:
9485       ;;
9486
9487     solaris*)
9488       no_undefined_flag=' -z defs'
9489       if test "$GCC" = yes; then
9490         wlarc='${wl}'
9491         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9492         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9493           $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'
9494       else
9495         case `$CC -V 2>&1` in
9496         *"Compilers 5.0"*)
9497           wlarc=''
9498           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9500           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9501           ;;
9502         *)
9503           wlarc='${wl}'
9504           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9505           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9506           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9507           ;;
9508         esac
9509       fi
9510       hardcode_libdir_flag_spec='-R$libdir'
9511       hardcode_shlibpath_var=no
9512       case $host_os in
9513       solaris2.[0-5] | solaris2.[0-5].*) ;;
9514       *)
9515         # The compiler driver will combine and reorder linker options,
9516         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9517         # but is careful enough not to reorder.
9518         # Supported since Solaris 2.6 (maybe 2.5.1?)
9519         if test "$GCC" = yes; then
9520           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9521         else
9522           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9523         fi
9524         ;;
9525       esac
9526       link_all_deplibs=yes
9527       ;;
9528
9529     sunos4*)
9530       if test "x$host_vendor" = xsequent; then
9531         # Use $CC to link under sequent, because it throws in some extra .o
9532         # files that make .init and .fini sections work.
9533         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9534       else
9535         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9536       fi
9537       hardcode_libdir_flag_spec='-L$libdir'
9538       hardcode_direct=yes
9539       hardcode_minus_L=yes
9540       hardcode_shlibpath_var=no
9541       ;;
9542
9543     sysv4)
9544       case $host_vendor in
9545         sni)
9546           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547           hardcode_direct=yes # is this really true???
9548         ;;
9549         siemens)
9550           ## LD is ld it makes a PLAMLIB
9551           ## CC just makes a GrossModule.
9552           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9553           reload_cmds='$CC -r -o $output$reload_objs'
9554           hardcode_direct=no
9555         ;;
9556         motorola)
9557           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9559         ;;
9560       esac
9561       runpath_var='LD_RUN_PATH'
9562       hardcode_shlibpath_var=no
9563       ;;
9564
9565     sysv4.3*)
9566       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567       hardcode_shlibpath_var=no
9568       export_dynamic_flag_spec='-Bexport'
9569       ;;
9570
9571     sysv4*MP*)
9572       if test -d /usr/nec; then
9573         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574         hardcode_shlibpath_var=no
9575         runpath_var=LD_RUN_PATH
9576         hardcode_runpath_var=yes
9577         ld_shlibs=yes
9578       fi
9579       ;;
9580
9581     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9582       no_undefined_flag='${wl}-z,text'
9583       archive_cmds_need_lc=no
9584       hardcode_shlibpath_var=no
9585       runpath_var='LD_RUN_PATH'
9586
9587       if test "$GCC" = yes; then
9588         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590       else
9591         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593       fi
9594       ;;
9595
9596     sysv5* | sco3.2v5* | sco5v6*)
9597       # Note: We can NOT use -z defs as we might desire, because we do not
9598       # link with -lc, and that would cause any symbols used from libc to
9599       # always be unresolved, which means just about no library would
9600       # ever link correctly.  If we're not using GNU ld we use -z text
9601       # though, which does catch some bad symbols but isn't as heavy-handed
9602       # as -z defs.
9603       no_undefined_flag='${wl}-z,text'
9604       allow_undefined_flag='${wl}-z,nodefs'
9605       archive_cmds_need_lc=no
9606       hardcode_shlibpath_var=no
9607       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9608       hardcode_libdir_separator=':'
9609       link_all_deplibs=yes
9610       export_dynamic_flag_spec='${wl}-Bexport'
9611       runpath_var='LD_RUN_PATH'
9612
9613       if test "$GCC" = yes; then
9614         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9615         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9616       else
9617         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9618         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9619       fi
9620       ;;
9621
9622     uts4*)
9623       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624       hardcode_libdir_flag_spec='-L$libdir'
9625       hardcode_shlibpath_var=no
9626       ;;
9627
9628     *)
9629       ld_shlibs=no
9630       ;;
9631     esac
9632
9633     if test x$host_vendor = xsni; then
9634       case $host in
9635       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9636         export_dynamic_flag_spec='${wl}-Blargedynsym'
9637         ;;
9638       esac
9639     fi
9640   fi
9641
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9643 $as_echo "$ld_shlibs" >&6; }
9644 test "$ld_shlibs" = no && can_build_shared=no
9645
9646 with_gnu_ld=$with_gnu_ld
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 #
9663 # Do we need to explicitly link libc?
9664 #
9665 case "x$archive_cmds_need_lc" in
9666 x|xyes)
9667   # Assume -lc should be added
9668   archive_cmds_need_lc=yes
9669
9670   if test "$enable_shared" = yes && test "$GCC" = yes; then
9671     case $archive_cmds in
9672     *'~'*)
9673       # FIXME: we may have to deal with multi-command sequences.
9674       ;;
9675     '$CC '*)
9676       # Test whether the compiler implicitly links with -lc since on some
9677       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9678       # to ld, don't add -lc before -lgcc.
9679       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9680 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9681 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   $RM conftest*
9685         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9686
9687         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9688   (eval $ac_compile) 2>&5
9689   ac_status=$?
9690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9691   test $ac_status = 0; } 2>conftest.err; then
9692           soname=conftest
9693           lib=conftest
9694           libobjs=conftest.$ac_objext
9695           deplibs=
9696           wl=$lt_prog_compiler_wl
9697           pic_flag=$lt_prog_compiler_pic
9698           compiler_flags=-v
9699           linker_flags=-v
9700           verstring=
9701           output_objdir=.
9702           libname=conftest
9703           lt_save_allow_undefined_flag=$allow_undefined_flag
9704           allow_undefined_flag=
9705           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9706   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9707   ac_status=$?
9708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9709   test $ac_status = 0; }
9710           then
9711             lt_cv_archive_cmds_need_lc=no
9712           else
9713             lt_cv_archive_cmds_need_lc=yes
9714           fi
9715           allow_undefined_flag=$lt_save_allow_undefined_flag
9716         else
9717           cat conftest.err 1>&5
9718         fi
9719         $RM conftest*
9720
9721 fi
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9723 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9724       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9725       ;;
9726     esac
9727   fi
9728   ;;
9729 esac
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9883 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9884
9885 if test "$GCC" = yes; then
9886   case $host_os in
9887     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9888     *) lt_awk_arg="/^libraries:/" ;;
9889   esac
9890   case $host_os in
9891     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9892     *) lt_sed_strip_eq="s,=/,/,g" ;;
9893   esac
9894   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9895   case $lt_search_path_spec in
9896   *\;*)
9897     # if the path contains ";" then we assume it to be the separator
9898     # otherwise default to the standard path separator (i.e. ":") - it is
9899     # assumed that no part of a normal pathname contains ";" but that should
9900     # okay in the real world where ";" in dirpaths is itself problematic.
9901     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9902     ;;
9903   *)
9904     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9905     ;;
9906   esac
9907   # Ok, now we have the path, separated by spaces, we can step through it
9908   # and add multilib dir if necessary.
9909   lt_tmp_lt_search_path_spec=
9910   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9911   for lt_sys_path in $lt_search_path_spec; do
9912     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9913       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9914     else
9915       test -d "$lt_sys_path" && \
9916         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9917     fi
9918   done
9919   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9920 BEGIN {RS=" "; FS="/|\n";} {
9921   lt_foo="";
9922   lt_count=0;
9923   for (lt_i = NF; lt_i > 0; lt_i--) {
9924     if ($lt_i != "" && $lt_i != ".") {
9925       if ($lt_i == "..") {
9926         lt_count++;
9927       } else {
9928         if (lt_count == 0) {
9929           lt_foo="/" $lt_i lt_foo;
9930         } else {
9931           lt_count--;
9932         }
9933       }
9934     }
9935   }
9936   if (lt_foo != "") { lt_freq[lt_foo]++; }
9937   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9938 }'`
9939   # AWK program above erroneously prepends '/' to C:/dos/paths
9940   # for these hosts.
9941   case $host_os in
9942     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9943       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9944   esac
9945   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9946 else
9947   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9948 fi
9949 library_names_spec=
9950 libname_spec='lib$name'
9951 soname_spec=
9952 shrext_cmds=".so"
9953 postinstall_cmds=
9954 postuninstall_cmds=
9955 finish_cmds=
9956 finish_eval=
9957 shlibpath_var=
9958 shlibpath_overrides_runpath=unknown
9959 version_type=none
9960 dynamic_linker="$host_os ld.so"
9961 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9962 need_lib_prefix=unknown
9963 hardcode_into_libs=no
9964
9965 # when you set need_version to no, make sure it does not cause -set_version
9966 # flags to be left without arguments
9967 need_version=unknown
9968
9969 case $host_os in
9970 aix3*)
9971   version_type=linux # correct to gnu/linux during the next big refactor
9972   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9973   shlibpath_var=LIBPATH
9974
9975   # AIX 3 has no versioning support, so we append a major version to the name.
9976   soname_spec='${libname}${release}${shared_ext}$major'
9977   ;;
9978
9979 aix[4-9]*)
9980   version_type=linux # correct to gnu/linux during the next big refactor
9981   need_lib_prefix=no
9982   need_version=no
9983   hardcode_into_libs=yes
9984   if test "$host_cpu" = ia64; then
9985     # AIX 5 supports IA64
9986     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9987     shlibpath_var=LD_LIBRARY_PATH
9988   else
9989     # With GCC up to 2.95.x, collect2 would create an import file
9990     # for dependence libraries.  The import file would start with
9991     # the line `#! .'.  This would cause the generated library to
9992     # depend on `.', always an invalid library.  This was fixed in
9993     # development snapshots of GCC prior to 3.0.
9994     case $host_os in
9995       aix4 | aix4.[01] | aix4.[01].*)
9996       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9997            echo ' yes '
9998            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9999         :
10000       else
10001         can_build_shared=no
10002       fi
10003       ;;
10004     esac
10005     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10006     # soname into executable. Probably we can add versioning support to
10007     # collect2, so additional links can be useful in future.
10008     if test "$aix_use_runtimelinking" = yes; then
10009       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10010       # instead of lib<name>.a to let people know that these are not
10011       # typical AIX shared libraries.
10012       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013     else
10014       # We preserve .a as extension for shared libraries through AIX4.2
10015       # and later when we are not doing run time linking.
10016       library_names_spec='${libname}${release}.a $libname.a'
10017       soname_spec='${libname}${release}${shared_ext}$major'
10018     fi
10019     shlibpath_var=LIBPATH
10020   fi
10021   ;;
10022
10023 amigaos*)
10024   case $host_cpu in
10025   powerpc)
10026     # Since July 2007 AmigaOS4 officially supports .so libraries.
10027     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029     ;;
10030   m68k)
10031     library_names_spec='$libname.ixlibrary $libname.a'
10032     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10033     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'
10034     ;;
10035   esac
10036   ;;
10037
10038 beos*)
10039   library_names_spec='${libname}${shared_ext}'
10040   dynamic_linker="$host_os ld.so"
10041   shlibpath_var=LIBRARY_PATH
10042   ;;
10043
10044 bsdi[45]*)
10045   version_type=linux # correct to gnu/linux during the next big refactor
10046   need_version=no
10047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048   soname_spec='${libname}${release}${shared_ext}$major'
10049   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10050   shlibpath_var=LD_LIBRARY_PATH
10051   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10052   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10053   # the default ld.so.conf also contains /usr/contrib/lib and
10054   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10055   # libtool to hard-code these into programs
10056   ;;
10057
10058 cygwin* | mingw* | pw32* | cegcc*)
10059   version_type=windows
10060   shrext_cmds=".dll"
10061   need_version=no
10062   need_lib_prefix=no
10063
10064   case $GCC,$cc_basename in
10065   yes,*)
10066     # gcc
10067     library_names_spec='$libname.dll.a'
10068     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10069     postinstall_cmds='base_file=`basename \${file}`~
10070       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10071       dldir=$destdir/`dirname \$dlpath`~
10072       test -d \$dldir || mkdir -p \$dldir~
10073       $install_prog $dir/$dlname \$dldir/$dlname~
10074       chmod a+x \$dldir/$dlname~
10075       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10076         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10077       fi'
10078     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10079       dlpath=$dir/\$dldll~
10080        $RM \$dlpath'
10081     shlibpath_overrides_runpath=yes
10082
10083     case $host_os in
10084     cygwin*)
10085       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10086       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10087
10088       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10089       ;;
10090     mingw* | cegcc*)
10091       # MinGW DLLs use traditional 'lib' prefix
10092       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10093       ;;
10094     pw32*)
10095       # pw32 DLLs use 'pw' prefix rather than 'lib'
10096       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10097       ;;
10098     esac
10099     dynamic_linker='Win32 ld.exe'
10100     ;;
10101
10102   *,cl*)
10103     # Native MSVC
10104     libname_spec='$name'
10105     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10106     library_names_spec='${libname}.dll.lib'
10107
10108     case $build_os in
10109     mingw*)
10110       sys_lib_search_path_spec=
10111       lt_save_ifs=$IFS
10112       IFS=';'
10113       for lt_path in $LIB
10114       do
10115         IFS=$lt_save_ifs
10116         # Let DOS variable expansion print the short 8.3 style file name.
10117         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10118         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10119       done
10120       IFS=$lt_save_ifs
10121       # Convert to MSYS style.
10122       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10123       ;;
10124     cygwin*)
10125       # Convert to unix form, then to dos form, then back to unix form
10126       # but this time dos style (no spaces!) so that the unix form looks
10127       # like /cygdrive/c/PROGRA~1:/cygdr...
10128       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10129       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10130       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10131       ;;
10132     *)
10133       sys_lib_search_path_spec="$LIB"
10134       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10135         # It is most probably a Windows format PATH.
10136         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10137       else
10138         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10139       fi
10140       # FIXME: find the short name or the path components, as spaces are
10141       # common. (e.g. "Program Files" -> "PROGRA~1")
10142       ;;
10143     esac
10144
10145     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10146     postinstall_cmds='base_file=`basename \${file}`~
10147       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10148       dldir=$destdir/`dirname \$dlpath`~
10149       test -d \$dldir || mkdir -p \$dldir~
10150       $install_prog $dir/$dlname \$dldir/$dlname'
10151     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10152       dlpath=$dir/\$dldll~
10153        $RM \$dlpath'
10154     shlibpath_overrides_runpath=yes
10155     dynamic_linker='Win32 link.exe'
10156     ;;
10157
10158   *)
10159     # Assume MSVC wrapper
10160     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10161     dynamic_linker='Win32 ld.exe'
10162     ;;
10163   esac
10164   # FIXME: first we should search . and the directory the executable is in
10165   shlibpath_var=PATH
10166   ;;
10167
10168 darwin* | rhapsody*)
10169   dynamic_linker="$host_os dyld"
10170   version_type=darwin
10171   need_lib_prefix=no
10172   need_version=no
10173   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10174   soname_spec='${libname}${release}${major}$shared_ext'
10175   shlibpath_overrides_runpath=yes
10176   shlibpath_var=DYLD_LIBRARY_PATH
10177   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10178
10179   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10180   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10181   ;;
10182
10183 dgux*)
10184   version_type=linux # correct to gnu/linux during the next big refactor
10185   need_lib_prefix=no
10186   need_version=no
10187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10188   soname_spec='${libname}${release}${shared_ext}$major'
10189   shlibpath_var=LD_LIBRARY_PATH
10190   ;;
10191
10192 freebsd* | dragonfly*)
10193   # DragonFly does not have aout.  When/if they implement a new
10194   # versioning mechanism, adjust this.
10195   if test -x /usr/bin/objformat; then
10196     objformat=`/usr/bin/objformat`
10197   else
10198     case $host_os in
10199     freebsd[23].*) objformat=aout ;;
10200     *) objformat=elf ;;
10201     esac
10202   fi
10203   version_type=freebsd-$objformat
10204   case $version_type in
10205     freebsd-elf*)
10206       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10207       need_version=no
10208       need_lib_prefix=no
10209       ;;
10210     freebsd-*)
10211       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10212       need_version=yes
10213       ;;
10214   esac
10215   shlibpath_var=LD_LIBRARY_PATH
10216   case $host_os in
10217   freebsd2.*)
10218     shlibpath_overrides_runpath=yes
10219     ;;
10220   freebsd3.[01]* | freebsdelf3.[01]*)
10221     shlibpath_overrides_runpath=yes
10222     hardcode_into_libs=yes
10223     ;;
10224   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10225   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10226     shlibpath_overrides_runpath=no
10227     hardcode_into_libs=yes
10228     ;;
10229   *) # from 4.6 on, and DragonFly
10230     shlibpath_overrides_runpath=yes
10231     hardcode_into_libs=yes
10232     ;;
10233   esac
10234   ;;
10235
10236 haiku*)
10237   version_type=linux # correct to gnu/linux during the next big refactor
10238   need_lib_prefix=no
10239   need_version=no
10240   dynamic_linker="$host_os runtime_loader"
10241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10242   soname_spec='${libname}${release}${shared_ext}$major'
10243   shlibpath_var=LIBRARY_PATH
10244   shlibpath_overrides_runpath=yes
10245   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10246   hardcode_into_libs=yes
10247   ;;
10248
10249 hpux9* | hpux10* | hpux11*)
10250   # Give a soname corresponding to the major version so that dld.sl refuses to
10251   # link against other versions.
10252   version_type=sunos
10253   need_lib_prefix=no
10254   need_version=no
10255   case $host_cpu in
10256   ia64*)
10257     shrext_cmds='.so'
10258     hardcode_into_libs=yes
10259     dynamic_linker="$host_os dld.so"
10260     shlibpath_var=LD_LIBRARY_PATH
10261     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263     soname_spec='${libname}${release}${shared_ext}$major'
10264     if test "X$HPUX_IA64_MODE" = X32; then
10265       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10266     else
10267       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10268     fi
10269     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10270     ;;
10271   hppa*64*)
10272     shrext_cmds='.sl'
10273     hardcode_into_libs=yes
10274     dynamic_linker="$host_os dld.sl"
10275     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10276     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278     soname_spec='${libname}${release}${shared_ext}$major'
10279     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10280     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10281     ;;
10282   *)
10283     shrext_cmds='.sl'
10284     dynamic_linker="$host_os dld.sl"
10285     shlibpath_var=SHLIB_PATH
10286     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288     soname_spec='${libname}${release}${shared_ext}$major'
10289     ;;
10290   esac
10291   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10292   postinstall_cmds='chmod 555 $lib'
10293   # or fails outright, so override atomically:
10294   install_override_mode=555
10295   ;;
10296
10297 interix[3-9]*)
10298   version_type=linux # correct to gnu/linux during the next big refactor
10299   need_lib_prefix=no
10300   need_version=no
10301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10302   soname_spec='${libname}${release}${shared_ext}$major'
10303   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10304   shlibpath_var=LD_LIBRARY_PATH
10305   shlibpath_overrides_runpath=no
10306   hardcode_into_libs=yes
10307   ;;
10308
10309 irix5* | irix6* | nonstopux*)
10310   case $host_os in
10311     nonstopux*) version_type=nonstopux ;;
10312     *)
10313         if test "$lt_cv_prog_gnu_ld" = yes; then
10314                 version_type=linux # correct to gnu/linux during the next big refactor
10315         else
10316                 version_type=irix
10317         fi ;;
10318   esac
10319   need_lib_prefix=no
10320   need_version=no
10321   soname_spec='${libname}${release}${shared_ext}$major'
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10323   case $host_os in
10324   irix5* | nonstopux*)
10325     libsuff= shlibsuff=
10326     ;;
10327   *)
10328     case $LD in # libtool.m4 will add one of these switches to LD
10329     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10330       libsuff= shlibsuff= libmagic=32-bit;;
10331     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10332       libsuff=32 shlibsuff=N32 libmagic=N32;;
10333     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10334       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10335     *) libsuff= shlibsuff= libmagic=never-match;;
10336     esac
10337     ;;
10338   esac
10339   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10340   shlibpath_overrides_runpath=no
10341   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10342   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10343   hardcode_into_libs=yes
10344   ;;
10345
10346 # No shared lib support for Linux oldld, aout, or coff.
10347 linux*oldld* | linux*aout* | linux*coff*)
10348   dynamic_linker=no
10349   ;;
10350
10351 # This must be glibc/ELF.
10352 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10353   version_type=linux # correct to gnu/linux during the next big refactor
10354   need_lib_prefix=no
10355   need_version=no
10356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357   soname_spec='${libname}${release}${shared_ext}$major'
10358   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10359   shlibpath_var=LD_LIBRARY_PATH
10360   shlibpath_overrides_runpath=no
10361
10362   # Some binutils ld are patched to set DT_RUNPATH
10363   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10364   $as_echo_n "(cached) " >&6
10365 else
10366   lt_cv_shlibpath_overrides_runpath=no
10367     save_LDFLAGS=$LDFLAGS
10368     save_libdir=$libdir
10369     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10370          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h.  */
10373
10374 int
10375 main ()
10376 {
10377
10378   ;
10379   return 0;
10380 }
10381 _ACEOF
10382 if ac_fn_c_try_link "$LINENO"; then :
10383   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10384   lt_cv_shlibpath_overrides_runpath=yes
10385 fi
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext \
10388     conftest$ac_exeext conftest.$ac_ext
10389     LDFLAGS=$save_LDFLAGS
10390     libdir=$save_libdir
10391
10392 fi
10393
10394   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10395
10396   # This implies no fast_install, which is unacceptable.
10397   # Some rework will be needed to allow for fast_install
10398   # before this can be enabled.
10399   hardcode_into_libs=yes
10400
10401   # Append ld.so.conf contents to the search path
10402   if test -f /etc/ld.so.conf; then
10403     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' ' '`
10404     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10405   fi
10406
10407   # We used to test for /lib/ld.so.1 and disable shared libraries on
10408   # powerpc, because MkLinux only supported shared libraries with the
10409   # GNU dynamic linker.  Since this was broken with cross compilers,
10410   # most powerpc-linux boxes support dynamic linking these days and
10411   # people can always --disable-shared, the test was removed, and we
10412   # assume the GNU/Linux dynamic linker is in use.
10413   dynamic_linker='GNU/Linux ld.so'
10414   ;;
10415
10416 netbsdelf*-gnu)
10417   version_type=linux
10418   need_lib_prefix=no
10419   need_version=no
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10421   soname_spec='${libname}${release}${shared_ext}$major'
10422   shlibpath_var=LD_LIBRARY_PATH
10423   shlibpath_overrides_runpath=no
10424   hardcode_into_libs=yes
10425   dynamic_linker='NetBSD ld.elf_so'
10426   ;;
10427
10428 netbsd*)
10429   version_type=sunos
10430   need_lib_prefix=no
10431   need_version=no
10432   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10434     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10435     dynamic_linker='NetBSD (a.out) ld.so'
10436   else
10437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10438     soname_spec='${libname}${release}${shared_ext}$major'
10439     dynamic_linker='NetBSD ld.elf_so'
10440   fi
10441   shlibpath_var=LD_LIBRARY_PATH
10442   shlibpath_overrides_runpath=yes
10443   hardcode_into_libs=yes
10444   ;;
10445
10446 newsos6)
10447   version_type=linux # correct to gnu/linux during the next big refactor
10448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449   shlibpath_var=LD_LIBRARY_PATH
10450   shlibpath_overrides_runpath=yes
10451   ;;
10452
10453 *nto* | *qnx*)
10454   version_type=qnx
10455   need_lib_prefix=no
10456   need_version=no
10457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458   soname_spec='${libname}${release}${shared_ext}$major'
10459   shlibpath_var=LD_LIBRARY_PATH
10460   shlibpath_overrides_runpath=no
10461   hardcode_into_libs=yes
10462   dynamic_linker='ldqnx.so'
10463   ;;
10464
10465 openbsd*)
10466   version_type=sunos
10467   sys_lib_dlsearch_path_spec="/usr/lib"
10468   need_lib_prefix=no
10469   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10470   case $host_os in
10471     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10472     *)                          need_version=no  ;;
10473   esac
10474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10475   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10476   shlibpath_var=LD_LIBRARY_PATH
10477   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10478     case $host_os in
10479       openbsd2.[89] | openbsd2.[89].*)
10480         shlibpath_overrides_runpath=no
10481         ;;
10482       *)
10483         shlibpath_overrides_runpath=yes
10484         ;;
10485       esac
10486   else
10487     shlibpath_overrides_runpath=yes
10488   fi
10489   ;;
10490
10491 os2*)
10492   libname_spec='$name'
10493   shrext_cmds=".dll"
10494   need_lib_prefix=no
10495   library_names_spec='$libname${shared_ext} $libname.a'
10496   dynamic_linker='OS/2 ld.exe'
10497   shlibpath_var=LIBPATH
10498   ;;
10499
10500 osf3* | osf4* | osf5*)
10501   version_type=osf
10502   need_lib_prefix=no
10503   need_version=no
10504   soname_spec='${libname}${release}${shared_ext}$major'
10505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506   shlibpath_var=LD_LIBRARY_PATH
10507   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10508   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10509   ;;
10510
10511 rdos*)
10512   dynamic_linker=no
10513   ;;
10514
10515 solaris*)
10516   version_type=linux # correct to gnu/linux during the next big refactor
10517   need_lib_prefix=no
10518   need_version=no
10519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520   soname_spec='${libname}${release}${shared_ext}$major'
10521   shlibpath_var=LD_LIBRARY_PATH
10522   shlibpath_overrides_runpath=yes
10523   hardcode_into_libs=yes
10524   # ldd complains unless libraries are executable
10525   postinstall_cmds='chmod +x $lib'
10526   ;;
10527
10528 sunos4*)
10529   version_type=sunos
10530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10531   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10532   shlibpath_var=LD_LIBRARY_PATH
10533   shlibpath_overrides_runpath=yes
10534   if test "$with_gnu_ld" = yes; then
10535     need_lib_prefix=no
10536   fi
10537   need_version=yes
10538   ;;
10539
10540 sysv4 | sysv4.3*)
10541   version_type=linux # correct to gnu/linux during the next big refactor
10542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543   soname_spec='${libname}${release}${shared_ext}$major'
10544   shlibpath_var=LD_LIBRARY_PATH
10545   case $host_vendor in
10546     sni)
10547       shlibpath_overrides_runpath=no
10548       need_lib_prefix=no
10549       runpath_var=LD_RUN_PATH
10550       ;;
10551     siemens)
10552       need_lib_prefix=no
10553       ;;
10554     motorola)
10555       need_lib_prefix=no
10556       need_version=no
10557       shlibpath_overrides_runpath=no
10558       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10559       ;;
10560   esac
10561   ;;
10562
10563 sysv4*MP*)
10564   if test -d /usr/nec ;then
10565     version_type=linux # correct to gnu/linux during the next big refactor
10566     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10567     soname_spec='$libname${shared_ext}.$major'
10568     shlibpath_var=LD_LIBRARY_PATH
10569   fi
10570   ;;
10571
10572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10573   version_type=freebsd-elf
10574   need_lib_prefix=no
10575   need_version=no
10576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10577   soname_spec='${libname}${release}${shared_ext}$major'
10578   shlibpath_var=LD_LIBRARY_PATH
10579   shlibpath_overrides_runpath=yes
10580   hardcode_into_libs=yes
10581   if test "$with_gnu_ld" = yes; then
10582     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10583   else
10584     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10585     case $host_os in
10586       sco3.2v5*)
10587         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10588         ;;
10589     esac
10590   fi
10591   sys_lib_dlsearch_path_spec='/usr/lib'
10592   ;;
10593
10594 tpf*)
10595   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10596   version_type=linux # correct to gnu/linux during the next big refactor
10597   need_lib_prefix=no
10598   need_version=no
10599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600   shlibpath_var=LD_LIBRARY_PATH
10601   shlibpath_overrides_runpath=no
10602   hardcode_into_libs=yes
10603   ;;
10604
10605 uts4*)
10606   version_type=linux # correct to gnu/linux during the next big refactor
10607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608   soname_spec='${libname}${release}${shared_ext}$major'
10609   shlibpath_var=LD_LIBRARY_PATH
10610   ;;
10611
10612 *)
10613   dynamic_linker=no
10614   ;;
10615 esac
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10617 $as_echo "$dynamic_linker" >&6; }
10618 test "$dynamic_linker" = no && can_build_shared=no
10619
10620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10621 if test "$GCC" = yes; then
10622   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10623 fi
10624
10625 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10626   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10627 fi
10628 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10629   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10630 fi
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10724 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10725 hardcode_action=
10726 if test -n "$hardcode_libdir_flag_spec" ||
10727    test -n "$runpath_var" ||
10728    test "X$hardcode_automatic" = "Xyes" ; then
10729
10730   # We can hardcode non-existent directories.
10731   if test "$hardcode_direct" != no &&
10732      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10733      # have to relink, otherwise we might link with an installed library
10734      # when we should be linking with a yet-to-be-installed one
10735      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10736      test "$hardcode_minus_L" != no; then
10737     # Linking always hardcodes the temporary library directory.
10738     hardcode_action=relink
10739   else
10740     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10741     hardcode_action=immediate
10742   fi
10743 else
10744   # We cannot hardcode anything, or else we can only hardcode existing
10745   # directories.
10746   hardcode_action=unsupported
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10749 $as_echo "$hardcode_action" >&6; }
10750
10751 if test "$hardcode_action" = relink ||
10752    test "$inherit_rpath" = yes; then
10753   # Fast installation is not supported
10754   enable_fast_install=no
10755 elif test "$shlibpath_overrides_runpath" = yes ||
10756      test "$enable_shared" = no; then
10757   # Fast installation is not necessary
10758   enable_fast_install=needless
10759 fi
10760
10761
10762
10763
10764
10765
10766   if test "x$enable_dlopen" != xyes; then
10767   enable_dlopen=unknown
10768   enable_dlopen_self=unknown
10769   enable_dlopen_self_static=unknown
10770 else
10771   lt_cv_dlopen=no
10772   lt_cv_dlopen_libs=
10773
10774   case $host_os in
10775   beos*)
10776     lt_cv_dlopen="load_add_on"
10777     lt_cv_dlopen_libs=
10778     lt_cv_dlopen_self=yes
10779     ;;
10780
10781   mingw* | pw32* | cegcc*)
10782     lt_cv_dlopen="LoadLibrary"
10783     lt_cv_dlopen_libs=
10784     ;;
10785
10786   cygwin*)
10787     lt_cv_dlopen="dlopen"
10788     lt_cv_dlopen_libs=
10789     ;;
10790
10791   darwin*)
10792   # if libdl is installed we need to link against it
10793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10794 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10795 if ${ac_cv_lib_dl_dlopen+:} false; then :
10796   $as_echo_n "(cached) " >&6
10797 else
10798   ac_check_lib_save_LIBS=$LIBS
10799 LIBS="-ldl  $LIBS"
10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h.  */
10802
10803 /* Override any GCC internal prototype to avoid an error.
10804    Use char because int might match the return type of a GCC
10805    builtin and then its argument prototype would still apply.  */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 char dlopen ();
10810 int
10811 main ()
10812 {
10813 return dlopen ();
10814   ;
10815   return 0;
10816 }
10817 _ACEOF
10818 if ac_fn_c_try_link "$LINENO"; then :
10819   ac_cv_lib_dl_dlopen=yes
10820 else
10821   ac_cv_lib_dl_dlopen=no
10822 fi
10823 rm -f core conftest.err conftest.$ac_objext \
10824     conftest$ac_exeext conftest.$ac_ext
10825 LIBS=$ac_check_lib_save_LIBS
10826 fi
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10828 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10829 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10830   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10831 else
10832
10833     lt_cv_dlopen="dyld"
10834     lt_cv_dlopen_libs=
10835     lt_cv_dlopen_self=yes
10836
10837 fi
10838
10839     ;;
10840
10841   *)
10842     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10843 if test "x$ac_cv_func_shl_load" = xyes; then :
10844   lt_cv_dlopen="shl_load"
10845 else
10846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10847 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10848 if ${ac_cv_lib_dld_shl_load+:} false; then :
10849   $as_echo_n "(cached) " >&6
10850 else
10851   ac_check_lib_save_LIBS=$LIBS
10852 LIBS="-ldld  $LIBS"
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h.  */
10855
10856 /* Override any GCC internal prototype to avoid an error.
10857    Use char because int might match the return type of a GCC
10858    builtin and then its argument prototype would still apply.  */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 char shl_load ();
10863 int
10864 main ()
10865 {
10866 return shl_load ();
10867   ;
10868   return 0;
10869 }
10870 _ACEOF
10871 if ac_fn_c_try_link "$LINENO"; then :
10872   ac_cv_lib_dld_shl_load=yes
10873 else
10874   ac_cv_lib_dld_shl_load=no
10875 fi
10876 rm -f core conftest.err conftest.$ac_objext \
10877     conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10879 fi
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10881 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10882 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10883   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10884 else
10885   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10886 if test "x$ac_cv_func_dlopen" = xyes; then :
10887   lt_cv_dlopen="dlopen"
10888 else
10889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10891 if ${ac_cv_lib_dl_dlopen+:} false; then :
10892   $as_echo_n "(cached) " >&6
10893 else
10894   ac_check_lib_save_LIBS=$LIBS
10895 LIBS="-ldl  $LIBS"
10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h.  */
10898
10899 /* Override any GCC internal prototype to avoid an error.
10900    Use char because int might match the return type of a GCC
10901    builtin and then its argument prototype would still apply.  */
10902 #ifdef __cplusplus
10903 extern "C"
10904 #endif
10905 char dlopen ();
10906 int
10907 main ()
10908 {
10909 return dlopen ();
10910   ;
10911   return 0;
10912 }
10913 _ACEOF
10914 if ac_fn_c_try_link "$LINENO"; then :
10915   ac_cv_lib_dl_dlopen=yes
10916 else
10917   ac_cv_lib_dl_dlopen=no
10918 fi
10919 rm -f core conftest.err conftest.$ac_objext \
10920     conftest$ac_exeext conftest.$ac_ext
10921 LIBS=$ac_check_lib_save_LIBS
10922 fi
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10924 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10925 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10926   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10927 else
10928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10929 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10930 if ${ac_cv_lib_svld_dlopen+:} false; then :
10931   $as_echo_n "(cached) " >&6
10932 else
10933   ac_check_lib_save_LIBS=$LIBS
10934 LIBS="-lsvld  $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h.  */
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939    Use char because int might match the return type of a GCC
10940    builtin and then its argument prototype would still apply.  */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char dlopen ();
10945 int
10946 main ()
10947 {
10948 return dlopen ();
10949   ;
10950   return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"; then :
10954   ac_cv_lib_svld_dlopen=yes
10955 else
10956   ac_cv_lib_svld_dlopen=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext \
10959     conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10961 fi
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10963 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10964 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10965   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10966 else
10967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10968 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10969 if ${ac_cv_lib_dld_dld_link+:} false; then :
10970   $as_echo_n "(cached) " >&6
10971 else
10972   ac_check_lib_save_LIBS=$LIBS
10973 LIBS="-ldld  $LIBS"
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h.  */
10976
10977 /* Override any GCC internal prototype to avoid an error.
10978    Use char because int might match the return type of a GCC
10979    builtin and then its argument prototype would still apply.  */
10980 #ifdef __cplusplus
10981 extern "C"
10982 #endif
10983 char dld_link ();
10984 int
10985 main ()
10986 {
10987 return dld_link ();
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 if ac_fn_c_try_link "$LINENO"; then :
10993   ac_cv_lib_dld_dld_link=yes
10994 else
10995   ac_cv_lib_dld_dld_link=no
10996 fi
10997 rm -f core conftest.err conftest.$ac_objext \
10998     conftest$ac_exeext conftest.$ac_ext
10999 LIBS=$ac_check_lib_save_LIBS
11000 fi
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11002 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11003 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11004   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11005 fi
11006
11007
11008 fi
11009
11010
11011 fi
11012
11013
11014 fi
11015
11016
11017 fi
11018
11019
11020 fi
11021
11022     ;;
11023   esac
11024
11025   if test "x$lt_cv_dlopen" != xno; then
11026     enable_dlopen=yes
11027   else
11028     enable_dlopen=no
11029   fi
11030
11031   case $lt_cv_dlopen in
11032   dlopen)
11033     save_CPPFLAGS="$CPPFLAGS"
11034     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11035
11036     save_LDFLAGS="$LDFLAGS"
11037     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11038
11039     save_LIBS="$LIBS"
11040     LIBS="$lt_cv_dlopen_libs $LIBS"
11041
11042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11043 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11044 if ${lt_cv_dlopen_self+:} false; then :
11045   $as_echo_n "(cached) " >&6
11046 else
11047           if test "$cross_compiling" = yes; then :
11048   lt_cv_dlopen_self=cross
11049 else
11050   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11051   lt_status=$lt_dlunknown
11052   cat > conftest.$ac_ext <<_LT_EOF
11053 #line $LINENO "configure"
11054 #include "confdefs.h"
11055
11056 #if HAVE_DLFCN_H
11057 #include <dlfcn.h>
11058 #endif
11059
11060 #include <stdio.h>
11061
11062 #ifdef RTLD_GLOBAL
11063 #  define LT_DLGLOBAL           RTLD_GLOBAL
11064 #else
11065 #  ifdef DL_GLOBAL
11066 #    define LT_DLGLOBAL         DL_GLOBAL
11067 #  else
11068 #    define LT_DLGLOBAL         0
11069 #  endif
11070 #endif
11071
11072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11073    find out it does not work in some platform. */
11074 #ifndef LT_DLLAZY_OR_NOW
11075 #  ifdef RTLD_LAZY
11076 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11077 #  else
11078 #    ifdef DL_LAZY
11079 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11080 #    else
11081 #      ifdef RTLD_NOW
11082 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11083 #      else
11084 #        ifdef DL_NOW
11085 #          define LT_DLLAZY_OR_NOW      DL_NOW
11086 #        else
11087 #          define LT_DLLAZY_OR_NOW      0
11088 #        endif
11089 #      endif
11090 #    endif
11091 #  endif
11092 #endif
11093
11094 /* When -fvisbility=hidden is used, assume the code has been annotated
11095    correspondingly for the symbols needed.  */
11096 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11097 int fnord () __attribute__((visibility("default")));
11098 #endif
11099
11100 int fnord () { return 42; }
11101 int main ()
11102 {
11103   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11104   int status = $lt_dlunknown;
11105
11106   if (self)
11107     {
11108       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11109       else
11110         {
11111           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11112           else puts (dlerror ());
11113         }
11114       /* dlclose (self); */
11115     }
11116   else
11117     puts (dlerror ());
11118
11119   return status;
11120 }
11121 _LT_EOF
11122   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11123   (eval $ac_link) 2>&5
11124   ac_status=$?
11125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11126   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11127     (./conftest; exit; ) >&5 2>/dev/null
11128     lt_status=$?
11129     case x$lt_status in
11130       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11131       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11132       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11133     esac
11134   else :
11135     # compilation failed
11136     lt_cv_dlopen_self=no
11137   fi
11138 fi
11139 rm -fr conftest*
11140
11141
11142 fi
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11144 $as_echo "$lt_cv_dlopen_self" >&6; }
11145
11146     if test "x$lt_cv_dlopen_self" = xyes; then
11147       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11148       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11149 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11150 if ${lt_cv_dlopen_self_static+:} false; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153           if test "$cross_compiling" = yes; then :
11154   lt_cv_dlopen_self_static=cross
11155 else
11156   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11157   lt_status=$lt_dlunknown
11158   cat > conftest.$ac_ext <<_LT_EOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11161
11162 #if HAVE_DLFCN_H
11163 #include <dlfcn.h>
11164 #endif
11165
11166 #include <stdio.h>
11167
11168 #ifdef RTLD_GLOBAL
11169 #  define LT_DLGLOBAL           RTLD_GLOBAL
11170 #else
11171 #  ifdef DL_GLOBAL
11172 #    define LT_DLGLOBAL         DL_GLOBAL
11173 #  else
11174 #    define LT_DLGLOBAL         0
11175 #  endif
11176 #endif
11177
11178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11179    find out it does not work in some platform. */
11180 #ifndef LT_DLLAZY_OR_NOW
11181 #  ifdef RTLD_LAZY
11182 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11183 #  else
11184 #    ifdef DL_LAZY
11185 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11186 #    else
11187 #      ifdef RTLD_NOW
11188 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11189 #      else
11190 #        ifdef DL_NOW
11191 #          define LT_DLLAZY_OR_NOW      DL_NOW
11192 #        else
11193 #          define LT_DLLAZY_OR_NOW      0
11194 #        endif
11195 #      endif
11196 #    endif
11197 #  endif
11198 #endif
11199
11200 /* When -fvisbility=hidden is used, assume the code has been annotated
11201    correspondingly for the symbols needed.  */
11202 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11203 int fnord () __attribute__((visibility("default")));
11204 #endif
11205
11206 int fnord () { return 42; }
11207 int main ()
11208 {
11209   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11210   int status = $lt_dlunknown;
11211
11212   if (self)
11213     {
11214       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11215       else
11216         {
11217           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11218           else puts (dlerror ());
11219         }
11220       /* dlclose (self); */
11221     }
11222   else
11223     puts (dlerror ());
11224
11225   return status;
11226 }
11227 _LT_EOF
11228   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11229   (eval $ac_link) 2>&5
11230   ac_status=$?
11231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11232   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11233     (./conftest; exit; ) >&5 2>/dev/null
11234     lt_status=$?
11235     case x$lt_status in
11236       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11237       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11238       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11239     esac
11240   else :
11241     # compilation failed
11242     lt_cv_dlopen_self_static=no
11243   fi
11244 fi
11245 rm -fr conftest*
11246
11247
11248 fi
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11250 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11251     fi
11252
11253     CPPFLAGS="$save_CPPFLAGS"
11254     LDFLAGS="$save_LDFLAGS"
11255     LIBS="$save_LIBS"
11256     ;;
11257   esac
11258
11259   case $lt_cv_dlopen_self in
11260   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11261   *) enable_dlopen_self=unknown ;;
11262   esac
11263
11264   case $lt_cv_dlopen_self_static in
11265   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11266   *) enable_dlopen_self_static=unknown ;;
11267   esac
11268 fi
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286 striplib=
11287 old_striplib=
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11289 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11290 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11291   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11292   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294 $as_echo "yes" >&6; }
11295 else
11296 # FIXME - insert some real tests, host_os isn't really good enough
11297   case $host_os in
11298   darwin*)
11299     if test -n "$STRIP" ; then
11300       striplib="$STRIP -x"
11301       old_striplib="$STRIP -S"
11302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11303 $as_echo "yes" >&6; }
11304     else
11305       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11307     fi
11308     ;;
11309   *)
11310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11312     ;;
11313   esac
11314 fi
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327   # Report which library types will actually be built
11328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11329 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11331 $as_echo "$can_build_shared" >&6; }
11332
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11334 $as_echo_n "checking whether to build shared libraries... " >&6; }
11335   test "$can_build_shared" = "no" && enable_shared=no
11336
11337   # On AIX, shared libraries and static libraries use the same namespace, and
11338   # are all built from PIC.
11339   case $host_os in
11340   aix3*)
11341     test "$enable_shared" = yes && enable_static=no
11342     if test -n "$RANLIB"; then
11343       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11344       postinstall_cmds='$RANLIB $lib'
11345     fi
11346     ;;
11347
11348   aix[4-9]*)
11349     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11350       test "$enable_shared" = yes && enable_static=no
11351     fi
11352     ;;
11353   esac
11354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11355 $as_echo "$enable_shared" >&6; }
11356
11357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11358 $as_echo_n "checking whether to build static libraries... " >&6; }
11359   # Make sure either enable_shared or enable_static is yes.
11360   test "$enable_shared" = yes || enable_static=yes
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11362 $as_echo "$enable_static" >&6; }
11363
11364
11365
11366
11367 fi
11368 ac_ext=c
11369 ac_cpp='$CPP $CPPFLAGS'
11370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11373
11374 CC="$lt_save_CC"
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390         ac_config_commands="$ac_config_commands libtool"
11391
11392
11393
11394
11395 # Only expand once:
11396
11397
11398
11399
11400 # Check whether --with-dpdk was given.
11401 if test "${with_dpdk+set}" = set; then :
11402   withval=$with_dpdk; with_dpdk=1
11403 else
11404   with_dpdk=0
11405 fi
11406
11407
11408
11409 # Check whether --with-pre-data was given.
11410 if test "${with_pre_data+set}" = set; then :
11411   withval=$with_pre_data; case $with_pre_data in
11412                128) ;;
11413                256) ;;
11414                *) with_pre_data="pre-data-not-set" ;;
11415              esac
11416 else
11417   with_pre_data=128
11418 fi
11419
11420
11421  if test "$with_dpdk" = "1"; then
11422   WITH_DPDK_TRUE=
11423   WITH_DPDK_FALSE='#'
11424 else
11425   WITH_DPDK_TRUE='#'
11426   WITH_DPDK_FALSE=
11427 fi
11428
11429 DPDK=-DDPDK=${with_dpdk}
11430
11431 PRE_DATA_SIZE=$with_pre_data
11432
11433
11434 ac_config_files="$ac_config_files Makefile"
11435
11436 cat >confcache <<\_ACEOF
11437 # This file is a shell script that caches the results of configure
11438 # tests run on this system so they can be shared between configure
11439 # scripts and configure runs, see configure's option --config-cache.
11440 # It is not useful on other systems.  If it contains results you don't
11441 # want to keep, you may remove or edit it.
11442 #
11443 # config.status only pays attention to the cache file if you give it
11444 # the --recheck option to rerun configure.
11445 #
11446 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11447 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11448 # following values.
11449
11450 _ACEOF
11451
11452 # The following way of writing the cache mishandles newlines in values,
11453 # but we know of no workaround that is simple, portable, and efficient.
11454 # So, we kill variables containing newlines.
11455 # Ultrix sh set writes to stderr and can't be redirected directly,
11456 # and sets the high bit in the cache file unless we assign to the vars.
11457 (
11458   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11459     eval ac_val=\$$ac_var
11460     case $ac_val in #(
11461     *${as_nl}*)
11462       case $ac_var in #(
11463       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11464 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11465       esac
11466       case $ac_var in #(
11467       _ | IFS | as_nl) ;; #(
11468       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11469       *) { eval $ac_var=; unset $ac_var;} ;;
11470       esac ;;
11471     esac
11472   done
11473
11474   (set) 2>&1 |
11475     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11476     *${as_nl}ac_space=\ *)
11477       # `set' does not quote correctly, so add quotes: double-quote
11478       # substitution turns \\\\ into \\, and sed turns \\ into \.
11479       sed -n \
11480         "s/'/'\\\\''/g;
11481           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11482       ;; #(
11483     *)
11484       # `set' quotes correctly as required by POSIX, so do not add quotes.
11485       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11486       ;;
11487     esac |
11488     sort
11489 ) |
11490   sed '
11491      /^ac_cv_env_/b end
11492      t clear
11493      :clear
11494      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11495      t end
11496      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11497      :end' >>confcache
11498 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11499   if test -w "$cache_file"; then
11500     if test "x$cache_file" != "x/dev/null"; then
11501       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11502 $as_echo "$as_me: updating cache $cache_file" >&6;}
11503       if test ! -f "$cache_file" || test -h "$cache_file"; then
11504         cat confcache >"$cache_file"
11505       else
11506         case $cache_file in #(
11507         */* | ?:*)
11508           mv -f confcache "$cache_file"$$ &&
11509           mv -f "$cache_file"$$ "$cache_file" ;; #(
11510         *)
11511           mv -f confcache "$cache_file" ;;
11512         esac
11513       fi
11514     fi
11515   else
11516     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11517 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11518   fi
11519 fi
11520 rm -f confcache
11521
11522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11523 # Let make expand exec_prefix.
11524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11525
11526 # Transform confdefs.h into DEFS.
11527 # Protect against shell expansion while executing Makefile rules.
11528 # Protect against Makefile macro expansion.
11529 #
11530 # If the first sed substitution is executed (which looks for macros that
11531 # take arguments), then branch to the quote section.  Otherwise,
11532 # look for a macro that doesn't take arguments.
11533 ac_script='
11534 :mline
11535 /\\$/{
11536  N
11537  s,\\\n,,
11538  b mline
11539 }
11540 t clear
11541 :clear
11542 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11543 t quote
11544 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11545 t quote
11546 b any
11547 :quote
11548 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11549 s/\[/\\&/g
11550 s/\]/\\&/g
11551 s/\$/$$/g
11552 H
11553 :any
11554 ${
11555         g
11556         s/^\n//
11557         s/\n/ /g
11558         p
11559 }
11560 '
11561 DEFS=`sed -n "$ac_script" confdefs.h`
11562
11563
11564 ac_libobjs=
11565 ac_ltlibobjs=
11566 U=
11567 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11568   # 1. Remove the extension, and $U if already installed.
11569   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11570   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11571   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11572   #    will be set to the directory where LIBOBJS objects are built.
11573   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11574   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11575 done
11576 LIBOBJS=$ac_libobjs
11577
11578 LTLIBOBJS=$ac_ltlibobjs
11579
11580
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11582 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11583    if test -n "$am_sleep_pid"; then
11584      # Hide warnings about reused PIDs.
11585      wait $am_sleep_pid 2>/dev/null
11586    fi
11587    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11588 $as_echo "done" >&6; }
11589  if test -n "$EXEEXT"; then
11590   am__EXEEXT_TRUE=
11591   am__EXEEXT_FALSE='#'
11592 else
11593   am__EXEEXT_TRUE='#'
11594   am__EXEEXT_FALSE=
11595 fi
11596
11597 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11598   as_fn_error $? "conditional \"AMDEP\" was never defined.
11599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11600 fi
11601 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11602   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11604 fi
11605 if test -z "${WITH_DPDK_TRUE}" && test -z "${WITH_DPDK_FALSE}"; then
11606   as_fn_error $? "conditional \"WITH_DPDK\" was never defined.
11607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11608 fi
11609
11610 : "${CONFIG_STATUS=./config.status}"
11611 ac_write_fail=0
11612 ac_clean_files_save=$ac_clean_files
11613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11615 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11616 as_write_fail=0
11617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11618 #! $SHELL
11619 # Generated by $as_me.
11620 # Run this file to recreate the current configuration.
11621 # Compiler output produced by configure, useful for debugging
11622 # configure, is in config.log if it exists.
11623
11624 debug=false
11625 ac_cs_recheck=false
11626 ac_cs_silent=false
11627
11628 SHELL=\${CONFIG_SHELL-$SHELL}
11629 export SHELL
11630 _ASEOF
11631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11632 ## -------------------- ##
11633 ## M4sh Initialization. ##
11634 ## -------------------- ##
11635
11636 # Be more Bourne compatible
11637 DUALCASE=1; export DUALCASE # for MKS sh
11638 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11639   emulate sh
11640   NULLCMD=:
11641   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11642   # is contrary to our usage.  Disable this feature.
11643   alias -g '${1+"$@"}'='"$@"'
11644   setopt NO_GLOB_SUBST
11645 else
11646   case `(set -o) 2>/dev/null` in #(
11647   *posix*) :
11648     set -o posix ;; #(
11649   *) :
11650      ;;
11651 esac
11652 fi
11653
11654
11655 as_nl='
11656 '
11657 export as_nl
11658 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11659 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11662 # Prefer a ksh shell builtin over an external printf program on Solaris,
11663 # but without wasting forks for bash or zsh.
11664 if test -z "$BASH_VERSION$ZSH_VERSION" \
11665     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11666   as_echo='print -r --'
11667   as_echo_n='print -rn --'
11668 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11669   as_echo='printf %s\n'
11670   as_echo_n='printf %s'
11671 else
11672   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11673     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11674     as_echo_n='/usr/ucb/echo -n'
11675   else
11676     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11677     as_echo_n_body='eval
11678       arg=$1;
11679       case $arg in #(
11680       *"$as_nl"*)
11681         expr "X$arg" : "X\\(.*\\)$as_nl";
11682         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11683       esac;
11684       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11685     '
11686     export as_echo_n_body
11687     as_echo_n='sh -c $as_echo_n_body as_echo'
11688   fi
11689   export as_echo_body
11690   as_echo='sh -c $as_echo_body as_echo'
11691 fi
11692
11693 # The user is always right.
11694 if test "${PATH_SEPARATOR+set}" != set; then
11695   PATH_SEPARATOR=:
11696   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11697     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11698       PATH_SEPARATOR=';'
11699   }
11700 fi
11701
11702
11703 # IFS
11704 # We need space, tab and new line, in precisely that order.  Quoting is
11705 # there to prevent editors from complaining about space-tab.
11706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11707 # splitting by setting IFS to empty value.)
11708 IFS=" ""        $as_nl"
11709
11710 # Find who we are.  Look in the path if we contain no directory separator.
11711 as_myself=
11712 case $0 in #((
11713   *[\\/]* ) as_myself=$0 ;;
11714   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11716 do
11717   IFS=$as_save_IFS
11718   test -z "$as_dir" && as_dir=.
11719     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11720   done
11721 IFS=$as_save_IFS
11722
11723      ;;
11724 esac
11725 # We did not find ourselves, most probably we were run as `sh COMMAND'
11726 # in which case we are not to be found in the path.
11727 if test "x$as_myself" = x; then
11728   as_myself=$0
11729 fi
11730 if test ! -f "$as_myself"; then
11731   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11732   exit 1
11733 fi
11734
11735 # Unset variables that we do not need and which cause bugs (e.g. in
11736 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11737 # suppresses any "Segmentation fault" message there.  '((' could
11738 # trigger a bug in pdksh 5.2.14.
11739 for as_var in BASH_ENV ENV MAIL MAILPATH
11740 do eval test x\${$as_var+set} = xset \
11741   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11742 done
11743 PS1='$ '
11744 PS2='> '
11745 PS4='+ '
11746
11747 # NLS nuisances.
11748 LC_ALL=C
11749 export LC_ALL
11750 LANGUAGE=C
11751 export LANGUAGE
11752
11753 # CDPATH.
11754 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11755
11756
11757 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11758 # ----------------------------------------
11759 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11760 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11761 # script with STATUS, using 1 if that was 0.
11762 as_fn_error ()
11763 {
11764   as_status=$1; test $as_status -eq 0 && as_status=1
11765   if test "$4"; then
11766     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11767     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11768   fi
11769   $as_echo "$as_me: error: $2" >&2
11770   as_fn_exit $as_status
11771 } # as_fn_error
11772
11773
11774 # as_fn_set_status STATUS
11775 # -----------------------
11776 # Set $? to STATUS, without forking.
11777 as_fn_set_status ()
11778 {
11779   return $1
11780 } # as_fn_set_status
11781
11782 # as_fn_exit STATUS
11783 # -----------------
11784 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11785 as_fn_exit ()
11786 {
11787   set +e
11788   as_fn_set_status $1
11789   exit $1
11790 } # as_fn_exit
11791
11792 # as_fn_unset VAR
11793 # ---------------
11794 # Portably unset VAR.
11795 as_fn_unset ()
11796 {
11797   { eval $1=; unset $1;}
11798 }
11799 as_unset=as_fn_unset
11800 # as_fn_append VAR VALUE
11801 # ----------------------
11802 # Append the text in VALUE to the end of the definition contained in VAR. Take
11803 # advantage of any shell optimizations that allow amortized linear growth over
11804 # repeated appends, instead of the typical quadratic growth present in naive
11805 # implementations.
11806 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11807   eval 'as_fn_append ()
11808   {
11809     eval $1+=\$2
11810   }'
11811 else
11812   as_fn_append ()
11813   {
11814     eval $1=\$$1\$2
11815   }
11816 fi # as_fn_append
11817
11818 # as_fn_arith ARG...
11819 # ------------------
11820 # Perform arithmetic evaluation on the ARGs, and store the result in the
11821 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11822 # must be portable across $(()) and expr.
11823 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11824   eval 'as_fn_arith ()
11825   {
11826     as_val=$(( $* ))
11827   }'
11828 else
11829   as_fn_arith ()
11830   {
11831     as_val=`expr "$@" || test $? -eq 1`
11832   }
11833 fi # as_fn_arith
11834
11835
11836 if expr a : '\(a\)' >/dev/null 2>&1 &&
11837    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11838   as_expr=expr
11839 else
11840   as_expr=false
11841 fi
11842
11843 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11844   as_basename=basename
11845 else
11846   as_basename=false
11847 fi
11848
11849 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11850   as_dirname=dirname
11851 else
11852   as_dirname=false
11853 fi
11854
11855 as_me=`$as_basename -- "$0" ||
11856 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11857          X"$0" : 'X\(//\)$' \| \
11858          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11859 $as_echo X/"$0" |
11860     sed '/^.*\/\([^/][^/]*\)\/*$/{
11861             s//\1/
11862             q
11863           }
11864           /^X\/\(\/\/\)$/{
11865             s//\1/
11866             q
11867           }
11868           /^X\/\(\/\).*/{
11869             s//\1/
11870             q
11871           }
11872           s/.*/./; q'`
11873
11874 # Avoid depending upon Character Ranges.
11875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11878 as_cr_digits='0123456789'
11879 as_cr_alnum=$as_cr_Letters$as_cr_digits
11880
11881 ECHO_C= ECHO_N= ECHO_T=
11882 case `echo -n x` in #(((((
11883 -n*)
11884   case `echo 'xy\c'` in
11885   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11886   xy)  ECHO_C='\c';;
11887   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11888        ECHO_T=' ';;
11889   esac;;
11890 *)
11891   ECHO_N='-n';;
11892 esac
11893
11894 rm -f conf$$ conf$$.exe conf$$.file
11895 if test -d conf$$.dir; then
11896   rm -f conf$$.dir/conf$$.file
11897 else
11898   rm -f conf$$.dir
11899   mkdir conf$$.dir 2>/dev/null
11900 fi
11901 if (echo >conf$$.file) 2>/dev/null; then
11902   if ln -s conf$$.file conf$$ 2>/dev/null; then
11903     as_ln_s='ln -s'
11904     # ... but there are two gotchas:
11905     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11906     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11907     # In both cases, we have to default to `cp -pR'.
11908     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11909       as_ln_s='cp -pR'
11910   elif ln conf$$.file conf$$ 2>/dev/null; then
11911     as_ln_s=ln
11912   else
11913     as_ln_s='cp -pR'
11914   fi
11915 else
11916   as_ln_s='cp -pR'
11917 fi
11918 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11919 rmdir conf$$.dir 2>/dev/null
11920
11921
11922 # as_fn_mkdir_p
11923 # -------------
11924 # Create "$as_dir" as a directory, including parents if necessary.
11925 as_fn_mkdir_p ()
11926 {
11927
11928   case $as_dir in #(
11929   -*) as_dir=./$as_dir;;
11930   esac
11931   test -d "$as_dir" || eval $as_mkdir_p || {
11932     as_dirs=
11933     while :; do
11934       case $as_dir in #(
11935       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11936       *) as_qdir=$as_dir;;
11937       esac
11938       as_dirs="'$as_qdir' $as_dirs"
11939       as_dir=`$as_dirname -- "$as_dir" ||
11940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11941          X"$as_dir" : 'X\(//\)[^/]' \| \
11942          X"$as_dir" : 'X\(//\)$' \| \
11943          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11944 $as_echo X"$as_dir" |
11945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11946             s//\1/
11947             q
11948           }
11949           /^X\(\/\/\)[^/].*/{
11950             s//\1/
11951             q
11952           }
11953           /^X\(\/\/\)$/{
11954             s//\1/
11955             q
11956           }
11957           /^X\(\/\).*/{
11958             s//\1/
11959             q
11960           }
11961           s/.*/./; q'`
11962       test -d "$as_dir" && break
11963     done
11964     test -z "$as_dirs" || eval "mkdir $as_dirs"
11965   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11966
11967
11968 } # as_fn_mkdir_p
11969 if mkdir -p . 2>/dev/null; then
11970   as_mkdir_p='mkdir -p "$as_dir"'
11971 else
11972   test -d ./-p && rmdir ./-p
11973   as_mkdir_p=false
11974 fi
11975
11976
11977 # as_fn_executable_p FILE
11978 # -----------------------
11979 # Test if FILE is an executable regular file.
11980 as_fn_executable_p ()
11981 {
11982   test -f "$1" && test -x "$1"
11983 } # as_fn_executable_p
11984 as_test_x='test -x'
11985 as_executable_p=as_fn_executable_p
11986
11987 # Sed expression to map a string onto a valid CPP name.
11988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11989
11990 # Sed expression to map a string onto a valid variable name.
11991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11992
11993
11994 exec 6>&1
11995 ## ----------------------------------- ##
11996 ## Main body of $CONFIG_STATUS script. ##
11997 ## ----------------------------------- ##
11998 _ASEOF
11999 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12000
12001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12002 # Save the log message, to keep $0 and so on meaningful, and to
12003 # report actual input values of CONFIG_FILES etc. instead of their
12004 # values after options handling.
12005 ac_log="
12006 This file was extended by vlib $as_me 1.1, which was
12007 generated by GNU Autoconf 2.69.  Invocation command line was
12008
12009   CONFIG_FILES    = $CONFIG_FILES
12010   CONFIG_HEADERS  = $CONFIG_HEADERS
12011   CONFIG_LINKS    = $CONFIG_LINKS
12012   CONFIG_COMMANDS = $CONFIG_COMMANDS
12013   $ $0 $@
12014
12015 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12016 "
12017
12018 _ACEOF
12019
12020 case $ac_config_files in *"
12021 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12022 esac
12023
12024
12025
12026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12027 # Files that config.status was made for.
12028 config_files="$ac_config_files"
12029 config_commands="$ac_config_commands"
12030
12031 _ACEOF
12032
12033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12034 ac_cs_usage="\
12035 \`$as_me' instantiates files and other configuration actions
12036 from templates according to the current configuration.  Unless the files
12037 and actions are specified as TAGs, all are instantiated by default.
12038
12039 Usage: $0 [OPTION]... [TAG]...
12040
12041   -h, --help       print this help, then exit
12042   -V, --version    print version number and configuration settings, then exit
12043       --config     print configuration, then exit
12044   -q, --quiet, --silent
12045                    do not print progress messages
12046   -d, --debug      don't remove temporary files
12047       --recheck    update $as_me by reconfiguring in the same conditions
12048       --file=FILE[:TEMPLATE]
12049                    instantiate the configuration file FILE
12050
12051 Configuration files:
12052 $config_files
12053
12054 Configuration commands:
12055 $config_commands
12056
12057 Report bugs to the package provider."
12058
12059 _ACEOF
12060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12061 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12062 ac_cs_version="\\
12063 vlib config.status 1.1
12064 configured by $0, generated by GNU Autoconf 2.69,
12065   with options \\"\$ac_cs_config\\"
12066
12067 Copyright (C) 2012 Free Software Foundation, Inc.
12068 This config.status script is free software; the Free Software Foundation
12069 gives unlimited permission to copy, distribute and modify it."
12070
12071 ac_pwd='$ac_pwd'
12072 srcdir='$srcdir'
12073 INSTALL='$INSTALL'
12074 MKDIR_P='$MKDIR_P'
12075 AWK='$AWK'
12076 test -n "\$AWK" || AWK=awk
12077 _ACEOF
12078
12079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12080 # The default lists apply if the user does not specify any file.
12081 ac_need_defaults=:
12082 while test $# != 0
12083 do
12084   case $1 in
12085   --*=?*)
12086     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12087     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12088     ac_shift=:
12089     ;;
12090   --*=)
12091     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12092     ac_optarg=
12093     ac_shift=:
12094     ;;
12095   *)
12096     ac_option=$1
12097     ac_optarg=$2
12098     ac_shift=shift
12099     ;;
12100   esac
12101
12102   case $ac_option in
12103   # Handling of the options.
12104   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12105     ac_cs_recheck=: ;;
12106   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12107     $as_echo "$ac_cs_version"; exit ;;
12108   --config | --confi | --conf | --con | --co | --c )
12109     $as_echo "$ac_cs_config"; exit ;;
12110   --debug | --debu | --deb | --de | --d | -d )
12111     debug=: ;;
12112   --file | --fil | --fi | --f )
12113     $ac_shift
12114     case $ac_optarg in
12115     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12116     '') as_fn_error $? "missing file argument" ;;
12117     esac
12118     as_fn_append CONFIG_FILES " '$ac_optarg'"
12119     ac_need_defaults=false;;
12120   --he | --h |  --help | --hel | -h )
12121     $as_echo "$ac_cs_usage"; exit ;;
12122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12123   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12124     ac_cs_silent=: ;;
12125
12126   # This is an error.
12127   -*) as_fn_error $? "unrecognized option: \`$1'
12128 Try \`$0 --help' for more information." ;;
12129
12130   *) as_fn_append ac_config_targets " $1"
12131      ac_need_defaults=false ;;
12132
12133   esac
12134   shift
12135 done
12136
12137 ac_configure_extra_args=
12138
12139 if $ac_cs_silent; then
12140   exec 6>/dev/null
12141   ac_configure_extra_args="$ac_configure_extra_args --silent"
12142 fi
12143
12144 _ACEOF
12145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12146 if \$ac_cs_recheck; then
12147   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12148   shift
12149   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12150   CONFIG_SHELL='$SHELL'
12151   export CONFIG_SHELL
12152   exec "\$@"
12153 fi
12154
12155 _ACEOF
12156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12157 exec 5>>config.log
12158 {
12159   echo
12160   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12161 ## Running $as_me. ##
12162 _ASBOX
12163   $as_echo "$ac_log"
12164 } >&5
12165
12166 _ACEOF
12167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12168 #
12169 # INIT-COMMANDS
12170 #
12171 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12172
12173
12174 # The HP-UX ksh and POSIX shell print the target directory to stdout
12175 # if CDPATH is set.
12176 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12177
12178 sed_quote_subst='$sed_quote_subst'
12179 double_quote_subst='$double_quote_subst'
12180 delay_variable_subst='$delay_variable_subst'
12181 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12182 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12183 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12184 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12185 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12186 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12187 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12188 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12189 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12190 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12191 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12192 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12193 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12194 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12195 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12196 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12197 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12198 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12199 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12200 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12201 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12202 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12203 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12204 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12205 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12206 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12207 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12208 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12209 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12210 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12211 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12212 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12213 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12214 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12215 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12216 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12217 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12218 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12219 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12220 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12221 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12222 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12223 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12224 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12225 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12226 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12227 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12228 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12229 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12230 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12231 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12232 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12233 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12234 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12235 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12236 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12237 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"`'
12238 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12239 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12240 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12241 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12242 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12243 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12244 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12245 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12246 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12247 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12248 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12249 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12250 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12251 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12252 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12253 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12254 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12255 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12256 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12257 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12258 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12259 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12260 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12261 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12262 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12263 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12264 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12265 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12266 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12267 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12268 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12269 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12270 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12271 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12272 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12273 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12274 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12275 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12276 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12277 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12278 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12279 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12280 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12281 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12282 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12283 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12284 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12285 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12286 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12287 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12288 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12289 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12290 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12291 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12292 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12293 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12294 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12295 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12296 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12297 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12298 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12299 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12300 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12301 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12302 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12303 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12304 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12305 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12306 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12307 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12308 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12309 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12310 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12311
12312 LTCC='$LTCC'
12313 LTCFLAGS='$LTCFLAGS'
12314 compiler='$compiler_DEFAULT'
12315
12316 # A function that is used when there is no print builtin or printf.
12317 func_fallback_echo ()
12318 {
12319   eval 'cat <<_LTECHO_EOF
12320 \$1
12321 _LTECHO_EOF'
12322 }
12323
12324 # Quote evaled strings.
12325 for var in SHELL \
12326 ECHO \
12327 PATH_SEPARATOR \
12328 SED \
12329 GREP \
12330 EGREP \
12331 FGREP \
12332 LD \
12333 NM \
12334 LN_S \
12335 lt_SP2NL \
12336 lt_NL2SP \
12337 reload_flag \
12338 OBJDUMP \
12339 deplibs_check_method \
12340 file_magic_cmd \
12341 file_magic_glob \
12342 want_nocaseglob \
12343 DLLTOOL \
12344 sharedlib_from_linklib_cmd \
12345 AR \
12346 AR_FLAGS \
12347 archiver_list_spec \
12348 STRIP \
12349 RANLIB \
12350 CC \
12351 CFLAGS \
12352 compiler \
12353 lt_cv_sys_global_symbol_pipe \
12354 lt_cv_sys_global_symbol_to_cdecl \
12355 lt_cv_sys_global_symbol_to_c_name_address \
12356 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12357 nm_file_list_spec \
12358 lt_prog_compiler_no_builtin_flag \
12359 lt_prog_compiler_pic \
12360 lt_prog_compiler_wl \
12361 lt_prog_compiler_static \
12362 lt_cv_prog_compiler_c_o \
12363 need_locks \
12364 MANIFEST_TOOL \
12365 DSYMUTIL \
12366 NMEDIT \
12367 LIPO \
12368 OTOOL \
12369 OTOOL64 \
12370 shrext_cmds \
12371 export_dynamic_flag_spec \
12372 whole_archive_flag_spec \
12373 compiler_needs_object \
12374 with_gnu_ld \
12375 allow_undefined_flag \
12376 no_undefined_flag \
12377 hardcode_libdir_flag_spec \
12378 hardcode_libdir_separator \
12379 exclude_expsyms \
12380 include_expsyms \
12381 file_list_spec \
12382 variables_saved_for_relink \
12383 libname_spec \
12384 library_names_spec \
12385 soname_spec \
12386 install_override_mode \
12387 finish_eval \
12388 old_striplib \
12389 striplib; do
12390     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12391     *[\\\\\\\`\\"\\\$]*)
12392       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12393       ;;
12394     *)
12395       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12396       ;;
12397     esac
12398 done
12399
12400 # Double-quote double-evaled strings.
12401 for var in reload_cmds \
12402 old_postinstall_cmds \
12403 old_postuninstall_cmds \
12404 old_archive_cmds \
12405 extract_expsyms_cmds \
12406 old_archive_from_new_cmds \
12407 old_archive_from_expsyms_cmds \
12408 archive_cmds \
12409 archive_expsym_cmds \
12410 module_cmds \
12411 module_expsym_cmds \
12412 export_symbols_cmds \
12413 prelink_cmds \
12414 postlink_cmds \
12415 postinstall_cmds \
12416 postuninstall_cmds \
12417 finish_cmds \
12418 sys_lib_search_path_spec \
12419 sys_lib_dlsearch_path_spec; do
12420     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12421     *[\\\\\\\`\\"\\\$]*)
12422       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12423       ;;
12424     *)
12425       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12426       ;;
12427     esac
12428 done
12429
12430 ac_aux_dir='$ac_aux_dir'
12431 xsi_shell='$xsi_shell'
12432 lt_shell_append='$lt_shell_append'
12433
12434 # See if we are running on zsh, and set the options which allow our
12435 # commands through without removal of \ escapes INIT.
12436 if test -n "\${ZSH_VERSION+set}" ; then
12437    setopt NO_GLOB_SUBST
12438 fi
12439
12440
12441     PACKAGE='$PACKAGE'
12442     VERSION='$VERSION'
12443     TIMESTAMP='$TIMESTAMP'
12444     RM='$RM'
12445     ofile='$ofile'
12446
12447
12448
12449
12450 _ACEOF
12451
12452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12453
12454 # Handling of arguments.
12455 for ac_config_target in $ac_config_targets
12456 do
12457   case $ac_config_target in
12458     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12459     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12460     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12461
12462   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12463   esac
12464 done
12465
12466
12467 # If the user did not use the arguments to specify the items to instantiate,
12468 # then the envvar interface is used.  Set only those that are not.
12469 # We use the long form for the default assignment because of an extremely
12470 # bizarre bug on SunOS 4.1.3.
12471 if $ac_need_defaults; then
12472   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12473   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12474 fi
12475
12476 # Have a temporary directory for convenience.  Make it in the build tree
12477 # simply because there is no reason against having it here, and in addition,
12478 # creating and moving files from /tmp can sometimes cause problems.
12479 # Hook for its removal unless debugging.
12480 # Note that there is a small window in which the directory will not be cleaned:
12481 # after its creation but before its name has been assigned to `$tmp'.
12482 $debug ||
12483 {
12484   tmp= ac_tmp=
12485   trap 'exit_status=$?
12486   : "${ac_tmp:=$tmp}"
12487   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12488 ' 0
12489   trap 'as_fn_exit 1' 1 2 13 15
12490 }
12491 # Create a (secure) tmp directory for tmp files.
12492
12493 {
12494   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12495   test -d "$tmp"
12496 }  ||
12497 {
12498   tmp=./conf$$-$RANDOM
12499   (umask 077 && mkdir "$tmp")
12500 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12501 ac_tmp=$tmp
12502
12503 # Set up the scripts for CONFIG_FILES section.
12504 # No need to generate them if there are no CONFIG_FILES.
12505 # This happens for instance with `./config.status config.h'.
12506 if test -n "$CONFIG_FILES"; then
12507
12508
12509 ac_cr=`echo X | tr X '\015'`
12510 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12511 # But we know of no other shell where ac_cr would be empty at this
12512 # point, so we can use a bashism as a fallback.
12513 if test "x$ac_cr" = x; then
12514   eval ac_cr=\$\'\\r\'
12515 fi
12516 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12517 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12518   ac_cs_awk_cr='\\r'
12519 else
12520   ac_cs_awk_cr=$ac_cr
12521 fi
12522
12523 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12524 _ACEOF
12525
12526
12527 {
12528   echo "cat >conf$$subs.awk <<_ACEOF" &&
12529   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12530   echo "_ACEOF"
12531 } >conf$$subs.sh ||
12532   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12533 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12534 ac_delim='%!_!# '
12535 for ac_last_try in false false false false false :; do
12536   . ./conf$$subs.sh ||
12537     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12538
12539   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12540   if test $ac_delim_n = $ac_delim_num; then
12541     break
12542   elif $ac_last_try; then
12543     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12544   else
12545     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12546   fi
12547 done
12548 rm -f conf$$subs.sh
12549
12550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12551 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12552 _ACEOF
12553 sed -n '
12554 h
12555 s/^/S["/; s/!.*/"]=/
12556 p
12557 g
12558 s/^[^!]*!//
12559 :repl
12560 t repl
12561 s/'"$ac_delim"'$//
12562 t delim
12563 :nl
12564 h
12565 s/\(.\{148\}\)..*/\1/
12566 t more1
12567 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12568 p
12569 n
12570 b repl
12571 :more1
12572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12573 p
12574 g
12575 s/.\{148\}//
12576 t nl
12577 :delim
12578 h
12579 s/\(.\{148\}\)..*/\1/
12580 t more2
12581 s/["\\]/\\&/g; s/^/"/; s/$/"/
12582 p
12583 b
12584 :more2
12585 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12586 p
12587 g
12588 s/.\{148\}//
12589 t delim
12590 ' <conf$$subs.awk | sed '
12591 /^[^""]/{
12592   N
12593   s/\n//
12594 }
12595 ' >>$CONFIG_STATUS || ac_write_fail=1
12596 rm -f conf$$subs.awk
12597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12598 _ACAWK
12599 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12600   for (key in S) S_is_set[key] = 1
12601   FS = "\a"
12602
12603 }
12604 {
12605   line = $ 0
12606   nfields = split(line, field, "@")
12607   substed = 0
12608   len = length(field[1])
12609   for (i = 2; i < nfields; i++) {
12610     key = field[i]
12611     keylen = length(key)
12612     if (S_is_set[key]) {
12613       value = S[key]
12614       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12615       len += length(value) + length(field[++i])
12616       substed = 1
12617     } else
12618       len += 1 + keylen
12619   }
12620
12621   print line
12622 }
12623
12624 _ACAWK
12625 _ACEOF
12626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12627 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12628   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12629 else
12630   cat
12631 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12632   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12633 _ACEOF
12634
12635 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12636 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12637 # trailing colons and then remove the whole line if VPATH becomes empty
12638 # (actually we leave an empty line to preserve line numbers).
12639 if test "x$srcdir" = x.; then
12640   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12641 h
12642 s///
12643 s/^/:/
12644 s/[      ]*$/:/
12645 s/:\$(srcdir):/:/g
12646 s/:\${srcdir}:/:/g
12647 s/:@srcdir@:/:/g
12648 s/^:*//
12649 s/:*$//
12650 x
12651 s/\(=[   ]*\).*/\1/
12652 G
12653 s/\n//
12654 s/^[^=]*=[       ]*$//
12655 }'
12656 fi
12657
12658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12659 fi # test -n "$CONFIG_FILES"
12660
12661
12662 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12663 shift
12664 for ac_tag
12665 do
12666   case $ac_tag in
12667   :[FHLC]) ac_mode=$ac_tag; continue;;
12668   esac
12669   case $ac_mode$ac_tag in
12670   :[FHL]*:*);;
12671   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12672   :[FH]-) ac_tag=-:-;;
12673   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12674   esac
12675   ac_save_IFS=$IFS
12676   IFS=:
12677   set x $ac_tag
12678   IFS=$ac_save_IFS
12679   shift
12680   ac_file=$1
12681   shift
12682
12683   case $ac_mode in
12684   :L) ac_source=$1;;
12685   :[FH])
12686     ac_file_inputs=
12687     for ac_f
12688     do
12689       case $ac_f in
12690       -) ac_f="$ac_tmp/stdin";;
12691       *) # Look for the file first in the build tree, then in the source tree
12692          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12693          # because $ac_f cannot contain `:'.
12694          test -f "$ac_f" ||
12695            case $ac_f in
12696            [\\/$]*) false;;
12697            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12698            esac ||
12699            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12700       esac
12701       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12702       as_fn_append ac_file_inputs " '$ac_f'"
12703     done
12704
12705     # Let's still pretend it is `configure' which instantiates (i.e., don't
12706     # use $as_me), people would be surprised to read:
12707     #    /* config.h.  Generated by config.status.  */
12708     configure_input='Generated from '`
12709           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12710         `' by configure.'
12711     if test x"$ac_file" != x-; then
12712       configure_input="$ac_file.  $configure_input"
12713       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12714 $as_echo "$as_me: creating $ac_file" >&6;}
12715     fi
12716     # Neutralize special characters interpreted by sed in replacement strings.
12717     case $configure_input in #(
12718     *\&* | *\|* | *\\* )
12719        ac_sed_conf_input=`$as_echo "$configure_input" |
12720        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12721     *) ac_sed_conf_input=$configure_input;;
12722     esac
12723
12724     case $ac_tag in
12725     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12726       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12727     esac
12728     ;;
12729   esac
12730
12731   ac_dir=`$as_dirname -- "$ac_file" ||
12732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12733          X"$ac_file" : 'X\(//\)[^/]' \| \
12734          X"$ac_file" : 'X\(//\)$' \| \
12735          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12736 $as_echo X"$ac_file" |
12737     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12738             s//\1/
12739             q
12740           }
12741           /^X\(\/\/\)[^/].*/{
12742             s//\1/
12743             q
12744           }
12745           /^X\(\/\/\)$/{
12746             s//\1/
12747             q
12748           }
12749           /^X\(\/\).*/{
12750             s//\1/
12751             q
12752           }
12753           s/.*/./; q'`
12754   as_dir="$ac_dir"; as_fn_mkdir_p
12755   ac_builddir=.
12756
12757 case "$ac_dir" in
12758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12759 *)
12760   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12761   # A ".." for each directory in $ac_dir_suffix.
12762   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12763   case $ac_top_builddir_sub in
12764   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12765   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12766   esac ;;
12767 esac
12768 ac_abs_top_builddir=$ac_pwd
12769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12770 # for backward compatibility:
12771 ac_top_builddir=$ac_top_build_prefix
12772
12773 case $srcdir in
12774   .)  # We are building in place.
12775     ac_srcdir=.
12776     ac_top_srcdir=$ac_top_builddir_sub
12777     ac_abs_top_srcdir=$ac_pwd ;;
12778   [\\/]* | ?:[\\/]* )  # Absolute name.
12779     ac_srcdir=$srcdir$ac_dir_suffix;
12780     ac_top_srcdir=$srcdir
12781     ac_abs_top_srcdir=$srcdir ;;
12782   *) # Relative name.
12783     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12784     ac_top_srcdir=$ac_top_build_prefix$srcdir
12785     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12786 esac
12787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12788
12789
12790   case $ac_mode in
12791   :F)
12792   #
12793   # CONFIG_FILE
12794   #
12795
12796   case $INSTALL in
12797   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12798   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12799   esac
12800   ac_MKDIR_P=$MKDIR_P
12801   case $MKDIR_P in
12802   [\\/$]* | ?:[\\/]* ) ;;
12803   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12804   esac
12805 _ACEOF
12806
12807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12808 # If the template does not know about datarootdir, expand it.
12809 # FIXME: This hack should be removed a few years after 2.60.
12810 ac_datarootdir_hack=; ac_datarootdir_seen=
12811 ac_sed_dataroot='
12812 /datarootdir/ {
12813   p
12814   q
12815 }
12816 /@datadir@/p
12817 /@docdir@/p
12818 /@infodir@/p
12819 /@localedir@/p
12820 /@mandir@/p'
12821 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12822 *datarootdir*) ac_datarootdir_seen=yes;;
12823 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12824   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12825 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12826 _ACEOF
12827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12828   ac_datarootdir_hack='
12829   s&@datadir@&$datadir&g
12830   s&@docdir@&$docdir&g
12831   s&@infodir@&$infodir&g
12832   s&@localedir@&$localedir&g
12833   s&@mandir@&$mandir&g
12834   s&\\\${datarootdir}&$datarootdir&g' ;;
12835 esac
12836 _ACEOF
12837
12838 # Neutralize VPATH when `$srcdir' = `.'.
12839 # Shell code in configure.ac might set extrasub.
12840 # FIXME: do we really want to maintain this feature?
12841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12842 ac_sed_extra="$ac_vpsub
12843 $extrasub
12844 _ACEOF
12845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12846 :t
12847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12848 s|@configure_input@|$ac_sed_conf_input|;t t
12849 s&@top_builddir@&$ac_top_builddir_sub&;t t
12850 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12851 s&@srcdir@&$ac_srcdir&;t t
12852 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12853 s&@top_srcdir@&$ac_top_srcdir&;t t
12854 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12855 s&@builddir@&$ac_builddir&;t t
12856 s&@abs_builddir@&$ac_abs_builddir&;t t
12857 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12858 s&@INSTALL@&$ac_INSTALL&;t t
12859 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12860 $ac_datarootdir_hack
12861 "
12862 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12863   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12864
12865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12866   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12867   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12868       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12869   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12870 which seems to be undefined.  Please make sure it is defined" >&5
12871 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12872 which seems to be undefined.  Please make sure it is defined" >&2;}
12873
12874   rm -f "$ac_tmp/stdin"
12875   case $ac_file in
12876   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12877   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12878   esac \
12879   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12880  ;;
12881
12882
12883   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12884 $as_echo "$as_me: executing $ac_file commands" >&6;}
12885  ;;
12886   esac
12887
12888
12889   case $ac_file$ac_mode in
12890     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12891   # Older Autoconf quotes --file arguments for eval, but not when files
12892   # are listed without --file.  Let's play safe and only enable the eval
12893   # if we detect the quoting.
12894   case $CONFIG_FILES in
12895   *\'*) eval set x "$CONFIG_FILES" ;;
12896   *)   set x $CONFIG_FILES ;;
12897   esac
12898   shift
12899   for mf
12900   do
12901     # Strip MF so we end up with the name of the file.
12902     mf=`echo "$mf" | sed -e 's/:.*$//'`
12903     # Check whether this is an Automake generated Makefile or not.
12904     # We used to match only the files named 'Makefile.in', but
12905     # some people rename them; so instead we look at the file content.
12906     # Grep'ing the first line is not enough: some people post-process
12907     # each Makefile.in and add a new line on top of each file to say so.
12908     # Grep'ing the whole file is not good either: AIX grep has a line
12909     # limit of 2048, but all sed's we know have understand at least 4000.
12910     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12911       dirpart=`$as_dirname -- "$mf" ||
12912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12913          X"$mf" : 'X\(//\)[^/]' \| \
12914          X"$mf" : 'X\(//\)$' \| \
12915          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12916 $as_echo X"$mf" |
12917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12918             s//\1/
12919             q
12920           }
12921           /^X\(\/\/\)[^/].*/{
12922             s//\1/
12923             q
12924           }
12925           /^X\(\/\/\)$/{
12926             s//\1/
12927             q
12928           }
12929           /^X\(\/\).*/{
12930             s//\1/
12931             q
12932           }
12933           s/.*/./; q'`
12934     else
12935       continue
12936     fi
12937     # Extract the definition of DEPDIR, am__include, and am__quote
12938     # from the Makefile without running 'make'.
12939     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12940     test -z "$DEPDIR" && continue
12941     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12942     test -z "$am__include" && continue
12943     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12944     # Find all dependency output files, they are included files with
12945     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12946     # simplest approach to changing $(DEPDIR) to its actual value in the
12947     # expansion.
12948     for file in `sed -n "
12949       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12950          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12951       # Make sure the directory exists.
12952       test -f "$dirpart/$file" && continue
12953       fdir=`$as_dirname -- "$file" ||
12954 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12955          X"$file" : 'X\(//\)[^/]' \| \
12956          X"$file" : 'X\(//\)$' \| \
12957          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12958 $as_echo X"$file" |
12959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12960             s//\1/
12961             q
12962           }
12963           /^X\(\/\/\)[^/].*/{
12964             s//\1/
12965             q
12966           }
12967           /^X\(\/\/\)$/{
12968             s//\1/
12969             q
12970           }
12971           /^X\(\/\).*/{
12972             s//\1/
12973             q
12974           }
12975           s/.*/./; q'`
12976       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12977       # echo "creating $dirpart/$file"
12978       echo '# dummy' > "$dirpart/$file"
12979     done
12980   done
12981 }
12982  ;;
12983     "libtool":C)
12984
12985     # See if we are running on zsh, and set the options which allow our
12986     # commands through without removal of \ escapes.
12987     if test -n "${ZSH_VERSION+set}" ; then
12988       setopt NO_GLOB_SUBST
12989     fi
12990
12991     cfgfile="${ofile}T"
12992     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12993     $RM "$cfgfile"
12994
12995     cat <<_LT_EOF >> "$cfgfile"
12996 #! $SHELL
12997
12998 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12999 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13001 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13002 #
13003 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13004 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13005 #                 Foundation, Inc.
13006 #   Written by Gordon Matzigkeit, 1996
13007 #
13008 #   This file is part of GNU Libtool.
13009 #
13010 # GNU Libtool is free software; you can redistribute it and/or
13011 # modify it under the terms of the GNU General Public License as
13012 # published by the Free Software Foundation; either version 2 of
13013 # the License, or (at your option) any later version.
13014 #
13015 # As a special exception to the GNU General Public License,
13016 # if you distribute this file as part of a program or library that
13017 # is built using GNU Libtool, you may include this file under the
13018 # same distribution terms that you use for the rest of that program.
13019 #
13020 # GNU Libtool is distributed in the hope that it will be useful,
13021 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13022 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13023 # GNU General Public License for more details.
13024 #
13025 # You should have received a copy of the GNU General Public License
13026 # along with GNU Libtool; see the file COPYING.  If not, a copy
13027 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13028 # obtained by writing to the Free Software Foundation, Inc.,
13029 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13030
13031
13032 # The names of the tagged configurations supported by this script.
13033 available_tags=""
13034
13035 # ### BEGIN LIBTOOL CONFIG
13036
13037 # Which release of libtool.m4 was used?
13038 macro_version=$macro_version
13039 macro_revision=$macro_revision
13040
13041 # Whether or not to build shared libraries.
13042 build_libtool_libs=$enable_shared
13043
13044 # Whether or not to build static libraries.
13045 build_old_libs=$enable_static
13046
13047 # What type of objects to build.
13048 pic_mode=$pic_mode
13049
13050 # Whether or not to optimize for fast installation.
13051 fast_install=$enable_fast_install
13052
13053 # Shell to use when invoking shell scripts.
13054 SHELL=$lt_SHELL
13055
13056 # An echo program that protects backslashes.
13057 ECHO=$lt_ECHO
13058
13059 # The PATH separator for the build system.
13060 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13061
13062 # The host system.
13063 host_alias=$host_alias
13064 host=$host
13065 host_os=$host_os
13066
13067 # The build system.
13068 build_alias=$build_alias
13069 build=$build
13070 build_os=$build_os
13071
13072 # A sed program that does not truncate output.
13073 SED=$lt_SED
13074
13075 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13076 Xsed="\$SED -e 1s/^X//"
13077
13078 # A grep program that handles long lines.
13079 GREP=$lt_GREP
13080
13081 # An ERE matcher.
13082 EGREP=$lt_EGREP
13083
13084 # A literal string matcher.
13085 FGREP=$lt_FGREP
13086
13087 # A BSD- or MS-compatible name lister.
13088 NM=$lt_NM
13089
13090 # Whether we need soft or hard links.
13091 LN_S=$lt_LN_S
13092
13093 # What is the maximum length of a command?
13094 max_cmd_len=$max_cmd_len
13095
13096 # Object file suffix (normally "o").
13097 objext=$ac_objext
13098
13099 # Executable file suffix (normally "").
13100 exeext=$exeext
13101
13102 # whether the shell understands "unset".
13103 lt_unset=$lt_unset
13104
13105 # turn spaces into newlines.
13106 SP2NL=$lt_lt_SP2NL
13107
13108 # turn newlines into spaces.
13109 NL2SP=$lt_lt_NL2SP
13110
13111 # convert \$build file names to \$host format.
13112 to_host_file_cmd=$lt_cv_to_host_file_cmd
13113
13114 # convert \$build files to toolchain format.
13115 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13116
13117 # An object symbol dumper.
13118 OBJDUMP=$lt_OBJDUMP
13119
13120 # Method to check whether dependent libraries are shared objects.
13121 deplibs_check_method=$lt_deplibs_check_method
13122
13123 # Command to use when deplibs_check_method = "file_magic".
13124 file_magic_cmd=$lt_file_magic_cmd
13125
13126 # How to find potential files when deplibs_check_method = "file_magic".
13127 file_magic_glob=$lt_file_magic_glob
13128
13129 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13130 want_nocaseglob=$lt_want_nocaseglob
13131
13132 # DLL creation program.
13133 DLLTOOL=$lt_DLLTOOL
13134
13135 # Command to associate shared and link libraries.
13136 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13137
13138 # The archiver.
13139 AR=$lt_AR
13140
13141 # Flags to create an archive.
13142 AR_FLAGS=$lt_AR_FLAGS
13143
13144 # How to feed a file listing to the archiver.
13145 archiver_list_spec=$lt_archiver_list_spec
13146
13147 # A symbol stripping program.
13148 STRIP=$lt_STRIP
13149
13150 # Commands used to install an old-style archive.
13151 RANLIB=$lt_RANLIB
13152 old_postinstall_cmds=$lt_old_postinstall_cmds
13153 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13154
13155 # Whether to use a lock for old archive extraction.
13156 lock_old_archive_extraction=$lock_old_archive_extraction
13157
13158 # A C compiler.
13159 LTCC=$lt_CC
13160
13161 # LTCC compiler flags.
13162 LTCFLAGS=$lt_CFLAGS
13163
13164 # Take the output of nm and produce a listing of raw symbols and C names.
13165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13166
13167 # Transform the output of nm in a proper C declaration.
13168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13169
13170 # Transform the output of nm in a C name address pair.
13171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13172
13173 # Transform the output of nm in a C name address pair when lib prefix is needed.
13174 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13175
13176 # Specify filename containing input files for \$NM.
13177 nm_file_list_spec=$lt_nm_file_list_spec
13178
13179 # The root where to search for dependent libraries,and in which our libraries should be installed.
13180 lt_sysroot=$lt_sysroot
13181
13182 # The name of the directory that contains temporary libtool files.
13183 objdir=$objdir
13184
13185 # Used to examine libraries when file_magic_cmd begins with "file".
13186 MAGIC_CMD=$MAGIC_CMD
13187
13188 # Must we lock files when doing compilation?
13189 need_locks=$lt_need_locks
13190
13191 # Manifest tool.
13192 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13193
13194 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13195 DSYMUTIL=$lt_DSYMUTIL
13196
13197 # Tool to change global to local symbols on Mac OS X.
13198 NMEDIT=$lt_NMEDIT
13199
13200 # Tool to manipulate fat objects and archives on Mac OS X.
13201 LIPO=$lt_LIPO
13202
13203 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13204 OTOOL=$lt_OTOOL
13205
13206 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13207 OTOOL64=$lt_OTOOL64
13208
13209 # Old archive suffix (normally "a").
13210 libext=$libext
13211
13212 # Shared library suffix (normally ".so").
13213 shrext_cmds=$lt_shrext_cmds
13214
13215 # The commands to extract the exported symbol list from a shared archive.
13216 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13217
13218 # Variables whose values should be saved in libtool wrapper scripts and
13219 # restored at link time.
13220 variables_saved_for_relink=$lt_variables_saved_for_relink
13221
13222 # Do we need the "lib" prefix for modules?
13223 need_lib_prefix=$need_lib_prefix
13224
13225 # Do we need a version for libraries?
13226 need_version=$need_version
13227
13228 # Library versioning type.
13229 version_type=$version_type
13230
13231 # Shared library runtime path variable.
13232 runpath_var=$runpath_var
13233
13234 # Shared library path variable.
13235 shlibpath_var=$shlibpath_var
13236
13237 # Is shlibpath searched before the hard-coded library search path?
13238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13239
13240 # Format of library name prefix.
13241 libname_spec=$lt_libname_spec
13242
13243 # List of archive names.  First name is the real one, the rest are links.
13244 # The last name is the one that the linker finds with -lNAME
13245 library_names_spec=$lt_library_names_spec
13246
13247 # The coded name of the library, if different from the real name.
13248 soname_spec=$lt_soname_spec
13249
13250 # Permission mode override for installation of shared libraries.
13251 install_override_mode=$lt_install_override_mode
13252
13253 # Command to use after installation of a shared archive.
13254 postinstall_cmds=$lt_postinstall_cmds
13255
13256 # Command to use after uninstallation of a shared archive.
13257 postuninstall_cmds=$lt_postuninstall_cmds
13258
13259 # Commands used to finish a libtool library installation in a directory.
13260 finish_cmds=$lt_finish_cmds
13261
13262 # As "finish_cmds", except a single script fragment to be evaled but
13263 # not shown.
13264 finish_eval=$lt_finish_eval
13265
13266 # Whether we should hardcode library paths into libraries.
13267 hardcode_into_libs=$hardcode_into_libs
13268
13269 # Compile-time system search path for libraries.
13270 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13271
13272 # Run-time system search path for libraries.
13273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13274
13275 # Whether dlopen is supported.
13276 dlopen_support=$enable_dlopen
13277
13278 # Whether dlopen of programs is supported.
13279 dlopen_self=$enable_dlopen_self
13280
13281 # Whether dlopen of statically linked programs is supported.
13282 dlopen_self_static=$enable_dlopen_self_static
13283
13284 # Commands to strip libraries.
13285 old_striplib=$lt_old_striplib
13286 striplib=$lt_striplib
13287
13288
13289 # The linker used to build libraries.
13290 LD=$lt_LD
13291
13292 # How to create reloadable object files.
13293 reload_flag=$lt_reload_flag
13294 reload_cmds=$lt_reload_cmds
13295
13296 # Commands used to build an old-style archive.
13297 old_archive_cmds=$lt_old_archive_cmds
13298
13299 # A language specific compiler.
13300 CC=$lt_compiler
13301
13302 # Is the compiler the GNU compiler?
13303 with_gcc=$GCC
13304
13305 # Compiler flag to turn off builtin functions.
13306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13307
13308 # Additional compiler flags for building library objects.
13309 pic_flag=$lt_lt_prog_compiler_pic
13310
13311 # How to pass a linker flag through the compiler.
13312 wl=$lt_lt_prog_compiler_wl
13313
13314 # Compiler flag to prevent dynamic linking.
13315 link_static_flag=$lt_lt_prog_compiler_static
13316
13317 # Does compiler simultaneously support -c and -o options?
13318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13319
13320 # Whether or not to add -lc for building shared libraries.
13321 build_libtool_need_lc=$archive_cmds_need_lc
13322
13323 # Whether or not to disallow shared libs when runtime libs are static.
13324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13325
13326 # Compiler flag to allow reflexive dlopens.
13327 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13328
13329 # Compiler flag to generate shared objects directly from archives.
13330 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13331
13332 # Whether the compiler copes with passing no objects directly.
13333 compiler_needs_object=$lt_compiler_needs_object
13334
13335 # Create an old-style archive from a shared archive.
13336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13337
13338 # Create a temporary old-style archive to link instead of a shared archive.
13339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13340
13341 # Commands used to build a shared archive.
13342 archive_cmds=$lt_archive_cmds
13343 archive_expsym_cmds=$lt_archive_expsym_cmds
13344
13345 # Commands used to build a loadable module if different from building
13346 # a shared archive.
13347 module_cmds=$lt_module_cmds
13348 module_expsym_cmds=$lt_module_expsym_cmds
13349
13350 # Whether we are building with GNU ld or not.
13351 with_gnu_ld=$lt_with_gnu_ld
13352
13353 # Flag that allows shared libraries with undefined symbols to be built.
13354 allow_undefined_flag=$lt_allow_undefined_flag
13355
13356 # Flag that enforces no undefined symbols.
13357 no_undefined_flag=$lt_no_undefined_flag
13358
13359 # Flag to hardcode \$libdir into a binary during linking.
13360 # This must work even if \$libdir does not exist
13361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13362
13363 # Whether we need a single "-rpath" flag with a separated argument.
13364 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13365
13366 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13367 # DIR into the resulting binary.
13368 hardcode_direct=$hardcode_direct
13369
13370 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13371 # DIR into the resulting binary and the resulting library dependency is
13372 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13373 # library is relocated.
13374 hardcode_direct_absolute=$hardcode_direct_absolute
13375
13376 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13377 # into the resulting binary.
13378 hardcode_minus_L=$hardcode_minus_L
13379
13380 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13381 # into the resulting binary.
13382 hardcode_shlibpath_var=$hardcode_shlibpath_var
13383
13384 # Set to "yes" if building a shared library automatically hardcodes DIR
13385 # into the library and all subsequent libraries and executables linked
13386 # against it.
13387 hardcode_automatic=$hardcode_automatic
13388
13389 # Set to yes if linker adds runtime paths of dependent libraries
13390 # to runtime path list.
13391 inherit_rpath=$inherit_rpath
13392
13393 # Whether libtool must link a program against all its dependency libraries.
13394 link_all_deplibs=$link_all_deplibs
13395
13396 # Set to "yes" if exported symbols are required.
13397 always_export_symbols=$always_export_symbols
13398
13399 # The commands to list exported symbols.
13400 export_symbols_cmds=$lt_export_symbols_cmds
13401
13402 # Symbols that should not be listed in the preloaded symbols.
13403 exclude_expsyms=$lt_exclude_expsyms
13404
13405 # Symbols that must always be exported.
13406 include_expsyms=$lt_include_expsyms
13407
13408 # Commands necessary for linking programs (against libraries) with templates.
13409 prelink_cmds=$lt_prelink_cmds
13410
13411 # Commands necessary for finishing linking programs.
13412 postlink_cmds=$lt_postlink_cmds
13413
13414 # Specify filename containing input files.
13415 file_list_spec=$lt_file_list_spec
13416
13417 # How to hardcode a shared library path into an executable.
13418 hardcode_action=$hardcode_action
13419
13420 # ### END LIBTOOL CONFIG
13421
13422 _LT_EOF
13423
13424   case $host_os in
13425   aix3*)
13426     cat <<\_LT_EOF >> "$cfgfile"
13427 # AIX sometimes has problems with the GCC collect2 program.  For some
13428 # reason, if we set the COLLECT_NAMES environment variable, the problems
13429 # vanish in a puff of smoke.
13430 if test "X${COLLECT_NAMES+set}" != Xset; then
13431   COLLECT_NAMES=
13432   export COLLECT_NAMES
13433 fi
13434 _LT_EOF
13435     ;;
13436   esac
13437
13438
13439 ltmain="$ac_aux_dir/ltmain.sh"
13440
13441
13442   # We use sed instead of cat because bash on DJGPP gets confused if
13443   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13444   # text mode, it properly converts lines to CR/LF.  This bash problem
13445   # is reportedly fixed, but why not run on old versions too?
13446   sed '$q' "$ltmain" >> "$cfgfile" \
13447      || (rm -f "$cfgfile"; exit 1)
13448
13449   if test x"$xsi_shell" = xyes; then
13450   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13451 func_dirname ()\
13452 {\
13453 \    case ${1} in\
13454 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13455 \      *  ) func_dirname_result="${3}" ;;\
13456 \    esac\
13457 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13458   && mv -f "$cfgfile.tmp" "$cfgfile" \
13459     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13460 test 0 -eq $? || _lt_function_replace_fail=:
13461
13462
13463   sed -e '/^func_basename ()$/,/^} # func_basename /c\
13464 func_basename ()\
13465 {\
13466 \    func_basename_result="${1##*/}"\
13467 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13468   && mv -f "$cfgfile.tmp" "$cfgfile" \
13469     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13470 test 0 -eq $? || _lt_function_replace_fail=:
13471
13472
13473   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13474 func_dirname_and_basename ()\
13475 {\
13476 \    case ${1} in\
13477 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13478 \      *  ) func_dirname_result="${3}" ;;\
13479 \    esac\
13480 \    func_basename_result="${1##*/}"\
13481 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13482   && mv -f "$cfgfile.tmp" "$cfgfile" \
13483     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13484 test 0 -eq $? || _lt_function_replace_fail=:
13485
13486
13487   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13488 func_stripname ()\
13489 {\
13490 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13491 \    # positional parameters, so assign one to ordinary parameter first.\
13492 \    func_stripname_result=${3}\
13493 \    func_stripname_result=${func_stripname_result#"${1}"}\
13494 \    func_stripname_result=${func_stripname_result%"${2}"}\
13495 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13496   && mv -f "$cfgfile.tmp" "$cfgfile" \
13497     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13498 test 0 -eq $? || _lt_function_replace_fail=:
13499
13500
13501   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13502 func_split_long_opt ()\
13503 {\
13504 \    func_split_long_opt_name=${1%%=*}\
13505 \    func_split_long_opt_arg=${1#*=}\
13506 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13507   && mv -f "$cfgfile.tmp" "$cfgfile" \
13508     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13509 test 0 -eq $? || _lt_function_replace_fail=:
13510
13511
13512   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13513 func_split_short_opt ()\
13514 {\
13515 \    func_split_short_opt_arg=${1#??}\
13516 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13517 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13518   && mv -f "$cfgfile.tmp" "$cfgfile" \
13519     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13520 test 0 -eq $? || _lt_function_replace_fail=:
13521
13522
13523   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13524 func_lo2o ()\
13525 {\
13526 \    case ${1} in\
13527 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13528 \      *)    func_lo2o_result=${1} ;;\
13529 \    esac\
13530 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13531   && mv -f "$cfgfile.tmp" "$cfgfile" \
13532     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13533 test 0 -eq $? || _lt_function_replace_fail=:
13534
13535
13536   sed -e '/^func_xform ()$/,/^} # func_xform /c\
13537 func_xform ()\
13538 {\
13539     func_xform_result=${1%.*}.lo\
13540 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13541   && mv -f "$cfgfile.tmp" "$cfgfile" \
13542     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13543 test 0 -eq $? || _lt_function_replace_fail=:
13544
13545
13546   sed -e '/^func_arith ()$/,/^} # func_arith /c\
13547 func_arith ()\
13548 {\
13549     func_arith_result=$(( $* ))\
13550 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13551   && mv -f "$cfgfile.tmp" "$cfgfile" \
13552     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13553 test 0 -eq $? || _lt_function_replace_fail=:
13554
13555
13556   sed -e '/^func_len ()$/,/^} # func_len /c\
13557 func_len ()\
13558 {\
13559     func_len_result=${#1}\
13560 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13561   && mv -f "$cfgfile.tmp" "$cfgfile" \
13562     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13563 test 0 -eq $? || _lt_function_replace_fail=:
13564
13565 fi
13566
13567 if test x"$lt_shell_append" = xyes; then
13568   sed -e '/^func_append ()$/,/^} # func_append /c\
13569 func_append ()\
13570 {\
13571     eval "${1}+=\\${2}"\
13572 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13573   && mv -f "$cfgfile.tmp" "$cfgfile" \
13574     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13575 test 0 -eq $? || _lt_function_replace_fail=:
13576
13577
13578   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13579 func_append_quoted ()\
13580 {\
13581 \    func_quote_for_eval "${2}"\
13582 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13583 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13584   && mv -f "$cfgfile.tmp" "$cfgfile" \
13585     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13586 test 0 -eq $? || _lt_function_replace_fail=:
13587
13588
13589   # Save a `func_append' function call where possible by direct use of '+='
13590   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13591     && mv -f "$cfgfile.tmp" "$cfgfile" \
13592       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13593   test 0 -eq $? || _lt_function_replace_fail=:
13594 else
13595   # Save a `func_append' function call even when '+=' is not available
13596   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13597     && mv -f "$cfgfile.tmp" "$cfgfile" \
13598       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13599   test 0 -eq $? || _lt_function_replace_fail=:
13600 fi
13601
13602 if test x"$_lt_function_replace_fail" = x":"; then
13603   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13604 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13605 fi
13606
13607
13608    mv -f "$cfgfile" "$ofile" ||
13609     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13610   chmod +x "$ofile"
13611
13612  ;;
13613
13614   esac
13615 done # for ac_tag
13616
13617
13618 as_fn_exit 0
13619 _ACEOF
13620 ac_clean_files=$ac_clean_files_save
13621
13622 test $ac_write_fail = 0 ||
13623   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13624
13625
13626 # configure is writing to config.log, and then calls config.status.
13627 # config.status does its own redirection, appending to config.log.
13628 # Unfortunately, on DOS this fails, as config.log is still kept open
13629 # by configure, so config.status won't be able to write to it; its
13630 # output is simply discarded.  So we exec the FD to /dev/null,
13631 # effectively closing config.log, so it can be properly (re)opened and
13632 # appended to by config.status.  When coming back to configure, we
13633 # need to make the FD available again.
13634 if test "$no_create" != yes; then
13635   ac_cs_success=:
13636   ac_config_status_args=
13637   test "$silent" = yes &&
13638     ac_config_status_args="$ac_config_status_args --quiet"
13639   exec 5>/dev/null
13640   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13641   exec 5>>config.log
13642   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13643   # would make configure fail if this is the last instruction.
13644   $ac_cs_success || as_fn_exit 1
13645 fi
13646 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13648 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13649 fi
13650